forked from DrSensor/vue-annotator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
55 lines (45 loc) · 1.38 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import Vue from 'vue'
import { SnapFunction, Interactable, InteractStatic } from 'interactjs'
export default class VAnnotator extends Vue {
readonly $refs: {
readonly svg: SVGElement
readonly bgSvg: SVGForeignObjectElement
readonly bg: HTMLDivElement
readonly annotations: SVGGElement
}
readonly $props: {
readonly width: number | string
readonly height: number | string
readonly drawing: boolean
readonly noInteract: boolean
readonly noSelect: boolean
/** @see manipulate.js */
readonly inertia: boolean
readonly grid: number[] | number
readonly minSize: number[] | number
readonly multipleSelect: boolean // also in select.js
/** @see delete.js */
readonly delete: boolean
}
readonly $data: {
w: number
h: number
background: SVGForeignObjectElement
annotations: SVGGElement
/** @see drawing.js */
drawingable?: Interactable
}
/** @see select.js */
makeSelectable(node: SVGElement): Interactable
enableSelection(enabled: boolean): void
/** @see manipulate.js */
readonly gridTarget?: SnapFunction
readonly minWidth: number
readonly minHeight: number
makeInteractable(node: Element, fixDrawingMode: boolean): InteractStatic
enableInteraction(enabled: boolean): void
/** @see drawing.js */
enableDrawing(enabled: boolean): void
/** @see delete.js */
triggerDelete(): void
}