mce 0.1.0
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/LICENSE +21 -0
- package/README.md +126 -0
- package/dist/components/Auxiliary.vue.d.ts +3 -0
- package/dist/components/Bottombar.vue.d.ts +13 -0
- package/dist/components/ContextMenu.vue.d.ts +25 -0
- package/dist/components/Drawboard.vue.d.ts +58 -0
- package/dist/components/Drawing.vue.d.ts +3 -0
- package/dist/components/Floatbar.vue.d.ts +54 -0
- package/dist/components/Frame.vue.d.ts +11 -0
- package/dist/components/Frames.vue.d.ts +3 -0
- package/dist/components/GoBackSelectedArea.vue.d.ts +3 -0
- package/dist/components/Hover.vue.d.ts +3 -0
- package/dist/components/Rulers.vue.d.ts +8 -0
- package/dist/components/Scrollbars.vue.d.ts +12 -0
- package/dist/components/Selector.vue.d.ts +197 -0
- package/dist/components/Starter.vue.d.ts +3 -0
- package/dist/components/Statusbar.vue.d.ts +3 -0
- package/dist/components/TextEditor.vue.d.ts +6 -0
- package/dist/components/shared/Dialog.vue.d.ts +58 -0
- package/dist/components/shared/Menu.vue.d.ts +71 -0
- package/dist/components/shared/Overlay.vue.d.ts +64 -0
- package/dist/components/shared/Ruler.vue.d.ts +17 -0
- package/dist/components/shared/Scrollbar.vue.d.ts +21 -0
- package/dist/components/shared/Tooltip.vue.d.ts +71 -0
- package/dist/components/shared/Transformable.vue.d.ts +79 -0
- package/dist/composables/editor.d.ts +3 -0
- package/dist/composables/index.d.ts +4 -0
- package/dist/composables/menu.d.ts +7 -0
- package/dist/composables/overlay.d.ts +60 -0
- package/dist/composables/strategy.d.ts +40 -0
- package/dist/editor.d.ts +29 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +5815 -0
- package/dist/indexeddb/IndexeddbProvider.d.ts +31 -0
- package/dist/indexeddb/index.d.ts +1 -0
- package/dist/indexeddb/indexeddb.d.ts +23 -0
- package/dist/models/Doc.d.ts +57 -0
- package/dist/models/Model.d.ts +32 -0
- package/dist/models/Workspace.d.ts +17 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/plugins/0.command.d.ts +27 -0
- package/dist/plugins/0.config/base.d.ts +30 -0
- package/dist/plugins/0.config.d.ts +16 -0
- package/dist/plugins/0.context.d.ts +32 -0
- package/dist/plugins/0.element.d.ts +14 -0
- package/dist/plugins/0.font.d.ts +18 -0
- package/dist/plugins/0.i18n.d.ts +13 -0
- package/dist/plugins/1.frame.d.ts +24 -0
- package/dist/plugins/1.hotkey.d.ts +39 -0
- package/dist/plugins/1.upload.d.ts +13 -0
- package/dist/plugins/2.box.d.ts +20 -0
- package/dist/plugins/2.exporter/0.json.d.ts +10 -0
- package/dist/plugins/2.exporter/image.d.ts +11 -0
- package/dist/plugins/2.exporter/pdf.d.ts +9 -0
- package/dist/plugins/2.exporter/pptx.d.ts +9 -0
- package/dist/plugins/2.exporter/video.d.ts +10 -0
- package/dist/plugins/2.exporter.d.ts +27 -0
- package/dist/plugins/2.loader/0.url.d.ts +2 -0
- package/dist/plugins/2.loader/image.d.ts +2 -0
- package/dist/plugins/2.loader/json.d.ts +2 -0
- package/dist/plugins/2.loader/pptx.d.ts +2 -0
- package/dist/plugins/2.loader/txt.d.ts +2 -0
- package/dist/plugins/2.loader.d.ts +23 -0
- package/dist/plugins/3.view.d.ts +12 -0
- package/dist/plugins/4.0.text.d.ts +11 -0
- package/dist/plugins/4.1.lock.d.ts +20 -0
- package/dist/plugins/4.2.element.d.ts +45 -0
- package/dist/plugins/4.3.frame.d.ts +21 -0
- package/dist/plugins/4.4.doc.d.ts +23 -0
- package/dist/plugins/align.d.ts +16 -0
- package/dist/plugins/arrange.d.ts +19 -0
- package/dist/plugins/auxiliary.d.ts +14 -0
- package/dist/plugins/clipboard.d.ts +22 -0
- package/dist/plugins/flip.d.ts +10 -0
- package/dist/plugins/frame.d.ts +14 -0
- package/dist/plugins/group.d.ts +14 -0
- package/dist/plugins/history.d.ts +21 -0
- package/dist/plugins/import.d.ts +15 -0
- package/dist/plugins/insert/image.d.ts +13 -0
- package/dist/plugins/insert/text.d.ts +14 -0
- package/dist/plugins/menu.d.ts +12 -0
- package/dist/plugins/move.d.ts +20 -0
- package/dist/plugins/new.d.ts +12 -0
- package/dist/plugins/open.d.ts +12 -0
- package/dist/plugins/preference.d.ts +16 -0
- package/dist/plugins/saveAs.d.ts +15 -0
- package/dist/plugins/select.d.ts +20 -0
- package/dist/plugins/snapshot.d.ts +17 -0
- package/dist/plugins/theme.d.ts +8 -0
- package/dist/plugins/ui.d.ts +16 -0
- package/dist/plugins/visibility.d.ts +14 -0
- package/dist/plugins/zoom.d.ts +32 -0
- package/dist/preset-plugins.d.ts +1 -0
- package/dist/sw.d.ts +1 -0
- package/dist/typed-global.d.ts +26 -0
- package/dist/typed-plugins.d.ts +58 -0
- package/dist/types/box.d.ts +9 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/BSTree/BSTree.d.ts +18 -0
- package/dist/utils/BSTree/BSTreeKV.d.ts +210 -0
- package/dist/utils/BSTree/LinkedList.d.ts +179 -0
- package/dist/utils/BSTree/Queue.d.ts +81 -0
- package/dist/utils/BSTree/index.d.ts +1 -0
- package/dist/utils/BSTree/utils.d.ts +47 -0
- package/dist/utils/box.d.ts +7 -0
- package/dist/utils/constants.d.ts +4 -0
- package/dist/utils/create.d.ts +3 -0
- package/dist/utils/helper.d.ts +1 -0
- package/dist/utils/image.d.ts +26 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/propsFactory.d.ts +57 -0
- package/dist/utils/random.d.ts +3 -0
- package/package.json +147 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021-PRESENT wxm
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<h1 align="center">mce</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://unpkg.com/mce">
|
|
5
|
+
<img src="https://img.shields.io/bundlephobia/minzip/mce" alt="Minzip">
|
|
6
|
+
</a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/mce">
|
|
8
|
+
<img src="https://img.shields.io/npm/v/mce.svg" alt="Version">
|
|
9
|
+
</a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/mce">
|
|
11
|
+
<img src="https://img.shields.io/npm/dm/mce" alt="Downloads">
|
|
12
|
+
</a>
|
|
13
|
+
<a href="https://github.com/qq15725/mce/issues">
|
|
14
|
+
<img src="https://img.shields.io/github/issues/qq15725/mce" alt="Issues">
|
|
15
|
+
</a>
|
|
16
|
+
<a href="https://github.com/qq15725/mce/blob/main/LICENSE">
|
|
17
|
+
<img src="https://img.shields.io/npm/l/mce.svg" alt="License">
|
|
18
|
+
</a>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
<p align="center">Modern canvas editor, based modern-canvas and Vue.js. only the ESM.</p>
|
|
22
|
+
|
|
23
|
+
## 📦 Install
|
|
24
|
+
|
|
25
|
+
```shell
|
|
26
|
+
npm i mce
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 🦄 Usage
|
|
30
|
+
|
|
31
|
+
```vue
|
|
32
|
+
<script setup lang="ts">
|
|
33
|
+
import { Drawboard, Editor } from 'mce'
|
|
34
|
+
import 'mce/styles'
|
|
35
|
+
|
|
36
|
+
const editor = new Editor({
|
|
37
|
+
theme: 'system',
|
|
38
|
+
language: 'en',
|
|
39
|
+
viewMode: 'edgeless',
|
|
40
|
+
checkerboard: true,
|
|
41
|
+
pixelGrid: true,
|
|
42
|
+
camera: true,
|
|
43
|
+
ruler: true,
|
|
44
|
+
scrollbar: true,
|
|
45
|
+
bottombar: true,
|
|
46
|
+
statusbar: true,
|
|
47
|
+
wheelZoom: false,
|
|
48
|
+
frameGap: 48,
|
|
49
|
+
typographyStrategy: 'autoHeight',
|
|
50
|
+
handleShape: 'rect',
|
|
51
|
+
zoomToFitOffset: { left: 0, top: 0, right: 0, bottom: 0 },
|
|
52
|
+
localDb: false,
|
|
53
|
+
upload: async (blob) => URL.createObjectURL(blob),
|
|
54
|
+
defaultFont: { family: 'SourceHanSansCN-Normal', src: '/SourceHanSansCN-Normal.woff' },
|
|
55
|
+
doc: {
|
|
56
|
+
children: [
|
|
57
|
+
{ foreground: '/example.png', style: { rotate: 60, left: 200, top: 10, width: 50, height: 50 } },
|
|
58
|
+
{ text: 'test', style: { rotate: 40, left: 100, top: 100, width: 60, height: 40, fontSize: 20, color: '#FF00FF' } },
|
|
59
|
+
{
|
|
60
|
+
style: { left: 200, top: 100, width: 100, height: 100, fontSize: 22 },
|
|
61
|
+
text: [
|
|
62
|
+
{
|
|
63
|
+
letterSpacing: 3,
|
|
64
|
+
fragments: [
|
|
65
|
+
{ content: 'He', color: '#00FF00', fontSize: 12 },
|
|
66
|
+
{ content: 'llo', color: '#000000' },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{ content: ', ', color: '#FF0000' },
|
|
70
|
+
{ content: 'World!', color: '#0000FF' },
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
editor.on('setDoc', () => {
|
|
78
|
+
editor.load('http://localhost:5173/example.jpg').then((el) => {
|
|
79
|
+
editor.addElement(el, {
|
|
80
|
+
position: { x: 500, y: 100 },
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
})
|
|
84
|
+
</script>
|
|
85
|
+
|
|
86
|
+
<template>
|
|
87
|
+
<div style="width: 100vw; height: 100vh">
|
|
88
|
+
<Drawboard :editor="editor">
|
|
89
|
+
<template #selector="{ box }">
|
|
90
|
+
Selector
|
|
91
|
+
</template>
|
|
92
|
+
|
|
93
|
+
<template #transformer="{ box }">
|
|
94
|
+
<text>Transformer(in SVG)</text>
|
|
95
|
+
</template>
|
|
96
|
+
|
|
97
|
+
<template #floatbar>
|
|
98
|
+
Floatbar
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<template #bottombar>
|
|
102
|
+
Bottombar
|
|
103
|
+
</template>
|
|
104
|
+
</Drawboard>
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
slot sub component
|
|
110
|
+
|
|
111
|
+
```vue
|
|
112
|
+
<script setup lang="ts">
|
|
113
|
+
import { useEditor } from 'mce'
|
|
114
|
+
const { activeElement } = useEditor()
|
|
115
|
+
</script>
|
|
116
|
+
|
|
117
|
+
<template>
|
|
118
|
+
<div>
|
|
119
|
+
{{ activeElement }}
|
|
120
|
+
</div>
|
|
121
|
+
</template>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Related
|
|
125
|
+
|
|
126
|
+
- [CodeSandbox Playground](https://codesandbox.io/p/devbox/thirsty-dawn-t2h69m)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare function updateLocation(): void;
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
'position'?: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {
|
|
10
|
+
updateLocation: typeof updateLocation;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
13
|
+
"update:position": (value: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
}) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
19
|
+
"onUpdate:position"?: ((value: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
}) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { OrientedBoundingBox } from '../types';
|
|
2
|
+
import { Editor } from '../editor';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
selector?: (props: {
|
|
5
|
+
box: OrientedBoundingBox;
|
|
6
|
+
}) => void;
|
|
7
|
+
transformer?: (props: {
|
|
8
|
+
box: Partial<OrientedBoundingBox>;
|
|
9
|
+
}) => void;
|
|
10
|
+
floatbar?: () => void;
|
|
11
|
+
bottombar?: () => void;
|
|
12
|
+
default?: () => void;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
15
|
+
editor: typeof Editor;
|
|
16
|
+
resizeStrategy: {
|
|
17
|
+
type: import("vue").PropType<import("..").ResizeStrategy>;
|
|
18
|
+
default: import("..").ResizeStrategy;
|
|
19
|
+
};
|
|
20
|
+
activeStrategy: {
|
|
21
|
+
type: import("vue").PropType<import("..").ActiveStrategy>;
|
|
22
|
+
default: import("..").ActiveStrategy;
|
|
23
|
+
};
|
|
24
|
+
hoverStrategy: {
|
|
25
|
+
type: import("vue").PropType<import("..").HoverStrategy>;
|
|
26
|
+
default: import("..").HoverStrategy;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
"dblclick:drawboard": (event: Event) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
editor: typeof Editor;
|
|
32
|
+
resizeStrategy: {
|
|
33
|
+
type: import("vue").PropType<import("..").ResizeStrategy>;
|
|
34
|
+
default: import("..").ResizeStrategy;
|
|
35
|
+
};
|
|
36
|
+
activeStrategy: {
|
|
37
|
+
type: import("vue").PropType<import("..").ActiveStrategy>;
|
|
38
|
+
default: import("..").ActiveStrategy;
|
|
39
|
+
};
|
|
40
|
+
hoverStrategy: {
|
|
41
|
+
type: import("vue").PropType<import("..").HoverStrategy>;
|
|
42
|
+
default: import("..").HoverStrategy;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{
|
|
45
|
+
"onDblclick:drawboard"?: ((event: Event) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
resizeStrategy: import("..").ResizeStrategy;
|
|
48
|
+
activeStrategy: import("..").ActiveStrategy;
|
|
49
|
+
hoverStrategy: import("..").HoverStrategy;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
51
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare function updateLocation(): void;
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
location: {
|
|
8
|
+
type: import("vue").PropType<import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start">;
|
|
9
|
+
default: NonNullable<import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start">;
|
|
10
|
+
};
|
|
11
|
+
offset: {
|
|
12
|
+
type: import("vue").PropType<number>;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
target: import("vue").PropType<{
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
} | import("@floating-ui/vue").ReferenceElement>;
|
|
19
|
+
attach: {
|
|
20
|
+
type: import("vue").PropType<string | boolean | Element | null | undefined>;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
}>, {
|
|
24
|
+
updateLocation: typeof updateLocation;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
location: {
|
|
27
|
+
type: import("vue").PropType<import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start">;
|
|
28
|
+
default: NonNullable<import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start">;
|
|
29
|
+
};
|
|
30
|
+
offset: {
|
|
31
|
+
type: import("vue").PropType<number>;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
target: import("vue").PropType<{
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
} | import("@floating-ui/vue").ReferenceElement>;
|
|
38
|
+
attach: {
|
|
39
|
+
type: import("vue").PropType<string | boolean | Element | null | undefined>;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
location: import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start";
|
|
44
|
+
attach: string | boolean | Element | null | undefined;
|
|
45
|
+
offset: number;
|
|
46
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Element2D } from 'modern-canvas';
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
modelValue: Element2D;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: Element2D) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: Element2D) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
size: number;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
infinite?: boolean;
|
|
3
|
+
offset?: number;
|
|
4
|
+
size?: number;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number;
|
|
8
|
+
offset: number;
|
|
9
|
+
infinite: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { AxisAlignedBoundingBox, OrientedBoundingBox } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
resizeStrategy?: 'free' | 'aspectRatio' | 'diagonalAspectRatio';
|
|
4
|
+
selectedArea?: AxisAlignedBoundingBox;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_12: {
|
|
7
|
+
box: {
|
|
8
|
+
left: number;
|
|
9
|
+
top: number;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
rotate: number;
|
|
13
|
+
};
|
|
14
|
+
}, __VLS_14: {
|
|
15
|
+
box: OrientedBoundingBox;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
transformable?: (props: typeof __VLS_12) => any;
|
|
19
|
+
} & {
|
|
20
|
+
default?: (props: typeof __VLS_14) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
23
|
+
transformable: Readonly<import("vue").ShallowRef<({
|
|
24
|
+
$: import("vue").ComponentInternalInstance;
|
|
25
|
+
$data: {};
|
|
26
|
+
$props: {
|
|
27
|
+
readonly tag?: string | any;
|
|
28
|
+
readonly modelValue?: Partial<OrientedBoundingBox> | undefined;
|
|
29
|
+
readonly moveable?: boolean | undefined;
|
|
30
|
+
readonly rotatable?: boolean | undefined;
|
|
31
|
+
readonly resizable?: boolean | undefined;
|
|
32
|
+
readonly threshold?: number | undefined;
|
|
33
|
+
readonly resizeStrategy?: "free" | "aspectRatio" | "diagonalAspectRatio" | undefined;
|
|
34
|
+
readonly handleStrategy?: "default" | "point" | undefined;
|
|
35
|
+
readonly handleShape?: "rect" | "circle" | undefined;
|
|
36
|
+
readonly color?: string | undefined;
|
|
37
|
+
readonly handleColor?: string | undefined;
|
|
38
|
+
readonly visibility?: "visible" | "none" | "auto" | undefined;
|
|
39
|
+
readonly handles?: ("move" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right")[] | undefined;
|
|
40
|
+
readonly initialSize?: boolean | undefined;
|
|
41
|
+
readonly borderStyle?: "solid" | "dashed" | undefined;
|
|
42
|
+
readonly getTipText?: ((type: "rotate" | "resize") => string) | undefined;
|
|
43
|
+
readonly onMove?: ((args_0: OrientedBoundingBox, args_1: OrientedBoundingBox) => any) | undefined;
|
|
44
|
+
readonly onEnd?: ((args_0: OrientedBoundingBox) => any) | undefined;
|
|
45
|
+
readonly onStart?: ((args_0: OrientedBoundingBox) => any) | undefined;
|
|
46
|
+
readonly "onUpdate:modelValue"?: ((args_0: OrientedBoundingBox) => any) | undefined;
|
|
47
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
48
|
+
$attrs: {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
$refs: {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
};
|
|
54
|
+
$slots: Readonly<{
|
|
55
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
58
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
59
|
+
$host: Element | null;
|
|
60
|
+
$emit: ((event: "move", args_0: OrientedBoundingBox, args_1: OrientedBoundingBox) => void) & ((event: "end", args_0: OrientedBoundingBox) => void) & ((event: "start", args_0: OrientedBoundingBox) => void) & ((event: "update:modelValue", args_0: OrientedBoundingBox) => void);
|
|
61
|
+
$el: any;
|
|
62
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
63
|
+
tag?: string | any;
|
|
64
|
+
modelValue?: Partial<OrientedBoundingBox>;
|
|
65
|
+
moveable?: boolean;
|
|
66
|
+
rotatable?: boolean;
|
|
67
|
+
resizable?: boolean;
|
|
68
|
+
threshold?: number;
|
|
69
|
+
resizeStrategy?: "free" | "aspectRatio" | "diagonalAspectRatio";
|
|
70
|
+
handleStrategy?: "default" | "point";
|
|
71
|
+
handleShape?: "rect" | "circle";
|
|
72
|
+
color?: string;
|
|
73
|
+
handleColor?: string;
|
|
74
|
+
visibility?: "visible" | "none" | "auto";
|
|
75
|
+
handles?: ("move" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right")[];
|
|
76
|
+
initialSize?: boolean;
|
|
77
|
+
borderStyle?: "solid" | "dashed";
|
|
78
|
+
getTipText?: (type: "rotate" | "resize") => string;
|
|
79
|
+
}> & Readonly<{
|
|
80
|
+
onMove?: ((args_0: OrientedBoundingBox, args_1: OrientedBoundingBox) => any) | undefined;
|
|
81
|
+
onEnd?: ((args_0: OrientedBoundingBox) => any) | undefined;
|
|
82
|
+
onStart?: ((args_0: OrientedBoundingBox) => any) | undefined;
|
|
83
|
+
"onUpdate:modelValue"?: ((args_0: OrientedBoundingBox) => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
start: (event?: MouseEvent, index?: number) => boolean;
|
|
86
|
+
activeHandle: import("vue").Ref<("move" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right") | undefined, ("move" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right") | undefined>;
|
|
87
|
+
transforming: import("vue").Ref<boolean, boolean>;
|
|
88
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
89
|
+
move: (args_0: OrientedBoundingBox, args_1: OrientedBoundingBox) => any;
|
|
90
|
+
end: (args_0: OrientedBoundingBox) => any;
|
|
91
|
+
start: (args_0: OrientedBoundingBox) => any;
|
|
92
|
+
"update:modelValue": (args_0: OrientedBoundingBox) => any;
|
|
93
|
+
}, string, {
|
|
94
|
+
color: string;
|
|
95
|
+
visibility: "visible" | "none" | "auto";
|
|
96
|
+
resizeStrategy: "free" | "aspectRatio" | "diagonalAspectRatio";
|
|
97
|
+
tag: string | any;
|
|
98
|
+
moveable: boolean;
|
|
99
|
+
rotatable: boolean;
|
|
100
|
+
resizable: boolean;
|
|
101
|
+
threshold: number;
|
|
102
|
+
handleStrategy: "default" | "point";
|
|
103
|
+
handleColor: string;
|
|
104
|
+
handles: ("move" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right")[];
|
|
105
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
106
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
107
|
+
created?: (() => void) | (() => void)[];
|
|
108
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
109
|
+
mounted?: (() => void) | (() => void)[];
|
|
110
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
111
|
+
updated?: (() => void) | (() => void)[];
|
|
112
|
+
activated?: (() => void) | (() => void)[];
|
|
113
|
+
deactivated?: (() => void) | (() => void)[];
|
|
114
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
115
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
116
|
+
destroyed?: (() => void) | (() => void)[];
|
|
117
|
+
unmounted?: (() => void) | (() => void)[];
|
|
118
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
119
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
120
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
121
|
+
};
|
|
122
|
+
$forceUpdate: () => void;
|
|
123
|
+
$nextTick: typeof import("vue").nextTick;
|
|
124
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
125
|
+
} & Readonly<{
|
|
126
|
+
color: string;
|
|
127
|
+
visibility: "visible" | "none" | "auto";
|
|
128
|
+
resizeStrategy: "free" | "aspectRatio" | "diagonalAspectRatio";
|
|
129
|
+
tag: string | any;
|
|
130
|
+
moveable: boolean;
|
|
131
|
+
rotatable: boolean;
|
|
132
|
+
resizable: boolean;
|
|
133
|
+
threshold: number;
|
|
134
|
+
handleStrategy: "default" | "point";
|
|
135
|
+
handleColor: string;
|
|
136
|
+
handles: ("move" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right")[];
|
|
137
|
+
}> & Omit<Readonly<{
|
|
138
|
+
tag?: string | any;
|
|
139
|
+
modelValue?: Partial<OrientedBoundingBox>;
|
|
140
|
+
moveable?: boolean;
|
|
141
|
+
rotatable?: boolean;
|
|
142
|
+
resizable?: boolean;
|
|
143
|
+
threshold?: number;
|
|
144
|
+
resizeStrategy?: "free" | "aspectRatio" | "diagonalAspectRatio";
|
|
145
|
+
handleStrategy?: "default" | "point";
|
|
146
|
+
handleShape?: "rect" | "circle";
|
|
147
|
+
color?: string;
|
|
148
|
+
handleColor?: string;
|
|
149
|
+
visibility?: "visible" | "none" | "auto";
|
|
150
|
+
handles?: ("move" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right")[];
|
|
151
|
+
initialSize?: boolean;
|
|
152
|
+
borderStyle?: "solid" | "dashed";
|
|
153
|
+
getTipText?: (type: "rotate" | "resize") => string;
|
|
154
|
+
}> & Readonly<{
|
|
155
|
+
onMove?: ((args_0: OrientedBoundingBox, args_1: OrientedBoundingBox) => any) | undefined;
|
|
156
|
+
onEnd?: ((args_0: OrientedBoundingBox) => any) | undefined;
|
|
157
|
+
onStart?: ((args_0: OrientedBoundingBox) => any) | undefined;
|
|
158
|
+
"onUpdate:modelValue"?: ((args_0: OrientedBoundingBox) => any) | undefined;
|
|
159
|
+
}>, "start" | "transforming" | "activeHandle" | ("color" | "visibility" | "resizeStrategy" | "tag" | "moveable" | "rotatable" | "resizable" | "threshold" | "handleStrategy" | "handleColor" | "handles")> & import("vue").ShallowUnwrapRef<{
|
|
160
|
+
start: (event?: MouseEvent, index?: number) => boolean;
|
|
161
|
+
activeHandle: import("vue").Ref<("move" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right") | undefined, ("move" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right") | undefined>;
|
|
162
|
+
transforming: import("vue").Ref<boolean, boolean>;
|
|
163
|
+
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
164
|
+
$slots: {
|
|
165
|
+
default?: (props: {
|
|
166
|
+
value: Partial<OrientedBoundingBox> | undefined;
|
|
167
|
+
moveProps: {
|
|
168
|
+
onPointerdown: (event?: MouseEvent, index?: number) => boolean;
|
|
169
|
+
style: {
|
|
170
|
+
cursor: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
start: (event?: MouseEvent, index?: number) => boolean;
|
|
174
|
+
}) => any;
|
|
175
|
+
} & {
|
|
176
|
+
svg?: (props: {
|
|
177
|
+
box: {
|
|
178
|
+
left: number;
|
|
179
|
+
top: number;
|
|
180
|
+
width: number;
|
|
181
|
+
height: number;
|
|
182
|
+
rotate: number;
|
|
183
|
+
};
|
|
184
|
+
}) => any;
|
|
185
|
+
};
|
|
186
|
+
}) | null>>;
|
|
187
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
188
|
+
selectedArea: AxisAlignedBoundingBox;
|
|
189
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
190
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
191
|
+
declare const _default: typeof __VLS_export;
|
|
192
|
+
export default _default;
|
|
193
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
194
|
+
new (): {
|
|
195
|
+
$slots: S;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TextEditor as _TextEditor } from 'modern-text/web-components';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
3
|
+
textEditor: import("vue").Ref<_TextEditor | undefined, _TextEditor | undefined>;
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare function updateLocation(): void;
|
|
2
|
+
declare var __VLS_8: {
|
|
3
|
+
props: {
|
|
4
|
+
ref: (el: any) => any;
|
|
5
|
+
};
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
}, __VLS_10: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
activator?: (props: typeof __VLS_8) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_10) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
|
+
location: import("vue").PropType<import("@floating-ui/vue").Side | import("@floating-ui/vue").AlignedPlacement>;
|
|
15
|
+
offset: NumberConstructor;
|
|
16
|
+
target: import("vue").PropType<{
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
} | import("@floating-ui/vue").ReferenceElement>;
|
|
20
|
+
attach: {
|
|
21
|
+
type: import("vue").PropType<string | boolean | Element | null | undefined>;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
modelValue: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
};
|
|
27
|
+
}>, {
|
|
28
|
+
isActive: import("vue").ModelRef<boolean | undefined, string, boolean | undefined, boolean | undefined>;
|
|
29
|
+
updateLocation: typeof updateLocation;
|
|
30
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
location: import("vue").PropType<import("@floating-ui/vue").Side | import("@floating-ui/vue").AlignedPlacement>;
|
|
34
|
+
offset: NumberConstructor;
|
|
35
|
+
target: import("vue").PropType<{
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
} | import("@floating-ui/vue").ReferenceElement>;
|
|
39
|
+
attach: {
|
|
40
|
+
type: import("vue").PropType<string | boolean | Element | null | undefined>;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
modelValue: {
|
|
44
|
+
type: import("vue").PropType<boolean>;
|
|
45
|
+
};
|
|
46
|
+
}>> & Readonly<{
|
|
47
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
attach: string | boolean | Element | null | undefined;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
51
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|