@presentation-md/export 1.13.2 → 1.15.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 +358 -123
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -11,7 +11,18 @@ 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
|
+
// capsule-pills cards: border-radius 2rem ≈ 0.29"
|
|
20
|
+
if (ctx.themeName === "capsule")
|
|
21
|
+
return 0.29;
|
|
22
|
+
// long-table-supper cards: border-radius 1.25rem ≈ 0.21"
|
|
23
|
+
if (ctx.themeName === "long-table")
|
|
24
|
+
return 0.21;
|
|
25
|
+
return 0.06;
|
|
15
26
|
}
|
|
16
27
|
/**
|
|
17
28
|
* Pulse (kinetic-wrapped) eyebrows render as hard chips in HTML —
|
|
@@ -1863,7 +1874,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1863
1874
|
}
|
|
1864
1875
|
}
|
|
1865
1876
|
if (theme === "soft-editorial") {
|
|
1866
|
-
// Soft sage wash + blush candy
|
|
1877
|
+
// Soft sage wash + hero blush/lemon candy + plump inset frame + soft shadow stub.
|
|
1878
|
+
// Matches soft-editorial-paper: blush ::after is hero-gated in HTML.
|
|
1867
1879
|
slide.addShape(ctx.shapeOval, {
|
|
1868
1880
|
x: ctx.width * 0.55,
|
|
1869
1881
|
y: -ctx.height * 0.15,
|
|
@@ -1872,14 +1884,15 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1872
1884
|
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
1873
1885
|
line: { color: ctx.colors.accent, width: 0 },
|
|
1874
1886
|
});
|
|
1887
|
+
// Soft paper shadow stand-in (HTML box-shadow 0 18px 48px).
|
|
1875
1888
|
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.
|
|
1889
|
+
x: 0.42,
|
|
1890
|
+
y: 0.4,
|
|
1891
|
+
w: ctx.width - 0.56,
|
|
1892
|
+
h: ctx.height - 0.56,
|
|
1893
|
+
fill: { color: ctx.colors.text, transparency: 94 },
|
|
1894
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
1895
|
+
rectRadius: 0.29,
|
|
1883
1896
|
});
|
|
1884
1897
|
slide.addShape(ctx.shapeRoundRect, {
|
|
1885
1898
|
x: 0.28,
|
|
@@ -1887,9 +1900,52 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1887
1900
|
w: ctx.width - 0.56,
|
|
1888
1901
|
h: ctx.height - 0.56,
|
|
1889
1902
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
1890
|
-
line: { color: ctx.colors.border, width: 1
|
|
1891
|
-
rectRadius: 0.
|
|
1903
|
+
line: { color: ctx.colors.border, width: 1 },
|
|
1904
|
+
rectRadius: 0.29,
|
|
1892
1905
|
});
|
|
1906
|
+
if (isHero) {
|
|
1907
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1908
|
+
x: ctx.width - 2.35,
|
|
1909
|
+
y: 0.45,
|
|
1910
|
+
w: 1.7,
|
|
1911
|
+
h: 1.7,
|
|
1912
|
+
fill: { color: ctx.colors.accent2, transparency: 42 },
|
|
1913
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
1914
|
+
rectRadius: 0.29,
|
|
1915
|
+
});
|
|
1916
|
+
// Lemon candy secondary (theme description; capsule-style pastel).
|
|
1917
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1918
|
+
x: ctx.width - 3.05,
|
|
1919
|
+
y: 1.85,
|
|
1920
|
+
w: 0.72,
|
|
1921
|
+
h: 0.72,
|
|
1922
|
+
fill: { color: "E8D5A3", transparency: 28 },
|
|
1923
|
+
line: { color: "E8D5A3", width: 0 },
|
|
1924
|
+
rectRadius: 0.16,
|
|
1925
|
+
});
|
|
1926
|
+
// Lilac accent chip.
|
|
1927
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1928
|
+
x: ctx.width - 1.55,
|
|
1929
|
+
y: 2.35,
|
|
1930
|
+
w: 0.48,
|
|
1931
|
+
h: 0.48,
|
|
1932
|
+
fill: { color: "C5B5E0", transparency: 35 },
|
|
1933
|
+
line: { color: "C5B5E0", width: 0 },
|
|
1934
|
+
rectRadius: 0.12,
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1937
|
+
else {
|
|
1938
|
+
// Quiet magazine hairline when blush candy is off.
|
|
1939
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
1940
|
+
x: ctx.margin,
|
|
1941
|
+
y: 0.55,
|
|
1942
|
+
w: 0.95,
|
|
1943
|
+
h: 0.02,
|
|
1944
|
+
fill: { color: ctx.colors.accent, transparency: 30 },
|
|
1945
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
1946
|
+
rectRadius: 0,
|
|
1947
|
+
});
|
|
1948
|
+
}
|
|
1893
1949
|
slide.addShape(ctx.shapeRoundRect, {
|
|
1894
1950
|
x: ctx.margin,
|
|
1895
1951
|
y: ctx.height - 0.55,
|
|
@@ -2939,7 +2995,23 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2939
2995
|
});
|
|
2940
2996
|
}
|
|
2941
2997
|
if (theme === "heritage-editorial") {
|
|
2942
|
-
//
|
|
2998
|
+
// Parchment wash + quiet hairlines + mid stub (heritage-wash).
|
|
2999
|
+
slide.addShape(ctx.shapeOval, {
|
|
3000
|
+
x: -ctx.width * 0.15,
|
|
3001
|
+
y: -ctx.height * 0.25,
|
|
3002
|
+
w: ctx.width * 0.85,
|
|
3003
|
+
h: ctx.height * 0.7,
|
|
3004
|
+
fill: { color: ctx.colors.bg2, transparency: 35 },
|
|
3005
|
+
line: { color: ctx.colors.bg2, width: 0 },
|
|
3006
|
+
});
|
|
3007
|
+
slide.addShape(ctx.shapeOval, {
|
|
3008
|
+
x: ctx.width * 0.45,
|
|
3009
|
+
y: ctx.height * 0.35,
|
|
3010
|
+
w: ctx.width * 0.7,
|
|
3011
|
+
h: ctx.height * 0.85,
|
|
3012
|
+
fill: { color: ctx.colors.accent2, transparency: 88 },
|
|
3013
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3014
|
+
});
|
|
2943
3015
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2944
3016
|
x: ctx.margin,
|
|
2945
3017
|
y: 0.6,
|
|
@@ -3241,32 +3313,82 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3241
3313
|
}
|
|
3242
3314
|
}
|
|
3243
3315
|
if (theme === "capsule") {
|
|
3244
|
-
//
|
|
3316
|
+
// Plump frame + soft shadow + quiet pastel blots on all slides;
|
|
3317
|
+
// hero-gated coral pill + lime circles (capsule-pills HTML ::before/::after).
|
|
3318
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3319
|
+
x: 0.38,
|
|
3320
|
+
y: 0.36,
|
|
3321
|
+
w: ctx.width - 0.48,
|
|
3322
|
+
h: ctx.height - 0.48,
|
|
3323
|
+
fill: { color: ctx.colors.text, transparency: 93 },
|
|
3324
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3325
|
+
rectRadius: 0.29,
|
|
3326
|
+
});
|
|
3245
3327
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3246
|
-
x:
|
|
3247
|
-
y: 0.
|
|
3248
|
-
w:
|
|
3249
|
-
h: 0.
|
|
3250
|
-
fill: { color: ctx.colors.
|
|
3251
|
-
line: { color: ctx.colors.border, width:
|
|
3252
|
-
rectRadius: 0.
|
|
3328
|
+
x: 0.18,
|
|
3329
|
+
y: 0.18,
|
|
3330
|
+
w: ctx.width - 0.36,
|
|
3331
|
+
h: ctx.height - 0.36,
|
|
3332
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3333
|
+
line: { color: ctx.colors.border, width: 2 },
|
|
3334
|
+
rectRadius: 0.29,
|
|
3253
3335
|
});
|
|
3336
|
+
// Quiet lavender / sky radial blots (HTML --slide-bg candy).
|
|
3254
3337
|
slide.addShape(ctx.shapeOval, {
|
|
3255
|
-
x: 0.
|
|
3256
|
-
y: ctx.height - 1.
|
|
3257
|
-
w: 0.
|
|
3258
|
-
h: 0.
|
|
3259
|
-
fill: { color:
|
|
3260
|
-
line: { color:
|
|
3338
|
+
x: 0.35,
|
|
3339
|
+
y: ctx.height - 1.85,
|
|
3340
|
+
w: 0.72,
|
|
3341
|
+
h: 0.72,
|
|
3342
|
+
fill: { color: "C5B5E0", transparency: 42 },
|
|
3343
|
+
line: { color: "C5B5E0", width: 0 },
|
|
3261
3344
|
});
|
|
3262
3345
|
slide.addShape(ctx.shapeOval, {
|
|
3263
|
-
x: ctx.width
|
|
3264
|
-
y:
|
|
3265
|
-
w: 0.
|
|
3266
|
-
h: 0.
|
|
3267
|
-
fill: { color: "
|
|
3268
|
-
line: { color:
|
|
3346
|
+
x: ctx.width - 1.55,
|
|
3347
|
+
y: 0.55,
|
|
3348
|
+
w: 0.58,
|
|
3349
|
+
h: 0.58,
|
|
3350
|
+
fill: { color: "8BB4F7", transparency: 38 },
|
|
3351
|
+
line: { color: "8BB4F7", width: 0 },
|
|
3269
3352
|
});
|
|
3353
|
+
if (isHero) {
|
|
3354
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3355
|
+
x: ctx.width - 2.15,
|
|
3356
|
+
y: 0.5,
|
|
3357
|
+
w: 1.45,
|
|
3358
|
+
h: 0.42,
|
|
3359
|
+
fill: { color: ctx.colors.accent },
|
|
3360
|
+
line: { color: ctx.colors.border, width: 2 },
|
|
3361
|
+
rectRadius: 0.21,
|
|
3362
|
+
});
|
|
3363
|
+
slide.addShape(ctx.shapeOval, {
|
|
3364
|
+
x: 0.5,
|
|
3365
|
+
y: ctx.height - 1.6,
|
|
3366
|
+
w: 0.95,
|
|
3367
|
+
h: 0.95,
|
|
3368
|
+
fill: { color: ctx.colors.accent2 },
|
|
3369
|
+
line: { color: ctx.colors.border, width: 2 },
|
|
3370
|
+
});
|
|
3371
|
+
slide.addShape(ctx.shapeOval, {
|
|
3372
|
+
x: ctx.width * 0.78,
|
|
3373
|
+
y: ctx.height * 0.72,
|
|
3374
|
+
w: 0.55,
|
|
3375
|
+
h: 0.55,
|
|
3376
|
+
fill: { color: "C4D94E", transparency: 18 },
|
|
3377
|
+
line: { color: ctx.colors.border, width: 1.5 },
|
|
3378
|
+
});
|
|
3379
|
+
}
|
|
3380
|
+
else {
|
|
3381
|
+
// Quiet accent stub when loud pills are off.
|
|
3382
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3383
|
+
x: ctx.margin,
|
|
3384
|
+
y: ctx.height - 0.58,
|
|
3385
|
+
w: 0.7,
|
|
3386
|
+
h: 0.03,
|
|
3387
|
+
fill: { color: ctx.colors.accent },
|
|
3388
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3389
|
+
rectRadius: 0.015,
|
|
3390
|
+
});
|
|
3391
|
+
}
|
|
3270
3392
|
}
|
|
3271
3393
|
if (theme === "cobalt-grid") {
|
|
3272
3394
|
// Blueprint-ish cobalt grid + corner hatch (cobalt-grid-paper).
|
|
@@ -3877,33 +3999,48 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3877
3999
|
}
|
|
3878
4000
|
}
|
|
3879
4001
|
if (theme === "pink-script") {
|
|
3880
|
-
//
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
4002
|
+
// Dual inset frames + accent hairline; hero wash (pink-script-afterhours).
|
|
4003
|
+
if (isHero) {
|
|
4004
|
+
slide.addShape(ctx.shapeOval, {
|
|
4005
|
+
x: ctx.width * 0.55,
|
|
4006
|
+
y: -ctx.height * 0.2,
|
|
4007
|
+
w: ctx.width * 0.55,
|
|
4008
|
+
h: ctx.height * 0.55,
|
|
4009
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
4010
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4011
|
+
});
|
|
4012
|
+
}
|
|
4013
|
+
// Outer accent inset (HTML box-shadow inset accent).
|
|
3889
4014
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3890
|
-
x: 0.
|
|
3891
|
-
y: 0.
|
|
3892
|
-
w: ctx.width - 0.
|
|
3893
|
-
h: ctx.height - 0.
|
|
4015
|
+
x: 0.22,
|
|
4016
|
+
y: 0.22,
|
|
4017
|
+
w: ctx.width - 0.44,
|
|
4018
|
+
h: ctx.height - 0.44,
|
|
3894
4019
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3895
|
-
line: { color:
|
|
4020
|
+
line: { color: ctx.colors.accent, width: 1.1 },
|
|
3896
4021
|
rectRadius: 0,
|
|
3897
4022
|
});
|
|
4023
|
+
// Inner light inset ring.
|
|
3898
4024
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3899
|
-
x:
|
|
3900
|
-
y:
|
|
3901
|
-
w:
|
|
3902
|
-
h: 0.
|
|
3903
|
-
fill: { color: ctx.colors.
|
|
3904
|
-
line: { color:
|
|
4025
|
+
x: 0.42,
|
|
4026
|
+
y: 0.42,
|
|
4027
|
+
w: ctx.width - 0.84,
|
|
4028
|
+
h: ctx.height - 0.84,
|
|
4029
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4030
|
+
line: { color: "F5EDF1", width: 1 },
|
|
3905
4031
|
rectRadius: 0,
|
|
3906
4032
|
});
|
|
4033
|
+
if (isHero) {
|
|
4034
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4035
|
+
x: ctx.width - 2.0,
|
|
4036
|
+
y: ctx.height - 0.85,
|
|
4037
|
+
w: 1.35,
|
|
4038
|
+
h: 0.04,
|
|
4039
|
+
fill: { color: ctx.colors.accent },
|
|
4040
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4041
|
+
rectRadius: 0,
|
|
4042
|
+
});
|
|
4043
|
+
}
|
|
3907
4044
|
}
|
|
3908
4045
|
if (theme === "retro-windows") {
|
|
3909
4046
|
// Win95 title bar + window buttons + beveled frame (retro-windows-chrome).
|
|
@@ -3970,30 +4107,59 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3970
4107
|
});
|
|
3971
4108
|
}
|
|
3972
4109
|
if (theme === "emerald-editorial") {
|
|
3973
|
-
//
|
|
4110
|
+
// True double masthead rules + dual inset frame (emerald-editorial-masthead).
|
|
3974
4111
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3975
|
-
x: 0.
|
|
3976
|
-
y: 0.
|
|
3977
|
-
w: ctx.width - 0.
|
|
3978
|
-
h: ctx.height - 0.
|
|
4112
|
+
x: 0.18,
|
|
4113
|
+
y: 0.18,
|
|
4114
|
+
w: ctx.width - 0.36,
|
|
4115
|
+
h: ctx.height - 0.36,
|
|
3979
4116
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3980
|
-
line: { color: ctx.colors.text, width: 1.
|
|
4117
|
+
line: { color: ctx.colors.text, width: 1.25 },
|
|
3981
4118
|
rectRadius: 0,
|
|
3982
4119
|
});
|
|
4120
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4121
|
+
x: 0.32,
|
|
4122
|
+
y: 0.32,
|
|
4123
|
+
w: ctx.width - 0.64,
|
|
4124
|
+
h: ctx.height - 0.64,
|
|
4125
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4126
|
+
line: { color: ctx.colors.text, width: 0.75 },
|
|
4127
|
+
rectRadius: 0,
|
|
4128
|
+
});
|
|
4129
|
+
// Top double rule (1px / gap / 1px).
|
|
3983
4130
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3984
4131
|
x: ctx.width * 0.12,
|
|
3985
4132
|
y: ctx.height * 0.14,
|
|
3986
4133
|
w: ctx.width * 0.76,
|
|
3987
|
-
h: 0.
|
|
4134
|
+
h: 0.012,
|
|
4135
|
+
fill: { color: ctx.colors.text },
|
|
4136
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4137
|
+
rectRadius: 0,
|
|
4138
|
+
});
|
|
4139
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4140
|
+
x: ctx.width * 0.12,
|
|
4141
|
+
y: ctx.height * 0.14 + 0.028,
|
|
4142
|
+
w: ctx.width * 0.76,
|
|
4143
|
+
h: 0.012,
|
|
3988
4144
|
fill: { color: ctx.colors.text },
|
|
3989
4145
|
line: { color: ctx.colors.text, width: 0 },
|
|
3990
4146
|
rectRadius: 0,
|
|
3991
4147
|
});
|
|
4148
|
+
// Bottom double rule.
|
|
3992
4149
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3993
4150
|
x: ctx.width * 0.12,
|
|
3994
4151
|
y: ctx.height * 0.86,
|
|
3995
4152
|
w: ctx.width * 0.76,
|
|
3996
|
-
h: 0.
|
|
4153
|
+
h: 0.012,
|
|
4154
|
+
fill: { color: ctx.colors.text },
|
|
4155
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4156
|
+
rectRadius: 0,
|
|
4157
|
+
});
|
|
4158
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4159
|
+
x: ctx.width * 0.12,
|
|
4160
|
+
y: ctx.height * 0.86 + 0.028,
|
|
4161
|
+
w: ctx.width * 0.76,
|
|
4162
|
+
h: 0.012,
|
|
3997
4163
|
fill: { color: ctx.colors.text },
|
|
3998
4164
|
line: { color: ctx.colors.text, width: 0 },
|
|
3999
4165
|
rectRadius: 0,
|
|
@@ -4044,94 +4210,163 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4044
4210
|
});
|
|
4045
4211
|
}
|
|
4046
4212
|
if (theme === "long-table") {
|
|
4047
|
-
//
|
|
4048
|
-
|
|
4049
|
-
|
|
4213
|
+
// Dense speckles + rust border on all; hero-gated outline pill + hairline
|
|
4214
|
+
// (long-table-supper HTML ::before/::after are title/closing only).
|
|
4215
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4216
|
+
x: 0.12,
|
|
4217
|
+
y: 0.12,
|
|
4218
|
+
w: ctx.width - 0.24,
|
|
4219
|
+
h: ctx.height - 0.24,
|
|
4220
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4221
|
+
line: { color: ctx.colors.accent, width: 1.6 },
|
|
4222
|
+
rectRadius: 0,
|
|
4223
|
+
});
|
|
4224
|
+
for (let i = 0; i < 10; i++) {
|
|
4225
|
+
for (let j = 0; j < 6; j++) {
|
|
4050
4226
|
slide.addShape(ctx.shapeOval, {
|
|
4051
|
-
x: 0.
|
|
4052
|
-
y: 0.
|
|
4053
|
-
w: 0.
|
|
4054
|
-
h: 0.
|
|
4055
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
4227
|
+
x: 0.35 + i * 1.28,
|
|
4228
|
+
y: 0.42 + j * 0.95,
|
|
4229
|
+
w: 0.055,
|
|
4230
|
+
h: 0.055,
|
|
4231
|
+
fill: { color: ctx.colors.accent, transparency: 74 },
|
|
4056
4232
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4057
4233
|
});
|
|
4058
4234
|
}
|
|
4059
4235
|
}
|
|
4236
|
+
if (isHero) {
|
|
4237
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4238
|
+
x: ctx.width - 1.9,
|
|
4239
|
+
y: 0.5,
|
|
4240
|
+
w: 1.2,
|
|
4241
|
+
h: 0.42,
|
|
4242
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4243
|
+
line: { color: ctx.colors.accent, width: 1.75 },
|
|
4244
|
+
rectRadius: 0.21,
|
|
4245
|
+
});
|
|
4246
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4247
|
+
x: 0.5,
|
|
4248
|
+
y: ctx.height - 0.72,
|
|
4249
|
+
w: 0.85,
|
|
4250
|
+
h: 0.03,
|
|
4251
|
+
fill: { color: ctx.colors.accent },
|
|
4252
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4253
|
+
rectRadius: 0,
|
|
4254
|
+
});
|
|
4255
|
+
}
|
|
4256
|
+
else {
|
|
4257
|
+
// Quiet supper-club stub when pill ornament is off.
|
|
4258
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4259
|
+
x: ctx.margin,
|
|
4260
|
+
y: ctx.height - 0.58,
|
|
4261
|
+
w: 0.55,
|
|
4262
|
+
h: 0.02,
|
|
4263
|
+
fill: { color: ctx.colors.accent, transparency: 25 },
|
|
4264
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4265
|
+
rectRadius: 0,
|
|
4266
|
+
});
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
if (theme === "paper-ink") {
|
|
4270
|
+
// Quiet outer border + crimson top/bottom rules on all; hero-gated
|
|
4271
|
+
// corner blot + drop-cap stub (paper-ink-literary).
|
|
4060
4272
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4061
|
-
x:
|
|
4062
|
-
y: 0.
|
|
4063
|
-
w:
|
|
4064
|
-
h: 0.
|
|
4273
|
+
x: 0.16,
|
|
4274
|
+
y: 0.16,
|
|
4275
|
+
w: ctx.width - 0.32,
|
|
4276
|
+
h: ctx.height - 0.32,
|
|
4065
4277
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4066
|
-
line: { color: ctx.colors.
|
|
4067
|
-
rectRadius: 0.2,
|
|
4068
|
-
});
|
|
4069
|
-
slide.addShape(ctx.shapeRoundRect, {
|
|
4070
|
-
x: 0.55,
|
|
4071
|
-
y: ctx.height - 0.75,
|
|
4072
|
-
w: 0.7,
|
|
4073
|
-
h: 0.025,
|
|
4074
|
-
fill: { color: ctx.colors.accent },
|
|
4075
|
-
line: { color: ctx.colors.accent, width: 0 },
|
|
4278
|
+
line: { color: ctx.colors.text, width: 1 },
|
|
4076
4279
|
rectRadius: 0,
|
|
4077
4280
|
});
|
|
4078
|
-
}
|
|
4079
|
-
if (theme === "paper-ink") {
|
|
4080
|
-
// Crimson top rule + quiet bottom hairline + corner stub (paper-ink-literary).
|
|
4081
4281
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4082
4282
|
x: ctx.margin,
|
|
4083
|
-
y: 0.
|
|
4283
|
+
y: 0.62,
|
|
4084
4284
|
w: ctx.width - ctx.margin * 2,
|
|
4085
|
-
h: 0.
|
|
4285
|
+
h: 0.035,
|
|
4086
4286
|
fill: { color: ctx.colors.accent },
|
|
4087
4287
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4088
4288
|
rectRadius: 0,
|
|
4089
4289
|
});
|
|
4090
4290
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4091
4291
|
x: ctx.margin,
|
|
4092
|
-
y: ctx.height - 0.
|
|
4292
|
+
y: ctx.height - 0.68,
|
|
4093
4293
|
w: ctx.width - ctx.margin * 2,
|
|
4094
|
-
h: 0.
|
|
4095
|
-
fill: { color: ctx.colors.text, transparency:
|
|
4294
|
+
h: 0.018,
|
|
4295
|
+
fill: { color: ctx.colors.text, transparency: 48 },
|
|
4096
4296
|
line: { color: ctx.colors.text, width: 0 },
|
|
4097
4297
|
rectRadius: 0,
|
|
4098
4298
|
});
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4299
|
+
if (isHero) {
|
|
4300
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4301
|
+
x: ctx.width - ctx.margin - 0.62,
|
|
4302
|
+
y: 0.88,
|
|
4303
|
+
w: 0.62,
|
|
4304
|
+
h: 0.62,
|
|
4305
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
4306
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4307
|
+
rectRadius: 0,
|
|
4308
|
+
});
|
|
4309
|
+
// Drop-cap first-letter stand-in (HTML h1::first-letter crimson).
|
|
4310
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4311
|
+
x: ctx.margin,
|
|
4312
|
+
y: 1.05,
|
|
4313
|
+
w: 0.045,
|
|
4314
|
+
h: 0.72,
|
|
4315
|
+
fill: { color: ctx.colors.accent },
|
|
4316
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4317
|
+
rectRadius: 0,
|
|
4318
|
+
});
|
|
4319
|
+
}
|
|
4320
|
+
else {
|
|
4321
|
+
// Quiet literary accent hairline when hero blot is off.
|
|
4322
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4323
|
+
x: ctx.margin,
|
|
4324
|
+
y: 0.9,
|
|
4325
|
+
w: 0.55,
|
|
4326
|
+
h: 0.015,
|
|
4327
|
+
fill: { color: ctx.colors.accent, transparency: 35 },
|
|
4328
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4329
|
+
rectRadius: 0,
|
|
4330
|
+
});
|
|
4331
|
+
}
|
|
4108
4332
|
}
|
|
4109
|
-
if (theme === "vintage-editorial"
|
|
4110
|
-
//
|
|
4111
|
-
slide.addShape(ctx.
|
|
4112
|
-
x:
|
|
4113
|
-
y: 0.
|
|
4114
|
-
w:
|
|
4115
|
-
h:
|
|
4333
|
+
if (theme === "vintage-editorial") {
|
|
4334
|
+
// Quiet outer border on all slides; geometric ring + dots on heroes.
|
|
4335
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4336
|
+
x: 0.18,
|
|
4337
|
+
y: 0.18,
|
|
4338
|
+
w: ctx.width - 0.36,
|
|
4339
|
+
h: ctx.height - 0.36,
|
|
4116
4340
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4117
|
-
line: { color: ctx.colors.text, width: 1.
|
|
4118
|
-
|
|
4119
|
-
slide.addShape(ctx.shapeOval, {
|
|
4120
|
-
x: ctx.width - 1.7,
|
|
4121
|
-
y: 1.2,
|
|
4122
|
-
w: 0.18,
|
|
4123
|
-
h: 0.18,
|
|
4124
|
-
fill: { color: ctx.colors.text },
|
|
4125
|
-
line: { color: ctx.colors.text, width: 0 },
|
|
4126
|
-
});
|
|
4127
|
-
slide.addShape(ctx.shapeOval, {
|
|
4128
|
-
x: ctx.width - 1.15,
|
|
4129
|
-
y: 1.7,
|
|
4130
|
-
w: 0.18,
|
|
4131
|
-
h: 0.18,
|
|
4132
|
-
fill: { color: ctx.colors.accent },
|
|
4133
|
-
line: { color: ctx.colors.accent, width: 0 },
|
|
4341
|
+
line: { color: ctx.colors.text, width: 1.25 },
|
|
4342
|
+
rectRadius: 0.04,
|
|
4134
4343
|
});
|
|
4344
|
+
if (isHero) {
|
|
4345
|
+
slide.addShape(ctx.shapeOval, {
|
|
4346
|
+
x: ctx.width - 2.35,
|
|
4347
|
+
y: 0.55,
|
|
4348
|
+
w: 1.55,
|
|
4349
|
+
h: 1.55,
|
|
4350
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4351
|
+
line: { color: ctx.colors.text, width: 1.5 },
|
|
4352
|
+
});
|
|
4353
|
+
slide.addShape(ctx.shapeOval, {
|
|
4354
|
+
x: ctx.width - 1.7,
|
|
4355
|
+
y: 1.2,
|
|
4356
|
+
w: 0.18,
|
|
4357
|
+
h: 0.18,
|
|
4358
|
+
fill: { color: ctx.colors.text },
|
|
4359
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4360
|
+
});
|
|
4361
|
+
slide.addShape(ctx.shapeOval, {
|
|
4362
|
+
x: ctx.width - 1.15,
|
|
4363
|
+
y: 1.7,
|
|
4364
|
+
w: 0.18,
|
|
4365
|
+
h: 0.18,
|
|
4366
|
+
fill: { color: ctx.colors.accent },
|
|
4367
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4368
|
+
});
|
|
4369
|
+
}
|
|
4135
4370
|
}
|
|
4136
4371
|
if (theme === "studio") {
|
|
4137
4372
|
// Acid hairline rails + hard frame (studio-acid).
|