vue-annotator
Advanced tools
Comparing version 0.11.4 to 0.11.5
{ | ||
"name": "vue-annotator", | ||
"version": "0.11.4", | ||
"version": "0.11.5", | ||
"description": "Vue Component for drawing annotation (box, etc)", | ||
@@ -15,3 +15,3 @@ "homepage": "http://vue-annotator.surge.sh", | ||
"module": "dist/index.js", | ||
"style": "dist/index.css", | ||
"style": "style.css", | ||
"unpkg": "umd/index.js", | ||
@@ -23,3 +23,4 @@ "jsdelivr": "umd/index.js", | ||
"umd/", | ||
"index.d.ts" | ||
"index.d.ts", | ||
"style.css" | ||
], | ||
@@ -26,0 +27,0 @@ "author": "Fahmi Akbar Wildana", |
@@ -8,4 +8,5 @@ # vue-annotator | ||
## Usage | ||
```html | ||
<annotator inertia | ||
<v-annotator inertia | ||
:drawing="enableDrawingMode" | ||
@@ -25,5 +26,41 @@ @select="openDialog" | ||
</annotator> | ||
</v-annotator> | ||
``` | ||
```css | ||
<style scoped> | ||
@import '~vue-annotator/style.css'; | ||
/* Your beloved style */ | ||
</style> | ||
``` | ||
<details> | ||
<summary>Enable <code>--skipLibCheck</code> if using typescript</summary> | ||
In *tsconfig.json* | ||
```js | ||
{ | ||
compilerOptions: { | ||
skipLibCheck: true | ||
} | ||
} | ||
``` | ||
Now it should work fine | ||
```ts | ||
import { Vue, Component } from 'vue-property-decorator' | ||
import VAnnotator from 'vue-annotator' | ||
@Component({ components: { VAnnotator } }) | ||
export class MyCanvas extends Vue { | ||
/** Your beloved logic */ | ||
} | ||
``` | ||
</details> | ||
### Props | ||
@@ -30,0 +67,0 @@ > \* : must be set if no background |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193264
9
130