@presentation-md/export 1.16.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 +214 -55
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -8,6 +8,18 @@ function cardStroke(ctx, opts = {}) {
|
|
|
8
8
|
if (ctx.themeName === "daisy-days") {
|
|
9
9
|
return { color: "2D2D2D", width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
|
|
10
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
|
+
}
|
|
11
23
|
// stencil-tablet-earth / retro-zine-riso cards: 2px hard ink
|
|
12
24
|
if (ctx.themeName === "stencil-tablet" || ctx.themeName === "retro-zine") {
|
|
13
25
|
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
@@ -36,9 +48,15 @@ function cardRadius(ctx) {
|
|
|
36
48
|
// stencil-tablet-earth cards: border-radius 24px ≈ 0.25"
|
|
37
49
|
if (ctx.themeName === "stencil-tablet")
|
|
38
50
|
return 0.25;
|
|
39
|
-
// retro-zine-riso cards: square
|
|
40
|
-
if (ctx.themeName === "retro-zine"
|
|
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") {
|
|
41
55
|
return 0;
|
|
56
|
+
}
|
|
57
|
+
// sakura-chroma-cassette cards: border-radius 4px ≈ 0.04"
|
|
58
|
+
if (ctx.themeName === "sakura-chroma")
|
|
59
|
+
return 0.04;
|
|
42
60
|
return 0.06;
|
|
43
61
|
}
|
|
44
62
|
/**
|
|
@@ -2538,12 +2556,32 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2538
2556
|
});
|
|
2539
2557
|
}
|
|
2540
2558
|
if (theme === "brutalist-acid") {
|
|
2541
|
-
// 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
|
+
});
|
|
2542
2580
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2543
2581
|
x: 0.1,
|
|
2544
2582
|
y: 0.1,
|
|
2545
|
-
w: ctx.width - 0.
|
|
2546
|
-
h: ctx.height - 0.
|
|
2583
|
+
w: ctx.width - 0.1 - shadow,
|
|
2584
|
+
h: ctx.height - 0.1 - shadow,
|
|
2547
2585
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2548
2586
|
line: { color: ctx.colors.accent, width: 2.5 },
|
|
2549
2587
|
rectRadius: 0,
|
|
@@ -3236,13 +3274,33 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3236
3274
|
}
|
|
3237
3275
|
}
|
|
3238
3276
|
if (theme === "neo-grid-bold") {
|
|
3239
|
-
// 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
|
+
});
|
|
3240
3298
|
for (let i = 1; i < 10; i++) {
|
|
3241
3299
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3242
3300
|
x: (ctx.width / 10) * i,
|
|
3243
3301
|
y: 0,
|
|
3244
3302
|
w: 0.012,
|
|
3245
|
-
h: ctx.height,
|
|
3303
|
+
h: ctx.height - shadow,
|
|
3246
3304
|
fill: { color: ctx.colors.text, transparency: 85 },
|
|
3247
3305
|
line: { color: ctx.colors.text, width: 0 },
|
|
3248
3306
|
rectRadius: 0,
|
|
@@ -3252,7 +3310,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3252
3310
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3253
3311
|
x: 0,
|
|
3254
3312
|
y: (ctx.height / 6) * i,
|
|
3255
|
-
w: ctx.width,
|
|
3313
|
+
w: ctx.width - shadow,
|
|
3256
3314
|
h: 0.012,
|
|
3257
3315
|
fill: { color: ctx.colors.text, transparency: 85 },
|
|
3258
3316
|
line: { color: ctx.colors.text, width: 0 },
|
|
@@ -3262,14 +3320,14 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3262
3320
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3263
3321
|
x: 0.08,
|
|
3264
3322
|
y: 0.08,
|
|
3265
|
-
w: ctx.width - 0.
|
|
3266
|
-
h: ctx.height - 0.
|
|
3323
|
+
w: ctx.width - 0.08 - shadow,
|
|
3324
|
+
h: ctx.height - 0.08 - shadow,
|
|
3267
3325
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3268
3326
|
line: { color: ctx.colors.text, width: 2.5 },
|
|
3269
3327
|
rectRadius: 0,
|
|
3270
3328
|
});
|
|
3271
3329
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3272
|
-
x: ctx.width - 1.55,
|
|
3330
|
+
x: ctx.width - 1.55 - shadow,
|
|
3273
3331
|
y: 0.55,
|
|
3274
3332
|
w: 0.95,
|
|
3275
3333
|
h: 0.95,
|
|
@@ -3473,13 +3531,32 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3473
3531
|
});
|
|
3474
3532
|
}
|
|
3475
3533
|
if (theme === "brutalist-mono") {
|
|
3476
|
-
// 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
|
+
});
|
|
3477
3554
|
for (let i = 1; i < 16; i++) {
|
|
3478
3555
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3479
3556
|
x: (ctx.width / 16) * i,
|
|
3480
3557
|
y: 0,
|
|
3481
3558
|
w: 0.01,
|
|
3482
|
-
h: ctx.height,
|
|
3559
|
+
h: ctx.height - shadow,
|
|
3483
3560
|
fill: { color: ctx.colors.border, transparency: 55 },
|
|
3484
3561
|
line: { color: ctx.colors.border, width: 0 },
|
|
3485
3562
|
rectRadius: 0,
|
|
@@ -3489,7 +3566,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3489
3566
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3490
3567
|
x: 0,
|
|
3491
3568
|
y: (ctx.height / 10) * i,
|
|
3492
|
-
w: ctx.width,
|
|
3569
|
+
w: ctx.width - shadow,
|
|
3493
3570
|
h: 0.01,
|
|
3494
3571
|
fill: { color: ctx.colors.border, transparency: 55 },
|
|
3495
3572
|
line: { color: ctx.colors.border, width: 0 },
|
|
@@ -3499,42 +3576,64 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3499
3576
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3500
3577
|
x: 0.1,
|
|
3501
3578
|
y: 0.1,
|
|
3502
|
-
w: ctx.width - 0.
|
|
3503
|
-
h: ctx.height - 0.
|
|
3579
|
+
w: ctx.width - 0.1 - shadow,
|
|
3580
|
+
h: ctx.height - 0.1 - shadow,
|
|
3504
3581
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3505
3582
|
line: { color: ctx.colors.text, width: 2.5 },
|
|
3506
3583
|
rectRadius: 0,
|
|
3507
3584
|
});
|
|
3508
3585
|
}
|
|
3509
3586
|
if (theme === "creative-mode") {
|
|
3510
|
-
// 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;
|
|
3511
3590
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3512
|
-
x:
|
|
3513
|
-
y:
|
|
3514
|
-
w:
|
|
3515
|
-
h: ctx.height -
|
|
3516
|
-
fill: { color: ctx.colors.
|
|
3517
|
-
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 },
|
|
3518
3597
|
rectRadius: 0,
|
|
3519
3598
|
});
|
|
3520
3599
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3521
|
-
x:
|
|
3522
|
-
y:
|
|
3523
|
-
w:
|
|
3524
|
-
h:
|
|
3525
|
-
fill: { color: ctx.colors.
|
|
3526
|
-
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 },
|
|
3527
3606
|
rectRadius: 0,
|
|
3528
3607
|
});
|
|
3529
3608
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3530
|
-
x:
|
|
3531
|
-
y:
|
|
3532
|
-
w: 0.
|
|
3533
|
-
h: 0.
|
|
3534
|
-
fill: { color: ctx.colors.
|
|
3535
|
-
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 },
|
|
3536
3615
|
rectRadius: 0,
|
|
3537
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
|
+
}
|
|
3538
3637
|
}
|
|
3539
3638
|
if (theme === "biennale-yellow") {
|
|
3540
3639
|
// Sun orb + top hairline (biennale-yellow-sun).
|
|
@@ -3725,11 +3824,31 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3725
3824
|
});
|
|
3726
3825
|
}
|
|
3727
3826
|
if (theme === "raw-grid") {
|
|
3728
|
-
// 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
|
+
});
|
|
3729
3848
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3730
3849
|
x: 0,
|
|
3731
3850
|
y: 0,
|
|
3732
|
-
w: ctx.width,
|
|
3851
|
+
w: ctx.width - shadow,
|
|
3733
3852
|
h: ctx.height * 0.28,
|
|
3734
3853
|
fill: { color: "F2D4CF" },
|
|
3735
3854
|
line: { color: "F2D4CF", width: 0 },
|
|
@@ -3739,7 +3858,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3739
3858
|
x: 0,
|
|
3740
3859
|
y: 0,
|
|
3741
3860
|
w: ctx.width * 0.22,
|
|
3742
|
-
h: ctx.height,
|
|
3861
|
+
h: ctx.height - shadow,
|
|
3743
3862
|
fill: { color: "E5EDD6" },
|
|
3744
3863
|
line: { color: "E5EDD6", width: 0 },
|
|
3745
3864
|
rectRadius: 0,
|
|
@@ -3757,7 +3876,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3757
3876
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3758
3877
|
x: 0,
|
|
3759
3878
|
y: ctx.height * 0.28,
|
|
3760
|
-
w: ctx.width,
|
|
3879
|
+
w: ctx.width - shadow,
|
|
3761
3880
|
h: 0.035,
|
|
3762
3881
|
fill: { color: "0A0A0A" },
|
|
3763
3882
|
line: { color: "0A0A0A", width: 0 },
|
|
@@ -3767,7 +3886,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3767
3886
|
x: ctx.width * 0.22,
|
|
3768
3887
|
y: 0,
|
|
3769
3888
|
w: 0.035,
|
|
3770
|
-
h: ctx.height,
|
|
3889
|
+
h: ctx.height - shadow,
|
|
3771
3890
|
fill: { color: "0A0A0A" },
|
|
3772
3891
|
line: { color: "0A0A0A", width: 0 },
|
|
3773
3892
|
rectRadius: 0,
|
|
@@ -3775,8 +3894,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3775
3894
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3776
3895
|
x: 0.08,
|
|
3777
3896
|
y: 0.08,
|
|
3778
|
-
w: ctx.width - 0.
|
|
3779
|
-
h: ctx.height - 0.
|
|
3897
|
+
w: ctx.width - 0.08 - shadow,
|
|
3898
|
+
h: ctx.height - 0.08 - shadow,
|
|
3780
3899
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3781
3900
|
line: { color: "0A0A0A", width: 2.5 },
|
|
3782
3901
|
rectRadius: 0,
|
|
@@ -3814,19 +3933,39 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3814
3933
|
});
|
|
3815
3934
|
}
|
|
3816
3935
|
if (theme === "sakura-chroma") {
|
|
3817
|
-
// 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
|
+
});
|
|
3818
3957
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3819
3958
|
x: 0.08,
|
|
3820
3959
|
y: 0.08,
|
|
3821
|
-
w: ctx.width - 0.
|
|
3822
|
-
h: ctx.height - 0.
|
|
3960
|
+
w: ctx.width - 0.08 - shadow,
|
|
3961
|
+
h: ctx.height - 0.08 - shadow,
|
|
3823
3962
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3824
3963
|
line: { color: ctx.colors.text, width: 2 },
|
|
3825
3964
|
rectRadius: 0.06,
|
|
3826
3965
|
});
|
|
3827
3966
|
if (isHero) {
|
|
3828
3967
|
const chroma = ["E5392A", "E54489", "F09131", "3D9F47", "3F8BC4", "F0BC2A"];
|
|
3829
|
-
const stripW = ctx.width * 0.48;
|
|
3968
|
+
const stripW = (ctx.width - shadow) * 0.48;
|
|
3830
3969
|
const band = stripW / chroma.length;
|
|
3831
3970
|
for (let i = 0; i < chroma.length; i++) {
|
|
3832
3971
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -3840,10 +3979,10 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3840
3979
|
});
|
|
3841
3980
|
}
|
|
3842
3981
|
const stamps = [
|
|
3843
|
-
{ x: ctx.width - 1.85, y: 0.55, color: "E54489" },
|
|
3844
|
-
{ x: ctx.width - 1.35, y: 0.72, color: "F09131" },
|
|
3845
|
-
{ x: ctx.width - 1.6, y: 1.15, color: "3F8BC4" },
|
|
3846
|
-
{ 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" },
|
|
3847
3986
|
];
|
|
3848
3987
|
for (const s of stamps) {
|
|
3849
3988
|
slide.addShape(ctx.shapeOval, {
|
|
@@ -3857,7 +3996,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3857
3996
|
}
|
|
3858
3997
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3859
3998
|
x: 0.55,
|
|
3860
|
-
y: ctx.height - 0.85,
|
|
3999
|
+
y: ctx.height - 0.85 - shadow,
|
|
3861
4000
|
w: 0.7,
|
|
3862
4001
|
h: 0.28,
|
|
3863
4002
|
fill: { color: ctx.colors.accent },
|
|
@@ -3932,19 +4071,39 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3932
4071
|
});
|
|
3933
4072
|
}
|
|
3934
4073
|
if (theme === "block-frame") {
|
|
3935
|
-
// 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
|
+
});
|
|
3936
4095
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3937
4096
|
x: 0.1,
|
|
3938
4097
|
y: 0.1,
|
|
3939
|
-
w: ctx.width - 0.
|
|
3940
|
-
h: ctx.height - 0.
|
|
4098
|
+
w: ctx.width - 0.1 - shadow,
|
|
4099
|
+
h: ctx.height - 0.1 - shadow,
|
|
3941
4100
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3942
4101
|
line: { color: "000000", width: 3.5 },
|
|
3943
4102
|
rectRadius: 0,
|
|
3944
4103
|
});
|
|
3945
4104
|
if (isHero) {
|
|
3946
4105
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3947
|
-
x: ctx.width * 0.72,
|
|
4106
|
+
x: ctx.width * 0.72 - shadow,
|
|
3948
4107
|
y: ctx.height * 0.12,
|
|
3949
4108
|
w: ctx.width * 0.28,
|
|
3950
4109
|
h: ctx.height * 0.18,
|