@snowcone-app/canvas 0.28.0 → 0.29.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-B_3GISlW.js → CanvasRenderer-_lFoIoz5.js} +1083 -1071
- package/dist/CanvasRenderer-_lFoIoz5.js.map +1 -0
- package/dist/{CanvasStateV1-kL09wsAn.js → CanvasStateV1-BMxr6xb8.js} +7 -4
- package/dist/{CanvasStateV1-kL09wsAn.js.map → CanvasStateV1-BMxr6xb8.js.map} +1 -1
- package/dist/{ContextualToolbars-C69oYLdw.js → ContextualToolbars-0jWvnQgp.js} +1718 -1656
- package/dist/ContextualToolbars-0jWvnQgp.js.map +1 -0
- package/dist/{EditorCanvasImpl-CrI9C_xM.js → EditorCanvasImpl-BNz8TPFs.js} +8 -8
- package/dist/{EditorCanvasImpl-CrI9C_xM.js.map → EditorCanvasImpl-BNz8TPFs.js.map} +1 -1
- package/dist/{ExportManager-J2xK86uq.js → ExportManager-B8Td7uR5.js} +1043 -964
- package/dist/ExportManager-B8Td7uR5.js.map +1 -0
- package/dist/{FontAnalyzer-PE6nysqE.js → FontAnalyzer-D4Sg-P6_.js} +1234 -1172
- package/dist/FontAnalyzer-D4Sg-P6_.js.map +1 -0
- package/dist/{ImagePanel-CmQCxBGm.js → ImagePanel-CN2Bu3hf.js} +6 -6
- package/dist/{ImagePanel-CmQCxBGm.js.map → ImagePanel-CN2Bu3hf.js.map} +1 -1
- package/dist/{SnowconeCanvas-CQiFVR0X.js → SnowconeCanvas-CR_LdRFP.js} +27 -27
- package/dist/{SnowconeCanvas-CQiFVR0X.js.map → SnowconeCanvas-CR_LdRFP.js.map} +1 -1
- package/dist/{UnifiedFontService-BJzoqfBF.js → UnifiedFontService-CgYnYTj7.js} +7 -7
- package/dist/{UnifiedFontService-BJzoqfBF.js.map → UnifiedFontService-CgYnYTj7.js.map} +1 -1
- package/dist/advanced.mjs +14 -14
- package/dist/components/toolbars/SecondaryPanels.d.ts +11 -0
- package/dist/core/TextElement.d.ts +13 -0
- package/dist/core/TextMetrics.d.ts +17 -3
- package/dist/core/rich-text-layout.d.ts +2 -0
- package/dist/core/text-spacing.d.ts +74 -0
- package/dist/{custom-icons-BWiUGqD6.js → custom-icons-B5TRC1Ed.js} +2 -2
- package/dist/{custom-icons-BWiUGqD6.js.map → custom-icons-B5TRC1Ed.js.map} +1 -1
- package/dist/{design-builder-bquxIHct.js → design-builder-COj0zkxu.js} +2 -2
- package/dist/{design-builder-bquxIHct.js.map → design-builder-COj0zkxu.js.map} +1 -1
- package/dist/{editorErrors-8uDRMhow.js → editorErrors-CCvoKj_P.js} +2 -2
- package/dist/{editorErrors-8uDRMhow.js.map → editorErrors-CCvoKj_P.js.map} +1 -1
- package/dist/{embed-L3oRIgsj.js → embed-BTRtoktw.js} +10 -10
- package/dist/{embed-L3oRIgsj.js.map → embed-BTRtoktw.js.map} +1 -1
- package/dist/embed.mjs +6 -6
- package/dist/{guards-BlbhM5MX.js → guards-uQtEQJbs.js} +2 -2
- package/dist/{guards-BlbhM5MX.js.map → guards-uQtEQJbs.js.map} +1 -1
- package/dist/hooks/useTextToolbar.d.ts +8 -0
- package/dist/index.mjs +8 -8
- package/dist/internals.mjs +5 -5
- package/dist/rendering/renderer-types.d.ts +4 -0
- package/dist/rendering/rich-text-renderer.d.ts +4 -0
- package/dist/rendering/text-renderer.d.ts +4 -1
- package/dist/state/CanvasStateV1.d.ts +3 -0
- package/dist/{template-fields-ai7vnW8g.js → template-fields-BLRp84Ny.js} +6 -6
- package/dist/{template-fields-ai7vnW8g.js.map → template-fields-BLRp84Ny.js.map} +1 -1
- package/dist/testing.mjs +4 -4
- package/dist/types/index.d.ts +26 -0
- package/dist/{usePieceGuideBundle-CMe5br2a.js → usePieceGuideBundle-CTQszfKA.js} +2 -2
- package/dist/{usePieceGuideBundle-CMe5br2a.js.map → usePieceGuideBundle-CTQszfKA.js.map} +1 -1
- package/dist/utils/featureApplied.d.ts +6 -0
- package/dist/{validation-B8kIYutI.js → validation-eCebhplp.js} +1940 -1935
- package/dist/validation-eCebhplp.js.map +1 -0
- package/dist/workers/export-worker.bundle.string.d.ts +1 -1
- package/example/package.json +1 -1
- package/package.json +1 -1
- package/dist/CanvasRenderer-B_3GISlW.js.map +0 -1
- package/dist/ContextualToolbars-C69oYLdw.js.map +0 -1
- package/dist/ExportManager-J2xK86uq.js.map +0 -1
- package/dist/FontAnalyzer-PE6nysqE.js.map +0 -1
- package/dist/validation-B8kIYutI.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as f, jsxs as j, Fragment as nn } from "react/jsx-runtime";
|
|
2
2
|
import * as z from "react";
|
|
3
3
|
import te, { useRef as G, useState as B, useCallback as N, useMemo as q, useEffect as W, forwardRef as In, createElement as yn, useLayoutEffect as Nn, memo as Go, useReducer as Wo, useContext as je, createContext as Xe, cloneElement as _o, useId as Lr, useSyncExternalStore as Rr } from "react";
|
|
4
|
-
import { u as zn, h as qo, g as Pt, r as Yo, j as Ko, k as Tr, d as Xo } from "./editorErrors-
|
|
5
|
-
import { G as Ie, c as ot, C as rn } from "./FontAnalyzer-
|
|
6
|
-
import { g as Jo, I as on, E as sn } from "./ExportManager-
|
|
4
|
+
import { u as zn, h as qo, g as Pt, r as Yo, j as Ko, k as Tr, d as Xo } from "./editorErrors-CCvoKj_P.js";
|
|
5
|
+
import { G as Ie, c as ot, C as rn } from "./FontAnalyzer-D4Sg-P6_.js";
|
|
6
|
+
import { g as Jo, I as on, E as sn } from "./ExportManager-B8Td7uR5.js";
|
|
7
7
|
import { createPortal as On, unstable_batchedUpdates as Nt } from "react-dom";
|
|
8
8
|
import { clsx as Ir } from "clsx";
|
|
9
9
|
import { extendTailwindMerge as Nr } from "tailwind-merge";
|
|
@@ -6995,7 +6995,7 @@ const hl = ({
|
|
|
6995
6995
|
var S;
|
|
6996
6996
|
const { get: a } = Tr(), [l, c] = B(!1), [u, d] = B(!1), [h, g] = B(!1), x = G(null), w = async () => {
|
|
6997
6997
|
try {
|
|
6998
|
-
const { ExportManager: v } = await import("./ExportManager-
|
|
6998
|
+
const { ExportManager: v } = await import("./ExportManager-B8Td7uR5.js").then((R) => R.S), { artboardManager: L, elements: b } = a(), M = L.getAllArtboards();
|
|
6999
6999
|
v.exportToJSON(M, b, L), c(!1);
|
|
7000
7000
|
} catch (v) {
|
|
7001
7001
|
mn.error("Failed to save workspace:", v), alert("Failed to save workspace. Please try again.");
|
|
@@ -7049,7 +7049,7 @@ This will replace your current workspace. Continue?`
|
|
|
7049
7049
|
return;
|
|
7050
7050
|
}
|
|
7051
7051
|
try {
|
|
7052
|
-
const { ExportManager: R } = await import("./ExportManager-
|
|
7052
|
+
const { ExportManager: R } = await import("./ExportManager-B8Td7uR5.js").then((F) => F.S);
|
|
7053
7053
|
await R.exportArtboardToImage(M, L, b.current, {
|
|
7054
7054
|
format: "png",
|
|
7055
7055
|
scale: 2,
|
|
@@ -7185,7 +7185,7 @@ function Po({
|
|
|
7185
7185
|
return W(() => {
|
|
7186
7186
|
if (!t || o) return;
|
|
7187
7187
|
let s = !1;
|
|
7188
|
-
return import("./ImagePanel-
|
|
7188
|
+
return import("./ImagePanel-CN2Bu3hf.js").then(
|
|
7189
7189
|
(a) => {
|
|
7190
7190
|
s || i(() => a.ImagePanel);
|
|
7191
7191
|
},
|
|
@@ -7845,4 +7845,4 @@ export {
|
|
|
7845
7845
|
$l as y,
|
|
7846
7846
|
Le as z
|
|
7847
7847
|
};
|
|
7848
|
-
//# sourceMappingURL=UnifiedFontService-
|
|
7848
|
+
//# sourceMappingURL=UnifiedFontService-CgYnYTj7.js.map
|