@nightshadeui/canvas 2.11.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/dist/CanvasBoxSelect.d.ts +25 -0
- package/dist/CanvasConfig.d.ts +9 -0
- package/dist/CanvasController.d.ts +29 -0
- package/dist/CanvasEvents.d.ts +13 -0
- package/dist/CanvasInputState.d.ts +23 -0
- package/dist/CanvasMove.d.ts +13 -0
- package/dist/CanvasObjectController.d.ts +98 -0
- package/dist/CanvasObjectRegistry.d.ts +8 -0
- package/dist/CanvasPan.d.ts +11 -0
- package/dist/CanvasSelection.d.ts +17 -0
- package/dist/CanvasSpace.d.ts +19 -0
- package/dist/CanvasUiEvents.d.ts +18 -0
- package/dist/CanvasViewport.d.ts +39 -0
- package/dist/CanvasZoom.d.ts +11 -0
- package/dist/canvas.css +1 -0
- package/dist/canvas.mjs +2171 -0
- package/dist/components/CanvasBoxSelect.vue.d.ts +12 -0
- package/dist/components/CanvasObject.vue.d.ts +115 -0
- package/dist/components/CanvasObjectResize.vue.d.ts +20 -0
- package/dist/components/CanvasView.vue.d.ts +26 -0
- package/dist/components/DebugCoords.vue.d.ts +19 -0
- package/dist/index.d.ts +18 -0
- package/dist/types.d.ts +2 -0
- package/package.json +31 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
canvas: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
canvas: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
canvas: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
objectId: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
pos: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
isSelected: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
selectable: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
movable: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
snapToGrid: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
resizable: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
bounds: {
|
|
35
|
+
type: ArrayConstructor;
|
|
36
|
+
};
|
|
37
|
+
}>, {}, {
|
|
38
|
+
canvasObject: null;
|
|
39
|
+
}, {
|
|
40
|
+
coords(): any;
|
|
41
|
+
slotProps(): {
|
|
42
|
+
canvas: Record<string, any>;
|
|
43
|
+
objectId: string;
|
|
44
|
+
isSelected: any;
|
|
45
|
+
coords: any;
|
|
46
|
+
pos: Record<string, any>;
|
|
47
|
+
};
|
|
48
|
+
resizeDirections(): any;
|
|
49
|
+
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:pos" | "update:isSelected")[], "update:pos" | "update:isSelected", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
50
|
+
canvas: {
|
|
51
|
+
type: ObjectConstructor;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
objectId: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
pos: {
|
|
59
|
+
type: ObjectConstructor;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
isSelected: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
selectable: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
movable: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
snapToGrid: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
resizable: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
bounds: {
|
|
83
|
+
type: ArrayConstructor;
|
|
84
|
+
};
|
|
85
|
+
}>> & Readonly<{
|
|
86
|
+
"onUpdate:pos"?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
"onUpdate:isSelected"?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
}>, {
|
|
89
|
+
isSelected: boolean;
|
|
90
|
+
selectable: boolean;
|
|
91
|
+
movable: boolean;
|
|
92
|
+
snapToGrid: boolean;
|
|
93
|
+
resizable: string;
|
|
94
|
+
}, {}, {
|
|
95
|
+
CanvasObjectResize: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
96
|
+
canvasObject: {
|
|
97
|
+
type: ObjectConstructor;
|
|
98
|
+
required: true;
|
|
99
|
+
};
|
|
100
|
+
direction: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
required: true;
|
|
103
|
+
};
|
|
104
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
105
|
+
canvasObject: {
|
|
106
|
+
type: ObjectConstructor;
|
|
107
|
+
required: true;
|
|
108
|
+
};
|
|
109
|
+
direction: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
required: true;
|
|
112
|
+
};
|
|
113
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
114
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
115
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
canvasObject: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
direction: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
canvasObject: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
direction: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
canvas: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {
|
|
7
|
+
onCanvasUiClick(): void;
|
|
8
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
canvas: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {
|
|
14
|
+
CanvasBoxSelect: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
15
|
+
canvas: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
canvas: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
controller: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {
|
|
7
|
+
page(): any;
|
|
8
|
+
viewport(): any;
|
|
9
|
+
canvas(): any;
|
|
10
|
+
local(): any;
|
|
11
|
+
}, {
|
|
12
|
+
format(pos: any): string;
|
|
13
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
controller: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export default _default;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as CanvasBoxSelect } from './components/CanvasBoxSelect.vue';
|
|
2
|
+
import { default as CanvasObject } from './components/CanvasObject.vue';
|
|
3
|
+
import { default as CanvasView } from './components/CanvasView.vue';
|
|
4
|
+
import { default as DebugCoords } from './components/DebugCoords.vue';
|
|
5
|
+
export * from './CanvasBoxSelect.js';
|
|
6
|
+
export * from './CanvasConfig.js';
|
|
7
|
+
export * from './CanvasController.js';
|
|
8
|
+
export * from './CanvasEvents.js';
|
|
9
|
+
export * from './CanvasInputState.js';
|
|
10
|
+
export * from './CanvasObjectController.js';
|
|
11
|
+
export * from './CanvasObjectRegistry.js';
|
|
12
|
+
export * from './CanvasPan.js';
|
|
13
|
+
export * from './CanvasSelection.js';
|
|
14
|
+
export * from './CanvasSpace.js';
|
|
15
|
+
export * from './CanvasUiEvents.js';
|
|
16
|
+
export * from './CanvasViewport.js';
|
|
17
|
+
export * from './CanvasZoom.js';
|
|
18
|
+
export { CanvasBoxSelect, CanvasObject, CanvasView, DebugCoords, };
|
package/dist/types.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nightshadeui/canvas",
|
|
3
|
+
"version": "2.11.0",
|
|
4
|
+
"description": "Nightshade canvas viewport primitives",
|
|
5
|
+
"author": "Boris Okunskiy",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/canvas.mjs"
|
|
12
|
+
},
|
|
13
|
+
"./src": "./src/index.ts"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build:watch": "vite build --watch",
|
|
20
|
+
"build": "NODE_ENV=production vite build"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"vue": "^3.5.22"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@nightshadeui/util": "2.11.0",
|
|
27
|
+
"@luminable/init-decorator": "^1.3.5",
|
|
28
|
+
"mesh-ioc": "^4.3.1",
|
|
29
|
+
"nanoevent": "^1.0.0"
|
|
30
|
+
}
|
|
31
|
+
}
|