@presentation-md/export 1.16.3 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/layouts.js CHANGED
@@ -36,6 +36,22 @@ function cardStroke(ctx, opts = {}) {
36
36
  if (ctx.themeName === "stencil-tablet" || ctx.themeName === "retro-zine") {
37
37
  return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
38
38
  }
39
+ // coral-hatch cards: 2px hard ink, square
40
+ if (ctx.themeName === "coral") {
41
+ return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.5 : 2.25 };
42
+ }
43
+ // peoples-platform-poster cards: 4px hard ink
44
+ if (ctx.themeName === "peoples-platform") {
45
+ return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 3.5 : 3.25 };
46
+ }
47
+ // neon-rain cards: cyan rim
48
+ if (ctx.themeName === "neon-noir") {
49
+ return { color: ctx.colors.accent2, width: opts.hero || opts.highlighted ? 1.75 : 1.5 };
50
+ }
51
+ // vapor-horizon / aero-bubble cards: soft accent rim
52
+ if (ctx.themeName === "vaporwave" || ctx.themeName === "y2k-aero") {
53
+ return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.5 : 1.25 };
54
+ }
39
55
  if (opts.hero || opts.highlighted) {
40
56
  return { color: ctx.colors.accent, width: opts.highlighted ? 1.75 : 1.5 };
41
57
  }
@@ -60,14 +76,23 @@ function cardRadius(ctx) {
60
76
  // stencil-tablet-earth cards: border-radius 24px ≈ 0.25"
61
77
  if (ctx.themeName === "stencil-tablet")
62
78
  return 0.25;
63
- // retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95: square
79
+ // retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95 / coral / peoples: square
64
80
  if (ctx.themeName === "retro-zine" ||
65
81
  ctx.themeName === "block-frame" ||
66
82
  ctx.themeName === "creative-mode" ||
67
83
  ctx.themeName === "8-bit-orbit" ||
68
- ctx.themeName === "retro-windows") {
84
+ ctx.themeName === "retro-windows" ||
85
+ ctx.themeName === "coral" ||
86
+ ctx.themeName === "peoples-platform") {
69
87
  return 0;
70
88
  }
89
+ // bold-signal-card / aero-bubble / pastel-geometry: plump
90
+ if (ctx.themeName === "bold-signal")
91
+ return 0.16;
92
+ if (ctx.themeName === "y2k-aero")
93
+ return 0.18;
94
+ if (ctx.themeName === "pastel-geometry")
95
+ return 0.18;
71
96
  // scatterbrain-cork cards: border-radius 2px ≈ 0.02"
72
97
  if (ctx.themeName === "scatterbrain")
73
98
  return 0.02;
@@ -1785,7 +1810,26 @@ function paintSlideChrome(slide, ctx, data) {
1785
1810
  }
1786
1811
  }
