@presentation-md/export 1.23.33 → 1.24.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/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/layouts.js +346 -110
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
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
|
+
return null;
|
|
13
|
+
}
|
|
2
14
|
/** Candy-pop cards use hard ink strokes + plump radius (candy-blob `.card`). */
|
|
3
15
|
function cardStroke(ctx, opts = {}) {
|
|
4
16
|
if (ctx.themeName === "candy-pop") {
|
|
@@ -68,9 +80,9 @@ function cardStroke(ctx, opts = {}) {
|
|
|
68
80
|
if (ctx.themeName === "mat") {
|
|
69
81
|
return { color: "1E2820", width: opts.hero || opts.highlighted ? 1.5 : 1.25 };
|
|
70
82
|
}
|
|
71
|
-
// hard-bento (genz-bento) cards: 2.5px ink
|
|
83
|
+
// hard-bento (genz-bento) cards: 2.5px ink + hard offset
|
|
72
84
|
if (ctx.themeName === "genz-bento") {
|
|
73
|
-
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.
|
|
85
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.9 : 2.65 };
|
|
74
86
|
}
|
|
75
87
|
// acid-block (brutalist-acid) cards: 2px accent, square
|
|
76
88
|
if (ctx.themeName === "brutalist-acid") {
|
|
@@ -80,15 +92,15 @@ function cardStroke(ctx, opts = {}) {
|
|
|
80
92
|
if (ctx.themeName === "bauhaus") {
|
|
81
93
|
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
82
94
|
}
|
|
83
|
-
// neo-grid-panels / bold-poster-ink / tri-tone-blocks cards:
|
|
95
|
+
// neo-grid-panels / bold-poster-ink / tri-tone-blocks cards: hard ink, square
|
|
84
96
|
if (ctx.themeName === "neo-grid-bold" ||
|
|
85
97
|
ctx.themeName === "bold-poster" ||
|
|
86
98
|
ctx.themeName === "editorial-tri-tone") {
|
|
87
|
-
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.
|
|
99
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.5 : 2.25 };
|
|
88
100
|
}
|
|
89
|
-
// raw-grid-brutal cards: 3px ink, square
|
|
101
|
+
// raw-grid-brutal cards: 3px ink + hard offset (via cardHardOffset), square
|
|
90
102
|
if (ctx.themeName === "raw-grid") {
|
|
91
|
-
return { color: "0A0A0A", width: opts.hero || opts.highlighted ? 3.
|
|
103
|
+
return { color: "0A0A0A", width: opts.hero || opts.highlighted ? 3.5 : 3.25 };
|
|
92
104
|
}
|
|
93
105
|
// creative-voltage-split cards: 1px neon accent, square
|
|
94
106
|
if (ctx.themeName === "creative-voltage") {
|
|
@@ -266,6 +278,19 @@ function cardStroke(ctx, opts = {}) {
|
|
|
266
278
|
function drawCardFace(slide, ctx, x, y, w, h, fill, opts = {}) {
|
|
267
279
|
const stroke = cardStroke(ctx, opts);
|
|
268
280
|
const radius = cardRadius(ctx);
|
|
281
|
+
const offset = cardHardOffset(ctx);
|
|
282
|
+
if (offset && !(stroke.topRule || stroke.leftRule)) {
|
|
283
|
+
// Paint hard offset plate first (HTML box-shadow Nx N 0 ink).
|
|
284
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
285
|
+
x: x + offset.size,
|
|
286
|
+
y: y + offset.size,
|
|
287
|
+
w,
|
|
288
|
+
h,
|
|
289
|
+
fill: { color: offset.color },
|
|
290
|
+
line: { color: offset.color, width: 0 },
|
|
291
|
+
rectRadius: radius,
|
|
292
|
+
});
|
|
293
|
+
}
|
|
269
294
|
if (stroke.topRule || stroke.leftRule) {
|
|
270
295
|
slide.addShape(ctx.shapeRoundRect, {
|
|
271
296
|
x,
|
|
@@ -623,44 +648,90 @@ function renderHero(slide, ctx, data) {
|
|
|
623
648
|
? "solid"
|
|
624
649
|
: "outline";
|
|
625
650
|
const glyph = action.icon ? iconMarkerGlyph(action.icon) : "";
|
|
626
|
-
const
|
|
627
|
-
const btnW = Math.min(3.
|
|
651
|
+
const hasIcon = Boolean(glyph);
|
|
652
|
+
const btnW = Math.min(3.9, Math.max(2.2, action.label.length * 0.13 + 1.2 + (hasIcon ? 0.45 : 0)));
|
|
628
653
|
if (bx + btnW > x + w && i > 0) {
|
|
629
654
|
bx = x;
|
|
630
655
|
y += btnH + gap;
|
|
631
656
|
}
|
|
632
657
|
const isOutline = style === "outline" || style === "ghost";
|
|
633
|
-
|
|
634
|
-
|
|
658
|
+
const by = y + 0.1;
|
|
659
|
+
const fillColor = isOutline
|
|
660
|
+
? inverted
|
|
661
|
+
? "C8FF00"
|
|
662
|
+
: ctx.colors.bg
|
|
663
|
+
: inverted
|
|
664
|
+
? "0A0A0A"
|
|
665
|
+
: ctx.colors.accent;
|
|
666
|
+
const textColor = isOutline
|
|
667
|
+
? inverted
|
|
668
|
+
? "0A0A0A"
|
|
669
|
+
: ctx.colors.text
|
|
670
|
+
: inverted
|
|
671
|
+
? "C8FF00"
|
|
672
|
+
: ctx.colors.bg;
|
|
673
|
+
// Native pill shell (editable shape) + optional icon well — beats text-only glyph prefix.
|
|
674
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
635
675
|
x: bx,
|
|
636
|
-
y:
|
|
676
|
+
y: by,
|
|
637
677
|
w: btnW,
|
|
638
678
|
h: btnH,
|
|
639
|
-
fill: {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
679
|
+
fill: { color: fillColor },
|
|
680
|
+
line: isOutline
|
|
681
|
+
? { color: inverted ? "0A0A0A" : ctx.colors.text, width: 1.5 }
|
|
682
|
+
: { color: fillColor, width: 0 },
|
|
683
|
+
rectRadius: 0.25,
|
|
684
|
+
});
|
|
685
|
+
if (hasIcon) {
|
|
686
|
+
const chip = 0.34;
|
|
687
|
+
const chipX = bx + 0.1;
|
|
688
|
+
const chipY = by + (btnH - chip) / 2;
|
|
689
|
+
const chipFill = isOutline
|
|
649
690
|
? inverted
|
|
650
691
|
? "0A0A0A"
|
|
651
|
-
: ctx.colors.
|
|
692
|
+
: ctx.colors.accent
|
|
652
693
|
: inverted
|
|
653
694
|
? "C8FF00"
|
|
654
|
-
: ctx.colors.bg
|
|
695
|
+
: ctx.colors.bg;
|
|
696
|
+
const chipInk = isOutline
|
|
697
|
+
? inverted
|
|
698
|
+
? "C8FF00"
|
|
699
|
+
: ctx.colors.bg
|
|
700
|
+
: inverted
|
|
701
|
+
? "0A0A0A"
|
|
702
|
+
: ctx.colors.accent;
|
|
703
|
+
slide.addShape(ctx.shapeOval, {
|
|
704
|
+
x: chipX,
|
|
705
|
+
y: chipY,
|
|
706
|
+
w: chip,
|
|
707
|
+
h: chip,
|
|
708
|
+
fill: { color: chipFill },
|
|
709
|
+
line: { color: chipFill, width: 0 },
|
|
710
|
+
});
|
|
711
|
+
slide.addText(glyph, {
|
|
712
|
+
x: chipX,
|
|
713
|
+
y: chipY,
|
|
714
|
+
w: chip,
|
|
715
|
+
h: chip,
|
|
716
|
+
fontFace: ctx.fonts.body,
|
|
717
|
+
fontSize: 11,
|
|
718
|
+
bold: true,
|
|
719
|
+
color: chipInk,
|
|
720
|
+
align: "center",
|
|
721
|
+
valign: "middle",
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
slide.addText(action.label, {
|
|
725
|
+
x: bx + (hasIcon ? 0.5 : 0.12),
|
|
726
|
+
y: by,
|
|
727
|
+
w: btnW - (hasIcon ? 0.58 : 0.24),
|
|
728
|
+
h: btnH,
|
|
655
729
|
fontFace: ctx.fonts.body,
|
|
656
730
|
fontSize: 15,
|
|
657
731
|
bold: true,
|
|
658
|
-
|
|
732
|
+
color: textColor,
|
|
733
|
+
align: hasIcon ? "left" : "center",
|
|
659
734
|
valign: "middle",
|
|
660
|
-
rectRadius: 0.25,
|
|
661
|
-
line: isOutline
|
|
662
|
-
? { color: inverted ? "0A0A0A" : ctx.colors.text, width: 1.5 }
|
|
663
|
-
: undefined,
|
|
664
735
|
...(action.href ? { hyperlink: { url: action.href } } : {}),
|
|
665
736
|
});
|
|
666
737
|
bx += btnW + gap;
|
|
@@ -844,6 +915,10 @@ function iconMarkerGlyph(icon) {
|
|
|
844
915
|
[/linkedin/, "in"],
|
|
845
916
|
[/play|demo/, "▶"],
|
|
846
917
|
[/download|arrow-down/, "↓"],
|
|
918
|
+
[/calendar|schedule|book/, "▦"],
|
|
919
|
+
[/envelope|email|mail/, "✉"],
|
|
920
|
+
[/book-open|book|docs|read/, "☰"],
|
|
921
|
+
[/print/, "⎙"],
|
|
847
922
|
];
|
|
848
923
|
for (const [re, glyph] of map) {
|
|
849
924
|
if (re.test(raw))
|
|
@@ -2746,6 +2821,16 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2746
2821
|
title: ctx.title,
|
|
2747
2822
|
marquee: ctx.marquee,
|
|
2748
2823
|
});
|
|
2824
|
+
// Top butter rule (HTML border-top on ::before).
|
|
2825
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2826
|
+
x: 0,
|
|
2827
|
+
y: ctx.height - 0.58,
|
|
2828
|
+
w: ctx.width,
|
|
2829
|
+
h: 0.045,
|
|
2830
|
+
fill: { color: ctx.colors.text },
|
|
2831
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
2832
|
+
rectRadius: 0,
|
|
2833
|
+
});
|
|
2749
2834
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2750
2835
|
x: 0,
|
|
2751
2836
|
y: ctx.height - 0.55,
|
|
@@ -2761,25 +2846,36 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2761
2846
|
w: ctx.width - 0.3,
|
|
2762
2847
|
h: 0.45,
|
|
2763
2848
|
fontFace: ctx.fonts.heading,
|
|
2764
|
-
fontSize:
|
|
2849
|
+
fontSize: 13,
|
|
2765
2850
|
bold: true,
|
|
2766
2851
|
color: ctx.colors.text,
|
|
2767
2852
|
align: "left",
|
|
2768
2853
|
valign: "middle",
|
|
2854
|
+
charSpacing: 2,
|
|
2769
2855
|
});
|
|
2770
2856
|
}
|
|
2771
2857
|
}
|
|
2772
2858
|
if (theme === "aurora-glass") {
|
|
2773
|
-
// Dual aurora washes + glass frame (aurora-glass).
|
|
2859
|
+
// Dual aurora washes + glass frame + specular rim (aurora-glass).
|
|
2774
2860
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2775
2861
|
x: 0.08,
|
|
2776
2862
|
y: 0.08,
|
|
2777
2863
|
w: ctx.width - 0.16,
|
|
2778
2864
|
h: ctx.height - 0.16,
|
|
2779
2865
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2780
|
-
line: { color: "FFFFFF", width:
|
|
2866
|
+
line: { color: "FFFFFF", width: 1.05 },
|
|
2781
2867
|
rectRadius: 0.14,
|
|
2782
2868
|
});
|
|
2869
|
+
// Inner frosted rim (backdrop-filter stand-in).
|
|
2870
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2871
|
+
x: 0.18,
|
|
2872
|
+
y: 0.18,
|
|
2873
|
+
w: ctx.width - 0.36,
|
|
2874
|
+
h: ctx.height - 0.36,
|
|
2875
|
+
fill: { color: "FFFFFF", transparency: 94 },
|
|
2876
|
+
line: { color: "FFFFFF", width: 0.55 },
|
|
2877
|
+
rectRadius: 0.12,
|
|
2878
|
+
});
|
|
2783
2879
|
slide.addShape(ctx.shapeOval, {
|
|
2784
2880
|
x: ctx.width * 0.55,
|
|
2785
2881
|
y: -ctx.height * 0.25,
|
|
@@ -2804,18 +2900,47 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2804
2900
|
fill: { color: ctx.colors.accent, transparency: 72 },
|
|
2805
2901
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2806
2902
|
});
|
|
2903
|
+
// Specular top hairline + soft floor shadow (inset white / drop shadow).
|
|
2904
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2905
|
+
x: 0.22,
|
|
2906
|
+
y: 0.14,
|
|
2907
|
+
w: ctx.width - 0.44,
|
|
2908
|
+
h: 0.025,
|
|
2909
|
+
fill: { color: "FFFFFF", transparency: 62 },
|
|
2910
|
+
line: { color: "FFFFFF", width: 0 },
|
|
2911
|
+
rectRadius: 0,
|
|
2912
|
+
});
|
|
2913
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2914
|
+
x: 0.4,
|
|
2915
|
+
y: ctx.height - 0.16,
|
|
2916
|
+
w: ctx.width - 0.8,
|
|
2917
|
+
h: 0.07,
|
|
2918
|
+
fill: { color: "000000", transparency: 78 },
|
|
2919
|
+
line: { color: "000000", width: 0 },
|
|
2920
|
+
rectRadius: 0.04,
|
|
2921
|
+
});
|
|
2807
2922
|
}
|
|
2808
2923
|
if (theme === "glassmorphism") {
|
|
2809
|
-
// Soft mist blob + cyan orb + glass frame (glass-mist).
|
|
2924
|
+
// Soft mist blob + cyan orb + glass frame + specular (glass-mist).
|
|
2810
2925
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2811
2926
|
x: 0.1,
|
|
2812
2927
|
y: 0.1,
|
|
2813
2928
|
w: ctx.width - 0.2,
|
|
2814
2929
|
h: ctx.height - 0.2,
|
|
2815
2930
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2816
|
-
line: { color: ctx.colors.accent, width: 1 },
|
|
2931
|
+
line: { color: ctx.colors.accent, width: 1.1 },
|
|
2817
2932
|
rectRadius: 0.16,
|
|
2818
2933
|
});
|
|
2934
|
+
// Frosted inner plate (card-level glass stand-in on the slide chrome).
|
|
2935
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2936
|
+
x: 0.22,
|
|
2937
|
+
y: 0.22,
|
|
2938
|
+
w: ctx.width - 0.44,
|
|
2939
|
+
h: ctx.height - 0.44,
|
|
2940
|
+
fill: { color: "FFFFFF", transparency: 88 },
|
|
2941
|
+
line: { color: "FFFFFF", width: 0.7 },
|
|
2942
|
+
rectRadius: 0.14,
|
|
2943
|
+
});
|
|
2819
2944
|
slide.addShape(ctx.shapeOval, {
|
|
2820
2945
|
x: -ctx.width * 0.1,
|
|
2821
2946
|
y: -ctx.height * 0.2,
|
|
@@ -2832,6 +2957,24 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2832
2957
|
fill: { color: ctx.colors.accent2, transparency: 64 },
|
|
2833
2958
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2834
2959
|
});
|
|
2960
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2961
|
+
x: 0.28,
|
|
2962
|
+
y: 0.16,
|
|
2963
|
+
w: ctx.width - 0.56,
|
|
2964
|
+
h: 0.022,
|
|
2965
|
+
fill: { color: "FFFFFF", transparency: 35 },
|
|
2966
|
+
line: { color: "FFFFFF", width: 0 },
|
|
2967
|
+
rectRadius: 0,
|
|
2968
|
+
});
|
|
2969
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2970
|
+
x: 0.45,
|
|
2971
|
+
y: ctx.height - 0.18,
|
|
2972
|
+
w: ctx.width - 0.9,
|
|
2973
|
+
h: 0.06,
|
|
2974
|
+
fill: { color: "0F1333", transparency: 88 },
|
|
2975
|
+
line: { color: "0F1333", width: 0 },
|
|
2976
|
+
rectRadius: 0.03,
|
|
2977
|
+
});
|
|
2835
2978
|
}
|
|
2836
2979
|
if (theme === "luxury-minimalist") {
|
|
2837
2980
|
// Quiet luxe border on content; gold hairline on heroes (quiet-luxe).
|
|
@@ -3272,25 +3415,25 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3272
3415
|
}
|
|
3273
3416
|
}
|
|
3274
3417
|
if (theme === "swiss-typographic") {
|
|
3275
|
-
//
|
|
3276
|
-
for (let i = 1; i <
|
|
3418
|
+
// Denser modular grid (~64px) + thicker signal-red left rail (swiss-grid).
|
|
3419
|
+
for (let i = 1; i < 20; i++) {
|
|
3277
3420
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3278
|
-
x: (ctx.width /
|
|
3421
|
+
x: (ctx.width / 20) * i,
|
|
3279
3422
|
y: 0,
|
|
3280
|
-
w: 0.
|
|
3423
|
+
w: 0.011,
|
|
3281
3424
|
h: ctx.height,
|
|
3282
|
-
fill: { color: ctx.colors.border, transparency:
|
|
3425
|
+
fill: { color: ctx.colors.border, transparency: 48 },
|
|
3283
3426
|
line: { color: ctx.colors.border, width: 0 },
|
|
3284
3427
|
rectRadius: 0,
|
|
3285
3428
|
});
|
|
3286
3429
|
}
|
|
3287
|
-
for (let i = 1; i <
|
|
3430
|
+
for (let i = 1; i < 12; i++) {
|
|
3288
3431
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3289
3432
|
x: 0,
|
|
3290
|
-
y: (ctx.height /
|
|
3433
|
+
y: (ctx.height / 12) * i,
|
|
3291
3434
|
w: ctx.width,
|
|
3292
|
-
h: 0.
|
|
3293
|
-
fill: { color: ctx.colors.border, transparency:
|
|
3435
|
+
h: 0.011,
|
|
3436
|
+
fill: { color: ctx.colors.border, transparency: 48 },
|
|
3294
3437
|
line: { color: ctx.colors.border, width: 0 },
|
|
3295
3438
|
rectRadius: 0,
|
|
3296
3439
|
});
|
|
@@ -3298,12 +3441,22 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3298
3441
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3299
3442
|
x: 0,
|
|
3300
3443
|
y: 0,
|
|
3301
|
-
w: 0.
|
|
3444
|
+
w: 0.1,
|
|
3302
3445
|
h: ctx.height,
|
|
3303
3446
|
fill: { color: ctx.colors.accent },
|
|
3304
3447
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3305
3448
|
rectRadius: 0,
|
|
3306
3449
|
});
|
|
3450
|
+
// Quiet outer hairline (HTML border).
|
|
3451
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3452
|
+
x: 0.1,
|
|
3453
|
+
y: 0.08,
|
|
3454
|
+
w: ctx.width - 0.18,
|
|
3455
|
+
h: ctx.height - 0.16,
|
|
3456
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3457
|
+
line: { color: ctx.colors.border, width: 0.9 },
|
|
3458
|
+
rectRadius: 0,
|
|
3459
|
+
});
|
|
3307
3460
|
}
|
|
3308
3461
|
if (theme === "ft-editorial") {
|
|
3309
3462
|
// Broadsheet masthead + double rule + quiet outer frame + accent mid stub.
|
|
@@ -3534,6 +3687,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3534
3687
|
}
|
|
3535
3688
|
if (theme === "genz-bento") {
|
|
3536
3689
|
// Hard border + 10px offset shadow strips + accent2 corner blot (hard-bento).
|
|
3690
|
+
// Cards get 4px hard offsets via cardHardOffset.
|
|
3537
3691
|
const shadow = 0.12;
|
|
3538
3692
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3539
3693
|
x: ctx.width - shadow,
|
|
@@ -3554,22 +3708,32 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3554
3708
|
rectRadius: 0,
|
|
3555
3709
|
});
|
|
3556
3710
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3557
|
-
x: 0.
|
|
3558
|
-
y: 0.
|
|
3559
|
-
w: ctx.width - 0.
|
|
3560
|
-
h: ctx.height - 0.
|
|
3711
|
+
x: 0.1,
|
|
3712
|
+
y: 0.1,
|
|
3713
|
+
w: ctx.width - 0.2,
|
|
3714
|
+
h: ctx.height - 0.2,
|
|
3561
3715
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3562
|
-
line: { color: ctx.colors.text, width:
|
|
3716
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
3563
3717
|
rectRadius: 0,
|
|
3564
3718
|
});
|
|
3565
3719
|
slide.addShape(ctx.shapeOval, {
|
|
3566
|
-
x: ctx.width - 1.
|
|
3567
|
-
y: -0.
|
|
3568
|
-
w:
|
|
3569
|
-
h:
|
|
3570
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
3720
|
+
x: ctx.width - 1.75,
|
|
3721
|
+
y: -0.55,
|
|
3722
|
+
w: 2.05,
|
|
3723
|
+
h: 2.05,
|
|
3724
|
+
fill: { color: ctx.colors.accent2, transparency: 38 },
|
|
3571
3725
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
3572
3726
|
});
|
|
3727
|
+
// Secondary accent chip (HTML hard-bento energy).
|
|
3728
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3729
|
+
x: ctx.width - 1.35 - shadow,
|
|
3730
|
+
y: ctx.height - 0.95 - shadow,
|
|
3731
|
+
w: 0.55,
|
|
3732
|
+
h: 0.55,
|
|
3733
|
+
fill: { color: ctx.colors.accent, transparency: 12 },
|
|
3734
|
+
line: { color: ctx.colors.text, width: 2 },
|
|
3735
|
+
rectRadius: 0.08,
|
|
3736
|
+
});
|
|
3573
3737
|
}
|
|
3574
3738
|
if (theme === "heritage-editorial") {
|
|
3575
3739
|
// Parchment wash + quiet hairlines + mid stub (heritage-wash).
|
|
@@ -3888,8 +4052,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3888
4052
|
});
|
|
3889
4053
|
}
|
|
3890
4054
|
if (theme === "neo-grid-bold") {
|
|
3891
|
-
//
|
|
3892
|
-
// shadow (neo-grid-panels).
|
|
4055
|
+
// Denser modular grid (~80px) + lemon corner panel + hard 3pt border +
|
|
4056
|
+
// 8px accent offset shadow (neo-grid-panels).
|
|
3893
4057
|
const shadow = 0.1;
|
|
3894
4058
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3895
4059
|
x: ctx.width - shadow,
|
|
@@ -3909,24 +4073,24 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3909
4073
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3910
4074
|
rectRadius: 0,
|
|
3911
4075
|
});
|
|
3912
|
-
for (let i = 1; i <
|
|
4076
|
+
for (let i = 1; i < 16; i++) {
|
|
3913
4077
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3914
|
-
x: (ctx.width /
|
|
4078
|
+
x: (ctx.width / 16) * i,
|
|
3915
4079
|
y: 0,
|
|
3916
4080
|
w: 0.012,
|
|
3917
4081
|
h: ctx.height - shadow,
|
|
3918
|
-
fill: { color: ctx.colors.text, transparency:
|
|
4082
|
+
fill: { color: ctx.colors.text, transparency: 78 },
|
|
3919
4083
|
line: { color: ctx.colors.text, width: 0 },
|
|
3920
4084
|
rectRadius: 0,
|
|
3921
4085
|
});
|
|
3922
4086
|
}
|
|
3923
|
-
for (let i = 1; i <
|
|
4087
|
+
for (let i = 1; i < 9; i++) {
|
|
3924
4088
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3925
4089
|
x: 0,
|
|
3926
|
-
y: (ctx.height /
|
|
4090
|
+
y: (ctx.height / 9) * i,
|
|
3927
4091
|
w: ctx.width - shadow,
|
|
3928
4092
|
h: 0.012,
|
|
3929
|
-
fill: { color: ctx.colors.text, transparency:
|
|
4093
|
+
fill: { color: ctx.colors.text, transparency: 78 },
|
|
3930
4094
|
line: { color: ctx.colors.text, width: 0 },
|
|
3931
4095
|
rectRadius: 0,
|
|
3932
4096
|
});
|
|
@@ -3937,29 +4101,50 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3937
4101
|
w: ctx.width - 0.08 - shadow,
|
|
3938
4102
|
h: ctx.height - 0.08 - shadow,
|
|
3939
4103
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3940
|
-
line: { color: ctx.colors.text, width:
|
|
4104
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
3941
4105
|
rectRadius: 0,
|
|
3942
4106
|
});
|
|
4107
|
+
// Lemon corner panel (HTML ::after 96px) — always-on for PPTX densify.
|
|
3943
4108
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3944
|
-
x: ctx.width - 1.
|
|
3945
|
-
y: 0.
|
|
3946
|
-
w:
|
|
3947
|
-
h:
|
|
4109
|
+
x: ctx.width - 1.7 - shadow,
|
|
4110
|
+
y: 0.45,
|
|
4111
|
+
w: 1.15,
|
|
4112
|
+
h: 1.15,
|
|
3948
4113
|
fill: { color: ctx.colors.accent },
|
|
3949
4114
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3950
4115
|
rectRadius: 0,
|
|
3951
4116
|
});
|
|
4117
|
+
// Ink L registration marks (grid craft).
|
|
4118
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4119
|
+
x: 0.22,
|
|
4120
|
+
y: 0.22,
|
|
4121
|
+
w: 0.48,
|
|
4122
|
+
h: 0.028,
|
|
4123
|
+
fill: { color: ctx.colors.text, transparency: 35 },
|
|
4124
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4125
|
+
rectRadius: 0,
|
|
4126
|
+
});
|
|
4127
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4128
|
+
x: 0.22,
|
|
4129
|
+
y: 0.22,
|
|
4130
|
+
w: 0.028,
|
|
4131
|
+
h: 0.48,
|
|
4132
|
+
fill: { color: ctx.colors.text, transparency: 35 },
|
|
4133
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
4134
|
+
rectRadius: 0,
|
|
4135
|
+
});
|
|
3952
4136
|
}
|
|
3953
4137
|
if (theme === "bold-poster") {
|
|
3954
|
-
// Hard frame + offset shadow every slide; ink top bar;
|
|
4138
|
+
// Hard frame + accent-tinted offset shadow every slide; thicker ink top bar;
|
|
4139
|
+
// poster block on heroes (bold-poster-ink HTML uses accent@35% shadow).
|
|
3955
4140
|
const shadow = 0.11;
|
|
3956
4141
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3957
4142
|
x: ctx.width - shadow,
|
|
3958
4143
|
y: shadow,
|
|
3959
4144
|
w: shadow,
|
|
3960
4145
|
h: ctx.height - shadow,
|
|
3961
|
-
fill: { color: ctx.colors.
|
|
3962
|
-
line: { color: ctx.colors.
|
|
4146
|
+
fill: { color: ctx.colors.accent },
|
|
4147
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3963
4148
|
rectRadius: 0,
|
|
3964
4149
|
});
|
|
3965
4150
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -3967,8 +4152,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3967
4152
|
y: ctx.height - shadow,
|
|
3968
4153
|
w: ctx.width - shadow,
|
|
3969
4154
|
h: shadow,
|
|
3970
|
-
fill: { color: ctx.colors.
|
|
3971
|
-
line: { color: ctx.colors.
|
|
4155
|
+
fill: { color: ctx.colors.accent },
|
|
4156
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3972
4157
|
rectRadius: 0,
|
|
3973
4158
|
});
|
|
3974
4159
|
slide.addShape(ctx.shapeRoundRect, {
|
|
@@ -3977,26 +4162,38 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3977
4162
|
w: ctx.width - 0.2,
|
|
3978
4163
|
h: ctx.height - 0.2,
|
|
3979
4164
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3980
|
-
line: { color: ctx.colors.text, width: 2.
|
|
4165
|
+
line: { color: ctx.colors.text, width: 2.75 },
|
|
3981
4166
|
rectRadius: 0,
|
|
3982
4167
|
});
|
|
3983
4168
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3984
4169
|
x: 0,
|
|
3985
4170
|
y: 0,
|
|
3986
4171
|
w: ctx.width,
|
|
3987
|
-
h: 0.
|
|
4172
|
+
h: 0.16,
|
|
3988
4173
|
fill: { color: ctx.colors.accent },
|
|
3989
4174
|
line: { color: ctx.colors.accent, width: 0 },
|
|
3990
4175
|
rectRadius: 0,
|
|
3991
4176
|
});
|
|
3992
4177
|
if (isHero) {
|
|
3993
4178
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3994
|
-
x: ctx.width * 0.
|
|
3995
|
-
y: ctx.height * 0.
|
|
3996
|
-
w: ctx.width * 0.
|
|
3997
|
-
h: ctx.height * 0.
|
|
4179
|
+
x: ctx.width * 0.6,
|
|
4180
|
+
y: ctx.height * 0.52,
|
|
4181
|
+
w: ctx.width * 0.3,
|
|
4182
|
+
h: ctx.height * 0.3,
|
|
3998
4183
|
fill: { color: ctx.colors.bg2 },
|
|
3999
|
-
line: { color: ctx.colors.text, width: 2 },
|
|
4184
|
+
line: { color: ctx.colors.text, width: 2.25 },
|
|
4185
|
+
rectRadius: 0,
|
|
4186
|
+
});
|
|
4187
|
+
}
|
|
4188
|
+
else {
|
|
4189
|
+
// Quiet poster stub on body slides so chrome doesn't go flat.
|
|
4190
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4191
|
+
x: ctx.width - 1.35 - shadow,
|
|
4192
|
+
y: ctx.height - 1.15 - shadow,
|
|
4193
|
+
w: 0.85,
|
|
4194
|
+
h: 0.85,
|
|
4195
|
+
fill: { color: ctx.colors.bg2, transparency: 35 },
|
|
4196
|
+
line: { color: ctx.colors.text, width: 1.5 },
|
|
4000
4197
|
rectRadius: 0,
|
|
4001
4198
|
});
|
|
4002
4199
|
}
|
|
@@ -4092,24 +4289,24 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4092
4289
|
}
|
|
4093
4290
|
if (theme === "cobalt-grid") {
|
|
4094
4291
|
// Blueprint-ish cobalt grid + outer frame + diagonal corner hatch (cobalt-grid-paper).
|
|
4095
|
-
for (let i = 1; i <
|
|
4292
|
+
for (let i = 1; i < 22; i++) {
|
|
4096
4293
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4097
|
-
x: (ctx.width /
|
|
4294
|
+
x: (ctx.width / 22) * i,
|
|
4098
4295
|
y: 0,
|
|
4099
|
-
w: 0.
|
|
4296
|
+
w: 0.011,
|
|
4100
4297
|
h: ctx.height,
|
|
4101
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
4298
|
+
fill: { color: ctx.colors.accent, transparency: 76 },
|
|
4102
4299
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4103
4300
|
rectRadius: 0,
|
|
4104
4301
|
});
|
|
4105
4302
|
}
|
|
4106
|
-
for (let i = 1; i <
|
|
4303
|
+
for (let i = 1; i < 13; i++) {
|
|
4107
4304
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4108
4305
|
x: 0,
|
|
4109
|
-
y: (ctx.height /
|
|
4306
|
+
y: (ctx.height / 13) * i,
|
|
4110
4307
|
w: ctx.width,
|
|
4111
|
-
h: 0.
|
|
4112
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
4308
|
+
h: 0.011,
|
|
4309
|
+
fill: { color: ctx.colors.accent, transparency: 76 },
|
|
4113
4310
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4114
4311
|
rectRadius: 0,
|
|
4115
4312
|
});
|
|
@@ -4124,14 +4321,14 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4124
4321
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4125
4322
|
rectRadius: 0,
|
|
4126
4323
|
});
|
|
4127
|
-
for (let i = 0; i <
|
|
4128
|
-
const t = i /
|
|
4324
|
+
for (let i = 0; i < 9; i++) {
|
|
4325
|
+
const t = i / 8;
|
|
4129
4326
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4130
|
-
x: ctx.width * (0.
|
|
4131
|
-
y: ctx.height * (0.
|
|
4132
|
-
w: 0.
|
|
4133
|
-
h: 0.
|
|
4134
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
4327
|
+
x: ctx.width * (0.56 + t * 0.4),
|
|
4328
|
+
y: ctx.height * (0.96 - t * 0.44),
|
|
4329
|
+
w: 0.95,
|
|
4330
|
+
h: 0.016,
|
|
4331
|
+
fill: { color: ctx.colors.accent, transparency: 44 },
|
|
4135
4332
|
line: { color: ctx.colors.accent, width: 0 },
|
|
4136
4333
|
rectRadius: 0,
|
|
4137
4334
|
});
|
|
@@ -4143,7 +4340,26 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4143
4340
|
w: ctx.width - 0.16,
|
|
4144
4341
|
h: ctx.height - 0.16,
|
|
4145
4342
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4146
|
-
line: { color: ctx.colors.accent, width: 1.
|
|
4343
|
+
line: { color: ctx.colors.accent, width: 1.25 },
|
|
4344
|
+
rectRadius: 0,
|
|
4345
|
+
});
|
|
4346
|
+
// Top-left L registration marks (paper grid craft).
|
|
4347
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4348
|
+
x: 0.18,
|
|
4349
|
+
y: 0.18,
|
|
4350
|
+
w: 0.55,
|
|
4351
|
+
h: 0.03,
|
|
4352
|
+
fill: { color: ctx.colors.accent, transparency: 35 },
|
|
4353
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4354
|
+
rectRadius: 0,
|
|
4355
|
+
});
|
|
4356
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4357
|
+
x: 0.18,
|
|
4358
|
+
y: 0.18,
|
|
4359
|
+
w: 0.03,
|
|
4360
|
+
h: 0.55,
|
|
4361
|
+
fill: { color: ctx.colors.accent, transparency: 35 },
|
|
4362
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
4147
4363
|
rectRadius: 0,
|
|
4148
4364
|
});
|
|
4149
4365
|
}
|
|
@@ -4226,7 +4442,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4226
4442
|
});
|
|
4227
4443
|
}
|
|
4228
4444
|
if (theme === "brutalist-mono") {
|
|
4229
|
-
//
|
|
4445
|
+
// Denser mono grid (~24px) + hard 3pt outer frame + 8px ink offset shadow
|
|
4446
|
+
// (brutalist-grid).
|
|
4230
4447
|
const shadow = 0.1;
|
|
4231
4448
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4232
4449
|
x: ctx.width - shadow,
|
|
@@ -4246,24 +4463,24 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4246
4463
|
line: { color: ctx.colors.text, width: 0 },
|
|
4247
4464
|
rectRadius: 0,
|
|
4248
4465
|
});
|
|
4249
|
-
for (let i = 1; i <
|
|
4466
|
+
for (let i = 1; i < 28; i++) {
|
|
4250
4467
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4251
|
-
x: (ctx.width /
|
|
4468
|
+
x: (ctx.width / 28) * i,
|
|
4252
4469
|
y: 0,
|
|
4253
|
-
w: 0.
|
|
4470
|
+
w: 0.009,
|
|
4254
4471
|
h: ctx.height - shadow,
|
|
4255
|
-
fill: { color: ctx.colors.border, transparency:
|
|
4472
|
+
fill: { color: ctx.colors.border, transparency: 48 },
|
|
4256
4473
|
line: { color: ctx.colors.border, width: 0 },
|
|
4257
4474
|
rectRadius: 0,
|
|
4258
4475
|
});
|
|
4259
4476
|
}
|
|
4260
|
-
for (let i = 1; i <
|
|
4477
|
+
for (let i = 1; i < 16; i++) {
|
|
4261
4478
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4262
4479
|
x: 0,
|
|
4263
|
-
y: (ctx.height /
|
|
4480
|
+
y: (ctx.height / 16) * i,
|
|
4264
4481
|
w: ctx.width - shadow,
|
|
4265
|
-
h: 0.
|
|
4266
|
-
fill: { color: ctx.colors.border, transparency:
|
|
4482
|
+
h: 0.009,
|
|
4483
|
+
fill: { color: ctx.colors.border, transparency: 48 },
|
|
4267
4484
|
line: { color: ctx.colors.border, width: 0 },
|
|
4268
4485
|
rectRadius: 0,
|
|
4269
4486
|
});
|
|
@@ -4274,7 +4491,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4274
4491
|
w: ctx.width - 0.1 - shadow,
|
|
4275
4492
|
h: ctx.height - 0.1 - shadow,
|
|
4276
4493
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4277
|
-
line: { color: ctx.colors.text, width:
|
|
4494
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
4278
4495
|
rectRadius: 0,
|
|
4279
4496
|
});
|
|
4280
4497
|
}
|
|
@@ -4689,9 +4906,9 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4689
4906
|
});
|
|
4690
4907
|
}
|
|
4691
4908
|
if (theme === "raw-grid") {
|
|
4692
|
-
// Blush/sage bands + cross rules + hard frame + 6px ink offset shadow
|
|
4693
|
-
// (raw-grid-brutal
|
|
4694
|
-
const shadow = 0.
|
|
4909
|
+
// Blush/sage bands + cross rules + hard 3pt frame + 6px ink offset shadow
|
|
4910
|
+
// (raw-grid-brutal). Cards get 4px hard offsets via cardHardOffset.
|
|
4911
|
+
const shadow = 0.09;
|
|
4695
4912
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4696
4913
|
x: ctx.width - shadow,
|
|
4697
4914
|
y: shadow,
|
|
@@ -4742,7 +4959,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4742
4959
|
x: 0,
|
|
4743
4960
|
y: ctx.height * 0.28,
|
|
4744
4961
|
w: ctx.width - shadow,
|
|
4745
|
-
h: 0.
|
|
4962
|
+
h: 0.04,
|
|
4746
4963
|
fill: { color: "0A0A0A" },
|
|
4747
4964
|
line: { color: "0A0A0A", width: 0 },
|
|
4748
4965
|
rectRadius: 0,
|
|
@@ -4750,7 +4967,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4750
4967
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4751
4968
|
x: ctx.width * 0.22,
|
|
4752
4969
|
y: 0,
|
|
4753
|
-
w: 0.
|
|
4970
|
+
w: 0.04,
|
|
4754
4971
|
h: ctx.height - shadow,
|
|
4755
4972
|
fill: { color: "0A0A0A" },
|
|
4756
4973
|
line: { color: "0A0A0A", width: 0 },
|
|
@@ -4762,7 +4979,26 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4762
4979
|
w: ctx.width - 0.08 - shadow,
|
|
4763
4980
|
h: ctx.height - 0.08 - shadow,
|
|
4764
4981
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
4765
|
-
line: { color: "0A0A0A", width:
|
|
4982
|
+
line: { color: "0A0A0A", width: 3 },
|
|
4983
|
+
rectRadius: 0,
|
|
4984
|
+
});
|
|
4985
|
+
// Ink corner blot + sage secondary stub (brutal grid craft).
|
|
4986
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4987
|
+
x: ctx.width - 1.25 - shadow,
|
|
4988
|
+
y: ctx.height - 1.15 - shadow,
|
|
4989
|
+
w: 0.72,
|
|
4990
|
+
h: 0.72,
|
|
4991
|
+
fill: { color: "0A0A0A" },
|
|
4992
|
+
line: { color: "0A0A0A", width: 0 },
|
|
4993
|
+
rectRadius: 0,
|
|
4994
|
+
});
|
|
4995
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4996
|
+
x: ctx.width - 1.4 - shadow,
|
|
4997
|
+
y: ctx.height - 1.3 - shadow,
|
|
4998
|
+
w: 0.72,
|
|
4999
|
+
h: 0.72,
|
|
5000
|
+
fill: { color: "E5EDD6" },
|
|
5001
|
+
line: { color: "0A0A0A", width: 2 },
|
|
4766
5002
|
rectRadius: 0,
|
|
4767
5003
|
});
|
|
4768
5004
|
}
|