@zhangqingcq/vgce 0.1.15 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangqingcq/vgce",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Vector graphics configure editor. svg组态编辑器。基于vue3.3+ts+element-plus+vite",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -164,7 +164,9 @@
164
164
  <div>在画布空白区域按住右键可拖动画布,右侧面板‘图纸’栏可微调或重置位置</div>
165
165
  <div class="el-divider el-divider--horizontal" role="separator" style="--el-border-style: solid"></div>
166
166
  <div class="font-bold mb-10px text-15px guide-title">画布缩放</div>
167
- <div>在画布空白区使用鼠标滚轮或者右侧面板‘图纸’栏可控制画布缩放</div>
167
+ <div
168
+ >在画布中使用鼠标滚轮或者右侧面板‘图纸’栏可控制画布缩放,鼠标滚轮以鼠标位置为缩放中心,图纸栏以图纸原点(默认在左上角)为缩放中心</div
169
+ >
168
170
  <div class="el-divider el-divider--horizontal" role="separator" style="--el-border-style: solid"></div>
169
171
  <div class="font-bold mb-10px text-15px guide-title">标尺辅助线</div>
170
172
  <div>在标尺区域按住鼠标左键并拖动即可创建标尺辅助线,将标尺辅助线拖动到标尺区域即可删除标尺辅助线</div>
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
+ }