@presentation-md/export 1.24.0 → 1.24.3
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/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/layouts.js +308 -154
- package/dist/layouts.js.map +1 -1
- package/package.json +1 -1
package/dist/layouts.js
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import { candyMarqueeText } from "@presentation-md/core/candy-marquee";
|
|
2
|
+
/** Hard 0-blur card offset shadows from HTML neobrutalist peers (raw-grid / hard-bento / …). */
|
|
3
|
+
function cardHardOffset(ctx) {
|
|
4
|
+
if (ctx.themeName === "raw-grid")
|
|
5
|
+
return { color: "0A0A0A", size: 0.045 };
|
|
6
|
+
if (ctx.themeName === "genz-bento")
|
|
7
|
+
return { color: ctx.colors.text, size: 0.045 };
|
|
8
|
+
if (ctx.themeName === "creative-mode")
|
|
9
|
+
return { color: ctx.colors.text, size: 0.045 };
|
|
10
|
+
if (ctx.themeName === "block-frame")
|
|
11
|
+
return { color: "000000", size: 0.065 };
|
|
12
|
+
// peoples-platform-poster cards: 6px red offset
|
|
13
|
+
if (ctx.themeName === "peoples-platform")
|
|
14
|
+
return { color: "E83A2A", size: 0.065 };
|
|
15
|
+
// capsule-pills cards: soft ink offset stand-in
|
|
16
|
+
if (ctx.themeName === "capsule")
|
|
17
|
+
return { color: "1A1A1A", size: 0.06 };
|
|
18
|
+
// scatterbrain sticky notes: quiet cork offset
|
|
19
|
+
if (ctx.themeName === "scatterbrain")
|
|
20
|
+
return { color: "2D2A26", size: 0.04 };
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
2
23
|
/** Candy-pop cards use hard ink strokes + plump radius (candy-blob `.card`). */
|
|
3
24
|
function cardStroke(ctx, opts = {}) {
|
|
4
25
|
if (ctx.themeName === "candy-pop") {
|
|
@@ -68,9 +89,9 @@ function cardStroke(ctx, opts = {}) {
|
|
|
68
89
|
if (ctx.themeName === "mat") {
|
|
69
90
|
return { color: "1E2820", width: opts.hero || opts.highlighted ? 1.5 : 1.25 };
|
|
70
91
|
}
|
|
71
|
-
// hard-bento (genz-bento) cards: 2.5px ink
|
|
92
|
+
// hard-bento (genz-bento) cards: 2.5px ink + hard offset
|
|
72
93
|
if (ctx.themeName === "genz-bento") {
|
|
73
|
-
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.
|
|
94
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.9 : 2.65 };
|
|
74
95
|
}
|
|
75
96
|
// acid-block (brutalist-acid) cards: 2px accent, square
|
|
76
97
|
if (ctx.themeName === "brutalist-acid") {
|
|
@@ -80,15 +101,15 @@ function cardStroke(ctx, opts = {}) {
|
|
|
80
101
|
if (ctx.themeName === "bauhaus") {
|
|
81
102
|
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
82
103
|
}
|
|
83
|
-
// neo-grid-panels / bold-poster-ink / tri-tone-blocks cards:
|
|
104
|
+
// neo-grid-panels / bold-poster-ink / tri-tone-blocks cards: hard ink, square
|
|
84
105
|
if (ctx.themeName === "neo-grid-bold" ||
|
|
85
106
|
ctx.themeName === "bold-poster" ||
|
|
86
107
|
ctx.themeName === "editorial-tri-tone") {
|
|
87
|
-
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.
|
|
108
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.5 : 2.25 };
|
|
88
109
|
}
|
|
89
|
-
// raw-grid-brutal cards: 3px ink, square
|
|
110
|
+
// raw-grid-brutal cards: 3px ink + hard offset (via cardHardOffset), square
|
|
90
111
|
if (ctx.themeName === "raw-grid") {
|
|
91
|
-
return { color: "0A0A0A", width: opts.hero || opts.highlighted ? 3.
|
|
112
|
+
return { color: "0A0A0A", width: opts.hero || opts.highlighted ? 3.5 : 3.25 };
|
|
92
113
|
}
|
|
93
114
|
// creative-voltage-split cards: 1px neon accent, square
|
|
94
115
|
if (ctx.themeName === "creative-voltage") {
|
|
@@ -266,6 +287,19 @@ function cardStroke(ctx, opts = {}) {
|
|
|
266
287
|
function drawCardFace(slide, ctx, x, y, w, h, fill, opts = {}) {
|
|
267
288
|
const stroke = cardStroke(ctx, opts);
|
|
268
289
|
const radius = cardRadius(ctx);
|
|
290
|
+
const offset = cardHardOffset(ctx);
|
|
291
|
+
if (offset && !(stroke.topRule || stroke.leftRule)) {
|
|
292
|
+
// Paint hard offset plate first (HTML box-shadow Nx N 0 ink).
|
|
293
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
294
|
+
x: x + offset.size,
|
|
295
|
+
y: y + offset.size,
|
|
296
|
+
w,
|
|
297
|
+
h,
|
|
298
|
+
fill: { color: offset.color },
|
|
299
|
+
line: { color: offset.color, width: 0 },
|
|
300
|
+
rectRadius: radius,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
269
303
|
if (stroke.topRule || stroke.leftRule) {
|
|
270
304
|
slide.addShape(ctx.shapeRoundRect, {
|
|
271
305
|
x,
|
|
@@ -3390,25 +3424,25 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3390
3424
|
}
|
|
3391
3425
|
}
|
|
3392
3426
|
if (theme === "swiss-typographic") {
|
|
3393
|
-
//
|
|
3394
|
-
for (let i = 1; i <
|
|
3427
|
+
// Denser modular grid (~64px) + thicker signal-red left rail (swiss-grid).
|
|
3428
|
+
for (let i = 1; i < 20; i++) {
|
|
3395
3429
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3396
|
-
x: (ctx.width /
|
|
3430
|
+
x: (ctx.width / 20) * i,
|
|
3397
3431
|
y: 0,
|
|
3398
|
-
w: 0.
|
|
3432
|
+
w: 0.011,
|
|
3399
3433
|
h: ctx.height,
|
|
3400
|
-
fill: { color: ctx.colors.border, transparency:
|
|
3434
|
+
fill: { color: ctx.colors.border, transparency: 48 },
|
|
3401
3435
|
line: { color: ctx.colors.border, width: 0 },
|
|
3402
3436
|
rectRadius: 0,
|
|
3403
3437
|
});
|
|
3404
3438
|
}
|
|
3405
|
-
for (let i = 1; i <
|
|
3439
|
+
for (let i = 1; i < 12; i++) {
|
|
3406
3440
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3407
3441
|
x: 0,
|
|
3408
|
-
y: (ctx.height /
|
|
3442
|
+
y: (ctx.height / 12) * i,
|
|
3409
3443
|
w: ctx.width,
|
|
3410
|
-
h: 0.
|
|
3411
|
-
fill: { color: ctx.colors.border, transparency:
|
|
3444
|
+
h: 0.011,
|
|
3445
|
+
fill: { color: ctx.colors.border, transparency: 48 },
|
|
3412
3446
|
line: { color: ctx.colors.border, width: 0 },
|
|
3413
3447
|
rectRadius: 0,
|
|
3414
3448
|
});
|
|
@@ -3416,12 +3450,22 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3416
3450
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3417
3451
|
x: 0,
|
|
3418
3452
|
y: 0,
|
|
3419
|
-
w: 0.
|
|
3453
|
+
w: 0.1,
|
|
3420
3454
|
h: ctx.height,
|
|
3421
3455
|
fill: { color: ctx.colors.accent },
|
|
3422
3456
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3423
3457
|
rectRadius: 0,
|
|
3424
3458
|
});
|
|
3459
|
+
// Quiet outer hairline (HTML border).
|
|
3460
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3461
|
+
x: 0.1,
|
|
3462
|
+
y: 0.08,
|
|
3463
|
+
w: ctx.width - 0.18,
|
|
3464
|
+
h: ctx.height - 0.16,
|
|
3465
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3466
|
+
line: { color: ctx.colors.border, width: 0.9 },
|
|
3467
|
+
rectRadius: 0,
|
|
3468
|
+
});
|
|
3425
3469
|
}
|
|
3426
3470
|
if (theme === "ft-editorial") {
|
|
3427
3471
|
// Broadsheet masthead + double rule + quiet outer frame + accent mid stub.
|
|
@@ -3652,6 +3696,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3652
3696
|
}
|
|
3653
3697
|
if (theme === "genz-bento") {
|
|
3654
3698
|
// Hard border + 10px offset shadow strips + accent2 corner blot (hard-bento).
|
|
3699
|
+
// Cards get 4px hard offsets via cardHardOffset.
|
|
3655
3700
|
const shadow = 0.12;
|
|
3656
3701
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3657
3702
|
x: ctx.width - shadow,
|
|
@@ -3672,22 +3717,32 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3672
3717
|
rectRadius: 0,
|
|
3673
3718
|
});
|
|
3674
3719
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3675
|
-
x: 0.
|
|
3676
|
-
y: 0.
|
|
3677
|
-
w: ctx.width - 0.
|
|
3678
|
-
h: ctx.height - 0.
|
|
3720
|
+
x: 0.1,
|
|
3721
|
+
y: 0.1,
|
|
3722
|
+
w: ctx.width - 0.2,
|
|
3723
|
+
h: ctx.height - 0.2,
|
|
3679
3724
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3680
|
-
line: { color: ctx.colors.text, width:
|
|
3725
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
3681
3726
|
rectRadius: 0,
|
|
3682
3727
|
});
|
|
3683
3728
|
slide.addShape(ctx.shapeOval, {
|
|
3684
|
-
x: ctx.width - 1.
|
|
3685
|
-
y: -0.
|
|
3686
|
-
w:
|
|
3687
|
-
h:
|
|
3688
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
3729
|
+
x: ctx.width - 1.75,
|
|
3730
|
+
y: -0.55,
|
|
3731
|
+
w: 2.05,
|
|
3732
|
+
h: 2.05,
|
|
3733
|
+
fill: { color: ctx.colors.accent2, transparency: 38 },
|
|
3689
3734
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
3690
3735
|
});
|
|
3736
|
+
// Secondary accent chip (HTML hard-bento energy).
|
|
3737
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3738
|
+
x: ctx.width - 1.35 - shadow,
|
|
3739
|
+
y: ctx.height - 0.95 - shadow,
|
|
3740
|
+
w: 0.55,
|
|
3741
|
+
h: 0.55,
|
|
3742
|
+
fill: { color: ctx.colors.accent, transparency: 12 },
|
|
3743
|
+
line: { color: ctx.colors.text, width: 2 },
|
|
3744
|
+
rectRadius: 0.08,
|
|
3745
|
+
});
|
|
3691
3746
|
}
|
|
3692
3747
|
if (theme === "heritage-editorial") {
|
|
3693
3748
|
// Parchment wash + quiet hairlines + mid stub (heritage-wash).
|
|
@@ -4006,8 +4061,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4006
4061
|
});
|
|
4007
4062
|
}
|
|
4008
4063
|
if (theme === "neo-grid-bold") {
|
|
4009
|
-
//
|
|
4010
|
-
// shadow (neo-grid-panels).
|
|
4064
|
+
// Denser modular grid (~80px) + lemon corner panel + hard 3pt border +
|
|
4065
|
+
// 8px accent offset shadow (neo-grid-panels).
|
|
4011
4066
|
const shadow = 0.1;
|
|
4012
4067
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4013
4068
|
x: ctx.width - shadow,
|
|
@@ -4027,24 +4082,24 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4027
4082
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4028
4083
|
rectRadius: 0,
|
|
4029
4084
|
});
|
|
4030
|
-
for (let i = 1; i <
|
|
4085
|
+
for (let i = 1; i < 16; i++) {
|
|
4031
4086
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4032
|
-
x: (ctx.width /
|
|
4087
|
+
x: (ctx.width / 16) * i,
|
|
4033
4088
|
y: 0,
|
|
4034
4089
|
w: 0.012,
|
|
4035
4090
|
h: ctx.height - shadow,
|
|
4036
|
-
fill: { color: ctx.colors.text, transparency:
|
|
4091
|
+
fill: { color: ctx.colors.text, transparency: 78 },
|
|
4037
4092
|
line: { color: ctx.colors.text, width: 0 },
|
|
4038
4093
|
rectRadius: 0,
|
|
4039
4094
|
});
|
|
4040
4095
|
}
|
|
4041
|
-
for (let i = 1; i <
|
|
4096
|
+
for (let i = 1; i < 9; i++) {
|
|
4042
4097
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4043
4098
|
x: 0,
|
|
4044
|
-
y: (ctx.height /
|
|
4099
|
+
y: (ctx.height / 9) * i,
|
|
4045
4100
|
w: ctx.width - shadow,
|
|
4046
4101
|
h: 0.012,
|
|
4047
|
-
fill: { color: ctx.colors.text, transparency:
|
|
4102
|
+
fill: { color: ctx.colors.text, transparency: 78 },
|
|
4048
4103
|
line: { color: ctx.colors.text, width: 0 },
|
|
4049
4104
|
rectRadius: 0,
|
|
4050
4105
|
});
|
|
@@ -4055,29 +4110,50 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4055
4110
|
w: ctx.width - 0.08 - shadow,
|
|
4056
4111
|
h: ctx.height - 0.08 - shadow,
|
|
4057
4112
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4058
|
-
line: { color: ctx.colors.text, width:
|
|
4113
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
4059
4114
|
rectRadius: 0,
|
|
4060
4115
|
});
|
|
4116
|
+
// Lemon corner panel (HTML ::after 96px) — always-on for PPTX densify.
|
|
4061
4117
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4062
|
-
x: ctx.width - 1.
|
|
4063
|
-
y: 0.
|
|
4064
|
-
w:
|
|
4065
|
-
h:
|
|
4118
|
+
x: ctx.width - 1.7 - shadow,
|
|
4119
|
+
y: 0.45,
|
|
4120
|
+
w: 1.15,
|
|
4121
|
+
h: 1.15,
|
|
4066
4122
|
fill: { color: ctx.colors.accent },
|
|
4067
4123
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4068
4124
|
rectRadius: 0,
|
|
4069
4125
|
});
|
|
4126
|
+
// Ink L registration marks (grid craft).
|
|
4127
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4128
|
+
x: 0.22,
|
|
4129
|
+
y: 0.22,
|
|
4130
|
+
w: 0.48,
|
|
4131
|
+
h: 0.028,
|
|
4132
|
+
fill: { color: ctx.colors.text, transparency: 35 },
|
|
4133
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4134
|
+
rectRadius: 0,
|
|
4135
|
+
});
|
|
4136
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4137
|
+
x: 0.22,
|
|
4138
|
+
y: 0.22,
|
|
4139
|
+
w: 0.028,
|
|
4140
|
+
h: 0.48,
|
|
4141
|
+
fill: { color: ctx.colors.text, transparency: 35 },
|
|
4142
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4143
|
+
rectRadius: 0,
|
|
4144
|
+
});
|
|
4070
4145
|
}
|
|
4071
4146
|
if (theme === "bold-poster") {
|
|
4072
|
-
// Hard frame + offset shadow every slide; ink top bar;
|
|
4147
|
+
// Hard frame + accent-tinted offset shadow every slide; thicker ink top bar;
|
|
4148
|
+
// poster block on heroes (bold-poster-ink HTML uses accent@35% shadow).
|
|
4073
4149
|
const shadow = 0.11;
|
|
4074
4150
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4075
4151
|
x: ctx.width - shadow,
|
|
4076
4152
|
y: shadow,
|
|
4077
4153
|
w: shadow,
|
|
4078
4154
|
h: ctx.height - shadow,
|
|
4079
|
-
fill: { color: ctx.colors.
|
|
4080
|
-
line: { color: ctx.colors.
|
|
4155
|
+
fill: { color: ctx.colors.accent },
|
|
4156
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4081
4157
|
rectRadius: 0,
|
|
4082
4158
|
});
|
|
4083
4159
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -4085,8 +4161,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4085
4161
|
y: ctx.height - shadow,
|
|
4086
4162
|
w: ctx.width - shadow,
|
|
4087
4163
|
h: shadow,
|
|
4088
|
-
fill: { color: ctx.colors.
|
|
4089
|
-
line: { color: ctx.colors.
|
|
4164
|
+
fill: { color: ctx.colors.accent },
|
|
4165
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4090
4166
|
rectRadius: 0,
|
|
4091
4167
|
});
|
|
4092
4168
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -4095,33 +4171,46 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4095
4171
|
w: ctx.width - 0.2,
|
|
4096
4172
|
h: ctx.height - 0.2,
|
|
4097
4173
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4098
|
-
line: { color: ctx.colors.text, width: 2.
|
|
4174
|
+
line: { color: ctx.colors.text, width: 2.75 },
|
|
4099
4175
|
rectRadius: 0,
|
|
4100
4176
|
});
|
|
4101
4177
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4102
4178
|
x: 0,
|
|
4103
4179
|
y: 0,
|
|
4104
4180
|
w: ctx.width,
|
|
4105
|
-
h: 0.
|
|
4181
|
+
h: 0.16,
|
|
4106
4182
|
fill: { color: ctx.colors.accent },
|
|
4107
4183
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4108
4184
|
rectRadius: 0,
|
|
4109
4185
|
});
|
|
4110
4186
|
if (isHero) {
|
|
4111
4187
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4112
|
-
x: ctx.width * 0.
|
|
4113
|
-
y: ctx.height * 0.
|
|
4114
|
-
w: ctx.width * 0.
|
|
4115
|
-
h: ctx.height * 0.
|
|
4188
|
+
x: ctx.width * 0.6,
|
|
4189
|
+
y: ctx.height * 0.52,
|
|
4190
|
+
w: ctx.width * 0.3,
|
|
4191
|
+
h: ctx.height * 0.3,
|
|
4116
4192
|
fill: { color: ctx.colors.bg2 },
|
|
4117
|
-
line: { color: ctx.colors.text, width: 2 },
|
|
4193
|
+
line: { color: ctx.colors.text, width: 2.25 },
|
|
4194
|
+
rectRadius: 0,
|
|
4195
|
+
});
|
|
4196
|
+
}
|
|
4197
|
+
else {
|
|
4198
|
+
// Quiet poster stub on body slides so chrome doesn't go flat.
|
|
4199
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4200
|
+
x: ctx.width - 1.35 - shadow,
|
|
4201
|
+
y: ctx.height - 1.15 - shadow,
|
|
4202
|
+
w: 0.85,
|
|
4203
|
+
h: 0.85,
|
|
4204
|
+
fill: { color: ctx.colors.bg2, transparency: 35 },
|
|
4205
|
+
line: { color: ctx.colors.text, width: 1.5 },
|
|
4118
4206
|
rectRadius: 0,
|
|
4119
4207
|
});
|
|
4120
4208
|
}
|
|
4121
4209
|
}
|
|
4122
4210
|
if (theme === "capsule") {
|
|
4123
4211
|
// Plump frame + hard ink offset shadow (HTML 8px/10px 0-blur) + pastel blots;
|
|
4124
|
-
//
|
|
4212
|
+
// coral pill + lime circles denser (always-on soft blot; loud pills hero-gated).
|
|
4213
|
+
// Cards get soft ink offsets via cardHardOffset.
|
|
4125
4214
|
const shadowX = 0.1;
|
|
4126
4215
|
const shadowY = 0.12;
|
|
4127
4216
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -4143,31 +4232,39 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4143
4232
|
rectRadius: 0,
|
|
4144
4233
|
});
|
|
4145
4234
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4146
|
-
x: 0.
|
|
4147
|
-
y: 0.
|
|
4148
|
-
w: ctx.width - 0.
|
|
4149
|
-
h: ctx.height - 0.
|
|
4235
|
+
x: 0.16,
|
|
4236
|
+
y: 0.16,
|
|
4237
|
+
w: ctx.width - 0.32 - shadowX,
|
|
4238
|
+
h: ctx.height - 0.32 - shadowY,
|
|
4150
4239
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4151
|
-
line: { color: ctx.colors.border, width: 2 },
|
|
4240
|
+
line: { color: ctx.colors.border, width: 2.25 },
|
|
4152
4241
|
rectRadius: 0.29,
|
|
4153
4242
|
});
|
|
4154
|
-
// Quiet lavender / sky radial blots (HTML --slide-bg candy).
|
|
4243
|
+
// Quiet lavender / sky / lime radial blots (HTML --slide-bg candy — always-on).
|
|
4155
4244
|
slide.addShape(ctx.shapeOval, {
|
|
4156
4245
|
x: 0.35,
|
|
4157
4246
|
y: ctx.height - 1.85 - shadowY,
|
|
4158
|
-
w: 0.
|
|
4159
|
-
h: 0.
|
|
4160
|
-
fill: { color: "C5B5E0", transparency:
|
|
4247
|
+
w: 0.78,
|
|
4248
|
+
h: 0.78,
|
|
4249
|
+
fill: { color: "C5B5E0", transparency: 38 },
|
|
4161
4250
|
line: { color: "C5B5E0", width: 0 },
|
|
4162
4251
|
});
|
|
4163
4252
|
slide.addShape(ctx.shapeOval, {
|
|
4164
4253
|
x: ctx.width - 1.55 - shadowX,
|
|
4165
4254
|
y: 0.55,
|
|
4166
|
-
w: 0.
|
|
4167
|
-
h: 0.
|
|
4168
|
-
fill: { color: "8BB4F7", transparency:
|
|
4255
|
+
w: 0.62,
|
|
4256
|
+
h: 0.62,
|
|
4257
|
+
fill: { color: "8BB4F7", transparency: 34 },
|
|
4169
4258
|
line: { color: "8BB4F7", width: 0 },
|
|
4170
4259
|
});
|
|
4260
|
+
slide.addShape(ctx.shapeOval, {
|
|
4261
|
+
x: ctx.width * 0.78 - shadowX,
|
|
4262
|
+
y: ctx.height * 0.78 - shadowY,
|
|
4263
|
+
w: 0.42,
|
|
4264
|
+
h: 0.42,
|
|
4265
|
+
fill: { color: "C4D94E", transparency: 42 },
|
|
4266
|
+
line: { color: "C4D94E", width: 0 },
|
|
4267
|
+
});
|
|
4171
4268
|
if (isHero) {
|
|
4172
4269
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4173
4270
|
x: ctx.width - 2.15 - shadowX,
|
|
@@ -4363,7 +4460,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4363
4460
|
});
|
|
4364
4461
|
}
|
|
4365
4462
|
if (theme === "brutalist-mono") {
|
|
4366
|
-
//
|
|
4463
|
+
// Denser mono grid (~24px) + hard 3pt outer frame + 8px ink offset shadow
|
|
4464
|
+
// (brutalist-grid).
|
|
4367
4465
|
const shadow = 0.1;
|
|
4368
4466
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4369
4467
|
x: ctx.width - shadow,
|
|
@@ -4383,24 +4481,24 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4383
4481
|
line: { color: ctx.colors.text, width: 0 },
|
|
4384
4482
|
rectRadius: 0,
|
|
4385
4483
|
});
|
|
4386
|
-
for (let i = 1; i <
|
|
4484
|
+
for (let i = 1; i < 28; i++) {
|
|
4387
4485
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4388
|
-
x: (ctx.width /
|
|
4486
|
+
x: (ctx.width / 28) * i,
|
|
4389
4487
|
y: 0,
|
|
4390
|
-
w: 0.
|
|
4488
|
+
w: 0.009,
|
|
4391
4489
|
h: ctx.height - shadow,
|
|
4392
|
-
fill: { color: ctx.colors.border, transparency:
|
|
4490
|
+
fill: { color: ctx.colors.border, transparency: 48 },
|
|
4393
4491
|
line: { color: ctx.colors.border, width: 0 },
|
|
4394
4492
|
rectRadius: 0,
|
|
4395
4493
|
});
|
|
4396
4494
|
}
|
|
4397
|
-
for (let i = 1; i <
|
|
4495
|
+
for (let i = 1; i < 16; i++) {
|
|
4398
4496
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4399
4497
|
x: 0,
|
|
4400
|
-
y: (ctx.height /
|
|
4498
|
+
y: (ctx.height / 16) * i,
|
|
4401
4499
|
w: ctx.width - shadow,
|
|
4402
|
-
h: 0.
|
|
4403
|
-
fill: { color: ctx.colors.border, transparency:
|
|
4500
|
+
h: 0.009,
|
|
4501
|
+
fill: { color: ctx.colors.border, transparency: 48 },
|
|
4404
4502
|
line: { color: ctx.colors.border, width: 0 },
|
|
4405
4503
|
rectRadius: 0,
|
|
4406
4504
|
});
|
|
@@ -4411,7 +4509,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4411
4509
|
w: ctx.width - 0.1 - shadow,
|
|
4412
4510
|
h: ctx.height - 0.1 - shadow,
|
|
4413
4511
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4414
|
-
line: { color: ctx.colors.text, width:
|
|
4512
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
4415
4513
|
rectRadius: 0,
|
|
4416
4514
|
});
|
|
4417
4515
|
}
|
|
@@ -4590,9 +4688,9 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4590
4688
|
}
|
|
4591
4689
|
}
|
|
4592
4690
|
if (theme === "scatterbrain") {
|
|
4593
|
-
// Cork wash + soft ink offset
|
|
4594
|
-
//
|
|
4595
|
-
const shadow = 0.
|
|
4691
|
+
// Cork wash + soft ink offset + denser rules + sticky notes + pins;
|
|
4692
|
+
// always-on tape strip densify (scatterbrain-cork). Cards get cork offsets.
|
|
4693
|
+
const shadow = 0.1;
|
|
4596
4694
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4597
4695
|
x: ctx.width - shadow,
|
|
4598
4696
|
y: shadow,
|
|
@@ -4611,32 +4709,40 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4611
4709
|
line: { color: "2D2A26", width: 0 },
|
|
4612
4710
|
rectRadius: 0,
|
|
4613
4711
|
});
|
|
4614
|
-
// Soft cork yellow
|
|
4712
|
+
// Soft cork yellow + blue washes (HTML radials).
|
|
4615
4713
|
slide.addShape(ctx.shapeOval, {
|
|
4616
4714
|
x: -0.8,
|
|
4617
4715
|
y: -0.6,
|
|
4618
4716
|
w: ctx.width * 0.55,
|
|
4619
4717
|
h: ctx.height * 0.55,
|
|
4620
|
-
fill: { color: "FFE066", transparency:
|
|
4718
|
+
fill: { color: "FFE066", transparency: 84 },
|
|
4621
4719
|
line: { color: "FFE066", width: 0 },
|
|
4622
4720
|
});
|
|
4721
|
+
slide.addShape(ctx.shapeOval, {
|
|
4722
|
+
x: ctx.width * 0.55,
|
|
4723
|
+
y: ctx.height * 0.35,
|
|
4724
|
+
w: ctx.width * 0.5,
|
|
4725
|
+
h: ctx.height * 0.55,
|
|
4726
|
+
fill: { color: "74C0FC", transparency: 90 },
|
|
4727
|
+
line: { color: "74C0FC", width: 0 },
|
|
4728
|
+
});
|
|
4623
4729
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4624
4730
|
x: 0.1,
|
|
4625
4731
|
y: 0.1,
|
|
4626
4732
|
w: ctx.width - 0.1 - shadow,
|
|
4627
4733
|
h: ctx.height - 0.1 - shadow,
|
|
4628
4734
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4629
|
-
line: { color: "2D2A26", width: 1 },
|
|
4735
|
+
line: { color: "2D2A26", width: 1.25 },
|
|
4630
4736
|
rectRadius: 0.08,
|
|
4631
4737
|
});
|
|
4632
|
-
// Quiet cork rules (HTML repeating 40px lines).
|
|
4633
|
-
for (let i = 1; i <
|
|
4738
|
+
// Quiet cork rules (HTML repeating ~40px lines — denser).
|
|
4739
|
+
for (let i = 1; i < 14; i++) {
|
|
4634
4740
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4635
4741
|
x: 0.12,
|
|
4636
|
-
y: (ctx.height /
|
|
4742
|
+
y: (ctx.height / 14) * i,
|
|
4637
4743
|
w: ctx.width - 0.12 - shadow,
|
|
4638
4744
|
h: 0.01,
|
|
4639
|
-
fill: { color: "2D2A26", transparency:
|
|
4745
|
+
fill: { color: "2D2A26", transparency: 90 },
|
|
4640
4746
|
line: { color: "2D2A26", width: 0 },
|
|
4641
4747
|
rectRadius: 0,
|
|
4642
4748
|
});
|
|
@@ -4644,28 +4750,28 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4644
4750
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4645
4751
|
x: ctx.width * 0.68 - shadow,
|
|
4646
4752
|
y: 0.55,
|
|
4647
|
-
w: 1.
|
|
4648
|
-
h: 1.
|
|
4753
|
+
w: 1.8,
|
|
4754
|
+
h: 1.35,
|
|
4649
4755
|
fill: { color: "FFE066" },
|
|
4650
|
-
line: { color: ctx.colors.text, width: 0.
|
|
4756
|
+
line: { color: ctx.colors.text, width: 0.9 },
|
|
4651
4757
|
rectRadius: 0.02,
|
|
4652
4758
|
});
|
|
4653
4759
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4654
4760
|
x: ctx.width * 0.78 - shadow,
|
|
4655
4761
|
y: ctx.height * 0.48,
|
|
4656
|
-
w: 1.
|
|
4657
|
-
h: 1.
|
|
4762
|
+
w: 1.5,
|
|
4763
|
+
h: 1.15,
|
|
4658
4764
|
fill: { color: "74C0FC" },
|
|
4659
|
-
line: { color: ctx.colors.text, width: 0.
|
|
4765
|
+
line: { color: ctx.colors.text, width: 0.9 },
|
|
4660
4766
|
rectRadius: 0.02,
|
|
4661
4767
|
});
|
|
4662
4768
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4663
4769
|
x: 0.55,
|
|
4664
4770
|
y: ctx.height * 0.58 - shadow,
|
|
4665
|
-
w: 1.
|
|
4666
|
-
h: 1.
|
|
4771
|
+
w: 1.35,
|
|
4772
|
+
h: 1.05,
|
|
4667
4773
|
fill: { color: "FF9F9F" },
|
|
4668
|
-
line: { color: ctx.colors.text, width: 0.
|
|
4774
|
+
line: { color: ctx.colors.text, width: 0.9 },
|
|
4669
4775
|
rectRadius: 0.02,
|
|
4670
4776
|
});
|
|
4671
4777
|
for (const pin of [
|
|
@@ -4679,21 +4785,19 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4679
4785
|
w: 0.18,
|
|
4680
4786
|
h: 0.18,
|
|
4681
4787
|
fill: { color: "C92A2A" },
|
|
4682
|
-
line: { color: "C92A2A", width: 0 },
|
|
4683
|
-
});
|
|
4684
|
-
}
|
|
4685
|
-
if (isHero) {
|
|
4686
|
-
// Tape strip stand-in (HTML ::after).
|
|
4687
|
-
slide.addShape(ctx.shapeRoundRect, {
|
|
4688
|
-
x: 0.55,
|
|
4689
|
-
y: ctx.height - 0.95 - shadow,
|
|
4690
|
-
w: 1.05,
|
|
4691
|
-
h: 0.26,
|
|
4692
|
-
fill: { color: "FFEC99", transparency: 25 },
|
|
4693
4788
|
line: { color: "2D2A26", width: 0.75 },
|
|
4694
|
-
rectRadius: 0.02,
|
|
4695
4789
|
});
|
|
4696
4790
|
}
|
|
4791
|
+
// Always-on tape strip densify (HTML ::after is hero-gated).
|
|
4792
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4793
|
+
x: 0.55,
|
|
4794
|
+
y: ctx.height - 1.05 - shadow,
|
|
4795
|
+
w: 1.05,
|
|
4796
|
+
h: 0.28,
|
|
4797
|
+
fill: { color: "FFEC99", transparency: 25 },
|
|
4798
|
+
line: { color: "2D2A26", width: 0.75 },
|
|
4799
|
+
rectRadius: 0.02,
|
|
4800
|
+
});
|
|
4697
4801
|
}
|
|
4698
4802
|
if (theme === "split-pastel") {
|
|
4699
4803
|
// Soft dual pastel corner washes on every slide; full split + pills on heroes.
|
|
@@ -4749,14 +4853,24 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4749
4853
|
}
|
|
4750
4854
|
}
|
|
4751
4855
|
if (theme === "coral") {
|
|
4752
|
-
// Hatch frame + coral left wash (coral-hatch).
|
|
4856
|
+
// Hatch frame + coral left wash + bg2 diagonal split (coral-hatch).
|
|
4857
|
+
// Denser hatch + 3pt frame matching HTML border.
|
|
4858
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4859
|
+
x: ctx.width * 0.62,
|
|
4860
|
+
y: 0,
|
|
4861
|
+
w: ctx.width * 0.38,
|
|
4862
|
+
h: ctx.height,
|
|
4863
|
+
fill: { color: ctx.colors.bg2 },
|
|
4864
|
+
line: { color: ctx.colors.bg2, width: 0 },
|
|
4865
|
+
rectRadius: 0,
|
|
4866
|
+
});
|
|
4753
4867
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4754
4868
|
x: 0.1,
|
|
4755
4869
|
y: 0.1,
|
|
4756
4870
|
w: ctx.width - 0.2,
|
|
4757
4871
|
h: ctx.height - 0.2,
|
|
4758
4872
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4759
|
-
line: { color: ctx.colors.text, width:
|
|
4873
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
4760
4874
|
rectRadius: 0,
|
|
4761
4875
|
});
|
|
4762
4876
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -4764,36 +4878,35 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4764
4878
|
y: 0,
|
|
4765
4879
|
w: ctx.width * 0.42,
|
|
4766
4880
|
h: ctx.height,
|
|
4767
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
4881
|
+
fill: { color: ctx.colors.accent, transparency: 80 },
|
|
4768
4882
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4769
4883
|
rectRadius: 0,
|
|
4770
4884
|
});
|
|
4771
|
-
// Diagonal hatch stand-ins (thin ink stripes).
|
|
4772
|
-
for (let i = 0; i <
|
|
4885
|
+
// Diagonal hatch stand-ins (thin ink stripes — denser).
|
|
4886
|
+
for (let i = 0; i < 22; i++) {
|
|
4773
4887
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4774
|
-
x: -0.
|
|
4888
|
+
x: -0.5 + i * 0.72,
|
|
4775
4889
|
y: 0,
|
|
4776
|
-
w: 0.
|
|
4890
|
+
w: 0.035,
|
|
4777
4891
|
h: ctx.height,
|
|
4778
|
-
fill: { color: ctx.colors.text, transparency:
|
|
4892
|
+
fill: { color: ctx.colors.text, transparency: 86 },
|
|
4779
4893
|
line: { color: ctx.colors.text, width: 0 },
|
|
4780
4894
|
rectRadius: 0,
|
|
4781
4895
|
});
|
|
4782
4896
|
}
|
|
4783
4897
|
}
|
|
4784
4898
|
if (theme === "peoples-platform") {
|
|
4785
|
-
// Cobalt top bar + amber footer stub + hard frame + speckled wash
|
|
4786
|
-
// (peoples-platform-poster). Cards get 4px hard ink
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
const
|
|
4790
|
-
const row = Math.floor(i / 7);
|
|
4899
|
+
// Cobalt top bar + amber footer stub + hard 6pt frame + denser speckled wash
|
|
4900
|
+
// (peoples-platform-poster). Cards get 4px hard ink + red offsets.
|
|
4901
|
+
for (let i = 0; i < 48; i++) {
|
|
4902
|
+
const col = i % 8;
|
|
4903
|
+
const row = Math.floor(i / 8);
|
|
4791
4904
|
slide.addShape(ctx.shapeOval, {
|
|
4792
|
-
x: 0.
|
|
4793
|
-
y: 0.
|
|
4794
|
-
w: 0.
|
|
4795
|
-
h: 0.
|
|
4796
|
-
fill: { color: ctx.colors.text, transparency:
|
|
4905
|
+
x: 0.35 + col * 1.55,
|
|
4906
|
+
y: 0.45 + row * 1.1,
|
|
4907
|
+
w: 0.055,
|
|
4908
|
+
h: 0.055,
|
|
4909
|
+
fill: { color: ctx.colors.text, transparency: 90 },
|
|
4797
4910
|
line: { color: ctx.colors.text, width: 0 },
|
|
4798
4911
|
});
|
|
4799
4912
|
}
|
|
@@ -4803,32 +4916,32 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4803
4916
|
w: ctx.width - 0.16,
|
|
4804
4917
|
h: ctx.height - 0.16,
|
|
4805
4918
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4806
|
-
line: { color: ctx.colors.text, width:
|
|
4919
|
+
line: { color: ctx.colors.text, width: 4 },
|
|
4807
4920
|
rectRadius: 0,
|
|
4808
4921
|
});
|
|
4809
4922
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4810
4923
|
x: 0,
|
|
4811
4924
|
y: 0,
|
|
4812
4925
|
w: ctx.width,
|
|
4813
|
-
h: 0.
|
|
4926
|
+
h: 0.22,
|
|
4814
4927
|
fill: { color: ctx.colors.accent },
|
|
4815
4928
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4816
4929
|
rectRadius: 0,
|
|
4817
4930
|
});
|
|
4818
4931
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4819
4932
|
x: ctx.width * 0.72,
|
|
4820
|
-
y: ctx.height - 0.
|
|
4933
|
+
y: ctx.height - 0.18,
|
|
4821
4934
|
w: ctx.width * 0.28,
|
|
4822
|
-
h: 0.
|
|
4935
|
+
h: 0.18,
|
|
4823
4936
|
fill: { color: ctx.colors.accent2 },
|
|
4824
4937
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
4825
4938
|
rectRadius: 0,
|
|
4826
4939
|
});
|
|
4827
4940
|
}
|
|
4828
4941
|
if (theme === "raw-grid") {
|
|
4829
|
-
// Blush/sage bands + cross rules + hard frame + 6px ink offset shadow
|
|
4830
|
-
// (raw-grid-brutal
|
|
4831
|
-
const shadow = 0.
|
|
4942
|
+
// Blush/sage bands + cross rules + hard 3pt frame + 6px ink offset shadow
|
|
4943
|
+
// (raw-grid-brutal). Cards get 4px hard offsets via cardHardOffset.
|
|
4944
|
+
const shadow = 0.09;
|
|
4832
4945
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4833
4946
|
x: ctx.width - shadow,
|
|
4834
4947
|
y: shadow,
|
|
@@ -4879,7 +4992,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4879
4992
|
x: 0,
|
|
4880
4993
|
y: ctx.height * 0.28,
|
|
4881
4994
|
w: ctx.width - shadow,
|
|
4882
|
-
h: 0.
|
|
4995
|
+
h: 0.04,
|
|
4883
4996
|
fill: { color: "0A0A0A" },
|
|
4884
4997
|
line: { color: "0A0A0A", width: 0 },
|
|
4885
4998
|
rectRadius: 0,
|
|
@@ -4887,7 +5000,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4887
5000
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4888
5001
|
x: ctx.width * 0.22,
|
|
4889
5002
|
y: 0,
|
|
4890
|
-
w: 0.
|
|
5003
|
+
w: 0.04,
|
|
4891
5004
|
h: ctx.height - shadow,
|
|
4892
5005
|
fill: { color: "0A0A0A" },
|
|
4893
5006
|
line: { color: "0A0A0A", width: 0 },
|
|
@@ -4899,7 +5012,26 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4899
5012
|
w: ctx.width - 0.08 - shadow,
|
|
4900
5013
|
h: ctx.height - 0.08 - shadow,
|
|
4901
5014
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4902
|
-
line: { color: "0A0A0A", width:
|
|
5015
|
+
line: { color: "0A0A0A", width: 3 },
|
|
5016
|
+
rectRadius: 0,
|
|
5017
|
+
});
|
|
5018
|
+
// Ink corner blot + sage secondary stub (brutal grid craft).
|
|
5019
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5020
|
+
x: ctx.width - 1.25 - shadow,
|
|
5021
|
+
y: ctx.height - 1.15 - shadow,
|
|
5022
|
+
w: 0.72,
|
|
5023
|
+
h: 0.72,
|
|
5024
|
+
fill: { color: "0A0A0A" },
|
|
5025
|
+
line: { color: "0A0A0A", width: 0 },
|
|
5026
|
+
rectRadius: 0,
|
|
5027
|
+
});
|
|
5028
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5029
|
+
x: ctx.width - 1.4 - shadow,
|
|
5030
|
+
y: ctx.height - 1.3 - shadow,
|
|
5031
|
+
w: 0.72,
|
|
5032
|
+
h: 0.72,
|
|
5033
|
+
fill: { color: "E5EDD6" },
|
|
5034
|
+
line: { color: "0A0A0A", width: 2 },
|
|
4903
5035
|
rectRadius: 0,
|
|
4904
5036
|
});
|
|
4905
5037
|
}
|
|
@@ -5125,7 +5257,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
5125
5257
|
}
|
|
5126
5258
|
}
|
|
5127
5259
|
if (theme === "editorial-tri-tone") {
|
|
5128
|
-
// Butter split field + burgundy wash + hard frame (tri-tone-blocks).
|
|
5260
|
+
// Butter split field + burgundy wash + hard 3pt frame (tri-tone-blocks).
|
|
5129
5261
|
slide.addShape(ctx.shapeRoundRect, {
|
|
5130
5262
|
x: ctx.width * 0.55,
|
|
5131
5263
|
y: 0,
|
|
@@ -5140,7 +5272,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
5140
5272
|
y: 0,
|
|
5141
5273
|
w: ctx.width * 0.28,
|
|
5142
5274
|
h: ctx.height,
|
|
5143
|
-
fill: { color: ctx.colors.text, transparency:
|
|
5275
|
+
fill: { color: ctx.colors.text, transparency: 85 },
|
|
5144
5276
|
line: { color: ctx.colors.text, width: 0 },
|
|
5145
5277
|
rectRadius: 0,
|
|
5146
5278
|
});
|
|
@@ -5150,9 +5282,21 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
5150
5282
|
w: ctx.width - 0.2,
|
|
5151
5283
|
h: ctx.height - 0.2,
|
|
5152
5284
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
5153
|
-
line: { color: ctx.colors.text, width:
|
|
5285
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
5154
5286
|
rectRadius: 0,
|
|
5155
5287
|
});
|
|
5288
|
+
// Accent corner blot on heroes (tri-tone energy).
|
|
5289
|
+
if (isHero) {
|
|
5290
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5291
|
+
x: ctx.width - 1.45,
|
|
5292
|
+
y: 0.55,
|
|
5293
|
+
w: 0.85,
|
|
5294
|
+
h: 0.85,
|
|
5295
|
+
fill: { color: ctx.colors.accent },
|
|
5296
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
5297
|
+
rectRadius: 0,
|
|
5298
|
+
});
|
|
5299
|
+
}
|
|
5156
5300
|
}
|
|
5157
5301
|
if (theme === "broadside") {
|
|
5158
5302
|
// Fire-orange left rail + corner blast + hard ink frame + always-on top stub
|
|
@@ -5332,56 +5476,66 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
5332
5476
|
line: { color: "FFFFFF", width: 0 },
|
|
5333
5477
|
rectRadius: 0,
|
|
5334
5478
|
});
|
|
5335
|
-
//
|
|
5336
|
-
for (let i = 0; i <
|
|
5479
|
+
// Denser CRT scanlines (HTML 3px pitch).
|
|
5480
|
+
for (let i = 0; i < 28; i++) {
|
|
5337
5481
|
slide.addShape(ctx.shapeRoundRect, {
|
|
5338
5482
|
x: bevel + inset,
|
|
5339
|
-
y: 0.
|
|
5483
|
+
y: 0.45 + i * 0.24,
|
|
5340
5484
|
w: ctx.width - (bevel + inset) * 2,
|
|
5341
|
-
h: 0.
|
|
5342
|
-
fill: { color: "000000", transparency:
|
|
5485
|
+
h: 0.01,
|
|
5486
|
+
fill: { color: "000000", transparency: 93 },
|
|
5343
5487
|
line: { color: "000000", width: 0 },
|
|
5344
5488
|
rectRadius: 0,
|
|
5345
5489
|
});
|
|
5346
5490
|
}
|
|
5491
|
+
// Title bar (~22px HTML) + gradient stand-in via dual navy strips.
|
|
5347
5492
|
slide.addShape(ctx.shapeRoundRect, {
|
|
5348
5493
|
x: bevel + inset + 0.02,
|
|
5349
5494
|
y: bevel + inset + 0.02,
|
|
5350
5495
|
w: ctx.width - (bevel + inset + 0.02) * 2,
|
|
5351
|
-
h: 0.
|
|
5496
|
+
h: 0.36,
|
|
5352
5497
|
fill: { color: "000080" },
|
|
5353
5498
|
line: { color: "000080", width: 0 },
|
|
5354
5499
|
rectRadius: 0,
|
|
5355
5500
|
});
|
|
5501
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5502
|
+
x: bevel + inset + 0.02 + ctx.width * 0.45,
|
|
5503
|
+
y: bevel + inset + 0.02,
|
|
5504
|
+
w: ctx.width * 0.45 - (bevel + inset + 0.02),
|
|
5505
|
+
h: 0.36,
|
|
5506
|
+
fill: { color: "0000A0" },
|
|
5507
|
+
line: { color: "0000A0", width: 0 },
|
|
5508
|
+
rectRadius: 0,
|
|
5509
|
+
});
|
|
5356
5510
|
const winBtns = [
|
|
5357
|
-
ctx.width - 1.
|
|
5358
|
-
ctx.width - 0.
|
|
5359
|
-
ctx.width - 0.
|
|
5511
|
+
ctx.width - 1.25 - bevel,
|
|
5512
|
+
ctx.width - 0.92 - bevel,
|
|
5513
|
+
ctx.width - 0.59 - bevel,
|
|
5360
5514
|
];
|
|
5361
5515
|
for (const x of winBtns) {
|
|
5362
5516
|
slide.addShape(ctx.shapeRoundRect, {
|
|
5363
5517
|
x,
|
|
5364
|
-
y: bevel + inset + 0.
|
|
5365
|
-
w: 0.
|
|
5366
|
-
h: 0.
|
|
5518
|
+
y: bevel + inset + 0.1,
|
|
5519
|
+
w: 0.26,
|
|
5520
|
+
h: 0.2,
|
|
5367
5521
|
fill: { color: "C0C0C0" },
|
|
5368
5522
|
line: { color: "FFFFFF", width: 1 },
|
|
5369
5523
|
rectRadius: 0,
|
|
5370
5524
|
});
|
|
5371
5525
|
// Button shade stub (Win95 raised control).
|
|
5372
5526
|
slide.addShape(ctx.shapeRoundRect, {
|
|
5373
|
-
x: x + 0.
|
|
5374
|
-
y: bevel + inset + 0.
|
|
5527
|
+
x: x + 0.22,
|
|
5528
|
+
y: bevel + inset + 0.12,
|
|
5375
5529
|
w: 0.03,
|
|
5376
|
-
h: 0.
|
|
5530
|
+
h: 0.16,
|
|
5377
5531
|
fill: { color: "000000" },
|
|
5378
5532
|
line: { color: "000000", width: 0 },
|
|
5379
5533
|
rectRadius: 0,
|
|
5380
5534
|
});
|
|
5381
5535
|
slide.addShape(ctx.shapeRoundRect, {
|
|
5382
5536
|
x: x + 0.02,
|
|
5383
|
-
y: bevel + inset + 0.
|
|
5384
|
-
w: 0.
|
|
5537
|
+
y: bevel + inset + 0.26,
|
|
5538
|
+
w: 0.2,
|
|
5385
5539
|
h: 0.03,
|
|
5386
5540
|
fill: { color: "000000" },
|
|
5387
5541
|
line: { color: "000000", width: 0 },
|