template-designer 0.3.6 → 0.3.7

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.
@@ -7913,6 +7913,10 @@ function kF(e, A) {
7913
7913
  const o = n.props.ImageSrc;
7914
7914
  typeof o == "object" && (o != null && o.uploadResult ? n.props.ImageSrc = o.uploadResult : o.fileSrc && (n.props.ImageSrc = o.fileSrc));
7915
7915
  }
7916
+ if (n.type === "line" && n.props) {
7917
+ const { x: o, y: i, width: l, height: s, rotation: c = 0 } = n.props, u = c * Math.PI / 180, d = Math.cos(u), p = Math.sin(u), B = o + l * d, f = i + l * p;
7918
+ n.props.x1 = Math.round(B * 100) / 100, n.props.y1 = Math.round(f * 100) / 100;
7919
+ }
7916
7920
  }), {
7917
7921
  ...A,
7918
7922
  items: t