@presentation-md/export 1.17.0 → 1.18.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 +301 -87
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -52,6 +52,26 @@ 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
|
+
}
|
|
55
75
|
if (opts.hero || opts.highlighted) {
|
|
56
76
|
return { color: ctx.colors.accent, width: opts.highlighted ? 1.75 : 1.5 };
|
|
57
77
|
}
|
|
@@ -76,23 +96,30 @@ function cardRadius(ctx) {
|
|
|
76
96
|
// stencil-tablet-earth cards: border-radius 24px ≈ 0.25"
|
|
77
97
|
if (ctx.themeName === "stencil-tablet")
|
|
78
98
|
return 0.25;
|
|
79
|
-
// retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95 / coral / peoples: square
|
|
99
|
+
// retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95 / coral / peoples / broadside / cobalt / mat / biennale / arcade: square
|
|
80
100
|
if (ctx.themeName === "retro-zine" ||
|
|
81
101
|
ctx.themeName === "block-frame" ||
|
|
82
102
|
ctx.themeName === "creative-mode" ||
|
|
83
103
|
ctx.themeName === "8-bit-orbit" ||
|
|
84
104
|
ctx.themeName === "retro-windows" ||
|
|
85
105
|
ctx.themeName === "coral" ||
|
|
86
|
-
ctx.themeName === "peoples-platform"
|
|
106
|
+
ctx.themeName === "peoples-platform" ||
|
|
107
|
+
ctx.themeName === "broadside" ||
|
|
108
|
+
ctx.themeName === "cobalt-grid" ||
|
|
109
|
+
ctx.themeName === "mat" ||
|
|
110
|
+
ctx.themeName === "biennale-yellow" ||
|
|
111
|
+
ctx.themeName === "retro-arcade") {
|
|
87
112
|
return 0;
|
|
88
113
|
}
|
|
89
|
-
// bold-signal-card / aero-bubble / pastel-geometry: plump
|
|
114
|
+
// bold-signal-card / aero-bubble / pastel-geometry / pastel-dreamy: plump
|
|
90
115
|
if (ctx.themeName === "bold-signal")
|
|
91
116
|
return 0.16;
|
|
92
117
|
if (ctx.themeName === "y2k-aero")
|
|
93
118
|
return 0.18;
|
|
94
119
|
if (ctx.themeName === "pastel-geometry")
|
|
95
120
|
return 0.18;
|
|
121
|
+
if (ctx.themeName === "pastel-dreamy")
|
|
122
|
+
return 0.22;
|
|
96
123
|
// scatterbrain-cork cards: border-radius 2px ≈ 0.02"
|
|
97
124
|
if (ctx.themeName === "scatterbrain")
|
|
98
125
|
return 0.02;
|
|
@@ -1861,41 +1888,71 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1861
1888
|
}
|
|
1862
1889
|
}
|
|
1863
1890
|
if (theme === "mat") {
|
|
1864
|
-
// Woodglow radials + hairline stubs (mat-woodglow
|
|
1891
|
+
// Woodglow radials + cream inset rim + hairline stubs (mat-woodglow).
|
|
1865
1892
|
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:
|
|
1893
|
+
x: ctx.width * 0.55,
|
|
1894
|
+
y: ctx.height * 0.48,
|
|
1895
|
+
w: ctx.width * 0.58,
|
|
1896
|
+
h: ctx.height * 0.68,
|
|
1897
|
+
fill: { color: ctx.colors.accent2, transparency: 68 },
|
|
1871
1898
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
1872
1899
|
});
|
|
1873
1900
|
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:
|
|
1901
|
+
x: ctx.width * 0.68,
|
|
1902
|
+
y: ctx.height * 0.62,
|
|
1903
|
+
w: ctx.width * 0.4,
|
|
1904
|
+
h: ctx.height * 0.48,
|
|
1905
|
+
fill: { color: ctx.colors.accent, transparency: 82 },
|
|
1879
1906
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1880
1907
|
});
|
|
1908
|
+
slide.addShape(ctx.shapeOval, {
|
|
1909
|
+
x: -ctx.width * 0.1,
|
|
1910
|
+
y: -ctx.height * 0.14,
|
|
1911
|
+
w: ctx.width * 0.4,
|
|
1912
|
+
h: ctx.height * 0.45,
|
|
1913
|
+
fill: { color: ctx.colors.accent, transparency: 86 },
|
|
1914
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
1915
|
+
});
|
|
1916
|
+
// Cream inset rim (HTML inset box-shadow 0 0 0 1px cream@8%).
|
|
1917
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1918
|
+
x: 0.1,
|
|
1919
|
+
y: 0.1,
|
|
1920
|
+
w: ctx.width - 0.2,
|
|
1921
|
+
h: ctx.height - 0.2,
|
|
1922
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
1923
|
+
line: { color: "F0E8D2", width: 1 },
|
|
1924
|
+
rectRadius: 0,
|
|
1925
|
+
});
|
|
1881
1926
|
slide.addShape(ctx.shapeRoundRect, {
|
|
1882
1927
|
x: ctx.margin,
|
|
1883
1928
|
y: ctx.height * 0.12,
|
|
1884
|
-
w: 0.
|
|
1885
|
-
h: 0.
|
|
1929
|
+
w: 0.42,
|
|
1930
|
+
h: 0.025,
|
|
1886
1931
|
fill: { color: ctx.colors.accent },
|
|
1887
1932
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1888
1933
|
rectRadius: 0,
|
|
1889
1934
|
});
|
|
1890
1935
|
slide.addShape(ctx.shapeRoundRect, {
|
|
1891
|
-
x: ctx.width - ctx.margin - 1.
|
|
1936
|
+
x: ctx.width - ctx.margin - 1.55,
|
|
1892
1937
|
y: ctx.height - 0.85,
|
|
1893
|
-
w: 1.
|
|
1894
|
-
h: 0.
|
|
1895
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
1938
|
+
w: 1.55,
|
|
1939
|
+
h: 0.045,
|
|
1940
|
+
fill: { color: ctx.colors.accent, transparency: 12 },
|
|
1896
1941
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1897
1942
|
rectRadius: 0,
|
|
1898
1943
|
});
|
|
1944
|
+
if (isHero) {
|
|
1945
|
+
// Mid-century accent block stub on heroes.
|
|
1946
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1947
|
+
x: ctx.width - ctx.margin - 0.95,
|
|
1948
|
+
y: ctx.margin * 0.9,
|
|
1949
|
+
w: 0.95,
|
|
1950
|
+
h: 0.95,
|
|
1951
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
1952
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
1953
|
+
rectRadius: 0,
|
|
1954
|
+
});
|
|
1955
|
+
}
|
|
1899
1956
|
}
|
|
1900
1957
|
if (theme === "electric-studio") {
|
|
1901
1958
|
// Hard slide frame (electric-studio-split border + shadow stand-in).
|
|
@@ -3684,69 +3741,139 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3684
3741
|
}
|
|
3685
3742
|
}
|
|
3686
3743
|
if (theme === "cobalt-grid") {
|
|
3687
|
-
// Blueprint-ish cobalt grid + corner hatch (cobalt-grid-paper).
|
|
3688
|
-
for (let i = 1; i <
|
|
3744
|
+
// Blueprint-ish cobalt grid + outer frame + diagonal corner hatch (cobalt-grid-paper).
|
|
3745
|
+
for (let i = 1; i < 18; i++) {
|
|
3689
3746
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3690
|
-
x: (ctx.width /
|
|
3747
|
+
x: (ctx.width / 18) * i,
|
|
3691
3748
|
y: 0,
|
|
3692
|
-
w: 0.
|
|
3749
|
+
w: 0.012,
|
|
3693
3750
|
h: ctx.height,
|
|
3694
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
3751
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
3695
3752
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3696
3753
|
rectRadius: 0,
|
|
3697
3754
|
});
|
|
3698
3755
|
}
|
|
3699
|
-
for (let i = 1; i <
|
|
3756
|
+
for (let i = 1; i < 11; i++) {
|
|
3700
3757
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3701
3758
|
x: 0,
|
|
3702
|
-
y: (ctx.height /
|
|
3759
|
+
y: (ctx.height / 11) * i,
|
|
3703
3760
|
w: ctx.width,
|
|
3704
|
-
h: 0.
|
|
3705
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
3761
|
+
h: 0.012,
|
|
3762
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
3706
3763
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3707
3764
|
rectRadius: 0,
|
|
3708
3765
|
});
|
|
3709
3766
|
}
|
|
3767
|
+
// Corner hatch wash + diagonal stubs (HTML ::before top-left gradients).
|
|
3710
3768
|
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:
|
|
3769
|
+
x: ctx.width * 0.55,
|
|
3770
|
+
y: ctx.height * 0.52,
|
|
3771
|
+
w: ctx.width * 0.45,
|
|
3772
|
+
h: ctx.height * 0.48,
|
|
3773
|
+
fill: { color: ctx.colors.accent, transparency: 88 },
|
|
3716
3774
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3717
3775
|
rectRadius: 0,
|
|
3718
3776
|
});
|
|
3777
|
+
for (let i = 0; i < 7; i++) {
|
|
3778
|
+
const t = i / 6;
|
|
3779
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3780
|
+
x: ctx.width * (0.58 + t * 0.38),
|
|
3781
|
+
y: ctx.height * (0.95 - t * 0.42),
|
|
3782
|
+
w: 0.9,
|
|
3783
|
+
h: 0.018,
|
|
3784
|
+
fill: { color: ctx.colors.accent, transparency: 48 },
|
|
3785
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3786
|
+
rectRadius: 0,
|
|
3787
|
+
});
|
|
3788
|
+
}
|
|
3789
|
+
// Quiet cobalt outer frame (HTML border accent@18%).
|
|
3790
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3791
|
+
x: 0.08,
|
|
3792
|
+
y: 0.08,
|
|
3793
|
+
w: ctx.width - 0.16,
|
|
3794
|
+
h: ctx.height - 0.16,
|
|
3795
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3796
|
+
line: { color: ctx.colors.accent, width: 1.1 },
|
|
3797
|
+
rectRadius: 0,
|
|
3798
|
+
});
|
|
3719
3799
|
}
|
|
3720
3800
|
if (theme === "retro-arcade") {
|
|
3721
|
-
//
|
|
3722
|
-
for (let i = 0; i <
|
|
3801
|
+
// Dense scanlines + dual neon rail + rim + floor glow + neon orbs (scanline-neon).
|
|
3802
|
+
for (let i = 0; i < 14; i++) {
|
|
3723
3803
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3724
3804
|
x: 0,
|
|
3725
|
-
y: 0.
|
|
3805
|
+
y: 0.18 + i * 0.52,
|
|
3726
3806
|
w: ctx.width,
|
|
3727
|
-
h: 0.
|
|
3728
|
-
fill: { color: "000000", transparency:
|
|
3807
|
+
h: 0.028,
|
|
3808
|
+
fill: { color: "000000", transparency: 74 },
|
|
3729
3809
|
line: { color: "000000", width: 0 },
|
|
3730
3810
|
rectRadius: 0,
|
|
3731
3811
|
});
|
|
3732
3812
|
}
|
|
3813
|
+
// Magenta → cyan top rail (HTML linear-gradient accent/accent2/accent).
|
|
3733
3814
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3734
3815
|
x: 0,
|
|
3735
3816
|
y: 0,
|
|
3736
|
-
w: ctx.width,
|
|
3737
|
-
h: 0.
|
|
3817
|
+
w: ctx.width * 0.5,
|
|
3818
|
+
h: 0.07,
|
|
3738
3819
|
fill: { color: ctx.colors.accent },
|
|
3739
3820
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3740
3821
|
rectRadius: 0,
|
|
3741
3822
|
});
|
|
3823
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3824
|
+
x: ctx.width * 0.5,
|
|
3825
|
+
y: 0,
|
|
3826
|
+
w: ctx.width * 0.5,
|
|
3827
|
+
h: 0.07,
|
|
3828
|
+
fill: { color: ctx.colors.accent2 },
|
|
3829
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3830
|
+
rectRadius: 0,
|
|
3831
|
+
});
|
|
3742
3832
|
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:
|
|
3833
|
+
x: ctx.width - 2.15,
|
|
3834
|
+
y: -0.45,
|
|
3835
|
+
w: 2.4,
|
|
3836
|
+
h: 2.4,
|
|
3837
|
+
fill: { color: ctx.colors.accent2, transparency: 66 },
|
|
3748
3838
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
3749
3839
|
});
|
|
3840
|
+
slide.addShape(ctx.shapeOval, {
|
|
3841
|
+
x: -0.7,
|
|
3842
|
+
y: ctx.height - 1.9,
|
|
3843
|
+
w: 2.1,
|
|
3844
|
+
h: 2.1,
|
|
3845
|
+
fill: { color: ctx.colors.accent, transparency: 72 },
|
|
3846
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3847
|
+
});
|
|
3848
|
+
// Cyan rim (HTML neon border feel).
|
|
3849
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3850
|
+
x: 0.08,
|
|
3851
|
+
y: 0.08,
|
|
3852
|
+
w: ctx.width - 0.16,
|
|
3853
|
+
h: ctx.height - 0.16,
|
|
3854
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3855
|
+
line: { color: ctx.colors.accent2, width: 1.35 },
|
|
3856
|
+
rectRadius: 0,
|
|
3857
|
+
});
|
|
3858
|
+
// Floor neon inset glow.
|
|
3859
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3860
|
+
x: 0,
|
|
3861
|
+
y: ctx.height - 0.42,
|
|
3862
|
+
w: ctx.width,
|
|
3863
|
+
h: 0.42,
|
|
3864
|
+
fill: { color: ctx.colors.accent, transparency: isHero ? 82 : 88 },
|
|
3865
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3866
|
+
rectRadius: 0,
|
|
3867
|
+
});
|
|
3868
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3869
|
+
x: 0,
|
|
3870
|
+
y: ctx.height - 0.08,
|
|
3871
|
+
w: ctx.width,
|
|
3872
|
+
h: 0.08,
|
|
3873
|
+
fill: { color: ctx.colors.accent2, transparency: isHero ? 35 : 48 },
|
|
3874
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3875
|
+
rectRadius: 0,
|
|
3876
|
+
});
|
|
3750
3877
|
}
|
|
3751
3878
|
if (theme === "brutalist-mono") {
|
|
3752
3879
|
// Dense mono grid + hard outer frame + 8px ink offset shadow (brutalist-grid).
|
|
@@ -3909,32 +4036,71 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3909
4036
|
});
|
|
3910
4037
|
}
|
|
3911
4038
|
if (theme === "biennale-yellow") {
|
|
3912
|
-
//
|
|
4039
|
+
// Dense sun orbs + quiet indigo frame + top hairline + coral stub (biennale-yellow-sun).
|
|
3913
4040
|
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:
|
|
4041
|
+
x: ctx.width * 0.55,
|
|
4042
|
+
y: -ctx.height * 0.22,
|
|
4043
|
+
w: ctx.width * 0.58,
|
|
4044
|
+
h: ctx.height * 0.62,
|
|
4045
|
+
fill: { color: ctx.colors.accent, transparency: 28 },
|
|
3919
4046
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3920
4047
|
});
|
|
3921
4048
|
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:
|
|
4049
|
+
x: ctx.width * 0.66,
|
|
4050
|
+
y: ctx.height * 0.04,
|
|
4051
|
+
w: ctx.width * 0.34,
|
|
4052
|
+
h: ctx.height * 0.38,
|
|
4053
|
+
fill: { color: "F8F39B", transparency: 40 },
|
|
3927
4054
|
line: { color: "F8F39B", width: 0 },
|
|
3928
4055
|
});
|
|
4056
|
+
slide.addShape(ctx.shapeOval, {
|
|
4057
|
+
x: ctx.width * 0.78,
|
|
4058
|
+
y: -0.2,
|
|
4059
|
+
w: ctx.width * 0.28,
|
|
4060
|
+
h: ctx.height * 0.28,
|
|
4061
|
+
fill: { color: ctx.colors.accent, transparency: 55 },
|
|
4062
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4063
|
+
});
|
|
4064
|
+
// Quiet indigo outer frame (HTML border text@18%).
|
|
4065
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4066
|
+
x: 0.1,
|
|
4067
|
+
y: 0.1,
|
|
4068
|
+
w: ctx.width - 0.2,
|
|
4069
|
+
h: ctx.height - 0.2,
|
|
4070
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4071
|
+
line: { color: ctx.colors.text, width: 1.1 },
|
|
4072
|
+
rectRadius: 0,
|
|
4073
|
+
});
|
|
3929
4074
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3930
4075
|
x: ctx.margin,
|
|
3931
4076
|
y: 0.55,
|
|
3932
4077
|
w: ctx.width - ctx.margin * 2,
|
|
3933
|
-
h: 0.
|
|
4078
|
+
h: 0.018,
|
|
3934
4079
|
fill: { color: ctx.colors.text },
|
|
3935
4080
|
line: { color: ctx.colors.text, width: 0 },
|
|
3936
4081
|
rectRadius: 0,
|
|
3937
4082
|
});
|
|
4083
|
+
// Coral accent stub (accent2) — gallery counterweight to the sun.
|
|
4084
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4085
|
+
x: ctx.width - ctx.margin - 1.15,
|
|
4086
|
+
y: ctx.height - 0.72,
|
|
4087
|
+
w: 1.15,
|
|
4088
|
+
h: 0.035,
|
|
4089
|
+
fill: { color: ctx.colors.accent2, transparency: 15 },
|
|
4090
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
4091
|
+
rectRadius: 0,
|
|
4092
|
+
});
|
|
4093
|
+
if (isHero) {
|
|
4094
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4095
|
+
x: ctx.margin,
|
|
4096
|
+
y: ctx.height - 0.72,
|
|
4097
|
+
w: 0.85,
|
|
4098
|
+
h: 0.035,
|
|
4099
|
+
fill: { color: ctx.colors.text, transparency: 35 },
|
|
4100
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4101
|
+
rectRadius: 0,
|
|
4102
|
+
});
|
|
4103
|
+
}
|
|
3938
4104
|
}
|
|
3939
4105
|
if (theme === "scatterbrain") {
|
|
3940
4106
|
// Cork wash + soft ink offset shadow + quiet frame + sticky notes + pins;
|
|
@@ -4502,42 +4668,55 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4502
4668
|
});
|
|
4503
4669
|
}
|
|
4504
4670
|
if (theme === "broadside") {
|
|
4505
|
-
// Fire-orange left rail + corner
|
|
4671
|
+
// Fire-orange left rail + corner blast + hard ink frame + always-on top stub
|
|
4672
|
+
// (broadside-fire). Cards get hard ink strokes via cardStroke.
|
|
4506
4673
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4507
4674
|
x: 0.1,
|
|
4508
4675
|
y: 0.1,
|
|
4509
4676
|
w: ctx.width - 0.2,
|
|
4510
4677
|
h: ctx.height - 0.2,
|
|
4511
4678
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4512
|
-
line: { color: ctx.colors.text, width: 1.
|
|
4679
|
+
line: { color: ctx.colors.text, width: 1.75 },
|
|
4513
4680
|
rectRadius: 0,
|
|
4514
4681
|
});
|
|
4682
|
+
// HTML ::before is 10px ≈ 0.14".
|
|
4515
4683
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4516
4684
|
x: 0,
|
|
4517
4685
|
y: 0,
|
|
4518
|
-
w: 0.
|
|
4686
|
+
w: 0.14,
|
|
4519
4687
|
h: ctx.height,
|
|
4520
4688
|
fill: { color: ctx.colors.accent },
|
|
4521
4689
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4522
4690
|
rectRadius: 0,
|
|
4523
4691
|
});
|
|
4524
4692
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4525
|
-
x: ctx.width - 1.
|
|
4526
|
-
y: ctx.height - 1.
|
|
4527
|
-
w: 1.
|
|
4528
|
-
h: 1.
|
|
4693
|
+
x: ctx.width - 1.7,
|
|
4694
|
+
y: ctx.height - 1.7,
|
|
4695
|
+
w: 1.85,
|
|
4696
|
+
h: 1.85,
|
|
4697
|
+
fill: { color: ctx.colors.accent },
|
|
4698
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4699
|
+
rectRadius: 0,
|
|
4700
|
+
});
|
|
4701
|
+
// Always-on top stub (poster energy on body slides too).
|
|
4702
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4703
|
+
x: ctx.margin + 0.08,
|
|
4704
|
+
y: 0.42,
|
|
4705
|
+
w: isHero ? 1.35 : 0.95,
|
|
4706
|
+
h: 0.065,
|
|
4529
4707
|
fill: { color: ctx.colors.accent },
|
|
4530
4708
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4531
4709
|
rectRadius: 0,
|
|
4532
4710
|
});
|
|
4533
4711
|
if (isHero) {
|
|
4712
|
+
// Second fire bar for manifesto covers.
|
|
4534
4713
|
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.
|
|
4714
|
+
x: ctx.margin + 0.08,
|
|
4715
|
+
y: 0.55,
|
|
4716
|
+
w: 0.55,
|
|
4717
|
+
h: 0.04,
|
|
4718
|
+
fill: { color: ctx.colors.text },
|
|
4719
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4541
4720
|
rectRadius: 0,
|
|
4542
4721
|
});
|
|
4543
4722
|
}
|
|
@@ -5362,31 +5541,66 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
5362
5541
|
});
|
|
5363
5542
|
}
|
|
5364
5543
|
if (theme === "pastel-dreamy") {
|
|
5365
|
-
// Soft cloud ovals +
|
|
5544
|
+
// Soft cloud ovals + plump inset frame + soft shadow stub (pastel-cloud).
|
|
5545
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5546
|
+
x: 0.38,
|
|
5547
|
+
y: 0.36,
|
|
5548
|
+
w: ctx.width - 0.5,
|
|
5549
|
+
h: ctx.height - 0.5,
|
|
5550
|
+
fill: { color: ctx.colors.text, transparency: 94 },
|
|
5551
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
5552
|
+
rectRadius: 0.24,
|
|
5553
|
+
});
|
|
5366
5554
|
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:
|
|
5555
|
+
x: -ctx.width * 0.08,
|
|
5556
|
+
y: -ctx.height * 0.12,
|
|
5557
|
+
w: ctx.width * 0.5,
|
|
5558
|
+
h: ctx.height * 0.5,
|
|
5559
|
+
fill: { color: ctx.colors.accent2, transparency: 70 },
|
|
5372
5560
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
5373
5561
|
});
|
|
5374
5562
|
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:
|
|
5563
|
+
x: ctx.width * 0.52,
|
|
5564
|
+
y: -ctx.height * 0.02,
|
|
5565
|
+
w: ctx.width * 0.48,
|
|
5566
|
+
h: ctx.height * 0.45,
|
|
5567
|
+
fill: { color: ctx.colors.accent, transparency: 74 },
|
|
5380
5568
|
line: { color: ctx.colors.accent, width: 0 },
|
|
5381
5569
|
});
|
|
5382
5570
|
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:
|
|
5571
|
+
x: ctx.width * 0.3,
|
|
5572
|
+
y: ctx.height * 0.58,
|
|
5573
|
+
w: ctx.width * 0.48,
|
|
5574
|
+
h: ctx.height * 0.48,
|
|
5575
|
+
fill: { color: ctx.colors.accent2, transparency: 84 },
|
|
5388
5576
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
5389
5577
|
});
|
|
5578
|
+
slide.addShape(ctx.shapeOval, {
|
|
5579
|
+
x: ctx.width * 0.72,
|
|
5580
|
+
y: ctx.height * 0.7,
|
|
5581
|
+
w: ctx.width * 0.32,
|
|
5582
|
+
h: ctx.height * 0.35,
|
|
5583
|
+
fill: { color: ctx.colors.accent, transparency: 86 },
|
|
5584
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
5585
|
+
});
|
|
5586
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5587
|
+
x: 0.22,
|
|
5588
|
+
y: 0.22,
|
|
5589
|
+
w: ctx.width - 0.44,
|
|
5590
|
+
h: ctx.height - 0.44,
|
|
5591
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
5592
|
+
line: { color: ctx.colors.border, width: 1 },
|
|
5593
|
+
rectRadius: 0.22,
|
|
5594
|
+
});
|
|
5595
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5596
|
+
x: ctx.margin,
|
|
5597
|
+
y: ctx.height - 0.58,
|
|
5598
|
+
w: 0.9,
|
|
5599
|
+
h: 0.03,
|
|
5600
|
+
fill: { color: ctx.colors.accent, transparency: 25 },
|
|
5601
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
5602
|
+
rectRadius: 0.015,
|
|
5603
|
+
});
|
|
5390
5604
|
}
|
|
5391
5605
|
if (theme === "vellum") {
|
|
5392
5606
|
// Soft colorfield wash + teal accent orb (vellum-colorfield).
|