@snowcone-app/canvas 0.42.0 → 0.43.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/ERROR_CONTRACT.md +45 -0
- package/dist/{CanvasRenderer-3M-52sAd.js → CanvasRenderer-DnYgiWjt.js} +4 -4
- package/dist/{CanvasRenderer-3M-52sAd.js.map → CanvasRenderer-DnYgiWjt.js.map} +1 -1
- package/dist/{CanvasStateV1-BQ3cbxt2.js → CanvasStateV1-B51bXTyy.js} +3 -3
- package/dist/{CanvasStateV1-BQ3cbxt2.js.map → CanvasStateV1-B51bXTyy.js.map} +1 -1
- package/dist/{ContextualToolbars-B2LTNu7r.js → ContextualToolbars-DtlxDatY.js} +6 -6
- package/dist/{ContextualToolbars-B2LTNu7r.js.map → ContextualToolbars-DtlxDatY.js.map} +1 -1
- package/dist/{EditorCanvasImpl-VJ7kBhXB.js → EditorCanvasImpl-BpudFLkw.js} +8 -8
- package/dist/{EditorCanvasImpl-VJ7kBhXB.js.map → EditorCanvasImpl-BpudFLkw.js.map} +1 -1
- package/dist/{ExportManager-9_RjQEv0.js → ExportManager-vAuaoF5Q.js} +1212 -1224
- package/dist/{ExportManager-9_RjQEv0.js.map → ExportManager-vAuaoF5Q.js.map} +1 -1
- package/dist/{FontAnalyzer-Ch1jgTq7.js → FontAnalyzer-D9R2PYsy.js} +5 -1
- package/dist/FontAnalyzer-D9R2PYsy.js.map +1 -0
- package/dist/{ImagePanel-DY9Ve3X7.js → ImagePanel-kybrF6yT.js} +372 -366
- package/dist/{ImagePanel-DY9Ve3X7.js.map → ImagePanel-kybrF6yT.js.map} +1 -1
- package/dist/SnowconeCanvas-p9XmnSCK.js +1157 -0
- package/dist/SnowconeCanvas-p9XmnSCK.js.map +1 -0
- package/dist/advanced.mjs +15 -15
- package/dist/api/embed.d.ts +1 -0
- package/dist/api/stable.d.ts +1 -0
- package/dist/components/embed/SnowconeCanvas.d.ts +18 -2
- package/dist/core/ArtboardManager.d.ts +2 -0
- package/dist/{custom-icons-D_XezOul.js → custom-icons-Dlfrg3A_.js} +2 -2
- package/dist/{custom-icons-D_XezOul.js.map → custom-icons-Dlfrg3A_.js.map} +1 -1
- package/dist/{design-builder-BFM94eA9.js → design-builder-C8s1r4MF.js} +20 -19
- package/dist/{design-builder-BFM94eA9.js.map → design-builder-C8s1r4MF.js.map} +1 -1
- package/dist/{embed-5W-gg9dt.js → embed-DuIOU8mL.js} +10 -10
- package/dist/{embed-5W-gg9dt.js.map → embed-DuIOU8mL.js.map} +1 -1
- package/dist/embed.mjs +15 -15
- package/dist/errors/editorError.d.ts +4 -1
- package/dist/{guards-D_mw4DgS.js → guards-B0PNEbK6.js} +2 -2
- package/dist/{guards-D_mw4DgS.js.map → guards-B0PNEbK6.js.map} +1 -1
- package/dist/index.mjs +9 -9
- package/dist/internals.mjs +6 -6
- package/dist/{template-fields-CQURvcab.js → template-fields-DCZ9TqxY.js} +19 -19
- package/dist/{template-fields-CQURvcab.js.map → template-fields-DCZ9TqxY.js.map} +1 -1
- package/dist/testing.mjs +3 -3
- package/dist/{useCommands-DSapP-w1.js → useCommands-d5UM6Cnc.js} +7 -7
- package/dist/{useCommands-DSapP-w1.js.map → useCommands-d5UM6Cnc.js.map} +1 -1
- package/dist/{usePieceGuideBundle-oBykb3X8.js → usePieceGuideBundle-BPVWvChD.js} +2 -2
- package/dist/{usePieceGuideBundle-oBykb3X8.js.map → usePieceGuideBundle-BPVWvChD.js.map} +1 -1
- package/dist/utils/ExportManager.d.ts +37 -1
- package/dist/utils/printFiles.d.ts +23 -0
- package/dist/{validation-D6zVSeTh.js → validation-C8qNtk6j.js} +11 -11
- package/dist/{validation-D6zVSeTh.js.map → validation-C8qNtk6j.js.map} +1 -1
- package/example/package.json +1 -1
- package/package.json +2 -2
- package/dist/FontAnalyzer-Ch1jgTq7.js.map +0 -1
- package/dist/SnowconeCanvas-BzOy46Yw.js +0 -1098
- package/dist/SnowconeCanvas-BzOy46Yw.js.map +0 -1
package/dist/embed.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { C as a, g as t, h as o, K as r, N as i, O as n, P as d, Q as m, R as u, b as l, a as E, j as c, k as p, l as g } from "./useCommands-
|
|
2
|
-
import { E as
|
|
3
|
-
import { t as M, Y as j } from "./FontAnalyzer-
|
|
4
|
-
import { D as N,
|
|
5
|
-
import { D as O, T as Q, r as V, u as q, a as U, b as W, c as X, d as Z, e as $, w as ee } from "./template-fields-
|
|
6
|
-
import { G as ae, H as te, J as oe, K as re } from "./ExportManager-
|
|
7
|
-
import { s as ne } from "./CanvasStateV1-
|
|
1
|
+
import { C as a, g as t, h as o, K as r, N as i, O as n, P as d, Q as m, R as u, b as l, a as E, j as c, k as p, l as g } from "./useCommands-d5UM6Cnc.js";
|
|
2
|
+
import { E as x, R as C, a as S, b as T, S as P, c as R, d as b, e as B, f as v, g as y, i as F, h as k, p as h, s as D, j as I, k as K, l as L, v as w } from "./embed-DuIOU8mL.js";
|
|
3
|
+
import { t as M, Y as j } from "./FontAnalyzer-D9R2PYsy.js";
|
|
4
|
+
import { D as N, f as Y, n as _, m as z, b as H } from "./design-builder-C8s1r4MF.js";
|
|
5
|
+
import { D as O, T as Q, r as V, u as q, a as U, b as W, c as X, d as Z, e as $, w as ee } from "./template-fields-DCZ9TqxY.js";
|
|
6
|
+
import { G as ae, H as te, J as oe, K as re } from "./ExportManager-vAuaoF5Q.js";
|
|
7
|
+
import { s as ne } from "./CanvasStateV1-B51bXTyy.js";
|
|
8
8
|
export {
|
|
9
9
|
a as CanvasServicesProvider,
|
|
10
10
|
N as DesignBuilder,
|
|
11
11
|
O as DesignStateStore,
|
|
12
|
-
|
|
12
|
+
x as Editor,
|
|
13
13
|
M as EditorError,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
C as RealtimeCanvas,
|
|
15
|
+
S as RealtimeEmbed,
|
|
16
|
+
T as RealtimeMockup,
|
|
17
17
|
P as SnowconeEditor,
|
|
18
18
|
Q as TEMPLATE_FIELDS_KEY,
|
|
19
19
|
R as auditEditor,
|
|
20
20
|
b as bundleToRenderConfig,
|
|
21
21
|
B as bundleVariantToken,
|
|
22
|
-
|
|
22
|
+
v as collectEmbedIssues,
|
|
23
23
|
t as createProxyGenerate,
|
|
24
24
|
o as createProxyImageSearch,
|
|
25
25
|
ae as customFontRegistry,
|
|
26
26
|
Y as design,
|
|
27
27
|
r as editorElementKind,
|
|
28
28
|
te as ensureCustomFontsLoaded,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
y as formatBuyPrice,
|
|
30
|
+
F as isBundleProduct,
|
|
31
|
+
k as isBundleRenderProduct,
|
|
32
32
|
_ as isColorToken,
|
|
33
33
|
j as isEditorError,
|
|
34
34
|
i as isGroupElement,
|
|
@@ -146,7 +146,10 @@ export type EditorErrorCode =
|
|
|
146
146
|
* picked alternative's variant gvids (`validNames`), or the alternative
|
|
147
147
|
* publishes no variant at all. Every role of a bundle session needs a
|
|
148
148
|
* variant — the server keys the render on the per-role set. */
|
|
149
|
-
| 'E_BUNDLE_VARIANT_NOT_FOUND'
|
|
149
|
+
| 'E_BUNDLE_VARIANT_NOT_FOUND'
|
|
150
|
+
/** `exportPrintFiles`: a print file could not be made — the device refused its canvas (too many pixels for it),
|
|
151
|
+
* or the request named an artboard / region that does not exist (`validNames` lists the artboards). */
|
|
152
|
+
| 'E_PRINT_FILE_FAILED';
|
|
150
153
|
export interface EditorErrorData {
|
|
151
154
|
code: EditorErrorCode;
|
|
152
155
|
/** Slug under https://developers.snowcone.app/ for the violated contract. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as n, I as t, P as a, S as s, T as i } from "./FontAnalyzer-
|
|
1
|
+
import { G as n, I as t, P as a, S as s, T as i } from "./FontAnalyzer-D9R2PYsy.js";
|
|
2
2
|
function r(e) {
|
|
3
3
|
return e instanceof i;
|
|
4
4
|
}
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
r as d,
|
|
22
22
|
m as i
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=guards-
|
|
24
|
+
//# sourceMappingURL=guards-B0PNEbK6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guards-
|
|
1
|
+
{"version":3,"file":"guards-B0PNEbK6.js","sources":["../src/types/guards.ts"],"sourcesContent":["/**\n * Type guards for EditorElement discrimination\n *\n * These guards use instanceof checks against the concrete element classes,\n * matching the pattern established in EditorContext.tsx. They accept\n * BaseElement | EditorElement | undefined | null for maximum flexibility\n * at call sites.\n */\n\nimport { BaseElement } from '../core/BaseElement.js';\nimport { TextElement } from '../core/TextElement.js';\nimport { ImageElement } from '../core/ImageElement.js';\nimport { GroupElement } from '../core/GroupElement.js';\nimport { ShapeElement } from '../core/ShapeElement.js';\nimport { PathElement } from '../core/PathElement.js';\n\ntype Narrowable = BaseElement | TextElement | ImageElement | GroupElement | ShapeElement | PathElement | undefined | null;\n\n/**\n * Type guard: checks if an element is a TextElement (or any text-based transform subclass).\n *\n * TextElement is the base class for all text transforms (custom, circle, arch, wave, etc.),\n * so this returns true for any text-based element regardless of its specific transformType.\n */\nexport function isTextElement(element: Narrowable): element is TextElement {\n return element instanceof TextElement;\n}\n\n/**\n * Type guard: checks if an element is an ImageElement.\n */\nexport function isImageElement(element: Narrowable): element is ImageElement {\n return element instanceof ImageElement;\n}\n\n/**\n * Type guard: checks if an element is a GroupElement.\n */\nexport function isGroupElement(element: Narrowable): element is GroupElement {\n return element instanceof GroupElement;\n}\n\n/**\n * Type guard: checks if an element is a ShapeElement.\n */\nexport function isShapeElement(element: Narrowable): element is ShapeElement {\n return element instanceof ShapeElement;\n}\n\n/**\n * Type guard: checks if an element is a PathElement.\n */\nexport function isPathElement(element: Narrowable): element is PathElement {\n return element instanceof PathElement;\n}\n"],"names":["isTextElement","element","TextElement","isImageElement","ImageElement","isGroupElement","GroupElement","isShapeElement","ShapeElement","isPathElement","PathElement"],"mappings":";AAwBO,SAASA,EAAcC,GAA6C;AACzE,SAAOA,aAAmBC;AAC5B;AAKO,SAASC,EAAeF,GAA8C;AAC3E,SAAOA,aAAmBG;AAC5B;AAKO,SAASC,EAAeJ,GAA8C;AAC3E,SAAOA,aAAmBK;AAC5B;AAKO,SAASC,EAAeN,GAA8C;AAC3E,SAAOA,aAAmBO;AAC5B;AAKO,SAASC,EAAcR,GAA6C;AACzE,SAAOA,aAAmBS;AAC5B;"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as u } from "./useCommands-
|
|
2
|
-
import { C as c, f as x, g as I, h as v, b as A, a as g, j as T, k as B, l as P } from "./useCommands-
|
|
3
|
-
import { E as F, S as L, S as _, u as O, a as R } from "./SnowconeCanvas-
|
|
4
|
-
import { b as m, d } from "./design-builder-
|
|
5
|
-
import { C as z, D as w,
|
|
6
|
-
import { T as V, r as b, u as h, a as G, b as H, c as U, d as Y, e as Z, w as j } from "./template-fields-
|
|
7
|
-
import { A as J, C as q, E as Q, M as W, P as X, r as $, v as ee } from "./validation-
|
|
8
|
-
import { G as ae, H as te, J as oe, K as re } from "./ExportManager-
|
|
1
|
+
import { e as u } from "./useCommands-d5UM6Cnc.js";
|
|
2
|
+
import { C as c, f as x, g as I, h as v, b as A, a as g, j as T, k as B, l as P } from "./useCommands-d5UM6Cnc.js";
|
|
3
|
+
import { E as F, S as L, S as _, u as O, a as R } from "./SnowconeCanvas-p9XmnSCK.js";
|
|
4
|
+
import { b as m, e as d } from "./design-builder-C8s1r4MF.js";
|
|
5
|
+
import { C as z, D as w, f as K, s as D } from "./design-builder-C8s1r4MF.js";
|
|
6
|
+
import { T as V, r as b, u as h, a as G, b as H, c as U, d as Y, e as Z, w as j } from "./template-fields-DCZ9TqxY.js";
|
|
7
|
+
import { A as J, C as q, E as Q, M as W, P as X, r as $, v as ee } from "./validation-C8qNtk6j.js";
|
|
8
|
+
import { G as ae, H as te, J as oe, K as re } from "./ExportManager-vAuaoF5Q.js";
|
|
9
9
|
import { c as ie, e as ue } from "./compose-DtQL_oit.js";
|
|
10
|
-
import { d as de, m as Ce, s as Se, v as Ee } from "./CanvasStateV1-
|
|
10
|
+
import { d as de, m as Ce, s as Se, v as Ee } from "./CanvasStateV1-B51bXTyy.js";
|
|
11
11
|
function E() {
|
|
12
12
|
const { isCanvasReady: e } = m();
|
|
13
13
|
return e;
|
package/dist/internals.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as rr, a as or, C as sr, I as er, R as tr, S as nr, T as ar } from "./CanvasRenderer-
|
|
2
|
-
import { r as k } from "./ExportManager-
|
|
3
|
-
import { D as hr, a as cr, I as dr, W as fr, b as gr, c as lr, d as ur, e as pr, f as yr, g as kr, h as vr, i as wr, j as Cr, k as Mr, l as Tr, m as Sr, n as br, o as Pr, p as Ir, q as mr, s as Ar, t as Rr, u as Wr, v as Er, w as Or, x as Hr, y as jr, z as Fr, A as Lr, B as Xr, C as zr, F as Nr } from "./ExportManager-
|
|
4
|
-
import { i as H, a as j, c as F, r as L, b as X } from "./FontAnalyzer-
|
|
5
|
-
import { d as Br, e as Kr, f as Ur, C as Yr, g as Jr, E as Vr, F as qr, H as Gr, L as Qr, h as Zr, W as $r, j as xr, k as Dr, l as ro, m as oo, n as so, o as eo, s as to, w as no } from "./FontAnalyzer-
|
|
6
|
-
import { A as io, a as ho, C as co, S as fo } from "./CanvasStateV1-
|
|
1
|
+
import { A as rr, a as or, C as sr, I as er, R as tr, S as nr, T as ar } from "./CanvasRenderer-DnYgiWjt.js";
|
|
2
|
+
import { r as k } from "./ExportManager-vAuaoF5Q.js";
|
|
3
|
+
import { D as hr, a as cr, I as dr, W as fr, b as gr, c as lr, d as ur, e as pr, f as yr, g as kr, h as vr, i as wr, j as Cr, k as Mr, l as Tr, m as Sr, n as br, o as Pr, p as Ir, q as mr, s as Ar, t as Rr, u as Wr, v as Er, w as Or, x as Hr, y as jr, z as Fr, A as Lr, B as Xr, C as zr, F as Nr } from "./ExportManager-vAuaoF5Q.js";
|
|
4
|
+
import { i as H, a as j, c as F, r as L, b as X } from "./FontAnalyzer-D9R2PYsy.js";
|
|
5
|
+
import { d as Br, e as Kr, f as Ur, C as Yr, g as Jr, E as Vr, F as qr, H as Gr, L as Qr, h as Zr, W as $r, j as xr, k as Dr, l as ro, m as oo, n as so, o as eo, s as to, w as no } from "./FontAnalyzer-D9R2PYsy.js";
|
|
6
|
+
import { A as io, a as ho, C as co, S as fo } from "./CanvasStateV1-B51bXTyy.js";
|
|
7
7
|
const z = F("image-adjustments"), v = 1e-3;
|
|
8
8
|
function N(r, o) {
|
|
9
9
|
const { brightness: a, contrast: s, saturation: h } = o, e = a * s, t = 127.5 * (1 - s), f = Math.abs(e - 1) > v || Math.abs(t) > v, i = new Uint8ClampedArray(256);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as v, p as V, T, I as M, z as st } from "./FontAnalyzer-
|
|
2
|
-
import {
|
|
1
|
+
import { t as v, p as V, T, I as M, z as st } from "./FontAnalyzer-D9R2PYsy.js";
|
|
2
|
+
import { k as G, b as ot, m as it, u as O, a as B, n as rt } from "./design-builder-C8s1r4MF.js";
|
|
3
3
|
import { toOptionAttributes as at, toCombinations as ct, getMissingSelections as lt, validateProductSelection as mt, findBestCombination as F, computeDisabledChoices as ft } from "@snowcone-app/sdk";
|
|
4
4
|
import { useEffect as ut, useContext as Z, useId as dt, useLayoutEffect as ht, useRef as C, useMemo as A, useCallback as k, useState as q } from "react";
|
|
5
|
-
import { E as tt, U as gt } from "./useCommands-
|
|
6
|
-
import { b as pt, o as $, c as f, e as bt, l as h, n as yt, u as z, f as vt } from "./CanvasStateV1-
|
|
5
|
+
import { E as tt, U as gt } from "./useCommands-d5UM6Cnc.js";
|
|
6
|
+
import { b as pt, o as $, c as f, e as bt, l as h, n as yt, u as z, f as vt } from "./CanvasStateV1-B51bXTyy.js";
|
|
7
7
|
function R(s) {
|
|
8
8
|
return s.text;
|
|
9
9
|
}
|
|
10
10
|
function x(s) {
|
|
11
11
|
return s.name;
|
|
12
12
|
}
|
|
13
|
-
class
|
|
13
|
+
class Wt {
|
|
14
14
|
constructor(t) {
|
|
15
15
|
this.listeners = /* @__PURE__ */ new Set(), this.getState = () => this.state, this.subscribe = (o) => (this.listeners.add(o), () => this.listeners.delete(o)), this.state = t;
|
|
16
16
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -138,7 +138,7 @@ function Nt(s, t) {
|
|
|
138
138
|
n === "variantId" || n === "price" || (typeof i == "string" ? o[n] = i : typeof i == "number" && (o[n] = String(i)));
|
|
139
139
|
return o;
|
|
140
140
|
}
|
|
141
|
-
class
|
|
141
|
+
class jt {
|
|
142
142
|
constructor(t) {
|
|
143
143
|
this.quantity = 1, this.version = 0, this.listeners = /* @__PURE__ */ new Set(), this.getVersion = () => this.version, this.subscribe = (e) => (this.listeners.add(e), () => this.listeners.delete(e)), this.product = t, this.attrs = at({ options: t.options }), this.combos = ct({ options: t.options }), this.selection = Nt(t, this.combos);
|
|
144
144
|
}
|
|
@@ -292,7 +292,7 @@ const St = {
|
|
|
292
292
|
text: "useTextBinding / useFontBinding",
|
|
293
293
|
image: "useImageBinding"
|
|
294
294
|
};
|
|
295
|
-
function
|
|
295
|
+
function P(s, t, e) {
|
|
296
296
|
const o = it(s), n = o ? s.name : s, i = Z(tt), a = C(null);
|
|
297
297
|
if (o && s.kind !== t)
|
|
298
298
|
throw new v(
|
|
@@ -330,7 +330,7 @@ const Dt = () => {
|
|
|
330
330
|
function Ht(s) {
|
|
331
331
|
const { elementStore: t } = O();
|
|
332
332
|
_("useTextBinding()");
|
|
333
|
-
const e =
|
|
333
|
+
const e = P(s, "text", t), { executeElementUpdate: o } = B(), n = A(() => t.getAllByName(e).filter((r) => r instanceof T), [t, e]), i = k(
|
|
334
334
|
(a) => {
|
|
335
335
|
for (const r of n) {
|
|
336
336
|
const c = r.clone();
|
|
@@ -375,7 +375,7 @@ function Bt(s, t, e) {
|
|
|
375
375
|
}
|
|
376
376
|
function Vt(s, t) {
|
|
377
377
|
_("useImageBinding()");
|
|
378
|
-
const e = (t == null ? void 0 : t.fit) ?? "cover", { elementStore: o, setElements: n } = O(), i =
|
|
378
|
+
const e = (t == null ? void 0 : t.fit) ?? "cover", { elementStore: o, setElements: n } = O(), i = P(s, "image", o), { executeElementUpdate: a } = B(), r = A(() => o.getAllByName(i).filter((b) => b instanceof M), [o, i]), c = C(/* @__PURE__ */ new Map());
|
|
379
379
|
for (const d of r)
|
|
380
380
|
if (!c.current.has(d.id)) {
|
|
381
381
|
const b = d.transformData;
|
|
@@ -392,17 +392,17 @@ function Vt(s, t) {
|
|
|
392
392
|
N.current = n;
|
|
393
393
|
const S = k(
|
|
394
394
|
(d) => {
|
|
395
|
-
const b = l.current,
|
|
395
|
+
const b = l.current, W = m.current;
|
|
396
396
|
for (const D of b) {
|
|
397
|
-
const
|
|
398
|
-
if (!
|
|
399
|
-
const { width: K, height: H } =
|
|
397
|
+
const j = c.current.get(D.id);
|
|
398
|
+
if (!j) continue;
|
|
399
|
+
const { width: K, height: H } = j, g = D.clone();
|
|
400
400
|
g.imageLoaded = !1, g.imageElement = null, g.isCropping = !1, g.imageUrl = d, e === "cover" ? (g.preserveDimensions = !0, g.onLoadCallback = (u) => {
|
|
401
401
|
const E = u.imageAspectRatio || 1, p = Bt(K, H, E);
|
|
402
|
-
u.transformData.width = p.width, u.transformData.height = p.height, u.transformData.cropX = p.cropX, u.transformData.cropY = p.cropY, u.transformData.cropWidth = p.cropWidth, u.transformData.cropHeight = p.cropHeight,
|
|
402
|
+
u.transformData.width = p.width, u.transformData.height = p.height, u.transformData.cropX = p.cropX, u.transformData.cropY = p.cropY, u.transformData.cropWidth = p.cropWidth, u.transformData.cropHeight = p.cropHeight, W(D, u);
|
|
403
403
|
}) : (g.preserveDimensions = !1, g.onLoadCallback = (u) => {
|
|
404
404
|
const E = u.transformData.width, p = u.transformData.height, w = Math.min(K / E, H / p, 1);
|
|
405
|
-
w < 1 && (u.transformData.width = E * w, u.transformData.height = p * w), u.transformData.cropX = 0, u.transformData.cropY = 0, u.transformData.cropWidth = 1, u.transformData.cropHeight = 1,
|
|
405
|
+
w < 1 && (u.transformData.width = E * w, u.transformData.height = p * w), u.transformData.cropX = 0, u.transformData.cropY = 0, u.transformData.cropWidth = 1, u.transformData.cropHeight = 1, W(D, u);
|
|
406
406
|
}), g.loadImage(d);
|
|
407
407
|
}
|
|
408
408
|
},
|
|
@@ -464,7 +464,7 @@ const _t = () => {
|
|
|
464
464
|
function qt(s) {
|
|
465
465
|
const { elementStore: t } = O();
|
|
466
466
|
_("useFontBinding()");
|
|
467
|
-
const e =
|
|
467
|
+
const e = P(s, "text", t), { executeElementUpdate: o } = B(), n = A(() => t.getAllByName(e).filter((r) => r instanceof T), [t, e]), i = k(
|
|
468
468
|
(a) => {
|
|
469
469
|
gt.loadGoogleFontByName(a);
|
|
470
470
|
for (const r of n) {
|
|
@@ -542,8 +542,8 @@ function Xt(s, t) {
|
|
|
542
542
|
return { ...s, [nt]: t };
|
|
543
543
|
}
|
|
544
544
|
export {
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
jt as C,
|
|
546
|
+
Wt as D,
|
|
547
547
|
nt as T,
|
|
548
548
|
zt as a,
|
|
549
549
|
qt as b,
|
|
@@ -555,4 +555,4 @@ export {
|
|
|
555
555
|
Gt as u,
|
|
556
556
|
Xt as w
|
|
557
557
|
};
|
|
558
|
-
//# sourceMappingURL=template-fields-
|
|
558
|
+
//# sourceMappingURL=template-fields-DCZ9TqxY.js.map
|