@presentation-md/export 1.13.1 → 1.14.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 +466 -97
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -11,7 +11,12 @@ function cardStroke(ctx, opts = {}) {
|
|
|
11
11
|
}
|
|
12
12
|
function cardRadius(ctx) {
|
|
13
13
|
// candy-blob cards: border-radius 22px ≈ 0.23"
|
|
14
|
-
|
|
14
|
+
if (ctx.themeName === "candy-pop")
|
|
15
|
+
return 0.23;
|
|
16
|
+
// soft-editorial-paper cards: border-radius 24px ≈ 0.25"
|
|
17
|
+
if (ctx.themeName === "soft-editorial")
|
|
18
|
+
return 0.25;
|
|
19
|
+
return 0.06;
|
|
15
20
|
}
|
|
16
21
|
/**
|
|
17
22
|
* Pulse (kinetic-wrapped) eyebrows render as hard chips in HTML —
|
|
@@ -1863,7 +1868,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1863
1868
|
}
|
|
1864
1869
|
}
|
|
1865
1870
|
if (theme === "soft-editorial") {
|
|
1866
|
-
// Soft sage
|
|
1871
|
+
// Soft sage wash + hero blush/lemon candy + plump inset frame + soft shadow stub.
|
|
1872
|
+
// Matches soft-editorial-paper: blush ::after is hero-gated in HTML.
|
|
1867
1873
|
slide.addShape(ctx.shapeOval, {
|
|
1868
1874
|
x: ctx.width * 0.55,
|
|
1869
1875
|
y: -ctx.height * 0.15,
|
|
@@ -1872,18 +1878,80 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1872
1878
|
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
1873
1879
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1874
1880
|
});
|
|
1881
|
+
// Soft paper shadow stand-in (HTML box-shadow 0 18px 48px).
|
|
1875
1882
|
slide.addShape(ctx.shapeRoundRect, {
|
|
1876
|
-
x:
|
|
1877
|
-
y: 0.
|
|
1878
|
-
w:
|
|
1879
|
-
h:
|
|
1880
|
-
fill: { color: ctx.colors.
|
|
1881
|
-
line: { color: ctx.colors.
|
|
1882
|
-
rectRadius: 0.
|
|
1883
|
+
x: 0.42,
|
|
1884
|
+
y: 0.4,
|
|
1885
|
+
w: ctx.width - 0.56,
|
|
1886
|
+
h: ctx.height - 0.56,
|
|
1887
|
+
fill: { color: ctx.colors.text, transparency: 94 },
|
|
1888
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
1889
|
+
rectRadius: 0.29,
|
|
1890
|
+
});
|
|
1891
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1892
|
+
x: 0.28,
|
|
1893
|
+
y: 0.28,
|
|
1894
|
+
w: ctx.width - 0.56,
|
|
1895
|
+
h: ctx.height - 0.56,
|
|
1896
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
1897
|
+
line: { color: ctx.colors.border, width: 1 },
|
|
1898
|
+
rectRadius: 0.29,
|
|
1899
|
+
});
|
|
1900
|
+
if (isHero) {
|
|
1901
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1902
|
+
x: ctx.width - 2.35,
|
|
1903
|
+
y: 0.45,
|
|
1904
|
+
w: 1.7,
|
|
1905
|
+
h: 1.7,
|
|
1906
|
+
fill: { color: ctx.colors.accent2, transparency: 42 },
|
|
1907
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
1908
|
+
rectRadius: 0.29,
|
|
1909
|
+
});
|
|
1910
|
+
// Lemon candy secondary (theme description; capsule-style pastel).
|
|
1911
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1912
|
+
x: ctx.width - 3.05,
|
|
1913
|
+
y: 1.85,
|
|
1914
|
+
w: 0.72,
|
|
1915
|
+
h: 0.72,
|
|
1916
|
+
fill: { color: "E8D5A3", transparency: 28 },
|
|
1917
|
+
line: { color: "E8D5A3", width: 0 },
|
|
1918
|
+
rectRadius: 0.16,
|
|
1919
|
+
});
|
|
1920
|
+
// Lilac accent chip.
|
|
1921
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1922
|
+
x: ctx.width - 1.55,
|
|
1923
|
+
y: 2.35,
|
|
1924
|
+
w: 0.48,
|
|
1925
|
+
h: 0.48,
|
|
1926
|
+
fill: { color: "C5B5E0", transparency: 35 },
|
|
1927
|
+
line: { color: "C5B5E0", width: 0 },
|
|
1928
|
+
rectRadius: 0.12,
|
|
1929
|
+
});
|
|
1930
|
+
}
|
|
1931
|
+
else {
|
|
1932
|
+
// Quiet magazine hairline when blush candy is off.
|
|
1933
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1934
|
+
x: ctx.margin,
|
|
1935
|
+
y: 0.55,
|
|
1936
|
+
w: 0.95,
|
|
1937
|
+
h: 0.02,
|
|
1938
|
+
fill: { color: ctx.colors.accent, transparency: 30 },
|
|
1939
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
1940
|
+
rectRadius: 0,
|
|
1941
|
+
});
|
|
1942
|
+
}
|
|
1943
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1944
|
+
x: ctx.margin,
|
|
1945
|
+
y: ctx.height - 0.55,
|
|
1946
|
+
w: 0.85,
|
|
1947
|
+
h: 0.03,
|
|
1948
|
+
fill: { color: ctx.colors.accent },
|
|
1949
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
1950
|
+
rectRadius: 0,
|
|
1883
1951
|
});
|
|
1884
1952
|
}
|
|
1885
1953
|
if (theme === "claude") {
|
|
1886
|
-
// Warm-paper coral corner wash (grain stays HTML-only).
|
|
1954
|
+
// Warm-paper coral corner wash + soft accent2 mist + quiet inset frame (grain stays HTML-only).
|
|
1887
1955
|
slide.addShape(ctx.shapeOval, {
|
|
1888
1956
|
x: -1.1,
|
|
1889
1957
|
y: ctx.height - 2.4,
|
|
@@ -1892,6 +1960,32 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1892
1960
|
fill: { color: ctx.colors.accent, transparency: 82 },
|
|
1893
1961
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1894
1962
|
});
|
|
1963
|
+
slide.addShape(ctx.shapeOval, {
|
|
1964
|
+
x: ctx.width - 2.8,
|
|
1965
|
+
y: -1.2,
|
|
1966
|
+
w: 3.4,
|
|
1967
|
+
h: 3.4,
|
|
1968
|
+
fill: { color: ctx.colors.accent2, transparency: 86 },
|
|
1969
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
1970
|
+
});
|
|
1971
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1972
|
+
x: 0.32,
|
|
1973
|
+
y: 0.32,
|
|
1974
|
+
w: ctx.width - 0.64,
|
|
1975
|
+
h: ctx.height - 0.64,
|
|
1976
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
1977
|
+
line: { color: ctx.colors.border, width: 1 },
|
|
1978
|
+
rectRadius: 0.1,
|
|
1979
|
+
});
|
|
1980
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1981
|
+
x: ctx.margin,
|
|
1982
|
+
y: 0.58,
|
|
1983
|
+
w: 0.72,
|
|
1984
|
+
h: 0.02,
|
|
1985
|
+
fill: { color: ctx.colors.accent, transparency: 25 },
|
|
1986
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
1987
|
+
rectRadius: 0,
|
|
1988
|
+
});
|
|
1895
1989
|
}
|
|
1896
1990
|
if (theme === "default-tech") {
|
|
1897
1991
|
// Neon-glow corner bloom + secondary cyan wash (HTML blur → soft ovals).
|
|
@@ -2648,7 +2742,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2648
2742
|
});
|
|
2649
2743
|
}
|
|
2650
2744
|
if (theme === "ft-editorial") {
|
|
2651
|
-
// Broadsheet masthead
|
|
2745
|
+
// Broadsheet masthead + double rule + quiet outer frame + accent mid stub.
|
|
2652
2746
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2653
2747
|
x: 0,
|
|
2654
2748
|
y: 0,
|
|
@@ -2658,6 +2752,15 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2658
2752
|
line: { color: ctx.colors.text, width: 0 },
|
|
2659
2753
|
rectRadius: 0,
|
|
2660
2754
|
});
|
|
2755
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2756
|
+
x: 0.14,
|
|
2757
|
+
y: 0.14,
|
|
2758
|
+
w: ctx.width - 0.28,
|
|
2759
|
+
h: ctx.height - 0.28,
|
|
2760
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2761
|
+
line: { color: ctx.colors.text, width: 0.75 },
|
|
2762
|
+
rectRadius: 0,
|
|
2763
|
+
});
|
|
2661
2764
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2662
2765
|
x: ctx.margin,
|
|
2663
2766
|
y: ctx.height - 0.7,
|
|
@@ -2667,6 +2770,24 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2667
2770
|
line: { color: ctx.colors.text, width: 0 },
|
|
2668
2771
|
rectRadius: 0,
|
|
2669
2772
|
});
|
|
2773
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2774
|
+
x: ctx.margin,
|
|
2775
|
+
y: ctx.height - 0.62,
|
|
2776
|
+
w: ctx.width - ctx.margin * 2,
|
|
2777
|
+
h: 0.012,
|
|
2778
|
+
fill: { color: ctx.colors.accent, transparency: 35 },
|
|
2779
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2780
|
+
rectRadius: 0,
|
|
2781
|
+
});
|
|
2782
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2783
|
+
x: ctx.margin,
|
|
2784
|
+
y: 0.55,
|
|
2785
|
+
w: 0.55,
|
|
2786
|
+
h: 0.03,
|
|
2787
|
+
fill: { color: ctx.colors.accent },
|
|
2788
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2789
|
+
rectRadius: 0,
|
|
2790
|
+
});
|
|
2670
2791
|
}
|
|
2671
2792
|
if (theme === "bauhaus") {
|
|
2672
2793
|
// Hard frame on every slide; red square + blue circle on heroes (bauhaus-blocks).
|
|
@@ -2829,12 +2950,31 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2829
2950
|
});
|
|
2830
2951
|
}
|
|
2831
2952
|
if (theme === "genz-bento") {
|
|
2832
|
-
// Hard border shadow + accent2 corner blot (hard-bento).
|
|
2953
|
+
// Hard border + 10px offset shadow strips + accent2 corner blot (hard-bento).
|
|
2954
|
+
const shadow = 0.12;
|
|
2955
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2956
|
+
x: ctx.width - shadow,
|
|
2957
|
+
y: shadow,
|
|
2958
|
+
w: shadow,
|
|
2959
|
+
h: ctx.height - shadow,
|
|
2960
|
+
fill: { color: ctx.colors.text },
|
|
2961
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
2962
|
+
rectRadius: 0,
|
|
2963
|
+
});
|
|
2964
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2965
|
+
x: shadow,
|
|
2966
|
+
y: ctx.height - shadow,
|
|
2967
|
+
w: ctx.width - shadow,
|
|
2968
|
+
h: shadow,
|
|
2969
|
+
fill: { color: ctx.colors.text },
|
|
2970
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
2971
|
+
rectRadius: 0,
|
|
2972
|
+
});
|
|
2833
2973
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2834
2974
|
x: 0.12,
|
|
2835
2975
|
y: 0.12,
|
|
2836
|
-
w: ctx.width - 0.
|
|
2837
|
-
h: ctx.height - 0.
|
|
2976
|
+
w: ctx.width - 0.24,
|
|
2977
|
+
h: ctx.height - 0.24,
|
|
2838
2978
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2839
2979
|
line: { color: ctx.colors.text, width: 2.5 },
|
|
2840
2980
|
rectRadius: 0,
|
|
@@ -2849,7 +2989,23 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2849
2989
|
});
|
|
2850
2990
|
}
|
|
2851
2991
|
if (theme === "heritage-editorial") {
|
|
2852
|
-
//
|
|
2992
|
+
// Parchment wash + quiet hairlines + mid stub (heritage-wash).
|
|
2993
|
+
slide.addShape(ctx.shapeOval, {
|
|
2994
|
+
x: -ctx.width * 0.15,
|
|
2995
|
+
y: -ctx.height * 0.25,
|
|
2996
|
+
w: ctx.width * 0.85,
|
|
2997
|
+
h: ctx.height * 0.7,
|
|
2998
|
+
fill: { color: ctx.colors.bg2, transparency: 35 },
|
|
2999
|
+
line: { color: ctx.colors.bg2, width: 0 },
|
|
3000
|
+
});
|
|
3001
|
+
slide.addShape(ctx.shapeOval, {
|
|
3002
|
+
x: ctx.width * 0.45,
|
|
3003
|
+
y: ctx.height * 0.35,
|
|
3004
|
+
w: ctx.width * 0.7,
|
|
3005
|
+
h: ctx.height * 0.85,
|
|
3006
|
+
fill: { color: ctx.colors.accent2, transparency: 88 },
|
|
3007
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3008
|
+
});
|
|
2853
3009
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2854
3010
|
x: ctx.margin,
|
|
2855
3011
|
y: 0.6,
|
|
@@ -3100,7 +3256,35 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3100
3256
|
});
|
|
3101
3257
|
}
|
|
3102
3258
|
if (theme === "bold-poster") {
|
|
3103
|
-
//
|
|
3259
|
+
// Hard frame + offset shadow every slide; ink top bar; poster block on heroes.
|
|
3260
|
+
const shadow = 0.11;
|
|
3261
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3262
|
+
x: ctx.width - shadow,
|
|
3263
|
+
y: shadow,
|
|
3264
|
+
w: shadow,
|
|
3265
|
+
h: ctx.height - shadow,
|
|
3266
|
+
fill: { color: ctx.colors.text },
|
|
3267
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3268
|
+
rectRadius: 0,
|
|
3269
|
+
});
|
|
3270
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3271
|
+
x: shadow,
|
|
3272
|
+
y: ctx.height - shadow,
|
|
3273
|
+
w: ctx.width - shadow,
|
|
3274
|
+
h: shadow,
|
|
3275
|
+
fill: { color: ctx.colors.text },
|
|
3276
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3277
|
+
rectRadius: 0,
|
|
3278
|
+
});
|
|
3279
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3280
|
+
x: 0.1,
|
|
3281
|
+
y: 0.1,
|
|
3282
|
+
w: ctx.width - 0.2,
|
|
3283
|
+
h: ctx.height - 0.2,
|
|
3284
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3285
|
+
line: { color: ctx.colors.text, width: 2.25 },
|
|
3286
|
+
rectRadius: 0,
|
|
3287
|
+
});
|
|
3104
3288
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3105
3289
|
x: 0,
|
|
3106
3290
|
y: 0,
|
|
@@ -3351,27 +3535,56 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3351
3535
|
});
|
|
3352
3536
|
}
|
|
3353
3537
|
}
|
|
3354
|
-
if (theme === "split-pastel"
|
|
3355
|
-
//
|
|
3356
|
-
slide.addShape(ctx.
|
|
3357
|
-
x:
|
|
3358
|
-
y:
|
|
3359
|
-
w:
|
|
3360
|
-
h:
|
|
3361
|
-
fill: { color: ctx.colors.
|
|
3362
|
-
line: { color: ctx.colors.
|
|
3363
|
-
rectRadius: 0,
|
|
3538
|
+
if (theme === "split-pastel") {
|
|
3539
|
+
// Soft dual pastel corner washes on every slide; full split + pills on heroes.
|
|
3540
|
+
slide.addShape(ctx.shapeOval, {
|
|
3541
|
+
x: -1.4,
|
|
3542
|
+
y: ctx.height - 2.6,
|
|
3543
|
+
w: 3.2,
|
|
3544
|
+
h: 3.2,
|
|
3545
|
+
fill: { color: ctx.colors.accent, transparency: 84 },
|
|
3546
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3364
3547
|
});
|
|
3365
|
-
|
|
3366
|
-
|
|
3548
|
+
slide.addShape(ctx.shapeOval, {
|
|
3549
|
+
x: ctx.width - 2.4,
|
|
3550
|
+
y: -1.4,
|
|
3551
|
+
w: 3.0,
|
|
3552
|
+
h: 3.0,
|
|
3553
|
+
fill: { color: ctx.colors.accent2, transparency: 84 },
|
|
3554
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3555
|
+
});
|
|
3556
|
+
if (isHero) {
|
|
3367
3557
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3368
|
-
x: ctx.width
|
|
3369
|
-
y:
|
|
3370
|
-
w: 0.
|
|
3371
|
-
h:
|
|
3372
|
-
fill: { color:
|
|
3373
|
-
line: { color:
|
|
3374
|
-
rectRadius: 0
|
|
3558
|
+
x: ctx.width * 0.5,
|
|
3559
|
+
y: 0,
|
|
3560
|
+
w: ctx.width * 0.5,
|
|
3561
|
+
h: ctx.height,
|
|
3562
|
+
fill: { color: ctx.colors.bg2 },
|
|
3563
|
+
line: { color: ctx.colors.bg2, width: 0 },
|
|
3564
|
+
rectRadius: 0,
|
|
3565
|
+
});
|
|
3566
|
+
const stack = [ctx.colors.accent, ctx.colors.accent2, "F0F0C8"];
|
|
3567
|
+
for (let i = 0; i < stack.length; i++) {
|
|
3568
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3569
|
+
x: ctx.width - 1.55,
|
|
3570
|
+
y: ctx.height - 1.35 + i * 0.32,
|
|
3571
|
+
w: 0.95,
|
|
3572
|
+
h: 0.26,
|
|
3573
|
+
fill: { color: stack[i] },
|
|
3574
|
+
line: { color: stack[i], width: 0 },
|
|
3575
|
+
rectRadius: 0.13,
|
|
3576
|
+
});
|
|
3577
|
+
}
|
|
3578
|
+
}
|
|
3579
|
+
else {
|
|
3580
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3581
|
+
x: ctx.margin,
|
|
3582
|
+
y: 0.55,
|
|
3583
|
+
w: 0.9,
|
|
3584
|
+
h: 0.02,
|
|
3585
|
+
fill: { color: ctx.colors.accent, transparency: 30 },
|
|
3586
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3587
|
+
rectRadius: 0,
|
|
3375
3588
|
});
|
|
3376
3589
|
}
|
|
3377
3590
|
}
|
|
@@ -3689,7 +3902,16 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3689
3902
|
});
|
|
3690
3903
|
}
|
|
3691
3904
|
if (theme === "broadside") {
|
|
3692
|
-
// Fire-orange left rail + corner block
|
|
3905
|
+
// Fire-orange left rail + corner block + thin outer border + hero top stub.
|
|
3906
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3907
|
+
x: 0.1,
|
|
3908
|
+
y: 0.1,
|
|
3909
|
+
w: ctx.width - 0.2,
|
|
3910
|
+
h: ctx.height - 0.2,
|
|
3911
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3912
|
+
line: { color: ctx.colors.text, width: 1.5 },
|
|
3913
|
+
rectRadius: 0,
|
|
3914
|
+
});
|
|
3693
3915
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3694
3916
|
x: 0,
|
|
3695
3917
|
y: 0,
|
|
@@ -3708,35 +3930,61 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3708
3930
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3709
3931
|
rectRadius: 0,
|
|
3710
3932
|
});
|
|
3933
|
+
if (isHero) {
|
|
3934
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3935
|
+
x: ctx.margin,
|
|
3936
|
+
y: 0.45,
|
|
3937
|
+
w: 1.1,
|
|
3938
|
+
h: 0.06,
|
|
3939
|
+
fill: { color: ctx.colors.accent },
|
|
3940
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3941
|
+
rectRadius: 0,
|
|
3942
|
+
});
|
|
3943
|
+
}
|
|
3711
3944
|
}
|
|
3712
3945
|
if (theme === "pink-script") {
|
|
3713
|
-
//
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3946
|
+
// Dual inset frames + accent hairline; hero wash (pink-script-afterhours).
|
|
3947
|
+
if (isHero) {
|
|
3948
|
+
slide.addShape(ctx.shapeOval, {
|
|
3949
|
+
x: ctx.width * 0.55,
|
|
3950
|
+
y: -ctx.height * 0.2,
|
|
3951
|
+
w: ctx.width * 0.55,
|
|
3952
|
+
h: ctx.height * 0.55,
|
|
3953
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
3954
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3955
|
+
});
|
|
3956
|
+
}
|
|
3957
|
+
// Outer accent inset (HTML box-shadow inset accent).
|
|
3722
3958
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3723
|
-
x: 0.
|
|
3724
|
-
y: 0.
|
|
3725
|
-
w: ctx.width - 0.
|
|
3726
|
-
h: ctx.height - 0.
|
|
3959
|
+
x: 0.22,
|
|
3960
|
+
y: 0.22,
|
|
3961
|
+
w: ctx.width - 0.44,
|
|
3962
|
+
h: ctx.height - 0.44,
|
|
3727
3963
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3728
|
-
line: { color:
|
|
3964
|
+
line: { color: ctx.colors.accent, width: 1.1 },
|
|
3729
3965
|
rectRadius: 0,
|
|
3730
3966
|
});
|
|
3967
|
+
// Inner light inset ring.
|
|
3731
3968
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3732
|
-
x:
|
|
3733
|
-
y:
|
|
3734
|
-
w:
|
|
3735
|
-
h: 0.
|
|
3736
|
-
fill: { color: ctx.colors.
|
|
3737
|
-
line: { color:
|
|
3969
|
+
x: 0.42,
|
|
3970
|
+
y: 0.42,
|
|
3971
|
+
w: ctx.width - 0.84,
|
|
3972
|
+
h: ctx.height - 0.84,
|
|
3973
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3974
|
+
line: { color: "F5EDF1", width: 1 },
|
|
3738
3975
|
rectRadius: 0,
|
|
3739
3976
|
});
|
|
3977
|
+
if (isHero) {
|
|
3978
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3979
|
+
x: ctx.width - 2.0,
|
|
3980
|
+
y: ctx.height - 0.85,
|
|
3981
|
+
w: 1.35,
|
|
3982
|
+
h: 0.04,
|
|
3983
|
+
fill: { color: ctx.colors.accent },
|
|
3984
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3985
|
+
rectRadius: 0,
|
|
3986
|
+
});
|
|
3987
|
+
}
|
|
3740
3988
|
}
|
|
3741
3989
|
if (theme === "retro-windows") {
|
|
3742
3990
|
// Win95 title bar + window buttons + beveled frame (retro-windows-chrome).
|
|
@@ -3803,37 +4051,75 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3803
4051
|
});
|
|
3804
4052
|
}
|
|
3805
4053
|
if (theme === "emerald-editorial") {
|
|
3806
|
-
//
|
|
4054
|
+
// True double masthead rules + dual inset frame (emerald-editorial-masthead).
|
|
3807
4055
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3808
|
-
x: 0.
|
|
3809
|
-
y: 0.
|
|
3810
|
-
w: ctx.width - 0.
|
|
3811
|
-
h: ctx.height - 0.
|
|
4056
|
+
x: 0.18,
|
|
4057
|
+
y: 0.18,
|
|
4058
|
+
w: ctx.width - 0.36,
|
|
4059
|
+
h: ctx.height - 0.36,
|
|
3812
4060
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3813
|
-
line: { color: ctx.colors.text, width: 1.
|
|
4061
|
+
line: { color: ctx.colors.text, width: 1.25 },
|
|
3814
4062
|
rectRadius: 0,
|
|
3815
4063
|
});
|
|
4064
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4065
|
+
x: 0.32,
|
|
4066
|
+
y: 0.32,
|
|
4067
|
+
w: ctx.width - 0.64,
|
|
4068
|
+
h: ctx.height - 0.64,
|
|
4069
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4070
|
+
line: { color: ctx.colors.text, width: 0.75 },
|
|
4071
|
+
rectRadius: 0,
|
|
4072
|
+
});
|
|
4073
|
+
// Top double rule (1px / gap / 1px).
|
|
3816
4074
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3817
4075
|
x: ctx.width * 0.12,
|
|
3818
4076
|
y: ctx.height * 0.14,
|
|
3819
4077
|
w: ctx.width * 0.76,
|
|
3820
|
-
h: 0.
|
|
4078
|
+
h: 0.012,
|
|
4079
|
+
fill: { color: ctx.colors.text },
|
|
4080
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4081
|
+
rectRadius: 0,
|
|
4082
|
+
});
|
|
4083
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4084
|
+
x: ctx.width * 0.12,
|
|
4085
|
+
y: ctx.height * 0.14 + 0.028,
|
|
4086
|
+
w: ctx.width * 0.76,
|
|
4087
|
+
h: 0.012,
|
|
3821
4088
|
fill: { color: ctx.colors.text },
|
|
3822
4089
|
line: { color: ctx.colors.text, width: 0 },
|
|
3823
4090
|
rectRadius: 0,
|
|
3824
4091
|
});
|
|
4092
|
+
// Bottom double rule.
|
|
3825
4093
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3826
4094
|
x: ctx.width * 0.12,
|
|
3827
4095
|
y: ctx.height * 0.86,
|
|
3828
4096
|
w: ctx.width * 0.76,
|
|
3829
|
-
h: 0.
|
|
4097
|
+
h: 0.012,
|
|
4098
|
+
fill: { color: ctx.colors.text },
|
|
4099
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4100
|
+
rectRadius: 0,
|
|
4101
|
+
});
|
|
4102
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4103
|
+
x: ctx.width * 0.12,
|
|
4104
|
+
y: ctx.height * 0.86 + 0.028,
|
|
4105
|
+
w: ctx.width * 0.76,
|
|
4106
|
+
h: 0.012,
|
|
3830
4107
|
fill: { color: ctx.colors.text },
|
|
3831
4108
|
line: { color: ctx.colors.text, width: 0 },
|
|
3832
4109
|
rectRadius: 0,
|
|
3833
4110
|
});
|
|
3834
4111
|
}
|
|
3835
4112
|
if (theme === "notebook-tabs") {
|
|
3836
|
-
//
|
|
4113
|
+
// Dark mat frame + pastel side tabs + binder holes + left margin rule.
|
|
4114
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4115
|
+
x: 0.06,
|
|
4116
|
+
y: 0.06,
|
|
4117
|
+
w: ctx.width - 0.12,
|
|
4118
|
+
h: ctx.height - 0.12,
|
|
4119
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4120
|
+
line: { color: "2D2D2D", width: 2.5 },
|
|
4121
|
+
rectRadius: 0.04,
|
|
4122
|
+
});
|
|
3837
4123
|
const tabs = ["98D4BB", "C7B8EA", "F4B8C5", "A8D8EA", "FFE6A7"];
|
|
3838
4124
|
const tabH = (ctx.height * 0.72) / tabs.length;
|
|
3839
4125
|
for (let i = 0; i < tabs.length; i++) {
|
|
@@ -3857,6 +4143,15 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3857
4143
|
line: { color: "D0CCC4", width: 0 },
|
|
3858
4144
|
});
|
|
3859
4145
|
}
|
|
4146
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4147
|
+
x: 0.72,
|
|
4148
|
+
y: 0.4,
|
|
4149
|
+
w: 0.018,
|
|
4150
|
+
h: ctx.height - 0.8,
|
|
4151
|
+
fill: { color: ctx.colors.accent, transparency: 55 },
|
|
4152
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4153
|
+
rectRadius: 0,
|
|
4154
|
+
});
|
|
3860
4155
|
}
|
|
3861
4156
|
if (theme === "long-table") {
|
|
3862
4157
|
// Speckled supper club + outline pill + hairline (long-table-supper).
|
|
@@ -3921,32 +4216,43 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3921
4216
|
rectRadius: 0,
|
|
3922
4217
|
});
|
|
3923
4218
|
}
|
|
3924
|
-
if (theme === "vintage-editorial"
|
|
3925
|
-
//
|
|
3926
|
-
slide.addShape(ctx.
|
|
3927
|
-
x:
|
|
3928
|
-
y: 0.
|
|
3929
|
-
w:
|
|
3930
|
-
h:
|
|
4219
|
+
if (theme === "vintage-editorial") {
|
|
4220
|
+
// Quiet outer border on all slides; geometric ring + dots on heroes.
|
|
4221
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4222
|
+
x: 0.18,
|
|
4223
|
+
y: 0.18,
|
|
4224
|
+
w: ctx.width - 0.36,
|
|
4225
|
+
h: ctx.height - 0.36,
|
|
3931
4226
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3932
|
-
line: { color: ctx.colors.text, width: 1.
|
|
3933
|
-
|
|
3934
|
-
slide.addShape(ctx.shapeOval, {
|
|
3935
|
-
x: ctx.width - 1.7,
|
|
3936
|
-
y: 1.2,
|
|
3937
|
-
w: 0.18,
|
|
3938
|
-
h: 0.18,
|
|
3939
|
-
fill: { color: ctx.colors.text },
|
|
3940
|
-
line: { color: ctx.colors.text, width: 0 },
|
|
3941
|
-
});
|
|
3942
|
-
slide.addShape(ctx.shapeOval, {
|
|
3943
|
-
x: ctx.width - 1.15,
|
|
3944
|
-
y: 1.7,
|
|
3945
|
-
w: 0.18,
|
|
3946
|
-
h: 0.18,
|
|
3947
|
-
fill: { color: ctx.colors.accent },
|
|
3948
|
-
line: { color: ctx.colors.accent, width: 0 },
|
|
4227
|
+
line: { color: ctx.colors.text, width: 1.25 },
|
|
4228
|
+
rectRadius: 0.04,
|
|
3949
4229
|
});
|
|
4230
|
+
if (isHero) {
|
|
4231
|
+
slide.addShape(ctx.shapeOval, {
|
|
4232
|
+
x: ctx.width - 2.35,
|
|
4233
|
+
y: 0.55,
|
|
4234
|
+
w: 1.55,
|
|
4235
|
+
h: 1.55,
|
|
4236
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4237
|
+
line: { color: ctx.colors.text, width: 1.5 },
|
|
4238
|
+
});
|
|
4239
|
+
slide.addShape(ctx.shapeOval, {
|
|
4240
|
+
x: ctx.width - 1.7,
|
|
4241
|
+
y: 1.2,
|
|
4242
|
+
w: 0.18,
|
|
4243
|
+
h: 0.18,
|
|
4244
|
+
fill: { color: ctx.colors.text },
|
|
4245
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4246
|
+
});
|
|
4247
|
+
slide.addShape(ctx.shapeOval, {
|
|
4248
|
+
x: ctx.width - 1.15,
|
|
4249
|
+
y: 1.7,
|
|
4250
|
+
w: 0.18,
|
|
4251
|
+
h: 0.18,
|
|
4252
|
+
fill: { color: ctx.colors.accent },
|
|
4253
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4254
|
+
});
|
|
4255
|
+
}
|
|
3950
4256
|
}
|
|
3951
4257
|
if (theme === "studio") {
|
|
3952
4258
|
// Acid hairline rails + hard frame (studio-acid).
|
|
@@ -4168,7 +4474,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4168
4474
|
});
|
|
4169
4475
|
}
|
|
4170
4476
|
if (theme === "broadsheet") {
|
|
4171
|
-
// Newsprint masthead
|
|
4477
|
+
// Newsprint masthead + quiet frame + double bottom rules + accent stub.
|
|
4172
4478
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4173
4479
|
x: 0,
|
|
4174
4480
|
y: 0,
|
|
@@ -4178,6 +4484,15 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4178
4484
|
line: { color: ctx.colors.text, width: 0 },
|
|
4179
4485
|
rectRadius: 0,
|
|
4180
4486
|
});
|
|
4487
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4488
|
+
x: 0.14,
|
|
4489
|
+
y: 0.14,
|
|
4490
|
+
w: ctx.width - 0.28,
|
|
4491
|
+
h: ctx.height - 0.28,
|
|
4492
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4493
|
+
line: { color: ctx.colors.text, width: 0.85 },
|
|
4494
|
+
rectRadius: 0,
|
|
4495
|
+
});
|
|
4181
4496
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4182
4497
|
x: ctx.margin,
|
|
4183
4498
|
y: ctx.height - 0.7,
|
|
@@ -4187,9 +4502,36 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4187
4502
|
line: { color: ctx.colors.text, width: 0 },
|
|
4188
4503
|
rectRadius: 0,
|
|
4189
4504
|
});
|
|
4505
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4506
|
+
x: ctx.margin,
|
|
4507
|
+
y: ctx.height - 0.62,
|
|
4508
|
+
w: ctx.width - ctx.margin * 2,
|
|
4509
|
+
h: 0.012,
|
|
4510
|
+
fill: { color: ctx.colors.accent, transparency: 40 },
|
|
4511
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4512
|
+
rectRadius: 0,
|
|
4513
|
+
});
|
|
4514
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4515
|
+
x: ctx.margin,
|
|
4516
|
+
y: 0.58,
|
|
4517
|
+
w: 0.6,
|
|
4518
|
+
h: 0.035,
|
|
4519
|
+
fill: { color: ctx.colors.accent },
|
|
4520
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4521
|
+
rectRadius: 0,
|
|
4522
|
+
});
|
|
4190
4523
|
}
|
|
4191
4524
|
if (theme === "editorial-forest") {
|
|
4192
|
-
// Forest
|
|
4525
|
+
// Forest inset frame + dual hairlines + larger blush orb.
|
|
4526
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4527
|
+
x: 0.26,
|
|
4528
|
+
y: 0.26,
|
|
4529
|
+
w: ctx.width - 0.52,
|
|
4530
|
+
h: ctx.height - 0.52,
|
|
4531
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4532
|
+
line: { color: ctx.colors.accent, width: 1.15 },
|
|
4533
|
+
rectRadius: 0.06,
|
|
4534
|
+
});
|
|
4193
4535
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4194
4536
|
x: ctx.margin,
|
|
4195
4537
|
y: 0.55,
|
|
@@ -4199,17 +4541,35 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4199
4541
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4200
4542
|
rectRadius: 0,
|
|
4201
4543
|
});
|
|
4544
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4545
|
+
x: ctx.margin,
|
|
4546
|
+
y: 0.68,
|
|
4547
|
+
w: 0.55,
|
|
4548
|
+
h: 0.015,
|
|
4549
|
+
fill: { color: ctx.colors.accent2, transparency: 25 },
|
|
4550
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
4551
|
+
rectRadius: 0,
|
|
4552
|
+
});
|
|
4202
4553
|
slide.addShape(ctx.shapeOval, {
|
|
4203
|
-
x: ctx.width - 1.
|
|
4204
|
-
y: ctx.height - 1.
|
|
4205
|
-
w:
|
|
4206
|
-
h:
|
|
4207
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
4554
|
+
x: ctx.width - 1.85,
|
|
4555
|
+
y: ctx.height - 1.75,
|
|
4556
|
+
w: 1.2,
|
|
4557
|
+
h: 1.2,
|
|
4558
|
+
fill: { color: ctx.colors.accent2, transparency: 32 },
|
|
4208
4559
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
4209
4560
|
});
|
|
4210
4561
|
}
|
|
4211
4562
|
if (theme === "signal") {
|
|
4212
|
-
//
|
|
4563
|
+
// Quiet briefing border + hairline + outline square + bottom gold stub.
|
|
4564
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4565
|
+
x: 0.22,
|
|
4566
|
+
y: 0.22,
|
|
4567
|
+
w: ctx.width - 0.44,
|
|
4568
|
+
h: ctx.height - 0.44,
|
|
4569
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4570
|
+
line: { color: ctx.colors.text, width: 1.1 },
|
|
4571
|
+
rectRadius: 0.04,
|
|
4572
|
+
});
|
|
4213
4573
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4214
4574
|
x: ctx.margin,
|
|
4215
4575
|
y: 0.55,
|
|
@@ -4228,6 +4588,15 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4228
4588
|
line: { color: ctx.colors.accent2, width: 1.25 },
|
|
4229
4589
|
rectRadius: 0,
|
|
4230
4590
|
});
|
|
4591
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4592
|
+
x: ctx.margin,
|
|
4593
|
+
y: ctx.height - 0.55,
|
|
4594
|
+
w: 0.95,
|
|
4595
|
+
h: 0.03,
|
|
4596
|
+
fill: { color: ctx.colors.accent2 },
|
|
4597
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
4598
|
+
rectRadius: 0,
|
|
4599
|
+
});
|
|
4231
4600
|
}
|
|
4232
4601
|
if (theme === "pastel-dreamy") {
|
|
4233
4602
|
// Soft cloud ovals + third mist blot (pastel-cloud).
|