@presentation-md/export 1.24.3 → 1.24.5

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
@@ -18,6 +18,15 @@ function cardHardOffset(ctx) {
18
18
  // scatterbrain sticky notes: quiet cork offset
19
19
  if (ctx.themeName === "scatterbrain")
20
20
  return { color: "2D2A26", size: 0.04 };
21
+ // daisy-days-pastel cards: 4px charcoal offset
22
+ if (ctx.themeName === "daisy-days")
23
+ return { color: "2D2D2D", size: 0.05 };
24
+ // sakura-chroma-cassette cards: accent-tinted hard offset (HTML 10px)
25
+ if (ctx.themeName === "sakura-chroma")
26
+ return { color: "E5392A", size: 0.08 };
27
+ // bauhaus-blocks cards: quiet ink offset stand-in
28
+ if (ctx.themeName === "bauhaus")
29
+ return { color: "0D0D0D", size: 0.04 };
21
30
  return null;
22
31
  }
23
32
  /** Candy-pop cards use hard ink strokes + plump radius (candy-blob `.card`). */
@@ -25,9 +34,9 @@ function cardStroke(ctx, opts = {}) {
25
34
  if (ctx.themeName === "candy-pop") {
26
35
  return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
27
36
  }
28
- // daisy-days-pastel cards: 3px charcoal
37
+ // daisy-days-pastel cards: 3px charcoal + hard offset
29
38
  if (ctx.themeName === "daisy-days") {
30
- return { color: "2D2D2D", width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
39
+ return { color: "2D2D2D", width: opts.hero || opts.highlighted ? 3 : 2.75 };
31
40
  }
32
41
  // capsule-pills cards: 2px ink
33
42
  if (ctx.themeName === "capsule") {
@@ -49,9 +58,9 @@ function cardStroke(ctx, opts = {}) {
49
58
  if (ctx.themeName === "creative-mode") {
50
59
  return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
51
60
  }
52
- // sakura-chroma-cassette cards: 2px ink
61
+ // sakura-chroma-cassette cards: 2px ink + accent hard offset
53
62
  if (ctx.themeName === "sakura-chroma") {
54
- return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2 : 1.75 };
63
+ return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
55
64
  }
56
65
  // stencil-tablet-earth / retro-zine-riso cards: 2px hard ink
57
66
  if (ctx.themeName === "stencil-tablet" || ctx.themeName === "retro-zine") {
@@ -97,9 +106,9 @@ function cardStroke(ctx, opts = {}) {
97
106
  if (ctx.themeName === "brutalist-acid") {
98
107
  return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 2.25 : 2 };
99
108
  }
100
- // bauhaus-blocks cards: 2px ink, square
109
+ // bauhaus-blocks cards: 2px ink + quiet offset, square
101
110
  if (ctx.themeName === "bauhaus") {
102
- return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
111
+ return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.5 : 2.25 };
103
112
  }
104
113
  // neo-grid-panels / bold-poster-ink / tri-tone-blocks cards: hard ink, square
105
114
  if (ctx.themeName === "neo-grid-bold" ||
@@ -3516,23 +3525,26 @@ function paintSlideChrome(slide, ctx, data) {
3516
3525
  });
3517
3526
  }
3518
3527
  if (theme === "bauhaus") {
3519
- // Hard frame + red square + blue circle on every slide (bauhaus-blocks
3520
- // ::before/::after are not hero-gated). Heroes get larger primary blocks.
3528
+ // Hard 2.5pt frame + primary geometry. Heroes get larger red/blue/yellow
3529
+ // blocks; body slides keep quieter corner primaries (HTML hides ::before/::after
3530
+ // on content, but Primary still wants geometry on every slide).
3531
+ // Cards get quiet ink offsets via cardHardOffset.
3521
3532
  slide.addShape(ctx.shapeRoundRect, {
3522
3533
  x: 0.08,
3523
3534
  y: 0.08,
3524
3535
  w: ctx.width - 0.16,
3525
3536
  h: ctx.height - 0.16,
3526
3537
  fill: { color: ctx.colors.bg, transparency: 100 },
3527
- line: { color: ctx.colors.text, width: 2 },
3538
+ line: { color: ctx.colors.text, width: 2.5 },
3528
3539
  rectRadius: 0,
3529
3540
  });
3530
- const sq = isHero ? 1.05 : 0.72;
3531
- const circ = isHero ? 1.05 : 0.72;
3532
- const sqX = isHero ? ctx.width - 2.3 : ctx.width - 1.55;
3533
- const sqY = isHero ? 0.7 : 0.55;
3534
- const circX = isHero ? ctx.width - 2.9 : ctx.width - 2.05;
3535
- const circY = isHero ? 1.35 : 1.0;
3541
+ const sq = isHero ? 1.1 : 0.55;
3542
+ const circ = isHero ? 1.05 : 0.52;
3543
+ const yel = isHero ? 0.55 : 0.32;
3544
+ const sqX = isHero ? ctx.width - 2.35 : ctx.width - 1.35;
3545
+ const sqY = isHero ? 0.65 : 0.45;
3546
+ const circX = isHero ? ctx.width - 2.95 : ctx.width - 1.85;
3547
+ const circY = isHero ? 1.35 : 0.85;
3536
3548
  slide.addShape(ctx.shapeRoundRect, {
3537
3549
  x: sqX,
3538
3550
  y: sqY,
@@ -3547,9 +3559,29 @@ function paintSlideChrome(slide, ctx, data) {
3547
3559
  y: circY,
3548
3560
  w: circ,
3549
3561
  h: circ,
3550
- fill: { color: ctx.colors.accent2, transparency: isHero ? 12 : 22 },
3562
+ fill: { color: ctx.colors.accent2, transparency: isHero ? 8 : 18 },
3551
3563
  line: { color: ctx.colors.accent2, width: 0 },
3552
3564
  });
3565
+ // Tertiary yellow block (HTML Primary gallery / stat bar accent).
3566
+ slide.addShape(ctx.shapeRoundRect, {
3567
+ x: isHero ? ctx.width - 1.55 : ctx.width - 0.95,
3568
+ y: isHero ? 1.95 : 1.15,
3569
+ w: yel,
3570
+ h: yel,
3571
+ fill: { color: "F4D35E" },
3572
+ line: { color: "F4D35E", width: 0 },
3573
+ rectRadius: 0,
3574
+ });
3575
+ // Quiet bottom-left ink stub for modernist grounding.
3576
+ slide.addShape(ctx.shapeRoundRect, {
3577
+ x: 0.45,
3578
+ y: ctx.height - 0.55,
3579
+ w: isHero ? 0.85 : 0.55,
3580
+ h: 0.12,
3581
+ fill: { color: ctx.colors.text },
3582
+ line: { color: ctx.colors.text, width: 0 },
3583
+ rectRadius: 0,
3584
+ });
3553
3585
  }
3554
3586
  if (theme === "fintech-clean") {
3555
3587
  // Soft mint radial wash + clean frame (fintech-soft).
@@ -5067,15 +5099,15 @@ function paintSlideChrome(slide, ctx, data) {
5067
5099
  });
5068
5100
  }
5069
5101
  if (theme === "sakura-chroma") {
5070
- // Hard frame + accent-tinted offset shadow every slide; chroma strip +
5071
- // stamp orbs stay hero-gated (sakura-chroma-cassette).
5072
- const shadow = 0.12;
5102
+ // Hard frame + denser accent-tinted offset shadow every slide; chroma strip +
5103
+ // stamp orbs stay hero-gated (sakura-chroma-cassette). Cards get accent hard offsets.
5104
+ const shadow = 0.14;
5073
5105
  slide.addShape(ctx.shapeRoundRect, {
5074
5106
  x: ctx.width - shadow,
5075
5107
  y: shadow,
5076
5108
  w: shadow,
5077
5109
  h: ctx.height - shadow,
5078
- fill: { color: ctx.colors.accent, transparency: 65 },
5110
+ fill: { color: ctx.colors.accent, transparency: 55 },
5079
5111
  line: { color: ctx.colors.accent, width: 0 },
5080
5112
  rectRadius: 0,
5081
5113
  });
@@ -5084,7 +5116,7 @@ function paintSlideChrome(slide, ctx, data) {
5084
5116
  y: ctx.height - shadow,
5085
5117
  w: ctx.width - shadow,
5086
5118
  h: shadow,
5087
- fill: { color: ctx.colors.accent, transparency: 65 },
5119
+ fill: { color: ctx.colors.accent, transparency: 55 },
5088
5120
  line: { color: ctx.colors.accent, width: 0 },
5089
5121
  rectRadius: 0,
5090
5122
  });
@@ -5094,55 +5126,71 @@ function paintSlideChrome(slide, ctx, data) {
5094
5126
  w: ctx.width - 0.08 - shadow,
5095
5127
  h: ctx.height - 0.08 - shadow,
5096
5128
  fill: { color: ctx.colors.bg, transparency: 100 },
5097
- line: { color: ctx.colors.text, width: 2 },
5129
+ line: { color: ctx.colors.text, width: 2.25 },
5098
5130
  rectRadius: 0.06,
5099
5131
  });
5132
+ // Quiet paper tooth on body slides (cassette paper feel without full chroma).
5133
+ if (!isHero) {
5134
+ for (let i = 0; i < 12; i++) {
5135
+ const col = i % 4;
5136
+ const row = Math.floor(i / 4);
5137
+ slide.addShape(ctx.shapeOval, {
5138
+ x: 0.55 + col * 2.4,
5139
+ y: 0.55 + row * 1.55,
5140
+ w: 0.05,
5141
+ h: 0.05,
5142
+ fill: { color: ctx.colors.text, transparency: 92 },
5143
+ line: { color: ctx.colors.text, width: 0 },
5144
+ });
5145
+ }
5146
+ }
5100
5147
  if (isHero) {
5101
5148
  const chroma = ["E5392A", "E54489", "F09131", "3D9F47", "3F8BC4", "F0BC2A"];
5102
- const stripW = (ctx.width - shadow) * 0.48;
5149
+ const stripW = (ctx.width - shadow) * 0.52;
5103
5150
  const band = stripW / chroma.length;
5104
5151
  for (let i = 0; i < chroma.length; i++) {
5105
5152
  slide.addShape(ctx.shapeRoundRect, {
5106
5153
  x: i * band,
5107
5154
  y: 0,
5108
5155
  w: band,
5109
- h: ctx.height * 0.12,
5156
+ h: ctx.height * 0.13,
5110
5157
  fill: { color: chroma[i] },
5111
5158
  line: { color: chroma[i], width: 0 },
5112
5159
  rectRadius: 0,
5113
5160
  });
5114
5161
  }
5115
5162
  const stamps = [
5116
- { x: ctx.width - 1.85 - shadow, y: 0.55, color: "E54489" },
5117
- { x: ctx.width - 1.35 - shadow, y: 0.72, color: "F09131" },
5118
- { x: ctx.width - 1.6 - shadow, y: 1.15, color: "3F8BC4" },
5119
- { x: ctx.width - 1.95 - shadow, y: 1.05, color: "3D9F47" },
5163
+ { x: ctx.width - 1.95 - shadow, y: 0.5, color: "E54489", s: 0.48 },
5164
+ { x: ctx.width - 1.4 - shadow, y: 0.68, color: "F09131", s: 0.42 },
5165
+ { x: ctx.width - 1.65 - shadow, y: 1.15, color: "3F8BC4", s: 0.44 },
5166
+ { x: ctx.width - 2.05 - shadow, y: 1.05, color: "3D9F47", s: 0.4 },
5167
+ { x: ctx.width - 1.55 - shadow, y: 1.55, color: "F0BC2A", s: 0.36 },
5120
5168
  ];
5121
5169
  for (const s of stamps) {
5122
5170
  slide.addShape(ctx.shapeOval, {
5123
5171
  x: s.x,
5124
5172
  y: s.y,
5125
- w: 0.42,
5126
- h: 0.42,
5173
+ w: s.s,
5174
+ h: s.s,
5127
5175
  fill: { color: s.color },
5128
5176
  line: { color: s.color, width: 0 },
5129
5177
  });
5130
5178
  }
5131
5179
  slide.addShape(ctx.shapeRoundRect, {
5132
5180
  x: 0.55,
5133
- y: ctx.height - 0.85 - shadow,
5134
- w: 0.7,
5135
- h: 0.28,
5181
+ y: ctx.height - 0.9 - shadow,
5182
+ w: 0.78,
5183
+ h: 0.3,
5136
5184
  fill: { color: ctx.colors.accent },
5137
- line: { color: ctx.colors.text, width: 1.5 },
5185
+ line: { color: ctx.colors.text, width: 1.75 },
5138
5186
  rectRadius: 0.02,
5139
5187
  });
5140
5188
  }
5141
5189
  }
