@borurio-print/print-designer 1.0.24 → 1.0.25

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.
@@ -1,4 +1,4 @@
1
- import { i as Mc, f as Bs, g as Rs, r as Ic, a as Ec, b as zu, c as Cc, d as Fc, J as jc, Q as Oc, l as Bc, e as Rc, h as nf, T as Tc, j as Dc, k as qc } from "./index-CUO9kRYw.js";
1
+ import { i as Mc, f as Bs, g as Rs, r as Ic, a as Ec, b as zu, c as Cc, d as Fc, J as jc, Q as Oc, l as Bc, e as Rc, h as nf, T as Tc, j as Dc, k as qc } from "./index-BDkKqg10.js";
2
2
  function xe(r) {
3
3
  "@babel/helpers - typeof";
4
4
  return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -8800,7 +8800,7 @@ endobj\r
8800
8800
  var d = f.getContext("2d");
8801
8801
  d.fillStyle = "#fff", d.fillRect(0, 0, f.width, f.height);
8802
8802
  var g = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, x = this;
8803
- return (Xt.canvg ? Promise.resolve(Xt.canvg) : import("./index.es-B26OpeE5.js")).catch(function(N) {
8803
+ return (Xt.canvg ? Promise.resolve(Xt.canvg) : import("./index.es-DNGdrQBu.js")).catch(function(N) {
8804
8804
  return Promise.reject(new Error("Could not load canvg: " + N));
8805
8805
  }).then(function(N) {
8806
8806
  return N.default ? N.default : N;
@@ -18,6 +18,11 @@ export declare function createGeometrySnapshot(element: DesignerElement): Elemen
18
18
  * viewBox 使用毫米,所以该结果天然就是毫米,不需要手动除以画布缩放比例。
19
19
  */
20
20
  export declare function clientPointToSvgPoint(svg: SVGSVGElement, clientX: number, clientY: number): SvgPoint | null;
21
+ /**
22
+ * 按旋转后的真实外接边界修正元素位置。
23
+ * 当旋转后的元素可以完整放入画布时,保证四个角都不会越界。
24
+ */
25
+ export declare function clampElementPositionToCanvas(geometry: Pick<ElementGeometrySnapshot, 'xMm' | 'yMm' | 'widthMm' | 'heightMm' | 'rotation'>, canvasWidthMm: number, canvasHeightMm: number): Pick<ElementGeometrySnapshot, 'xMm' | 'yMm'>;
21
26
  /**
22
27
  * 计算元素移动结果,并按旋转后的真实外接边界限制在标签内部。
23
28
  */