@presentation-md/export 1.17.0 → 1.19.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/layouts.js +409 -130
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -52,6 +52,64 @@ function cardStroke(ctx, opts = {}) {
|
|
|
52
52
|
if (ctx.themeName === "vaporwave" || ctx.themeName === "y2k-aero") {
|
|
53
53
|
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.5 : 1.25 };
|
|
54
54
|
}
|
|
55
|
+
// broadside-fire cards: hard ink
|
|
56
|
+
if (ctx.themeName === "broadside") {
|
|
57
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
58
|
+
}
|
|
59
|
+
// cobalt-grid-paper cards: cobalt hairline, square
|
|
60
|
+
if (ctx.themeName === "cobalt-grid") {
|
|
61
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.5 : 1.25 };
|
|
62
|
+
}
|
|
63
|
+
// scanline-neon cards: cyan rim
|
|
64
|
+
if (ctx.themeName === "retro-arcade") {
|
|
65
|
+
return { color: ctx.colors.accent2, width: opts.hero || opts.highlighted ? 1.75 : 1.5 };
|
|
66
|
+
}
|
|
67
|
+
// mat-woodglow cards: dark ink on cream
|
|
68
|
+
if (ctx.themeName === "mat") {
|
|
69
|
+
return { color: "1E2820", width: opts.hero || opts.highlighted ? 1.5 : 1.25 };
|
|
70
|
+
}
|
|
71
|
+
// biennale-yellow-sun cards: indigo hairline
|
|
72
|
+
if (ctx.themeName === "biennale-yellow") {
|
|
73
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 1.35 : 1.1 };
|
|
74
|
+
}
|
|
75
|
+
// hard-bento (genz-bento) cards: 2.5px ink
|
|
76
|
+
if (ctx.themeName === "genz-bento") {
|
|
77
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
|
|
78
|
+
}
|
|
79
|
+
// acid-block (brutalist-acid) cards: 2px accent, square
|
|
80
|
+
if (ctx.themeName === "brutalist-acid") {
|
|
81
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
82
|
+
}
|
|
83
|
+
// bauhaus-blocks cards: 2px ink, square
|
|
84
|
+
if (ctx.themeName === "bauhaus") {
|
|
85
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
86
|
+
}
|
|
87
|
+
// neo-grid-panels / bold-poster-ink / tri-tone-blocks cards: 2px ink, square
|
|
88
|
+
if (ctx.themeName === "neo-grid-bold" ||
|
|
89
|
+
ctx.themeName === "bold-poster" ||
|
|
90
|
+
ctx.themeName === "editorial-tri-tone") {
|
|
91
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
92
|
+
}
|
|
93
|
+
// raw-grid-brutal cards: 3px ink, square
|
|
94
|
+
if (ctx.themeName === "raw-grid") {
|
|
95
|
+
return { color: "0A0A0A", width: opts.hero || opts.highlighted ? 3.25 : 3 };
|
|
96
|
+
}
|
|
97
|
+
// creative-voltage-split cards: 1px neon accent, square
|
|
98
|
+
if (ctx.themeName === "creative-voltage") {
|
|
99
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.5 : 1.25 };
|
|
100
|
+
}
|
|
101
|
+
// wrapped-block (kinetic-wrapped) cards: 3px accent, square
|
|
102
|
+
if (ctx.themeName === "kinetic-wrapped") {
|
|
103
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 3.25 : 3 };
|
|
104
|
+
}
|
|
105
|
+
// hud-grid / blueprint-grid cards: accent hairline, square
|
|
106
|
+
if (ctx.themeName === "aerospace-hud" || ctx.themeName === "blueprint") {
|
|
107
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.35 : 1.15 };
|
|
108
|
+
}
|
|
109
|
+
// swiss-grid cards: quiet border, square
|
|
110
|
+
if (ctx.themeName === "swiss-typographic") {
|
|
111
|
+
return { color: ctx.colors.border, width: opts.hero || opts.highlighted ? 1.25 : 1 };
|
|
112
|
+
}
|
|
55
113
|
if (opts.hero || opts.highlighted) {
|
|
56
114
|
return { color: ctx.colors.accent, width: opts.highlighted ? 1.75 : 1.5 };
|
|
57
115
|
}
|
|
@@ -76,23 +134,44 @@ function cardRadius(ctx) {
|
|
|
76
134
|
// stencil-tablet-earth cards: border-radius 24px ≈ 0.25"
|
|
77
135
|
if (ctx.themeName === "stencil-tablet")
|
|
78
136
|
return 0.25;
|
|
79
|
-
// retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95 / coral / peoples: square
|
|
137
|
+
// retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95 / coral / peoples / broadside / cobalt / mat / biennale / arcade / acid / bauhaus / neo-grid / bold-poster / tri-tone / raw-grid / voltage / Pulse / hud / blueprint / swiss: square
|
|
80
138
|
if (ctx.themeName === "retro-zine" ||
|
|
81
139
|
ctx.themeName === "block-frame" ||
|
|
82
140
|
ctx.themeName === "creative-mode" ||
|
|
83
141
|
ctx.themeName === "8-bit-orbit" ||
|
|
84
142
|
ctx.themeName === "retro-windows" ||
|
|
85
143
|
ctx.themeName === "coral" ||
|
|
86
|
-
ctx.themeName === "peoples-platform"
|
|
144
|
+
ctx.themeName === "peoples-platform" ||
|
|
145
|
+
ctx.themeName === "broadside" ||
|
|
146
|
+
ctx.themeName === "cobalt-grid" ||
|
|
147
|
+
ctx.themeName === "mat" ||
|
|
148
|
+
ctx.themeName === "biennale-yellow" ||
|
|
149
|
+
ctx.themeName === "retro-arcade" ||
|
|
150
|
+
ctx.themeName === "brutalist-acid" ||
|
|
151
|
+
ctx.themeName === "bauhaus" ||
|
|
152
|
+
ctx.themeName === "neo-grid-bold" ||
|
|
153
|
+
ctx.themeName === "bold-poster" ||
|
|
154
|
+
ctx.themeName === "editorial-tri-tone" ||
|
|
155
|
+
ctx.themeName === "raw-grid" ||
|
|
156
|
+
ctx.themeName === "creative-voltage" ||
|
|
157
|
+
ctx.themeName === "kinetic-wrapped" ||
|
|
158
|
+
ctx.themeName === "aerospace-hud" ||
|
|
159
|
+
ctx.themeName === "blueprint" ||
|
|
160
|
+
ctx.themeName === "swiss-typographic") {
|
|
87
161
|
return 0;
|
|
88
162
|
}
|
|
89
|
-
//
|
|
163
|
+
// hard-bento (genz-bento) cards: border-radius 14px ≈ 0.15"
|
|
164
|
+
if (ctx.themeName === "genz-bento")
|
|
165
|
+
return 0.15;
|
|
166
|
+
// bold-signal-card / aero-bubble / pastel-geometry / pastel-dreamy: plump
|
|
90
167
|
if (ctx.themeName === "bold-signal")
|
|
91
168
|
return 0.16;
|
|
92
169
|
if (ctx.themeName === "y2k-aero")
|
|
93
170
|
return 0.18;
|
|
94
171
|
if (ctx.themeName === "pastel-geometry")
|
|
95
172
|
return 0.18;
|
|
173
|
+
if (ctx.themeName === "pastel-dreamy")
|
|
174
|
+
return 0.22;
|
|
96
175
|
// scatterbrain-cork cards: border-radius 2px ≈ 0.02"
|
|
97
176
|
if (ctx.themeName === "scatterbrain")
|
|
98
177
|
return 0.02;
|
|
@@ -1861,41 +1940,71 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1861
1940
|
}
|
|
1862
1941
|
}
|
|
1863
1942
|
if (theme === "mat") {
|
|
1864
|
-
// Woodglow radials + hairline stubs (mat-woodglow
|
|
1943
|
+
// Woodglow radials + cream inset rim + hairline stubs (mat-woodglow).
|
|
1865
1944
|
slide.addShape(ctx.shapeOval, {
|
|
1866
|
-
x: ctx.width * 0.
|
|
1867
|
-
y: ctx.height * 0.
|
|
1868
|
-
w: ctx.width * 0.
|
|
1869
|
-
h: ctx.height * 0.
|
|
1870
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
1945
|
+
x: ctx.width * 0.55,
|
|
1946
|
+
y: ctx.height * 0.48,
|
|
1947
|
+
w: ctx.width * 0.58,
|
|
1948
|
+
h: ctx.height * 0.68,
|
|
1949
|
+
fill: { color: ctx.colors.accent2, transparency: 68 },
|
|
1871
1950
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
1872
1951
|
});
|
|
1873
1952
|
slide.addShape(ctx.shapeOval, {
|
|
1874
|
-
x:
|
|
1875
|
-
y:
|
|
1876
|
-
w: ctx.width * 0.
|
|
1877
|
-
h: ctx.height * 0.
|
|
1878
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
1953
|
+
x: ctx.width * 0.68,
|
|
1954
|
+
y: ctx.height * 0.62,
|
|
1955
|
+
w: ctx.width * 0.4,
|
|
1956
|
+
h: ctx.height * 0.48,
|
|
1957
|
+
fill: { color: ctx.colors.accent, transparency: 82 },
|
|
1879
1958
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1880
1959
|
});
|
|
1960
|
+
slide.addShape(ctx.shapeOval, {
|
|
1961
|
+
x: -ctx.width * 0.1,
|
|
1962
|
+
y: -ctx.height * 0.14,
|
|
1963
|
+
w: ctx.width * 0.4,
|
|
1964
|
+
h: ctx.height * 0.45,
|
|
1965
|
+
fill: { color: ctx.colors.accent, transparency: 86 },
|
|
1966
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
1967
|
+
});
|
|
1968
|
+
// Cream inset rim (HTML inset box-shadow 0 0 0 1px cream@8%).
|
|
1969
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1970
|
+
x: 0.1,
|
|
1971
|
+
y: 0.1,
|
|
1972
|
+
w: ctx.width - 0.2,
|
|
1973
|
+
h: ctx.height - 0.2,
|
|
1974
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
1975
|
+
line: { color: "F0E8D2", width: 1 },
|
|
1976
|
+
rectRadius: 0,
|
|
1977
|
+
});
|
|
1881
1978
|
slide.addShape(ctx.shapeRoundRect, {
|
|
1882
1979
|
x: ctx.margin,
|
|
1883
1980
|
y: ctx.height * 0.12,
|
|
1884
|
-
w: 0.
|
|
1885
|
-
h: 0.
|
|
1981
|
+
w: 0.42,
|
|
1982
|
+
h: 0.025,
|
|
1886
1983
|
fill: { color: ctx.colors.accent },
|
|
1887
1984
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1888
1985
|
rectRadius: 0,
|
|
1889
1986
|
});
|
|
1890
1987
|
slide.addShape(ctx.shapeRoundRect, {
|
|
1891
|
-
x: ctx.width - ctx.margin - 1.
|
|
1988
|
+
x: ctx.width - ctx.margin - 1.55,
|
|
1892
1989
|
y: ctx.height - 0.85,
|
|
1893
|
-
w: 1.
|
|
1894
|
-
h: 0.
|
|
1895
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
1990
|
+
w: 1.55,
|
|
1991
|
+
h: 0.045,
|
|
1992
|
+
fill: { color: ctx.colors.accent, transparency: 12 },
|
|
1896
1993
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1897
1994
|
rectRadius: 0,
|
|
1898
1995
|
});
|
|
1996
|
+
if (isHero) {
|
|
1997
|
+
// Mid-century accent block stub on heroes.
|
|
1998
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1999
|
+
x: ctx.width - ctx.margin - 0.95,
|
|
2000
|
+
y: ctx.margin * 0.9,
|
|
2001
|
+
w: 0.95,
|
|
2002
|
+
h: 0.95,
|
|
2003
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
2004
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2005
|
+
rectRadius: 0,
|
|
2006
|
+
});
|
|
2007
|
+
}
|
|
1899
2008
|
}
|
|
1900
2009
|
if (theme === "electric-studio") {
|
|
1901
2010
|
// Hard slide frame (electric-studio-split border + shadow stand-in).
|
|
@@ -2652,25 +2761,26 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2652
2761
|
}
|
|
2653
2762
|
}
|
|
2654
2763
|
if (theme === "aerospace-hud") {
|
|
2655
|
-
// HUD grid + border + dual reticles +
|
|
2656
|
-
|
|
2764
|
+
// Denser HUD grid + border + dual reticles + crosshair ticks + orange
|
|
2765
|
+
// telemetry stub (hud-grid). Cards get accent hairline via cardStroke.
|
|
2766
|
+
for (let i = 1; i < 12; i++) {
|
|
2657
2767
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2658
|
-
x: (ctx.width /
|
|
2768
|
+
x: (ctx.width / 12) * i,
|
|
2659
2769
|
y: 0,
|
|
2660
2770
|
w: 0.012,
|
|
2661
2771
|
h: ctx.height,
|
|
2662
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
2772
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
2663
2773
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2664
2774
|
rectRadius: 0,
|
|
2665
2775
|
});
|
|
2666
2776
|
}
|
|
2667
|
-
for (let i = 1; i <
|
|
2777
|
+
for (let i = 1; i < 8; i++) {
|
|
2668
2778
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2669
2779
|
x: 0,
|
|
2670
|
-
y: (ctx.height /
|
|
2780
|
+
y: (ctx.height / 8) * i,
|
|
2671
2781
|
w: ctx.width,
|
|
2672
2782
|
h: 0.012,
|
|
2673
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
2783
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
2674
2784
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2675
2785
|
rectRadius: 0,
|
|
2676
2786
|
});
|
|
@@ -2681,19 +2791,20 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2681
2791
|
w: ctx.width - 0.2,
|
|
2682
2792
|
h: ctx.height - 0.2,
|
|
2683
2793
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2684
|
-
line: { color: ctx.colors.accent, width: 1.
|
|
2794
|
+
line: { color: ctx.colors.accent, width: 1.35 },
|
|
2685
2795
|
rectRadius: 0,
|
|
2686
2796
|
});
|
|
2797
|
+
// Bottom-left instrument square (warning orange).
|
|
2687
2798
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2688
2799
|
x: ctx.margin,
|
|
2689
|
-
y: ctx.margin,
|
|
2800
|
+
y: ctx.height - ctx.margin - 0.55,
|
|
2690
2801
|
w: 0.55,
|
|
2691
2802
|
h: 0.55,
|
|
2692
2803
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2693
2804
|
line: { color: ctx.colors.accent2, width: 1.5 },
|
|
2694
2805
|
rectRadius: 0,
|
|
2695
2806
|
});
|
|
2696
|
-
// Top-right reticle (hud-grid ::after).
|
|
2807
|
+
// Top-right reticle (hud-grid ::after) + crosshair ticks.
|
|
2697
2808
|
slide.addShape(ctx.shapeOval, {
|
|
2698
2809
|
x: ctx.width - 1.45,
|
|
2699
2810
|
y: 0.45,
|
|
@@ -2710,12 +2821,30 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2710
2821
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2711
2822
|
line: { color: ctx.colors.accent, width: 0.75 },
|
|
2712
2823
|
});
|
|
2824
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2825
|
+
x: ctx.width - 1.08,
|
|
2826
|
+
y: 0.82,
|
|
2827
|
+
w: 0.12,
|
|
2828
|
+
h: 0.02,
|
|
2829
|
+
fill: { color: ctx.colors.accent },
|
|
2830
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2831
|
+
rectRadius: 0,
|
|
2832
|
+
});
|
|
2833
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2834
|
+
x: ctx.width - 1.05,
|
|
2835
|
+
y: 0.7,
|
|
2836
|
+
w: 0.02,
|
|
2837
|
+
h: 0.28,
|
|
2838
|
+
fill: { color: ctx.colors.accent },
|
|
2839
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2840
|
+
rectRadius: 0,
|
|
2841
|
+
});
|
|
2713
2842
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2714
2843
|
x: ctx.width - 2.1,
|
|
2715
2844
|
y: ctx.height - 0.72,
|
|
2716
2845
|
w: 1.35,
|
|
2717
2846
|
h: 0.08,
|
|
2718
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
2847
|
+
fill: { color: ctx.colors.accent2, transparency: 20 },
|
|
2719
2848
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2720
2849
|
rectRadius: 0,
|
|
2721
2850
|
});
|
|
@@ -2984,7 +3113,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2984
3113
|
});
|
|
2985
3114
|
}
|
|
2986
3115
|
if (theme === "bauhaus") {
|
|
2987
|
-
// Hard frame
|
|
3116
|
+
// Hard frame + red square + blue circle on every slide (bauhaus-blocks
|
|
3117
|
+
// ::before/::after are not hero-gated). Heroes get larger primary blocks.
|
|
2988
3118
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2989
3119
|
x: 0.08,
|
|
2990
3120
|
y: 0.08,
|
|
@@ -2994,37 +3124,29 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2994
3124
|
line: { color: ctx.colors.text, width: 2 },
|
|
2995
3125
|
rectRadius: 0,
|
|
2996
3126
|
});
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
y: ctx.margin * 0.9,
|
|
3021
|
-
w: 0.55,
|
|
3022
|
-
h: 0.55,
|
|
3023
|
-
fill: { color: ctx.colors.accent },
|
|
3024
|
-
line: { color: ctx.colors.accent, width: 0 },
|
|
3025
|
-
rectRadius: 0,
|
|
3026
|
-
});
|
|
3027
|
-
}
|
|
3127
|
+
const sq = isHero ? 1.05 : 0.72;
|
|
3128
|
+
const circ = isHero ? 1.05 : 0.72;
|
|
3129
|
+
const sqX = isHero ? ctx.width - 2.3 : ctx.width - 1.55;
|
|
3130
|
+
const sqY = isHero ? 0.7 : 0.55;
|
|
3131
|
+
const circX = isHero ? ctx.width - 2.9 : ctx.width - 2.05;
|
|
3132
|
+
const circY = isHero ? 1.35 : 1.0;
|
|
3133
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3134
|
+
x: sqX,
|
|
3135
|
+
y: sqY,
|
|
3136
|
+
w: sq,
|
|
3137
|
+
h: sq,
|
|
3138
|
+
fill: { color: ctx.colors.accent },
|
|
3139
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3140
|
+
rectRadius: 0,
|
|
3141
|
+
});
|
|
3142
|
+
slide.addShape(ctx.shapeOval, {
|
|
3143
|
+
x: circX,
|
|
3144
|
+
y: circY,
|
|
3145
|
+
w: circ,
|
|
3146
|
+
h: circ,
|
|
3147
|
+
fill: { color: ctx.colors.accent2, transparency: isHero ? 12 : 22 },
|
|
3148
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3149
|
+
});
|
|
3028
3150
|
}
|
|
3029
3151
|
if (theme === "fintech-clean") {
|
|
3030
3152
|
// Soft mint radial wash + clean frame (fintech-soft).
|
|
@@ -3684,69 +3806,139 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3684
3806
|
}
|
|
3685
3807
|
}
|
|
3686
3808
|
if (theme === "cobalt-grid") {
|
|
3687
|
-
// Blueprint-ish cobalt grid + corner hatch (cobalt-grid-paper).
|
|
3688
|
-
for (let i = 1; i <
|
|
3809
|
+
// Blueprint-ish cobalt grid + outer frame + diagonal corner hatch (cobalt-grid-paper).
|
|
3810
|
+
for (let i = 1; i < 18; i++) {
|
|
3689
3811
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3690
|
-
x: (ctx.width /
|
|
3812
|
+
x: (ctx.width / 18) * i,
|
|
3691
3813
|
y: 0,
|
|
3692
|
-
w: 0.
|
|
3814
|
+
w: 0.012,
|
|
3693
3815
|
h: ctx.height,
|
|
3694
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
3816
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
3695
3817
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3696
3818
|
rectRadius: 0,
|
|
3697
3819
|
});
|
|
3698
3820
|
}
|
|
3699
|
-
for (let i = 1; i <
|
|
3821
|
+
for (let i = 1; i < 11; i++) {
|
|
3700
3822
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3701
3823
|
x: 0,
|
|
3702
|
-
y: (ctx.height /
|
|
3824
|
+
y: (ctx.height / 11) * i,
|
|
3703
3825
|
w: ctx.width,
|
|
3704
|
-
h: 0.
|
|
3705
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
3826
|
+
h: 0.012,
|
|
3827
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
3706
3828
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3707
3829
|
rectRadius: 0,
|
|
3708
3830
|
});
|
|
3709
3831
|
}
|
|
3832
|
+
// Corner hatch wash + diagonal stubs (HTML ::before top-left gradients).
|
|
3710
3833
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3711
|
-
x: ctx.width * 0.
|
|
3712
|
-
y: ctx.height * 0.
|
|
3713
|
-
w: ctx.width * 0.
|
|
3714
|
-
h: ctx.height * 0.
|
|
3715
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
3834
|
+
x: ctx.width * 0.55,
|
|
3835
|
+
y: ctx.height * 0.52,
|
|
3836
|
+
w: ctx.width * 0.45,
|
|
3837
|
+
h: ctx.height * 0.48,
|
|
3838
|
+
fill: { color: ctx.colors.accent, transparency: 88 },
|
|
3716
3839
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3717
3840
|
rectRadius: 0,
|
|
3718
3841
|
});
|
|
3842
|
+
for (let i = 0; i < 7; i++) {
|
|
3843
|
+
const t = i / 6;
|
|
3844
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3845
|
+
x: ctx.width * (0.58 + t * 0.38),
|
|
3846
|
+
y: ctx.height * (0.95 - t * 0.42),
|
|
3847
|
+
w: 0.9,
|
|
3848
|
+
h: 0.018,
|
|
3849
|
+
fill: { color: ctx.colors.accent, transparency: 48 },
|
|
3850
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3851
|
+
rectRadius: 0,
|
|
3852
|
+
});
|
|
3853
|
+
}
|
|
3854
|
+
// Quiet cobalt outer frame (HTML border accent@18%).
|
|
3855
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3856
|
+
x: 0.08,
|
|
3857
|
+
y: 0.08,
|
|
3858
|
+
w: ctx.width - 0.16,
|
|
3859
|
+
h: ctx.height - 0.16,
|
|
3860
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3861
|
+
line: { color: ctx.colors.accent, width: 1.1 },
|
|
3862
|
+
rectRadius: 0,
|
|
3863
|
+
});
|
|
3719
3864
|
}
|
|
3720
3865
|
if (theme === "retro-arcade") {
|
|
3721
|
-
//
|
|
3722
|
-
for (let i = 0; i <
|
|
3866
|
+
// Dense scanlines + dual neon rail + rim + floor glow + neon orbs (scanline-neon).
|
|
3867
|
+
for (let i = 0; i < 14; i++) {
|
|
3723
3868
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3724
3869
|
x: 0,
|
|
3725
|
-
y: 0.
|
|
3870
|
+
y: 0.18 + i * 0.52,
|
|
3726
3871
|
w: ctx.width,
|
|
3727
|
-
h: 0.
|
|
3728
|
-
fill: { color: "000000", transparency:
|
|
3872
|
+
h: 0.028,
|
|
3873
|
+
fill: { color: "000000", transparency: 74 },
|
|
3729
3874
|
line: { color: "000000", width: 0 },
|
|
3730
3875
|
rectRadius: 0,
|
|
3731
3876
|
});
|
|
3732
3877
|
}
|
|
3878
|
+
// Magenta → cyan top rail (HTML linear-gradient accent/accent2/accent).
|
|
3733
3879
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3734
3880
|
x: 0,
|
|
3735
3881
|
y: 0,
|
|
3736
|
-
w: ctx.width,
|
|
3737
|
-
h: 0.
|
|
3882
|
+
w: ctx.width * 0.5,
|
|
3883
|
+
h: 0.07,
|
|
3738
3884
|
fill: { color: ctx.colors.accent },
|
|
3739
3885
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3740
3886
|
rectRadius: 0,
|
|
3741
3887
|
});
|
|
3888
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3889
|
+
x: ctx.width * 0.5,
|
|
3890
|
+
y: 0,
|
|
3891
|
+
w: ctx.width * 0.5,
|
|
3892
|
+
h: 0.07,
|
|
3893
|
+
fill: { color: ctx.colors.accent2 },
|
|
3894
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3895
|
+
rectRadius: 0,
|
|
3896
|
+
});
|
|
3742
3897
|
slide.addShape(ctx.shapeOval, {
|
|
3743
|
-
x: ctx.width - 2.
|
|
3744
|
-
y: -0.
|
|
3745
|
-
w: 2.
|
|
3746
|
-
h: 2.
|
|
3747
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
3898
|
+
x: ctx.width - 2.15,
|
|
3899
|
+
y: -0.45,
|
|
3900
|
+
w: 2.4,
|
|
3901
|
+
h: 2.4,
|
|
3902
|
+
fill: { color: ctx.colors.accent2, transparency: 66 },
|
|
3748
3903
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
3749
3904
|
});
|
|
3905
|
+
slide.addShape(ctx.shapeOval, {
|
|
3906
|
+
x: -0.7,
|
|
3907
|
+
y: ctx.height - 1.9,
|
|
3908
|
+
w: 2.1,
|
|
3909
|
+
h: 2.1,
|
|
3910
|
+
fill: { color: ctx.colors.accent, transparency: 72 },
|
|
3911
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3912
|
+
});
|
|
3913
|
+
// Cyan rim (HTML neon border feel).
|
|
3914
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3915
|
+
x: 0.08,
|
|
3916
|
+
y: 0.08,
|
|
3917
|
+
w: ctx.width - 0.16,
|
|
3918
|
+
h: ctx.height - 0.16,
|
|
3919
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3920
|
+
line: { color: ctx.colors.accent2, width: 1.35 },
|
|
3921
|
+
rectRadius: 0,
|
|
3922
|
+
});
|
|
3923
|
+
// Floor neon inset glow.
|
|
3924
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3925
|
+
x: 0,
|
|
3926
|
+
y: ctx.height - 0.42,
|
|
3927
|
+
w: ctx.width,
|
|
3928
|
+
h: 0.42,
|
|
3929
|
+
fill: { color: ctx.colors.accent, transparency: isHero ? 82 : 88 },
|
|
3930
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3931
|
+
rectRadius: 0,
|
|
3932
|
+
});
|
|
3933
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3934
|
+
x: 0,
|
|
3935
|
+
y: ctx.height - 0.08,
|
|
3936
|
+
w: ctx.width,
|
|
3937
|
+
h: 0.08,
|
|
3938
|
+
fill: { color: ctx.colors.accent2, transparency: isHero ? 35 : 48 },
|
|
3939
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3940
|
+
rectRadius: 0,
|
|
3941
|
+
});
|
|
3750
3942
|
}
|
|
3751
3943
|
if (theme === "brutalist-mono") {
|
|
3752
3944
|
// Dense mono grid + hard outer frame + 8px ink offset shadow (brutalist-grid).
|
|
@@ -3909,32 +4101,71 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3909
4101
|
});
|
|
3910
4102
|
}
|
|
3911
4103
|
if (theme === "biennale-yellow") {
|
|
3912
|
-
//
|
|
4104
|
+
// Dense sun orbs + quiet indigo frame + top hairline + coral stub (biennale-yellow-sun).
|
|
3913
4105
|
slide.addShape(ctx.shapeOval, {
|
|
3914
|
-
x: ctx.width * 0.
|
|
3915
|
-
y: -ctx.height * 0.
|
|
3916
|
-
w: ctx.width * 0.
|
|
3917
|
-
h: ctx.height * 0.
|
|
3918
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
4106
|
+
x: ctx.width * 0.55,
|
|
4107
|
+
y: -ctx.height * 0.22,
|
|
4108
|
+
w: ctx.width * 0.58,
|
|
4109
|
+
h: ctx.height * 0.62,
|
|
4110
|
+
fill: { color: ctx.colors.accent, transparency: 28 },
|
|
3919
4111
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3920
4112
|
});
|
|
3921
4113
|
slide.addShape(ctx.shapeOval, {
|
|
3922
|
-
x: ctx.width * 0.
|
|
3923
|
-
y: ctx.height * 0.
|
|
3924
|
-
w: ctx.width * 0.
|
|
3925
|
-
h: ctx.height * 0.
|
|
3926
|
-
fill: { color: "F8F39B", transparency:
|
|
4114
|
+
x: ctx.width * 0.66,
|
|
4115
|
+
y: ctx.height * 0.04,
|
|
4116
|
+
w: ctx.width * 0.34,
|
|
4117
|
+
h: ctx.height * 0.38,
|
|
4118
|
+
fill: { color: "F8F39B", transparency: 40 },
|
|
3927
4119
|
line: { color: "F8F39B", width: 0 },
|
|
3928
4120
|
});
|
|
4121
|
+
slide.addShape(ctx.shapeOval, {
|
|
4122
|
+
x: ctx.width * 0.78,
|
|
4123
|
+
y: -0.2,
|
|
4124
|
+
w: ctx.width * 0.28,
|
|
4125
|
+
h: ctx.height * 0.28,
|
|
4126
|
+
fill: { color: ctx.colors.accent, transparency: 55 },
|
|
4127
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4128
|
+
});
|
|
4129
|
+
// Quiet indigo outer frame (HTML border text@18%).
|
|
4130
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4131
|
+
x: 0.1,
|
|
4132
|
+
y: 0.1,
|
|
4133
|
+
w: ctx.width - 0.2,
|
|
4134
|
+
h: ctx.height - 0.2,
|
|
4135
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4136
|
+
line: { color: ctx.colors.text, width: 1.1 },
|
|
4137
|
+
rectRadius: 0,
|
|
4138
|
+
});
|
|
3929
4139
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3930
4140
|
x: ctx.margin,
|
|
3931
4141
|
y: 0.55,
|
|
3932
4142
|
w: ctx.width - ctx.margin * 2,
|
|
3933
|
-
h: 0.
|
|
4143
|
+
h: 0.018,
|
|
3934
4144
|
fill: { color: ctx.colors.text },
|
|
3935
4145
|
line: { color: ctx.colors.text, width: 0 },
|
|
3936
4146
|
rectRadius: 0,
|
|
3937
4147
|
});
|
|
4148
|
+
// Coral accent stub (accent2) — gallery counterweight to the sun.
|
|
4149
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4150
|
+
x: ctx.width - ctx.margin - 1.15,
|
|
4151
|
+
y: ctx.height - 0.72,
|
|
4152
|
+
w: 1.15,
|
|
4153
|
+
h: 0.035,
|
|
4154
|
+
fill: { color: ctx.colors.accent2, transparency: 15 },
|
|
4155
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
4156
|
+
rectRadius: 0,
|
|
4157
|
+
});
|
|
4158
|
+
if (isHero) {
|
|
4159
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4160
|
+
x: ctx.margin,
|
|
4161
|
+
y: ctx.height - 0.72,
|
|
4162
|
+
w: 0.85,
|
|
4163
|
+
h: 0.035,
|
|
4164
|
+
fill: { color: ctx.colors.text, transparency: 35 },
|
|
4165
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4166
|
+
rectRadius: 0,
|
|
4167
|
+
});
|
|
4168
|
+
}
|
|
3938
4169
|
}
|
|
3939
4170
|
if (theme === "scatterbrain") {
|
|
3940
4171
|
// Cork wash + soft ink offset shadow + quiet frame + sticky notes + pins;
|
|
@@ -4502,42 +4733,55 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4502
4733
|
});
|
|
4503
4734
|
}
|
|
4504
4735
|
if (theme === "broadside") {
|
|
4505
|
-
// Fire-orange left rail + corner
|
|
4736
|
+
// Fire-orange left rail + corner blast + hard ink frame + always-on top stub
|
|
4737
|
+
// (broadside-fire). Cards get hard ink strokes via cardStroke.
|
|
4506
4738
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4507
4739
|
x: 0.1,
|
|
4508
4740
|
y: 0.1,
|
|
4509
4741
|
w: ctx.width - 0.2,
|
|
4510
4742
|
h: ctx.height - 0.2,
|
|
4511
4743
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4512
|
-
line: { color: ctx.colors.text, width: 1.
|
|
4744
|
+
line: { color: ctx.colors.text, width: 1.75 },
|
|
4513
4745
|
rectRadius: 0,
|
|
4514
4746
|
});
|
|
4747
|
+
// HTML ::before is 10px ≈ 0.14".
|
|
4515
4748
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4516
4749
|
x: 0,
|
|
4517
4750
|
y: 0,
|
|
4518
|
-
w: 0.
|
|
4751
|
+
w: 0.14,
|
|
4519
4752
|
h: ctx.height,
|
|
4520
4753
|
fill: { color: ctx.colors.accent },
|
|
4521
4754
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4522
4755
|
rectRadius: 0,
|
|
4523
4756
|
});
|
|
4524
4757
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4525
|
-
x: ctx.width - 1.
|
|
4526
|
-
y: ctx.height - 1.
|
|
4527
|
-
w: 1.
|
|
4528
|
-
h: 1.
|
|
4758
|
+
x: ctx.width - 1.7,
|
|
4759
|
+
y: ctx.height - 1.7,
|
|
4760
|
+
w: 1.85,
|
|
4761
|
+
h: 1.85,
|
|
4762
|
+
fill: { color: ctx.colors.accent },
|
|
4763
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4764
|
+
rectRadius: 0,
|
|
4765
|
+
});
|
|
4766
|
+
// Always-on top stub (poster energy on body slides too).
|
|
4767
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4768
|
+
x: ctx.margin + 0.08,
|
|
4769
|
+
y: 0.42,
|
|
4770
|
+
w: isHero ? 1.35 : 0.95,
|
|
4771
|
+
h: 0.065,
|
|
4529
4772
|
fill: { color: ctx.colors.accent },
|
|
4530
4773
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4531
4774
|
rectRadius: 0,
|
|
4532
4775
|
});
|
|
4533
4776
|
if (isHero) {
|
|
4777
|
+
// Second fire bar for manifesto covers.
|
|
4534
4778
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4535
|
-
x: ctx.margin,
|
|
4536
|
-
y: 0.
|
|
4537
|
-
w:
|
|
4538
|
-
h: 0.
|
|
4539
|
-
fill: { color: ctx.colors.
|
|
4540
|
-
line: { color: ctx.colors.
|
|
4779
|
+
x: ctx.margin + 0.08,
|
|
4780
|
+
y: 0.55,
|
|
4781
|
+
w: 0.55,
|
|
4782
|
+
h: 0.04,
|
|
4783
|
+
fill: { color: ctx.colors.text },
|
|
4784
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4541
4785
|
rectRadius: 0,
|
|
4542
4786
|
});
|
|
4543
4787
|
}
|
|
@@ -5362,31 +5606,66 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
5362
5606
|
});
|
|
5363
5607
|
}
|
|
5364
5608
|
if (theme === "pastel-dreamy") {
|
|
5365
|
-
// Soft cloud ovals +
|
|
5609
|
+
// Soft cloud ovals + plump inset frame + soft shadow stub (pastel-cloud).
|
|
5610
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5611
|
+
x: 0.38,
|
|
5612
|
+
y: 0.36,
|
|
5613
|
+
w: ctx.width - 0.5,
|
|
5614
|
+
h: ctx.height - 0.5,
|
|
5615
|
+
fill: { color: ctx.colors.text, transparency: 94 },
|
|
5616
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
5617
|
+
rectRadius: 0.24,
|
|
5618
|
+
});
|
|
5366
5619
|
slide.addShape(ctx.shapeOval, {
|
|
5367
|
-
x: -ctx.width * 0.
|
|
5368
|
-
y: -ctx.height * 0.
|
|
5369
|
-
w: ctx.width * 0.
|
|
5370
|
-
h: ctx.height * 0.
|
|
5371
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
5620
|
+
x: -ctx.width * 0.08,
|
|
5621
|
+
y: -ctx.height * 0.12,
|
|
5622
|
+
w: ctx.width * 0.5,
|
|
5623
|
+
h: ctx.height * 0.5,
|
|
5624
|
+
fill: { color: ctx.colors.accent2, transparency: 70 },
|
|
5372
5625
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
5373
5626
|
});
|
|
5374
5627
|
slide.addShape(ctx.shapeOval, {
|
|
5375
|
-
x: ctx.width * 0.
|
|
5376
|
-
y: ctx.height * 0.
|
|
5377
|
-
w: ctx.width * 0.
|
|
5378
|
-
h: ctx.height * 0.
|
|
5379
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
5628
|
+
x: ctx.width * 0.52,
|
|
5629
|
+
y: -ctx.height * 0.02,
|
|
5630
|
+
w: ctx.width * 0.48,
|
|
5631
|
+
h: ctx.height * 0.45,
|
|
5632
|
+
fill: { color: ctx.colors.accent, transparency: 74 },
|
|
5380
5633
|
line: { color: ctx.colors.accent, width: 0 },
|
|
5381
5634
|
});
|
|
5382
5635
|
slide.addShape(ctx.shapeOval, {
|
|
5383
|
-
x: ctx.width * 0.
|
|
5384
|
-
y: ctx.height * 0.
|
|
5385
|
-
w: ctx.width * 0.
|
|
5386
|
-
h: ctx.height * 0.
|
|
5387
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
5636
|
+
x: ctx.width * 0.3,
|
|
5637
|
+
y: ctx.height * 0.58,
|
|
5638
|
+
w: ctx.width * 0.48,
|
|
5639
|
+
h: ctx.height * 0.48,
|
|
5640
|
+
fill: { color: ctx.colors.accent2, transparency: 84 },
|
|
5388
5641
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
5389
5642
|
});
|
|
5643
|
+
slide.addShape(ctx.shapeOval, {
|
|
5644
|
+
x: ctx.width * 0.72,
|
|
5645
|
+
y: ctx.height * 0.7,
|
|
5646
|
+
w: ctx.width * 0.32,
|
|
5647
|
+
h: ctx.height * 0.35,
|
|
5648
|
+
fill: { color: ctx.colors.accent, transparency: 86 },
|
|
5649
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
5650
|
+
});
|
|
5651
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5652
|
+
x: 0.22,
|
|
5653
|
+
y: 0.22,
|
|
5654
|
+
w: ctx.width - 0.44,
|
|
5655
|
+
h: ctx.height - 0.44,
|
|
5656
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
5657
|
+
line: { color: ctx.colors.border, width: 1 },
|
|
5658
|
+
rectRadius: 0.22,
|
|
5659
|
+
});
|
|
5660
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5661
|
+
x: ctx.margin,
|
|
5662
|
+
y: ctx.height - 0.58,
|
|
5663
|
+
w: 0.9,
|
|
5664
|
+
h: 0.03,
|
|
5665
|
+
fill: { color: ctx.colors.accent, transparency: 25 },
|
|
5666
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
5667
|
+
rectRadius: 0.015,
|
|
5668
|
+
});
|
|
5390
5669
|
}
|
|
5391
5670
|
if (theme === "vellum") {
|
|
5392
5671
|
// Soft colorfield wash + teal accent orb (vellum-colorfield).
|