mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
style(): unify docs and spacing (#1448)
* typo(barcode-scanner): fixe circle lint error
* typo(docs): Unified the documentations
In some plugins the typescript markup was missing.
I also unified the console.log string from console.log("hello") to console.log('Hello') so any plugin page look the same.
This commit is contained in:
@@ -63,22 +63,22 @@ export interface ThreeDeeTouchForceTouch {
|
||||
* @description
|
||||
* @usage
|
||||
* Please do refer to the original plugin's repo for detailed usage. The usage example here might not be sufficient.
|
||||
* ```
|
||||
* ```typescript
|
||||
* import { ThreeDeeTouch, ThreeDeeTouchQuickAction, ThreeDeeTouchForceTouch } from '@ionic-native/three-dee-touch';
|
||||
*
|
||||
* constructor(private threeDeeTouch: ThreeDeeTouch) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* this.threeDeeTouch.isAvailable().then(isAvailable => console.log("3D Touch available? " + isAvailable));
|
||||
* this.threeDeeTouch.isAvailable().then(isAvailable => console.log('3D Touch available? ' + isAvailable));
|
||||
*
|
||||
* this.threeDeeTouch.watchForceTouches()
|
||||
* .subscribe(
|
||||
* (data: ThreeDeeTouchForceTouch) => {
|
||||
* console.log("Force touch %" + data.force);
|
||||
* console.log("Force touch timestamp: " + data.timestamp);
|
||||
* console.log("Force touch x: " + data.x);
|
||||
* console.log("Force touch y: " + data.y);
|
||||
* console.log('Force touch %' + data.force);
|
||||
* console.log('Force touch timestamp: ' + data.timestamp);
|
||||
* console.log('Force touch x: ' + data.x);
|
||||
* console.log('Force touch y: ' + data.y);
|
||||
* }
|
||||
* );
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user