@zhangqingcq/vgce 0.1.16 → 0.1.18

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.16",
3
+ "version": "0.1.18",
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>
@@ -206,6 +206,8 @@
206
206
  for (let a of e.attrs) {
207
207
  if (a.key === 'state') {
208
208
  t.defaultState = valFormat(a.val)
209
+ } else if (a.key === 'display') {
210
+ t.display = valFormat(a.val)
209
211
  } else if (t.props.hasOwnProperty(a.key)) {
210
212
  t.props[a.key].val = valFormat(a.val)
211
213
  }