@presentation-md/export 1.12.2 → 1.13.1
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/context.d.ts +1 -1
- package/dist/import/map.js +1 -1
- package/dist/import/map.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/layouts.js +360 -107
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { candyMarqueeText } from "@presentation-md/core";
|
|
1
|
+
import { candyMarqueeText } from "@presentation-md/core/candy-marquee";
|
|
2
2
|
/** Candy-pop cards use hard ink strokes + plump radius (candy-blob `.card`). */
|
|
3
3
|
function cardStroke(ctx, opts = {}) {
|
|
4
4
|
if (ctx.themeName === "candy-pop") {
|
|
@@ -1807,26 +1807,60 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1807
1807
|
rectRadius: 0,
|
|
1808
1808
|
});
|
|
1809
1809
|
}
|
|
1810
|
-
if (theme === "electric-studio"
|
|
1811
|
-
//
|
|
1810
|
+
if (theme === "electric-studio") {
|
|
1811
|
+
// Hard slide frame (electric-studio-split border + shadow stand-in).
|
|
1812
1812
|
slide.addShape(ctx.shapeRoundRect, {
|
|
1813
|
-
x: 0,
|
|
1814
|
-
y:
|
|
1815
|
-
w: ctx.width,
|
|
1816
|
-
h: ctx.height
|
|
1817
|
-
fill: { color: ctx.colors.
|
|
1818
|
-
line: { color: ctx.colors.
|
|
1819
|
-
rectRadius: 0,
|
|
1820
|
-
});
|
|
1821
|
-
slide.addShape(ctx.shapeRoundRect, {
|
|
1822
|
-
x: 0,
|
|
1823
|
-
y: ctx.height * 0.52,
|
|
1824
|
-
w: 0.1,
|
|
1825
|
-
h: ctx.height * 0.48,
|
|
1826
|
-
fill: { color: "#0a0a0a" },
|
|
1827
|
-
line: { color: "#0a0a0a", width: 0 },
|
|
1813
|
+
x: 0.04,
|
|
1814
|
+
y: 0.04,
|
|
1815
|
+
w: ctx.width - 0.08,
|
|
1816
|
+
h: ctx.height - 0.08,
|
|
1817
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
1818
|
+
line: { color: ctx.colors.text, width: 1.25 },
|
|
1828
1819
|
rectRadius: 0,
|
|
1829
1820
|
});
|
|
1821
|
+
if (isHero) {
|
|
1822
|
+
// White → blue horizontal split + black rail on the blue panel.
|
|
1823
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1824
|
+
x: 0,
|
|
1825
|
+
y: ctx.height * 0.52,
|
|
1826
|
+
w: ctx.width,
|
|
1827
|
+
h: ctx.height * 0.48,
|
|
1828
|
+
fill: { color: ctx.colors.bg2 },
|
|
1829
|
+
line: { color: ctx.colors.bg2, width: 0 },
|
|
1830
|
+
rectRadius: 0,
|
|
1831
|
+
});
|
|
1832
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1833
|
+
x: 0,
|
|
1834
|
+
y: ctx.height * 0.52,
|
|
1835
|
+
w: 0.1,
|
|
1836
|
+
h: ctx.height * 0.48,
|
|
1837
|
+
fill: { color: "0a0a0a" },
|
|
1838
|
+
line: { color: "0a0a0a", width: 0 },
|
|
1839
|
+
rectRadius: 0,
|
|
1840
|
+
});
|
|
1841
|
+
// Top-panel accent stub so the white half isn't empty chrome.
|
|
1842
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1843
|
+
x: ctx.margin,
|
|
1844
|
+
y: ctx.margin * 0.85,
|
|
1845
|
+
w: 0.55,
|
|
1846
|
+
h: 0.045,
|
|
1847
|
+
fill: { color: ctx.colors.accent },
|
|
1848
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
1849
|
+
rectRadius: 0,
|
|
1850
|
+
});
|
|
1851
|
+
}
|
|
1852
|
+
else {
|
|
1853
|
+
// Content slides: full-height accent left rail (HTML ::before).
|
|
1854
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1855
|
+
x: 0,
|
|
1856
|
+
y: 0,
|
|
1857
|
+
w: 0.1,
|
|
1858
|
+
h: ctx.height,
|
|
1859
|
+
fill: { color: ctx.colors.accent },
|
|
1860
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
1861
|
+
rectRadius: 0,
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1830
1864
|
}
|
|
1831
1865
|
if (theme === "soft-editorial") {
|
|
1832
1866
|
// Soft sage radial stand-in (top-right wash) + blush candy orb.
|
|
@@ -1860,7 +1894,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1860
1894
|
});
|
|
1861
1895
|
}
|
|
1862
1896
|
if (theme === "default-tech") {
|
|
1863
|
-
// Neon-glow corner bloom (HTML blur → soft
|
|
1897
|
+
// Neon-glow corner bloom + secondary cyan wash (HTML blur → soft ovals).
|
|
1864
1898
|
const glowT = isHero ? 55 : 72;
|
|
1865
1899
|
slide.addShape(ctx.shapeOval, {
|
|
1866
1900
|
x: ctx.width - 4.2,
|
|
@@ -1870,6 +1904,14 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1870
1904
|
fill: { color: ctx.colors.accent, transparency: glowT },
|
|
1871
1905
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1872
1906
|
});
|
|
1907
|
+
slide.addShape(ctx.shapeOval, {
|
|
1908
|
+
x: -1.8,
|
|
1909
|
+
y: ctx.height - 3.2,
|
|
1910
|
+
w: 4.2,
|
|
1911
|
+
h: 4.2,
|
|
1912
|
+
fill: { color: ctx.colors.accent2, transparency: isHero ? 68 : 80 },
|
|
1913
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
1914
|
+
});
|
|
1873
1915
|
}
|
|
1874
1916
|
if (theme === "kinetic-wrapped") {
|
|
1875
1917
|
const tone = typeof data.tone === "string" ? data.tone : undefined;
|
|
@@ -2199,13 +2241,22 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2199
2241
|
}
|
|
2200
2242
|
}
|
|
2201
2243
|
if (theme === "aurora-glass") {
|
|
2202
|
-
// Dual aurora washes
|
|
2244
|
+
// Dual aurora washes + glass frame (aurora-glass).
|
|
2245
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2246
|
+
x: 0.08,
|
|
2247
|
+
y: 0.08,
|
|
2248
|
+
w: ctx.width - 0.16,
|
|
2249
|
+
h: ctx.height - 0.16,
|
|
2250
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2251
|
+
line: { color: "FFFFFF", width: 0.9 },
|
|
2252
|
+
rectRadius: 0.14,
|
|
2253
|
+
});
|
|
2203
2254
|
slide.addShape(ctx.shapeOval, {
|
|
2204
2255
|
x: ctx.width * 0.55,
|
|
2205
2256
|
y: -ctx.height * 0.25,
|
|
2206
2257
|
w: ctx.width * 0.55,
|
|
2207
2258
|
h: ctx.height * 0.65,
|
|
2208
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
2259
|
+
fill: { color: ctx.colors.accent, transparency: 52 },
|
|
2209
2260
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2210
2261
|
});
|
|
2211
2262
|
slide.addShape(ctx.shapeOval, {
|
|
@@ -2213,18 +2264,35 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2213
2264
|
y: ctx.height * 0.5,
|
|
2214
2265
|
w: ctx.width * 0.5,
|
|
2215
2266
|
h: ctx.height * 0.6,
|
|
2216
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
2267
|
+
fill: { color: ctx.colors.accent2, transparency: 60 },
|
|
2217
2268
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2218
2269
|
});
|
|
2270
|
+
slide.addShape(ctx.shapeOval, {
|
|
2271
|
+
x: ctx.width * 0.72,
|
|
2272
|
+
y: -0.9,
|
|
2273
|
+
w: 3.2,
|
|
2274
|
+
h: 3.2,
|
|
2275
|
+
fill: { color: ctx.colors.accent, transparency: 72 },
|
|
2276
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2277
|
+
});
|
|
2219
2278
|
}
|
|
2220
2279
|
if (theme === "glassmorphism") {
|
|
2221
|
-
// Soft mist blob
|
|
2280
|
+
// Soft mist blob + cyan orb + glass frame (glass-mist).
|
|
2281
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2282
|
+
x: 0.1,
|
|
2283
|
+
y: 0.1,
|
|
2284
|
+
w: ctx.width - 0.2,
|
|
2285
|
+
h: ctx.height - 0.2,
|
|
2286
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2287
|
+
line: { color: ctx.colors.accent, width: 1 },
|
|
2288
|
+
rectRadius: 0.16,
|
|
2289
|
+
});
|
|
2222
2290
|
slide.addShape(ctx.shapeOval, {
|
|
2223
2291
|
x: -ctx.width * 0.1,
|
|
2224
2292
|
y: -ctx.height * 0.2,
|
|
2225
2293
|
w: ctx.width * 0.55,
|
|
2226
2294
|
h: ctx.height * 0.55,
|
|
2227
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
2295
|
+
fill: { color: ctx.colors.accent, transparency: 74 },
|
|
2228
2296
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2229
2297
|
});
|
|
2230
2298
|
slide.addShape(ctx.shapeOval, {
|
|
@@ -2232,21 +2300,34 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2232
2300
|
y: -ctx.height * 0.15,
|
|
2233
2301
|
w: ctx.width * 0.45,
|
|
2234
2302
|
h: ctx.height * 0.5,
|
|
2235
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
2303
|
+
fill: { color: ctx.colors.accent2, transparency: 64 },
|
|
2236
2304
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2237
2305
|
});
|
|
2238
2306
|
}
|
|
2239
|
-
if (theme === "luxury-minimalist"
|
|
2240
|
-
//
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2307
|
+
if (theme === "luxury-minimalist") {
|
|
2308
|
+
// Quiet luxe border on content; gold hairline on heroes (quiet-luxe).
|
|
2309
|
+
if (!isHero) {
|
|
2310
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2311
|
+
x: 0.12,
|
|
2312
|
+
y: 0.12,
|
|
2313
|
+
w: ctx.width - 0.24,
|
|
2314
|
+
h: ctx.height - 0.24,
|
|
2315
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2316
|
+
line: { color: ctx.colors.border, width: 0.9 },
|
|
2317
|
+
rectRadius: 0,
|
|
2318
|
+
});
|
|
2319
|
+
}
|
|
2320
|
+
if (isHero) {
|
|
2321
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2322
|
+
x: ctx.margin,
|
|
2323
|
+
y: ctx.height * 0.48,
|
|
2324
|
+
w: 0.55,
|
|
2325
|
+
h: 0.02,
|
|
2326
|
+
fill: { color: ctx.colors.accent },
|
|
2327
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2328
|
+
rectRadius: 0,
|
|
2329
|
+
});
|
|
2330
|
+
}
|
|
2250
2331
|
}
|
|
2251
2332
|
if (theme === "crt-terminal") {
|
|
2252
2333
|
// Phosphor radial wash + denser scanlines + cyan blot + inset bezel.
|
|
@@ -2587,34 +2668,66 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2587
2668
|
rectRadius: 0,
|
|
2588
2669
|
});
|
|
2589
2670
|
}
|
|
2590
|
-
if (theme === "bauhaus"
|
|
2591
|
-
//
|
|
2671
|
+
if (theme === "bauhaus") {
|
|
2672
|
+
// Hard frame on every slide; red square + blue circle on heroes (bauhaus-blocks).
|
|
2592
2673
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2593
|
-
x:
|
|
2594
|
-
y: 0.
|
|
2595
|
-
w:
|
|
2596
|
-
h:
|
|
2597
|
-
fill: { color: ctx.colors.
|
|
2598
|
-
line: { color: ctx.colors.
|
|
2674
|
+
x: 0.08,
|
|
2675
|
+
y: 0.08,
|
|
2676
|
+
w: ctx.width - 0.16,
|
|
2677
|
+
h: ctx.height - 0.16,
|
|
2678
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2679
|
+
line: { color: ctx.colors.text, width: 2 },
|
|
2599
2680
|
rectRadius: 0,
|
|
2600
2681
|
});
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2682
|
+
if (isHero) {
|
|
2683
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2684
|
+
x: ctx.width - 2.3,
|
|
2685
|
+
y: 0.7,
|
|
2686
|
+
w: 1.05,
|
|
2687
|
+
h: 1.05,
|
|
2688
|
+
fill: { color: ctx.colors.accent },
|
|
2689
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2690
|
+
rectRadius: 0,
|
|
2691
|
+
});
|
|
2692
|
+
slide.addShape(ctx.shapeOval, {
|
|
2693
|
+
x: ctx.width - 2.9,
|
|
2694
|
+
y: 1.35,
|
|
2695
|
+
w: 1.05,
|
|
2696
|
+
h: 1.05,
|
|
2697
|
+
fill: { color: ctx.colors.accent2, transparency: 12 },
|
|
2698
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
2699
|
+
});
|
|
2700
|
+
}
|
|
2701
|
+
else {
|
|
2702
|
+
// Quiet primary stub on body — keeps Primary energy without fighting copy.
|
|
2703
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2704
|
+
x: ctx.width - ctx.margin - 0.55,
|
|
2705
|
+
y: ctx.margin * 0.9,
|
|
2706
|
+
w: 0.55,
|
|
2707
|
+
h: 0.55,
|
|
2708
|
+
fill: { color: ctx.colors.accent },
|
|
2709
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2710
|
+
rectRadius: 0,
|
|
2711
|
+
});
|
|
2712
|
+
}
|
|
2609
2713
|
}
|
|
2610
2714
|
if (theme === "fintech-clean") {
|
|
2611
|
-
// Soft mint radial wash (fintech-soft
|
|
2715
|
+
// Soft mint radial wash + clean frame (fintech-soft).
|
|
2716
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2717
|
+
x: 0.1,
|
|
2718
|
+
y: 0.1,
|
|
2719
|
+
w: ctx.width - 0.2,
|
|
2720
|
+
h: ctx.height - 0.2,
|
|
2721
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2722
|
+
line: { color: ctx.colors.border, width: 1 },
|
|
2723
|
+
rectRadius: 0.1,
|
|
2724
|
+
});
|
|
2612
2725
|
slide.addShape(ctx.shapeOval, {
|
|
2613
2726
|
x: ctx.width * 0.55,
|
|
2614
2727
|
y: -ctx.height * 0.25,
|
|
2615
2728
|
w: ctx.width * 0.55,
|
|
2616
2729
|
h: ctx.height * 0.6,
|
|
2617
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
2730
|
+
fill: { color: ctx.colors.accent, transparency: 86 },
|
|
2618
2731
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2619
2732
|
});
|
|
2620
2733
|
slide.addShape(ctx.shapeOval, {
|
|
@@ -2622,18 +2735,27 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2622
2735
|
y: -ctx.height * 0.15,
|
|
2623
2736
|
w: ctx.width * 0.4,
|
|
2624
2737
|
h: ctx.height * 0.45,
|
|
2625
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
2738
|
+
fill: { color: ctx.colors.accent2, transparency: 74 },
|
|
2626
2739
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2627
2740
|
});
|
|
2628
2741
|
}
|
|
2629
2742
|
if (theme === "scandinavian") {
|
|
2630
|
-
// Sage corner wash + clay soft circle (hygge-soft).
|
|
2743
|
+
// Sage corner wash + clay soft circle + hygge frame (hygge-soft).
|
|
2744
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2745
|
+
x: 0.12,
|
|
2746
|
+
y: 0.12,
|
|
2747
|
+
w: ctx.width - 0.24,
|
|
2748
|
+
h: ctx.height - 0.24,
|
|
2749
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2750
|
+
line: { color: ctx.colors.border, width: 0.9 },
|
|
2751
|
+
rectRadius: 0.14,
|
|
2752
|
+
});
|
|
2631
2753
|
slide.addShape(ctx.shapeOval, {
|
|
2632
2754
|
x: -ctx.width * 0.12,
|
|
2633
2755
|
y: -ctx.height * 0.2,
|
|
2634
2756
|
w: ctx.width * 0.5,
|
|
2635
2757
|
h: ctx.height * 0.5,
|
|
2636
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
2758
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
2637
2759
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2638
2760
|
});
|
|
2639
2761
|
slide.addShape(ctx.shapeOval, {
|
|
@@ -2641,29 +2763,40 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2641
2763
|
y: ctx.height - 2.2,
|
|
2642
2764
|
w: 1.9,
|
|
2643
2765
|
h: 1.9,
|
|
2644
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
2766
|
+
fill: { color: ctx.colors.accent2, transparency: 72 },
|
|
2645
2767
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2646
2768
|
});
|
|
2647
2769
|
}
|
|
2648
|
-
if (theme === "art-deco"
|
|
2649
|
-
// Gold
|
|
2770
|
+
if (theme === "art-deco") {
|
|
2771
|
+
// Gold frame + hairline; centered deco ring on heroes (deco-fan).
|
|
2772
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2773
|
+
x: 0.1,
|
|
2774
|
+
y: 0.1,
|
|
2775
|
+
w: ctx.width - 0.2,
|
|
2776
|
+
h: ctx.height - 0.2,
|
|
2777
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2778
|
+
line: { color: ctx.colors.accent, width: 1.15 },
|
|
2779
|
+
rectRadius: 0,
|
|
2780
|
+
});
|
|
2650
2781
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2651
2782
|
x: ctx.margin,
|
|
2652
2783
|
y: 0.55,
|
|
2653
2784
|
w: ctx.width - ctx.margin * 2,
|
|
2654
2785
|
h: 0.02,
|
|
2655
|
-
fill: { color: ctx.colors.accent },
|
|
2786
|
+
fill: { color: ctx.colors.accent, transparency: isHero ? 0 : 35 },
|
|
2656
2787
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2657
2788
|
rectRadius: 0,
|
|
2658
2789
|
});
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2790
|
+
if (isHero) {
|
|
2791
|
+
slide.addShape(ctx.shapeOval, {
|
|
2792
|
+
x: ctx.width / 2 - 0.35,
|
|
2793
|
+
y: 0.38,
|
|
2794
|
+
w: 0.7,
|
|
2795
|
+
h: 0.7,
|
|
2796
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2797
|
+
line: { color: ctx.colors.accent, width: 1.75 },
|
|
2798
|
+
});
|
|
2799
|
+
}
|
|
2667
2800
|
}
|
|
2668
2801
|
if (theme === "botanical-luxe") {
|
|
2669
2802
|
// Gold hairline + leaf-tilted ring (botanical-leaf).
|
|
@@ -2716,21 +2849,30 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2716
2849
|
});
|
|
2717
2850
|
}
|
|
2718
2851
|
if (theme === "heritage-editorial") {
|
|
2719
|
-
// Quiet hairlines (heritage-wash).
|
|
2852
|
+
// Quiet hairlines + mid stub (heritage-wash).
|
|
2720
2853
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2721
2854
|
x: ctx.margin,
|
|
2722
2855
|
y: 0.6,
|
|
2723
2856
|
w: ctx.width - ctx.margin * 2,
|
|
2857
|
+
h: 0.015,
|
|
2858
|
+
fill: { color: ctx.colors.accent, transparency: 40 },
|
|
2859
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2860
|
+
rectRadius: 0,
|
|
2861
|
+
});
|
|
2862
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2863
|
+
x: ctx.margin,
|
|
2864
|
+
y: 0.72,
|
|
2865
|
+
w: 0.48,
|
|
2724
2866
|
h: 0.012,
|
|
2725
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
2867
|
+
fill: { color: ctx.colors.accent, transparency: 55 },
|
|
2726
2868
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2727
2869
|
rectRadius: 0,
|
|
2728
2870
|
});
|
|
2729
2871
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2730
|
-
x: ctx.width - ctx.margin - 0.
|
|
2872
|
+
x: ctx.width - ctx.margin - 0.95,
|
|
2731
2873
|
y: ctx.height - 0.65,
|
|
2732
|
-
w: 0.
|
|
2733
|
-
h: 0.
|
|
2874
|
+
w: 0.95,
|
|
2875
|
+
h: 0.015,
|
|
2734
2876
|
fill: { color: ctx.colors.accent },
|
|
2735
2877
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2736
2878
|
rectRadius: 0,
|
|
@@ -2764,12 +2906,21 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2764
2906
|
}
|
|
2765
2907
|
}
|
|
2766
2908
|
if (theme === "data-editorial") {
|
|
2767
|
-
// Accent rule + stub (data-rule).
|
|
2909
|
+
// Accent rule + stub + hard frame (data-rule).
|
|
2910
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2911
|
+
x: 0.08,
|
|
2912
|
+
y: 0.08,
|
|
2913
|
+
w: ctx.width - 0.16,
|
|
2914
|
+
h: ctx.height - 0.16,
|
|
2915
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2916
|
+
line: { color: ctx.colors.border, width: 1.1 },
|
|
2917
|
+
rectRadius: 0,
|
|
2918
|
+
});
|
|
2768
2919
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2769
2920
|
x: ctx.margin,
|
|
2770
2921
|
y: 0.55,
|
|
2771
2922
|
w: ctx.width - ctx.margin * 2,
|
|
2772
|
-
h: 0.
|
|
2923
|
+
h: 0.04,
|
|
2773
2924
|
fill: { color: ctx.colors.accent },
|
|
2774
2925
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2775
2926
|
rectRadius: 0,
|
|
@@ -2777,8 +2928,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2777
2928
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2778
2929
|
x: ctx.margin,
|
|
2779
2930
|
y: 0.55,
|
|
2780
|
-
w: 0.
|
|
2781
|
-
h: 0.
|
|
2931
|
+
w: 0.04,
|
|
2932
|
+
h: 0.6,
|
|
2782
2933
|
fill: { color: ctx.colors.accent2 },
|
|
2783
2934
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2784
2935
|
rectRadius: 0,
|
|
@@ -3798,46 +3949,86 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3798
3949
|
});
|
|
3799
3950
|
}
|
|
3800
3951
|
if (theme === "studio") {
|
|
3801
|
-
// Acid hairline rails (studio-acid).
|
|
3952
|
+
// Acid hairline rails + hard frame (studio-acid).
|
|
3953
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3954
|
+
x: 0.06,
|
|
3955
|
+
y: 0.06,
|
|
3956
|
+
w: ctx.width - 0.12,
|
|
3957
|
+
h: ctx.height - 0.12,
|
|
3958
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3959
|
+
line: { color: ctx.colors.border, width: 1.5 },
|
|
3960
|
+
rectRadius: 0,
|
|
3961
|
+
});
|
|
3802
3962
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3803
3963
|
x: 0,
|
|
3804
3964
|
y: 0,
|
|
3805
3965
|
w: ctx.width,
|
|
3806
|
-
h: 0.
|
|
3966
|
+
h: 0.025,
|
|
3807
3967
|
fill: { color: ctx.colors.border },
|
|
3808
3968
|
line: { color: ctx.colors.border, width: 0 },
|
|
3809
3969
|
rectRadius: 0,
|
|
3810
3970
|
});
|
|
3811
3971
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3812
3972
|
x: 0,
|
|
3813
|
-
y: ctx.height - 0.
|
|
3973
|
+
y: ctx.height - 0.025,
|
|
3814
3974
|
w: ctx.width,
|
|
3815
|
-
h: 0.
|
|
3975
|
+
h: 0.025,
|
|
3816
3976
|
fill: { color: ctx.colors.border },
|
|
3817
3977
|
line: { color: ctx.colors.border, width: 0 },
|
|
3818
3978
|
rectRadius: 0,
|
|
3819
3979
|
});
|
|
3980
|
+
if (isHero) {
|
|
3981
|
+
// Acid accent block — title/closing only (matches loud studio-acid type).
|
|
3982
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3983
|
+
x: ctx.width - ctx.margin - 1.35,
|
|
3984
|
+
y: ctx.margin * 0.9,
|
|
3985
|
+
w: 1.35,
|
|
3986
|
+
h: 0.55,
|
|
3987
|
+
fill: { color: ctx.colors.accent },
|
|
3988
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3989
|
+
rectRadius: 0,
|
|
3990
|
+
});
|
|
3991
|
+
}
|
|
3820
3992
|
}
|
|
3821
3993
|
if (theme === "grove") {
|
|
3822
|
-
// Quiet top hairline + coral stub (grove-monograph).
|
|
3994
|
+
// Quiet monograph frame + top hairline + coral stub (grove-monograph).
|
|
3995
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3996
|
+
x: 0.12,
|
|
3997
|
+
y: 0.12,
|
|
3998
|
+
w: ctx.width - 0.24,
|
|
3999
|
+
h: ctx.height - 0.24,
|
|
4000
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4001
|
+
line: { color: "D4CFBF", width: 0.75 },
|
|
4002
|
+
rectRadius: 0,
|
|
4003
|
+
});
|
|
3823
4004
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3824
4005
|
x: ctx.width * 0.05,
|
|
3825
4006
|
y: ctx.height * 0.06,
|
|
3826
4007
|
w: ctx.width * 0.9,
|
|
3827
|
-
h: 0.
|
|
3828
|
-
fill: { color: "D4CFBF", transparency:
|
|
4008
|
+
h: 0.018,
|
|
4009
|
+
fill: { color: "D4CFBF", transparency: 55 },
|
|
3829
4010
|
line: { color: "D4CFBF", width: 0 },
|
|
3830
4011
|
rectRadius: 0,
|
|
3831
4012
|
});
|
|
3832
4013
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3833
4014
|
x: ctx.width * 0.05,
|
|
3834
4015
|
y: ctx.height * 0.9,
|
|
3835
|
-
w: 0.
|
|
3836
|
-
h: 0.
|
|
4016
|
+
w: 0.55,
|
|
4017
|
+
h: 0.035,
|
|
3837
4018
|
fill: { color: ctx.colors.accent },
|
|
3838
4019
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3839
4020
|
rectRadius: 0,
|
|
3840
4021
|
});
|
|
4022
|
+
// Accent2 quote hairline stub (HTML .quote::before stand-in on every slide).
|
|
4023
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4024
|
+
x: ctx.width * 0.05,
|
|
4025
|
+
y: ctx.height * 0.12,
|
|
4026
|
+
w: 0.42,
|
|
4027
|
+
h: 0.015,
|
|
4028
|
+
fill: { color: ctx.colors.accent2, transparency: 20 },
|
|
4029
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
4030
|
+
rectRadius: 0,
|
|
4031
|
+
});
|
|
3841
4032
|
}
|
|
3842
4033
|
if (theme === "stencil-tablet" && isHero) {
|
|
3843
4034
|
// Earth tablet blocks (stencil-tablet-earth).
|
|
@@ -3907,45 +4098,73 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3907
4098
|
});
|
|
3908
4099
|
}
|
|
3909
4100
|
if (theme === "monochrome") {
|
|
3910
|
-
// Ledger hairlines (monochrome-ledger).
|
|
4101
|
+
// Ledger frame + hairlines (monochrome-ledger).
|
|
4102
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4103
|
+
x: 0.08,
|
|
4104
|
+
y: 0.08,
|
|
4105
|
+
w: ctx.width - 0.16,
|
|
4106
|
+
h: ctx.height - 0.16,
|
|
4107
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4108
|
+
line: { color: ctx.colors.text, width: 0.85 },
|
|
4109
|
+
rectRadius: 0,
|
|
4110
|
+
});
|
|
3911
4111
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3912
4112
|
x: ctx.width * 0.06,
|
|
3913
4113
|
y: ctx.height * 0.08,
|
|
3914
4114
|
w: ctx.width * 0.88,
|
|
3915
4115
|
h: 0.015,
|
|
3916
|
-
fill: { color: ctx.colors.text, transparency:
|
|
4116
|
+
fill: { color: ctx.colors.text, transparency: 70 },
|
|
3917
4117
|
line: { color: ctx.colors.text, width: 0 },
|
|
3918
4118
|
rectRadius: 0,
|
|
3919
4119
|
});
|
|
3920
4120
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3921
4121
|
x: ctx.width * 0.06,
|
|
3922
4122
|
y: ctx.height * 0.9,
|
|
3923
|
-
w: 0.
|
|
4123
|
+
w: 0.42,
|
|
3924
4124
|
h: 0.015,
|
|
3925
4125
|
fill: { color: ctx.colors.text },
|
|
3926
4126
|
line: { color: ctx.colors.text, width: 0 },
|
|
3927
4127
|
rectRadius: 0,
|
|
3928
4128
|
});
|
|
4129
|
+
// Mid ledger rule — denser journal feel without fighting body copy.
|
|
4130
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4131
|
+
x: ctx.width * 0.06,
|
|
4132
|
+
y: ctx.height * 0.14,
|
|
4133
|
+
w: ctx.width * 0.28,
|
|
4134
|
+
h: 0.012,
|
|
4135
|
+
fill: { color: ctx.colors.text, transparency: 78 },
|
|
4136
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4137
|
+
rectRadius: 0,
|
|
4138
|
+
});
|
|
3929
4139
|
}
|
|
3930
4140
|
if (theme === "blue-professional") {
|
|
3931
|
-
// Soft blue wash band + accent stub (blue-professional-clean).
|
|
4141
|
+
// Soft blue wash band + accent stub + clean frame (blue-professional-clean).
|
|
4142
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4143
|
+
x: 0.1,
|
|
4144
|
+
y: 0.1,
|
|
4145
|
+
w: ctx.width - 0.2,
|
|
4146
|
+
h: ctx.height - 0.2,
|
|
4147
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4148
|
+
line: { color: ctx.colors.accent, width: 1 },
|
|
4149
|
+
rectRadius: 0.12,
|
|
4150
|
+
});
|
|
3932
4151
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3933
4152
|
x: 0,
|
|
3934
4153
|
y: 0,
|
|
3935
4154
|
w: ctx.width,
|
|
3936
4155
|
h: ctx.height * 0.18,
|
|
3937
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
4156
|
+
fill: { color: ctx.colors.accent, transparency: 90 },
|
|
3938
4157
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3939
4158
|
rectRadius: 0,
|
|
3940
4159
|
});
|
|
3941
4160
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3942
4161
|
x: 0.55,
|
|
3943
|
-
y: 0.
|
|
3944
|
-
w: 0.
|
|
3945
|
-
h: 0.
|
|
4162
|
+
y: 0.48,
|
|
4163
|
+
w: 0.65,
|
|
4164
|
+
h: 0.055,
|
|
3946
4165
|
fill: { color: ctx.colors.accent },
|
|
3947
4166
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3948
|
-
rectRadius: 0.
|
|
4167
|
+
rectRadius: 0.025,
|
|
3949
4168
|
});
|
|
3950
4169
|
}
|
|
3951
4170
|
if (theme === "broadsheet") {
|
|
@@ -4011,13 +4230,13 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4011
4230
|
});
|
|
4012
4231
|
}
|
|
4013
4232
|
if (theme === "pastel-dreamy") {
|
|
4014
|
-
// Soft cloud ovals (pastel-cloud).
|
|
4233
|
+
// Soft cloud ovals + third mist blot (pastel-cloud).
|
|
4015
4234
|
slide.addShape(ctx.shapeOval, {
|
|
4016
4235
|
x: -ctx.width * 0.05,
|
|
4017
4236
|
y: -ctx.height * 0.1,
|
|
4018
4237
|
w: ctx.width * 0.45,
|
|
4019
4238
|
h: ctx.height * 0.45,
|
|
4020
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
4239
|
+
fill: { color: ctx.colors.accent2, transparency: 74 },
|
|
4021
4240
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
4022
4241
|
});
|
|
4023
4242
|
slide.addShape(ctx.shapeOval, {
|
|
@@ -4025,9 +4244,17 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4025
4244
|
y: ctx.height * 0.05,
|
|
4026
4245
|
w: ctx.width * 0.4,
|
|
4027
4246
|
h: ctx.height * 0.4,
|
|
4028
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
4247
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
4029
4248
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4030
4249
|
});
|
|
4250
|
+
slide.addShape(ctx.shapeOval, {
|
|
4251
|
+
x: ctx.width * 0.35,
|
|
4252
|
+
y: ctx.height * 0.65,
|
|
4253
|
+
w: ctx.width * 0.4,
|
|
4254
|
+
h: ctx.height * 0.4,
|
|
4255
|
+
fill: { color: ctx.colors.accent2, transparency: 86 },
|
|
4256
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
4257
|
+
});
|
|
4031
4258
|
}
|
|
4032
4259
|
if (theme === "vellum") {
|
|
4033
4260
|
// Soft colorfield wash + teal accent orb (vellum-colorfield).
|
|
@@ -4059,7 +4286,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4059
4286
|
}
|
|
4060
4287
|
}
|
|
4061
4288
|
if (theme === "editorial-serif") {
|
|
4062
|
-
// Accent rule + deco ring (editorial-rule).
|
|
4289
|
+
// Accent rule + deco ring + bottom stub (editorial-rule).
|
|
4063
4290
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4064
4291
|
x: ctx.margin,
|
|
4065
4292
|
y: 0.55,
|
|
@@ -4077,37 +4304,63 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4077
4304
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4078
4305
|
line: { color: ctx.colors.accent, width: 1.5 },
|
|
4079
4306
|
});
|
|
4307
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4308
|
+
x: ctx.margin,
|
|
4309
|
+
y: ctx.height - 0.7,
|
|
4310
|
+
w: 0.55,
|
|
4311
|
+
h: 0.03,
|
|
4312
|
+
fill: { color: ctx.colors.accent, transparency: 25 },
|
|
4313
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4314
|
+
rectRadius: 0,
|
|
4315
|
+
});
|
|
4080
4316
|
}
|
|
4081
4317
|
if (theme === "playful") {
|
|
4082
|
-
// Soft accent blot (soft-bento).
|
|
4318
|
+
// Soft accent blot + rounded candy square + second cloud (soft-bento).
|
|
4083
4319
|
slide.addShape(ctx.shapeOval, {
|
|
4084
4320
|
x: ctx.width * 0.75,
|
|
4085
4321
|
y: -ctx.height * 0.05,
|
|
4086
4322
|
w: ctx.width * 0.35,
|
|
4087
4323
|
h: ctx.height * 0.35,
|
|
4088
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
4324
|
+
fill: { color: ctx.colors.accent2, transparency: 68 },
|
|
4089
4325
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
4090
4326
|
});
|
|
4327
|
+
slide.addShape(ctx.shapeOval, {
|
|
4328
|
+
x: -ctx.width * 0.08,
|
|
4329
|
+
y: ctx.height * 0.55,
|
|
4330
|
+
w: ctx.width * 0.32,
|
|
4331
|
+
h: ctx.height * 0.4,
|
|
4332
|
+
fill: { color: ctx.colors.accent, transparency: 86 },
|
|
4333
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4334
|
+
});
|
|
4091
4335
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4092
4336
|
x: ctx.width - 2.0,
|
|
4093
4337
|
y: ctx.height - 2.0,
|
|
4094
4338
|
w: 1.4,
|
|
4095
4339
|
h: 1.4,
|
|
4096
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
4340
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
4097
4341
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4098
4342
|
rectRadius: 0.28,
|
|
4099
4343
|
});
|
|
4100
4344
|
}
|
|
4101
4345
|
if (theme === "corporate") {
|
|
4102
|
-
// Clean accent stub (clean-light).
|
|
4346
|
+
// Clean accent stub + soft top wash (clean-light).
|
|
4347
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4348
|
+
x: 0,
|
|
4349
|
+
y: 0,
|
|
4350
|
+
w: ctx.width,
|
|
4351
|
+
h: ctx.height * 0.22,
|
|
4352
|
+
fill: { color: ctx.colors.bg2, transparency: 55 },
|
|
4353
|
+
line: { color: ctx.colors.bg2, width: 0 },
|
|
4354
|
+
rectRadius: 0,
|
|
4355
|
+
});
|
|
4103
4356
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4104
4357
|
x: 0.55,
|
|
4105
4358
|
y: 0.55,
|
|
4106
|
-
w: 0.
|
|
4107
|
-
h:
|
|
4359
|
+
w: 0.09,
|
|
4360
|
+
h: 1.05,
|
|
4108
4361
|
fill: { color: ctx.colors.accent },
|
|
4109
4362
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4110
|
-
rectRadius: 0.
|
|
4363
|
+
rectRadius: 0.045,
|
|
4111
4364
|
});
|
|
4112
4365
|
}
|
|
4113
4366
|
}
|