@snowcone-app/canvas 0.38.0 → 0.39.0
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/{CanvasRenderer-D-E5WWLm.js → CanvasRenderer-COO5UXtZ.js} +704 -669
- package/dist/CanvasRenderer-COO5UXtZ.js.map +1 -0
- package/dist/{CanvasStateV1-C9LQt2J0.js → CanvasStateV1-CJJff7Ci.js} +315 -314
- package/dist/{CanvasStateV1-C9LQt2J0.js.map → CanvasStateV1-CJJff7Ci.js.map} +1 -1
- package/dist/{EditorCanvasImpl-BnxEbr2p.js → EditorCanvasImpl-C_72UKu3.js} +3 -3
- package/dist/{EditorCanvasImpl-BnxEbr2p.js.map → EditorCanvasImpl-C_72UKu3.js.map} +1 -1
- package/dist/FontAnalyzer-DWHS41ba.js.map +1 -1
- package/dist/{SnowconeCanvas-CWSPyqqj.js → SnowconeCanvas-C-YbGCcQ.js} +4 -4
- package/dist/{SnowconeCanvas-CWSPyqqj.js.map → SnowconeCanvas-C-YbGCcQ.js.map} +1 -1
- package/dist/advanced.mjs +358 -360
- package/dist/advanced.mjs.map +1 -1
- package/dist/components/VisualGuideOverlay.d.ts +4 -1
- package/dist/components/embed-realtime/usePieceGuideBundle.d.ts +2 -0
- package/dist/{embed-SOFUZlGB.js → embed-DtlgX9iG.js} +5 -5
- package/dist/{embed-SOFUZlGB.js.map → embed-DtlgX9iG.js.map} +1 -1
- package/dist/embed.mjs +3 -3
- package/dist/index.mjs +4 -4
- package/dist/internals.mjs +2 -2
- package/dist/rendering/PieceGuideRenderer.d.ts +4 -1
- package/dist/state/CanvasStateV1.d.ts +3 -3
- package/dist/{template-fields-CBLHgW7G.js → template-fields-Dltc4Ztb.js} +2 -2
- package/dist/{template-fields-CBLHgW7G.js.map → template-fields-Dltc4Ztb.js.map} +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/{usePieceGuideBundle-C7r06a_x.js → usePieceGuideBundle-Cab2gRnn.js} +19 -16
- package/dist/usePieceGuideBundle-Cab2gRnn.js.map +1 -0
- package/dist/utils/pieceRotation.d.ts +35 -0
- package/dist/{validation-BG-V98h0.js → validation-Dh9sVEb9.js} +1428 -1430
- package/dist/validation-Dh9sVEb9.js.map +1 -0
- package/example/package.json +1 -1
- package/package.json +1 -1
- package/dist/CanvasRenderer-D-E5WWLm.js.map +0 -1
- package/dist/usePieceGuideBundle-C7r06a_x.js.map +0 -1
- package/dist/validation-BG-V98h0.js.map +0 -1
|
@@ -81,8 +81,11 @@ export interface OverlayPiece {
|
|
|
81
81
|
* fallback safe area entirely.
|
|
82
82
|
*/
|
|
83
83
|
safeAreaInsetPx?: number;
|
|
84
|
-
/** Clockwise rotation in degrees about the piece center. Default 0. */
|
|
84
|
+
/** Clockwise rotation in degrees about the piece center (any multiple of 45). Default 0. */
|
|
85
85
|
rotation?: number;
|
|
86
|
+
/** Natural (unrotated) size; required when `rotation` isn't a right angle (utils/pieceRotation.ts). */
|
|
87
|
+
naturalWidth?: number;
|
|
88
|
+
naturalHeight?: number;
|
|
86
89
|
}
|
|
87
90
|
export interface VisualGuideOverlayStyle {
|
|
88
91
|
bleedFill?: string;
|
|
@@ -4,10 +4,10 @@ import { jsx as g, jsxs as U, Fragment as lt } from "react/jsx-runtime";
|
|
|
4
4
|
import { useContext as ct, createContext as ut, useRef as C, useState as D, useMemo as A, useCallback as G, useLayoutEffect as ae, useEffect as L, useSyncExternalStore as J, Component as mt, forwardRef as Ae, useId as we, memo as pt, isValidElement as De } from "react";
|
|
5
5
|
import { assertVariantSelected as ft, RenderSession as ht, createCartDetail as gt } from "@snowcone-app/sdk";
|
|
6
6
|
import { s as ee, B as yt, E as bt, n as vt, i as wt } from "./design-builder-CoCtjIwj.js";
|
|
7
|
-
import { u as Et, p as kt } from "./usePieceGuideBundle-
|
|
8
|
-
import { D as xt, C as St, f as Rt, d as It } from "./template-fields-
|
|
7
|
+
import { u as Et, p as kt } from "./usePieceGuideBundle-Cab2gRnn.js";
|
|
8
|
+
import { D as xt, C as St, f as Rt, d as It } from "./template-fields-Dltc4Ztb.js";
|
|
9
9
|
import "./ExportManager-BbBfO22S.js";
|
|
10
|
-
import "./CanvasStateV1-
|
|
10
|
+
import "./CanvasStateV1-CJJff7Ci.js";
|
|
11
11
|
const Be = ut(void 0);
|
|
12
12
|
function te() {
|
|
13
13
|
const e = ct(Be);
|
|
@@ -713,7 +713,7 @@ function qe(e) {
|
|
|
713
713
|
// wrapper, which had no DOM at all, stays layout-identical).
|
|
714
714
|
/* @__PURE__ */ g("div", { className: "sc-root", style: { display: "contents" }, "data-sc-part": "root", children: /* @__PURE__ */ g(Ft, { reportedError: l, onRetry: () => d(null), children: /* @__PURE__ */ g(Vt, { ...e, internals: a, recordAudit: x }) }) });
|
|
715
715
|
}
|
|
716
|
-
let Pt = () => import("./EditorCanvasImpl-
|
|
716
|
+
let Pt = () => import("./EditorCanvasImpl-C_72UKu3.js").then((e) => e.EditorCanvasImpl);
|
|
717
717
|
function ze() {
|
|
718
718
|
return Pt();
|
|
719
719
|
}
|
|
@@ -1910,4 +1910,4 @@ export {
|
|
|
1910
1910
|
te as u,
|
|
1911
1911
|
At as v
|
|
1912
1912
|
};
|
|
1913
|
-
//# sourceMappingURL=embed-
|
|
1913
|
+
//# sourceMappingURL=embed-DtlgX9iG.js.map
|