@zhangqingcq/vgce 0.1.34 → 0.1.35

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/vgce.js CHANGED
@@ -42831,12 +42831,13 @@ const t = function() {
42831
42831
  vueComp: {},
42832
42832
  data: {},
42833
42833
  canvasDrag: { type: Boolean, default: !0 },
42834
+ canvasZoom: { type: Boolean, default: !0 },
42834
42835
  showCanvasInfo: { type: Boolean, default: !0 }
42835
42836
  },
42836
42837
  emits: ["onMessage", "onEvent"],
42837
42838
  setup(i, { expose: r, emit: n }) {
42838
42839
  useCssVars((L) => ({
42839
- "02d5661c": unref(f)
42840
+ aaaba37c: unref(f)
42840
42841
  })), setEditorLoadTime();
42841
42842
  const o = n, a = i;
42842
42843
  let u = t();
@@ -42906,7 +42907,7 @@ const t = function() {
42906
42907
  };
42907
42908
  };
42908
42909
  function g(L) {
42909
- L != null && L.wheelDelta && (L.wheelDelta > 0 ? (d.config.svg.scale = myFixed(d.config.svg.scale + 0.1, 1), getZoomPosition(L, d.config.svg.scale, d.layout_center, !0)) : d.config.svg.scale > 0.1 && (d.config.svg.scale = myFixed(d.config.svg.scale - 0.1, 1), getZoomPosition(L, d.config.svg.scale, d.layout_center, !1)));
42910
+ a.canvasZoom && L != null && L.wheelDelta && (L.wheelDelta > 0 ? (d.config.svg.scale = myFixed(d.config.svg.scale + 0.1, 1), getZoomPosition(L, d.config.svg.scale, d.layout_center, !0)) : d.config.svg.scale > 0.1 && (d.config.svg.scale = myFixed(d.config.svg.scale - 0.1, 1), getZoomPosition(L, d.config.svg.scale, d.layout_center, !1)));
42910
42911
  }
42911
42912
  const _ = (L, O, M) => ({
42912
42913
  x: L.x - L.width / 2 * O + L.width / 2,
@@ -43120,7 +43121,7 @@ const t = function() {
43120
43121
  ])
43121
43122
  ], 36));
43122
43123
  }
43123
- }), svgViewer_vue_vue_type_style_index_0_scoped_4efd4ff9_lang = "", svgViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-4efd4ff9"]]);
43124
+ }), svgViewer_vue_vue_type_style_index_0_scoped_b537fcb2_lang = "", svgViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-b537fcb2"]]);
43124
43125
  export {
43125
43126
  index as SvgEditor,
43126
43127
  svgViewer as SvgViewer