5142
5190
  if (theme === "daisy-days") {
5143
- // Hard frame + charcoal offset shadow + pastel dots + daisy/pill on every
5144
- // slide (daisy-days-pastel ::before/::after are not hero-gated).
5145
- const shadow = 0.08;
5191
+ // Hard 3pt frame + charcoal offset shadow + denser pastel dots; daisy/pill
5192
+ // stay always-on with charcoal offsets (daisy-days-pastel). Cards get hard offsets.
5193
+ const shadow = 0.1;
5146
5194
  slide.addShape(ctx.shapeRoundRect, {
5147
5195
  x: ctx.width - shadow,
5148
5196
  y: shadow,
@@ -5167,14 +5215,16 @@ function paintSlideChrome(slide, ctx, data) {
5167
5215
  w: ctx.width - 0.2,
5168
5216
  h: ctx.height - 0.2,
5169
5217
  fill: { color: ctx.colors.bg, transparency: 100 },
5170
- line: { color: "2D2D2D", width: 2.75 },
5218
+ line: { color: "2D2D2D", width: 3 },
5171
5219
  rectRadius: 0.28,
5172
5220
  });
5173
5221
  const dots = [
5174
- { x: ctx.width * 0.1, y: ctx.height * 0.14, color: "FDE68A", s: 0.28 },
5175
- { x: ctx.width * 0.86, y: ctx.height * 0.18, color: "F7C8D4", s: 0.36 },
5176
- { x: ctx.width * 0.76, y: ctx.height * 0.78, color: "7ECDC0", s: 0.32 },
5177
- { x: ctx.width * 0.14, y: ctx.height * 0.74, color: "D4A5E8", s: 0.24 },
5222
+ { x: ctx.width * 0.1, y: ctx.height * 0.14, color: "FDE68A", s: 0.3 },
5223
+ { x: ctx.width * 0.86, y: ctx.height * 0.18, color: "F7C8D4", s: 0.4 },
5224
+ { x: ctx.width * 0.76, y: ctx.height * 0.78, color: "7ECDC0", s: 0.34 },
5225
+ { x: ctx.width * 0.14, y: ctx.height * 0.74, color: "D4A5E8", s: 0.26 },
5226
+ { x: ctx.width * 0.48, y: ctx.height * 0.1, color: "A8D8F0", s: 0.22 },
5227
+ { x: ctx.width * 0.55, y: ctx.height * 0.86, color: "F7C8D4", s: 0.2 },
5178
5228
  ];
5179
5229
  for (const d of dots) {
5180
5230
  slide.addShape(ctx.shapeOval, {
@@ -5186,22 +5236,55 @@ function paintSlideChrome(slide, ctx, data) {
5186
5236
  line: { color: d.color, width: 0 },
5187
5237
  });
5188
5238
  }
5239
+ // Daisy flower: butter center + white petal stubs + charcoal rim.
5240
+ const daisyX = ctx.width - 1.6;
5241
+ const daisyY = 0.5;
5242
+ const petal = 0.22;
5243
+ for (const [px, py] of [
5244
+ [0.24, -0.02],
5245
+ [0.24, 0.5],
5246
+ [-0.02, 0.24],
5247
+ [0.5, 0.24],
5248
+ ]) {
5249
+ slide.addShape(ctx.shapeOval, {
5250
+ x: daisyX + px,
5251
+ y: daisyY + py,
5252
+ w: petal,
5253
+ h: petal,
5254
+ fill: { color: "FFFFFF" },
5255
+ line: { color: "2D2D2D", width: 1.5 },
5256
+ });
5257
+ }
5189
5258
  slide.addShape(ctx.shapeOval, {
5190
- x: ctx.width - 1.55,
5191
- y: 0.55,
5192
- w: 0.7,
5193
- h: 0.7,
5259
+ x: daisyX + 0.12,
5260
+ y: daisyY + 0.12,
5261
+ w: 0.46,
5262
+ h: 0.46,
5194
5263
  fill: { color: "FDE68A" },
5195
- line: { color: "2D2D2D", width: 2 },
5264
+ line: { color: "2D2D2D", width: 2.25 },
5265
+ });
5266
+ // Pill with charcoal hard offset (HTML 3px 3px 0).
5267
+ const pillX = 0.55;
5268
+ const pillY = ctx.height - 1.0;
5269
+ const pillW = 1.05;
5270
+ const pillH = 0.38;
5271
+ slide.addShape(ctx.shapeRoundRect, {
5272
+ x: pillX + 0.04,
5273
+ y: pillY + 0.04,
5274
+ w: pillW,
5275
+ h: pillH,
5276
+ fill: { color: "2D2D2D" },
5277
+ line: { color: "2D2D2D", width: 0 },
5278
+ rectRadius: 0.19,
5196
5279
  });
5197
5280
  slide.addShape(ctx.shapeRoundRect, {
5198
- x: 0.55,
5199
- y: ctx.height - 0.95,
5200
- w: 0.95,
5201
- h: 0.36,
5281
+ x: pillX,
5282
+ y: pillY,
5283
+ w: pillW,
5284
+ h: pillH,
5202
5285
  fill: { color: "A8D8F0" },
5203
- line: { color: "2D2D2D", width: 2 },
5204
- rectRadius: 0.18,
5286
+ line: { color: "2D2D2D", width: 2.25 },
5287
+ rectRadius: 0.19,
5205
5288
  });
5206
5289
  }
5207
5290
  if (theme === "block-frame") {