@snowcone-app/canvas 0.19.0 → 0.20.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-DUc-MOeR.js → CanvasRenderer-CwiYq8qg.js} +3 -3
- package/dist/{CanvasRenderer-DUc-MOeR.js.map → CanvasRenderer-CwiYq8qg.js.map} +1 -1
- package/dist/{CanvasStateV1-Bq48qhv5.js → CanvasStateV1-BFabcAKC.js} +35 -30
- package/dist/{CanvasStateV1-Bq48qhv5.js.map → CanvasStateV1-BFabcAKC.js.map} +1 -1
- package/dist/{ContextualToolbars-CkLjHNPn.js → ContextualToolbars--vTtorNg.js} +5 -5
- package/dist/{ContextualToolbars-CkLjHNPn.js.map → ContextualToolbars--vTtorNg.js.map} +1 -1
- package/dist/{EditorCanvasImpl-Cthm-KSe.js → EditorCanvasImpl-UBKdG0c0.js} +18 -17
- package/dist/{EditorCanvasImpl-Cthm-KSe.js.map → EditorCanvasImpl-UBKdG0c0.js.map} +1 -1
- package/dist/{ImportManager-D--7JnvW.js → ExportManager-DK7CdI-G.js} +24758 -24758
- package/dist/ExportManager-DK7CdI-G.js.map +1 -0
- package/dist/{FontAnalyzer-DIlqmyuf.js → FontAnalyzer-BpsTYowD.js} +5 -2
- package/dist/FontAnalyzer-BpsTYowD.js.map +1 -0
- package/dist/SnowconeCanvas-B01o5LmS.js +1172 -0
- package/dist/SnowconeCanvas-B01o5LmS.js.map +1 -0
- package/dist/{MenuButton-CeoEAtzP.js → UnifiedFontService-B1PGVu8O.js} +3704 -3429
- package/dist/UnifiedFontService-B1PGVu8O.js.map +1 -0
- package/dist/advanced.mjs +13 -13
- package/dist/api/embed.d.ts +4 -2
- package/dist/api/stable.d.ts +2 -2
- package/dist/components/editor/commerceStore.d.ts +22 -2
- package/dist/components/editor/index.d.ts +1 -0
- package/dist/components/editor/useProductSelection.d.ts +15 -9
- package/dist/components/embed/SnowconeCanvas.d.ts +10 -2
- package/dist/core/ArtboardElement.d.ts +2 -1
- package/dist/default-editor/SnowconeEditor.d.ts +39 -0
- package/dist/design/design-builder.d.ts +44 -19
- package/dist/design/template-fields.d.ts +32 -0
- package/dist/design-builder-DMKx9UXD.js +368 -0
- package/dist/design-builder-DMKx9UXD.js.map +1 -0
- package/dist/{EditorContext-5QpqAhjh.js → editorErrors-CK1RISFa.js} +382 -358
- package/dist/editorErrors-CK1RISFa.js.map +1 -0
- package/dist/embed-uALcVSYN.js +1117 -0
- package/dist/embed-uALcVSYN.js.map +1 -0
- package/dist/embed.mjs +33 -31
- package/dist/hooks/useArtboards.d.ts +2 -1
- package/dist/index.mjs +8 -8
- package/dist/internals.mjs +5 -5
- package/dist/kits/sections.d.ts +11 -7
- package/dist/rendering/serialize-for-server.d.ts +3 -0
- package/dist/state/CanvasStateV1.d.ts +12 -0
- package/dist/template-fields-B9RagVpT.js +476 -0
- package/dist/template-fields-B9RagVpT.js.map +1 -0
- package/dist/testing.mjs +8 -8
- package/dist/types/index.d.ts +10 -0
- package/dist/{usePieceGuideBundle-DVOISsB1.js → usePieceGuideBundle-Ctnu5k2D.js} +2 -2
- package/dist/{usePieceGuideBundle-DVOISsB1.js.map → usePieceGuideBundle-Ctnu5k2D.js.map} +1 -1
- package/dist/{validation-0IscSfRb.js → validation-3YEMnKLB.js} +467 -463
- package/dist/validation-3YEMnKLB.js.map +1 -0
- package/package.json +6 -5
- package/dist/EditorContext-5QpqAhjh.js.map +0 -1
- package/dist/FontAnalyzer-DIlqmyuf.js.map +0 -1
- package/dist/ImportManager-D--7JnvW.js.map +0 -1
- package/dist/MenuButton-CeoEAtzP.js.map +0 -1
- package/dist/SnowconeCanvas-3PA17na3.js +0 -1166
- package/dist/SnowconeCanvas-3PA17na3.js.map +0 -1
- package/dist/design-builder-v4935TeS.js +0 -343
- package/dist/design-builder-v4935TeS.js.map +0 -1
- package/dist/editorErrors-DXNfVXtD.js +0 -29
- package/dist/editorErrors-DXNfVXtD.js.map +0 -1
- package/dist/embed-D0HHwCIO.js +0 -1093
- package/dist/embed-D0HHwCIO.js.map +0 -1
- package/dist/template-fields-Dr3fMItw.js +0 -329
- package/dist/template-fields-Dr3fMItw.js.map +0 -1
- package/dist/validation-0IscSfRb.js.map +0 -1
|
@@ -116,7 +116,7 @@ const At = /* @__PURE__ */ Kt(ee);
|
|
|
116
116
|
let Dt = 1;
|
|
117
117
|
class nt {
|
|
118
118
|
constructor(t = {}) {
|
|
119
|
-
this.transformType = "artboard", this.id = t.id || `artboard-${Dt++}`, this.name = t.name || `Artboard ${Dt}`, this.x = t.x !== void 0 ? t.x : 0, this.y = t.y !== void 0 ? t.y : 0, this.width = t.width || 1920, this.height = t.height || 1080, this.backgroundColor = t.backgroundColor || "#ffffff", t.backgroundType ? this.backgroundType = t.backgroundType : t.backgroundColor === "transparent" ? this.backgroundType = "transparent" : t.backgroundTexture ? this.backgroundType = "texture" : this.backgroundType = "color", this.backgroundTexture = t.backgroundTexture, this.exportBackground = t.exportBackground ?? !1, this.clipShape = t.clipShape, this.previewBackgroundColor = t.previewBackgroundColor, this.distressTexture = t.distressTexture ? { ...t.distressTexture } : void 0, this.imageMask = t.imageMask ? { ...t.imageMask } : void 0, this.elementIds = new Set(t.elementIds || []);
|
|
119
|
+
this.transformType = "artboard", this.id = t.id || `artboard-${Dt++}`, this.name = t.name || `Artboard ${Dt}`, this.x = t.x !== void 0 ? t.x : 0, this.y = t.y !== void 0 ? t.y : 0, this.width = t.width || 1920, this.height = t.height || 1080, this.backgroundColor = t.backgroundColor || "#ffffff", t.backgroundType ? this.backgroundType = t.backgroundType : t.backgroundColor === "transparent" ? this.backgroundType = "transparent" : t.backgroundTexture ? this.backgroundType = "texture" : this.backgroundType = "color", this.backgroundTexture = t.backgroundTexture, this.exportBackground = t.exportBackground ?? !1, this.clipShape = t.clipShape, this.previewBackgroundColor = t.previewBackgroundColor, this.role = t.role, this.distressTexture = t.distressTexture ? { ...t.distressTexture } : void 0, this.imageMask = t.imageMask ? { ...t.imageMask } : void 0, this.elementIds = new Set(t.elementIds || []);
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* Get bounding box of the artboard
|
|
@@ -212,6 +212,7 @@ class nt {
|
|
|
212
212
|
exportBackground: this.exportBackground,
|
|
213
213
|
clipShape: this.clipShape,
|
|
214
214
|
previewBackgroundColor: this.previewBackgroundColor,
|
|
215
|
+
role: this.role,
|
|
215
216
|
distressTexture: this.distressTexture ? { ...this.distressTexture } : void 0,
|
|
216
217
|
imageMask: this.imageMask ? { ...this.imageMask } : void 0,
|
|
217
218
|
elementIds: Array.from(this.elementIds)
|
|
@@ -238,6 +239,8 @@ class nt {
|
|
|
238
239
|
...this.clipShape && { clipShape: this.clipShape },
|
|
239
240
|
// Preview only - saved to project file, but NOT exported to PNG
|
|
240
241
|
...this.previewBackgroundColor && { previewBackgroundColor: this.previewBackgroundColor },
|
|
242
|
+
// Pacing role for multi-page templates — saved to project file, stripped from the server wire
|
|
243
|
+
...this.role && { role: this.role },
|
|
241
244
|
// Artboard-level distress texture
|
|
242
245
|
...this.distressTexture && { distressTexture: { ...this.distressTexture } },
|
|
243
246
|
// Artboard-level image mask
|
|
@@ -7246,4 +7249,4 @@ export {
|
|
|
7246
7249
|
At as y,
|
|
7247
7250
|
ri as z
|
|
7248
7251
|
};
|
|
7249
|
-
//# sourceMappingURL=FontAnalyzer-
|
|
7252
|
+
//# sourceMappingURL=FontAnalyzer-BpsTYowD.js.map
|