@presentation-md/export 1.10.0 → 1.11.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 +1271 -0
- package/dist/layouts.js.map +1 -1
- package/package.json +2 -2
package/dist/layouts.js
CHANGED
|
@@ -2416,6 +2416,1277 @@ function paintSlideChrome(slide, ctx, data) {
|
|
|
2416
2416
|
rectRadius: 0,
|
|
2417
2417
|
});
|
|
2418
2418
|
}
|
|
2419
|
+
if (theme === "pastel-geometry") {
|
|
2420
|
+
// Vertical pastel edge pills (pastel-geometry-pills ::after).
|
|
2421
|
+
const pills = [
|
|
2422
|
+
{ color: "F0B4D4" },
|
|
2423
|
+
{ color: "A8D4C4" },
|
|
2424
|
+
{ color: "5A7C6A" },
|
|
2425
|
+
{ color: "9B8DC4" },
|
|
2426
|
+
{ color: "7C6AAD" },
|
|
2427
|
+
];
|
|
2428
|
+
const pillH = (ctx.height * 0.72) / pills.length;
|
|
2429
|
+
const pillX = ctx.width - 0.42;
|
|
2430
|
+
const pillY = ctx.height * 0.14;
|
|
2431
|
+
for (let i = 0; i < pills.length; i++) {
|
|
2432
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2433
|
+
x: pillX,
|
|
2434
|
+
y: pillY + i * pillH,
|
|
2435
|
+
w: 0.22,
|
|
2436
|
+
h: pillH - 0.04,
|
|
2437
|
+
fill: { color: pills[i].color },
|
|
2438
|
+
line: { color: pills[i].color, width: 0 },
|
|
2439
|
+
rectRadius: 0.11,
|
|
2440
|
+
});
|
|
2441
|
+
}
|
|
2442
|
+
// Soft card-field wash so the sky matte reads behind content.
|
|
2443
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2444
|
+
x: ctx.margin * 0.45,
|
|
2445
|
+
y: ctx.margin * 0.45,
|
|
2446
|
+
w: ctx.width - ctx.margin * 0.9,
|
|
2447
|
+
h: ctx.height - ctx.margin * 0.9,
|
|
2448
|
+
fill: { color: ctx.colors.cardBg, transparency: 35 },
|
|
2449
|
+
line: { color: ctx.colors.border, width: 0.75 },
|
|
2450
|
+
rectRadius: 0.28,
|
|
2451
|
+
});
|
|
2452
|
+
}
|
|
2453
|
+
if (theme === "8-bit-orbit") {
|
|
2454
|
+
// Arcade scanlines + neon cyan/pink orbs + pixel HUD chip (bit-orbit-arcade).
|
|
2455
|
+
for (let i = 0; i < 10; i++) {
|
|
2456
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2457
|
+
x: 0,
|
|
2458
|
+
y: 0.25 + i * 0.7,
|
|
2459
|
+
w: ctx.width,
|
|
2460
|
+
h: 0.035,
|
|
2461
|
+
fill: { color: "000000", transparency: 82 },
|
|
2462
|
+
line: { color: "000000", width: 0 },
|
|
2463
|
+
rectRadius: 0,
|
|
2464
|
+
});
|
|
2465
|
+
}
|
|
2466
|
+
slide.addShape(ctx.shapeOval, {
|
|
2467
|
+
x: ctx.width * 0.55,
|
|
2468
|
+
y: -ctx.height * 0.12,
|
|
2469
|
+
w: ctx.width * 0.45,
|
|
2470
|
+
h: ctx.height * 0.45,
|
|
2471
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
2472
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2473
|
+
});
|
|
2474
|
+
slide.addShape(ctx.shapeOval, {
|
|
2475
|
+
x: -ctx.width * 0.1,
|
|
2476
|
+
y: ctx.height * 0.55,
|
|
2477
|
+
w: ctx.width * 0.4,
|
|
2478
|
+
h: ctx.height * 0.45,
|
|
2479
|
+
fill: { color: ctx.colors.accent2, transparency: 78 },
|
|
2480
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
2481
|
+
});
|
|
2482
|
+
// Pixel HUD dots (top-left).
|
|
2483
|
+
const pixels = [
|
|
2484
|
+
{ x: 0.45, color: "F4D03F" },
|
|
2485
|
+
{ x: 0.7, color: ctx.colors.accent },
|
|
2486
|
+
{ x: 0.95, color: ctx.colors.accent2 },
|
|
2487
|
+
{ x: 1.2, color: "FFFFFF" },
|
|
2488
|
+
];
|
|
2489
|
+
for (const p of pixels) {
|
|
2490
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2491
|
+
x: p.x,
|
|
2492
|
+
y: 0.45,
|
|
2493
|
+
w: 0.14,
|
|
2494
|
+
h: 0.14,
|
|
2495
|
+
fill: { color: p.color },
|
|
2496
|
+
line: { color: p.color, width: 0 },
|
|
2497
|
+
rectRadius: 0,
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
if (isHero) {
|
|
2501
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2502
|
+
x: ctx.width - 1.55,
|
|
2503
|
+
y: ctx.height - 0.85,
|
|
2504
|
+
w: 0.95,
|
|
2505
|
+
h: 0.28,
|
|
2506
|
+
fill: { color: ctx.colors.accent },
|
|
2507
|
+
line: { color: "FFFFFF", width: 1.5 },
|
|
2508
|
+
rectRadius: 0,
|
|
2509
|
+
});
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
if (theme === "neo-grid-bold") {
|
|
2513
|
+
// Modular grid + lemon corner panel + hard border (neo-grid-panels).
|
|
2514
|
+
for (let i = 1; i < 10; i++) {
|
|
2515
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2516
|
+
x: (ctx.width / 10) * i,
|
|
2517
|
+
y: 0,
|
|
2518
|
+
w: 0.012,
|
|
2519
|
+
h: ctx.height,
|
|
2520
|
+
fill: { color: ctx.colors.text, transparency: 85 },
|
|
2521
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
2522
|
+
rectRadius: 0,
|
|
2523
|
+
});
|
|
2524
|
+
}
|
|
2525
|
+
for (let i = 1; i < 6; i++) {
|
|
2526
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2527
|
+
x: 0,
|
|
2528
|
+
y: (ctx.height / 6) * i,
|
|
2529
|
+
w: ctx.width,
|
|
2530
|
+
h: 0.012,
|
|
2531
|
+
fill: { color: ctx.colors.text, transparency: 85 },
|
|
2532
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
2533
|
+
rectRadius: 0,
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2536
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2537
|
+
x: 0.08,
|
|
2538
|
+
y: 0.08,
|
|
2539
|
+
w: ctx.width - 0.16,
|
|
2540
|
+
h: ctx.height - 0.16,
|
|
2541
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2542
|
+
line: { color: ctx.colors.text, width: 2.5 },
|
|
2543
|
+
rectRadius: 0,
|
|
2544
|
+
});
|
|
2545
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2546
|
+
x: ctx.width - 1.55,
|
|
2547
|
+
y: 0.55,
|
|
2548
|
+
w: 0.95,
|
|
2549
|
+
h: 0.95,
|
|
2550
|
+
fill: { color: ctx.colors.accent },
|
|
2551
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2552
|
+
rectRadius: 0,
|
|
2553
|
+
});
|
|
2554
|
+
}
|
|
2555
|
+
if (theme === "bold-poster") {
|
|
2556
|
+
// Ink top bar + offset poster block (bold-poster-ink).
|
|
2557
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2558
|
+
x: 0,
|
|
2559
|
+
y: 0,
|
|
2560
|
+
w: ctx.width,
|
|
2561
|
+
h: 0.14,
|
|
2562
|
+
fill: { color: ctx.colors.accent },
|
|
2563
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2564
|
+
rectRadius: 0,
|
|
2565
|
+
});
|
|
2566
|
+
if (isHero) {
|
|
2567
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2568
|
+
x: ctx.width * 0.62,
|
|
2569
|
+
y: ctx.height * 0.55,
|
|
2570
|
+
w: ctx.width * 0.28,
|
|
2571
|
+
h: ctx.height * 0.28,
|
|
2572
|
+
fill: { color: ctx.colors.bg2 },
|
|
2573
|
+
line: { color: ctx.colors.text, width: 2 },
|
|
2574
|
+
rectRadius: 0,
|
|
2575
|
+
});
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
if (theme === "capsule") {
|
|
2579
|
+
// Soft pill ornaments (capsule-pills).
|
|
2580
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2581
|
+
x: ctx.width - 2.1,
|
|
2582
|
+
y: 0.55,
|
|
2583
|
+
w: 1.45,
|
|
2584
|
+
h: 0.42,
|
|
2585
|
+
fill: { color: ctx.colors.accent },
|
|
2586
|
+
line: { color: ctx.colors.border, width: 1.5 },
|
|
2587
|
+
rectRadius: 0.21,
|
|
2588
|
+
});
|
|
2589
|
+
slide.addShape(ctx.shapeOval, {
|
|
2590
|
+
x: 0.55,
|
|
2591
|
+
y: ctx.height - 1.55,
|
|
2592
|
+
w: 0.95,
|
|
2593
|
+
h: 0.95,
|
|
2594
|
+
fill: { color: ctx.colors.accent2 },
|
|
2595
|
+
line: { color: ctx.colors.border, width: 1.5 },
|
|
2596
|
+
});
|
|
2597
|
+
slide.addShape(ctx.shapeOval, {
|
|
2598
|
+
x: ctx.width * 0.78,
|
|
2599
|
+
y: ctx.height * 0.72,
|
|
2600
|
+
w: 0.55,
|
|
2601
|
+
h: 0.55,
|
|
2602
|
+
fill: { color: "C4D94E", transparency: 25 },
|
|
2603
|
+
line: { color: ctx.colors.border, width: 1 },
|
|
2604
|
+
});
|
|
2605
|
+
}
|
|
2606
|
+
if (theme === "cobalt-grid") {
|
|
2607
|
+
// Blueprint-ish cobalt grid + corner hatch (cobalt-grid-paper).
|
|
2608
|
+
for (let i = 1; i < 14; i++) {
|
|
2609
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2610
|
+
x: (ctx.width / 14) * i,
|
|
2611
|
+
y: 0,
|
|
2612
|
+
w: 0.01,
|
|
2613
|
+
h: ctx.height,
|
|
2614
|
+
fill: { color: ctx.colors.accent, transparency: 82 },
|
|
2615
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2616
|
+
rectRadius: 0,
|
|
2617
|
+
});
|
|
2618
|
+
}
|
|
2619
|
+
for (let i = 1; i < 9; i++) {
|
|
2620
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2621
|
+
x: 0,
|
|
2622
|
+
y: (ctx.height / 9) * i,
|
|
2623
|
+
w: ctx.width,
|
|
2624
|
+
h: 0.01,
|
|
2625
|
+
fill: { color: ctx.colors.accent, transparency: 82 },
|
|
2626
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2627
|
+
rectRadius: 0,
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2630
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2631
|
+
x: ctx.width * 0.58,
|
|
2632
|
+
y: ctx.height * 0.55,
|
|
2633
|
+
w: ctx.width * 0.42,
|
|
2634
|
+
h: ctx.height * 0.45,
|
|
2635
|
+
fill: { color: ctx.colors.accent, transparency: 90 },
|
|
2636
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2637
|
+
rectRadius: 0,
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
if (theme === "retro-arcade") {
|
|
2641
|
+
// Scanlines + neon top rail (scanline-neon).
|
|
2642
|
+
for (let i = 0; i < 9; i++) {
|
|
2643
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2644
|
+
x: 0,
|
|
2645
|
+
y: 0.3 + i * 0.75,
|
|
2646
|
+
w: ctx.width,
|
|
2647
|
+
h: 0.03,
|
|
2648
|
+
fill: { color: "000000", transparency: 78 },
|
|
2649
|
+
line: { color: "000000", width: 0 },
|
|
2650
|
+
rectRadius: 0,
|
|
2651
|
+
});
|
|
2652
|
+
}
|
|
2653
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2654
|
+
x: 0,
|
|
2655
|
+
y: 0,
|
|
2656
|
+
w: ctx.width,
|
|
2657
|
+
h: 0.06,
|
|
2658
|
+
fill: { color: ctx.colors.accent },
|
|
2659
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2660
|
+
rectRadius: 0,
|
|
2661
|
+
});
|
|
2662
|
+
slide.addShape(ctx.shapeOval, {
|
|
2663
|
+
x: ctx.width - 2.0,
|
|
2664
|
+
y: -0.4,
|
|
2665
|
+
w: 2.2,
|
|
2666
|
+
h: 2.2,
|
|
2667
|
+
fill: { color: ctx.colors.accent2, transparency: 70 },
|
|
2668
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
2669
|
+
});
|
|
2670
|
+
}
|
|
2671
|
+
if (theme === "brutalist-mono") {
|
|
2672
|
+
// Dense mono grid + hard outer frame (brutalist-grid).
|
|
2673
|
+
for (let i = 1; i < 16; i++) {
|
|
2674
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2675
|
+
x: (ctx.width / 16) * i,
|
|
2676
|
+
y: 0,
|
|
2677
|
+
w: 0.01,
|
|
2678
|
+
h: ctx.height,
|
|
2679
|
+
fill: { color: ctx.colors.border, transparency: 55 },
|
|
2680
|
+
line: { color: ctx.colors.border, width: 0 },
|
|
2681
|
+
rectRadius: 0,
|
|
2682
|
+
});
|
|
2683
|
+
}
|
|
2684
|
+
for (let i = 1; i < 10; i++) {
|
|
2685
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2686
|
+
x: 0,
|
|
2687
|
+
y: (ctx.height / 10) * i,
|
|
2688
|
+
w: ctx.width,
|
|
2689
|
+
h: 0.01,
|
|
2690
|
+
fill: { color: ctx.colors.border, transparency: 55 },
|
|
2691
|
+
line: { color: ctx.colors.border, width: 0 },
|
|
2692
|
+
rectRadius: 0,
|
|
2693
|
+
});
|
|
2694
|
+
}
|
|
2695
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2696
|
+
x: 0.1,
|
|
2697
|
+
y: 0.1,
|
|
2698
|
+
w: ctx.width - 0.2,
|
|
2699
|
+
h: ctx.height - 0.2,
|
|
2700
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2701
|
+
line: { color: ctx.colors.text, width: 2.5 },
|
|
2702
|
+
rectRadius: 0,
|
|
2703
|
+
});
|
|
2704
|
+
}
|
|
2705
|
+
if (theme === "creative-mode") {
|
|
2706
|
+
// Hard shadow frame + stacked accent blocks (creative-mode-blocks).
|
|
2707
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2708
|
+
x: 0.12,
|
|
2709
|
+
y: 0.12,
|
|
2710
|
+
w: ctx.width - 0.12,
|
|
2711
|
+
h: ctx.height - 0.12,
|
|
2712
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2713
|
+
line: { color: ctx.colors.text, width: 3 },
|
|
2714
|
+
rectRadius: 0,
|
|
2715
|
+
});
|
|
2716
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2717
|
+
x: ctx.width - 2.0,
|
|
2718
|
+
y: 0.55,
|
|
2719
|
+
w: 1.2,
|
|
2720
|
+
h: 1.2,
|
|
2721
|
+
fill: { color: ctx.colors.accent2 },
|
|
2722
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
2723
|
+
rectRadius: 0,
|
|
2724
|
+
});
|
|
2725
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2726
|
+
x: ctx.width - 2.85,
|
|
2727
|
+
y: 1.35,
|
|
2728
|
+
w: 0.75,
|
|
2729
|
+
h: 0.75,
|
|
2730
|
+
fill: { color: ctx.colors.accent },
|
|
2731
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2732
|
+
rectRadius: 0,
|
|
2733
|
+
});
|
|
2734
|
+
}
|
|
2735
|
+
if (theme === "biennale-yellow") {
|
|
2736
|
+
// Sun orb + top hairline (biennale-yellow-sun).
|
|
2737
|
+
slide.addShape(ctx.shapeOval, {
|
|
2738
|
+
x: ctx.width * 0.62,
|
|
2739
|
+
y: -ctx.height * 0.18,
|
|
2740
|
+
w: ctx.width * 0.5,
|
|
2741
|
+
h: ctx.height * 0.55,
|
|
2742
|
+
fill: { color: ctx.colors.accent, transparency: 35 },
|
|
2743
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2744
|
+
});
|
|
2745
|
+
slide.addShape(ctx.shapeOval, {
|
|
2746
|
+
x: ctx.width * 0.7,
|
|
2747
|
+
y: ctx.height * 0.08,
|
|
2748
|
+
w: ctx.width * 0.28,
|
|
2749
|
+
h: ctx.height * 0.32,
|
|
2750
|
+
fill: { color: "F8F39B", transparency: 45 },
|
|
2751
|
+
line: { color: "F8F39B", width: 0 },
|
|
2752
|
+
});
|
|
2753
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2754
|
+
x: ctx.margin,
|
|
2755
|
+
y: 0.55,
|
|
2756
|
+
w: ctx.width - ctx.margin * 2,
|
|
2757
|
+
h: 0.015,
|
|
2758
|
+
fill: { color: ctx.colors.text },
|
|
2759
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
2760
|
+
rectRadius: 0,
|
|
2761
|
+
});
|
|
2762
|
+
}
|
|
2763
|
+
if (theme === "scatterbrain") {
|
|
2764
|
+
// Cork sticky notes + pin dots (scatterbrain-cork).
|
|
2765
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2766
|
+
x: ctx.width * 0.68,
|
|
2767
|
+
y: 0.55,
|
|
2768
|
+
w: 1.7,
|
|
2769
|
+
h: 1.25,
|
|
2770
|
+
fill: { color: "FFE066" },
|
|
2771
|
+
line: { color: ctx.colors.text, width: 0.75 },
|
|
2772
|
+
rectRadius: 0.06,
|
|
2773
|
+
});
|
|
2774
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2775
|
+
x: ctx.width * 0.78,
|
|
2776
|
+
y: ctx.height * 0.48,
|
|
2777
|
+
w: 1.4,
|
|
2778
|
+
h: 1.1,
|
|
2779
|
+
fill: { color: "74C0FC" },
|
|
2780
|
+
line: { color: ctx.colors.text, width: 0.75 },
|
|
2781
|
+
rectRadius: 0.06,
|
|
2782
|
+
});
|
|
2783
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2784
|
+
x: 0.55,
|
|
2785
|
+
y: ctx.height * 0.58,
|
|
2786
|
+
w: 1.25,
|
|
2787
|
+
h: 1.0,
|
|
2788
|
+
fill: { color: "FF9F9F" },
|
|
2789
|
+
line: { color: ctx.colors.text, width: 0.75 },
|
|
2790
|
+
rectRadius: 0.06,
|
|
2791
|
+
});
|
|
2792
|
+
for (const pin of [
|
|
2793
|
+
{ x: ctx.width * 0.72, y: 0.48 },
|
|
2794
|
+
{ x: ctx.width * 0.82, y: ctx.height * 0.42 },
|
|
2795
|
+
{ x: 0.72, y: ctx.height * 0.52 },
|
|
2796
|
+
]) {
|
|
2797
|
+
slide.addShape(ctx.shapeOval, {
|
|
2798
|
+
x: pin.x,
|
|
2799
|
+
y: pin.y,
|
|
2800
|
+
w: 0.18,
|
|
2801
|
+
h: 0.18,
|
|
2802
|
+
fill: { color: "C92A2A" },
|
|
2803
|
+
line: { color: "C92A2A", width: 0 },
|
|
2804
|
+
});
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
if (theme === "split-pastel" && isHero) {
|
|
2808
|
+
// Split field + stacked pastel pills (split-pastel-panels).
|
|
2809
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2810
|
+
x: ctx.width * 0.5,
|
|
2811
|
+
y: 0,
|
|
2812
|
+
w: ctx.width * 0.5,
|
|
2813
|
+
h: ctx.height,
|
|
2814
|
+
fill: { color: ctx.colors.bg2 },
|
|
2815
|
+
line: { color: ctx.colors.bg2, width: 0 },
|
|
2816
|
+
rectRadius: 0,
|
|
2817
|
+
});
|
|
2818
|
+
const stack = [ctx.colors.accent, ctx.colors.accent2, "F0F0C8"];
|
|
2819
|
+
for (let i = 0; i < stack.length; i++) {
|
|
2820
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2821
|
+
x: ctx.width - 1.55,
|
|
2822
|
+
y: ctx.height - 1.35 + i * 0.32,
|
|
2823
|
+
w: 0.95,
|
|
2824
|
+
h: 0.26,
|
|
2825
|
+
fill: { color: stack[i] },
|
|
2826
|
+
line: { color: stack[i], width: 0 },
|
|
2827
|
+
rectRadius: 0.13,
|
|
2828
|
+
});
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
if (theme === "coral") {
|
|
2832
|
+
// Hatch frame + coral left wash (coral-hatch).
|
|
2833
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2834
|
+
x: 0.1,
|
|
2835
|
+
y: 0.1,
|
|
2836
|
+
w: ctx.width - 0.2,
|
|
2837
|
+
h: ctx.height - 0.2,
|
|
2838
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2839
|
+
line: { color: ctx.colors.text, width: 2.5 },
|
|
2840
|
+
rectRadius: 0,
|
|
2841
|
+
});
|
|
2842
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2843
|
+
x: 0,
|
|
2844
|
+
y: 0,
|
|
2845
|
+
w: ctx.width * 0.42,
|
|
2846
|
+
h: ctx.height,
|
|
2847
|
+
fill: { color: ctx.colors.accent, transparency: 82 },
|
|
2848
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2849
|
+
rectRadius: 0,
|
|
2850
|
+
});
|
|
2851
|
+
// Diagonal hatch stand-ins (thin ink stripes).
|
|
2852
|
+
for (let i = 0; i < 14; i++) {
|
|
2853
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2854
|
+
x: -0.4 + i * 1.05,
|
|
2855
|
+
y: 0,
|
|
2856
|
+
w: 0.05,
|
|
2857
|
+
h: ctx.height,
|
|
2858
|
+
fill: { color: ctx.colors.text, transparency: 88 },
|
|
2859
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
2860
|
+
rectRadius: 0,
|
|
2861
|
+
});
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
if (theme === "peoples-platform") {
|
|
2865
|
+
// Cobalt top bar + amber footer stub + hard frame (peoples-platform-poster).
|
|
2866
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2867
|
+
x: 0.08,
|
|
2868
|
+
y: 0.08,
|
|
2869
|
+
w: ctx.width - 0.16,
|
|
2870
|
+
h: ctx.height - 0.16,
|
|
2871
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2872
|
+
line: { color: ctx.colors.text, width: 3.5 },
|
|
2873
|
+
rectRadius: 0,
|
|
2874
|
+
});
|
|
2875
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2876
|
+
x: 0,
|
|
2877
|
+
y: 0,
|
|
2878
|
+
w: ctx.width,
|
|
2879
|
+
h: 0.18,
|
|
2880
|
+
fill: { color: ctx.colors.accent },
|
|
2881
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2882
|
+
rectRadius: 0,
|
|
2883
|
+
});
|
|
2884
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2885
|
+
x: ctx.width * 0.72,
|
|
2886
|
+
y: ctx.height - 0.16,
|
|
2887
|
+
w: ctx.width * 0.28,
|
|
2888
|
+
h: 0.16,
|
|
2889
|
+
fill: { color: ctx.colors.accent2 },
|
|
2890
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
2891
|
+
rectRadius: 0,
|
|
2892
|
+
});
|
|
2893
|
+
}
|
|
2894
|
+
if (theme === "raw-grid") {
|
|
2895
|
+
// Blush/sage bands + cross rules + hard frame (raw-grid-brutal).
|
|
2896
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2897
|
+
x: 0,
|
|
2898
|
+
y: 0,
|
|
2899
|
+
w: ctx.width,
|
|
2900
|
+
h: ctx.height * 0.28,
|
|
2901
|
+
fill: { color: "F2D4CF" },
|
|
2902
|
+
line: { color: "F2D4CF", width: 0 },
|
|
2903
|
+
rectRadius: 0,
|
|
2904
|
+
});
|
|
2905
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2906
|
+
x: 0,
|
|
2907
|
+
y: 0,
|
|
2908
|
+
w: ctx.width * 0.22,
|
|
2909
|
+
h: ctx.height,
|
|
2910
|
+
fill: { color: "E5EDD6" },
|
|
2911
|
+
line: { color: "E5EDD6", width: 0 },
|
|
2912
|
+
rectRadius: 0,
|
|
2913
|
+
});
|
|
2914
|
+
// Re-cover the intersection so blush stays on top-left square.
|
|
2915
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2916
|
+
x: 0,
|
|
2917
|
+
y: 0,
|
|
2918
|
+
w: ctx.width * 0.22,
|
|
2919
|
+
h: ctx.height * 0.28,
|
|
2920
|
+
fill: { color: "F2D4CF" },
|
|
2921
|
+
line: { color: "F2D4CF", width: 0 },
|
|
2922
|
+
rectRadius: 0,
|
|
2923
|
+
});
|
|
2924
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2925
|
+
x: 0,
|
|
2926
|
+
y: ctx.height * 0.28,
|
|
2927
|
+
w: ctx.width,
|
|
2928
|
+
h: 0.035,
|
|
2929
|
+
fill: { color: "0A0A0A" },
|
|
2930
|
+
line: { color: "0A0A0A", width: 0 },
|
|
2931
|
+
rectRadius: 0,
|
|
2932
|
+
});
|
|
2933
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2934
|
+
x: ctx.width * 0.22,
|
|
2935
|
+
y: 0,
|
|
2936
|
+
w: 0.035,
|
|
2937
|
+
h: ctx.height,
|
|
2938
|
+
fill: { color: "0A0A0A" },
|
|
2939
|
+
line: { color: "0A0A0A", width: 0 },
|
|
2940
|
+
rectRadius: 0,
|
|
2941
|
+
});
|
|
2942
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2943
|
+
x: 0.08,
|
|
2944
|
+
y: 0.08,
|
|
2945
|
+
w: ctx.width - 0.16,
|
|
2946
|
+
h: ctx.height - 0.16,
|
|
2947
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2948
|
+
line: { color: "0A0A0A", width: 2.5 },
|
|
2949
|
+
rectRadius: 0,
|
|
2950
|
+
});
|
|
2951
|
+
}
|
|
2952
|
+
if (theme === "retro-zine" && isHero) {
|
|
2953
|
+
// Offset green plate + cream card (retro-zine-riso).
|
|
2954
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2955
|
+
x: ctx.width * 0.68,
|
|
2956
|
+
y: ctx.height * 0.18,
|
|
2957
|
+
w: ctx.width * 0.26,
|
|
2958
|
+
h: ctx.height * 0.34,
|
|
2959
|
+
fill: { color: ctx.colors.accent },
|
|
2960
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
2961
|
+
rectRadius: 0,
|
|
2962
|
+
});
|
|
2963
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2964
|
+
x: ctx.width * 0.66,
|
|
2965
|
+
y: ctx.height * 0.16,
|
|
2966
|
+
w: ctx.width * 0.26,
|
|
2967
|
+
h: ctx.height * 0.34,
|
|
2968
|
+
fill: { color: ctx.colors.cardBg },
|
|
2969
|
+
line: { color: ctx.colors.text, width: 1.5 },
|
|
2970
|
+
rectRadius: 0,
|
|
2971
|
+
});
|
|
2972
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2973
|
+
x: 0.1,
|
|
2974
|
+
y: 0.1,
|
|
2975
|
+
w: ctx.width - 0.2,
|
|
2976
|
+
h: ctx.height - 0.2,
|
|
2977
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2978
|
+
line: { color: ctx.colors.text, width: 2.5 },
|
|
2979
|
+
rectRadius: 0,
|
|
2980
|
+
});
|
|
2981
|
+
}
|
|
2982
|
+
if (theme === "sakura-chroma") {
|
|
2983
|
+
// Hard frame always; chroma strip + stamp orbs on heroes (sakura-chroma-cassette).
|
|
2984
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2985
|
+
x: 0.08,
|
|
2986
|
+
y: 0.08,
|
|
2987
|
+
w: ctx.width - 0.16,
|
|
2988
|
+
h: ctx.height - 0.16,
|
|
2989
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
2990
|
+
line: { color: ctx.colors.text, width: 2 },
|
|
2991
|
+
rectRadius: 0.06,
|
|
2992
|
+
});
|
|
2993
|
+
if (isHero) {
|
|
2994
|
+
const chroma = ["E5392A", "E54489", "F09131", "3D9F47", "3F8BC4", "F0BC2A"];
|
|
2995
|
+
const stripW = ctx.width * 0.48;
|
|
2996
|
+
const band = stripW / chroma.length;
|
|
2997
|
+
for (let i = 0; i < chroma.length; i++) {
|
|
2998
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
2999
|
+
x: i * band,
|
|
3000
|
+
y: 0,
|
|
3001
|
+
w: band,
|
|
3002
|
+
h: ctx.height * 0.12,
|
|
3003
|
+
fill: { color: chroma[i] },
|
|
3004
|
+
line: { color: chroma[i], width: 0 },
|
|
3005
|
+
rectRadius: 0,
|
|
3006
|
+
});
|
|
3007
|
+
}
|
|
3008
|
+
const stamps = [
|
|
3009
|
+
{ x: ctx.width - 1.85, y: 0.55, color: "E54489" },
|
|
3010
|
+
{ x: ctx.width - 1.35, y: 0.72, color: "F09131" },
|
|
3011
|
+
{ x: ctx.width - 1.6, y: 1.15, color: "3F8BC4" },
|
|
3012
|
+
{ x: ctx.width - 1.95, y: 1.05, color: "3D9F47" },
|
|
3013
|
+
];
|
|
3014
|
+
for (const s of stamps) {
|
|
3015
|
+
slide.addShape(ctx.shapeOval, {
|
|
3016
|
+
x: s.x,
|
|
3017
|
+
y: s.y,
|
|
3018
|
+
w: 0.42,
|
|
3019
|
+
h: 0.42,
|
|
3020
|
+
fill: { color: s.color },
|
|
3021
|
+
line: { color: s.color, width: 0 },
|
|
3022
|
+
});
|
|
3023
|
+
}
|
|
3024
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3025
|
+
x: 0.55,
|
|
3026
|
+
y: ctx.height - 0.85,
|
|
3027
|
+
w: 0.7,
|
|
3028
|
+
h: 0.28,
|
|
3029
|
+
fill: { color: ctx.colors.accent },
|
|
3030
|
+
line: { color: ctx.colors.text, width: 1.5 },
|
|
3031
|
+
rectRadius: 0.02,
|
|
3032
|
+
});
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
if (theme === "daisy-days") {
|
|
3036
|
+
// Soft pastel dots + hard frame; daisy + pill on heroes (daisy-days-pastel).
|
|
3037
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3038
|
+
x: 0.1,
|
|
3039
|
+
y: 0.1,
|
|
3040
|
+
w: ctx.width - 0.2,
|
|
3041
|
+
h: ctx.height - 0.2,
|
|
3042
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3043
|
+
line: { color: "2D2D2D", width: 2.5 },
|
|
3044
|
+
rectRadius: 0.28,
|
|
3045
|
+
});
|
|
3046
|
+
const dots = [
|
|
3047
|
+
{ x: ctx.width * 0.1, y: ctx.height * 0.14, color: "FDE68A", s: 0.28 },
|
|
3048
|
+
{ x: ctx.width * 0.86, y: ctx.height * 0.18, color: "F7C8D4", s: 0.36 },
|
|
3049
|
+
{ x: ctx.width * 0.76, y: ctx.height * 0.78, color: "7ECDC0", s: 0.32 },
|
|
3050
|
+
{ x: ctx.width * 0.14, y: ctx.height * 0.74, color: "D4A5E8", s: 0.24 },
|
|
3051
|
+
];
|
|
3052
|
+
for (const d of dots) {
|
|
3053
|
+
slide.addShape(ctx.shapeOval, {
|
|
3054
|
+
x: d.x,
|
|
3055
|
+
y: d.y,
|
|
3056
|
+
w: d.s,
|
|
3057
|
+
h: d.s,
|
|
3058
|
+
fill: { color: d.color },
|
|
3059
|
+
line: { color: d.color, width: 0 },
|
|
3060
|
+
});
|
|
3061
|
+
}
|
|
3062
|
+
if (isHero) {
|
|
3063
|
+
slide.addShape(ctx.shapeOval, {
|
|
3064
|
+
x: ctx.width - 1.55,
|
|
3065
|
+
y: 0.55,
|
|
3066
|
+
w: 0.7,
|
|
3067
|
+
h: 0.7,
|
|
3068
|
+
fill: { color: "FDE68A" },
|
|
3069
|
+
line: { color: "2D2D2D", width: 2 },
|
|
3070
|
+
});
|
|
3071
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3072
|
+
x: 0.55,
|
|
3073
|
+
y: ctx.height - 0.95,
|
|
3074
|
+
w: 0.95,
|
|
3075
|
+
h: 0.36,
|
|
3076
|
+
fill: { color: "A8D8F0" },
|
|
3077
|
+
line: { color: "2D2D2D", width: 2 },
|
|
3078
|
+
rectRadius: 0.18,
|
|
3079
|
+
});
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3082
|
+
if (theme === "block-frame") {
|
|
3083
|
+
// Hard neobrutalist frame; pastel offset blocks on heroes (block-frame-brutal).
|
|
3084
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3085
|
+
x: 0.1,
|
|
3086
|
+
y: 0.1,
|
|
3087
|
+
w: ctx.width - 0.2,
|
|
3088
|
+
h: ctx.height - 0.2,
|
|
3089
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3090
|
+
line: { color: "000000", width: 3.5 },
|
|
3091
|
+
rectRadius: 0,
|
|
3092
|
+
});
|
|
3093
|
+
if (isHero) {
|
|
3094
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3095
|
+
x: ctx.width * 0.72,
|
|
3096
|
+
y: ctx.height * 0.12,
|
|
3097
|
+
w: ctx.width * 0.28,
|
|
3098
|
+
h: ctx.height * 0.18,
|
|
3099
|
+
fill: { color: ctx.colors.accent },
|
|
3100
|
+
line: { color: "000000", width: 2.5 },
|
|
3101
|
+
rectRadius: 0,
|
|
3102
|
+
});
|
|
3103
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3104
|
+
x: ctx.width * 0.06,
|
|
3105
|
+
y: ctx.height * 0.68,
|
|
3106
|
+
w: ctx.width * 0.16,
|
|
3107
|
+
h: ctx.height * 0.22,
|
|
3108
|
+
fill: { color: "C0F7FE" },
|
|
3109
|
+
line: { color: "000000", width: 2.5 },
|
|
3110
|
+
rectRadius: 0,
|
|
3111
|
+
});
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
if (theme === "editorial-tri-tone") {
|
|
3115
|
+
// Butter split field + burgundy wash + hard frame (tri-tone-blocks).
|
|
3116
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3117
|
+
x: ctx.width * 0.55,
|
|
3118
|
+
y: 0,
|
|
3119
|
+
w: ctx.width * 0.45,
|
|
3120
|
+
h: ctx.height,
|
|
3121
|
+
fill: { color: ctx.colors.bg2 },
|
|
3122
|
+
line: { color: ctx.colors.bg2, width: 0 },
|
|
3123
|
+
rectRadius: 0,
|
|
3124
|
+
});
|
|
3125
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3126
|
+
x: ctx.width * 0.72,
|
|
3127
|
+
y: 0,
|
|
3128
|
+
w: ctx.width * 0.28,
|
|
3129
|
+
h: ctx.height,
|
|
3130
|
+
fill: { color: ctx.colors.text, transparency: 88 },
|
|
3131
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3132
|
+
rectRadius: 0,
|
|
3133
|
+
});
|
|
3134
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3135
|
+
x: 0.1,
|
|
3136
|
+
y: 0.1,
|
|
3137
|
+
w: ctx.width - 0.2,
|
|
3138
|
+
h: ctx.height - 0.2,
|
|
3139
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3140
|
+
line: { color: ctx.colors.text, width: 2.5 },
|
|
3141
|
+
rectRadius: 0,
|
|
3142
|
+
});
|
|
3143
|
+
}
|
|
3144
|
+
if (theme === "broadside") {
|
|
3145
|
+
// Fire-orange left rail + corner block (broadside-fire).
|
|
3146
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3147
|
+
x: 0,
|
|
3148
|
+
y: 0,
|
|
3149
|
+
w: 0.12,
|
|
3150
|
+
h: ctx.height,
|
|
3151
|
+
fill: { color: ctx.colors.accent },
|
|
3152
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3153
|
+
rectRadius: 0,
|
|
3154
|
+
});
|
|
3155
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3156
|
+
x: ctx.width - 1.55,
|
|
3157
|
+
y: ctx.height - 1.55,
|
|
3158
|
+
w: 1.7,
|
|
3159
|
+
h: 1.7,
|
|
3160
|
+
fill: { color: ctx.colors.accent },
|
|
3161
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3162
|
+
rectRadius: 0,
|
|
3163
|
+
});
|
|
3164
|
+
}
|
|
3165
|
+
if (theme === "pink-script") {
|
|
3166
|
+
// Soft pink wash + inset frame + accent hairline (pink-script-afterhours).
|
|
3167
|
+
slide.addShape(ctx.shapeOval, {
|
|
3168
|
+
x: ctx.width * 0.55,
|
|
3169
|
+
y: -ctx.height * 0.2,
|
|
3170
|
+
w: ctx.width * 0.55,
|
|
3171
|
+
h: ctx.height * 0.55,
|
|
3172
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
3173
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3174
|
+
});
|
|
3175
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3176
|
+
x: 0.35,
|
|
3177
|
+
y: 0.35,
|
|
3178
|
+
w: ctx.width - 0.7,
|
|
3179
|
+
h: ctx.height - 0.7,
|
|
3180
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3181
|
+
line: { color: "F5EDF1", width: 1 },
|
|
3182
|
+
rectRadius: 0,
|
|
3183
|
+
});
|
|
3184
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3185
|
+
x: ctx.width - 2.0,
|
|
3186
|
+
y: ctx.height - 0.85,
|
|
3187
|
+
w: 1.35,
|
|
3188
|
+
h: 0.04,
|
|
3189
|
+
fill: { color: ctx.colors.accent },
|
|
3190
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3191
|
+
rectRadius: 0,
|
|
3192
|
+
});
|
|
3193
|
+
}
|
|
3194
|
+
if (theme === "retro-windows") {
|
|
3195
|
+
// Win95 title bar + window buttons + beveled frame (retro-windows-chrome).
|
|
3196
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3197
|
+
x: 0.08,
|
|
3198
|
+
y: 0.08,
|
|
3199
|
+
w: ctx.width - 0.16,
|
|
3200
|
+
h: ctx.height - 0.16,
|
|
3201
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3202
|
+
line: { color: "000000", width: 2 },
|
|
3203
|
+
rectRadius: 0,
|
|
3204
|
+
});
|
|
3205
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3206
|
+
x: 0.12,
|
|
3207
|
+
y: 0.12,
|
|
3208
|
+
w: ctx.width - 0.24,
|
|
3209
|
+
h: 0.32,
|
|
3210
|
+
fill: { color: "000080" },
|
|
3211
|
+
line: { color: "000080", width: 0 },
|
|
3212
|
+
rectRadius: 0,
|
|
3213
|
+
});
|
|
3214
|
+
const winBtns = [ctx.width - 1.15, ctx.width - 0.85, ctx.width - 0.55];
|
|
3215
|
+
for (const x of winBtns) {
|
|
3216
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3217
|
+
x,
|
|
3218
|
+
y: 0.18,
|
|
3219
|
+
w: 0.22,
|
|
3220
|
+
h: 0.18,
|
|
3221
|
+
fill: { color: "C0C0C0" },
|
|
3222
|
+
line: { color: "FFFFFF", width: 1 },
|
|
3223
|
+
rectRadius: 0,
|
|
3224
|
+
});
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
if (theme === "pin-and-paper") {
|
|
3228
|
+
// Legal-pad rules + red margin + pin (pin-paper-pad).
|
|
3229
|
+
for (let i = 1; i < 14; i++) {
|
|
3230
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3231
|
+
x: 0,
|
|
3232
|
+
y: (ctx.height / 14) * i,
|
|
3233
|
+
w: ctx.width,
|
|
3234
|
+
h: 0.012,
|
|
3235
|
+
fill: { color: "1F3A8A", transparency: 82 },
|
|
3236
|
+
line: { color: "1F3A8A", width: 0 },
|
|
3237
|
+
rectRadius: 0,
|
|
3238
|
+
});
|
|
3239
|
+
}
|
|
3240
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3241
|
+
x: 0.95,
|
|
3242
|
+
y: 0,
|
|
3243
|
+
w: 0.03,
|
|
3244
|
+
h: ctx.height,
|
|
3245
|
+
fill: { color: ctx.colors.accent, transparency: 35 },
|
|
3246
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3247
|
+
rectRadius: 0,
|
|
3248
|
+
});
|
|
3249
|
+
slide.addShape(ctx.shapeOval, {
|
|
3250
|
+
x: ctx.width - 1.15,
|
|
3251
|
+
y: 0.55,
|
|
3252
|
+
w: 0.28,
|
|
3253
|
+
h: 0.28,
|
|
3254
|
+
fill: { color: "666666" },
|
|
3255
|
+
line: { color: "222222", width: 1 },
|
|
3256
|
+
});
|
|
3257
|
+
}
|
|
3258
|
+
if (theme === "emerald-editorial") {
|
|
3259
|
+
// Double inset frame + top/bottom masthead rules (emerald-editorial-masthead).
|
|
3260
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3261
|
+
x: 0.22,
|
|
3262
|
+
y: 0.22,
|
|
3263
|
+
w: ctx.width - 0.44,
|
|
3264
|
+
h: ctx.height - 0.44,
|
|
3265
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3266
|
+
line: { color: ctx.colors.text, width: 1.5 },
|
|
3267
|
+
rectRadius: 0,
|
|
3268
|
+
});
|
|
3269
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3270
|
+
x: ctx.width * 0.12,
|
|
3271
|
+
y: ctx.height * 0.14,
|
|
3272
|
+
w: ctx.width * 0.76,
|
|
3273
|
+
h: 0.035,
|
|
3274
|
+
fill: { color: ctx.colors.text },
|
|
3275
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3276
|
+
rectRadius: 0,
|
|
3277
|
+
});
|
|
3278
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3279
|
+
x: ctx.width * 0.12,
|
|
3280
|
+
y: ctx.height * 0.86,
|
|
3281
|
+
w: ctx.width * 0.76,
|
|
3282
|
+
h: 0.035,
|
|
3283
|
+
fill: { color: ctx.colors.text },
|
|
3284
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3285
|
+
rectRadius: 0,
|
|
3286
|
+
});
|
|
3287
|
+
}
|
|
3288
|
+
if (theme === "notebook-tabs") {
|
|
3289
|
+
// Pastel side tabs + binder holes (notebook-tabs-page).
|
|
3290
|
+
const tabs = ["98D4BB", "C7B8EA", "F4B8C5", "A8D8EA", "FFE6A7"];
|
|
3291
|
+
const tabH = (ctx.height * 0.72) / tabs.length;
|
|
3292
|
+
for (let i = 0; i < tabs.length; i++) {
|
|
3293
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3294
|
+
x: ctx.width - 0.22,
|
|
3295
|
+
y: ctx.height * 0.14 + i * tabH,
|
|
3296
|
+
w: 0.22,
|
|
3297
|
+
h: tabH - 0.06,
|
|
3298
|
+
fill: { color: tabs[i] },
|
|
3299
|
+
line: { color: tabs[i], width: 0 },
|
|
3300
|
+
rectRadius: 0.06,
|
|
3301
|
+
});
|
|
3302
|
+
}
|
|
3303
|
+
for (let i = 0; i < 4; i++) {
|
|
3304
|
+
slide.addShape(ctx.shapeOval, {
|
|
3305
|
+
x: 0.35,
|
|
3306
|
+
y: 0.45 + i * 0.7,
|
|
3307
|
+
w: 0.14,
|
|
3308
|
+
h: 0.14,
|
|
3309
|
+
fill: { color: "D0CCC4" },
|
|
3310
|
+
line: { color: "D0CCC4", width: 0 },
|
|
3311
|
+
});
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
if (theme === "long-table") {
|
|
3315
|
+
// Speckled supper club + outline pill + hairline (long-table-supper).
|
|
3316
|
+
for (let i = 0; i < 8; i++) {
|
|
3317
|
+
for (let j = 0; j < 5; j++) {
|
|
3318
|
+
slide.addShape(ctx.shapeOval, {
|
|
3319
|
+
x: 0.4 + i * 1.55,
|
|
3320
|
+
y: 0.5 + j * 1.15,
|
|
3321
|
+
w: 0.06,
|
|
3322
|
+
h: 0.06,
|
|
3323
|
+
fill: { color: ctx.colors.accent, transparency: 78 },
|
|
3324
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3325
|
+
});
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3329
|
+
x: ctx.width - 1.85,
|
|
3330
|
+
y: 0.55,
|
|
3331
|
+
w: 1.15,
|
|
3332
|
+
h: 0.4,
|
|
3333
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3334
|
+
line: { color: ctx.colors.accent, width: 1.5 },
|
|
3335
|
+
rectRadius: 0.2,
|
|
3336
|
+
});
|
|
3337
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3338
|
+
x: 0.55,
|
|
3339
|
+
y: ctx.height - 0.75,
|
|
3340
|
+
w: 0.7,
|
|
3341
|
+
h: 0.025,
|
|
3342
|
+
fill: { color: ctx.colors.accent },
|
|
3343
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3344
|
+
rectRadius: 0,
|
|
3345
|
+
});
|
|
3346
|
+
}
|
|
3347
|
+
if (theme === "paper-ink") {
|
|
3348
|
+
// Crimson top rule + quiet bottom hairline (paper-ink-literary).
|
|
3349
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3350
|
+
x: ctx.margin,
|
|
3351
|
+
y: 0.65,
|
|
3352
|
+
w: ctx.width - ctx.margin * 2,
|
|
3353
|
+
h: 0.03,
|
|
3354
|
+
fill: { color: ctx.colors.accent },
|
|
3355
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3356
|
+
rectRadius: 0,
|
|
3357
|
+
});
|
|
3358
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3359
|
+
x: ctx.margin,
|
|
3360
|
+
y: ctx.height - 0.7,
|
|
3361
|
+
w: ctx.width - ctx.margin * 2,
|
|
3362
|
+
h: 0.015,
|
|
3363
|
+
fill: { color: ctx.colors.text, transparency: 55 },
|
|
3364
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3365
|
+
rectRadius: 0,
|
|
3366
|
+
});
|
|
3367
|
+
}
|
|
3368
|
+
if (theme === "vintage-editorial" && isHero) {
|
|
3369
|
+
// Geometric ring + ink/accent dots (vintage-editorial-geo).
|
|
3370
|
+
slide.addShape(ctx.shapeOval, {
|
|
3371
|
+
x: ctx.width - 2.35,
|
|
3372
|
+
y: 0.55,
|
|
3373
|
+
w: 1.55,
|
|
3374
|
+
h: 1.55,
|
|
3375
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3376
|
+
line: { color: ctx.colors.text, width: 1.5 },
|
|
3377
|
+
});
|
|
3378
|
+
slide.addShape(ctx.shapeOval, {
|
|
3379
|
+
x: ctx.width - 1.7,
|
|
3380
|
+
y: 1.2,
|
|
3381
|
+
w: 0.18,
|
|
3382
|
+
h: 0.18,
|
|
3383
|
+
fill: { color: ctx.colors.text },
|
|
3384
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3385
|
+
});
|
|
3386
|
+
slide.addShape(ctx.shapeOval, {
|
|
3387
|
+
x: ctx.width - 1.15,
|
|
3388
|
+
y: 1.7,
|
|
3389
|
+
w: 0.18,
|
|
3390
|
+
h: 0.18,
|
|
3391
|
+
fill: { color: ctx.colors.accent },
|
|
3392
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3393
|
+
});
|
|
3394
|
+
}
|
|
3395
|
+
if (theme === "studio") {
|
|
3396
|
+
// Acid hairline rails (studio-acid).
|
|
3397
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3398
|
+
x: 0,
|
|
3399
|
+
y: 0,
|
|
3400
|
+
w: ctx.width,
|
|
3401
|
+
h: 0.02,
|
|
3402
|
+
fill: { color: ctx.colors.border },
|
|
3403
|
+
line: { color: ctx.colors.border, width: 0 },
|
|
3404
|
+
rectRadius: 0,
|
|
3405
|
+
});
|
|
3406
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3407
|
+
x: 0,
|
|
3408
|
+
y: ctx.height - 0.02,
|
|
3409
|
+
w: ctx.width,
|
|
3410
|
+
h: 0.02,
|
|
3411
|
+
fill: { color: ctx.colors.border },
|
|
3412
|
+
line: { color: ctx.colors.border, width: 0 },
|
|
3413
|
+
rectRadius: 0,
|
|
3414
|
+
});
|
|
3415
|
+
}
|
|
3416
|
+
if (theme === "grove") {
|
|
3417
|
+
// Quiet top hairline + coral stub (grove-monograph).
|
|
3418
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3419
|
+
x: ctx.width * 0.05,
|
|
3420
|
+
y: ctx.height * 0.06,
|
|
3421
|
+
w: ctx.width * 0.9,
|
|
3422
|
+
h: 0.015,
|
|
3423
|
+
fill: { color: "D4CFBF", transparency: 70 },
|
|
3424
|
+
line: { color: "D4CFBF", width: 0 },
|
|
3425
|
+
rectRadius: 0,
|
|
3426
|
+
});
|
|
3427
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3428
|
+
x: ctx.width * 0.05,
|
|
3429
|
+
y: ctx.height * 0.9,
|
|
3430
|
+
w: 0.45,
|
|
3431
|
+
h: 0.03,
|
|
3432
|
+
fill: { color: ctx.colors.accent },
|
|
3433
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3434
|
+
rectRadius: 0,
|
|
3435
|
+
});
|
|
3436
|
+
}
|
|
3437
|
+
if (theme === "stencil-tablet" && isHero) {
|
|
3438
|
+
// Earth tablet blocks (stencil-tablet-earth).
|
|
3439
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3440
|
+
x: 0.1,
|
|
3441
|
+
y: 0.1,
|
|
3442
|
+
w: ctx.width - 0.2,
|
|
3443
|
+
h: ctx.height - 0.2,
|
|
3444
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3445
|
+
line: { color: "000000", width: 2 },
|
|
3446
|
+
rectRadius: 0,
|
|
3447
|
+
});
|
|
3448
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3449
|
+
x: ctx.width * 0.77,
|
|
3450
|
+
y: ctx.height * 0.1,
|
|
3451
|
+
w: ctx.width * 0.18,
|
|
3452
|
+
h: ctx.height * 0.22,
|
|
3453
|
+
fill: { color: ctx.colors.accent },
|
|
3454
|
+
line: { color: "000000", width: 1.5 },
|
|
3455
|
+
rectRadius: 0.22,
|
|
3456
|
+
});
|
|
3457
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3458
|
+
x: ctx.width * 0.05,
|
|
3459
|
+
y: ctx.height * 0.72,
|
|
3460
|
+
w: ctx.width * 0.14,
|
|
3461
|
+
h: ctx.height * 0.18,
|
|
3462
|
+
fill: { color: ctx.colors.accent2 },
|
|
3463
|
+
line: { color: "000000", width: 1.5 },
|
|
3464
|
+
rectRadius: 0.2,
|
|
3465
|
+
});
|
|
3466
|
+
}
|
|
3467
|
+
if (theme === "cartesian") {
|
|
3468
|
+
// Draft axes + concentric rings (cartesian-draft).
|
|
3469
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3470
|
+
x: ctx.width * 0.06,
|
|
3471
|
+
y: ctx.height * 0.1,
|
|
3472
|
+
w: ctx.width * 0.88,
|
|
3473
|
+
h: 0.015,
|
|
3474
|
+
fill: { color: ctx.colors.border, transparency: 35 },
|
|
3475
|
+
line: { color: ctx.colors.border, width: 0 },
|
|
3476
|
+
rectRadius: 0,
|
|
3477
|
+
});
|
|
3478
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3479
|
+
x: ctx.width * 0.06,
|
|
3480
|
+
y: ctx.height * 0.1,
|
|
3481
|
+
w: 0.015,
|
|
3482
|
+
h: ctx.height * 0.8,
|
|
3483
|
+
fill: { color: ctx.colors.border, transparency: 35 },
|
|
3484
|
+
line: { color: ctx.colors.border, width: 0 },
|
|
3485
|
+
rectRadius: 0,
|
|
3486
|
+
});
|
|
3487
|
+
slide.addShape(ctx.shapeOval, {
|
|
3488
|
+
x: ctx.width * 0.78,
|
|
3489
|
+
y: ctx.height * 0.08,
|
|
3490
|
+
w: 1.4,
|
|
3491
|
+
h: 1.4,
|
|
3492
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3493
|
+
line: { color: "B8B0A4", width: 1 },
|
|
3494
|
+
});
|
|
3495
|
+
slide.addShape(ctx.shapeOval, {
|
|
3496
|
+
x: ctx.width * 0.74,
|
|
3497
|
+
y: ctx.height * 0.04,
|
|
3498
|
+
w: 2.0,
|
|
3499
|
+
h: 2.0,
|
|
3500
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3501
|
+
line: { color: "B8B0A4", width: 0.75 },
|
|
3502
|
+
});
|
|
3503
|
+
}
|
|
3504
|
+
if (theme === "monochrome") {
|
|
3505
|
+
// Ledger hairlines (monochrome-ledger).
|
|
3506
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3507
|
+
x: ctx.width * 0.06,
|
|
3508
|
+
y: ctx.height * 0.08,
|
|
3509
|
+
w: ctx.width * 0.88,
|
|
3510
|
+
h: 0.015,
|
|
3511
|
+
fill: { color: ctx.colors.text, transparency: 75 },
|
|
3512
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3513
|
+
rectRadius: 0,
|
|
3514
|
+
});
|
|
3515
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3516
|
+
x: ctx.width * 0.06,
|
|
3517
|
+
y: ctx.height * 0.9,
|
|
3518
|
+
w: 0.35,
|
|
3519
|
+
h: 0.015,
|
|
3520
|
+
fill: { color: ctx.colors.text },
|
|
3521
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3522
|
+
rectRadius: 0,
|
|
3523
|
+
});
|
|
3524
|
+
}
|
|
3525
|
+
if (theme === "blue-professional") {
|
|
3526
|
+
// Soft blue wash band + accent stub (blue-professional-clean).
|
|
3527
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3528
|
+
x: 0,
|
|
3529
|
+
y: 0,
|
|
3530
|
+
w: ctx.width,
|
|
3531
|
+
h: ctx.height * 0.18,
|
|
3532
|
+
fill: { color: ctx.colors.accent, transparency: 92 },
|
|
3533
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3534
|
+
rectRadius: 0,
|
|
3535
|
+
});
|
|
3536
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3537
|
+
x: 0.55,
|
|
3538
|
+
y: 0.5,
|
|
3539
|
+
w: 0.6,
|
|
3540
|
+
h: 0.05,
|
|
3541
|
+
fill: { color: ctx.colors.accent },
|
|
3542
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3543
|
+
rectRadius: 0.02,
|
|
3544
|
+
});
|
|
3545
|
+
}
|
|
3546
|
+
if (theme === "broadsheet") {
|
|
3547
|
+
// Newsprint masthead bar + bottom rule (newsprint-masthead).
|
|
3548
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3549
|
+
x: 0,
|
|
3550
|
+
y: 0,
|
|
3551
|
+
w: ctx.width,
|
|
3552
|
+
h: 0.42,
|
|
3553
|
+
fill: { color: ctx.colors.text },
|
|
3554
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3555
|
+
rectRadius: 0,
|
|
3556
|
+
});
|
|
3557
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3558
|
+
x: ctx.margin,
|
|
3559
|
+
y: ctx.height - 0.7,
|
|
3560
|
+
w: ctx.width - ctx.margin * 2,
|
|
3561
|
+
h: 0.03,
|
|
3562
|
+
fill: { color: ctx.colors.text },
|
|
3563
|
+
line: { color: ctx.colors.text, width: 0 },
|
|
3564
|
+
rectRadius: 0,
|
|
3565
|
+
});
|
|
3566
|
+
}
|
|
3567
|
+
if (theme === "editorial-forest") {
|
|
3568
|
+
// Forest rule + blush orb (editorial-forest-paper).
|
|
3569
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3570
|
+
x: ctx.margin,
|
|
3571
|
+
y: 0.55,
|
|
3572
|
+
w: ctx.width - ctx.margin * 2,
|
|
3573
|
+
h: 0.025,
|
|
3574
|
+
fill: { color: ctx.colors.accent },
|
|
3575
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3576
|
+
rectRadius: 0,
|
|
3577
|
+
});
|
|
3578
|
+
slide.addShape(ctx.shapeOval, {
|
|
3579
|
+
x: ctx.width - 1.65,
|
|
3580
|
+
y: ctx.height - 1.55,
|
|
3581
|
+
w: 0.95,
|
|
3582
|
+
h: 0.95,
|
|
3583
|
+
fill: { color: ctx.colors.accent2, transparency: 35 },
|
|
3584
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3585
|
+
});
|
|
3586
|
+
}
|
|
3587
|
+
if (theme === "signal") {
|
|
3588
|
+
// Briefing hairline + outline square (signal-briefing).
|
|
3589
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3590
|
+
x: ctx.margin,
|
|
3591
|
+
y: 0.55,
|
|
3592
|
+
w: ctx.width - ctx.margin * 2,
|
|
3593
|
+
h: 0.015,
|
|
3594
|
+
fill: { color: ctx.colors.accent },
|
|
3595
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3596
|
+
rectRadius: 0,
|
|
3597
|
+
});
|
|
3598
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3599
|
+
x: ctx.width - 1.35,
|
|
3600
|
+
y: ctx.height - 1.35,
|
|
3601
|
+
w: 0.65,
|
|
3602
|
+
h: 0.65,
|
|
3603
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3604
|
+
line: { color: ctx.colors.accent2, width: 1.25 },
|
|
3605
|
+
rectRadius: 0,
|
|
3606
|
+
});
|
|
3607
|
+
}
|
|
3608
|
+
if (theme === "pastel-dreamy") {
|
|
3609
|
+
// Soft cloud ovals (pastel-cloud).
|
|
3610
|
+
slide.addShape(ctx.shapeOval, {
|
|
3611
|
+
x: -ctx.width * 0.05,
|
|
3612
|
+
y: -ctx.height * 0.1,
|
|
3613
|
+
w: ctx.width * 0.45,
|
|
3614
|
+
h: ctx.height * 0.45,
|
|
3615
|
+
fill: { color: ctx.colors.accent2, transparency: 78 },
|
|
3616
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3617
|
+
});
|
|
3618
|
+
slide.addShape(ctx.shapeOval, {
|
|
3619
|
+
x: ctx.width * 0.55,
|
|
3620
|
+
y: ctx.height * 0.05,
|
|
3621
|
+
w: ctx.width * 0.4,
|
|
3622
|
+
h: ctx.height * 0.4,
|
|
3623
|
+
fill: { color: ctx.colors.accent, transparency: 82 },
|
|
3624
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3625
|
+
});
|
|
3626
|
+
}
|
|
3627
|
+
if (theme === "vellum") {
|
|
3628
|
+
// Soft colorfield wash (vellum-colorfield).
|
|
3629
|
+
slide.addShape(ctx.shapeOval, {
|
|
3630
|
+
x: ctx.width * 0.15,
|
|
3631
|
+
y: ctx.height * 0.05,
|
|
3632
|
+
w: ctx.width * 0.7,
|
|
3633
|
+
h: ctx.height * 0.7,
|
|
3634
|
+
fill: { color: ctx.colors.bg2, transparency: 45 },
|
|
3635
|
+
line: { color: ctx.colors.bg2, width: 0 },
|
|
3636
|
+
});
|
|
3637
|
+
}
|
|
3638
|
+
if (theme === "editorial-serif") {
|
|
3639
|
+
// Accent rule + deco ring (editorial-rule).
|
|
3640
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3641
|
+
x: ctx.margin,
|
|
3642
|
+
y: 0.55,
|
|
3643
|
+
w: ctx.width - ctx.margin * 2,
|
|
3644
|
+
h: 0.05,
|
|
3645
|
+
fill: { color: ctx.colors.accent },
|
|
3646
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3647
|
+
rectRadius: 0,
|
|
3648
|
+
});
|
|
3649
|
+
slide.addShape(ctx.shapeOval, {
|
|
3650
|
+
x: ctx.width - 1.45,
|
|
3651
|
+
y: 0.75,
|
|
3652
|
+
w: 0.7,
|
|
3653
|
+
h: 0.7,
|
|
3654
|
+
fill: { color: ctx.colors.bg, transparency: 100 },
|
|
3655
|
+
line: { color: ctx.colors.accent, width: 1.5 },
|
|
3656
|
+
});
|
|
3657
|
+
}
|
|
3658
|
+
if (theme === "playful") {
|
|
3659
|
+
// Soft accent blot (soft-bento).
|
|
3660
|
+
slide.addShape(ctx.shapeOval, {
|
|
3661
|
+
x: ctx.width * 0.75,
|
|
3662
|
+
y: -ctx.height * 0.05,
|
|
3663
|
+
w: ctx.width * 0.35,
|
|
3664
|
+
h: ctx.height * 0.35,
|
|
3665
|
+
fill: { color: ctx.colors.accent2, transparency: 72 },
|
|
3666
|
+
line: { color: ctx.colors.accent2, width: 0 },
|
|
3667
|
+
});
|
|
3668
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3669
|
+
x: ctx.width - 2.0,
|
|
3670
|
+
y: ctx.height - 2.0,
|
|
3671
|
+
w: 1.4,
|
|
3672
|
+
h: 1.4,
|
|
3673
|
+
fill: { color: ctx.colors.accent, transparency: 82 },
|
|
3674
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3675
|
+
rectRadius: 0.28,
|
|
3676
|
+
});
|
|
3677
|
+
}
|
|
3678
|
+
if (theme === "corporate") {
|
|
3679
|
+
// Clean accent stub (clean-light).
|
|
3680
|
+
slide.addShape(ctx.shapeRoundRect, {
|
|
3681
|
+
x: 0.55,
|
|
3682
|
+
y: 0.55,
|
|
3683
|
+
w: 0.08,
|
|
3684
|
+
h: 0.95,
|
|
3685
|
+
fill: { color: ctx.colors.accent },
|
|
3686
|
+
line: { color: ctx.colors.accent, width: 0 },
|
|
3687
|
+
rectRadius: 0.04,
|
|
3688
|
+
});
|
|
3689
|
+
}
|
|
2419
3690
|
}
|
|
2420
3691
|
export function renderSlide(slide, ctx, data) {
|
|
2421
3692
|
paintSlideChrome(slide, ctx, data);
|