@zhangqingcq/vgce 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +10 -10
- package/types/index.d.ts +4 -6
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zhangqingcq/vgce",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.20",
|
4
4
|
"description": "Vector graphics configure editor. svg组态编辑器。基于vue3.3+ts+element-plus+vite",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -25,14 +25,6 @@
|
|
25
25
|
}
|
26
26
|
},
|
27
27
|
"types": "types/index.d.ts",
|
28
|
-
"scripts": {
|
29
|
-
"dev": "vite",
|
30
|
-
"build": "run-p type-check build-only",
|
31
|
-
"preview": "vite preview",
|
32
|
-
"build-only": "vite build",
|
33
|
-
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
34
|
-
"lib": "vue-tsc --noEmit --skipLibCheck && vite build --mode lib"
|
35
|
-
},
|
36
28
|
"repository": {
|
37
29
|
"type": "git",
|
38
30
|
"url": "git+https://github.com/RickyHeaven/VGCE.git"
|
@@ -93,5 +85,13 @@
|
|
93
85
|
"node": ">=18.16.0",
|
94
86
|
"npm": ">=9.5.1",
|
95
87
|
"pnpm": ">=8.6.0"
|
88
|
+
},
|
89
|
+
"scripts": {
|
90
|
+
"dev": "vite",
|
91
|
+
"build": "run-p type-check build-only",
|
92
|
+
"preview": "vite preview",
|
93
|
+
"build-only": "vite build",
|
94
|
+
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
95
|
+
"lib": "vue-tsc --noEmit --skipLibCheck && vite build --mode lib"
|
96
96
|
}
|
97
|
-
}
|
97
|
+
}
|
package/types/index.d.ts
CHANGED
@@ -4,19 +4,17 @@
|
|
4
4
|
* @created 2023.07.10
|
5
5
|
*/
|
6
6
|
import { DefineComponent } from 'vue'
|
7
|
-
import type { IConfig } from '../src/config/types'
|
8
|
-
import type { IDataModel } from '../src/components/svg-editor/types'
|
9
7
|
|
10
8
|
export declare const SvgEditor: DefineComponent<{
|
11
9
|
data?: string
|
12
|
-
customToolbar?:
|
10
|
+
customToolbar?: any[]
|
13
11
|
saveFile?: boolean
|
14
|
-
onOnPreview?: (d:
|
15
|
-
onOnSave?: (d:
|
12
|
+
onOnPreview?: (d: Record<string, any>) => void
|
13
|
+
onOnSave?: (d: Record<string, any>) => void
|
16
14
|
onOnReturn?: () => void
|
17
15
|
}>
|
18
16
|
export declare const SvgViewer: DefineComponent<{
|
19
|
-
data?:
|
17
|
+
data?: Record<string, any>
|
20
18
|
canvasDrag?: boolean
|
21
19
|
onOnMessage?: (d: { topics: string, message: string }) => void
|
22
20
|
}>
|