@presentation-md/export 1.18.0 → 1.19.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 +110 -45
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -72,6 +72,44 @@ function cardStroke(ctx, opts = {}) {
|
|
|
72
72
|
if (ctx.themeName === "biennale-yellow") {
|
|
73
73
|
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 1.35 : 1.1 };
|
|
74
74
|
}
|
|
75
|
+
// hard-bento (genz-bento) cards: 2.5px ink
|
|
76
|
+
if (ctx.themeName === "genz-bento") {
|
|
77
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
|
|
78
|
+
}
|
|
79
|
+
// acid-block (brutalist-acid) cards: 2px accent, square
|
|
80
|
+
if (ctx.themeName === "brutalist-acid") {
|
|
81
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
82
|
+
}
|
|
83
|
+
// bauhaus-blocks cards: 2px ink, square
|
|
84
|
+
if (ctx.themeName === "bauhaus") {
|
|
85
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
86
|
+
}
|
|
87
|
+
// neo-grid-panels / bold-poster-ink / tri-tone-blocks cards: 2px ink, square
|
|
88
|
+
if (ctx.themeName === "neo-grid-bold" ||
|
|
89
|
+
ctx.themeName === "bold-poster" ||
|
|
90
|
+
ctx.themeName === "editorial-tri-tone") {
|
|
91
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
92
|
+
}
|
|
93
|
+
// raw-grid-brutal cards: 3px ink, square
|
|
94
|
+
if (ctx.themeName === "raw-grid") {
|
|
95
|
+
return { color: "0A0A0A", width: opts.hero || opts.highlighted ? 3.25 : 3 };
|
|
96
|
+
}
|
|
97
|
+
// creative-voltage-split cards: 1px neon accent, square
|
|
98
|
+
if (ctx.themeName === "creative-voltage") {
|
|
99
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.5 : 1.25 };
|
|
100
|
+
}
|
|
101
|
+
// wrapped-block (kinetic-wrapped) cards: 3px accent, square
|
|
102
|
+
if (ctx.themeName === "kinetic-wrapped") {
|
|
103
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 3.25 : 3 };
|
|
104
|
+
}
|
|
105
|
+
// hud-grid / blueprint-grid cards: accent hairline, square
|
|
106
|
+
if (ctx.themeName === "aerospace-hud" || ctx.themeName === "blueprint") {
|
|
107
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.35 : 1.15 };
|
|
108
|
+
}
|
|
109
|
+
// swiss-grid cards: quiet border, square
|
|
110
|
+
if (ctx.themeName === "swiss-typographic") {
|
|
111
|
+
return { color: ctx.colors.border, width: opts.hero || opts.highlighted ? 1.25 : 1 };
|
|
112
|
+
}
|
|
75
113
|
if (opts.hero || opts.highlighted) {
|
|
76
114
|
return { color: ctx.colors.accent, width: opts.highlighted ? 1.75 : 1.5 };
|
|
77
115
|
}
|
|
@@ -96,7 +134,7 @@ function cardRadius(ctx) {
|
|
|
96
134
|
// stencil-tablet-earth cards: border-radius 24px ≈ 0.25"
|
|
97
135
|
if (ctx.themeName === "stencil-tablet")
|
|
98
136
|
return 0.25;
|
|
99
|
-
// retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95 / coral / peoples / broadside / cobalt / mat / biennale / arcade: square
|
|
137
|
+
// retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95 / coral / peoples / broadside / cobalt / mat / biennale / arcade / acid / bauhaus / neo-grid / bold-poster / tri-tone / raw-grid / voltage / Pulse / hud / blueprint / swiss: square
|
|
100
138
|
if (ctx.themeName === "retro-zine" ||
|
|
101
139
|
ctx.themeName === "block-frame" ||
|
|
102
140
|
ctx.themeName === "creative-mode" ||
|
|
@@ -108,9 +146,23 @@ function cardRadius(ctx) {
|
|
|
108
146
|
ctx.themeName === "cobalt-grid" ||
|
|
109
147
|
ctx.themeName === "mat" ||
|
|
110
148
|
ctx.themeName === "biennale-yellow" ||
|
|
111
|
-
ctx.themeName === "retro-arcade"
|
|
149
|
+
ctx.themeName === "retro-arcade" ||
|
|
150
|
+
ctx.themeName === "brutalist-acid" ||
|
|
151
|
+
ctx.themeName === "bauhaus" ||
|
|
152
|
+
ctx.themeName === "neo-grid-bold" ||
|
|
153
|
+
ctx.themeName === "bold-poster" ||
|
|
154
|
+
ctx.themeName === "editorial-tri-tone" ||
|
|
155
|
+
ctx.themeName === "raw-grid" ||
|
|
156
|
+
ctx.themeName === "creative-voltage" ||
|
|
157
|
+
ctx.themeName === "kinetic-wrapped" ||
|
|
158
|
+
ctx.themeName === "aerospace-hud" ||
|
|
159
|
+
ctx.themeName === "blueprint" ||
|
|
160
|
+
ctx.themeName === "swiss-typographic") {
|
|
112
161
|
return 0;
|
|
113
162
|
}
|
|
163
|
+
// hard-bento (genz-bento) cards: border-radius 14px ≈ 0.15"
|
|
164
|
+
if (ctx.themeName === "genz-bento")
|
|
165
|
+
return 0.15;
|
|
114
166
|
// bold-signal-card / aero-bubble / pastel-geometry / pastel-dreamy: plump
|
|
115
167
|
if (ctx.themeName === "bold-signal")
|
|
116
168
|
return 0.16;
|
|
@@ -2709,25 +2761,26 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2709
2761
|
}
|
|
2710
2762
|
}
|
|
2711
2763
|
if (theme === "aerospace-hud") {
|
|
2712
|
-
// HUD grid + border + dual reticles +
|
|
2713
|
-
|
|
2764
|
+
// Denser HUD grid + border + dual reticles + crosshair ticks + orange
|
|
2765
|
+
// telemetry stub (hud-grid). Cards get accent hairline via cardStroke.
|
|
2766
|
+
for (let i = 1; i < 12; i++) {
|
|
2714
2767
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2715
|
-
x: (ctx.width /
|
|
2768
|
+
x: (ctx.width / 12) * i,
|
|
2716
2769
|
y: 0,
|
|
2717
2770
|
w: 0.012,
|
|
2718
2771
|
h: ctx.height,
|
|
2719
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
2772
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
2720
2773
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2721
2774
|
rectRadius: 0,
|
|
2722
2775
|
});
|
|
2723
2776
|
}
|
|
2724
|
-
for (let i = 1; i <
|
|
2777
|
+
for (let i = 1; i < 8; i++) {
|
|
2725
2778
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2726
2779
|
x: 0,
|
|
2727
|
-
y: (ctx.height /
|
|
2780
|
+
y: (ctx.height / 8) * i,
|
|
2728
2781
|
w: ctx.width,
|
|
2729
2782
|
h: 0.012,
|
|
2730
|
-
fill: { color: ctx.colors.accent, transparency:
|
|
2783
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
2731
2784
|
line: { color: ctx.colors.accent, width: 0 },
|
|
2732
2785
|
rectRadius: 0,
|
|
2733
2786
|
});
|
|
@@ -2738,19 +2791,20 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2738
2791
|
w: ctx.width - 0.2,
|
|
2739
2792
|
h: ctx.height - 0.2,
|
|
2740
2793
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2741
|
-
line: { color: ctx.colors.accent, width: 1.
|
|
2794
|
+
line: { color: ctx.colors.accent, width: 1.35 },
|
|
2742
2795
|
rectRadius: 0,
|
|
2743
2796
|
});
|
|
2797
|
+
// Bottom-left instrument square (warning orange).
|
|
2744
2798
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2745
2799
|
x: ctx.margin,
|
|
2746
|
-
y: ctx.margin,
|
|
2800
|
+
y: ctx.height - ctx.margin - 0.55,
|
|
2747
2801
|
w: 0.55,
|
|
2748
2802
|
h: 0.55,
|
|
2749
2803
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2750
2804
|
line: { color: ctx.colors.accent2, width: 1.5 },
|
|
2751
2805
|
rectRadius: 0,
|
|
2752
2806
|
});
|
|
2753
|
-
// Top-right reticle (hud-grid ::after).
|
|
2807
|
+
// Top-right reticle (hud-grid ::after) + crosshair ticks.
|
|
2754
2808
|
slide.addShape(ctx.shapeOval, {
|
|
2755
2809
|
x: ctx.width - 1.45,
|
|
2756
2810
|
y: 0.45,
|
|
@@ -2767,12 +2821,30 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2767
2821
|
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2768
2822
|
line: { color: ctx.colors.accent, width: 0.75 },
|
|
2769
2823
|
});
|
|
2824
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2825
|
+
x: ctx.width - 1.08,
|
|
2826
|
+
y: 0.82,
|
|
2827
|
+
w: 0.12,
|
|
2828
|
+
h: 0.02,
|
|
2829
|
+
fill: { color: ctx.colors.accent },
|
|
2830
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2831
|
+
rectRadius: 0,
|
|
2832
|
+
});
|
|
2833
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2834
|
+
x: ctx.width - 1.05,
|
|
2835
|
+
y: 0.7,
|
|
2836
|
+
w: 0.02,
|
|
2837
|
+
h: 0.28,
|
|
2838
|
+
fill: { color: ctx.colors.accent },
|
|
2839
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2840
|
+
rectRadius: 0,
|
|
2841
|
+
});
|
|
2770
2842
|
slide.addShape(ctx.shapeRoundRect, {
|
|
2771
2843
|
x: ctx.width - 2.1,
|
|
2772
2844
|
y: ctx.height - 0.72,
|
|
2773
2845
|
w: 1.35,
|
|
2774
2846
|
h: 0.08,
|
|
2775
|
-
fill: { color: ctx.colors.accent2, transparency:
|
|
2847
|
+
fill: { color: ctx.colors.accent2, transparency: 20 },
|
|
2776
2848
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2777
2849
|
rectRadius: 0,
|
|
2778
2850
|
});
|
|
@@ -3041,7 +3113,8 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3041
3113
|
});
|
|
3042
3114
|
}
|
|
3043
3115
|
if (theme === "bauhaus") {
|
|
3044
|
-
// Hard frame
|
|
3116
|
+
// Hard frame + red square + blue circle on every slide (bauhaus-blocks
|
|
3117
|
+
// ::before/::after are not hero-gated). Heroes get larger primary blocks.
|
|
3045
3118
|
slide.addShape(ctx.shapeRoundRect, {
|
|
3046
3119
|
x: 0.08,
|
|
3047
3120
|
y: 0.08,
|
|
@@ -3051,37 +3124,29 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
3051
3124
|
line: { color: ctx.colors.text, width: 2 },
|
|
3052
3125
|
rectRadius: 0,
|
|
3053
3126
|
});
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
y: ctx.margin * 0.9,
|
|
3078
|
-
w: 0.55,
|
|
3079
|
-
h: 0.55,
|
|
3080
|
-
fill: { color: ctx.colors.accent },
|
|
3081
|
-
line: { color: ctx.colors.accent, width: 0 },
|
|
3082
|
-
rectRadius: 0,
|
|
3083
|
-
});
|
|
3084
|
-
}
|
|
3127
|
+
const sq = isHero ? 1.05 : 0.72;
|
|
3128
|
+
const circ = isHero ? 1.05 : 0.72;
|
|
3129
|
+
const sqX = isHero ? ctx.width - 2.3 : ctx.width - 1.55;
|
|
3130
|
+
const sqY = isHero ? 0.7 : 0.55;
|
|
3131
|
+
const circX = isHero ? ctx.width - 2.9 : ctx.width - 2.05;
|
|
3132
|
+
const circY = isHero ? 1.35 : 1.0;
|
|
3133
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3134
|
+
x: sqX,
|
|
3135
|
+
y: sqY,
|
|
3136
|
+
w: sq,
|
|
3137
|
+
h: sq,
|
|
3138
|
+
fill: { color: ctx.colors.accent },
|
|
3139
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3140
|
+
rectRadius: 0,
|
|
3141
|
+
});
|
|
3142
|
+
slide.addShape(ctx.shapeOval, {
|
|
3143
|
+
x: circX,
|
|
3144
|
+
y: circY,
|
|
3145
|
+
w: circ,
|
|
3146
|
+
h: circ,
|
|
3147
|
+
fill: { color: ctx.colors.accent2, transparency: isHero ? 12 : 22 },
|
|
3148
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3149
|
+
});
|
|
3085
3150
|
}
|
|
3086
3151
|
if (theme === "fintech-clean") {
|
|
3087
3152
|
// Soft mint radial wash + clean frame (fintech-soft).
|