@zhangqingcq/vgce 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangqingcq/vgce",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Vector graphics configure editor. svg组态编辑器。基于vue3.3+ts+element-plus+vite",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/types/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { DefineComponent } from 'vue'
8
8
  export declare const SvgEditor: DefineComponent<{
9
9
  data?: string
10
10
  customToolbar?: any[]
11
+ vueComp?: Record<string, any>
11
12
  saveFile?: boolean
12
13
  onOnPreview?: (d: Record<string, any>) => void
13
14
  onOnSave?: (d: Record<string, any>) => void
@@ -15,11 +16,14 @@ export declare const SvgEditor: DefineComponent<{
15
16
  }>
16
17
  export declare const SvgViewer: DefineComponent<{
17
18
  data?: Record<string, any>
19
+ vueComp?: Record<string, any>
18
20
  canvasDrag?: boolean
19
- onOnMessage?: (d: { topics: string, message: string }) => void
21
+ showCanvasInfo?: boolean
22
+ onOnMessage?: (d: { topics: string; message: string }) => void
23
+ onOnEvent?: (d: { event: Record<string, any>; target: Record<string, any> }) => void
20
24
  }>
21
25
 
22
26
  export default {
23
27
  SvgEditor,
24
28
  SvgViewer
25
- }
29
+ }