@presentation-md/export 1.13.1 → 1.13.2

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
@@ -1863,7 +1863,7 @@ function paintSlideChrome(slide, ctx, data) {
1863
1863
  }
1864
1864
  }
1865
1865
  if (theme === "soft-editorial") {
1866
- // Soft sage radial stand-in (top-right wash) + blush candy orb.
1866
+ // Soft sage wash + blush candy orb + quiet inset frame + bottom accent stub.
1867
1867
  slide.addShape(ctx.shapeOval, {
1868
1868
  x: ctx.width * 0.55,
1869
1869
  y: -ctx.height * 0.15,
@@ -1881,9 +1881,27 @@ function paintSlideChrome(slide, ctx, data) {
1881
1881
  line: { color: ctx.colors.accent2, width: 0 },
1882
1882
  rectRadius: 0.32,
1883
1883
  });
1884
+ slide.addShape(ctx.shapeRoundRect, {
1885
+ x: 0.28,
1886
+ y: 0.28,
1887
+ w: ctx.width - 0.56,
1888
+ h: ctx.height - 0.56,
1889
+ fill: { color: ctx.colors.bg, transparency: 100 },
1890
+ line: { color: ctx.colors.border, width: 1.15 },
1891
+ rectRadius: 0.12,
1892
+ });
1893
+ slide.addShape(ctx.shapeRoundRect, {
1894
+ x: ctx.margin,
1895
+ y: ctx.height - 0.55,
1896
+ w: 0.85,
1897
+ h: 0.03,
1898
+ fill: { color: ctx.colors.accent },
1899
+ line: { color: ctx.colors.accent, width: 0 },
1900
+ rectRadius: 0,
1901
+ });
1884
1902
  }
1885
1903
  if (theme === "claude") {
1886
- // Warm-paper coral corner wash (grain stays HTML-only).
1904
+ // Warm-paper coral corner wash + soft accent2 mist + quiet inset frame (grain stays HTML-only).
1887
1905
  slide.addShape(ctx.shapeOval, {
1888
1906
  x: -1.1,
1889
1907
  y: ctx.height - 2.4,
@@ -1892,6 +1910,32 @@ function paintSlideChrome(slide, ctx, data) {
1892
1910
  fill: { color: ctx.colors.accent, transparency: 82 },
1893
1911
  line: { color: ctx.colors.accent, width: 0 },
1894
1912
  });
1913
+ slide.addShape(ctx.shapeOval, {
1914
+ x: ctx.width - 2.8,
1915
+ y: -1.2,
1916
+ w: 3.4,
1917
+ h: 3.4,
1918
+ fill: { color: ctx.colors.accent2, transparency: 86 },
1919
+ line: { color: ctx.colors.accent2, width: 0 },
1920
+ });
1921
+ slide.addShape(ctx.shapeRoundRect, {
1922
+ x: 0.32,
1923
+ y: 0.32,
1924
+ w: ctx.width - 0.64,
1925
+ h: ctx.height - 0.64,
1926
+ fill: { color: ctx.colors.bg, transparency: 100 },
1927
+ line: { color: ctx.colors.border, width: 1 },
1928
+ rectRadius: 0.1,
1929
+ });
1930
+ slide.addShape(ctx.shapeRoundRect, {
1931
+ x: ctx.margin,
1932
+ y: 0.58,
1933
+ w: 0.72,
1934
+ h: 0.02,
1935
+ fill: { color: ctx.colors.accent, transparency: 25 },
1936
+ line: { color: ctx.colors.accent, width: 0 },
1937
+ rectRadius: 0,
1938
+ });
1895
1939
  }
1896
1940
  if (theme === "default-tech") {
1897
1941
  // Neon-glow corner bloom + secondary cyan wash (HTML blur → soft ovals).
@@ -2648,7 +2692,7 @@ function paintSlideChrome(slide, ctx, data) {
2648
2692
  });
2649
2693
  }
2650
2694
  if (theme === "ft-editorial") {
2651
- // Broadsheet masthead bar + bottom rule (broadsheet-rule).
2695
+ // Broadsheet masthead + double rule + quiet outer frame + accent mid stub.
2652
2696
  slide.addShape(ctx.shapeRoundRect, {
2653
2697
  x: 0,
2654
2698
  y: 0,
@@ -2658,6 +2702,15 @@ function paintSlideChrome(slide, ctx, data) {
2658
2702
  line: { color: ctx.colors.text, width: 0 },
2659
2703
  rectRadius: 0,
2660
2704
  });
2705
+ slide.addShape(ctx.shapeRoundRect, {
2706
+ x: 0.14,
2707
+ y: 0.14,
2708
+ w: ctx.width - 0.28,
2709
+ h: ctx.height - 0.28,
2710
+ fill: { color: ctx.colors.bg, transparency: 100 },
2711
+ line: { color: ctx.colors.text, width: 0.75 },
2712
+ rectRadius: 0,
2713
+ });
2661
2714
  slide.addShape(ctx.shapeRoundRect, {
2662
2715
  x: ctx.margin,
2663
2716
  y: ctx.height - 0.7,
@@ -2667,6 +2720,24 @@ function paintSlideChrome(slide, ctx, data) {
2667
2720
  line: { color: ctx.colors.text, width: 0 },
2668
2721
  rectRadius: 0,
2669
2722
  });
2723
+ slide.addShape(ctx.shapeRoundRect, {
2724
+ x: ctx.margin,
2725
+ y: ctx.height - 0.62,
2726
+ w: ctx.width - ctx.margin * 2,
2727
+ h: 0.012,
2728
+ fill: { color: ctx.colors.accent, transparency: 35 },
2729
+ line: { color: ctx.colors.accent, width: 0 },
2730
+ rectRadius: 0,
2731
+ });
2732
+ slide.addShape(ctx.shapeRoundRect, {
2733
+ x: ctx.margin,
2734
+ y: 0.55,
2735
+ w: 0.55,
2736
+ h: 0.03,
2737
+ fill: { color: ctx.colors.accent },
2738
+ line: { color: ctx.colors.accent, width: 0 },
2739
+ rectRadius: 0,
2740
+ });
2670
2741
  }
2671
2742
  if (theme === "bauhaus") {
2672
2743
  // Hard frame on every slide; red square + blue circle on heroes (bauhaus-blocks).
@@ -2829,12 +2900,31 @@ function paintSlideChrome(slide, ctx, data) {
2829
2900
  });
2830
2901
  }
2831
2902
  if (theme === "genz-bento") {
2832
- // Hard border shadow + accent2 corner blot (hard-bento).
2903
+ // Hard border + 10px offset shadow strips + accent2 corner blot (hard-bento).
2904
+ const shadow = 0.12;
2905
+ slide.addShape(ctx.shapeRoundRect, {
2906
+ x: ctx.width - shadow,
2907
+ y: shadow,
2908
+ w: shadow,
2909
+ h: ctx.height - shadow,
2910
+ fill: { color: ctx.colors.text },
2911
+ line: { color: ctx.colors.text, width: 0 },
2912
+ rectRadius: 0,
2913
+ });
2914
+ slide.addShape(ctx.shapeRoundRect, {
2915
+ x: shadow,
2916
+ y: ctx.height - shadow,
2917
+ w: ctx.width - shadow,
2918
+ h: shadow,
2919
+ fill: { color: ctx.colors.text },
2920
+ line: { color: ctx.colors.text, width: 0 },
2921
+ rectRadius: 0,
2922
+ });
2833
2923
  slide.addShape(ctx.shapeRoundRect, {
2834
2924
  x: 0.12,
2835
2925
  y: 0.12,
2836
- w: ctx.width - 0.12,
2837
- h: ctx.height - 0.12,
2926
+ w: ctx.width - 0.24,
2927
+ h: ctx.height - 0.24,
2838
2928
  fill: { color: ctx.colors.bg, transparency: 100 },
2839
2929
  line: { color: ctx.colors.text, width: 2.5 },
2840
2930
  rectRadius: 0,
@@ -3100,7 +3190,35 @@ function paintSlideChrome(slide, ctx, data) {
3100
3190
  });
3101
3191
  }
3102
3192
  if (theme === "bold-poster") {
3103
- // Ink top bar + offset poster block (bold-poster-ink).
3193
+ // Hard frame + offset shadow every slide; ink top bar; poster block on heroes.
3194
+ const shadow = 0.11;
3195
+ slide.addShape(ctx.shapeRoundRect, {
3196
+ x: ctx.width - shadow,
3197
+ y: shadow,
3198
+ w: shadow,
3199
+ h: ctx.height - shadow,
3200
+ fill: { color: ctx.colors.text },
3201
+ line: { color: ctx.colors.text, width: 0 },
3202
+ rectRadius: 0,
3203
+ });
3204
+ slide.addShape(ctx.shapeRoundRect, {
3205
+ x: shadow,
3206
+ y: ctx.height - shadow,
3207
+ w: ctx.width - shadow,
3208
+ h: shadow,
3209
+ fill: { color: ctx.colors.text },
3210
+ line: { color: ctx.colors.text, width: 0 },
3211
+ rectRadius: 0,
3212
+ });
3213
+ slide.addShape(ctx.shapeRoundRect, {
3214
+ x: 0.1,
3215
+ y: 0.1,
3216
+ w: ctx.width - 0.2,
3217
+ h: ctx.height - 0.2,
3218
+ fill: { color: ctx.colors.bg, transparency: 100 },
3219
+ line: { color: ctx.colors.text, width: 2.25 },
3220
+ rectRadius: 0,
3221
+ });
3104
3222
  slide.addShape(ctx.shapeRoundRect, {
3105
3223
  x: 0,
3106
3224
  y: 0,
@@ -3351,27 +3469,56 @@ function paintSlideChrome(slide, ctx, data) {
3351
3469
  });
3352
3470
  }
3353
3471
  }
3354
- if (theme === "split-pastel" && isHero) {
3355
- // Split field + stacked pastel pills (split-pastel-panels).
3356
- slide.addShape(ctx.shapeRoundRect, {
3357
- x: ctx.width * 0.5,
3358
- y: 0,
3359
- w: ctx.width * 0.5,
3360
- h: ctx.height,
3361
- fill: { color: ctx.colors.bg2 },
3362
- line: { color: ctx.colors.bg2, width: 0 },
3363
- rectRadius: 0,
3472
+ if (theme === "split-pastel") {
3473
+ // Soft dual pastel corner washes on every slide; full split + pills on heroes.
3474
+ slide.addShape(ctx.shapeOval, {
3475
+ x: -1.4,
3476
+ y: ctx.height - 2.6,
3477
+ w: 3.2,
3478
+ h: 3.2,
3479
+ fill: { color: ctx.colors.accent, transparency: 84 },
3480
+ line: { color: ctx.colors.accent, width: 0 },
3364
3481
  });
3365
- const stack = [ctx.colors.accent, ctx.colors.accent2, "F0F0C8"];
3366
- for (let i = 0; i < stack.length; i++) {
3482
+ slide.addShape(ctx.shapeOval, {
3483
+ x: ctx.width - 2.4,
3484
+ y: -1.4,
3485
+ w: 3.0,
3486
+ h: 3.0,
3487
+ fill: { color: ctx.colors.accent2, transparency: 84 },
3488
+ line: { color: ctx.colors.accent2, width: 0 },
3489
+ });
3490
+ if (isHero) {
3367
3491
  slide.addShape(ctx.shapeRoundRect, {
3368
- x: ctx.width - 1.55,
3369
- y: ctx.height - 1.35 + i * 0.32,
3370
- w: 0.95,
3371
- h: 0.26,
3372
- fill: { color: stack[i] },
3373
- line: { color: stack[i], width: 0 },
3374
- rectRadius: 0.13,
3492
+ x: ctx.width * 0.5,
3493
+ y: 0,
3494
+ w: ctx.width * 0.5,
3495
+ h: ctx.height,
3496
+ fill: { color: ctx.colors.bg2 },
3497
+ line: { color: ctx.colors.bg2, width: 0 },
3498
+ rectRadius: 0,
3499
+ });
3500
+ const stack = [ctx.colors.accent, ctx.colors.accent2, "F0F0C8"];
3501
+ for (let i = 0; i < stack.length; i++) {
3502
+ slide.addShape(ctx.shapeRoundRect, {
3503
+ x: ctx.width - 1.55,
3504
+ y: ctx.height - 1.35 + i * 0.32,
3505
+ w: 0.95,
3506
+ h: 0.26,
3507
+ fill: { color: stack[i] },
3508
+ line: { color: stack[i], width: 0 },
3509
+ rectRadius: 0.13,
3510
+ });
3511
+ }
3512
+ }
3513
+ else {
3514
+ slide.addShape(ctx.shapeRoundRect, {
3515
+ x: ctx.margin,
3516
+ y: 0.55,
3517
+ w: 0.9,
3518
+ h: 0.02,
3519
+ fill: { color: ctx.colors.accent, transparency: 30 },
3520
+ line: { color: ctx.colors.accent, width: 0 },
3521
+ rectRadius: 0,
3375
3522
  });
3376
3523
  }
3377
3524
  }
@@ -3689,7 +3836,16 @@ function paintSlideChrome(slide, ctx, data) {
3689
3836
  });
3690
3837
  }
3691
3838
  if (theme === "broadside") {
3692
- // Fire-orange left rail + corner block (broadside-fire).
3839
+ // Fire-orange left rail + corner block + thin outer border + hero top stub.
3840
+ slide.addShape(ctx.shapeRoundRect, {
3841
+ x: 0.1,
3842
+ y: 0.1,
3843
+ w: ctx.width - 0.2,
3844
+ h: ctx.height - 0.2,
3845
+ fill: { color: ctx.colors.bg, transparency: 100 },
3846
+ line: { color: ctx.colors.text, width: 1.5 },
3847
+ rectRadius: 0,
3848
+ });
3693
3849
  slide.addShape(ctx.shapeRoundRect, {
3694
3850
  x: 0,
3695
3851
  y: 0,
@@ -3708,6 +3864,17 @@ function paintSlideChrome(slide, ctx, data) {
3708
3864
  line: { color: ctx.colors.accent, width: 0 },
3709
3865
  rectRadius: 0,
3710
3866
  });
3867
+ if (isHero) {
3868
+ slide.addShape(ctx.shapeRoundRect, {
3869
+ x: ctx.margin,
3870
+ y: 0.45,
3871
+ w: 1.1,
3872
+ h: 0.06,
3873
+ fill: { color: ctx.colors.accent },
3874
+ line: { color: ctx.colors.accent, width: 0 },
3875
+ rectRadius: 0,
3876
+ });
3877
+ }
3711
3878
  }
3712
3879
  if (theme === "pink-script") {
3713
3880
  // Soft pink wash + inset frame + accent hairline (pink-script-afterhours).
@@ -3833,7 +4000,16 @@ function paintSlideChrome(slide, ctx, data) {
3833
4000
  });
3834
4001
  }
3835
4002
  if (theme === "notebook-tabs") {
3836
- // Pastel side tabs + binder holes (notebook-tabs-page).
4003
+ // Dark mat frame + pastel side tabs + binder holes + left margin rule.
4004
+ slide.addShape(ctx.shapeRoundRect, {
4005
+ x: 0.06,
4006
+ y: 0.06,
4007
+ w: ctx.width - 0.12,
4008
+ h: ctx.height - 0.12,
4009
+ fill: { color: ctx.colors.bg, transparency: 100 },
4010
+ line: { color: "2D2D2D", width: 2.5 },
4011
+ rectRadius: 0.04,
4012
+ });
3837
4013
  const tabs = ["98D4BB", "C7B8EA", "F4B8C5", "A8D8EA", "FFE6A7"];
3838
4014
  const tabH = (ctx.height * 0.72) / tabs.length;
3839
4015
  for (let i = 0; i < tabs.length; i++) {
@@ -3857,6 +4033,15 @@ function paintSlideChrome(slide, ctx, data) {
3857
4033
  line: { color: "D0CCC4", width: 0 },
3858
4034
  });
3859
4035
  }
4036
+ slide.addShape(ctx.shapeRoundRect, {
4037
+ x: 0.72,
4038
+ y: 0.4,
4039
+ w: 0.018,
4040
+ h: ctx.height - 0.8,
4041
+ fill: { color: ctx.colors.accent, transparency: 55 },
4042
+ line: { color: ctx.colors.accent, width: 0 },
4043
+ rectRadius: 0,
4044
+ });
3860
4045
  }
3861
4046
  if (theme === "long-table") {
3862
4047
  // Speckled supper club + outline pill + hairline (long-table-supper).
@@ -4168,7 +4353,7 @@ function paintSlideChrome(slide, ctx, data) {
4168
4353
  });
4169
4354
  }
4170
4355
  if (theme === "broadsheet") {
4171
- // Newsprint masthead bar + bottom rule (newsprint-masthead).
4356
+ // Newsprint masthead + quiet frame + double bottom rules + accent stub.
4172
4357
  slide.addShape(ctx.shapeRoundRect, {
4173
4358
  x: 0,
4174
4359
  y: 0,
@@ -4178,6 +4363,15 @@ function paintSlideChrome(slide, ctx, data) {
4178
4363
  line: { color: ctx.colors.text, width: 0 },
4179
4364
  rectRadius: 0,
4180
4365
  });
4366
+ slide.addShape(ctx.shapeRoundRect, {
4367
+ x: 0.14,
4368
+ y: 0.14,
4369
+ w: ctx.width - 0.28,
4370
+ h: ctx.height - 0.28,
4371
+ fill: { color: ctx.colors.bg, transparency: 100 },
4372
+ line: { color: ctx.colors.text, width: 0.85 },
4373
+ rectRadius: 0,
4374
+ });
4181
4375
  slide.addShape(ctx.shapeRoundRect, {
4182
4376
  x: ctx.margin,
4183
4377
  y: ctx.height - 0.7,
@@ -4187,9 +4381,36 @@ function paintSlideChrome(slide, ctx, data) {
4187
4381
  line: { color: ctx.colors.text, width: 0 },
4188
4382
  rectRadius: 0,
4189
4383
  });
4384
+ slide.addShape(ctx.shapeRoundRect, {
4385
+ x: ctx.margin,
4386
+ y: ctx.height - 0.62,
4387
+ w: ctx.width - ctx.margin * 2,
4388
+ h: 0.012,
4389
+ fill: { color: ctx.colors.accent, transparency: 40 },
4390
+ line: { color: ctx.colors.accent, width: 0 },
4391
+ rectRadius: 0,
4392
+ });
4393
+ slide.addShape(ctx.shapeRoundRect, {
4394
+ x: ctx.margin,
4395
+ y: 0.58,
4396
+ w: 0.6,
4397
+ h: 0.035,
4398
+ fill: { color: ctx.colors.accent },
4399
+ line: { color: ctx.colors.accent, width: 0 },
4400
+ rectRadius: 0,
4401
+ });
4190
4402
  }
4191
4403
  if (theme === "editorial-forest") {
4192
- // Forest rule + blush orb (editorial-forest-paper).
4404
+ // Forest inset frame + dual hairlines + larger blush orb.
4405
+ slide.addShape(ctx.shapeRoundRect, {
4406
+ x: 0.26,
4407
+ y: 0.26,
4408
+ w: ctx.width - 0.52,
4409
+ h: ctx.height - 0.52,
4410
+ fill: { color: ctx.colors.bg, transparency: 100 },
4411
+ line: { color: ctx.colors.accent, width: 1.15 },
4412
+ rectRadius: 0.06,
4413
+ });
4193
4414
  slide.addShape(ctx.shapeRoundRect, {
4194
4415
  x: ctx.margin,
4195
4416
  y: 0.55,
@@ -4199,17 +4420,35 @@ function paintSlideChrome(slide, ctx, data) {
4199
4420
  line: { color: ctx.colors.accent, width: 0 },
4200
4421
  rectRadius: 0,
4201
4422
  });
4423
+ slide.addShape(ctx.shapeRoundRect, {
4424
+ x: ctx.margin,
4425
+ y: 0.68,
4426
+ w: 0.55,
4427
+ h: 0.015,
4428
+ fill: { color: ctx.colors.accent2, transparency: 25 },
4429
+ line: { color: ctx.colors.accent2, width: 0 },
4430
+ rectRadius: 0,
4431
+ });
4202
4432
  slide.addShape(ctx.shapeOval, {
4203
- x: ctx.width - 1.65,
4204
- y: ctx.height - 1.55,
4205
- w: 0.95,
4206
- h: 0.95,
4207
- fill: { color: ctx.colors.accent2, transparency: 35 },
4433
+ x: ctx.width - 1.85,
4434
+ y: ctx.height - 1.75,
4435
+ w: 1.2,
4436
+ h: 1.2,
4437
+ fill: { color: ctx.colors.accent2, transparency: 32 },
4208
4438
  line: { color: ctx.colors.accent2, width: 0 },
4209
4439
  });
4210
4440
  }
4211
4441
  if (theme === "signal") {
4212
- // Briefing hairline + outline square (signal-briefing).
4442
+ // Quiet briefing border + hairline + outline square + bottom gold stub.
4443
+ slide.addShape(ctx.shapeRoundRect, {
4444
+ x: 0.22,
4445
+ y: 0.22,
4446
+ w: ctx.width - 0.44,
4447
+ h: ctx.height - 0.44,
4448
+ fill: { color: ctx.colors.bg, transparency: 100 },
4449
+ line: { color: ctx.colors.text, width: 1.1 },
4450
+ rectRadius: 0.04,
4451
+ });
4213
4452
  slide.addShape(ctx.shapeRoundRect, {
4214
4453
  x: ctx.margin,
4215
4454
  y: 0.55,
@@ -4228,6 +4467,15 @@ function paintSlideChrome(slide, ctx, data) {
4228
4467
  line: { color: ctx.colors.accent2, width: 1.25 },
4229
4468
  rectRadius: 0,
4230
4469
  });
4470
+ slide.addShape(ctx.shapeRoundRect, {
4471
+ x: ctx.margin,
4472
+ y: ctx.height - 0.55,
4473
+ w: 0.95,
4474
+ h: 0.03,
4475
+ fill: { color: ctx.colors.accent2 },
4476
+ line: { color: ctx.colors.accent2, width: 0 },
4477
+ rectRadius: 0,
4478
+ });
4231
4479
  }
4232
4480
  if (theme === "pastel-dreamy") {
4233
4481
  // Soft cloud ovals + third mist blot (pastel-cloud).