@snowcone-app/canvas 0.43.8 → 0.44.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-DIug_mjX.js → CanvasRenderer-B8BADU_r.js} +876 -830
- package/dist/CanvasRenderer-B8BADU_r.js.map +1 -0
- package/dist/{CanvasStateV1-BWd358xJ.js → CanvasStateV1-BlDWgOzV.js} +3 -3
- package/dist/{CanvasStateV1-BWd358xJ.js.map → CanvasStateV1-BlDWgOzV.js.map} +1 -1
- package/dist/ContextualToolbars-rCZo-KCm.js +6808 -0
- package/dist/ContextualToolbars-rCZo-KCm.js.map +1 -0
- package/dist/EditorCanvasImpl-C63QS2OK.js +144 -0
- package/dist/EditorCanvasImpl-C63QS2OK.js.map +1 -0
- package/dist/{ExportManager-BDH9jW4Q.js → ExportManager-xRsXgyNo.js} +2 -2
- package/dist/{ExportManager-BDH9jW4Q.js.map → ExportManager-xRsXgyNo.js.map} +1 -1
- package/dist/{FontAnalyzer-CyhywbAM.js → FontAnalyzer-Ds3Wdba7.js} +239 -236
- package/dist/FontAnalyzer-Ds3Wdba7.js.map +1 -0
- package/dist/{ImagePanel-CIGpLY3B.js → ImagePanel-DhOWKvIN.js} +6 -6
- package/dist/{ImagePanel-CIGpLY3B.js.map → ImagePanel-DhOWKvIN.js.map} +1 -1
- package/dist/{SnowconeCanvas-DE0A9UwD.js → SnowconeCanvas-C-AGGT44.js} +478 -465
- package/dist/SnowconeCanvas-C-AGGT44.js.map +1 -0
- package/dist/adjust-CDVzlVBY.js +145 -0
- package/dist/adjust-CDVzlVBY.js.map +1 -0
- package/dist/advanced.mjs +15 -15
- package/dist/api/stable.d.ts +2 -0
- package/dist/components/ImageToolbar.d.ts +3 -0
- package/dist/components/ShapeToolbar.d.ts +2 -0
- package/dist/components/TextToolbar.d.ts +2 -1
- package/dist/components/embed/SnowconeCanvas.d.ts +8 -0
- package/dist/components/toolbars/SecondaryPanels.d.ts +24 -0
- package/dist/components/toolbars/index.d.ts +2 -2
- package/dist/core/ArtboardElement.d.ts +2 -0
- package/dist/core/CanvasRenderer.d.ts +3 -1
- package/dist/{custom-icons-sT5sNRcG.js → custom-icons-C4bzABm2.js} +2 -2
- package/dist/{custom-icons-sT5sNRcG.js.map → custom-icons-C4bzABm2.js.map} +1 -1
- package/dist/{design-builder-CwfefZJC.js → design-builder-DCHVrEFV.js} +315 -314
- package/dist/design-builder-DCHVrEFV.js.map +1 -0
- package/dist/{embed-rRSCS25g.js → embed-DnjyfavG.js} +10 -10
- package/dist/{embed-rRSCS25g.js.map → embed-DnjyfavG.js.map} +1 -1
- package/dist/embed.mjs +19 -19
- package/dist/engrave/EngraveSync.d.ts +5 -0
- package/dist/engrave/adjust.d.ts +36 -0
- package/dist/engrave/makeEngraved.d.ts +23 -0
- package/dist/engrave/types.d.ts +33 -0
- package/dist/{guards-Dvw7Qch0.js → guards-DwYEoqcn.js} +2 -2
- package/dist/{guards-Dvw7Qch0.js.map → guards-DwYEoqcn.js.map} +1 -1
- package/dist/index.mjs +57 -54
- package/dist/index.mjs.map +1 -1
- package/dist/internals.mjs +6 -6
- package/dist/rendering/EngraveViewRenderer.d.ts +15 -0
- package/dist/{template-fields-DF1ijCl9.js → template-fields-CK7Uvvc8.js} +5 -5
- package/dist/{template-fields-DF1ijCl9.js.map → template-fields-CK7Uvvc8.js.map} +1 -1
- package/dist/testing.mjs +3 -3
- package/dist/types/index.d.ts +5 -0
- package/dist/{useCommands-wwGeWCn6.js → useCommands-BrkGKdXr.js} +7 -7
- package/dist/{useCommands-wwGeWCn6.js.map → useCommands-BrkGKdXr.js.map} +1 -1
- package/dist/{usePieceGuideBundle-BWQINIJR.js → usePieceGuideBundle-BWdobHQE.js} +2 -2
- package/dist/{usePieceGuideBundle-BWQINIJR.js.map → usePieceGuideBundle-BWdobHQE.js.map} +1 -1
- package/dist/{validation-CXC34UhU.js → validation-DETfj7tg.js} +2206 -2201
- package/dist/validation-DETfj7tg.js.map +1 -0
- package/example/package.json +1 -1
- package/package.json +3 -3
- package/dist/CanvasRenderer-DIug_mjX.js.map +0 -1
- package/dist/ContextualToolbars-CspkC1T3.js +0 -6604
- package/dist/ContextualToolbars-CspkC1T3.js.map +0 -1
- package/dist/EditorCanvasImpl-Cn2fdo6a.js +0 -144
- package/dist/EditorCanvasImpl-Cn2fdo6a.js.map +0 -1
- package/dist/FontAnalyzer-CyhywbAM.js.map +0 -1
- package/dist/SnowconeCanvas-DE0A9UwD.js.map +0 -1
- package/dist/design-builder-CwfefZJC.js.map +0 -1
- package/dist/validation-CXC34UhU.js.map +0 -1
|
@@ -112,7 +112,7 @@ B.umask = function() {
|
|
|
112
112
|
return 0;
|
|
113
113
|
};
|
|
114
114
|
var Te = qt.exports;
|
|
115
|
-
const mt = /* @__PURE__ */ Se(Te);
|
|
115
|
+
const mt = /* @__PURE__ */ Se(Te), Fs = [229, 72, 77], Ms = "#000000";
|
|
116
116
|
let Xt = 1;
|
|
117
117
|
class at {
|
|
118
118
|
constructor(t = {}) {
|
|
@@ -219,7 +219,7 @@ class at {
|
|
|
219
219
|
imageMask: this.imageMask ? { ...this.imageMask } : void 0,
|
|
220
220
|
elementIds: Array.from(this.elementIds)
|
|
221
221
|
});
|
|
222
|
-
return t.imageFit = this.imageFit ? { ...this.imageFit } : void 0, t;
|
|
222
|
+
return t.imageFit = this.imageFit ? { ...this.imageFit } : void 0, t.engrave = this.engrave ? { ...this.engrave } : void 0, t;
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
225
|
* Serialize to JSON
|
|
@@ -275,7 +275,7 @@ class at {
|
|
|
275
275
|
this.x = t, this.y = e;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
class
|
|
278
|
+
class As {
|
|
279
279
|
constructor() {
|
|
280
280
|
this.artboards = /* @__PURE__ */ new Map(), this.elementToArtboard = /* @__PURE__ */ new Map(), this.activeArtboardId = null, this.placeholderIds = /* @__PURE__ */ new Set();
|
|
281
281
|
}
|
|
@@ -516,7 +516,7 @@ class Fs {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
const
|
|
519
|
+
const I = {
|
|
520
520
|
/**
|
|
521
521
|
* Forward transform (local → world, for rendering)
|
|
522
522
|
* Converts degrees to radians with the canvas convention (negative = clockwise)
|
|
@@ -578,7 +578,7 @@ class tt {
|
|
|
578
578
|
* Uses visual bounding box for better user experience
|
|
579
579
|
*/
|
|
580
580
|
hitTest(t, e) {
|
|
581
|
-
const s = this.getVisualBoundingBox(), i = this.getRotationAnchor(), r =
|
|
581
|
+
const s = this.getVisualBoundingBox(), i = this.getRotationAnchor(), r = I.toRadiansInverse(this.rotation), h = Math.cos(r), a = Math.sin(r), n = t - i.x, l = e - i.y, c = n * h - l * a, g = n * a + l * h, d = i.x + c, u = i.y + g;
|
|
582
582
|
return d >= s.x && d <= s.x + s.width && u >= s.y && u <= s.y + s.height;
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
@@ -586,7 +586,7 @@ class tt {
|
|
|
586
586
|
* Common implementation for all elements
|
|
587
587
|
*/
|
|
588
588
|
applyCanvasTransform(t) {
|
|
589
|
-
t.translate(this.x, this.y), t.rotate(
|
|
589
|
+
t.translate(this.x, this.y), t.rotate(I.toRadians(this.rotation));
|
|
590
590
|
}
|
|
591
591
|
/**
|
|
592
592
|
* Serialize to JSON
|
|
@@ -2295,7 +2295,7 @@ const Qt = [
|
|
|
2295
2295
|
function Me() {
|
|
2296
2296
|
return Qt.map((o) => o.name);
|
|
2297
2297
|
}
|
|
2298
|
-
const
|
|
2298
|
+
const Ds = {
|
|
2299
2299
|
system: "System Fonts",
|
|
2300
2300
|
display: "Bold & Display",
|
|
2301
2301
|
"sans-serif": "Sans Serif",
|
|
@@ -2319,13 +2319,13 @@ function Ae(o) {
|
|
|
2319
2319
|
function ee() {
|
|
2320
2320
|
return Ae().includes("dark") ? "#60a5fa" : "#3b82f6";
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function Is(o) {
|
|
2323
2323
|
if (typeof window > "u" || typeof document > "u")
|
|
2324
2324
|
return "#FF0000";
|
|
2325
2325
|
const t = o || document.documentElement;
|
|
2326
2326
|
return getComputedStyle(t).getPropertyValue("--color-spacing-indicator").trim() || "#FF0000";
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function ks(o = 0.1, t) {
|
|
2329
2329
|
const e = te(t);
|
|
2330
2330
|
if (e.startsWith("oklch("))
|
|
2331
2331
|
return `${e.slice(0, -1)} / ${o})`;
|
|
@@ -2335,71 +2335,71 @@ function Is(o = 0.1, t) {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
return e;
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function Es(o) {
|
|
2339
2339
|
if (typeof window > "u" || typeof document > "u")
|
|
2340
2340
|
return "oklch(0% 0 0 / 0.45)";
|
|
2341
2341
|
const t = o || document.documentElement;
|
|
2342
2342
|
return getComputedStyle(t).getPropertyValue("--color-text-selection").trim() || "oklch(0% 0 0 / 0.45)";
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2344
|
+
function Os(o) {
|
|
2345
2345
|
if (typeof window > "u" || typeof document > "u")
|
|
2346
2346
|
return "#b5f747";
|
|
2347
2347
|
const t = o || document.documentElement;
|
|
2348
2348
|
return getComputedStyle(t).getPropertyValue("--color-accent-hover").trim() || "#b5f747";
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function De(o) {
|
|
2351
2351
|
if (typeof window > "u" || typeof document > "u")
|
|
2352
2352
|
return "oklch(0.2103 0.0059 285.89)";
|
|
2353
2353
|
const t = o || document.documentElement;
|
|
2354
2354
|
return getComputedStyle(t).getPropertyValue("--foreground").trim() || "oklch(0.2103 0.0059 285.89)";
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function Bs(o) {
|
|
2357
2357
|
if (typeof window > "u" || typeof document > "u")
|
|
2358
2358
|
return "oklch(0.9607 0 0)";
|
|
2359
2359
|
const t = o || document.documentElement;
|
|
2360
2360
|
return getComputedStyle(t).getPropertyValue("--background").trim() || "oklch(0.9607 0 0)";
|
|
2361
2361
|
}
|
|
2362
|
-
function
|
|
2363
|
-
const t =
|
|
2362
|
+
function Rs(o) {
|
|
2363
|
+
const t = De(o);
|
|
2364
2364
|
return t.startsWith("oklch(") ? `${t.slice(0, -1)} / 0.2)` : "rgba(0,0,0,0.2)";
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function Hs(o) {
|
|
2367
2367
|
if (typeof window > "u" || typeof document > "u")
|
|
2368
2368
|
return "oklch(0% 0 0 / 0.2)";
|
|
2369
2369
|
const t = document.documentElement;
|
|
2370
2370
|
return getComputedStyle(t).getPropertyValue("--divider").trim() || "oklch(0% 0 0 / 0.2)";
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function Ps(o) {
|
|
2373
2373
|
if (typeof window > "u" || typeof document > "u")
|
|
2374
2374
|
return "oklch(0% 0 0 / 0.5)";
|
|
2375
2375
|
const t = document.documentElement, e = getComputedStyle(t).getPropertyValue("--foreground").trim();
|
|
2376
2376
|
return e.startsWith("oklch(") ? `${e.slice(0, -1)} / 0.5)` : e || "oklch(0% 0 0 / 0.5)";
|
|
2377
2377
|
}
|
|
2378
|
-
function
|
|
2378
|
+
function Ls(o) {
|
|
2379
2379
|
if (typeof window > "u" || typeof document > "u")
|
|
2380
2380
|
return "#b5f747";
|
|
2381
2381
|
const t = document.documentElement;
|
|
2382
2382
|
return getComputedStyle(t).getPropertyValue("--color-accent-hover-border").trim() || "#b5f747";
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function Ws(o) {
|
|
2385
2385
|
if (typeof window > "u" || typeof document > "u")
|
|
2386
2386
|
return "oklch(0.2103 0.0059 285.89)";
|
|
2387
2387
|
const t = document.documentElement;
|
|
2388
2388
|
return getComputedStyle(t).getPropertyValue("--foreground").trim() || "oklch(0.2103 0.0059 285.89)";
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function Ns(o) {
|
|
2391
2391
|
if (typeof window > "u" || typeof document > "u")
|
|
2392
2392
|
return "oklch(1 0 0)";
|
|
2393
2393
|
const t = document.documentElement;
|
|
2394
2394
|
return getComputedStyle(t).getPropertyValue("--background").trim() || "oklch(1 0 0)";
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function _s(o) {
|
|
2397
2397
|
if (typeof window > "u" || typeof document > "u")
|
|
2398
2398
|
return "oklch(0.2103 0.0059 285.89 / 0.5)";
|
|
2399
2399
|
const t = document.documentElement, e = getComputedStyle(t).getPropertyValue("--foreground").trim();
|
|
2400
2400
|
return e.startsWith("oklch(") ? `${e.slice(0, -1)} / 0.5)` : e || "oklch(0.2103 0.0059 285.89 / 0.5)";
|
|
2401
2401
|
}
|
|
2402
|
-
const
|
|
2402
|
+
const Xs = 1, zs = "#ffffff", Ie = 20, Ys = 6, Us = 24, ke = 16, Ee = 36, Oe = 24, Gs = 4, $s = "#FFFFFF", Vs = 2, Js = 0.1, qs = Me(), js = [8, 10, 12, 14, 16, 18, 20, 24, 28, 32, 36, 48, 64, 72, 96, 128], Z = 0, se = 1.2, ie = 50, Be = 8, Re = 999, He = /* @__PURE__ */ new Set([
|
|
2403
2403
|
"Arial",
|
|
2404
2404
|
"Arial Black",
|
|
2405
2405
|
"Verdana",
|
|
@@ -2500,7 +2500,7 @@ class Ne {
|
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
2502
|
const _e = new We(), wt = (o) => _e.scope(o), oe = wt("ImageLoadEvents"), At = /* @__PURE__ */ new Set();
|
|
2503
|
-
function
|
|
2503
|
+
function Zs(o) {
|
|
2504
2504
|
return At.add(o), () => {
|
|
2505
2505
|
At.delete(o);
|
|
2506
2506
|
};
|
|
@@ -2514,14 +2514,14 @@ function st(o) {
|
|
|
2514
2514
|
}
|
|
2515
2515
|
});
|
|
2516
2516
|
}
|
|
2517
|
-
const
|
|
2518
|
-
function
|
|
2519
|
-
return
|
|
2520
|
-
|
|
2517
|
+
const Dt = /* @__PURE__ */ new Set();
|
|
2518
|
+
function Ks(o) {
|
|
2519
|
+
return Dt.add(o), () => {
|
|
2520
|
+
Dt.delete(o);
|
|
2521
2521
|
};
|
|
2522
2522
|
}
|
|
2523
2523
|
function Xe(o) {
|
|
2524
|
-
|
|
2524
|
+
Dt.forEach((t) => {
|
|
2525
2525
|
try {
|
|
2526
2526
|
t(o);
|
|
2527
2527
|
} catch (e) {
|
|
@@ -2611,7 +2611,7 @@ class q {
|
|
|
2611
2611
|
this.cache.clear();
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
|
-
const
|
|
2614
|
+
const Qs = Object.freeze({
|
|
2615
2615
|
brightness: 1,
|
|
2616
2616
|
contrast: 1,
|
|
2617
2617
|
saturation: 1
|
|
@@ -2628,22 +2628,22 @@ function ze(o) {
|
|
|
2628
2628
|
saturation: t(o.saturation)
|
|
2629
2629
|
};
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function ti(o) {
|
|
2632
2632
|
if (Pt(o)) return "neutral";
|
|
2633
2633
|
const t = o;
|
|
2634
2634
|
return `b${t.brightness}c${t.contrast}s${t.saturation}`;
|
|
2635
2635
|
}
|
|
2636
|
-
let
|
|
2637
|
-
function
|
|
2638
|
-
|
|
2636
|
+
let It = null;
|
|
2637
|
+
function ei(o) {
|
|
2638
|
+
It = o;
|
|
2639
2639
|
}
|
|
2640
2640
|
function Ye(o, t) {
|
|
2641
2641
|
if (Pt(t)) return o;
|
|
2642
|
-
if (!
|
|
2642
|
+
if (!It)
|
|
2643
2643
|
throw new Error(
|
|
2644
2644
|
"[image-adjustments] no adjusted-source provider registered. Painting an image with non-neutral adjustments requires the rendering engine: import 'src/rendering/image-adjustments.js' (rendering/element-painters does this for every paint driver; a direct element.render() call in a test must import it too)."
|
|
2645
2645
|
);
|
|
2646
|
-
return
|
|
2646
|
+
return It(o, t);
|
|
2647
2647
|
}
|
|
2648
2648
|
const kt = "frame", re = Object.freeze({ cropX: 0, cropY: 0, cropWidth: 1, cropHeight: 1 });
|
|
2649
2649
|
function Ue(o) {
|
|
@@ -2660,11 +2660,11 @@ function Ot(o, t) {
|
|
|
2660
2660
|
cropHeight: o.cropHeight ?? 1
|
|
2661
2661
|
};
|
|
2662
2662
|
}
|
|
2663
|
-
function
|
|
2663
|
+
function si(o, t) {
|
|
2664
2664
|
const e = Ot(o, t);
|
|
2665
2665
|
return { width: ((o == null ? void 0 : o.width) ?? 0) * e.cropWidth, height: ((o == null ? void 0 : o.height) ?? 0) * e.cropHeight };
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function ii(o) {
|
|
2668
2668
|
return Array.isArray(o == null ? void 0 : o.masks) && o.masks.length > 0;
|
|
2669
2669
|
}
|
|
2670
2670
|
const it = wt("ImageElement"), zt = 3e4, vt = 3, Ge = 1e3;
|
|
@@ -2674,7 +2674,7 @@ function S(o) {
|
|
|
2674
2674
|
class bt extends tt {
|
|
2675
2675
|
// Track URL acquired from ImageCache for release on destroy
|
|
2676
2676
|
constructor(t = {}) {
|
|
2677
|
-
var s, i, r, h, a, n, l, c, g, d, u;
|
|
2677
|
+
var s, i, r, h, a, n, l, c, g, d, u, f;
|
|
2678
2678
|
super(t), this.svgBlobUrl = null, this.loadTimeoutId = null, this.retryAttempt = 0, this.cachedImageUrl = null, this.transformType = "image", this.transformData = {
|
|
2679
2679
|
type: "image",
|
|
2680
2680
|
width: ((s = t.transformData) == null ? void 0 : s.width) || 200,
|
|
@@ -2688,7 +2688,7 @@ class bt extends tt {
|
|
|
2688
2688
|
borderRadius: ((g = t.transformData) == null ? void 0 : g.borderRadius) ?? 0
|
|
2689
2689
|
}, Et(t.transformData, this.hasMasks()) && Object.assign(this.transformData, re), this.transformData.maskedCrop = kt;
|
|
2690
2690
|
const e = ze((d = t.transformData) == null ? void 0 : d.adjustments);
|
|
2691
|
-
e && (this.transformData.adjustments = e), this.imageUrl = t.imageUrl || "", this.imageLoaded = !1, this.imageElement = null, this.imageAspectRatio = t.imageAspectRatio || 1, this.isSvg = ((
|
|
2691
|
+
e && (this.transformData.adjustments = e), (u = t.transformData) != null && u.engrave && (this.transformData.engrave = { ...t.transformData.engrave }), this.imageUrl = t.imageUrl || "", this.imageLoaded = !1, this.imageElement = null, this.imageAspectRatio = t.imageAspectRatio || 1, this.isSvg = ((f = t.imageUrl) == null ? void 0 : f.toLowerCase().endsWith(".svg")) || !1, this.preserveDimensions = t.preserveDimensions ?? !1, this.imageLoadState = t.imageUrl ? "loading" : "loaded", this.imageLoadError = null, this.isCropping = !1, this.onLoadCallback = t.onLoadCallback || null, this.imageUrl && this.loadImage(this.imageUrl);
|
|
2692
2692
|
}
|
|
2693
2693
|
/**
|
|
2694
2694
|
* Load image from URL
|
|
@@ -2835,7 +2835,7 @@ class bt extends tt {
|
|
|
2835
2835
|
let s = this.transformData.width / 2 - (this.transformData.cropX * this.transformData.width + t / 2), i = this.transformData.height / 2 - (this.transformData.cropY * this.transformData.height + e / 2);
|
|
2836
2836
|
const r = this.transformData.flipHorizontal ? -1 : 1, h = this.transformData.flipVertical ? -1 : 1;
|
|
2837
2837
|
s *= r, i *= h;
|
|
2838
|
-
const a = Math.cos(
|
|
2838
|
+
const a = Math.cos(I.toRadians(this.rotation)), n = Math.sin(I.toRadians(this.rotation)), l = s * a - i * n, c = s * n + i * a, g = this.x + l, d = this.y + c;
|
|
2839
2839
|
return {
|
|
2840
2840
|
x: g - this.transformData.width / 2,
|
|
2841
2841
|
y: d - this.transformData.height / 2,
|
|
@@ -2876,7 +2876,7 @@ class bt extends tt {
|
|
|
2876
2876
|
let s = this.transformData.width / 2 - (this.transformData.cropX * this.transformData.width + t / 2), i = this.transformData.height / 2 - (this.transformData.cropY * this.transformData.height + e / 2);
|
|
2877
2877
|
const r = this.transformData.flipHorizontal ? -1 : 1, h = this.transformData.flipVertical ? -1 : 1;
|
|
2878
2878
|
s *= r, i *= h;
|
|
2879
|
-
const a = Math.cos(
|
|
2879
|
+
const a = Math.cos(I.toRadians(this.rotation)), n = Math.sin(I.toRadians(this.rotation)), l = s * a - i * n, c = s * n + i * a;
|
|
2880
2880
|
return {
|
|
2881
2881
|
x: this.x + l,
|
|
2882
2882
|
y: this.y + c
|
|
@@ -2912,7 +2912,7 @@ class bt extends tt {
|
|
|
2912
2912
|
this.imageElement,
|
|
2913
2913
|
this.transformData.adjustments
|
|
2914
2914
|
), r = i.width, h = i.height;
|
|
2915
|
-
t.save(), this.opacity !== void 0 && this.opacity !== 1 && (t.globalAlpha = t.globalAlpha * this.opacity), t.translate(this.x, this.y), t.rotate(
|
|
2915
|
+
t.save(), this.opacity !== void 0 && this.opacity !== 1 && (t.globalAlpha = t.globalAlpha * this.opacity), t.translate(this.x, this.y), t.rotate(I.toRadians(this.rotation));
|
|
2916
2916
|
const a = this.transformData.flipHorizontal ? -1 : 1, n = this.transformData.flipVertical ? -1 : 1;
|
|
2917
2917
|
if (t.scale(a, n), this.isCropping) {
|
|
2918
2918
|
const l = this.transformData.width * this.transformData.cropWidth, c = this.transformData.height * this.transformData.cropHeight, g = this.transformData.width / 2 - (this.transformData.cropX * this.transformData.width + l / 2), d = this.transformData.height / 2 - (this.transformData.cropY * this.transformData.height + c / 2), u = g - this.transformData.width / 2, f = d - this.transformData.height / 2, m = this.transformData.borderRadius || 0;
|
|
@@ -2973,7 +2973,7 @@ class bt extends tt {
|
|
|
2973
2973
|
* Shows different visuals for loading, retrying, error, and no-image states.
|
|
2974
2974
|
*/
|
|
2975
2975
|
renderPlaceholder(t) {
|
|
2976
|
-
t.save(), t.translate(this.x, this.y), t.rotate(
|
|
2976
|
+
t.save(), t.translate(this.x, this.y), t.rotate(I.toRadians(this.rotation));
|
|
2977
2977
|
const e = this.transformData.width * this.transformData.cropWidth, s = this.transformData.height * this.transformData.cropHeight, i = -e / 2, r = -s / 2;
|
|
2978
2978
|
let h, a, n;
|
|
2979
2979
|
this.imageLoadState === "error" ? (h = "#f0e0e0", a = "#993333", n = "Image failed to load") : this.imageLoadState === "retrying" ? (h = "#e0e0e0", a = "#666", n = "Retrying...") : this.imageLoadState === "loading" ? (h = "#e0e0e0", a = "#666", n = "Loading...") : (h = "#e0e0e0", a = "#666", n = this.imageUrl ? "Loading..." : "No image"), t.fillStyle = h, t.fillRect(i, r, e, s), t.fillStyle = a, t.font = "14px system-ui, -apple-system, sans-serif", t.textAlign = "center", t.textBaseline = "middle", t.fillText(n, 0, 0), t.restore();
|
|
@@ -3101,7 +3101,7 @@ class bt extends tt {
|
|
|
3101
3101
|
getCropBoxWorldCorners() {
|
|
3102
3102
|
const t = this.getCropBoxBounds();
|
|
3103
3103
|
if (!t) return null;
|
|
3104
|
-
const e = Math.cos(
|
|
3104
|
+
const e = Math.cos(I.toRadians(this.rotation)), s = Math.sin(I.toRadians(this.rotation));
|
|
3105
3105
|
return [
|
|
3106
3106
|
{ x: t.x, y: t.y },
|
|
3107
3107
|
// top-left
|
|
@@ -3121,7 +3121,7 @@ class bt extends tt {
|
|
|
3121
3121
|
* Local coordinates are relative to this.x, this.y (the center of the visible area)
|
|
3122
3122
|
*/
|
|
3123
3123
|
worldToLocal(t, e) {
|
|
3124
|
-
const s = t - this.x, i = e - this.y, r = Math.cos(
|
|
3124
|
+
const s = t - this.x, i = e - this.y, r = Math.cos(I.toRadiansInverse(this.rotation)), h = Math.sin(I.toRadiansInverse(this.rotation));
|
|
3125
3125
|
let a = s * r - i * h, n = s * h + i * r;
|
|
3126
3126
|
const l = this.transformData.flipHorizontal ? -1 : 1, c = this.transformData.flipVertical ? -1 : 1;
|
|
3127
3127
|
return a *= l, n *= c, {
|
|
@@ -3137,7 +3137,7 @@ class bt extends tt {
|
|
|
3137
3137
|
localToWorld(t, e) {
|
|
3138
3138
|
const s = this.transformData.flipHorizontal ? -1 : 1, i = this.transformData.flipVertical ? -1 : 1;
|
|
3139
3139
|
let r = t * s, h = e * i;
|
|
3140
|
-
const a = Math.cos(
|
|
3140
|
+
const a = Math.cos(I.toRadians(this.rotation)), n = Math.sin(I.toRadians(this.rotation)), l = r * a - h * n, c = r * n + h * a;
|
|
3141
3141
|
return {
|
|
3142
3142
|
x: this.x + l,
|
|
3143
3143
|
y: this.y + c
|
|
@@ -3207,7 +3207,7 @@ class bt extends tt {
|
|
|
3207
3207
|
l + a > 1 && (a = 1 - l), c + n > 1 && (n = 1 - c);
|
|
3208
3208
|
let g = 0, d = 0;
|
|
3209
3209
|
if (r) {
|
|
3210
|
-
const u = this.transformData.cropX * this.transformData.width + this.transformData.cropWidth * this.transformData.width / 2, f = this.transformData.cropY * this.transformData.height + this.transformData.cropHeight * this.transformData.height / 2, m = l * this.transformData.width + a * this.transformData.width / 2, y = c * this.transformData.height + n * this.transformData.height / 2, p = m - u, w = y - f, b = Math.cos(
|
|
3210
|
+
const u = this.transformData.cropX * this.transformData.width + this.transformData.cropWidth * this.transformData.width / 2, f = this.transformData.cropY * this.transformData.height + this.transformData.cropHeight * this.transformData.height / 2, m = l * this.transformData.width + a * this.transformData.width / 2, y = c * this.transformData.height + n * this.transformData.height / 2, p = m - u, w = y - f, b = Math.cos(I.toRadians(this.rotation)), x = Math.sin(I.toRadians(this.rotation));
|
|
3211
3211
|
g = p * b - w * x, d = p * x + w * b;
|
|
3212
3212
|
}
|
|
3213
3213
|
this.transformData.cropX = l, this.transformData.cropY = c, this.transformData.cropWidth = a, this.transformData.cropHeight = n, r && (this.x += g, this.y += d);
|
|
@@ -3372,7 +3372,8 @@ class bt extends tt {
|
|
|
3372
3372
|
...this.transformData,
|
|
3373
3373
|
// Deep-copy the nested adjustments object so serialized state (and
|
|
3374
3374
|
// clones built from it) never alias this element's live state.
|
|
3375
|
-
...this.transformData.adjustments ? { adjustments: { ...this.transformData.adjustments } } : {}
|
|
3375
|
+
...this.transformData.adjustments ? { adjustments: { ...this.transformData.adjustments } } : {},
|
|
3376
|
+
...this.transformData.engrave ? { engrave: { ...this.transformData.engrave } } : {}
|
|
3376
3377
|
}
|
|
3377
3378
|
};
|
|
3378
3379
|
}
|
|
@@ -3392,7 +3393,7 @@ function ae(o) {
|
|
|
3392
3393
|
`[paint-registry] no painter registered for ${o}. Element painting requires the rendering engine: import 'src/rendering/element-painters.js' (every paint driver — CanvasRenderer, ExportManager, ElementPreviewRenderer — does this; a direct element.render() call in a test must import it too).`
|
|
3393
3394
|
);
|
|
3394
3395
|
}
|
|
3395
|
-
function
|
|
3396
|
+
function oi(o, t) {
|
|
3396
3397
|
ne.set(o, t);
|
|
3397
3398
|
}
|
|
3398
3399
|
function ut(o) {
|
|
@@ -3400,7 +3401,7 @@ function ut(o) {
|
|
|
3400
3401
|
if (!t) throw ae(`text transform "${o}"`);
|
|
3401
3402
|
return t;
|
|
3402
3403
|
}
|
|
3403
|
-
function
|
|
3404
|
+
function ri(o) {
|
|
3404
3405
|
Bt = o;
|
|
3405
3406
|
}
|
|
3406
3407
|
function $e() {
|
|
@@ -3610,68 +3611,68 @@ class L {
|
|
|
3610
3611
|
return new L(t.spans);
|
|
3611
3612
|
}
|
|
3612
3613
|
}
|
|
3613
|
-
function
|
|
3614
|
+
function ni(o) {
|
|
3614
3615
|
return o.type === "custom";
|
|
3615
3616
|
}
|
|
3616
|
-
function
|
|
3617
|
+
function ai(o) {
|
|
3617
3618
|
return o.type === "circle";
|
|
3618
3619
|
}
|
|
3619
|
-
function
|
|
3620
|
+
function hi(o) {
|
|
3620
3621
|
return o.type === "arch";
|
|
3621
3622
|
}
|
|
3622
|
-
function
|
|
3623
|
+
function li(o) {
|
|
3623
3624
|
return o.type === "wave";
|
|
3624
3625
|
}
|
|
3625
|
-
function
|
|
3626
|
+
function ci(o) {
|
|
3626
3627
|
return o.type === "flag";
|
|
3627
3628
|
}
|
|
3628
|
-
function
|
|
3629
|
+
function di(o) {
|
|
3629
3630
|
return o.type === "image";
|
|
3630
3631
|
}
|
|
3631
|
-
function
|
|
3632
|
+
function gi(o) {
|
|
3632
3633
|
return o.type === "group";
|
|
3633
3634
|
}
|
|
3634
|
-
function
|
|
3635
|
+
function fi(o) {
|
|
3635
3636
|
return o.transformType !== "image" && o.transformType !== "group";
|
|
3636
3637
|
}
|
|
3637
|
-
function
|
|
3638
|
+
function ui(o) {
|
|
3638
3639
|
return o.transformType === "image";
|
|
3639
3640
|
}
|
|
3640
|
-
function
|
|
3641
|
+
function mi(o) {
|
|
3641
3642
|
return o.transformType === "custom";
|
|
3642
3643
|
}
|
|
3643
|
-
function
|
|
3644
|
+
function pi(o) {
|
|
3644
3645
|
return o.transformType === "circle";
|
|
3645
3646
|
}
|
|
3646
|
-
function
|
|
3647
|
+
function yi(o) {
|
|
3647
3648
|
return o.transformType === "group";
|
|
3648
3649
|
}
|
|
3649
|
-
function
|
|
3650
|
+
function wi(o) {
|
|
3650
3651
|
return o.transformType === "shape";
|
|
3651
3652
|
}
|
|
3652
|
-
function
|
|
3653
|
+
function bi(o) {
|
|
3653
3654
|
return o.transformType === "path";
|
|
3654
3655
|
}
|
|
3655
|
-
function
|
|
3656
|
+
function xi(o) {
|
|
3656
3657
|
return o.type === "shape";
|
|
3657
3658
|
}
|
|
3658
|
-
function
|
|
3659
|
+
function Si(o) {
|
|
3659
3660
|
return o.type === "path";
|
|
3660
3661
|
}
|
|
3661
|
-
function
|
|
3662
|
+
function Ci(o) {
|
|
3662
3663
|
var t;
|
|
3663
3664
|
return ((t = o.stroke) == null ? void 0 : t.enabled) === !0;
|
|
3664
3665
|
}
|
|
3665
|
-
function
|
|
3666
|
+
function vi(o) {
|
|
3666
3667
|
return Array.isArray(o.masks) && o.masks.length > 0;
|
|
3667
3668
|
}
|
|
3668
|
-
function
|
|
3669
|
+
function Ti(o) {
|
|
3669
3670
|
return o.blendMode === "knockout" || o.blendMode === "clip";
|
|
3670
3671
|
}
|
|
3671
|
-
function
|
|
3672
|
+
function Fi(o) {
|
|
3672
3673
|
return Ve.includes(o);
|
|
3673
3674
|
}
|
|
3674
|
-
function
|
|
3675
|
+
function Mi(o) {
|
|
3675
3676
|
var t;
|
|
3676
3677
|
return ((t = o.distressEffect) == null ? void 0 : t.enabled) === !0;
|
|
3677
3678
|
}
|
|
@@ -3853,10 +3854,10 @@ function he(o, t, e, s, i, r) {
|
|
|
3853
3854
|
t[o](c[g], n + h[g], i);
|
|
3854
3855
|
t.textAlign = l;
|
|
3855
3856
|
}
|
|
3856
|
-
function
|
|
3857
|
+
function Ai(o, t, e, s, i) {
|
|
3857
3858
|
he("fillText", o, t, e, s, i);
|
|
3858
3859
|
}
|
|
3859
|
-
function
|
|
3860
|
+
function Di(o, t, e, s, i) {
|
|
3860
3861
|
he("strokeText", o, t, e, s, i);
|
|
3861
3862
|
}
|
|
3862
3863
|
let lt = null;
|
|
@@ -3904,12 +3905,12 @@ function Lt(o, t, e, s, i = !1, r = !1, h, a = !1, n) {
|
|
|
3904
3905
|
}
|
|
3905
3906
|
return M.length > 0 && (M[0] = m + M[0], M[M.length - 1] = M[M.length - 1] + y), M;
|
|
3906
3907
|
}
|
|
3907
|
-
const b = w.join(" "), x = m + b + y, T = d(x),
|
|
3908
|
+
const b = w.join(" "), x = m + b + y, T = d(x), D = t < 200, F = a ? Rt(t) : Math.max(20, t * (D ? 0.08 : 0.05));
|
|
3908
3909
|
if (T <= t + F)
|
|
3909
3910
|
return [x];
|
|
3910
3911
|
const v = [];
|
|
3911
3912
|
let A = "";
|
|
3912
|
-
const k = a ? Rt(t) : Math.max(15, t * (
|
|
3913
|
+
const k = a ? Rt(t) : Math.max(15, t * (D ? 0.05 : 0.03));
|
|
3913
3914
|
for (let M = 0; M < w.length; M++) {
|
|
3914
3915
|
const E = w[M];
|
|
3915
3916
|
if (d(E) > t + k) {
|
|
@@ -3959,9 +3960,9 @@ function Ut(o, t, e, s, i = !1, r = !1, h, a = !1, n) {
|
|
|
3959
3960
|
const y = Ht(e, s, i, r);
|
|
3960
3961
|
let p = 0;
|
|
3961
3962
|
c.forEach((x, T) => {
|
|
3962
|
-
const
|
|
3963
|
+
const D = d[T].isParagraphStart, C = d[T].isParagraphEnd;
|
|
3963
3964
|
let F = x;
|
|
3964
|
-
if (!
|
|
3965
|
+
if (!D) {
|
|
3965
3966
|
const v = x.match(/^ +/), A = v ? v[0].length : 0;
|
|
3966
3967
|
A > 0 && (F = F.substring(A));
|
|
3967
3968
|
}
|
|
@@ -4003,8 +4004,8 @@ function Ze() {
|
|
|
4003
4004
|
}
|
|
4004
4005
|
function Ke(o, t, e) {
|
|
4005
4006
|
const s = Ze(), i = [], r = t + Rt(t), h = (p, w) => {
|
|
4006
|
-
const b = w.fontSize || e.fontSize, x = w.fontFamily || e.fontFamily, T = w.bold !== void 0 ? w.bold : e.bold || !1,
|
|
4007
|
-
return s.font = ht(b, x, T,
|
|
4007
|
+
const b = w.fontSize || e.fontSize, x = w.fontFamily || e.fontFamily, T = w.bold !== void 0 ? w.bold : e.bold || !1, D = w.italic !== void 0 ? w.italic : e.italic || !1, C = w.letterSpacing !== void 0 ? w.letterSpacing : e.letterSpacing ?? 0;
|
|
4008
|
+
return s.font = ht(b, x, T, D), xt(s.measureText(p).width, p, C);
|
|
4008
4009
|
}, a = (p, w) => p.fontSize === w.fontSize && p.fontFamily === w.fontFamily && p.color === w.color && p.bold === w.bold && p.italic === w.italic && p.underline === w.underline && p.strikethrough === w.strikethrough && p.letterSpacing === w.letterSpacing, n = [];
|
|
4009
4010
|
o.forEach((p) => {
|
|
4010
4011
|
n.length > 0 && a(n[n.length - 1].style, p.style) ? n[n.length - 1].text += p.text : n.push({ text: p.text, style: p.style });
|
|
@@ -4034,15 +4035,15 @@ function Ke(o, t, e) {
|
|
|
4034
4035
|
F !== x ? (b.push({ text: T, style: n[x].style }), T = l[C], x = F) : T += l[C];
|
|
4035
4036
|
}
|
|
4036
4037
|
T.length > 0 && b.push({ text: T, style: n[x].style });
|
|
4037
|
-
const
|
|
4038
|
+
const D = b.reduce((C, F) => C + h(F.text, F.style), 0);
|
|
4038
4039
|
if (p.text === " ") {
|
|
4039
4040
|
if (f.length > 0) {
|
|
4040
4041
|
const C = f[f.length - 1];
|
|
4041
4042
|
a(C.style, b[0].style) ? C.text += " " : f.push({ text: " ", style: b[0].style });
|
|
4042
4043
|
} else
|
|
4043
4044
|
f.push({ text: " ", style: b[0].style });
|
|
4044
|
-
m +=
|
|
4045
|
-
} else if (
|
|
4045
|
+
m += D;
|
|
4046
|
+
} else if (D > r) {
|
|
4046
4047
|
f.length > 0 && y();
|
|
4047
4048
|
for (const C of b) {
|
|
4048
4049
|
const F = Array.from(C.text);
|
|
@@ -4070,13 +4071,13 @@ function Ke(o, t, e) {
|
|
|
4070
4071
|
f.push({ text: v, style: C.style });
|
|
4071
4072
|
}
|
|
4072
4073
|
} else
|
|
4073
|
-
m +
|
|
4074
|
+
m + D > r && f.length > 0 && y(), b.forEach((C) => {
|
|
4074
4075
|
if (f.length > 0) {
|
|
4075
4076
|
const F = f[f.length - 1];
|
|
4076
4077
|
a(F.style, C.style) ? F.text += C.text : f.push({ ...C });
|
|
4077
4078
|
} else
|
|
4078
4079
|
f.push({ ...C });
|
|
4079
|
-
}), m +=
|
|
4080
|
+
}), m += D;
|
|
4080
4081
|
}), y(), i.length === 0 && i.push([]), i;
|
|
4081
4082
|
}
|
|
4082
4083
|
function Qe(o) {
|
|
@@ -4121,7 +4122,7 @@ function es(o, t, e, s) {
|
|
|
4121
4122
|
const i = o.transformData;
|
|
4122
4123
|
if (ot(i) !== void 0) {
|
|
4123
4124
|
le(i, Math.max(ie, e));
|
|
4124
|
-
const h =
|
|
4125
|
+
const h = I.toRadiansInverse(o.rotation), a = Math.cos(h), n = Math.sin(h), l = s.transformData, g = ot(l) ?? s.width ?? 0, u = (ot(i) ?? 0) - g;
|
|
4125
4126
|
t === "middle-left" ? (o.x = s.x - u / 2 * a, o.y = s.y - u / 2 * n) : t === "middle-right" && (o.x = s.x + u / 2 * a, o.y = s.y + u / 2 * n);
|
|
4126
4127
|
}
|
|
4127
4128
|
}
|
|
@@ -4353,7 +4354,7 @@ class ss extends j {
|
|
|
4353
4354
|
}
|
|
4354
4355
|
}
|
|
4355
4356
|
function is(o, t, e, s) {
|
|
4356
|
-
const i =
|
|
4357
|
+
const i = I.toRadians(s), r = Math.cos(i), h = Math.sin(i);
|
|
4357
4358
|
let a = 0, n = 0;
|
|
4358
4359
|
e === "top-left" ? (a = o.width, n = o.height) : e === "top-right" ? (a = 0, n = o.height) : e === "bottom-left" ? (a = o.width, n = 0) : e === "bottom-right" && (a = 0, n = 0);
|
|
4359
4360
|
const l = o.x + (a * r - n * h), c = o.y + (a * h + n * r);
|
|
@@ -4362,15 +4363,15 @@ function is(o, t, e, s) {
|
|
|
4362
4363
|
const u = l - (g * r - d * h), f = c - (g * h + d * r);
|
|
4363
4364
|
return { x: u, y: f };
|
|
4364
4365
|
}
|
|
4365
|
-
function
|
|
4366
|
-
const i = o.width / 2, r = o.height +
|
|
4366
|
+
function Ii(o, t, e, s = 1) {
|
|
4367
|
+
const i = o.width / 2, r = o.height + Ie / s, h = o.x + i, a = o.y + r, n = I.toRadians(t), l = Math.cos(n), c = Math.sin(n), g = h - e.x, d = a - e.y, u = g * l - d * c, f = g * c + d * l;
|
|
4367
4368
|
return {
|
|
4368
4369
|
x: e.x + u,
|
|
4369
4370
|
y: e.y + f
|
|
4370
4371
|
};
|
|
4371
4372
|
}
|
|
4372
|
-
function
|
|
4373
|
-
const s =
|
|
4373
|
+
function ki(o, t, e) {
|
|
4374
|
+
const s = I.toRadians(t), i = Math.cos(s), r = Math.sin(s), h = (c, g) => {
|
|
4374
4375
|
const d = o.x + c, u = o.y + g, f = d - e.x, m = u - e.y, y = f * i - m * r, p = f * r + m * i;
|
|
4375
4376
|
return {
|
|
4376
4377
|
x: e.x + y,
|
|
@@ -4406,28 +4407,28 @@ function Ii(o, t, e) {
|
|
|
4406
4407
|
l("edge", "middle-bottom", a / 2, n)
|
|
4407
4408
|
];
|
|
4408
4409
|
}
|
|
4409
|
-
function
|
|
4410
|
+
function Ei(o, t, e, s, i) {
|
|
4410
4411
|
const r = o - e, h = t - s;
|
|
4411
4412
|
return r * r + h * h <= i * i;
|
|
4412
4413
|
}
|
|
4413
|
-
function
|
|
4414
|
-
const i =
|
|
4414
|
+
function Oi(o, t, e, s) {
|
|
4415
|
+
const i = I.toRadiansInverse(s), r = Math.cos(i), h = Math.sin(i), a = o - e.x, n = t - e.y, l = a * r - n * h, c = a * h + n * r;
|
|
4415
4416
|
return l >= 0 && l <= e.width && c >= 0 && c <= e.height;
|
|
4416
4417
|
}
|
|
4417
4418
|
function et(o, t, e = "Arial", s = !1, i = !1) {
|
|
4418
4419
|
const h = document.createElement("canvas").getContext("2d"), a = s ? "bold" : "normal", n = i ? "italic" : "normal";
|
|
4419
4420
|
return h.font = `${n} ${a} ${t}px ${e}`, h.measureText(o).width;
|
|
4420
4421
|
}
|
|
4421
|
-
function
|
|
4422
|
+
function Bi(o) {
|
|
4422
4423
|
return {
|
|
4423
4424
|
x: o.x + o.width / 2,
|
|
4424
4425
|
y: o.y + o.height / 2
|
|
4425
4426
|
};
|
|
4426
4427
|
}
|
|
4427
|
-
function
|
|
4428
|
+
function Ri(o, t, e, s) {
|
|
4428
4429
|
return Math.atan2(s - t, e - o);
|
|
4429
4430
|
}
|
|
4430
|
-
function
|
|
4431
|
+
function Hi(o, t, e) {
|
|
4431
4432
|
return Math.abs(o - t) <= e;
|
|
4432
4433
|
}
|
|
4433
4434
|
function os(o, t, e, s, i, r = 0, h = "") {
|
|
@@ -4453,7 +4454,7 @@ function rs(o) {
|
|
|
4453
4454
|
const t = o.getTransform();
|
|
4454
4455
|
return Math.sqrt(t.a * t.a + t.b * t.b);
|
|
4455
4456
|
}
|
|
4456
|
-
function
|
|
4457
|
+
function Pi(o, t, e = []) {
|
|
4457
4458
|
const s = rs(o);
|
|
4458
4459
|
o.lineWidth = s > 0 ? t / s : t, e.length > 0 && o.setLineDash(s > 0 ? e.map((i) => i / s) : e);
|
|
4459
4460
|
}
|
|
@@ -4620,8 +4621,8 @@ class as extends j {
|
|
|
4620
4621
|
// bottom-left
|
|
4621
4622
|
{ x: y / 2, y: a }
|
|
4622
4623
|
// bottom-right
|
|
4623
|
-
].forEach((
|
|
4624
|
-
const C =
|
|
4624
|
+
].forEach((D) => {
|
|
4625
|
+
const C = D.x, F = D.y + x * r * D.x, v = p + C, A = b + F;
|
|
4625
4626
|
n = Math.min(n, v), l = Math.max(l, v), c = Math.min(c, A), g = Math.max(g, A);
|
|
4626
4627
|
}), d += y;
|
|
4627
4628
|
});
|
|
@@ -4734,7 +4735,7 @@ class ds extends j {
|
|
|
4734
4735
|
{ x: f / 2, y: r }
|
|
4735
4736
|
// bottom-right
|
|
4736
4737
|
].forEach((x) => {
|
|
4737
|
-
const T = x.x,
|
|
4738
|
+
const T = x.x, D = x.y + w * Pe * x.x, C = m + T, F = p + D;
|
|
4738
4739
|
h = Math.min(h, C), a = Math.max(a, C), n = Math.min(n, F), l = Math.max(l, F);
|
|
4739
4740
|
}), c += f;
|
|
4740
4741
|
});
|
|
@@ -4792,7 +4793,7 @@ class gs extends j {
|
|
|
4792
4793
|
const t = this.text.split(""), e = t.map((u) => et(u, this.fontSize, this.fontFamily)), s = e.reduce((u, f) => u + f, 0), i = 0.3, h = this.fontSize / 2;
|
|
4793
4794
|
let a = 1 / 0, n = -1 / 0, l = 1 / 0, c = -1 / 0, g = -s / 2;
|
|
4794
4795
|
t.forEach((u, f) => {
|
|
4795
|
-
const m = e[f], y = g + m / 2, p = y / (this.transformData.width / 2), w = Math.abs(p), b = this.transformData.amplitude * w, x = b * this.fontSize * Math.sin(this.transformData.frequency * Math.PI * p), T = b * this.transformData.frequency * Math.PI * Math.cos(this.transformData.frequency * Math.PI * p),
|
|
4796
|
+
const m = e[f], y = g + m / 2, p = y / (this.transformData.width / 2), w = Math.abs(p), b = this.transformData.amplitude * w, x = b * this.fontSize * Math.sin(this.transformData.frequency * Math.PI * p), T = b * this.transformData.frequency * Math.PI * Math.cos(this.transformData.frequency * Math.PI * p), D = this.transformData.amplitude * Math.sign(p) * Math.sin(this.transformData.frequency * Math.PI * p), C = T + D;
|
|
4796
4797
|
[
|
|
4797
4798
|
{ x: -m / 2, y: -h },
|
|
4798
4799
|
// top-left
|
|
@@ -4988,7 +4989,7 @@ class us extends j {
|
|
|
4988
4989
|
{ x: p / 2, y: n }
|
|
4989
4990
|
// bottom-right
|
|
4990
4991
|
].forEach((T) => {
|
|
4991
|
-
const
|
|
4992
|
+
const D = T.x, C = T.y + r * h * T.x, F = w + D, v = b + C;
|
|
4992
4993
|
l = Math.min(l, F), c = Math.max(c, F), g = Math.min(g, v), d = Math.max(d, v);
|
|
4993
4994
|
}), u += p;
|
|
4994
4995
|
});
|
|
@@ -5052,10 +5053,10 @@ class ms extends Error {
|
|
|
5052
5053
|
super(`[Editor] ${t}: ${e}`), this.name = "EditorError", this.code = t, this.data = { code: t, ...s };
|
|
5053
5054
|
}
|
|
5054
5055
|
}
|
|
5055
|
-
function
|
|
5056
|
+
function Li(o) {
|
|
5056
5057
|
return o instanceof Error && o.name === "EditorError" && "code" in o;
|
|
5057
5058
|
}
|
|
5058
|
-
function
|
|
5059
|
+
function Wi() {
|
|
5059
5060
|
var o;
|
|
5060
5061
|
return typeof mt < "u" && ((o = mt.env) == null ? void 0 : o.NODE_ENV) !== "production";
|
|
5061
5062
|
}
|
|
@@ -5132,7 +5133,7 @@ function dt(o, t) {
|
|
|
5132
5133
|
const r = Math.sqrt(s * s + i * i) / 2;
|
|
5133
5134
|
return Vt(o.createRadialGradient(0, 0, 0, 0, 0, r), e.stops);
|
|
5134
5135
|
}
|
|
5135
|
-
function
|
|
5136
|
+
function Ni(o, t) {
|
|
5136
5137
|
if (!o) return t || de;
|
|
5137
5138
|
switch (o.type) {
|
|
5138
5139
|
case "solid":
|
|
@@ -5248,7 +5249,7 @@ class Wt extends tt {
|
|
|
5248
5249
|
this.renderWithOffscreen(t, i);
|
|
5249
5250
|
return;
|
|
5250
5251
|
}
|
|
5251
|
-
t.save(), t.translate(this.x, this.y), t.rotate(
|
|
5252
|
+
t.save(), t.translate(this.x, this.y), t.rotate(I.toRadians(this.rotation)), t.fillStyle = dt(t, this.transformData);
|
|
5252
5253
|
const h = this.transformData.fillOpacity ?? 1;
|
|
5253
5254
|
t.globalAlpha = i * h, this.renderShape(t), t.restore(), r && this.renderStroke(t, i);
|
|
5254
5255
|
}
|
|
@@ -5269,14 +5270,14 @@ class Wt extends tt {
|
|
|
5269
5270
|
const g = this.transformData.fillOpacity ?? 1;
|
|
5270
5271
|
c.globalAlpha = g, c.beginPath(), this.traceShapePath(c), c.fill(), c.restore(), c.save(), c.translate(a / 2, n / 2);
|
|
5271
5272
|
const d = this.stroke;
|
|
5272
|
-
c.strokeStyle = d.color || "#000000", c.lineWidth = d.width || 2, c.lineCap = d.lineCap || "round", c.lineJoin = d.lineJoin || "round", c.globalAlpha = d.opacity ?? 1, d.dashArray && d.dashArray.length > 0 && c.setLineDash(d.dashArray), c.beginPath(), this.traceShapePath(c), c.stroke(), c.restore(), t.save(), t.translate(this.x, this.y), t.rotate(
|
|
5273
|
+
c.strokeStyle = d.color || "#000000", c.lineWidth = d.width || 2, c.lineCap = d.lineCap || "round", c.lineJoin = d.lineJoin || "round", c.globalAlpha = d.opacity ?? 1, d.dashArray && d.dashArray.length > 0 && c.setLineDash(d.dashArray), c.beginPath(), this.traceShapePath(c), c.stroke(), c.restore(), t.save(), t.translate(this.x, this.y), t.rotate(I.toRadians(this.rotation)), t.globalAlpha = e, t.drawImage(l, -a / 2, -n / 2), t.restore();
|
|
5273
5274
|
}
|
|
5274
5275
|
/**
|
|
5275
5276
|
* Direct render (no offscreen) — used as fallback
|
|
5276
5277
|
*/
|
|
5277
5278
|
renderDirect(t, e) {
|
|
5278
5279
|
var s;
|
|
5279
|
-
t.save(), t.translate(this.x, this.y), t.rotate(
|
|
5280
|
+
t.save(), t.translate(this.x, this.y), t.rotate(I.toRadians(this.rotation)), t.fillStyle = dt(t, this.transformData), t.globalAlpha = e * (this.transformData.fillOpacity ?? 1), this.renderShape(t), t.restore(), (s = this.stroke) != null && s.enabled && this.renderStroke(t, e);
|
|
5280
5281
|
}
|
|
5281
5282
|
/**
|
|
5282
5283
|
* Trace the shape path without filling or stroking — used by offscreen render
|
|
@@ -5337,7 +5338,7 @@ class Wt extends tt {
|
|
|
5337
5338
|
* Render the stroke for this shape element
|
|
5338
5339
|
*/
|
|
5339
5340
|
renderStroke(t, e) {
|
|
5340
|
-
t.save(), t.translate(this.x, this.y), t.rotate(
|
|
5341
|
+
t.save(), t.translate(this.x, this.y), t.rotate(I.toRadians(this.rotation));
|
|
5341
5342
|
const s = this.stroke;
|
|
5342
5343
|
t.strokeStyle = s.color || "#000000", t.lineWidth = s.width || 2, t.lineCap = s.lineCap || "round", t.lineJoin = s.lineJoin || "round", t.globalAlpha = e * (s.opacity ?? 1), s.dashArray && s.dashArray.length > 0 && t.setLineDash(s.dashArray);
|
|
5343
5344
|
const { shapeType: i, width: r, height: h } = this.transformData;
|
|
@@ -5727,7 +5728,7 @@ class Nt extends tt {
|
|
|
5727
5728
|
y: f.y + (((g = f.handleIn) == null ? void 0 : g.y) || 0)
|
|
5728
5729
|
}, b = { x: f.x, y: f.y }, x = 20;
|
|
5729
5730
|
for (let T = 0; T <= x; T++) {
|
|
5730
|
-
const
|
|
5731
|
+
const D = T / x, C = this.bezierPoint(y, p, w, b, D);
|
|
5731
5732
|
e = Math.min(e, C.x), s = Math.min(s, C.y), i = Math.max(i, C.x), r = Math.max(r, C.y);
|
|
5732
5733
|
}
|
|
5733
5734
|
}
|
|
@@ -5754,7 +5755,7 @@ class Nt extends tt {
|
|
|
5754
5755
|
const { points: i, closed: r, fillEnabled: h, fillColor: a, fillOpacity: n, strokeEnabled: l, strokeColor: c, strokeWidth: g } = this.transformData;
|
|
5755
5756
|
if (i.length === 0)
|
|
5756
5757
|
return;
|
|
5757
|
-
t.save(), t.translate(this.x, this.y), t.rotate(
|
|
5758
|
+
t.save(), t.translate(this.x, this.y), t.rotate(I.toRadians(this.rotation));
|
|
5758
5759
|
const d = this.calculatePathBounds(), u = d.x + d.width / 2, f = d.y + d.height / 2;
|
|
5759
5760
|
t.translate(-u, -f), t.beginPath(), this.renderPath(t), h && r && a && (t.fillStyle = a, t.globalAlpha = n ?? 1, t.fill()), l && c && g && (t.strokeStyle = c, t.lineWidth = g, t.lineCap = "round", t.lineJoin = "round", t.globalAlpha = 1, t.stroke()), t.restore();
|
|
5760
5761
|
}
|
|
@@ -6120,7 +6121,7 @@ const ys = {
|
|
|
6120
6121
|
return yt;
|
|
6121
6122
|
} }
|
|
6122
6123
|
], fe = new Set(ge.map((o) => o.id)), pt = /* @__PURE__ */ new Map();
|
|
6123
|
-
function
|
|
6124
|
+
function _i(o, t) {
|
|
6124
6125
|
if (fe.has(o))
|
|
6125
6126
|
throw new Error(
|
|
6126
6127
|
`Cannot register transform type "${o}": conflicts with built-in type`
|
|
@@ -6131,7 +6132,7 @@ function Wi(o, t) {
|
|
|
6131
6132
|
);
|
|
6132
6133
|
pt.set(o, t);
|
|
6133
6134
|
}
|
|
6134
|
-
function
|
|
6135
|
+
function Xi(o) {
|
|
6135
6136
|
if (fe.has(o))
|
|
6136
6137
|
throw new Error(
|
|
6137
6138
|
`Cannot unregister transform type "${o}": built-in types cannot be removed`
|
|
@@ -6142,7 +6143,7 @@ function ws(o) {
|
|
|
6142
6143
|
const t = ge.find((e) => e.id === o);
|
|
6143
6144
|
return t || pt.get(o);
|
|
6144
6145
|
}
|
|
6145
|
-
function
|
|
6146
|
+
function zi(o) {
|
|
6146
6147
|
return ys[o] || [];
|
|
6147
6148
|
}
|
|
6148
6149
|
class yt extends tt {
|
|
@@ -6334,8 +6335,8 @@ class yt extends tt {
|
|
|
6334
6335
|
}
|
|
6335
6336
|
const c = -i.rotation * Math.PI / 180, g = Math.cos(c), d = Math.sin(c), u = i.x + (n * g - l * d), f = i.y + (n * d + l * g);
|
|
6336
6337
|
this.children.forEach((p, w) => {
|
|
6337
|
-
const b = i.childrenStartData[w], x = b.x - u, T = b.y - f,
|
|
6338
|
-
if (p.x =
|
|
6338
|
+
const b = i.childrenStartData[w], x = b.x - u, T = b.y - f, D = u + x * a, C = f + T * a;
|
|
6339
|
+
if (p.x = D, p.y = C, p instanceof bt) {
|
|
6339
6340
|
const F = b.transformData, v = F.width * a, A = F.height * a;
|
|
6340
6341
|
p.transformData.width = v, p.transformData.height = A;
|
|
6341
6342
|
} else if (p instanceof yt) {
|
|
@@ -6604,7 +6605,7 @@ class $ {
|
|
|
6604
6605
|
throw new Error("Command.undo() must be implemented");
|
|
6605
6606
|
}
|
|
6606
6607
|
}
|
|
6607
|
-
class
|
|
6608
|
+
class Yi extends $ {
|
|
6608
6609
|
constructor(t, e, s, i) {
|
|
6609
6610
|
super(), this.elementId = t, this.oldElement = e ? e.clone() : null, this.newElement = s ? s.clone() : null, this.onUpdate = i;
|
|
6610
6611
|
}
|
|
@@ -6615,7 +6616,7 @@ class Xi extends $ {
|
|
|
6615
6616
|
this.oldElement && this.onUpdate(this.oldElement);
|
|
6616
6617
|
}
|
|
6617
6618
|
}
|
|
6618
|
-
class
|
|
6619
|
+
class Ui extends $ {
|
|
6619
6620
|
constructor(t, e, s) {
|
|
6620
6621
|
super(), this.element = t.clone(), this.onAdd = e, this.onRemove = s;
|
|
6621
6622
|
}
|
|
@@ -6626,7 +6627,7 @@ class zi extends $ {
|
|
|
6626
6627
|
this.onRemove(this.element.id);
|
|
6627
6628
|
}
|
|
6628
6629
|
}
|
|
6629
|
-
class
|
|
6630
|
+
class Gi extends $ {
|
|
6630
6631
|
constructor(t, e, s) {
|
|
6631
6632
|
super(), this.element = t.clone(), this.onAdd = e, this.onRemove = s;
|
|
6632
6633
|
}
|
|
@@ -6714,7 +6715,7 @@ class gt {
|
|
|
6714
6715
|
};
|
|
6715
6716
|
}
|
|
6716
6717
|
}
|
|
6717
|
-
class
|
|
6718
|
+
class $i extends $ {
|
|
6718
6719
|
constructor(t, e) {
|
|
6719
6720
|
super(), this.artboard = t.clone(), this.artboardManager = e;
|
|
6720
6721
|
}
|
|
@@ -6734,7 +6735,7 @@ class Ui extends $ {
|
|
|
6734
6735
|
this.artboardManager.deleteArtboard(this.artboard.id);
|
|
6735
6736
|
}
|
|
6736
6737
|
}
|
|
6737
|
-
class
|
|
6738
|
+
class Vi extends $ {
|
|
6738
6739
|
constructor(t, e) {
|
|
6739
6740
|
super(), this.artboard = t.clone(), this.artboardManager = e, this.elementsOnArtboard = t.getElementIds();
|
|
6740
6741
|
}
|
|
@@ -6757,7 +6758,7 @@ class Gi extends $ {
|
|
|
6757
6758
|
});
|
|
6758
6759
|
}
|
|
6759
6760
|
}
|
|
6760
|
-
class
|
|
6761
|
+
class Ji extends $ {
|
|
6761
6762
|
constructor(t, e, s, i) {
|
|
6762
6763
|
super(), this.artboardId = t, this.oldProperties = { ...e }, this.newProperties = { ...s }, this.artboardManager = i;
|
|
6763
6764
|
}
|
|
@@ -6768,7 +6769,7 @@ class $i extends $ {
|
|
|
6768
6769
|
this.artboardManager.updateArtboard(this.artboardId, this.oldProperties);
|
|
6769
6770
|
}
|
|
6770
6771
|
}
|
|
6771
|
-
class
|
|
6772
|
+
class qi extends $ {
|
|
6772
6773
|
constructor(t, e, s, i, r) {
|
|
6773
6774
|
super(), this.draggedId = t, this.targetId = e, this.position = s, this.oldOrder = [...i], this.onReorder = r, this.newOrder = this.calculateNewOrder();
|
|
6774
6775
|
}
|
|
@@ -6789,7 +6790,7 @@ class Vi extends $ {
|
|
|
6789
6790
|
}
|
|
6790
6791
|
}
|
|
6791
6792
|
const xs = wt("HybridHistoryManager");
|
|
6792
|
-
class
|
|
6793
|
+
class ji {
|
|
6793
6794
|
constructor(t, e = 50) {
|
|
6794
6795
|
this.commandExecutedCallbacks = [], this.globalHistory = new gt(e), this.artboardHistories = /* @__PURE__ */ new Map(), this.lastOperation = null, this.artboardManager = t, this.maxHistorySize = e;
|
|
6795
6796
|
}
|
|
@@ -7328,9 +7329,9 @@ class Ts {
|
|
|
7328
7329
|
if (!b) continue;
|
|
7329
7330
|
const x = this.getCoverageIndex(b, a.id), T = w;
|
|
7330
7331
|
if (x !== -1 && T.alternateSets) {
|
|
7331
|
-
const
|
|
7332
|
-
if (
|
|
7333
|
-
for (const C of
|
|
7332
|
+
const D = T.alternateSets[x];
|
|
7333
|
+
if (D)
|
|
7334
|
+
for (const C of D)
|
|
7334
7335
|
r.push({
|
|
7335
7336
|
glyphIndex: C,
|
|
7336
7337
|
unicode: e,
|
|
@@ -7518,145 +7519,147 @@ class Ts {
|
|
|
7518
7519
|
};
|
|
7519
7520
|
}
|
|
7520
7521
|
}
|
|
7521
|
-
const
|
|
7522
|
+
const Zi = new Ts();
|
|
7522
7523
|
export {
|
|
7523
|
-
|
|
7524
|
+
ii as $,
|
|
7524
7525
|
at as A,
|
|
7525
|
-
|
|
7526
|
+
Ui as B,
|
|
7526
7527
|
ns as C,
|
|
7527
|
-
|
|
7528
|
+
$i as D,
|
|
7528
7529
|
K as E,
|
|
7529
7530
|
gs as F,
|
|
7530
7531
|
yt as G,
|
|
7531
|
-
|
|
7532
|
+
ji as H,
|
|
7532
7533
|
bt as I,
|
|
7533
|
-
|
|
7534
|
-
|
|
7534
|
+
Vi as J,
|
|
7535
|
+
Ji as K,
|
|
7535
7536
|
fs as L,
|
|
7536
|
-
|
|
7537
|
+
qi as M,
|
|
7537
7538
|
Be as N,
|
|
7538
7539
|
Re as O,
|
|
7539
7540
|
Nt as P,
|
|
7540
|
-
|
|
7541
|
-
|
|
7541
|
+
zs as Q,
|
|
7542
|
+
Gi as R,
|
|
7542
7543
|
Wt as S,
|
|
7543
7544
|
j as T,
|
|
7544
|
-
|
|
7545
|
-
|
|
7545
|
+
Yi as U,
|
|
7546
|
+
Ms as V,
|
|
7546
7547
|
ds as W,
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7548
|
+
hs as X,
|
|
7549
|
+
rt as Y,
|
|
7550
|
+
Li as Z,
|
|
7551
|
+
Wi as _,
|
|
7552
|
+
ti as a,
|
|
7553
|
+
ps as a$,
|
|
7554
|
+
Ot as a0,
|
|
7555
|
+
Ue as a1,
|
|
7556
|
+
te as a2,
|
|
7557
|
+
os as a3,
|
|
7558
|
+
ke as a4,
|
|
7559
|
+
P as a5,
|
|
7560
|
+
Ri as a6,
|
|
7561
|
+
I as a7,
|
|
7562
|
+
Hi as a8,
|
|
7563
|
+
Gs as a9,
|
|
7564
|
+
Mi as aA,
|
|
7565
|
+
vi as aB,
|
|
7566
|
+
Ci as aC,
|
|
7567
|
+
hi as aD,
|
|
7568
|
+
pi as aE,
|
|
7569
|
+
ai as aF,
|
|
7570
|
+
mi as aG,
|
|
7571
|
+
ni as aH,
|
|
7571
7572
|
ci as aI,
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7573
|
+
yi as aJ,
|
|
7574
|
+
gi as aK,
|
|
7575
|
+
ui as aL,
|
|
7576
|
+
di as aM,
|
|
7577
|
+
Ti as aN,
|
|
7578
|
+
bi as aO,
|
|
7579
|
+
Si as aP,
|
|
7580
|
+
wi as aQ,
|
|
7581
|
+
xi as aR,
|
|
7582
|
+
fi as aS,
|
|
7583
|
+
li as aT,
|
|
7584
|
+
se as aU,
|
|
7585
|
+
oi as aV,
|
|
7586
|
+
ri as aW,
|
|
7587
|
+
q as aX,
|
|
7588
|
+
si as aY,
|
|
7589
|
+
Fi as aZ,
|
|
7590
|
+
Qt as a_,
|
|
7591
|
+
Hs as aa,
|
|
7592
|
+
Ps as ab,
|
|
7593
|
+
Fs as ac,
|
|
7594
|
+
Rs as ad,
|
|
7595
|
+
De as ae,
|
|
7596
|
+
Bs as af,
|
|
7597
|
+
Os as ag,
|
|
7598
|
+
Z as ah,
|
|
7599
|
+
ht as ai,
|
|
7600
|
+
xt as aj,
|
|
7601
|
+
Di as ak,
|
|
7602
|
+
Ai as al,
|
|
7603
|
+
Ut as am,
|
|
7604
|
+
Pe as an,
|
|
7605
|
+
Is as ao,
|
|
7606
|
+
Vs as ap,
|
|
7607
|
+
$s as aq,
|
|
7608
|
+
Es as ar,
|
|
7609
|
+
Ys as as,
|
|
7610
|
+
Us as at,
|
|
7611
|
+
Xs as au,
|
|
7612
|
+
js as av,
|
|
7613
|
+
_i as aw,
|
|
7614
|
+
Xi as ax,
|
|
7615
|
+
tt as ay,
|
|
7616
|
+
L as az,
|
|
7616
7617
|
dt as b,
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7618
|
+
$t as b0,
|
|
7619
|
+
ze as b1,
|
|
7620
|
+
Ni as b2,
|
|
7621
|
+
Ds as b3,
|
|
7622
|
+
ge as b4,
|
|
7623
|
+
zi as b5,
|
|
7624
|
+
qs as b6,
|
|
7625
|
+
ls as b7,
|
|
7626
|
+
nt as b8,
|
|
7627
|
+
Qs as b9,
|
|
7628
|
+
Ve as ba,
|
|
7629
|
+
Lt as bb,
|
|
7630
|
+
ee as bc,
|
|
7630
7631
|
Ws as bd,
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7632
|
+
Ns as be,
|
|
7633
|
+
_s as bf,
|
|
7634
|
+
Js as bg,
|
|
7635
|
+
Pi as bh,
|
|
7636
|
+
Ie as bi,
|
|
7637
|
+
ks as bj,
|
|
7638
|
+
Ls as bk,
|
|
7639
|
+
Bi as bl,
|
|
7637
7640
|
wt as c,
|
|
7638
7641
|
as as d,
|
|
7639
|
-
|
|
7642
|
+
As as e,
|
|
7640
7643
|
us as f,
|
|
7641
7644
|
ss as g,
|
|
7642
7645
|
Le as h,
|
|
7643
7646
|
Pt as i,
|
|
7644
7647
|
is as j,
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7648
|
+
ki as k,
|
|
7649
|
+
Ii as l,
|
|
7650
|
+
Ei as m,
|
|
7651
|
+
Oi as n,
|
|
7649
7652
|
_e as o,
|
|
7650
7653
|
mt as p,
|
|
7651
7654
|
ws as q,
|
|
7652
|
-
|
|
7655
|
+
ei as r,
|
|
7653
7656
|
Qe as s,
|
|
7654
7657
|
ms as t,
|
|
7655
|
-
|
|
7658
|
+
Zs as u,
|
|
7656
7659
|
Ht as v,
|
|
7657
7660
|
Ke as w,
|
|
7658
7661
|
Yt as x,
|
|
7659
|
-
|
|
7660
|
-
|
|
7662
|
+
Ks as y,
|
|
7663
|
+
Zi as z
|
|
7661
7664
|
};
|
|
7662
|
-
//# sourceMappingURL=FontAnalyzer-
|
|
7665
|
+
//# sourceMappingURL=FontAnalyzer-Ds3Wdba7.js.map
|