1787
1812
  if (theme === "bold-signal") {
1788
- // Soft orange corner blot on every slide; hero gets the focal panel.
1813
+ // Soft shadow stub + rounded card frame (bold-signal-card 0 24px 60px);
1814
+ // orange corner blot every slide; hero gets the focal panel.
1815
+ slide.addShape(ctx.shapeRoundRect, {
1816
+ x: 0.22,
1817
+ y: 0.22,
1818
+ w: ctx.width - 0.28,
1819
+ h: ctx.height - 0.28,
1820
+ fill: { color: "000000", transparency: 72 },
1821
+ line: { color: "000000", width: 0 },
1822
+ rectRadius: 0.16,
1823
+ });
1824
+ slide.addShape(ctx.shapeRoundRect, {
1825
+ x: 0.1,
1826
+ y: 0.1,
1827
+ w: ctx.width - 0.28,
1828
+ h: ctx.height - 0.28,
1829
+ fill: { color: ctx.colors.bg, transparency: 100 },
1830
+ line: { color: ctx.colors.border, width: 1 },
1831
+ rectRadius: 0.16,
1832
+ });
1789
1833
  slide.addShape(ctx.shapeOval, {
1790
1834
  x: -0.6,
1791
1835
  y: ctx.height - 1.8,
@@ -2677,7 +2721,7 @@ function paintSlideChrome(slide, ctx, data) {
2677
2721
  });
2678
2722
  }
2679
2723
  if (theme === "neon-noir") {
2680
- // Magenta glow blob + cyan rim (neon-rain stand-in).
2724
+ // Magenta/cyan glow + cyan rim + rain scanlines + floor inset (neon-rain).
2681
2725
  slide.addShape(ctx.shapeOval, {
2682
2726
  x: ctx.width * 0.55,
2683
2727
  y: -ctx.height * 0.2,
@@ -2694,20 +2738,50 @@ function paintSlideChrome(slide, ctx, data) {
2694
2738
  fill: { color: ctx.colors.accent2, transparency: 70 },
2695
2739
  line: { color: ctx.colors.accent2, width: 0 },
2696
2740
  });
2697
- if (isHero) {
2741
+ // Rain scanlines (HTML repeating-linear-gradient).
2742
+ for (let i = 0; i < 18; i++) {
2698
2743
  slide.addShape(ctx.shapeRoundRect, {
2699
- x: 0,
2700
- y: ctx.height - 0.08,
2701
- w: ctx.width,
2702
- h: 0.08,
2703
- fill: { color: ctx.colors.accent2, transparency: 30 },
2704
- line: { color: ctx.colors.accent2, width: 0 },
2744
+ x: 0.08 + i * 0.72,
2745
+ y: 0,
2746
+ w: 0.035,
2747
+ h: ctx.height,
2748
+ fill: { color: "FFFFFF", transparency: 94 },
2749
+ line: { color: "FFFFFF", width: 0 },
2705
2750
  rectRadius: 0,
2706
2751
  });
2707
2752
  }
2753
+ // Cyan rim frame (HTML border accent2).
2754
+ slide.addShape(ctx.shapeRoundRect, {
2755
+ x: 0.08,
2756
+ y: 0.08,
2757
+ w: ctx.width - 0.16,
2758
+ h: ctx.height - 0.16,
2759
+ fill: { color: ctx.colors.bg, transparency: 100 },
2760
+ line: { color: ctx.colors.accent2, width: 1.25 },
2761
+ rectRadius: 0,
2762
+ });
2763
+ // Floor inset cyan glow (HTML inset box-shadow) — always-on.
2764
+ slide.addShape(ctx.shapeRoundRect, {
2765
+ x: 0,
2766
+ y: ctx.height - 0.55,
2767
+ w: ctx.width,
2768
+ h: 0.55,
2769
+ fill: { color: ctx.colors.accent2, transparency: 88 },
2770
+ line: { color: ctx.colors.accent2, width: 0 },
2771
+ rectRadius: 0,
2772
+ });
2773
+ slide.addShape(ctx.shapeRoundRect, {
2774
+ x: 0,
2775
+ y: ctx.height - 0.1,
2776
+ w: ctx.width,
2777
+ h: 0.1,
2778
+ fill: { color: ctx.colors.accent2, transparency: isHero ? 28 : 42 },
2779
+ line: { color: ctx.colors.accent2, width: 0 },
2780
+ rectRadius: 0,
2781
+ });
2708
2782
  }
2709
2783
  if (theme === "vaporwave") {
2710
- // Horizon grid stand-in — bottom cyan wash + pink sun oval.
2784
+ // Horizon grid + pink sun + accent rim + horizon glow (vapor-horizon).
2711
2785
  slide.addShape(ctx.shapeRoundRect, {
2712
2786
  x: 0,
2713
2787
  y: ctx.height * 0.55,
@@ -2738,9 +2812,68 @@ function paintSlideChrome(slide, ctx, data) {
2738
2812
  rectRadius: 0,
2739
2813
  });
2740
2814
  }
2815
+ // Vertical grid stubs in the horizon band.
2816
+ for (let i = 1; i < 10; i++) {
2817
+ slide.addShape(ctx.shapeRoundRect, {
2818
+ x: (ctx.width / 10) * i,
2819
+ y: ctx.height * 0.55,
2820
+ w: 0.015,
2821
+ h: ctx.height * 0.45,
2822
+ fill: { color: ctx.colors.accent2, transparency: 62 },
2823
+ line: { color: ctx.colors.accent2, width: 0 },
2824
+ rectRadius: 0,
2825
+ });
2826
+ }
2827
+ // Horizon glow line (HTML ::after at ~48%).
2828
+ slide.addShape(ctx.shapeRoundRect, {
2829
+ x: ctx.width * 0.08,
2830
+ y: ctx.height * 0.48,
2831
+ w: ctx.width * 0.84,
2832
+ h: 0.04,
2833
+ fill: { color: ctx.colors.accent, transparency: 25 },
2834
+ line: { color: ctx.colors.accent, width: 0 },
2835
+ rectRadius: 0,
2836
+ });
2837
+ slide.addShape(ctx.shapeRoundRect, {
2838
+ x: ctx.width * 0.22,
2839
+ y: ctx.height * 0.485,
2840
+ w: ctx.width * 0.56,
2841
+ h: 0.025,
2842
+ fill: { color: ctx.colors.accent2, transparency: 20 },
2843
+ line: { color: ctx.colors.accent2, width: 0 },
2844
+ rectRadius: 0,
2845
+ });
2846
+ // Accent rim (HTML border).
2847
+ slide.addShape(ctx.shapeRoundRect, {
2848
+ x: 0.08,
2849
+ y: 0.08,
2850
+ w: ctx.width - 0.16,
2851
+ h: ctx.height - 0.16,
2852
+ fill: { color: ctx.colors.bg, transparency: 100 },
2853
+ line: { color: ctx.colors.accent, width: 1.1 },
2854
+ rectRadius: 0,
2855
+ });
2741
2856
  }
2742
2857
  if (theme === "y2k-aero") {
2743
- // Glossy bubble ovals (aero-bubble).
2858
+ // Soft accent rim + soft shadow stub + glossy bubble ovals (aero-bubble).
2859
+ slide.addShape(ctx.shapeRoundRect, {
2860
+ x: 0.28,
2861
+ y: 0.28,
2862
+ w: ctx.width - 0.4,
2863
+ h: ctx.height - 0.4,
2864
+ fill: { color: ctx.colors.accent, transparency: 92 },
2865
+ line: { color: ctx.colors.accent, width: 0 },
2866
+ rectRadius: 0.12,
2867
+ });
2868
+ slide.addShape(ctx.shapeRoundRect, {
2869
+ x: 0.12,
2870
+ y: 0.12,
2871
+ w: ctx.width - 0.4,
2872
+ h: ctx.height - 0.4,
2873
+ fill: { color: ctx.colors.bg, transparency: 100 },
2874
+ line: { color: ctx.colors.accent, width: 1.1 },
2875
+ rectRadius: 0.12,
2876
+ });
2744
2877
  slide.addShape(ctx.shapeOval, {
2745
2878
  x: ctx.width * 0.65,
2746
2879
  y: -ctx.height * 0.1,
@@ -3181,7 +3314,35 @@ function paintSlideChrome(slide, ctx, data) {
3181
3314
  });
3182
3315
  }
3183
3316
  if (theme === "pastel-geometry") {
3184
- // Vertical pastel edge pills (pastel-geometry-pills ::after).
3317
+ // Outer sky matte ring + soft shadow + vertical pastel edge pills
3318
+ // (pastel-geometry-pills box-shadow 0 0 0 22px var(--bg)).
3319
+ slide.addShape(ctx.shapeRoundRect, {
3320
+ x: 0,
3321
+ y: 0,
3322
+ w: ctx.width,
3323
+ h: ctx.height,
3324
+ fill: { color: ctx.colors.bg },
3325
+ line: { color: ctx.colors.bg, width: 0 },
3326
+ rectRadius: 0,
3327
+ });
3328
+ slide.addShape(ctx.shapeRoundRect, {
3329
+ x: 0.32,
3330
+ y: 0.32,
3331
+ w: ctx.width - 0.48,
3332
+ h: ctx.height - 0.48,
3333
+ fill: { color: ctx.colors.text, transparency: 94 },
3334
+ line: { color: ctx.colors.text, width: 0 },
3335
+ rectRadius: 0.24,
3336
+ });
3337
+ slide.addShape(ctx.shapeRoundRect, {
3338
+ x: 0.22,
3339
+ y: 0.22,
3340
+ w: ctx.width - 0.52,
3341
+ h: ctx.height - 0.52,
3342
+ fill: { color: ctx.colors.cardBg },
3343
+ line: { color: ctx.colors.border, width: 0.75 },
3344
+ rectRadius: 0.24,
3345
+ });
3185
3346
  const pills = [
3186
3347
  { color: "F0B4D4" },
3187
3348
  { color: "A8D4C4" },
@@ -3203,16 +3364,6 @@ function paintSlideChrome(slide, ctx, data) {
3203
3364
  rectRadius: 0.11,
3204
3365
  });
3205
3366
  }
3206
- // Soft card-field wash so the sky matte reads behind content.
3207
- slide.addShape(ctx.shapeRoundRect, {
3208
- x: ctx.margin * 0.45,
3209
- y: ctx.margin * 0.45,
3210
- w: ctx.width - ctx.margin * 0.9,
3211
- h: ctx.height - ctx.margin * 0.9,
3212
- fill: { color: ctx.colors.cardBg, transparency: 35 },
3213
- line: { color: ctx.colors.border, width: 0.75 },
3214
- rectRadius: 0.28,
3215
- });
3216
3367
  }
3217
3368
  if (theme === "8-bit-orbit") {
3218
3369
  // Arcade scanlines + neon orbs + dual offset shadows (4px yellow + 8px pink)
@@ -3978,7 +4129,21 @@ function paintSlideChrome(slide, ctx, data) {
3978
4129
  }
3979
4130
  }
3980
4131
  if (theme === "peoples-platform") {
3981
- // Cobalt top bar + amber footer stub + hard frame (peoples-platform-poster).
4132
+ // Cobalt top bar + amber footer stub + hard frame + speckled wash
4133
+ // (peoples-platform-poster). Cards get 4px hard ink via cardStroke.
4134
+ // Quiet ink speckles (HTML radial-gradient tooth).
4135
+ for (let i = 0; i < 28; i++) {
4136
+ const col = i % 7;
4137
+ const row = Math.floor(i / 7);
4138
+ slide.addShape(ctx.shapeOval, {
4139
+ x: 0.45 + col * 1.75,
4140
+ y: 0.55 + row * 1.35,
4141
+ w: 0.06,
4142
+ h: 0.06,
4143
+ fill: { color: ctx.colors.text, transparency: 92 },
4144
+ line: { color: ctx.colors.text, width: 0 },
4145
+ });
4146
+ }
3982
4147
  slide.addShape(ctx.shapeRoundRect, {
3983
4148
  x: 0.08,
3984
4149
  y: 0.08,
@@ -4378,7 +4543,8 @@ function paintSlideChrome(slide, ctx, data) {
4378
4543
  }
4379
4544
  }
4380
4545
  if (theme === "pink-script") {
4381
- // Dual inset frames + accent hairline; hero wash (pink-script-afterhours).
4546
+ // Dual inset frames + always-on accent hairline; soft wash on heroes
4547
+ // (pink-script-afterhours — HTML ::after hairline is not hero-gated).
4382
4548
  if (isHero) {
4383
4549
  slide.addShape(ctx.shapeOval, {
4384
4550
  x: ctx.width * 0.55,
@@ -4409,17 +4575,16 @@ function paintSlideChrome(slide, ctx, data) {
4409
4575
  line: { color: "F5EDF1", width: 1 },
4410
4576
  rectRadius: 0,
4411
4577
  });
4412
- if (isHero) {
4413
- slide.addShape(ctx.shapeRoundRect, {
4414
- x: ctx.width - 2.0,
4415
- y: ctx.height - 0.85,
4416
- w: 1.35,
4417
- h: 0.04,
4418
- fill: { color: ctx.colors.accent },
4419
- line: { color: ctx.colors.accent, width: 0 },
4420
- rectRadius: 0,
4421
- });
4422
- }
4578
+ // Always-on accent hairline (HTML ::after).
4579
+ slide.addShape(ctx.shapeRoundRect, {
4580
+ x: ctx.width - 2.0,
4581
+ y: ctx.height - 0.85,
4582
+ w: 1.35,
4583
+ h: 0.04,
4584
+ fill: { color: ctx.colors.accent },
4585
+ line: { color: ctx.colors.accent, width: 0 },
4586
+ rectRadius: 0,
4587
+ });
4423
4588
  }
4424
4589
  if (theme === "retro-windows") {
4425
4590
  // Win95 beveled chrome: white top/left + black right/bottom outer bevel,