@presentation-md/export 1.24.1 → 1.24.4

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
@@ -9,6 +9,15 @@ function cardHardOffset(ctx) {
9
9
  return { color: ctx.colors.text, size: 0.045 };
10
10
  if (ctx.themeName === "block-frame")
11
11
  return { color: "000000", size: 0.065 };
12
+ // peoples-platform-poster cards: 6px red offset
13
+ if (ctx.themeName === "peoples-platform")
14
+ return { color: "E83A2A", size: 0.065 };
15
+ // capsule-pills cards: soft ink offset stand-in
16
+ if (ctx.themeName === "capsule")
17
+ return { color: "1A1A1A", size: 0.06 };
18
+ // scatterbrain sticky notes: quiet cork offset
19
+ if (ctx.themeName === "scatterbrain")
20
+ return { color: "2D2A26", size: 0.04 };
12
21
  return null;
13
22
  }
14
23
  /** Candy-pop cards use hard ink strokes + plump radius (candy-blob `.card`). */
@@ -4200,7 +4209,8 @@ function paintSlideChrome(slide, ctx, data) {
4200
4209
  }
4201
4210
  if (theme === "capsule") {
4202
4211
  // Plump frame + hard ink offset shadow (HTML 8px/10px 0-blur) + pastel blots;
4203
- // hero-gated coral pill + lime circles (capsule-pills ::before/::after).
4212
+ // coral pill + lime circles denser (always-on soft blot; loud pills hero-gated).
4213
+ // Cards get soft ink offsets via cardHardOffset.
4204
4214
  const shadowX = 0.1;
4205
4215
  const shadowY = 0.12;
4206
4216
  slide.addShape(ctx.shapeRoundRect, {
@@ -4222,31 +4232,39 @@ function paintSlideChrome(slide, ctx, data) {
4222
4232
  rectRadius: 0,
4223
4233
  });
4224
4234
  slide.addShape(ctx.shapeRoundRect, {
4225
- x: 0.18,
4226
- y: 0.18,
4227
- w: ctx.width - 0.36 - shadowX,
4228
- h: ctx.height - 0.36 - shadowY,
4235
+ x: 0.16,
4236
+ y: 0.16,
4237
+ w: ctx.width - 0.32 - shadowX,
4238
+ h: ctx.height - 0.32 - shadowY,
4229
4239
  fill: { color: ctx.colors.bg, transparency: 100 },
4230
- line: { color: ctx.colors.border, width: 2 },
4240
+ line: { color: ctx.colors.border, width: 2.25 },
4231
4241
  rectRadius: 0.29,
4232
4242
  });
4233
- // Quiet lavender / sky radial blots (HTML --slide-bg candy).
4243
+ // Quiet lavender / sky / lime radial blots (HTML --slide-bg candy — always-on).
4234
4244
  slide.addShape(ctx.shapeOval, {
4235
4245
  x: 0.35,
4236
4246
  y: ctx.height - 1.85 - shadowY,
4237
- w: 0.72,
4238
- h: 0.72,
4239
- fill: { color: "C5B5E0", transparency: 42 },
4247
+ w: 0.78,
4248
+ h: 0.78,
4249
+ fill: { color: "C5B5E0", transparency: 38 },
4240
4250
  line: { color: "C5B5E0", width: 0 },
4241
4251
  });
4242
4252
  slide.addShape(ctx.shapeOval, {
4243
4253
  x: ctx.width - 1.55 - shadowX,
4244
4254
  y: 0.55,
4245
- w: 0.58,
4246
- h: 0.58,
4247
- fill: { color: "8BB4F7", transparency: 38 },
4255
+ w: 0.62,
4256
+ h: 0.62,
4257
+ fill: { color: "8BB4F7", transparency: 34 },
4248
4258
  line: { color: "8BB4F7", width: 0 },
4249
4259
  });
4260
+ slide.addShape(ctx.shapeOval, {
4261
+ x: ctx.width * 0.78 - shadowX,
4262
+ y: ctx.height * 0.78 - shadowY,
4263
+ w: 0.42,
4264
+ h: 0.42,
4265
+ fill: { color: "C4D94E", transparency: 42 },
4266
+ line: { color: "C4D94E", width: 0 },
4267
+ });
4250
4268
  if (isHero) {
4251
4269
  slide.addShape(ctx.shapeRoundRect, {
4252
4270
  x: ctx.width - 2.15 - shadowX,
@@ -4670,9 +4688,9 @@ function paintSlideChrome(slide, ctx, data) {
4670
4688
  }
4671
4689
  }
4672
4690
  if (theme === "scatterbrain") {
4673
- // Cork wash + soft ink offset shadow + quiet frame + sticky notes + pins;
4674
- // hero-gated tape strip (scatterbrain-cork ::after).
4675
- const shadow = 0.09;
4691
+ // Cork wash + soft ink offset + denser rules + sticky notes + pins;
4692
+ // always-on tape strip densify (scatterbrain-cork). Cards get cork offsets.
4693
+ const shadow = 0.1;
4676
4694
  slide.addShape(ctx.shapeRoundRect, {
4677
4695
  x: ctx.width - shadow,
4678
4696
  y: shadow,
@@ -4691,32 +4709,40 @@ function paintSlideChrome(slide, ctx, data) {
4691
4709
  line: { color: "2D2A26", width: 0 },
4692
4710
  rectRadius: 0,
4693
4711
  });
4694
- // Soft cork yellow wash (HTML radial at 20%/30%).
4712
+ // Soft cork yellow + blue washes (HTML radials).
4695
4713
  slide.addShape(ctx.shapeOval, {
4696
4714
  x: -0.8,
4697
4715
  y: -0.6,
4698
4716
  w: ctx.width * 0.55,
4699
4717
  h: ctx.height * 0.55,
4700
- fill: { color: "FFE066", transparency: 88 },
4718
+ fill: { color: "FFE066", transparency: 84 },
4701
4719
  line: { color: "FFE066", width: 0 },
4702
4720
  });
4721
+ slide.addShape(ctx.shapeOval, {
4722
+ x: ctx.width * 0.55,
4723
+ y: ctx.height * 0.35,
4724
+ w: ctx.width * 0.5,
4725
+ h: ctx.height * 0.55,
4726
+ fill: { color: "74C0FC", transparency: 90 },
4727
+ line: { color: "74C0FC", width: 0 },
4728
+ });
4703
4729
  slide.addShape(ctx.shapeRoundRect, {
4704
4730
  x: 0.1,
4705
4731
  y: 0.1,
4706
4732
  w: ctx.width - 0.1 - shadow,
4707
4733
  h: ctx.height - 0.1 - shadow,
4708
4734
  fill: { color: ctx.colors.bg, transparency: 100 },
4709
- line: { color: "2D2A26", width: 1 },
4735
+ line: { color: "2D2A26", width: 1.25 },
4710
4736
  rectRadius: 0.08,
4711
4737
  });
4712
- // Quiet cork rules (HTML repeating 40px lines).
4713
- for (let i = 1; i < 10; i++) {
4738
+ // Quiet cork rules (HTML repeating ~40px lines — denser).
4739
+ for (let i = 1; i < 14; i++) {
4714
4740
  slide.addShape(ctx.shapeRoundRect, {
4715
4741
  x: 0.12,
4716
- y: (ctx.height / 10) * i,
4742
+ y: (ctx.height / 14) * i,
4717
4743
  w: ctx.width - 0.12 - shadow,
4718
4744
  h: 0.01,
4719
- fill: { color: "2D2A26", transparency: 92 },
4745
+ fill: { color: "2D2A26", transparency: 90 },
4720
4746
  line: { color: "2D2A26", width: 0 },
4721
4747
  rectRadius: 0,
4722
4748
  });
@@ -4724,28 +4750,28 @@ function paintSlideChrome(slide, ctx, data) {
4724
4750
  slide.addShape(ctx.shapeRoundRect, {
4725
4751
  x: ctx.width * 0.68 - shadow,
4726
4752
  y: 0.55,
4727
- w: 1.7,
4728
- h: 1.25,
4753
+ w: 1.8,
4754
+ h: 1.35,
4729
4755
  fill: { color: "FFE066" },
4730
- line: { color: ctx.colors.text, width: 0.75 },
4756
+ line: { color: ctx.colors.text, width: 0.9 },
4731
4757
  rectRadius: 0.02,
4732
4758
  });
4733
4759
  slide.addShape(ctx.shapeRoundRect, {
4734
4760
  x: ctx.width * 0.78 - shadow,
4735
4761
  y: ctx.height * 0.48,
4736
- w: 1.4,
4737
- h: 1.1,
4762
+ w: 1.5,
4763
+ h: 1.15,
4738
4764
  fill: { color: "74C0FC" },
4739
- line: { color: ctx.colors.text, width: 0.75 },
4765
+ line: { color: ctx.colors.text, width: 0.9 },
4740
4766
  rectRadius: 0.02,
4741
4767
  });
4742
4768
  slide.addShape(ctx.shapeRoundRect, {
4743
4769
  x: 0.55,
4744
4770
  y: ctx.height * 0.58 - shadow,
4745
- w: 1.25,
4746
- h: 1.0,
4771
+ w: 1.35,
4772
+ h: 1.05,
4747
4773
  fill: { color: "FF9F9F" },
4748
- line: { color: ctx.colors.text, width: 0.75 },
4774
+ line: { color: ctx.colors.text, width: 0.9 },
4749
4775
  rectRadius: 0.02,
4750
4776
  });
4751
4777
  for (const pin of [
@@ -4759,21 +4785,19 @@ function paintSlideChrome(slide, ctx, data) {
4759
4785
  w: 0.18,
4760
4786
  h: 0.18,
4761
4787
  fill: { color: "C92A2A" },
4762
- line: { color: "C92A2A", width: 0 },
4763
- });
4764
- }
4765
- if (isHero) {
4766
- // Tape strip stand-in (HTML ::after).
4767
- slide.addShape(ctx.shapeRoundRect, {
4768
- x: 0.55,
4769
- y: ctx.height - 0.95 - shadow,
4770
- w: 1.05,
4771
- h: 0.26,
4772
- fill: { color: "FFEC99", transparency: 25 },
4773
4788
  line: { color: "2D2A26", width: 0.75 },
4774
- rectRadius: 0.02,
4775
4789
  });
4776
4790
  }
4791
+ // Always-on tape strip densify (HTML ::after is hero-gated).
4792
+ slide.addShape(ctx.shapeRoundRect, {
4793
+ x: 0.55,
4794
+ y: ctx.height - 1.05 - shadow,
4795
+ w: 1.05,
4796
+ h: 0.28,
4797
+ fill: { color: "FFEC99", transparency: 25 },
4798
+ line: { color: "2D2A26", width: 0.75 },
4799
+ rectRadius: 0.02,
4800
+ });
4777
4801
  }
4778
4802
  if (theme === "split-pastel") {
4779
4803
  // Soft dual pastel corner washes on every slide; full split + pills on heroes.
@@ -4829,14 +4853,24 @@ function paintSlideChrome(slide, ctx, data) {
4829
4853
  }
4830
4854
  }
4831
4855
  if (theme === "coral") {
4832
- // Hatch frame + coral left wash (coral-hatch).
4856
+ // Hatch frame + coral left wash + bg2 diagonal split (coral-hatch).
4857
+ // Denser hatch + 3pt frame matching HTML border.
4858
+ slide.addShape(ctx.shapeRoundRect, {
4859
+ x: ctx.width * 0.62,
4860
+ y: 0,
4861
+ w: ctx.width * 0.38,
4862
+ h: ctx.height,
4863
+ fill: { color: ctx.colors.bg2 },
4864
+ line: { color: ctx.colors.bg2, width: 0 },
4865
+ rectRadius: 0,
4866
+ });
4833
4867
  slide.addShape(ctx.shapeRoundRect, {
4834
4868
  x: 0.1,
4835
4869
  y: 0.1,
4836
4870
  w: ctx.width - 0.2,
4837
4871
  h: ctx.height - 0.2,
4838
4872
  fill: { color: ctx.colors.bg, transparency: 100 },
4839
- line: { color: ctx.colors.text, width: 2.5 },
4873
+ line: { color: ctx.colors.text, width: 3 },
4840
4874
  rectRadius: 0,
4841
4875
  });
4842
4876
  slide.addShape(ctx.shapeRoundRect, {
@@ -4844,36 +4878,35 @@ function paintSlideChrome(slide, ctx, data) {
4844
4878
  y: 0,
4845
4879
  w: ctx.width * 0.42,
4846
4880
  h: ctx.height,
4847
- fill: { color: ctx.colors.accent, transparency: 82 },
4881
+ fill: { color: ctx.colors.accent, transparency: 80 },
4848
4882
  line: { color: ctx.colors.accent, width: 0 },
4849
4883
  rectRadius: 0,
4850
4884
  });
4851
- // Diagonal hatch stand-ins (thin ink stripes).
4852
- for (let i = 0; i < 14; i++) {
4885
+ // Diagonal hatch stand-ins (thin ink stripes — denser).
4886
+ for (let i = 0; i < 22; i++) {
4853
4887
  slide.addShape(ctx.shapeRoundRect, {
4854
- x: -0.4 + i * 1.05,
4888
+ x: -0.5 + i * 0.72,
4855
4889
  y: 0,
4856
- w: 0.05,
4890
+ w: 0.035,
4857
4891
  h: ctx.height,
4858
- fill: { color: ctx.colors.text, transparency: 88 },
4892
+ fill: { color: ctx.colors.text, transparency: 86 },
4859
4893
  line: { color: ctx.colors.text, width: 0 },
4860
4894
  rectRadius: 0,
4861
4895
  });
4862
4896
  }
4863
4897
  }
4864
4898
  if (theme === "peoples-platform") {
4865
- // Cobalt top bar + amber footer stub + hard frame + speckled wash
4866
- // (peoples-platform-poster). Cards get 4px hard ink via cardStroke.
4867
- // Quiet ink speckles (HTML radial-gradient tooth).
4868
- for (let i = 0; i < 28; i++) {
4869
- const col = i % 7;
4870
- const row = Math.floor(i / 7);
4899
+ // Cobalt top bar + amber footer stub + hard 6pt frame + denser speckled wash
4900
+ // (peoples-platform-poster). Cards get 4px hard ink + red offsets.
4901
+ for (let i = 0; i < 48; i++) {
4902
+ const col = i % 8;
4903
+ const row = Math.floor(i / 8);
4871
4904
  slide.addShape(ctx.shapeOval, {
4872
- x: 0.45 + col * 1.75,
4873
- y: 0.55 + row * 1.35,
4874
- w: 0.06,
4875
- h: 0.06,
4876
- fill: { color: ctx.colors.text, transparency: 92 },
4905
+ x: 0.35 + col * 1.55,
4906
+ y: 0.45 + row * 1.1,
4907
+ w: 0.055,
4908
+ h: 0.055,
4909
+ fill: { color: ctx.colors.text, transparency: 90 },
4877
4910
  line: { color: ctx.colors.text, width: 0 },
4878
4911
  });
4879
4912
  }
@@ -4883,23 +4916,23 @@ function paintSlideChrome(slide, ctx, data) {
4883
4916
  w: ctx.width - 0.16,
4884
4917
  h: ctx.height - 0.16,
4885
4918
  fill: { color: ctx.colors.bg, transparency: 100 },
4886
- line: { color: ctx.colors.text, width: 3.5 },
4919
+ line: { color: ctx.colors.text, width: 4 },
4887
4920
  rectRadius: 0,
4888
4921
  });
4889
4922
  slide.addShape(ctx.shapeRoundRect, {
4890
4923
  x: 0,
4891
4924
  y: 0,
4892
4925
  w: ctx.width,
4893
- h: 0.18,
4926
+ h: 0.22,
4894
4927
  fill: { color: ctx.colors.accent },
4895
4928
  line: { color: ctx.colors.accent, width: 0 },
4896
4929
  rectRadius: 0,
4897
4930
  });
4898
4931
  slide.addShape(ctx.shapeRoundRect, {
4899
4932
  x: ctx.width * 0.72,
4900
- y: ctx.height - 0.16,
4933
+ y: ctx.height - 0.18,
4901
4934
  w: ctx.width * 0.28,
4902
- h: 0.16,
4935
+ h: 0.18,
4903
4936
  fill: { color: ctx.colors.accent2 },
4904
4937
  line: { color: ctx.colors.accent2, width: 0 },
4905
4938
  rectRadius: 0,
@@ -5224,7 +5257,7 @@ function paintSlideChrome(slide, ctx, data) {
5224
5257
  }
5225
5258
  }
5226
5259
  if (theme === "editorial-tri-tone") {
5227
- // Butter split field + burgundy wash + hard frame (tri-tone-blocks).
5260
+ // Butter split field + burgundy wash + hard 3pt frame (tri-tone-blocks).
5228
5261
  slide.addShape(ctx.shapeRoundRect, {
5229
5262
  x: ctx.width * 0.55,
5230
5263
  y: 0,
@@ -5239,7 +5272,7 @@ function paintSlideChrome(slide, ctx, data) {
5239
5272
  y: 0,
5240
5273
  w: ctx.width * 0.28,
5241
5274
  h: ctx.height,
5242
- fill: { color: ctx.colors.text, transparency: 88 },
5275
+ fill: { color: ctx.colors.text, transparency: 85 },
5243
5276
  line: { color: ctx.colors.text, width: 0 },
5244
5277
  rectRadius: 0,
5245
5278
  });
@@ -5249,9 +5282,21 @@ function paintSlideChrome(slide, ctx, data) {
5249
5282
  w: ctx.width - 0.2,
5250
5283
  h: ctx.height - 0.2,
5251
5284
  fill: { color: ctx.colors.bg, transparency: 100 },
5252
- line: { color: ctx.colors.text, width: 2.5 },
5285
+ line: { color: ctx.colors.text, width: 3 },
5253
5286
  rectRadius: 0,
5254
5287
  });
5288
+ // Accent corner blot on heroes (tri-tone energy).
5289
+ if (isHero) {
5290
+ slide.addShape(ctx.shapeRoundRect, {
5291
+ x: ctx.width - 1.45,
5292
+ y: 0.55,
5293
+ w: 0.85,
5294
+ h: 0.85,
5295
+ fill: { color: ctx.colors.accent },
5296
+ line: { color: ctx.colors.accent, width: 0 },
5297
+ rectRadius: 0,
5298
+ });
5299
+ }
5255
5300
  }
5256
5301
  if (theme === "broadside") {
5257
5302
  // Fire-orange left rail + corner blast + hard ink frame + always-on top stub
@@ -5431,56 +5476,66 @@ function paintSlideChrome(slide, ctx, data) {
5431
5476
  line: { color: "FFFFFF", width: 0 },
5432
5477
  rectRadius: 0,
5433
5478
  });
5434
- // Quiet CRT scanlines.
5435
- for (let i = 0; i < 14; i++) {
5479
+ // Denser CRT scanlines (HTML 3px pitch).
5480
+ for (let i = 0; i < 28; i++) {
5436
5481
  slide.addShape(ctx.shapeRoundRect, {
5437
5482
  x: bevel + inset,
5438
- y: 0.5 + i * 0.45,
5483
+ y: 0.45 + i * 0.24,
5439
5484
  w: ctx.width - (bevel + inset) * 2,
5440
- h: 0.012,
5441
- fill: { color: "000000", transparency: 94 },
5485
+ h: 0.01,
5486
+ fill: { color: "000000", transparency: 93 },
5442
5487
  line: { color: "000000", width: 0 },
5443
5488
  rectRadius: 0,
5444
5489
  });
5445
5490
  }
5491
+ // Title bar (~22px HTML) + gradient stand-in via dual navy strips.
5446
5492
  slide.addShape(ctx.shapeRoundRect, {
5447
5493
  x: bevel + inset + 0.02,
5448
5494
  y: bevel + inset + 0.02,
5449
5495
  w: ctx.width - (bevel + inset + 0.02) * 2,
5450
- h: 0.32,
5496
+ h: 0.36,
5451
5497
  fill: { color: "000080" },
5452
5498
  line: { color: "000080", width: 0 },
5453
5499
  rectRadius: 0,
5454
5500
  });
5501
+ slide.addShape(ctx.shapeRoundRect, {
5502
+ x: bevel + inset + 0.02 + ctx.width * 0.45,
5503
+ y: bevel + inset + 0.02,
5504
+ w: ctx.width * 0.45 - (bevel + inset + 0.02),
5505
+ h: 0.36,
5506
+ fill: { color: "0000A0" },
5507
+ line: { color: "0000A0", width: 0 },
5508
+ rectRadius: 0,
5509
+ });
5455
5510
  const winBtns = [
5456
- ctx.width - 1.2 - bevel,
5457
- ctx.width - 0.9 - bevel,
5458
- ctx.width - 0.6 - bevel,
5511
+ ctx.width - 1.25 - bevel,
5512
+ ctx.width - 0.92 - bevel,
5513
+ ctx.width - 0.59 - bevel,
5459
5514
  ];
5460
5515
  for (const x of winBtns) {
5461
5516
  slide.addShape(ctx.shapeRoundRect, {
5462
5517
  x,
5463
- y: bevel + inset + 0.08,
5464
- w: 0.22,
5465
- h: 0.18,
5518
+ y: bevel + inset + 0.1,
5519
+ w: 0.26,
5520
+ h: 0.2,
5466
5521
  fill: { color: "C0C0C0" },
5467
5522
  line: { color: "FFFFFF", width: 1 },
5468
5523
  rectRadius: 0,
5469
5524
  });
5470
5525
  // Button shade stub (Win95 raised control).
5471
5526
  slide.addShape(ctx.shapeRoundRect, {
5472
- x: x + 0.18,
5473
- y: bevel + inset + 0.1,
5527
+ x: x + 0.22,
5528
+ y: bevel + inset + 0.12,
5474
5529
  w: 0.03,
5475
- h: 0.14,
5530
+ h: 0.16,
5476
5531
  fill: { color: "000000" },
5477
5532
  line: { color: "000000", width: 0 },
5478
5533
  rectRadius: 0,
5479
5534
  });
5480
5535
  slide.addShape(ctx.shapeRoundRect, {
5481
5536
  x: x + 0.02,
5482
- y: bevel + inset + 0.22,
5483
- w: 0.16,
5537
+ y: bevel + inset + 0.26,
5538
+ w: 0.2,
5484
5539
  h: 0.03,
5485
5540
  fill: { color: "000000" },
5486
5541
  line: { color: "000000", width: 0 },