hzzt-kfb-slide 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/{annotateCVLkqudX.js → annotateBVEx-rya.js} +1 -1
- package/dist/components/{annotateCYZEG4by.js → annotateBqmjdjvz.js} +47 -47
- package/dist/components/{annotateDDGAeaL1.js → annotateCnEsVKZh.js} +1 -1
- package/dist/components/annotateSkfOL59Z.js +1 -0
- package/dist/components/arrowDownB5-0ALxZ.js +18 -0
- package/dist/components/arrowDownCPhRTVmw.js +1 -0
- package/dist/components/{arrowDOQZx-5i.js → arrowDu4kVbgE.js} +1 -1
- package/dist/components/{arrow6aTSOsV2.js → arrowK6nDwd7R.js} +1 -1
- package/dist/components/arrowLeftBpJAKYIU.js +18 -0
- package/dist/components/arrowLeftCU3T3r30.js +1 -0
- package/dist/components/arrowRightClWKIUuS.js +19 -0
- package/dist/components/arrowRightmZqySSay.js +1 -0
- package/dist/components/arrowUpBou4eMQV.js +18 -0
- package/dist/components/arrowUpt5FuC3FU.js +1 -0
- package/dist/components/channelC2Ri97Of.js +1 -0
- package/dist/components/channelCwUVeFpV.js +35 -0
- package/dist/components/{checkDT-yvng0.js → check0RJobaJ4.js} +1 -1
- package/dist/components/{checkCazbS-c6.js → checkDfZPSwE6.js} +1 -1
- package/dist/components/{configB5XxbCMh.js → configC6FKsyN9.js} +3 -3
- package/dist/components/{configOyvUhGVP.js → configCgTZWYHR.js} +1 -1
- package/dist/components/customB30kJ3DX.js +40 -0
- package/dist/components/customDiZEAr4q.js +1 -0
- package/dist/components/deleteBXoB6UTd.js +25 -0
- package/dist/components/deleteBaA_lSdx.js +1 -0
- package/dist/components/{dot1kt2iBMi.js → dotB8_2mIMY.js} +1 -1
- package/dist/components/{dotDKLgWFRD.js → dotCQaSpfEa.js} +29 -29
- package/dist/components/{dotBzY_NqlA.js → dotR12-Fs6I.js} +1 -1
- package/dist/components/dot_nBePo5G.js +1 -0
- package/dist/components/downloadDIRWuAsZ.js +1 -0
- package/dist/components/{downloadDmK-mUW4.js → downloadDSy6Lx_1.js} +19 -19
- package/dist/components/{downloadCshCNWAW.js → downloadL7bwn8r7.js} +1 -1
- package/dist/components/{downloadBWFjb3Fj.js → downloadZXx1by-2.js} +1 -1
- package/dist/components/{flipDA2I3h_e.js → flipBWJDgBtU.js} +1 -1
- package/dist/components/{flipDUjW55Vh.js → flipzeRs4WK2.js} +5 -5
- package/dist/components/{fullscreenDyMv4lzQ.js → fullscreenBHPtTX2M.js} +1 -1
- package/dist/components/fullscreenBNpKNuBF.js +1 -0
- package/dist/components/{fullscreenDUzPX17n.js → fullscreenBdMJB4PD.js} +1 -1
- package/dist/components/{fullscreenQqpG_OS1.js → fullscreenCNn3z9l_.js} +13 -13
- package/dist/components/indexBI9sOqLg.js +30 -0
- package/dist/components/indexCJCVhkFm.js +11137 -0
- package/dist/components/{infoBJj_CFzD.js → infoBltXncgb.js} +3 -3
- package/dist/components/{infoB_-hN7Fr.js → infoDtaFyr6c.js} +1 -1
- package/dist/components/level0fz2ixaa.js +35 -0
- package/dist/components/levelCdq1V4Yc.js +1 -0
- package/dist/components/{microscopeCJwTonZV.js → microscope4jUbJj-C.js} +1 -1
- package/dist/components/microscope6R__I7ur.js +1 -0
- package/dist/components/{microscopeBsAciWA9.js → microscope8r-_ZsCK.js} +1 -1
- package/dist/components/{microscopeQHJ_dU_L.js → microscopeCJSAsiIQ.js} +5 -5
- package/dist/components/moveCXbqdVKV.js +1 -0
- package/dist/components/{moveUEjGdGB8.js → moveDg8vDZ98.js} +1 -1
- package/dist/components/{moveDxSu5JyS.js → moveJ_q2x0EZ.js} +1 -1
- package/dist/components/movelpGiPnJ5.js +74 -0
- package/dist/components/{nextXkdsQP9z.js → nextC0vHwAp5.js} +3 -3
- package/dist/components/{nextUojG6t-0.js → nextCMCmaDTi.js} +1 -1
- package/dist/components/{prevhOkmcBJ2.js → prevBzXgP68U.js} +1 -1
- package/dist/components/{prevBjMmvSpY.js → prevuRCPUsG0.js} +3 -3
- package/dist/components/{processCigaxNDK.js → processBpBLPw3-.js} +1 -1
- package/dist/components/processC0vYuwue.js +1 -0
- package/dist/components/{processRSLucFP3.js → processD1EQvj3k.js} +1 -1
- package/dist/components/{processCaqwpK4F.js → processFuA_wiCf.js} +18 -18
- package/dist/components/{rotateBgPHUO92.js → rotateBb7eL6EN.js} +1 -1
- package/dist/components/rotateBtvqvLPE.js +1 -0
- package/dist/components/rotateEKM-FQDQ.js +130 -0
- package/dist/components/{rotateCIEP8gXK.js → rotatea8JeBygQ.js} +1 -1
- package/dist/components/{settingBwRgwtCV.js → settingBOwtgZSJ.js} +1 -1
- package/dist/components/{settingDEgu1o7Z.js → settingBf-9h3FW.js} +1 -1
- package/dist/components/settingC-mv7W3Q.js +1 -0
- package/dist/components/settingCPNMWWj9.js +147 -0
- package/dist/components/{tailor0e5PmiKv.js → tailorCwnyDUsI.js} +1 -1
- package/dist/components/{tailorA3InL_3L.js → tailorDGEwHYjf.js} +1 -1
- package/dist/components/useCommonCBKfFiqW.js +17 -0
- package/dist/components/useCommoney7551no.js +1 -0
- package/dist/components/{zoomCOaNFEUh.js → zoomDRrzKbUt.js} +2 -2
- package/dist/components/{zoomD7pWi-kc.js → zoomDc8tU8Zx.js} +1 -1
- package/dist/components/zoomInBD6Lg2YX.js +1 -0
- package/dist/components/zoomInCJguF0C1.js +30 -0
- package/dist/components/zoomOutDV9dPg1z.js +1 -0
- package/dist/components/zoomOutVGTP5fYm.js +32 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +4 -2
- package/types/components/KfbIcon.vue.d.ts +12 -0
- package/types/components/KfbImage.vue.d.ts +47 -0
- package/types/components/KfbSlideList.vue.d.ts +24 -0
- package/types/components/KfbToolConfig.vue.d.ts +13 -0
- package/types/components/KfbToolbox.vue.d.ts +22 -0
- package/types/components/KfbView/KfbChannel.vue.d.ts +16 -0
- package/types/components/KfbView/KfbKeyword.vue.d.ts +2 -0
- package/types/components/KfbView/KfbLabel.vue.d.ts +13 -0
- package/types/components/KfbView/KfbLevel.vue.d.ts +14 -0
- package/types/components/KfbView/KfbMenu.vue.d.ts +10 -0
- package/types/components/KfbView/KfbMicroscope.vue.d.ts +14 -0
- package/types/components/KfbView/index.d.ts +233 -0
- package/types/components/KfbView/index.vue.d.ts +270 -0
- package/types/components/KfbView/useDot.d.ts +3 -0
- package/types/components/KfbView/useHotmap.d.ts +38 -0
- package/types/components/KfbView/useImageProcess.d.ts +16 -0
- package/types/components/KfbView/useLabel.d.ts +85 -0
- package/types/components/KfbView/useMove.d.ts +9 -0
- package/types/components/KfbView/usePointer.d.ts +12 -0
- package/types/components/KfbView/useSync.d.ts +5 -0
- package/types/components/KfbView/useTailor.d.ts +7 -0
- package/types/components/ai/list.vue.d.ts +13 -0
- package/types/components/ai/useAi.d.ts +87 -0
- package/types/components/icon/annotate.vue.d.ts +2 -0
- package/types/components/icon/arrow.vue.d.ts +2 -0
- package/types/components/icon/arrowDown.vue.d.ts +2 -0
- package/types/components/icon/arrowLeft.vue.d.ts +2 -0
- package/types/components/icon/arrowRight.vue.d.ts +2 -0
- package/types/components/icon/arrowUp.vue.d.ts +2 -0
- package/types/components/icon/channel.vue.d.ts +2 -0
- package/types/components/icon/check.vue.d.ts +2 -0
- package/types/components/icon/config.vue.d.ts +2 -0
- package/types/components/icon/delete.vue.d.ts +2 -0
- package/types/components/icon/dot.vue.d.ts +2 -0
- package/types/components/icon/download.vue.d.ts +2 -0
- package/types/components/icon/flip.vue.d.ts +2 -0
- package/types/components/icon/fullscreen.vue.d.ts +2 -0
- package/types/components/icon/index.d.ts +5 -0
- package/types/components/icon/info.vue.d.ts +2 -0
- package/types/components/icon/level.vue.d.ts +2 -0
- package/types/components/icon/list.vue.d.ts +2 -0
- package/types/components/icon/menu.vue.d.ts +2 -0
- package/types/components/icon/microscope.vue.d.ts +2 -0
- package/types/components/icon/move.vue.d.ts +2 -0
- package/types/components/icon/next.vue.d.ts +2 -0
- package/types/components/icon/prev.vue.d.ts +2 -0
- package/types/components/icon/process.vue.d.ts +2 -0
- package/types/components/icon/rotate.vue.d.ts +2 -0
- package/types/components/icon/setting.vue.d.ts +2 -0
- package/types/components/icon/tailor.vue.d.ts +2 -0
- package/types/components/icon/zoomIn.vue.d.ts +2 -0
- package/types/components/toolbox/annotate.vue.d.ts +10 -0
- package/types/components/toolbox/custom.vue.d.ts +20 -0
- package/types/components/toolbox/dot.vue.d.ts +10 -0
- package/types/components/toolbox/download.vue.d.ts +10 -0
- package/types/components/toolbox/fullscreen.vue.d.ts +10 -0
- package/types/components/toolbox/instances.d.ts +26 -0
- package/types/components/toolbox/microscope.vue.d.ts +15 -0
- package/types/components/toolbox/move.vue.d.ts +10 -0
- package/types/components/toolbox/process.vue.d.ts +11 -0
- package/types/components/toolbox/rotate.vue.d.ts +6 -0
- package/types/components/toolbox/setting.vue.d.ts +10 -0
- package/types/components/toolbox/useCommon.d.ts +9 -0
- package/types/components/toolbox/zoom.vue.d.ts +6 -0
- package/types/index.d.ts +13 -0
- package/types/index.vue.d.ts +48 -0
- package/types/instances.d.ts +67 -0
- package/types/plugins/i18n.d.ts +6 -0
- package/dist/components/annotateCX9GkmOg.js +0 -1
- package/dist/components/configB7FH_Li-.js +0 -1
- package/dist/components/configCPI2rG9d.js +0 -40
- package/dist/components/custom-mCr5M_c.js +0 -1
- package/dist/components/customc4LeZve5.js +0 -40
- package/dist/components/dotB1Nn2uO0.js +0 -1
- package/dist/components/download_UT5bsTk.js +0 -1
- package/dist/components/flipCbiBH_o3.js +0 -1
- package/dist/components/flipDUZT4wIY.js +0 -40
- package/dist/components/fullscreenD6c_uo6X.js +0 -1
- package/dist/components/indexDvexHnyj.js +0 -10651
- package/dist/components/indexNnjbVZ_m.js +0 -30
- package/dist/components/infoBNm69fP0.js +0 -41
- package/dist/components/infoDvOItrdO.js +0 -1
- package/dist/components/microscopeDQl6TocT.js +0 -1
- package/dist/components/moveBzYl-c4_.js +0 -1
- package/dist/components/moveCe8MSGn0.js +0 -74
- package/dist/components/nextCGxHdIok.js +0 -1
- package/dist/components/nextDeuoTRY7.js +0 -40
- package/dist/components/prevBrrsxCoK.js +0 -40
- package/dist/components/prevDCKFCMZw.js +0 -1
- package/dist/components/processCUjiU4DT.js +0 -1
- package/dist/components/rotateCt5rJEBm.js +0 -1
- package/dist/components/rotateWiDuyX22.js +0 -130
- package/dist/components/setting8L58q_d4.js +0 -134
- package/dist/components/settingCgwUdss3.js +0 -1
- package/dist/components/tailorBB_gVLzK.js +0 -40
- package/dist/components/tailorCeILe_eG.js +0 -1
- package/dist/components/useCommonDK4IjSxd.js +0 -17
- package/dist/components/useCommon_CFgwTZy.js +0 -1
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { Process } from "@/components/toolbox/instances.ts";
|
|
2
|
+
import { type Component } from "vue";
|
|
3
|
+
import { DigitalSlide } from "@/instances.ts";
|
|
4
|
+
export interface Label {
|
|
5
|
+
id?: number;
|
|
6
|
+
parent_id?: number;
|
|
7
|
+
lineWidth?: number;
|
|
8
|
+
strokeStyle?: string;
|
|
9
|
+
fillStyle?: string;
|
|
10
|
+
fontSize?: number;
|
|
11
|
+
description?: string;
|
|
12
|
+
text?: string;
|
|
13
|
+
angle?: number;
|
|
14
|
+
measure?: boolean;
|
|
15
|
+
points?: Point[];
|
|
16
|
+
tool?: string;
|
|
17
|
+
src?: string;
|
|
18
|
+
scale?: number;
|
|
19
|
+
region?: Rect;
|
|
20
|
+
move?: boolean;
|
|
21
|
+
resize?: boolean;
|
|
22
|
+
isROI?: boolean;
|
|
23
|
+
isClose?: boolean;
|
|
24
|
+
select?: boolean;
|
|
25
|
+
show?: boolean;
|
|
26
|
+
is_ai?: boolean;
|
|
27
|
+
custom?: boolean;
|
|
28
|
+
cls?: string;
|
|
29
|
+
score?: number;
|
|
30
|
+
imageUrl?: string;
|
|
31
|
+
__other__: any;
|
|
32
|
+
}
|
|
33
|
+
export interface Point {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
minus?: (point: Point) => Point;
|
|
37
|
+
clone?: () => Point;
|
|
38
|
+
}
|
|
39
|
+
export interface Rect {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
width: number;
|
|
43
|
+
height: number;
|
|
44
|
+
}
|
|
45
|
+
export interface ViewportInterface {
|
|
46
|
+
setRotation: (angle?: number) => void;
|
|
47
|
+
toggleFlip: () => void;
|
|
48
|
+
getCenter: (center?: boolean) => Point;
|
|
49
|
+
panTo: (point: Point) => void;
|
|
50
|
+
viewportToImageZoom: (zoom: number) => number;
|
|
51
|
+
imageToViewportZoom: (zoom: number) => number;
|
|
52
|
+
zoomTo: (zoom: number) => void;
|
|
53
|
+
zoomBy: (zoom: number) => void;
|
|
54
|
+
applyConstraints: () => void;
|
|
55
|
+
containerSize: Point;
|
|
56
|
+
getZoom: (flag?: boolean) => number;
|
|
57
|
+
panBy: (point: Point, flag?: boolean) => void;
|
|
58
|
+
deltaPointsFromPixels: (point: Point) => Point;
|
|
59
|
+
}
|
|
60
|
+
export interface DrawerInterface {
|
|
61
|
+
canvas: HTMLCanvasElement;
|
|
62
|
+
}
|
|
63
|
+
export interface KfbEvent {
|
|
64
|
+
preventDefault: boolean;
|
|
65
|
+
position: {
|
|
66
|
+
x: number;
|
|
67
|
+
y: number;
|
|
68
|
+
};
|
|
69
|
+
degrees?: number;
|
|
70
|
+
zoom?: number;
|
|
71
|
+
center?: Point;
|
|
72
|
+
}
|
|
73
|
+
export interface ViewerInterface {
|
|
74
|
+
viewport: ViewportInterface;
|
|
75
|
+
drawer: DrawerInterface;
|
|
76
|
+
addHandler: (name: string, func: (e: KfbEvent) => void) => void;
|
|
77
|
+
removeHandler: (name: string, func: (e: KfbEvent) => void) => void;
|
|
78
|
+
forceRedraw: () => void;
|
|
79
|
+
world?: {
|
|
80
|
+
getItemAt: (number: number) => TiledImage;
|
|
81
|
+
tiledImage: TiledImage;
|
|
82
|
+
removeItem: (tile: TiledImage) => void;
|
|
83
|
+
};
|
|
84
|
+
addTiledImage: (options: Record<any, any>) => void;
|
|
85
|
+
}
|
|
86
|
+
export interface Channel {
|
|
87
|
+
r: string | number;
|
|
88
|
+
g: string | number;
|
|
89
|
+
b: string | number;
|
|
90
|
+
eqt_num: string;
|
|
91
|
+
}
|
|
92
|
+
export interface FileInterface {
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
|
+
fileNum: number;
|
|
96
|
+
scanScale: number;
|
|
97
|
+
fileName: string;
|
|
98
|
+
ratiomap: Record<string, number>;
|
|
99
|
+
tileWidth?: number;
|
|
100
|
+
tileHeight?: number;
|
|
101
|
+
imageBlockLen?: number;
|
|
102
|
+
previewImg?: string;
|
|
103
|
+
labelImg?: string;
|
|
104
|
+
thumbnailImg?: string;
|
|
105
|
+
scanDuration?: number;
|
|
106
|
+
imageCapRes?: number;
|
|
107
|
+
scanResolution?: number;
|
|
108
|
+
scanTime?: string;
|
|
109
|
+
channel?: Channel[];
|
|
110
|
+
ext?: {
|
|
111
|
+
machineNum?: string;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export interface TiledImage {
|
|
115
|
+
draw: () => void;
|
|
116
|
+
tilesMatrix: Record<any, any>;
|
|
117
|
+
}
|
|
118
|
+
export interface KfbViewInterface {
|
|
119
|
+
labelList?: Label[];
|
|
120
|
+
viewer: ViewerInterface;
|
|
121
|
+
destroy?: () => void;
|
|
122
|
+
initLabelList?: (data: Label[]) => void;
|
|
123
|
+
$on?: (event?: string, func?: (data: any) => any) => void;
|
|
124
|
+
$options: Record<string, any>;
|
|
125
|
+
board?: {
|
|
126
|
+
startDraw: (options: any) => void;
|
|
127
|
+
endDraw: () => void;
|
|
128
|
+
};
|
|
129
|
+
grid?: {
|
|
130
|
+
updated: (options: any) => void;
|
|
131
|
+
};
|
|
132
|
+
graduation?: {
|
|
133
|
+
updated: (options: any) => void;
|
|
134
|
+
};
|
|
135
|
+
area?: {
|
|
136
|
+
moveToLabel: (point: Point) => void;
|
|
137
|
+
getCenterPoint: (rect: Rect) => Point;
|
|
138
|
+
imageToViewerElementRectangle: (rect: Rect) => Rect;
|
|
139
|
+
};
|
|
140
|
+
navigator?: {
|
|
141
|
+
element: HTMLElement;
|
|
142
|
+
drawPointList: (data: any) => void;
|
|
143
|
+
};
|
|
144
|
+
tailoring: {
|
|
145
|
+
init: (data: {
|
|
146
|
+
left: number;
|
|
147
|
+
top: number;
|
|
148
|
+
height: number;
|
|
149
|
+
width: number;
|
|
150
|
+
now?: boolean;
|
|
151
|
+
color?: string;
|
|
152
|
+
}) => void;
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
export interface TileParams {
|
|
156
|
+
file: string;
|
|
157
|
+
x: number;
|
|
158
|
+
y: number;
|
|
159
|
+
scale: string;
|
|
160
|
+
level: number;
|
|
161
|
+
channel?: string;
|
|
162
|
+
}
|
|
163
|
+
export interface Menu {
|
|
164
|
+
label: string;
|
|
165
|
+
value: string;
|
|
166
|
+
icon?: string | Component;
|
|
167
|
+
children?: {
|
|
168
|
+
label: string;
|
|
169
|
+
value: string;
|
|
170
|
+
icon?: string | Component;
|
|
171
|
+
}[];
|
|
172
|
+
}
|
|
173
|
+
export interface Microscope {
|
|
174
|
+
shape: string;
|
|
175
|
+
width: number;
|
|
176
|
+
color: string;
|
|
177
|
+
borderWidth: number;
|
|
178
|
+
}
|
|
179
|
+
export declare const DEFAULT_MICROSCOPE: {
|
|
180
|
+
shape: string;
|
|
181
|
+
width: number;
|
|
182
|
+
color: string;
|
|
183
|
+
borderWidth: number;
|
|
184
|
+
};
|
|
185
|
+
export interface KfbProps {
|
|
186
|
+
slide: DigitalSlide;
|
|
187
|
+
fileHandle: (slide: DigitalSlide) => Promise<FileInterface>;
|
|
188
|
+
labelHandle: (type: string, slide: DigitalSlide, data?: any) => Promise<Label[]>;
|
|
189
|
+
tileHandle: (params: TileParams) => string;
|
|
190
|
+
navigatorHandle?: (type: string, slide: DigitalSlide, data?: any) => Promise<any>;
|
|
191
|
+
pathologyHandle?: (slide: DigitalSlide) => Promise<boolean>;
|
|
192
|
+
options?: Record<string, any>;
|
|
193
|
+
process?: Process;
|
|
194
|
+
microscope?: Microscope;
|
|
195
|
+
menus?: Menu[];
|
|
196
|
+
aiLabelList?: Label[];
|
|
197
|
+
hotmap?: {
|
|
198
|
+
enable: boolean;
|
|
199
|
+
type: string;
|
|
200
|
+
file: string;
|
|
201
|
+
info?: [];
|
|
202
|
+
roi?: [];
|
|
203
|
+
};
|
|
204
|
+
syncPosition?: boolean;
|
|
205
|
+
syncZoom?: boolean;
|
|
206
|
+
}
|
|
207
|
+
export interface Hotmap {
|
|
208
|
+
url: string;
|
|
209
|
+
x: number;
|
|
210
|
+
y: number;
|
|
211
|
+
img?: HTMLImageElement;
|
|
212
|
+
load: string;
|
|
213
|
+
}
|
|
214
|
+
export interface KfbViewRefInterface {
|
|
215
|
+
kfbView: KfbViewInterface;
|
|
216
|
+
degrees: number;
|
|
217
|
+
currentAngle: number;
|
|
218
|
+
zoom: number;
|
|
219
|
+
startDraw: (options?: unknown) => void;
|
|
220
|
+
shotScreen: (options?: unknown) => void;
|
|
221
|
+
updateGrid: (options?: unknown) => void;
|
|
222
|
+
updateGraduation: (options?: unknown) => void;
|
|
223
|
+
updateNavigator: (options?: unknown) => void;
|
|
224
|
+
forceRedraw: (options?: unknown) => void;
|
|
225
|
+
scopeChange: (options?: unknown) => void;
|
|
226
|
+
fastMove: (options?: unknown) => void;
|
|
227
|
+
endDraw: () => void;
|
|
228
|
+
info: () => void;
|
|
229
|
+
zoomTo: (options?: unknown) => void;
|
|
230
|
+
toggleFlip: (options?: unknown) => void;
|
|
231
|
+
reloadLabelList: () => void;
|
|
232
|
+
selectLabel: (label: Label) => void;
|
|
233
|
+
}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import { KfbProps, KfbViewInterface, Label, Rect } from "@/components/KfbView/index.ts";
|
|
3
|
+
declare function startDraw(options: any): void;
|
|
4
|
+
declare function endDraw(): void;
|
|
5
|
+
declare function toggleFlip(): void;
|
|
6
|
+
declare function scopeChange(options: any): void;
|
|
7
|
+
declare function info(): void;
|
|
8
|
+
declare function updateGrid(options: any): void;
|
|
9
|
+
declare function updateGraduation(options: any): void;
|
|
10
|
+
declare function updateNavigator(flag: any): void;
|
|
11
|
+
declare function zoomTo(zoom: any): void;
|
|
12
|
+
declare var __VLS_89: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_89) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
17
|
+
kfbView: Ref<{
|
|
18
|
+
labelList?: {
|
|
19
|
+
id?: number | undefined;
|
|
20
|
+
parent_id?: number | undefined;
|
|
21
|
+
lineWidth?: number | undefined;
|
|
22
|
+
strokeStyle?: string | undefined;
|
|
23
|
+
fillStyle?: string | undefined;
|
|
24
|
+
fontSize?: number | undefined;
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
text?: string | undefined;
|
|
27
|
+
angle?: number | undefined;
|
|
28
|
+
measure?: boolean | undefined;
|
|
29
|
+
points?: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
33
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
tool?: string | undefined;
|
|
36
|
+
src?: string | undefined;
|
|
37
|
+
scale?: number | undefined;
|
|
38
|
+
region?: {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
} | undefined;
|
|
44
|
+
move?: boolean | undefined;
|
|
45
|
+
resize?: boolean | undefined;
|
|
46
|
+
isROI?: boolean | undefined;
|
|
47
|
+
isClose?: boolean | undefined;
|
|
48
|
+
select?: boolean | undefined;
|
|
49
|
+
show?: boolean | undefined;
|
|
50
|
+
is_ai?: boolean | undefined;
|
|
51
|
+
custom?: boolean | undefined;
|
|
52
|
+
cls?: string | undefined;
|
|
53
|
+
score?: number | undefined;
|
|
54
|
+
imageUrl?: string | undefined;
|
|
55
|
+
__other__: any;
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
viewer: {
|
|
58
|
+
viewport: {
|
|
59
|
+
setRotation: (angle?: number) => void;
|
|
60
|
+
toggleFlip: () => void;
|
|
61
|
+
getCenter: (center?: boolean) => import("@/components/KfbView/index.ts").Point;
|
|
62
|
+
panTo: (point: import("@/components/KfbView/index.ts").Point) => void;
|
|
63
|
+
viewportToImageZoom: (zoom: number) => number;
|
|
64
|
+
imageToViewportZoom: (zoom: number) => number;
|
|
65
|
+
zoomTo: (zoom: number) => void;
|
|
66
|
+
zoomBy: (zoom: number) => void;
|
|
67
|
+
applyConstraints: () => void;
|
|
68
|
+
containerSize: {
|
|
69
|
+
x: number;
|
|
70
|
+
y: number;
|
|
71
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
72
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
73
|
+
};
|
|
74
|
+
getZoom: (flag?: boolean) => number;
|
|
75
|
+
panBy: (point: import("@/components/KfbView/index.ts").Point, flag?: boolean) => void;
|
|
76
|
+
deltaPointsFromPixels: (point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point;
|
|
77
|
+
};
|
|
78
|
+
drawer: {
|
|
79
|
+
canvas: HTMLCanvasElement;
|
|
80
|
+
};
|
|
81
|
+
addHandler: (name: string, func: (e: import("@/components/KfbView/index.ts").KfbEvent) => void) => void;
|
|
82
|
+
removeHandler: (name: string, func: (e: import("@/components/KfbView/index.ts").KfbEvent) => void) => void;
|
|
83
|
+
forceRedraw: () => void;
|
|
84
|
+
world?: {
|
|
85
|
+
getItemAt: (number: number) => import("@/components/KfbView/index.ts").TiledImage;
|
|
86
|
+
tiledImage: {
|
|
87
|
+
draw: () => void;
|
|
88
|
+
tilesMatrix: Record<any, any>;
|
|
89
|
+
};
|
|
90
|
+
removeItem: (tile: import("@/components/KfbView/index.ts").TiledImage) => void;
|
|
91
|
+
} | undefined;
|
|
92
|
+
addTiledImage: (options: Record<any, any>) => void;
|
|
93
|
+
};
|
|
94
|
+
destroy?: (() => void) | undefined;
|
|
95
|
+
initLabelList?: ((data: Label[]) => void) | undefined;
|
|
96
|
+
$on?: ((event?: string, func?: (data: any) => any) => void) | undefined;
|
|
97
|
+
$options: Record<string, any>;
|
|
98
|
+
board?: {
|
|
99
|
+
startDraw: (options: any) => void;
|
|
100
|
+
endDraw: () => void;
|
|
101
|
+
} | undefined;
|
|
102
|
+
grid?: {
|
|
103
|
+
updated: (options: any) => void;
|
|
104
|
+
} | undefined;
|
|
105
|
+
graduation?: {
|
|
106
|
+
updated: (options: any) => void;
|
|
107
|
+
} | undefined;
|
|
108
|
+
area?: {
|
|
109
|
+
moveToLabel: (point: import("@/components/KfbView/index.ts").Point) => void;
|
|
110
|
+
getCenterPoint: (rect: Rect) => import("@/components/KfbView/index.ts").Point;
|
|
111
|
+
imageToViewerElementRectangle: (rect: Rect) => Rect;
|
|
112
|
+
} | undefined;
|
|
113
|
+
navigator?: {
|
|
114
|
+
element: HTMLElement;
|
|
115
|
+
drawPointList: (data: any) => void;
|
|
116
|
+
} | undefined;
|
|
117
|
+
tailoring: {
|
|
118
|
+
init: (data: {
|
|
119
|
+
left: number;
|
|
120
|
+
top: number;
|
|
121
|
+
height: number;
|
|
122
|
+
width: number;
|
|
123
|
+
now?: boolean;
|
|
124
|
+
color?: string;
|
|
125
|
+
}) => void;
|
|
126
|
+
};
|
|
127
|
+
}, KfbViewInterface | {
|
|
128
|
+
labelList?: {
|
|
129
|
+
id?: number | undefined;
|
|
130
|
+
parent_id?: number | undefined;
|
|
131
|
+
lineWidth?: number | undefined;
|
|
132
|
+
strokeStyle?: string | undefined;
|
|
133
|
+
fillStyle?: string | undefined;
|
|
134
|
+
fontSize?: number | undefined;
|
|
135
|
+
description?: string | undefined;
|
|
136
|
+
text?: string | undefined;
|
|
137
|
+
angle?: number | undefined;
|
|
138
|
+
measure?: boolean | undefined;
|
|
139
|
+
points?: {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
143
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
144
|
+
}[] | undefined;
|
|
145
|
+
tool?: string | undefined;
|
|
146
|
+
src?: string | undefined;
|
|
147
|
+
scale?: number | undefined;
|
|
148
|
+
region?: {
|
|
149
|
+
x: number;
|
|
150
|
+
y: number;
|
|
151
|
+
width: number;
|
|
152
|
+
height: number;
|
|
153
|
+
} | undefined;
|
|
154
|
+
move?: boolean | undefined;
|
|
155
|
+
resize?: boolean | undefined;
|
|
156
|
+
isROI?: boolean | undefined;
|
|
157
|
+
isClose?: boolean | undefined;
|
|
158
|
+
select?: boolean | undefined;
|
|
159
|
+
show?: boolean | undefined;
|
|
160
|
+
is_ai?: boolean | undefined;
|
|
161
|
+
custom?: boolean | undefined;
|
|
162
|
+
cls?: string | undefined;
|
|
163
|
+
score?: number | undefined;
|
|
164
|
+
imageUrl?: string | undefined;
|
|
165
|
+
__other__: any;
|
|
166
|
+
}[] | undefined;
|
|
167
|
+
viewer: {
|
|
168
|
+
viewport: {
|
|
169
|
+
setRotation: (angle?: number) => void;
|
|
170
|
+
toggleFlip: () => void;
|
|
171
|
+
getCenter: (center?: boolean) => import("@/components/KfbView/index.ts").Point;
|
|
172
|
+
panTo: (point: import("@/components/KfbView/index.ts").Point) => void;
|
|
173
|
+
viewportToImageZoom: (zoom: number) => number;
|
|
174
|
+
imageToViewportZoom: (zoom: number) => number;
|
|
175
|
+
zoomTo: (zoom: number) => void;
|
|
176
|
+
zoomBy: (zoom: number) => void;
|
|
177
|
+
applyConstraints: () => void;
|
|
178
|
+
containerSize: {
|
|
179
|
+
x: number;
|
|
180
|
+
y: number;
|
|
181
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
182
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
183
|
+
};
|
|
184
|
+
getZoom: (flag?: boolean) => number;
|
|
185
|
+
panBy: (point: import("@/components/KfbView/index.ts").Point, flag?: boolean) => void;
|
|
186
|
+
deltaPointsFromPixels: (point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point;
|
|
187
|
+
};
|
|
188
|
+
drawer: {
|
|
189
|
+
canvas: HTMLCanvasElement;
|
|
190
|
+
};
|
|
191
|
+
addHandler: (name: string, func: (e: import("@/components/KfbView/index.ts").KfbEvent) => void) => void;
|
|
192
|
+
removeHandler: (name: string, func: (e: import("@/components/KfbView/index.ts").KfbEvent) => void) => void;
|
|
193
|
+
forceRedraw: () => void;
|
|
194
|
+
world?: {
|
|
195
|
+
getItemAt: (number: number) => import("@/components/KfbView/index.ts").TiledImage;
|
|
196
|
+
tiledImage: {
|
|
197
|
+
draw: () => void;
|
|
198
|
+
tilesMatrix: Record<any, any>;
|
|
199
|
+
};
|
|
200
|
+
removeItem: (tile: import("@/components/KfbView/index.ts").TiledImage) => void;
|
|
201
|
+
} | undefined;
|
|
202
|
+
addTiledImage: (options: Record<any, any>) => void;
|
|
203
|
+
};
|
|
204
|
+
destroy?: (() => void) | undefined;
|
|
205
|
+
initLabelList?: ((data: Label[]) => void) | undefined;
|
|
206
|
+
$on?: ((event?: string, func?: (data: any) => any) => void) | undefined;
|
|
207
|
+
$options: Record<string, any>;
|
|
208
|
+
board?: {
|
|
209
|
+
startDraw: (options: any) => void;
|
|
210
|
+
endDraw: () => void;
|
|
211
|
+
} | undefined;
|
|
212
|
+
grid?: {
|
|
213
|
+
updated: (options: any) => void;
|
|
214
|
+
} | undefined;
|
|
215
|
+
graduation?: {
|
|
216
|
+
updated: (options: any) => void;
|
|
217
|
+
} | undefined;
|
|
218
|
+
area?: {
|
|
219
|
+
moveToLabel: (point: import("@/components/KfbView/index.ts").Point) => void;
|
|
220
|
+
getCenterPoint: (rect: Rect) => import("@/components/KfbView/index.ts").Point;
|
|
221
|
+
imageToViewerElementRectangle: (rect: Rect) => Rect;
|
|
222
|
+
} | undefined;
|
|
223
|
+
navigator?: {
|
|
224
|
+
element: HTMLElement;
|
|
225
|
+
drawPointList: (data: any) => void;
|
|
226
|
+
} | undefined;
|
|
227
|
+
tailoring: {
|
|
228
|
+
init: (data: {
|
|
229
|
+
left: number;
|
|
230
|
+
top: number;
|
|
231
|
+
height: number;
|
|
232
|
+
width: number;
|
|
233
|
+
now?: boolean;
|
|
234
|
+
color?: string;
|
|
235
|
+
}) => void;
|
|
236
|
+
};
|
|
237
|
+
}>;
|
|
238
|
+
degrees: Ref<number, number>;
|
|
239
|
+
zoom: Ref<number, number>;
|
|
240
|
+
forceRedraw: (process?: import("../toolbox/instances.ts").Process) => void;
|
|
241
|
+
toggleFlip: typeof toggleFlip;
|
|
242
|
+
startDraw: typeof startDraw;
|
|
243
|
+
endDraw: typeof endDraw;
|
|
244
|
+
shotScreen: (now?: boolean) => void;
|
|
245
|
+
info: typeof info;
|
|
246
|
+
scopeChange: typeof scopeChange;
|
|
247
|
+
updateGrid: typeof updateGrid;
|
|
248
|
+
updateGraduation: typeof updateGraduation;
|
|
249
|
+
updateNavigator: typeof updateNavigator;
|
|
250
|
+
fastMove: ({ name, value }: {
|
|
251
|
+
name: string;
|
|
252
|
+
value: any;
|
|
253
|
+
}) => void;
|
|
254
|
+
zoomTo: typeof zoomTo;
|
|
255
|
+
selectLabel: (label: Label) => void;
|
|
256
|
+
reloadLabelList: () => void;
|
|
257
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
258
|
+
tool: (action: string, value?: any) => any;
|
|
259
|
+
}, string, import("vue").PublicProps, Readonly<KfbProps> & Readonly<{
|
|
260
|
+
onTool?: ((action: string, value?: any) => any) | undefined;
|
|
261
|
+
}>, {
|
|
262
|
+
microscope: import("@/components/KfbView/index.ts").Microscope;
|
|
263
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
264
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
265
|
+
export default _default;
|
|
266
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
267
|
+
new (): {
|
|
268
|
+
$slots: S;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { Hotmap, KfbProps, KfbViewInterface, Point, TileParams } from "@/components/KfbView/index.ts";
|
|
3
|
+
export declare function useHotmap(props: KfbProps, kfbView: Ref<KfbViewInterface>): {
|
|
4
|
+
getHotmapUrl: (url: string, params: TileParams, hotmapInfo: Record<string, boolean>) => string | undefined;
|
|
5
|
+
hotmapImgs: Ref<{
|
|
6
|
+
url: string;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
img?: HTMLImageElement | undefined;
|
|
10
|
+
load: string;
|
|
11
|
+
}[], Hotmap[] | {
|
|
12
|
+
url: string;
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
img?: HTMLImageElement | undefined;
|
|
16
|
+
load: string;
|
|
17
|
+
}[]>;
|
|
18
|
+
handlerImage: (e: {
|
|
19
|
+
context: CanvasRenderingContext2D;
|
|
20
|
+
sourceWidth: number;
|
|
21
|
+
sourceHeight: number;
|
|
22
|
+
position: {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
original: Point;
|
|
26
|
+
};
|
|
27
|
+
size: Point;
|
|
28
|
+
initRendered: {
|
|
29
|
+
canvas: HTMLCanvasElement;
|
|
30
|
+
};
|
|
31
|
+
tile: {
|
|
32
|
+
getUrl: () => string;
|
|
33
|
+
};
|
|
34
|
+
pixelDensityRatio: number;
|
|
35
|
+
}) => void;
|
|
36
|
+
hotmapLine: Ref<number, number>;
|
|
37
|
+
lineMouseDown: (e: MouseEvent) => void;
|
|
38
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Process } from "@/components/toolbox/instances.ts";
|
|
2
|
+
import { KfbProps } from "@/components/KfbView/index.ts";
|
|
3
|
+
export declare function useImageProcess(props: KfbProps): {
|
|
4
|
+
imageProcess: {
|
|
5
|
+
r: number;
|
|
6
|
+
g: number;
|
|
7
|
+
b: number;
|
|
8
|
+
c: number;
|
|
9
|
+
s: number;
|
|
10
|
+
l: number;
|
|
11
|
+
ga: number;
|
|
12
|
+
};
|
|
13
|
+
matrixValues: import("vue").ComputedRef<string>;
|
|
14
|
+
saturateValues: import("vue").ComputedRef<string>;
|
|
15
|
+
forceRedraw: (process?: Process) => void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { KfbProps, KfbViewInterface, Label } from "@/components/KfbView/index.ts";
|
|
3
|
+
export declare function useLabel(props: KfbProps, kfbView: Ref<KfbViewInterface>): {
|
|
4
|
+
currentLabel: Ref<{
|
|
5
|
+
id?: number | undefined;
|
|
6
|
+
parent_id?: number | undefined;
|
|
7
|
+
lineWidth?: number | undefined;
|
|
8
|
+
strokeStyle?: string | undefined;
|
|
9
|
+
fillStyle?: string | undefined;
|
|
10
|
+
fontSize?: number | undefined;
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
text?: string | undefined;
|
|
13
|
+
angle?: number | undefined;
|
|
14
|
+
measure?: boolean | undefined;
|
|
15
|
+
points?: {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
19
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
tool?: string | undefined;
|
|
22
|
+
src?: string | undefined;
|
|
23
|
+
scale?: number | undefined;
|
|
24
|
+
region?: {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
} | undefined;
|
|
30
|
+
move?: boolean | undefined;
|
|
31
|
+
resize?: boolean | undefined;
|
|
32
|
+
isROI?: boolean | undefined;
|
|
33
|
+
isClose?: boolean | undefined;
|
|
34
|
+
select?: boolean | undefined;
|
|
35
|
+
show?: boolean | undefined;
|
|
36
|
+
is_ai?: boolean | undefined;
|
|
37
|
+
custom?: boolean | undefined;
|
|
38
|
+
cls?: string | undefined;
|
|
39
|
+
score?: number | undefined;
|
|
40
|
+
imageUrl?: string | undefined;
|
|
41
|
+
__other__: any;
|
|
42
|
+
} | undefined, Label | {
|
|
43
|
+
id?: number | undefined;
|
|
44
|
+
parent_id?: number | undefined;
|
|
45
|
+
lineWidth?: number | undefined;
|
|
46
|
+
strokeStyle?: string | undefined;
|
|
47
|
+
fillStyle?: string | undefined;
|
|
48
|
+
fontSize?: number | undefined;
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
text?: string | undefined;
|
|
51
|
+
angle?: number | undefined;
|
|
52
|
+
measure?: boolean | undefined;
|
|
53
|
+
points?: {
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
57
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
tool?: string | undefined;
|
|
60
|
+
src?: string | undefined;
|
|
61
|
+
scale?: number | undefined;
|
|
62
|
+
region?: {
|
|
63
|
+
x: number;
|
|
64
|
+
y: number;
|
|
65
|
+
width: number;
|
|
66
|
+
height: number;
|
|
67
|
+
} | undefined;
|
|
68
|
+
move?: boolean | undefined;
|
|
69
|
+
resize?: boolean | undefined;
|
|
70
|
+
isROI?: boolean | undefined;
|
|
71
|
+
isClose?: boolean | undefined;
|
|
72
|
+
select?: boolean | undefined;
|
|
73
|
+
show?: boolean | undefined;
|
|
74
|
+
is_ai?: boolean | undefined;
|
|
75
|
+
custom?: boolean | undefined;
|
|
76
|
+
cls?: string | undefined;
|
|
77
|
+
score?: number | undefined;
|
|
78
|
+
imageUrl?: string | undefined;
|
|
79
|
+
__other__: any;
|
|
80
|
+
} | undefined>;
|
|
81
|
+
initLabel: () => void;
|
|
82
|
+
selectLabel: (label: Label) => void;
|
|
83
|
+
reloadLabelList: () => void;
|
|
84
|
+
eventHandel: (type: string) => (label?: Label) => Promise<void>;
|
|
85
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { KfbViewInterface } from "@/components/KfbView/index.ts";
|
|
3
|
+
export declare function useMove(kfbView: Ref<KfbViewInterface>, zoom: Ref<number>): {
|
|
4
|
+
moveEvent: () => void;
|
|
5
|
+
fastMove: ({ name, value }: {
|
|
6
|
+
name: string;
|
|
7
|
+
value: any;
|
|
8
|
+
}) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { KfbViewInterface } from "@/components/KfbView/index.ts";
|
|
2
|
+
import { Ref, ShallowRef } from "vue";
|
|
3
|
+
interface PointerConfig {
|
|
4
|
+
panSensitivity: number;
|
|
5
|
+
zoomSensitivity: number;
|
|
6
|
+
damping: number;
|
|
7
|
+
minThreshold: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function usePointer(kfbView: Ref<KfbViewInterface>, mainKfbViewRef: ShallowRef<HTMLDivElement | null>, config?: Partial<PointerConfig>): {
|
|
10
|
+
setConfig: (newConfig: Partial<PointerConfig>) => void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Ref, type ShallowRef } from 'vue';
|
|
2
|
+
import { KfbProps, KfbViewInterface } from "@/components/KfbView/index.ts";
|
|
3
|
+
export declare function useSync(props: KfbProps, kfbView: Ref<KfbViewInterface>, kfbViewRef: ShallowRef<HTMLDivElement | null>): {
|
|
4
|
+
initSync: () => void;
|
|
5
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KfbViewInterface } from "@/components/KfbView/index.ts";
|
|
2
|
+
import type { Ref } from "vue";
|
|
3
|
+
import { Emits } from "@/instances.ts";
|
|
4
|
+
export declare function useTailor(emit: Emits, kfbView: Ref<KfbViewInterface>): {
|
|
5
|
+
tailorEvent: () => void;
|
|
6
|
+
shotScreen: (now?: boolean) => void;
|
|
7
|
+
};
|