@presentation-md/export 1.16.2 → 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 +507 -92
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -8,6 +8,18 @@ function cardStroke(ctx, opts = {}) {
|
|
|
8
8
|
if (ctx.themeName === "daisy-days") {
|
|
9
9
|
return { color: "2D2D2D", width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
|
|
10
10
|
}
|
|
11
|
+
// capsule-pills cards: 2px ink
|
|
12
|
+
if (ctx.themeName === "capsule") {
|
|
13
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
14
|
+
}
|
|
15
|
+
// bit-orbit-arcade cards: 2px accent
|
|
16
|
+
if (ctx.themeName === "8-bit-orbit") {
|
|
17
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
18
|
+
}
|
|
19
|
+
// retro-windows-chrome cards: 2px ink
|
|
20
|
+
if (ctx.themeName === "retro-windows") {
|
|
21
|
+
return { color: "000000", width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
22
|
+
}
|
|
11
23
|
// block-frame-brutal cards: 4px ink
|
|
12
24
|
if (ctx.themeName === "block-frame") {
|
|
13
25
|
return { color: "000000", width: opts.hero || opts.highlighted ? 3.25 : 3 };
|
|
@@ -24,6 +36,22 @@ function cardStroke(ctx, opts = {}) {
|
|
|
24
36
|
if (ctx.themeName === "stencil-tablet" || ctx.themeName === "retro-zine") {
|
|
25
37
|
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
26
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
|
+
}
|
|
27
55
|
if (opts.hero || opts.highlighted) {
|
|
28
56
|
return { color: ctx.colors.accent, width: opts.highlighted ? 1.75 : 1.5 };
|
|
29
57
|
}
|
|
@@ -48,12 +76,26 @@ function cardRadius(ctx) {
|
|
|
48
76
|
// stencil-tablet-earth cards: border-radius 24px ≈ 0.25"
|
|
49
77
|
if (ctx.themeName === "stencil-tablet")
|
|
50
78
|
return 0.25;
|
|
51
|
-
// retro-zine-riso / block-frame-brutal / creative-mode-blocks
|
|
79
|
+
// retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95 / coral / peoples: square
|
|
52
80
|
if (ctx.themeName === "retro-zine" ||
|
|
53
81
|
ctx.themeName === "block-frame" ||
|
|
54
|
-
ctx.themeName === "creative-mode"
|
|
82
|
+
ctx.themeName === "creative-mode" ||
|
|
83
|
+
ctx.themeName === "8-bit-orbit" ||
|
|
84
|
+
ctx.themeName === "retro-windows" ||
|
|
85
|
+
ctx.themeName === "coral" ||
|
|
86
|
+
ctx.themeName === "peoples-platform") {
|
|
55
87
|
return 0;
|
|
56
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;
|
|
96
|
+
// scatterbrain-cork cards: border-radius 2px ≈ 0.02"
|
|
97
|
+
if (ctx.themeName === "scatterbrain")
|
|
98
|
+
return 0.02;
|
|
57
99
|
// sakura-chroma-cassette cards: border-radius 4px ≈ 0.04"
|
|
58
100
|
if (ctx.themeName === "sakura-chroma")
|
|
59
101
|
return 0.04;
|
|
@@ -1768,7 +1810,26 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
1768
1810
|
}
|
|
1769
1811
|
}
|
|
1770
1812
|
if (theme === "bold-signal") {
|
|
1771
|
-
// Soft
|
|
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
|
+
});
|
|
1772
1833
|
slide.addShape(ctx.shapeOval, {
|
|
1773
1834
|
x: -0.6,
|
|
1774
1835
|
y: ctx.height - 1.8,
|
|
@@ -2660,7 +2721,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2660
2721
|
});
|
|
2661
2722
|
}
|
|
2662
2723
|
if (theme === "neon-noir") {
|
|
2663
|
-
// Magenta glow
|
|
2724
|
+
// Magenta/cyan glow + cyan rim + rain scanlines + floor inset (neon-rain).
|
|
2664
2725
|
slide.addShape(ctx.shapeOval, {
|
|
2665
2726
|
x: ctx.width * 0.55,
|
|
2666
2727
|
y: -ctx.height * 0.2,
|
|
@@ -2677,20 +2738,50 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2677
2738
|
fill: { color: ctx.colors.accent2, transparency: 70 },
|
|
2678
2739
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2679
2740
|
});
|
|
2680
|
-
|
|
2741
|
+
// Rain scanlines (HTML repeating-linear-gradient).
|
|
2742
|
+
for (let i = 0; i < 18; i++) {
|
|
2681
2743
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2682
|
-
x: 0,
|
|
2683
|
-
y:
|
|
2684
|
-
w:
|
|
2685
|
-
h:
|
|
2686
|
-
fill: { color:
|
|
2687
|
-
line: { color:
|
|
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 },
|
|
2688
2750
|
rectRadius: 0,
|
|
2689
2751
|
});
|
|
2690
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
|
+
});
|
|
2691
2782
|
}
|
|
2692
2783
|
if (theme === "vaporwave") {
|
|
2693
|
-
// Horizon grid
|
|
2784
|
+
// Horizon grid + pink sun + accent rim + horizon glow (vapor-horizon).
|
|
2694
2785
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2695
2786
|
x: 0,
|
|
2696
2787
|
y: ctx.height * 0.55,
|
|
@@ -2721,9 +2812,68 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2721
2812
|
rectRadius: 0,
|
|
2722
2813
|
});
|
|
2723
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
|
+
});
|
|
2724
2856
|
}
|
|
2725
2857
|
if (theme === "y2k-aero") {
|
|
2726
|
-
//
|
|
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
|
+
});
|
|
2727
2877
|
slide.addShape(ctx.shapeOval, {
|
|
2728
2878
|
x: ctx.width * 0.65,
|
|
2729
2879
|
y: -ctx.height * 0.1,
|
|
@@ -3164,7 +3314,35 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3164
3314
|
});
|
|
3165
3315
|
}
|
|
3166
3316
|
if (theme === "pastel-geometry") {
|
|
3167
|
-
//
|
|
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
|
+
});
|
|
3168
3346
|
const pills = [
|
|
3169
3347
|
{ color: "F0B4D4" },
|
|
3170
3348
|
{ color: "A8D4C4" },
|
|
@@ -3186,24 +3364,53 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3186
3364
|
rectRadius: 0.11,
|
|
3187
3365
|
});
|
|
3188
3366
|
}
|
|
3189
|
-
// Soft card-field wash so the sky matte reads behind content.
|
|
3190
|
-
slide.addShape(ctx.shapeRoundRect, {
|
|
3191
|
-
x: ctx.margin * 0.45,
|
|
3192
|
-
y: ctx.margin * 0.45,
|
|
3193
|
-
w: ctx.width - ctx.margin * 0.9,
|
|
3194
|
-
h: ctx.height - ctx.margin * 0.9,
|
|
3195
|
-
fill: { color: ctx.colors.cardBg, transparency: 35 },
|
|
3196
|
-
line: { color: ctx.colors.border, width: 0.75 },
|
|
3197
|
-
rectRadius: 0.28,
|
|
3198
|
-
});
|
|
3199
3367
|
}
|
|
3200
3368
|
if (theme === "8-bit-orbit") {
|
|
3201
|
-
// Arcade scanlines + neon
|
|
3369
|
+
// Arcade scanlines + neon orbs + dual offset shadows (4px yellow + 8px pink)
|
|
3370
|
+
// + accent frame + always-on pixel HUD (bit-orbit-arcade).
|
|
3371
|
+
const outer = 0.1; // ~8px accent2
|
|
3372
|
+
const inner = 0.05; // ~4px yellow
|
|
3373
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3374
|
+
x: ctx.width - outer,
|
|
3375
|
+
y: outer,
|
|
3376
|
+
w: outer,
|
|
3377
|
+
h: ctx.height - outer,
|
|
3378
|
+
fill: { color: ctx.colors.accent2 },
|
|
3379
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3380
|
+
rectRadius: 0,
|
|
3381
|
+
});
|
|
3382
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3383
|
+
x: outer,
|
|
3384
|
+
y: ctx.height - outer,
|
|
3385
|
+
w: ctx.width - outer,
|
|
3386
|
+
h: outer,
|
|
3387
|
+
fill: { color: ctx.colors.accent2 },
|
|
3388
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3389
|
+
rectRadius: 0,
|
|
3390
|
+
});
|
|
3391
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3392
|
+
x: ctx.width - outer - inner,
|
|
3393
|
+
y: outer + inner,
|
|
3394
|
+
w: inner,
|
|
3395
|
+
h: ctx.height - outer - inner,
|
|
3396
|
+
fill: { color: "F4D03F" },
|
|
3397
|
+
line: { color: "F4D03F", width: 0 },
|
|
3398
|
+
rectRadius: 0,
|
|
3399
|
+
});
|
|
3400
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3401
|
+
x: outer + inner,
|
|
3402
|
+
y: ctx.height - outer - inner,
|
|
3403
|
+
w: ctx.width - outer - inner,
|
|
3404
|
+
h: inner,
|
|
3405
|
+
fill: { color: "F4D03F" },
|
|
3406
|
+
line: { color: "F4D03F", width: 0 },
|
|
3407
|
+
rectRadius: 0,
|
|
3408
|
+
});
|
|
3202
3409
|
for (let i = 0; i < 10; i++) {
|
|
3203
3410
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3204
3411
|
x: 0,
|
|
3205
3412
|
y: 0.25 + i * 0.7,
|
|
3206
|
-
w: ctx.width,
|
|
3413
|
+
w: ctx.width - outer,
|
|
3207
3414
|
h: 0.035,
|
|
3208
3415
|
fill: { color: "000000", transparency: 82 },
|
|
3209
3416
|
line: { color: "000000", width: 0 },
|
|
@@ -3213,7 +3420,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3213
3420
|
slide.addShape(ctx.shapeOval, {
|
|
3214
3421
|
x: ctx.width * 0.55,
|
|
3215
3422
|
y: -ctx.height * 0.12,
|
|
3216
|
-
w: ctx.width * 0.45,
|
|
3423
|
+
w: ctx.width * 0.45 - outer,
|
|
3217
3424
|
h: ctx.height * 0.45,
|
|
3218
3425
|
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
3219
3426
|
line: { color: ctx.colors.accent, width: 0 },
|
|
@@ -3222,11 +3429,20 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3222
3429
|
x: -ctx.width * 0.1,
|
|
3223
3430
|
y: ctx.height * 0.55,
|
|
3224
3431
|
w: ctx.width * 0.4,
|
|
3225
|
-
h: ctx.height * 0.45,
|
|
3432
|
+
h: ctx.height * 0.45 - outer,
|
|
3226
3433
|
fill: { color: ctx.colors.accent2, transparency: 78 },
|
|
3227
3434
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
3228
3435
|
});
|
|
3229
|
-
|
|
3436
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3437
|
+
x: 0.08,
|
|
3438
|
+
y: 0.08,
|
|
3439
|
+
w: ctx.width - 0.08 - outer,
|
|
3440
|
+
h: ctx.height - 0.08 - outer,
|
|
3441
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3442
|
+
line: { color: ctx.colors.accent, width: 2.5 },
|
|
3443
|
+
rectRadius: 0,
|
|
3444
|
+
});
|
|
3445
|
+
// Pixel HUD dots (top-left) — always-on like HTML ::before.
|
|
3230
3446
|
const pixels = [
|
|
3231
3447
|
{ x: 0.45, color: "F4D03F" },
|
|
3232
3448
|
{ x: 0.7, color: ctx.colors.accent },
|
|
@@ -3244,17 +3460,25 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3244
3460
|
rectRadius: 0,
|
|
3245
3461
|
});
|
|
3246
3462
|
}
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3463
|
+
// Bottom-right HUD chip + yellow offset plate — always-on like HTML ::after.
|
|
3464
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3465
|
+
x: ctx.width - 1.5 - outer,
|
|
3466
|
+
y: ctx.height - 0.8 - outer,
|
|
3467
|
+
w: 0.95,
|
|
3468
|
+
h: 0.28,
|
|
3469
|
+
fill: { color: "F4D03F" },
|
|
3470
|
+
line: { color: "F4D03F", width: 0 },
|
|
3471
|
+
rectRadius: 0,
|
|
3472
|
+
});
|
|
3473
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3474
|
+
x: ctx.width - 1.55 - outer,
|
|
3475
|
+
y: ctx.height - 0.85 - outer,
|
|
3476
|
+
w: 0.95,
|
|
3477
|
+
h: 0.28,
|
|
3478
|
+
fill: { color: ctx.colors.accent },
|
|
3479
|
+
line: { color: "FFFFFF", width: 1.5 },
|
|
3480
|
+
rectRadius: 0,
|
|
3481
|
+
});
|
|
3258
3482
|
}
|
|
3259
3483
|
if (theme === "neo-grid-bold") {
|
|
3260
3484
|
// Modular grid + lemon corner panel + hard border + 8px accent offset
|
|
@@ -3371,22 +3595,33 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3371
3595
|
}
|
|
3372
3596
|
}
|
|
3373
3597
|
if (theme === "capsule") {
|
|
3374
|
-
// Plump frame +
|
|
3375
|
-
// hero-gated coral pill + lime circles (capsule-pills
|
|
3598
|
+
// Plump frame + hard ink offset shadow (HTML 8px/10px 0-blur) + pastel blots;
|
|
3599
|
+
// hero-gated coral pill + lime circles (capsule-pills ::before/::after).
|
|
3600
|
+
const shadowX = 0.1;
|
|
3601
|
+
const shadowY = 0.12;
|
|
3602
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3603
|
+
x: ctx.width - shadowX,
|
|
3604
|
+
y: shadowY,
|
|
3605
|
+
w: shadowX,
|
|
3606
|
+
h: ctx.height - shadowY,
|
|
3607
|
+
fill: { color: ctx.colors.text },
|
|
3608
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3609
|
+
rectRadius: 0,
|
|
3610
|
+
});
|
|
3376
3611
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3377
|
-
x:
|
|
3378
|
-
y:
|
|
3379
|
-
w: ctx.width -
|
|
3380
|
-
h:
|
|
3381
|
-
fill: { color: ctx.colors.text
|
|
3612
|
+
x: shadowX,
|
|
3613
|
+
y: ctx.height - shadowY,
|
|
3614
|
+
w: ctx.width - shadowX,
|
|
3615
|
+
h: shadowY,
|
|
3616
|
+
fill: { color: ctx.colors.text },
|
|
3382
3617
|
line: { color: ctx.colors.text, width: 0 },
|
|
3383
|
-
rectRadius: 0
|
|
3618
|
+
rectRadius: 0,
|
|
3384
3619
|
});
|
|
3385
3620
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3386
3621
|
x: 0.18,
|
|
3387
3622
|
y: 0.18,
|
|
3388
|
-
w: ctx.width - 0.36,
|
|
3389
|
-
h: ctx.height - 0.36,
|
|
3623
|
+
w: ctx.width - 0.36 - shadowX,
|
|
3624
|
+
h: ctx.height - 0.36 - shadowY,
|
|
3390
3625
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3391
3626
|
line: { color: ctx.colors.border, width: 2 },
|
|
3392
3627
|
rectRadius: 0.29,
|
|
@@ -3394,14 +3629,14 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3394
3629
|
// Quiet lavender / sky radial blots (HTML --slide-bg candy).
|
|
3395
3630
|
slide.addShape(ctx.shapeOval, {
|
|
3396
3631
|
x: 0.35,
|
|
3397
|
-
y: ctx.height - 1.85,
|
|
3632
|
+
y: ctx.height - 1.85 - shadowY,
|
|
3398
3633
|
w: 0.72,
|
|
3399
3634
|
h: 0.72,
|
|
3400
3635
|
fill: { color: "C5B5E0", transparency: 42 },
|
|
3401
3636
|
line: { color: "C5B5E0", width: 0 },
|
|
3402
3637
|
});
|
|
3403
3638
|
slide.addShape(ctx.shapeOval, {
|
|
3404
|
-
x: ctx.width - 1.55,
|
|
3639
|
+
x: ctx.width - 1.55 - shadowX,
|
|
3405
3640
|
y: 0.55,
|
|
3406
3641
|
w: 0.58,
|
|
3407
3642
|
h: 0.58,
|
|
@@ -3410,7 +3645,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3410
3645
|
});
|
|
3411
3646
|
if (isHero) {
|
|
3412
3647
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3413
|
-
x: ctx.width - 2.15,
|
|
3648
|
+
x: ctx.width - 2.15 - shadowX,
|
|
3414
3649
|
y: 0.5,
|
|
3415
3650
|
w: 1.45,
|
|
3416
3651
|
h: 0.42,
|
|
@@ -3420,15 +3655,15 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3420
3655
|
});
|
|
3421
3656
|
slide.addShape(ctx.shapeOval, {
|
|
3422
3657
|
x: 0.5,
|
|
3423
|
-
y: ctx.height - 1.6,
|
|
3658
|
+
y: ctx.height - 1.6 - shadowY,
|
|
3424
3659
|
w: 0.95,
|
|
3425
3660
|
h: 0.95,
|
|
3426
3661
|
fill: { color: ctx.colors.accent2 },
|
|
3427
3662
|
line: { color: ctx.colors.border, width: 2 },
|
|
3428
3663
|
});
|
|
3429
3664
|
slide.addShape(ctx.shapeOval, {
|
|
3430
|
-
x: ctx.width * 0.78,
|
|
3431
|
-
y: ctx.height * 0.72,
|
|
3665
|
+
x: ctx.width * 0.78 - shadowX,
|
|
3666
|
+
y: ctx.height * 0.72 - shadowY,
|
|
3432
3667
|
w: 0.55,
|
|
3433
3668
|
h: 0.55,
|
|
3434
3669
|
fill: { color: "C4D94E", transparency: 18 },
|
|
@@ -3439,7 +3674,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3439
3674
|
// Quiet accent stub when loud pills are off.
|
|
3440
3675
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3441
3676
|
x: ctx.margin,
|
|
3442
|
-
y: ctx.height - 0.58,
|
|
3677
|
+
y: ctx.height - 0.58 - shadowY,
|
|
3443
3678
|
w: 0.7,
|
|
3444
3679
|
h: 0.03,
|
|
3445
3680
|
fill: { color: ctx.colors.accent },
|
|
@@ -3702,38 +3937,88 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3702
3937
|
});
|
|
3703
3938
|
}
|
|
3704
3939
|
if (theme === "scatterbrain") {
|
|
3705
|
-
// Cork sticky notes +
|
|
3940
|
+
// Cork wash + soft ink offset shadow + quiet frame + sticky notes + pins;
|
|
3941
|
+
// hero-gated tape strip (scatterbrain-cork ::after).
|
|
3942
|
+
const shadow = 0.09;
|
|
3706
3943
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3707
|
-
x: ctx.width
|
|
3944
|
+
x: ctx.width - shadow,
|
|
3945
|
+
y: shadow,
|
|
3946
|
+
w: shadow,
|
|
3947
|
+
h: ctx.height - shadow,
|
|
3948
|
+
fill: { color: "2D2A26" },
|
|
3949
|
+
line: { color: "2D2A26", width: 0 },
|
|
3950
|
+
rectRadius: 0,
|
|
3951
|
+
});
|
|
3952
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3953
|
+
x: shadow,
|
|
3954
|
+
y: ctx.height - shadow,
|
|
3955
|
+
w: ctx.width - shadow,
|
|
3956
|
+
h: shadow,
|
|
3957
|
+
fill: { color: "2D2A26" },
|
|
3958
|
+
line: { color: "2D2A26", width: 0 },
|
|
3959
|
+
rectRadius: 0,
|
|
3960
|
+
});
|
|
3961
|
+
// Soft cork yellow wash (HTML radial at 20%/30%).
|
|
3962
|
+
slide.addShape(ctx.shapeOval, {
|
|
3963
|
+
x: -0.8,
|
|
3964
|
+
y: -0.6,
|
|
3965
|
+
w: ctx.width * 0.55,
|
|
3966
|
+
h: ctx.height * 0.55,
|
|
3967
|
+
fill: { color: "FFE066", transparency: 88 },
|
|
3968
|
+
line: { color: "FFE066", width: 0 },
|
|
3969
|
+
});
|
|
3970
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3971
|
+
x: 0.1,
|
|
3972
|
+
y: 0.1,
|
|
3973
|
+
w: ctx.width - 0.1 - shadow,
|
|
3974
|
+
h: ctx.height - 0.1 - shadow,
|
|
3975
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3976
|
+
line: { color: "2D2A26", width: 1 },
|
|
3977
|
+
rectRadius: 0.08,
|
|
3978
|
+
});
|
|
3979
|
+
// Quiet cork rules (HTML repeating 40px lines).
|
|
3980
|
+
for (let i = 1; i < 10; i++) {
|
|
3981
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3982
|
+
x: 0.12,
|
|
3983
|
+
y: (ctx.height / 10) * i,
|
|
3984
|
+
w: ctx.width - 0.12 - shadow,
|
|
3985
|
+
h: 0.01,
|
|
3986
|
+
fill: { color: "2D2A26", transparency: 92 },
|
|
3987
|
+
line: { color: "2D2A26", width: 0 },
|
|
3988
|
+
rectRadius: 0,
|
|
3989
|
+
});
|
|
3990
|
+
}
|
|
3991
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3992
|
+
x: ctx.width * 0.68 - shadow,
|
|
3708
3993
|
y: 0.55,
|
|
3709
3994
|
w: 1.7,
|
|
3710
3995
|
h: 1.25,
|
|
3711
3996
|
fill: { color: "FFE066" },
|
|
3712
3997
|
line: { color: ctx.colors.text, width: 0.75 },
|
|
3713
|
-
rectRadius: 0.
|
|
3998
|
+
rectRadius: 0.02,
|
|
3714
3999
|
});
|
|
3715
4000
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3716
|
-
x: ctx.width * 0.78,
|
|
4001
|
+
x: ctx.width * 0.78 - shadow,
|
|
3717
4002
|
y: ctx.height * 0.48,
|
|
3718
4003
|
w: 1.4,
|
|
3719
4004
|
h: 1.1,
|
|
3720
4005
|
fill: { color: "74C0FC" },
|
|
3721
4006
|
line: { color: ctx.colors.text, width: 0.75 },
|
|
3722
|
-
rectRadius: 0.
|
|
4007
|
+
rectRadius: 0.02,
|
|
3723
4008
|
});
|
|
3724
4009
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3725
4010
|
x: 0.55,
|
|
3726
|
-
y: ctx.height * 0.58,
|
|
4011
|
+
y: ctx.height * 0.58 - shadow,
|
|
3727
4012
|
w: 1.25,
|
|
3728
4013
|
h: 1.0,
|
|
3729
4014
|
fill: { color: "FF9F9F" },
|
|
3730
4015
|
line: { color: ctx.colors.text, width: 0.75 },
|
|
3731
|
-
rectRadius: 0.
|
|
4016
|
+
rectRadius: 0.02,
|
|
3732
4017
|
});
|
|
3733
4018
|
for (const pin of [
|
|
3734
|
-
{ x: ctx.width * 0.72, y: 0.48 },
|
|
3735
|
-
{ x: ctx.width * 0.82, y: ctx.height * 0.42 },
|
|
3736
|
-
{ x: 0.72, y: ctx.height * 0.52 },
|
|
4019
|
+
{ x: ctx.width * 0.72 - shadow, y: 0.48 },
|
|
4020
|
+
{ x: ctx.width * 0.82 - shadow, y: ctx.height * 0.42 },
|
|
4021
|
+
{ x: 0.72, y: ctx.height * 0.52 - shadow },
|
|
3737
4022
|
]) {
|
|
3738
4023
|
slide.addShape(ctx.shapeOval, {
|
|
3739
4024
|
x: pin.x,
|
|
@@ -3744,6 +4029,18 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3744
4029
|
line: { color: "C92A2A", width: 0 },
|
|
3745
4030
|
});
|
|
3746
4031
|
}
|
|
4032
|
+
if (isHero) {
|
|
4033
|
+
// Tape strip stand-in (HTML ::after).
|
|
4034
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4035
|
+
x: 0.55,
|
|
4036
|
+
y: ctx.height - 0.95 - shadow,
|
|
4037
|
+
w: 1.05,
|
|
4038
|
+
h: 0.26,
|
|
4039
|
+
fill: { color: "FFEC99", transparency: 25 },
|
|
4040
|
+
line: { color: "2D2A26", width: 0.75 },
|
|
4041
|
+
rectRadius: 0.02,
|
|
4042
|
+
});
|
|
4043
|
+
}
|
|
3747
4044
|
}
|
|
3748
4045
|
if (theme === "split-pastel") {
|
|
3749
4046
|
// Soft dual pastel corner washes on every slide; full split + pills on heroes.
|
|
@@ -3832,7 +4129,21 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3832
4129
|
}
|
|
3833
4130
|
}
|
|
3834
4131
|
if (theme === "peoples-platform") {
|
|
3835
|
-
// Cobalt top bar + amber footer stub + hard frame
|
|
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
|
+
}
|
|
3836
4147
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3837
4148
|
x: 0.08,
|
|
3838
4149
|
y: 0.08,
|
|
@@ -4232,7 +4543,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4232
4543
|
}
|
|
4233
4544
|
}
|
|
4234
4545
|
if (theme === "pink-script") {
|
|
4235
|
-
// Dual inset frames + accent hairline;
|
|
4546
|
+
// Dual inset frames + always-on accent hairline; soft wash on heroes
|
|
4547
|
+
// (pink-script-afterhours — HTML ::after hairline is not hero-gated).
|
|
4236
4548
|
if (isHero) {
|
|
4237
4549
|
slide.addShape(ctx.shapeOval, {
|
|
4238
4550
|
x: ctx.width * 0.55,
|
|
@@ -4263,49 +4575,152 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
4263
4575
|
line: { color: "F5EDF1", width: 1 },
|
|
4264
4576
|
rectRadius: 0,
|
|
4265
4577
|
});
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
}
|
|
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
|
+
});
|
|
4277
4588
|
}
|
|
4278
4589
|
if (theme === "retro-windows") {
|
|
4279
|
-
// Win95
|
|
4590
|
+
// Win95 beveled chrome: white top/left + black right/bottom outer bevel,
|
|
4591
|
+
// inset hilite/shade strips, CRT scanlines, title bar + window buttons.
|
|
4592
|
+
const bevel = 0.035;
|
|
4593
|
+
// Outer dark bottom/right.
|
|
4280
4594
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4281
|
-
x:
|
|
4282
|
-
y: 0
|
|
4283
|
-
w:
|
|
4284
|
-
h: ctx.height
|
|
4285
|
-
fill: { color:
|
|
4286
|
-
line: { color: "000000", width:
|
|
4595
|
+
x: ctx.width - bevel,
|
|
4596
|
+
y: 0,
|
|
4597
|
+
w: bevel,
|
|
4598
|
+
h: ctx.height,
|
|
4599
|
+
fill: { color: "000000" },
|
|
4600
|
+
line: { color: "000000", width: 0 },
|
|
4287
4601
|
rectRadius: 0,
|
|
4288
4602
|
});
|
|
4289
4603
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4290
|
-
x: 0
|
|
4291
|
-
y:
|
|
4292
|
-
w: ctx.width
|
|
4604
|
+
x: 0,
|
|
4605
|
+
y: ctx.height - bevel,
|
|
4606
|
+
w: ctx.width,
|
|
4607
|
+
h: bevel,
|
|
4608
|
+
fill: { color: "000000" },
|
|
4609
|
+
line: { color: "000000", width: 0 },
|
|
4610
|
+
rectRadius: 0,
|
|
4611
|
+
});
|
|
4612
|
+
// Outer light top/left.
|
|
4613
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4614
|
+
x: 0,
|
|
4615
|
+
y: 0,
|
|
4616
|
+
w: ctx.width - bevel,
|
|
4617
|
+
h: bevel,
|
|
4618
|
+
fill: { color: "FFFFFF" },
|
|
4619
|
+
line: { color: "FFFFFF", width: 0 },
|
|
4620
|
+
rectRadius: 0,
|
|
4621
|
+
});
|
|
4622
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4623
|
+
x: 0,
|
|
4624
|
+
y: 0,
|
|
4625
|
+
w: bevel,
|
|
4626
|
+
h: ctx.height - bevel,
|
|
4627
|
+
fill: { color: "FFFFFF" },
|
|
4628
|
+
line: { color: "FFFFFF", width: 0 },
|
|
4629
|
+
rectRadius: 0,
|
|
4630
|
+
});
|
|
4631
|
+
// Inset shade (bottom/right #404040) + hilite (top/left white).
|
|
4632
|
+
const inset = 0.02;
|
|
4633
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4634
|
+
x: ctx.width - bevel - inset,
|
|
4635
|
+
y: bevel,
|
|
4636
|
+
w: inset,
|
|
4637
|
+
h: ctx.height - bevel * 2,
|
|
4638
|
+
fill: { color: "404040" },
|
|
4639
|
+
line: { color: "404040", width: 0 },
|
|
4640
|
+
rectRadius: 0,
|
|
4641
|
+
});
|
|
4642
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4643
|
+
x: bevel,
|
|
4644
|
+
y: ctx.height - bevel - inset,
|
|
4645
|
+
w: ctx.width - bevel * 2,
|
|
4646
|
+
h: inset,
|
|
4647
|
+
fill: { color: "404040" },
|
|
4648
|
+
line: { color: "404040", width: 0 },
|
|
4649
|
+
rectRadius: 0,
|
|
4650
|
+
});
|
|
4651
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4652
|
+
x: bevel,
|
|
4653
|
+
y: bevel,
|
|
4654
|
+
w: ctx.width - bevel * 2 - inset,
|
|
4655
|
+
h: inset,
|
|
4656
|
+
fill: { color: "FFFFFF" },
|
|
4657
|
+
line: { color: "FFFFFF", width: 0 },
|
|
4658
|
+
rectRadius: 0,
|
|
4659
|
+
});
|
|
4660
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4661
|
+
x: bevel,
|
|
4662
|
+
y: bevel,
|
|
4663
|
+
w: inset,
|
|
4664
|
+
h: ctx.height - bevel * 2 - inset,
|
|
4665
|
+
fill: { color: "FFFFFF" },
|
|
4666
|
+
line: { color: "FFFFFF", width: 0 },
|
|
4667
|
+
rectRadius: 0,
|
|
4668
|
+
});
|
|
4669
|
+
// Quiet CRT scanlines.
|
|
4670
|
+
for (let i = 0; i < 14; i++) {
|
|
4671
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4672
|
+
x: bevel + inset,
|
|
4673
|
+
y: 0.5 + i * 0.45,
|
|
4674
|
+
w: ctx.width - (bevel + inset) * 2,
|
|
4675
|
+
h: 0.012,
|
|
4676
|
+
fill: { color: "000000", transparency: 94 },
|
|
4677
|
+
line: { color: "000000", width: 0 },
|
|
4678
|
+
rectRadius: 0,
|
|
4679
|
+
});
|
|
4680
|
+
}
|
|
4681
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4682
|
+
x: bevel + inset + 0.02,
|
|
4683
|
+
y: bevel + inset + 0.02,
|
|
4684
|
+
w: ctx.width - (bevel + inset + 0.02) * 2,
|
|
4293
4685
|
h: 0.32,
|
|
4294
4686
|
fill: { color: "000080" },
|
|
4295
4687
|
line: { color: "000080", width: 0 },
|
|
4296
4688
|
rectRadius: 0,
|
|
4297
4689
|
});
|
|
4298
|
-
const winBtns = [
|
|
4690
|
+
const winBtns = [
|
|
4691
|
+
ctx.width - 1.2 - bevel,
|
|
4692
|
+
ctx.width - 0.9 - bevel,
|
|
4693
|
+
ctx.width - 0.6 - bevel,
|
|
4694
|
+
];
|
|
4299
4695
|
for (const x of winBtns) {
|
|
4300
4696
|
slide.addShape(ctx.shapeRoundRect, {
|
|
4301
4697
|
x,
|
|
4302
|
-
y: 0.
|
|
4698
|
+
y: bevel + inset + 0.08,
|
|
4303
4699
|
w: 0.22,
|
|
4304
4700
|
h: 0.18,
|
|
4305
4701
|
fill: { color: "C0C0C0" },
|
|
4306
4702
|
line: { color: "FFFFFF", width: 1 },
|
|
4307
4703
|
rectRadius: 0,
|
|
4308
4704
|
});
|
|
4705
|
+
// Button shade stub (Win95 raised control).
|
|
4706
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4707
|
+
x: x + 0.18,
|
|
4708
|
+
y: bevel + inset + 0.1,
|
|
4709
|
+
w: 0.03,
|
|
4710
|
+
h: 0.14,
|
|
4711
|
+
fill: { color: "000000" },
|
|
4712
|
+
line: { color: "000000", width: 0 },
|
|
4713
|
+
rectRadius: 0,
|
|
4714
|
+
});
|
|
4715
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
4716
|
+
x: x + 0.02,
|
|
4717
|
+
y: bevel + inset + 0.22,
|
|
4718
|
+
w: 0.16,
|
|
4719
|
+
h: 0.03,
|
|
4720
|
+
fill: { color: "000000" },
|
|
4721
|
+
line: { color: "000000", width: 0 },
|
|
4722
|
+
rectRadius: 0,
|
|
4723
|
+
});
|
|
4309
4724
|
}
|
|
4310
4725
|
}
|
|
4311
4726
|
if (theme === "pin-and-paper") {
|