@presentation-md/export 1.15.0 → 1.16.1
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 +279 -83
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -4,6 +4,26 @@ function cardStroke(ctx, opts = {}) {
|
|
|
4
4
|
if (ctx.themeName === "candy-pop") {
|
|
5
5
|
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
|
|
6
6
|
}
|
|
7
|
+
// daisy-days-pastel cards: 3px charcoal
|
|
8
|
+
if (ctx.themeName === "daisy-days") {
|
|
9
|
+
return { color: "2D2D2D", width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
|
|
10
|
+
}
|
|
11
|
+
// block-frame-brutal cards: 4px ink
|
|
12
|
+
if (ctx.themeName === "block-frame") {
|
|
13
|
+
return { color: "000000", width: opts.hero || opts.highlighted ? 3.25 : 3 };
|
|
14
|
+
}
|
|
15
|
+
// creative-mode-blocks cards: 3px ink
|
|
16
|
+
if (ctx.themeName === "creative-mode") {
|
|
17
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
|
|
18
|
+
}
|
|
19
|
+
// sakura-chroma-cassette cards: 2px ink
|
|
20
|
+
if (ctx.themeName === "sakura-chroma") {
|
|
21
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2 : 1.75 };
|
|
22
|
+
}
|
|
23
|
+
// stencil-tablet-earth / retro-zine-riso cards: 2px hard ink
|
|
24
|
+
if (ctx.themeName === "stencil-tablet" || ctx.themeName === "retro-zine") {
|
|
25
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
26
|
+
}
|
|
7
27
|
if (opts.hero || opts.highlighted) {
|
|
8
28
|
return { color: ctx.colors.accent, width: opts.highlighted ? 1.75 : 1.5 };
|
|
9
29
|
}
|
|
@@ -22,6 +42,21 @@ function cardRadius(ctx) {
|
|
|
22
42
|
// long-table-supper cards: border-radius 1.25rem ≈ 0.21"
|
|
23
43
|
if (ctx.themeName === "long-table")
|
|
24
44
|
return 0.21;
|
|
45
|
+
// daisy-days-pastel cards: border-radius 20px ≈ 0.21"
|
|
46
|
+
if (ctx.themeName === "daisy-days")
|
|
47
|
+
return 0.21;
|
|
48
|
+
// stencil-tablet-earth cards: border-radius 24px ≈ 0.25"
|
|
49
|
+
if (ctx.themeName === "stencil-tablet")
|
|
50
|
+
return 0.25;
|
|
51
|
+
// retro-zine-riso / block-frame-brutal / creative-mode-blocks cards: square
|
|
52
|
+
if (ctx.themeName === "retro-zine" ||
|
|
53
|
+
ctx.themeName === "block-frame" ||
|
|
54
|
+
ctx.themeName === "creative-mode") {
|
|
55
|
+
return 0;
|
|
56
|
+
}
|
|
57
|
+
// sakura-chroma-cassette cards: border-radius 4px ≈ 0.04"
|
|
58
|
+
if (ctx.themeName === "sakura-chroma")
|
|
59
|
+
return 0.04;
|
|
25
60
|
return 0.06;
|
|
26
61
|
}
|
|
27
62
|
/**
|
|
@@ -2521,12 +2556,32 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2521
2556
|
});
|
|
2522
2557
|
}
|
|
2523
2558
|
if (theme === "brutalist-acid") {
|
|
2524
|
-
// Hard acid frame
|
|
2559
|
+
// Hard acid frame + 10px accent offset shadow every slide (acid-block);
|
|
2560
|
+
// hero also gets the offset lime plate (::after is hero-gated in HTML).
|
|
2561
|
+
const shadow = 0.12;
|
|
2562
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2563
|
+
x: ctx.width - shadow,
|
|
2564
|
+
y: shadow,
|
|
2565
|
+
w: shadow,
|
|
2566
|
+
h: ctx.height - shadow,
|
|
2567
|
+
fill: { color: ctx.colors.accent },
|
|
2568
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2569
|
+
rectRadius: 0,
|
|
2570
|
+
});
|
|
2571
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2572
|
+
x: shadow,
|
|
2573
|
+
y: ctx.height - shadow,
|
|
2574
|
+
w: ctx.width - shadow,
|
|
2575
|
+
h: shadow,
|
|
2576
|
+
fill: { color: ctx.colors.accent },
|
|
2577
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2578
|
+
rectRadius: 0,
|
|
2579
|
+
});
|
|
2525
2580
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2526
2581
|
x: 0.1,
|
|
2527
2582
|
y: 0.1,
|
|
2528
|
-
w: ctx.width - 0.
|
|
2529
|
-
h: ctx.height - 0.
|
|
2583
|
+
w: ctx.width - 0.1 - shadow,
|
|
2584
|
+
h: ctx.height - 0.1 - shadow,
|
|
2530
2585
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2531
2586
|
line: { color: ctx.colors.accent, width: 2.5 },
|
|
2532
2587
|
rectRadius: 0,
|
|
@@ -3219,13 +3274,33 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3219
3274
|
}
|
|
3220
3275
|
}
|
|
3221
3276
|
if (theme === "neo-grid-bold") {
|
|
3222
|
-
// Modular grid + lemon corner panel + hard border
|
|
3277
|
+
// Modular grid + lemon corner panel + hard border + 8px accent offset
|
|
3278
|
+
// shadow (neo-grid-panels).
|
|
3279
|
+
const shadow = 0.1;
|
|
3280
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3281
|
+
x: ctx.width - shadow,
|
|
3282
|
+
y: shadow,
|
|
3283
|
+
w: shadow,
|
|
3284
|
+
h: ctx.height - shadow,
|
|
3285
|
+
fill: { color: ctx.colors.accent },
|
|
3286
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3287
|
+
rectRadius: 0,
|
|
3288
|
+
});
|
|
3289
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3290
|
+
x: shadow,
|
|
3291
|
+
y: ctx.height - shadow,
|
|
3292
|
+
w: ctx.width - shadow,
|
|
3293
|
+
h: shadow,
|
|
3294
|
+
fill: { color: ctx.colors.accent },
|
|
3295
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3296
|
+
rectRadius: 0,
|
|
3297
|
+
});
|
|
3223
3298
|
for (let i = 1; i < 10; i++) {
|
|
3224
3299
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3225
3300
|
x: (ctx.width / 10) * i,
|
|
3226
3301
|
y: 0,
|
|
3227
3302
|
w: 0.012,
|
|
3228
|
-
h: ctx.height,
|
|
3303
|
+
h: ctx.height - shadow,
|
|
3229
3304
|
fill: { color: ctx.colors.text, transparency: 85 },
|
|
3230
3305
|
line: { color: ctx.colors.text, width: 0 },
|
|
3231
3306
|
rectRadius: 0,
|
|
@@ -3235,7 +3310,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3235
3310
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3236
3311
|
x: 0,
|
|
3237
3312
|
y: (ctx.height / 6) * i,
|
|
3238
|
-
w: ctx.width,
|
|
3313
|
+
w: ctx.width - shadow,
|
|
3239
3314
|
h: 0.012,
|
|
3240
3315
|
fill: { color: ctx.colors.text, transparency: 85 },
|
|
3241
3316
|
line: { color: ctx.colors.text, width: 0 },
|
|
@@ -3245,14 +3320,14 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3245
3320
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3246
3321
|
x: 0.08,
|
|
3247
3322
|
y: 0.08,
|
|
3248
|
-
w: ctx.width - 0.
|
|
3249
|
-
h: ctx.height - 0.
|
|
3323
|
+
w: ctx.width - 0.08 - shadow,
|
|
3324
|
+
h: ctx.height - 0.08 - shadow,
|
|
3250
3325
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3251
3326
|
line: { color: ctx.colors.text, width: 2.5 },
|
|
3252
3327
|
rectRadius: 0,
|
|
3253
3328
|
});
|
|
3254
3329
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3255
|
-
x: ctx.width - 1.55,
|
|
3330
|
+
x: ctx.width - 1.55 - shadow,
|
|
3256
3331
|
y: 0.55,
|
|
3257
3332
|
w: 0.95,
|
|
3258
3333
|
h: 0.95,
|
|
@@ -3456,13 +3531,32 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3456
3531
|
});
|
|
3457
3532
|
}
|
|
3458
3533
|
if (theme === "brutalist-mono") {
|
|
3459
|
-
// Dense mono grid + hard outer frame (brutalist-grid).
|
|
3534
|
+
// Dense mono grid + hard outer frame + 8px ink offset shadow (brutalist-grid).
|
|
3535
|
+
const shadow = 0.1;
|
|
3536
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3537
|
+
x: ctx.width - shadow,
|
|
3538
|
+
y: shadow,
|
|
3539
|
+
w: shadow,
|
|
3540
|
+
h: ctx.height - shadow,
|
|
3541
|
+
fill: { color: ctx.colors.text },
|
|
3542
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3543
|
+
rectRadius: 0,
|
|
3544
|
+
});
|
|
3545
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3546
|
+
x: shadow,
|
|
3547
|
+
y: ctx.height - shadow,
|
|
3548
|
+
w: ctx.width - shadow,
|
|
3549
|
+
h: shadow,
|
|
3550
|
+
fill: { color: ctx.colors.text },
|
|
3551
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3552
|
+
rectRadius: 0,
|
|
3553
|
+
});
|
|
3460
3554
|
for (let i = 1; i < 16; i++) {
|
|
3461
3555
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3462
3556
|
x: (ctx.width / 16) * i,
|
|
3463
3557
|
y: 0,
|
|
3464
3558
|
w: 0.01,
|
|
3465
|
-
h: ctx.height,
|
|
3559
|
+
h: ctx.height - shadow,
|
|
3466
3560
|
fill: { color: ctx.colors.border, transparency: 55 },
|
|
3467
3561
|
line: { color: ctx.colors.border, width: 0 },
|
|
3468
3562
|
rectRadius: 0,
|
|
@@ -3472,7 +3566,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3472
3566
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3473
3567
|
x: 0,
|
|
3474
3568
|
y: (ctx.height / 10) * i,
|
|
3475
|
-
w: ctx.width,
|
|
3569
|
+
w: ctx.width - shadow,
|
|
3476
3570
|
h: 0.01,
|
|
3477
3571
|
fill: { color: ctx.colors.border, transparency: 55 },
|
|
3478
3572
|
line: { color: ctx.colors.border, width: 0 },
|
|
@@ -3482,42 +3576,64 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3482
3576
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3483
3577
|
x: 0.1,
|
|
3484
3578
|
y: 0.1,
|
|
3485
|
-
w: ctx.width - 0.
|
|
3486
|
-
h: ctx.height - 0.
|
|
3579
|
+
w: ctx.width - 0.1 - shadow,
|
|
3580
|
+
h: ctx.height - 0.1 - shadow,
|
|
3487
3581
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3488
3582
|
line: { color: ctx.colors.text, width: 2.5 },
|
|
3489
3583
|
rectRadius: 0,
|
|
3490
3584
|
});
|
|
3491
3585
|
}
|
|
3492
3586
|
if (theme === "creative-mode") {
|
|
3493
|
-
// Hard
|
|
3587
|
+
// Hard frame + 10px ink offset shadow every slide; stacked accent blocks
|
|
3588
|
+
// only on heroes (creative-mode-blocks ::before/::after are body-softened).
|
|
3589
|
+
const shadow = 0.12;
|
|
3494
3590
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3495
|
-
x:
|
|
3496
|
-
y:
|
|
3497
|
-
w:
|
|
3498
|
-
h: ctx.height -
|
|
3499
|
-
fill: { color: ctx.colors.
|
|
3500
|
-
line: { color: ctx.colors.text, width:
|
|
3591
|
+
x: ctx.width - shadow,
|
|
3592
|
+
y: shadow,
|
|
3593
|
+
w: shadow,
|
|
3594
|
+
h: ctx.height - shadow,
|
|
3595
|
+
fill: { color: ctx.colors.text },
|
|
3596
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3501
3597
|
rectRadius: 0,
|
|
3502
3598
|
});
|
|
3503
3599
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3504
|
-
x:
|
|
3505
|
-
y:
|
|
3506
|
-
w:
|
|
3507
|
-
h:
|
|
3508
|
-
fill: { color: ctx.colors.
|
|
3509
|
-
line: { color: ctx.colors.
|
|
3600
|
+
x: shadow,
|
|
3601
|
+
y: ctx.height - shadow,
|
|
3602
|
+
w: ctx.width - shadow,
|
|
3603
|
+
h: shadow,
|
|
3604
|
+
fill: { color: ctx.colors.text },
|
|
3605
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3510
3606
|
rectRadius: 0,
|
|
3511
3607
|
});
|
|
3512
3608
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3513
|
-
x:
|
|
3514
|
-
y:
|
|
3515
|
-
w: 0.
|
|
3516
|
-
h: 0.
|
|
3517
|
-
fill: { color: ctx.colors.
|
|
3518
|
-
line: { color: ctx.colors.
|
|
3609
|
+
x: 0.12,
|
|
3610
|
+
y: 0.12,
|
|
3611
|
+
w: ctx.width - 0.12 - shadow,
|
|
3612
|
+
h: ctx.height - 0.12 - shadow,
|
|
3613
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3614
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
3519
3615
|
rectRadius: 0,
|
|
3520
3616
|
});
|
|
3617
|
+
if (isHero) {
|
|
3618
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3619
|
+
x: ctx.width - 2.0,
|
|
3620
|
+
y: 0.55,
|
|
3621
|
+
w: 1.2,
|
|
3622
|
+
h: 1.2,
|
|
3623
|
+
fill: { color: ctx.colors.accent2 },
|
|
3624
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3625
|
+
rectRadius: 0,
|
|
3626
|
+
});
|
|
3627
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3628
|
+
x: ctx.width - 2.85,
|
|
3629
|
+
y: 1.35,
|
|
3630
|
+
w: 0.75,
|
|
3631
|
+
h: 0.75,
|
|
3632
|
+
fill: { color: ctx.colors.accent },
|
|
3633
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3634
|
+
rectRadius: 0,
|
|
3635
|
+
});
|
|
3636
|
+
}
|
|
3521
3637
|
}
|
|
3522
3638
|
if (theme === "biennale-yellow") {
|
|
3523
3639
|
// Sun orb + top hairline (biennale-yellow-sun).
|
|
@@ -3708,11 +3824,31 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3708
3824
|
});
|
|
3709
3825
|
}
|
|
3710
3826
|
if (theme === "raw-grid") {
|
|
3711
|
-
// Blush/sage bands + cross rules + hard frame
|
|
3827
|
+
// Blush/sage bands + cross rules + hard frame + 6px ink offset shadow
|
|
3828
|
+
// (raw-grid-brutal box-shadow is always-on).
|
|
3829
|
+
const shadow = 0.08;
|
|
3830
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3831
|
+
x: ctx.width - shadow,
|
|
3832
|
+
y: shadow,
|
|
3833
|
+
w: shadow,
|
|
3834
|
+
h: ctx.height - shadow,
|
|
3835
|
+
fill: { color: "0A0A0A" },
|
|
3836
|
+
line: { color: "0A0A0A", width: 0 },
|
|
3837
|
+
rectRadius: 0,
|
|
3838
|
+
});
|
|
3839
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3840
|
+
x: shadow,
|
|
3841
|
+
y: ctx.height - shadow,
|
|
3842
|
+
w: ctx.width - shadow,
|
|
3843
|
+
h: shadow,
|
|
3844
|
+
fill: { color: "0A0A0A" },
|
|
3845
|
+
line: { color: "0A0A0A", width: 0 },
|
|
3846
|
+
rectRadius: 0,
|
|
3847
|
+
});
|
|
3712
3848
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3713
3849
|
x: 0,
|
|
3714
3850
|
y: 0,
|
|
3715
|
-
w: ctx.width,
|
|
3851
|
+
w: ctx.width - shadow,
|
|
3716
3852
|
h: ctx.height * 0.28,
|
|
3717
3853
|
fill: { color: "F2D4CF" },
|
|
3718
3854
|
line: { color: "F2D4CF", width: 0 },
|
|
@@ -3722,7 +3858,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3722
3858
|
x: 0,
|
|
3723
3859
|
y: 0,
|
|
3724
3860
|
w: ctx.width * 0.22,
|
|
3725
|
-
h: ctx.height,
|
|
3861
|
+
h: ctx.height - shadow,
|
|
3726
3862
|
fill: { color: "E5EDD6" },
|
|
3727
3863
|
line: { color: "E5EDD6", width: 0 },
|
|
3728
3864
|
rectRadius: 0,
|
|
@@ -3740,7 +3876,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3740
3876
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3741
3877
|
x: 0,
|
|
3742
3878
|
y: ctx.height * 0.28,
|
|
3743
|
-
w: ctx.width,
|
|
3879
|
+
w: ctx.width - shadow,
|
|
3744
3880
|
h: 0.035,
|
|
3745
3881
|
fill: { color: "0A0A0A" },
|
|
3746
3882
|
line: { color: "0A0A0A", width: 0 },
|
|
@@ -3750,7 +3886,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3750
3886
|
x: ctx.width * 0.22,
|
|
3751
3887
|
y: 0,
|
|
3752
3888
|
w: 0.035,
|
|
3753
|
-
h: ctx.height,
|
|
3889
|
+
h: ctx.height - shadow,
|
|
3754
3890
|
fill: { color: "0A0A0A" },
|
|
3755
3891
|
line: { color: "0A0A0A", width: 0 },
|
|
3756
3892
|
rectRadius: 0,
|
|
@@ -3758,15 +3894,16 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3758
3894
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3759
3895
|
x: 0.08,
|
|
3760
3896
|
y: 0.08,
|
|
3761
|
-
w: ctx.width - 0.
|
|
3762
|
-
h: ctx.height - 0.
|
|
3897
|
+
w: ctx.width - 0.08 - shadow,
|
|
3898
|
+
h: ctx.height - 0.08 - shadow,
|
|
3763
3899
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3764
3900
|
line: { color: "0A0A0A", width: 2.5 },
|
|
3765
3901
|
rectRadius: 0,
|
|
3766
3902
|
});
|
|
3767
3903
|
}
|
|
3768
|
-
if (theme === "retro-zine"
|
|
3769
|
-
//
|
|
3904
|
+
if (theme === "retro-zine") {
|
|
3905
|
+
// Hard frame + offset green plate + cream card on every slide (retro-zine-riso).
|
|
3906
|
+
// HTML ::before/::after are not hero-gated.
|
|
3770
3907
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3771
3908
|
x: ctx.width * 0.68,
|
|
3772
3909
|
y: ctx.height * 0.18,
|
|
@@ -3782,7 +3919,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3782
3919
|
w: ctx.width * 0.26,
|
|
3783
3920
|
h: ctx.height * 0.34,
|
|
3784
3921
|
fill: { color: ctx.colors.cardBg },
|
|
3785
|
-
line: { color: ctx.colors.text, width:
|
|
3922
|
+
line: { color: ctx.colors.text, width: 2 },
|
|
3786
3923
|
rectRadius: 0,
|
|
3787
3924
|
});
|
|
3788
3925
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -3791,24 +3928,44 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3791
3928
|
w: ctx.width - 0.2,
|
|
3792
3929
|
h: ctx.height - 0.2,
|
|
3793
3930
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3794
|
-
line: { color: ctx.colors.text, width: 2.
|
|
3931
|
+
line: { color: ctx.colors.text, width: 2.75 },
|
|
3795
3932
|
rectRadius: 0,
|
|
3796
3933
|
});
|
|
3797
3934
|
}
|
|
3798
3935
|
if (theme === "sakura-chroma") {
|
|
3799
|
-
// Hard frame
|
|
3936
|
+
// Hard frame + accent-tinted offset shadow every slide; chroma strip +
|
|
3937
|
+
// stamp orbs stay hero-gated (sakura-chroma-cassette).
|
|
3938
|
+
const shadow = 0.12;
|
|
3939
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3940
|
+
x: ctx.width - shadow,
|
|
3941
|
+
y: shadow,
|
|
3942
|
+
w: shadow,
|
|
3943
|
+
h: ctx.height - shadow,
|
|
3944
|
+
fill: { color: ctx.colors.accent, transparency: 65 },
|
|
3945
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3946
|
+
rectRadius: 0,
|
|
3947
|
+
});
|
|
3948
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3949
|
+
x: shadow,
|
|
3950
|
+
y: ctx.height - shadow,
|
|
3951
|
+
w: ctx.width - shadow,
|
|
3952
|
+
h: shadow,
|
|
3953
|
+
fill: { color: ctx.colors.accent, transparency: 65 },
|
|
3954
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3955
|
+
rectRadius: 0,
|
|
3956
|
+
});
|
|
3800
3957
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3801
3958
|
x: 0.08,
|
|
3802
3959
|
y: 0.08,
|
|
3803
|
-
w: ctx.width - 0.
|
|
3804
|
-
h: ctx.height - 0.
|
|
3960
|
+
w: ctx.width - 0.08 - shadow,
|
|
3961
|
+
h: ctx.height - 0.08 - shadow,
|
|
3805
3962
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3806
3963
|
line: { color: ctx.colors.text, width: 2 },
|
|
3807
3964
|
rectRadius: 0.06,
|
|
3808
3965
|
});
|
|
3809
3966
|
if (isHero) {
|
|
3810
3967
|
const chroma = ["E5392A", "E54489", "F09131", "3D9F47", "3F8BC4", "F0BC2A"];
|
|
3811
|
-
const stripW = ctx.width * 0.48;
|
|
3968
|
+
const stripW = (ctx.width - shadow) * 0.48;
|
|
3812
3969
|
const band = stripW / chroma.length;
|
|
3813
3970
|
for (let i = 0; i < chroma.length; i++) {
|
|
3814
3971
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -3822,10 +3979,10 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3822
3979
|
});
|
|
3823
3980
|
}
|
|
3824
3981
|
const stamps = [
|
|
3825
|
-
{ x: ctx.width - 1.85, y: 0.55, color: "E54489" },
|
|
3826
|
-
{ x: ctx.width - 1.35, y: 0.72, color: "F09131" },
|
|
3827
|
-
{ x: ctx.width - 1.6, y: 1.15, color: "3F8BC4" },
|
|
3828
|
-
{ x: ctx.width - 1.95, y: 1.05, color: "3D9F47" },
|
|
3982
|
+
{ x: ctx.width - 1.85 - shadow, y: 0.55, color: "E54489" },
|
|
3983
|
+
{ x: ctx.width - 1.35 - shadow, y: 0.72, color: "F09131" },
|
|
3984
|
+
{ x: ctx.width - 1.6 - shadow, y: 1.15, color: "3F8BC4" },
|
|
3985
|
+
{ x: ctx.width - 1.95 - shadow, y: 1.05, color: "3D9F47" },
|
|
3829
3986
|
];
|
|
3830
3987
|
for (const s of stamps) {
|
|
3831
3988
|
slide.addShape(ctx.shapeOval, {
|
|
@@ -3839,7 +3996,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3839
3996
|
}
|
|
3840
3997
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3841
3998
|
x: 0.55,
|
|
3842
|
-
y: ctx.height - 0.85,
|
|
3999
|
+
y: ctx.height - 0.85 - shadow,
|
|
3843
4000
|
w: 0.7,
|
|
3844
4001
|
h: 0.28,
|
|
3845
4002
|
fill: { color: ctx.colors.accent },
|
|
@@ -3849,14 +4006,34 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3849
4006
|
}
|
|
3850
4007
|
}
|
|
3851
4008
|
if (theme === "daisy-days") {
|
|
3852
|
-
//
|
|
4009
|
+
// Hard frame + charcoal offset shadow + pastel dots + daisy/pill on every
|
|
4010
|
+
// slide (daisy-days-pastel ::before/::after are not hero-gated).
|
|
4011
|
+
const shadow = 0.08;
|
|
4012
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4013
|
+
x: ctx.width - shadow,
|
|
4014
|
+
y: shadow,
|
|
4015
|
+
w: shadow,
|
|
4016
|
+
h: ctx.height - shadow,
|
|
4017
|
+
fill: { color: "2D2D2D" },
|
|
4018
|
+
line: { color: "2D2D2D", width: 0 },
|
|
4019
|
+
rectRadius: 0,
|
|
4020
|
+
});
|
|
4021
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4022
|
+
x: shadow,
|
|
4023
|
+
y: ctx.height - shadow,
|
|
4024
|
+
w: ctx.width - shadow,
|
|
4025
|
+
h: shadow,
|
|
4026
|
+
fill: { color: "2D2D2D" },
|
|
4027
|
+
line: { color: "2D2D2D", width: 0 },
|
|
4028
|
+
rectRadius: 0,
|
|
4029
|
+
});
|
|
3853
4030
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3854
4031
|
x: 0.1,
|
|
3855
4032
|
y: 0.1,
|
|
3856
4033
|
w: ctx.width - 0.2,
|
|
3857
4034
|
h: ctx.height - 0.2,
|
|
3858
4035
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3859
|
-
line: { color: "2D2D2D", width: 2.
|
|
4036
|
+
line: { color: "2D2D2D", width: 2.75 },
|
|
3860
4037
|
rectRadius: 0.28,
|
|
3861
4038
|
});
|
|
3862
4039
|
const dots = [
|
|
@@ -3875,40 +4052,58 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3875
4052
|
line: { color: d.color, width: 0 },
|
|
3876
4053
|
});
|
|
3877
4054
|
}
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
});
|
|
3896
|
-
}
|
|
4055
|
+
slide.addShape(ctx.shapeOval, {
|
|
4056
|
+
x: ctx.width - 1.55,
|
|
4057
|
+
y: 0.55,
|
|
4058
|
+
w: 0.7,
|
|
4059
|
+
h: 0.7,
|
|
4060
|
+
fill: { color: "FDE68A" },
|
|
4061
|
+
line: { color: "2D2D2D", width: 2 },
|
|
4062
|
+
});
|
|
4063
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4064
|
+
x: 0.55,
|
|
4065
|
+
y: ctx.height - 0.95,
|
|
4066
|
+
w: 0.95,
|
|
4067
|
+
h: 0.36,
|
|
4068
|
+
fill: { color: "A8D8F0" },
|
|
4069
|
+
line: { color: "2D2D2D", width: 2 },
|
|
4070
|
+
rectRadius: 0.18,
|
|
4071
|
+
});
|
|
3897
4072
|
}
|
|
3898
4073
|
if (theme === "block-frame") {
|
|
3899
|
-
// Hard neobrutalist frame
|
|
4074
|
+
// Hard neobrutalist frame + 8px ink offset shadow every slide; pastel
|
|
4075
|
+
// offset blocks stay hero-gated (block-frame-brutal).
|
|
4076
|
+
const shadow = 0.1;
|
|
4077
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4078
|
+
x: ctx.width - shadow,
|
|
4079
|
+
y: shadow,
|
|
4080
|
+
w: shadow,
|
|
4081
|
+
h: ctx.height - shadow,
|
|
4082
|
+
fill: { color: "000000" },
|
|
4083
|
+
line: { color: "000000", width: 0 },
|
|
4084
|
+
rectRadius: 0,
|
|
4085
|
+
});
|
|
4086
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4087
|
+
x: shadow,
|
|
4088
|
+
y: ctx.height - shadow,
|
|
4089
|
+
w: ctx.width - shadow,
|
|
4090
|
+
h: shadow,
|
|
4091
|
+
fill: { color: "000000" },
|
|
4092
|
+
line: { color: "000000", width: 0 },
|
|
4093
|
+
rectRadius: 0,
|
|
4094
|
+
});
|
|
3900
4095
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3901
4096
|
x: 0.1,
|
|
3902
4097
|
y: 0.1,
|
|
3903
|
-
w: ctx.width - 0.
|
|
3904
|
-
h: ctx.height - 0.
|
|
4098
|
+
w: ctx.width - 0.1 - shadow,
|
|
4099
|
+
h: ctx.height - 0.1 - shadow,
|
|
3905
4100
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3906
4101
|
line: { color: "000000", width: 3.5 },
|
|
3907
4102
|
rectRadius: 0,
|
|
3908
4103
|
});
|
|
3909
4104
|
if (isHero) {
|
|
3910
4105
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3911
|
-
x: ctx.width * 0.72,
|
|
4106
|
+
x: ctx.width * 0.72 - shadow,
|
|
3912
4107
|
y: ctx.height * 0.12,
|
|
3913
4108
|
w: ctx.width * 0.28,
|
|
3914
4109
|
h: ctx.height * 0.18,
|
|
@@ -4450,15 +4645,16 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4450
4645
|
rectRadius: 0,
|
|
4451
4646
|
});
|
|
4452
4647
|
}
|
|
4453
|
-
if (theme === "stencil-tablet"
|
|
4454
|
-
//
|
|
4648
|
+
if (theme === "stencil-tablet") {
|
|
4649
|
+
// Hard frame + earth tablet blocks on every slide (stencil-tablet-earth).
|
|
4650
|
+
// HTML ::before/::after are not hero-gated.
|
|
4455
4651
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4456
4652
|
x: 0.1,
|
|
4457
4653
|
y: 0.1,
|
|
4458
4654
|
w: ctx.width - 0.2,
|
|
4459
4655
|
h: ctx.height - 0.2,
|
|
4460
4656
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4461
|
-
line: { color: "000000", width: 2 },
|
|
4657
|
+
line: { color: "000000", width: 2.25 },
|
|
4462
4658
|
rectRadius: 0,
|
|
4463
4659
|
});
|
|
4464
4660
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -4467,7 +4663,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4467
4663
|
w: ctx.width * 0.18,
|
|
4468
4664
|
h: ctx.height * 0.22,
|
|
4469
4665
|
fill: { color: ctx.colors.accent },
|
|
4470
|
-
line: { color: "000000", width: 1.
|
|
4666
|
+
line: { color: "000000", width: 1.75 },
|
|
4471
4667
|
rectRadius: 0.22,
|
|
4472
4668
|
});
|
|
4473
4669
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -4476,7 +4672,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4476
4672
|
w: ctx.width * 0.14,
|
|
4477
4673
|
h: ctx.height * 0.18,
|
|
4478
4674
|
fill: { color: ctx.colors.accent2 },
|
|
4479
|
-
line: { color: "000000", width: 1.
|
|
4675
|
+
line: { color: "000000", width: 1.75 },
|
|
4480
4676
|
rectRadius: 0.2,
|
|
4481
4677
|
});
|
|
4482
4678
|
}
|