@presentation-md/export 1.20.3 → 1.20.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 +104 -7
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -204,6 +204,52 @@ function cardStroke(ctx, opts = {}) {
|
|
|
204
204
|
if (ctx.themeName === "ft-editorial") {
|
|
205
205
|
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 1.35 : 1.15 };
|
|
206
206
|
}
|
|
207
|
+
// claude warm-paper cards: quiet paper border hairline
|
|
208
|
+
if (ctx.themeName === "claude") {
|
|
209
|
+
return { color: ctx.colors.border, width: opts.hero || opts.highlighted ? 1.35 : 1.15 };
|
|
210
|
+
}
|
|
211
|
+
// default-tech neon-glow cards: violet accent rim
|
|
212
|
+
if (ctx.themeName === "default-tech") {
|
|
213
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.5 : 1.25 };
|
|
214
|
+
}
|
|
215
|
+
// corporate clean-light cards: navy-blue accent hairline
|
|
216
|
+
if (ctx.themeName === "corporate") {
|
|
217
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.35 : 1.15 };
|
|
218
|
+
}
|
|
219
|
+
// playful soft-bento cards: coral accent rim (plump)
|
|
220
|
+
if (ctx.themeName === "playful") {
|
|
221
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.35 : 1.15 };
|
|
222
|
+
}
|
|
223
|
+
// data-editorial data-rule cards: ink hairline
|
|
224
|
+
if (ctx.themeName === "data-editorial") {
|
|
225
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 1.35 : 1.15 };
|
|
226
|
+
}
|
|
227
|
+
// developer-dark / fintech-clean / scandinavian peers
|
|
228
|
+
if (ctx.themeName === "developer-dark") {
|
|
229
|
+
return { color: ctx.colors.border, width: opts.hero || opts.highlighted ? 1.35 : 1.15 };
|
|
230
|
+
}
|
|
231
|
+
if (ctx.themeName === "fintech-clean") {
|
|
232
|
+
return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 1.35 : 1.15 };
|
|
233
|
+
}
|
|
234
|
+
if (ctx.themeName === "scandinavian") {
|
|
235
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 1.25 : 1.1 };
|
|
236
|
+
}
|
|
237
|
+
// pastel-dreamy soft plum hairline (plump radius stays in cardRadius)
|
|
238
|
+
if (ctx.themeName === "pastel-dreamy") {
|
|
239
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 1.15 : 1 };
|
|
240
|
+
}
|
|
241
|
+
// scatterbrain sticky notes: ink hairline on yellow
|
|
242
|
+
if (ctx.themeName === "scatterbrain") {
|
|
243
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 1.15 : 1 };
|
|
244
|
+
}
|
|
245
|
+
// split-pastel soft white cards: quiet ink hairline (HTML border:none → soft rim)
|
|
246
|
+
if (ctx.themeName === "split-pastel") {
|
|
247
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 1.1 : 0.9 };
|
|
248
|
+
}
|
|
249
|
+
// risograph-zine riso-print cards: hard ink (near-square)
|
|
250
|
+
if (ctx.themeName === "risograph-zine") {
|
|
251
|
+
return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
|
|
252
|
+
}
|
|
207
253
|
if (opts.hero || opts.highlighted) {
|
|
208
254
|
return { color: ctx.colors.accent, width: opts.highlighted ? 1.75 : 1.5 };
|
|
209
255
|
}
|
|
@@ -318,8 +364,8 @@ function cardRadius(ctx) {
|
|
|
318
364
|
// signal-briefing cards: theme geometry 2px ≈ 0.02"
|
|
319
365
|
if (ctx.themeName === "signal")
|
|
320
366
|
return 0.02;
|
|
321
|
-
// blue-professional-clean cards: border-radius 12px ≈ 0.125"
|
|
322
|
-
if (ctx.themeName === "blue-professional")
|
|
367
|
+
// blue-professional-clean / fintech-soft cards: border-radius 12px ≈ 0.125"
|
|
368
|
+
if (ctx.themeName === "blue-professional" || ctx.themeName === "fintech-clean")
|
|
323
369
|
return 0.125;
|
|
324
370
|
// hard-bento (genz-bento) cards: border-radius 14px ≈ 0.15"
|
|
325
371
|
if (ctx.themeName === "genz-bento")
|
|
@@ -345,12 +391,36 @@ function cardRadius(ctx) {
|
|
|
345
391
|
// vintage-editorial-geo cards: border-radius 4px ≈ 0.04"
|
|
346
392
|
if (ctx.themeName === "vintage-editorial")
|
|
347
393
|
return 0.04;
|
|
348
|
-
// scatterbrain-cork cards: border-radius 2px ≈ 0.02"
|
|
349
|
-
if (ctx.themeName === "scatterbrain")
|
|
394
|
+
// scatterbrain-cork / risograph-zine cards: border-radius 2px ≈ 0.02"
|
|
395
|
+
if (ctx.themeName === "scatterbrain" || ctx.themeName === "risograph-zine")
|
|
350
396
|
return 0.02;
|
|
351
397
|
// sakura-chroma-cassette cards: border-radius 4px ≈ 0.04"
|
|
352
398
|
if (ctx.themeName === "sakura-chroma")
|
|
353
399
|
return 0.04;
|
|
400
|
+
// claude warm-paper cards: geometry 12px * 0.85 ≈ 0.1"
|
|
401
|
+
if (ctx.themeName === "claude")
|
|
402
|
+
return 0.1;
|
|
403
|
+
// default-tech neon-glow cards: geometry 18px * 0.85 ≈ 0.16"
|
|
404
|
+
if (ctx.themeName === "default-tech")
|
|
405
|
+
return 0.16;
|
|
406
|
+
// corporate clean-light cards: geometry 8px * 0.85 ≈ 0.07"
|
|
407
|
+
if (ctx.themeName === "corporate")
|
|
408
|
+
return 0.07;
|
|
409
|
+
// playful soft-bento cards: border-radius 20px ≈ 0.21"
|
|
410
|
+
if (ctx.themeName === "playful")
|
|
411
|
+
return 0.21;
|
|
412
|
+
// data-editorial data-rule cards: geometry 4px ≈ 0.04"
|
|
413
|
+
if (ctx.themeName === "data-editorial")
|
|
414
|
+
return 0.04;
|
|
415
|
+
// developer-dark title-bar cards: geometry 8px ≈ 0.08"
|
|
416
|
+
if (ctx.themeName === "developer-dark")
|
|
417
|
+
return 0.08;
|
|
418
|
+
// scandinavian hygge cards: geometry 16px * 0.85 ≈ 0.14"
|
|
419
|
+
if (ctx.themeName === "scandinavian")
|
|
420
|
+
return 0.14;
|
|
421
|
+
// split-pastel soft white cards: border-radius 18px ≈ 0.19"
|
|
422
|
+
if (ctx.themeName === "split-pastel")
|
|
423
|
+
return 0.19;
|
|
354
424
|
return 0.06;
|
|
355
425
|
}
|
|
356
426
|
/**
|
|
@@ -2322,7 +2392,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2322
2392
|
});
|
|
2323
2393
|
}
|
|
2324
2394
|
if (theme === "default-tech") {
|
|
2325
|
-
// Neon-glow corner bloom + secondary cyan wash
|
|
2395
|
+
// Neon-glow corner bloom + secondary cyan wash + quiet neon inset frame.
|
|
2326
2396
|
const glowT = isHero ? 55 : 72;
|
|
2327
2397
|
slide.addShape(ctx.shapeOval, {
|
|
2328
2398
|
x: ctx.width - 4.2,
|
|
@@ -2340,6 +2410,15 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2340
2410
|
fill: { color: ctx.colors.accent2, transparency: isHero ? 68 : 80 },
|
|
2341
2411
|
line: { color: ctx.colors.accent2, width: 0 },
|
|
2342
2412
|
});
|
|
2413
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2414
|
+
x: 0.28,
|
|
2415
|
+
y: 0.28,
|
|
2416
|
+
w: ctx.width - 0.56,
|
|
2417
|
+
h: ctx.height - 0.56,
|
|
2418
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2419
|
+
line: { color: ctx.colors.accent, width: isHero ? 1.25 : 1 },
|
|
2420
|
+
rectRadius: 0.14,
|
|
2421
|
+
});
|
|
2343
2422
|
}
|
|
2344
2423
|
if (theme === "kinetic-wrapped") {
|
|
2345
2424
|
const tone = typeof data.tone === "string" ? data.tone : undefined;
|
|
@@ -5875,7 +5954,7 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
5875
5954
|
});
|
|
5876
5955
|
}
|
|
5877
5956
|
if (theme === "playful") {
|
|
5878
|
-
// Soft accent blot + rounded candy square + second cloud
|
|
5957
|
+
// Soft accent blot + rounded candy square + second cloud + plump soft frame.
|
|
5879
5958
|
slide.addShape(ctx.shapeOval, {
|
|
5880
5959
|
x: ctx.width * 0.75,
|
|
5881
5960
|
y: -ctx.height * 0.05,
|
|
@@ -5901,9 +5980,18 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
5901
5980
|
line: { color: ctx.colors.accent, width: 0 },
|
|
5902
5981
|
rectRadius: 0.28,
|
|
5903
5982
|
});
|
|
5983
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
5984
|
+
x: 0.22,
|
|
5985
|
+
y: 0.22,
|
|
5986
|
+
w: ctx.width - 0.44,
|
|
5987
|
+
h: ctx.height - 0.44,
|
|
5988
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
5989
|
+
line: { color: ctx.colors.border, width: 1.1 },
|
|
5990
|
+
rectRadius: 0.2,
|
|
5991
|
+
});
|
|
5904
5992
|
}
|
|
5905
5993
|
if (theme === "corporate") {
|
|
5906
|
-
// Clean accent stub + soft top wash (clean-light).
|
|
5994
|
+
// Clean accent stub + soft top wash + quiet navy hairline frame (clean-light).
|
|
5907
5995
|
slide.addShape(ctx.shapeRoundRect, {
|
|
5908
5996
|
x: 0,
|
|
5909
5997
|
y: 0,
|
|
@@ -5922,6 +6010,15 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
5922
6010
|
line: { color: ctx.colors.accent, width: 0 },
|
|
5923
6011
|
rectRadius: 0.045,
|
|
5924
6012
|
});
|
|
6013
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
6014
|
+
x: 0.28,
|
|
6015
|
+
y: 0.28,
|
|
6016
|
+
w: ctx.width - 0.56,
|
|
6017
|
+
h: ctx.height - 0.56,
|
|
6018
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
6019
|
+
line: { color: ctx.colors.border, width: 1 },
|
|
6020
|
+
rectRadius: 0.06,
|
|
6021
|
+
});
|
|
5925
6022
|
}
|
|
5926
6023
|
}
|
|
5927
6024
|
export function renderSlide(slide, ctx, data) {
|