@clypra-studio/engine 1.7.0 → 1.8.1

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/index.cjs CHANGED
@@ -2547,7 +2547,204 @@ function createBlankTextEffectConfig() {
2547
2547
  }))
2548
2548
  };
2549
2549
  }
2550
- var builtInPresets = [];
2550
+ var builtInPresets = [
2551
+ {
2552
+ id: "classic-yellow",
2553
+ name: "Classic Yellow",
2554
+ category: "caption",
2555
+ config: {
2556
+ ...defaultConfig,
2557
+ text: "SAMPLE CAPTION",
2558
+ effectName: "Classic Yellow",
2559
+ fontFamily: "Outfit Variable",
2560
+ fontWeight: 800,
2561
+ fontSize: 64,
2562
+ fillColor: "#FFE600",
2563
+ strokeEnabled: true,
2564
+ strokeColor: "#000000",
2565
+ strokeWidth: 5,
2566
+ strokePosition: "outside",
2567
+ strokeOpacity: 100,
2568
+ shadowEnabled: true,
2569
+ shadowColor: "#000000",
2570
+ shadowBlur: 6,
2571
+ shadowOffsetX: 0,
2572
+ shadowOffsetY: 3,
2573
+ shadowOpacity: 85
2574
+ }
2575
+ },
2576
+ {
2577
+ id: "dark-pill",
2578
+ name: "Dark Pill",
2579
+ category: "caption",
2580
+ config: {
2581
+ ...defaultConfig,
2582
+ text: "SAMPLE CAPTION",
2583
+ effectName: "Dark Pill",
2584
+ fontFamily: "Inter Variable",
2585
+ fontWeight: 700,
2586
+ fontSize: 56,
2587
+ fillColor: "#FFFFFF",
2588
+ panelEnabled: true,
2589
+ panelColor: "#000000",
2590
+ panelOpacity: 85,
2591
+ panelRadius: 28,
2592
+ panelPaddingX: 36,
2593
+ panelPaddingY: 12
2594
+ }
2595
+ },
2596
+ {
2597
+ id: "outline-white",
2598
+ name: "Outline White",
2599
+ category: "caption",
2600
+ config: {
2601
+ ...defaultConfig,
2602
+ text: "SAMPLE CAPTION",
2603
+ effectName: "Outline White",
2604
+ fontFamily: "Outfit Variable",
2605
+ fontWeight: 800,
2606
+ fontSize: 64,
2607
+ fillColor: "#FFFFFF",
2608
+ strokeEnabled: true,
2609
+ strokeColor: "#000000",
2610
+ strokeWidth: 4,
2611
+ strokePosition: "outside",
2612
+ strokeOpacity: 100,
2613
+ shadowEnabled: true,
2614
+ shadowColor: "#000000",
2615
+ shadowBlur: 4,
2616
+ shadowOffsetX: 0,
2617
+ shadowOffsetY: 2,
2618
+ shadowOpacity: 70
2619
+ }
2620
+ },
2621
+ {
2622
+ id: "neon-pop",
2623
+ name: "Neon Pop",
2624
+ category: "caption",
2625
+ config: {
2626
+ ...defaultConfig,
2627
+ text: "SAMPLE CAPTION",
2628
+ effectName: "Neon Pop",
2629
+ fontFamily: "Montserrat Variable",
2630
+ fontWeight: 800,
2631
+ fontSize: 64,
2632
+ fillColor: "#00F0FF",
2633
+ strokeEnabled: true,
2634
+ strokeColor: "#003344",
2635
+ strokeWidth: 2,
2636
+ strokePosition: "outside",
2637
+ glowLayers: [
2638
+ { enabled: true, color: "#00F0FF", blur: 15, opacity: 85, type: "outer" },
2639
+ { enabled: false, color: "#FF007C", blur: 40, opacity: 60, type: "outer" },
2640
+ { enabled: false, color: "#00F0FF", blur: 60, opacity: 40, type: "outer" }
2641
+ ],
2642
+ shadowEnabled: true,
2643
+ shadowColor: "rgba(0, 240, 255, 0.5)",
2644
+ shadowBlur: 14,
2645
+ shadowOffsetX: 0,
2646
+ shadowOffsetY: 0,
2647
+ shadowOpacity: 80
2648
+ }
2649
+ },
2650
+ {
2651
+ id: "minimal-clean",
2652
+ name: "Minimal Clean",
2653
+ category: "caption",
2654
+ config: {
2655
+ ...defaultConfig,
2656
+ text: "SAMPLE CAPTION",
2657
+ effectName: "Minimal Clean",
2658
+ fontFamily: "Inter Variable",
2659
+ fontWeight: 600,
2660
+ fontSize: 58,
2661
+ fillColor: "#F5F5F7",
2662
+ shadowEnabled: true,
2663
+ shadowColor: "#000000",
2664
+ shadowBlur: 6,
2665
+ shadowOffsetX: 0,
2666
+ shadowOffsetY: 2,
2667
+ shadowOpacity: 65
2668
+ }
2669
+ },
2670
+ {
2671
+ id: "fire-orange",
2672
+ name: "Fire Orange",
2673
+ category: "caption",
2674
+ config: {
2675
+ ...defaultConfig,
2676
+ text: "SAMPLE CAPTION",
2677
+ effectName: "Fire Orange",
2678
+ fontFamily: "Outfit Variable",
2679
+ fontWeight: 900,
2680
+ fontSize: 64,
2681
+ fillColor: "#FF5722",
2682
+ strokeEnabled: true,
2683
+ strokeColor: "#1A0500",
2684
+ strokeWidth: 4,
2685
+ strokePosition: "outside",
2686
+ strokeOpacity: 100,
2687
+ shadowEnabled: true,
2688
+ shadowColor: "rgba(255, 87, 34, 0.4)",
2689
+ shadowBlur: 8,
2690
+ shadowOffsetX: 0,
2691
+ shadowOffsetY: 2,
2692
+ shadowOpacity: 75
2693
+ }
2694
+ },
2695
+ {
2696
+ id: "frosted-glass",
2697
+ name: "Frosted Glass",
2698
+ category: "caption",
2699
+ config: {
2700
+ ...defaultConfig,
2701
+ text: "SAMPLE CAPTION",
2702
+ effectName: "Frosted Glass",
2703
+ fontFamily: "Inter Variable",
2704
+ fontWeight: 600,
2705
+ fontSize: 56,
2706
+ fillColor: "#FFFFFF",
2707
+ panelEnabled: true,
2708
+ panelColor: "#FFFFFF",
2709
+ panelOpacity: 18,
2710
+ panelRadius: 20,
2711
+ panelPaddingX: 32,
2712
+ panelPaddingY: 12,
2713
+ panelStrokeEnabled: true,
2714
+ panelStrokeColor: "rgba(255, 255, 255, 0.3)",
2715
+ panelStrokeWidth: 1.5,
2716
+ shadowEnabled: true,
2717
+ shadowColor: "rgba(0, 0, 0, 0.3)",
2718
+ shadowBlur: 8,
2719
+ shadowOffsetX: 0,
2720
+ shadowOffsetY: 4,
2721
+ shadowOpacity: 50
2722
+ }
2723
+ },
2724
+ {
2725
+ id: "typewriter-mono",
2726
+ name: "Typewriter Mono",
2727
+ category: "caption",
2728
+ config: {
2729
+ ...defaultConfig,
2730
+ text: "SAMPLE CAPTION",
2731
+ effectName: "Typewriter Mono",
2732
+ fontFamily: "Fira Code",
2733
+ fontWeight: 600,
2734
+ fontSize: 52,
2735
+ fillColor: "#FFFFFF",
2736
+ panelEnabled: true,
2737
+ panelColor: "#161622",
2738
+ panelOpacity: 90,
2739
+ panelRadius: 8,
2740
+ panelPaddingX: 24,
2741
+ panelPaddingY: 10,
2742
+ panelStrokeEnabled: true,
2743
+ panelStrokeColor: "#FFB800",
2744
+ panelStrokeWidth: 2
2745
+ }
2746
+ }
2747
+ ];
2551
2748
 
2552
2749
  // src/engine/timelineDefaults.ts
2553
2750
  function ensureDefaultTimeline(doc) {
@@ -13526,6 +13723,347 @@ var BUILTIN_CANVAS_TEMPLATES = [
13526
13723
  }
13527
13724
  }
13528
13725
  ]
13726
+ },
13727
+ // ── Caption Templates (Admin-Customizable Studio Presets) ────────────────────
13728
+ {
13729
+ id: "classic-yellow",
13730
+ label: "Classic Yellow",
13731
+ category: "caption",
13732
+ duration: 4,
13733
+ canvasWidth: 1920,
13734
+ canvasHeight: 1080,
13735
+ description: "High-contrast yellow text with bold black outline \u2014 the most readable caption style for mixed backgrounds.",
13736
+ layers: [
13737
+ {
13738
+ kind: "text",
13739
+ id: "caption-text",
13740
+ content: "Sample Subtitle Caption",
13741
+ fontFamily: "Outfit Variable",
13742
+ fontSize: 38,
13743
+ fontWeight: 800,
13744
+ color: "#FFE600",
13745
+ align: "center",
13746
+ x: 360,
13747
+ y: 890,
13748
+ width: 1200,
13749
+ height: 100,
13750
+ role: "primary",
13751
+ textRole: "caption",
13752
+ stroke: { color: "#000000", width: 4 },
13753
+ shadow: { color: "rgba(0,0,0,0.6)", blur: 6, offsetX: 0, offsetY: 3 },
13754
+ animation: {
13755
+ in: "fade",
13756
+ out: "fade",
13757
+ inDuration: 0.2,
13758
+ outDuration: 0.2,
13759
+ hold: "full"
13760
+ },
13761
+ anchor: {
13762
+ anchorPoint: "bottom-center",
13763
+ maxWidthPercentage: 90
13764
+ }
13765
+ }
13766
+ ]
13767
+ },
13768
+ {
13769
+ id: "dark-pill",
13770
+ label: "Dark Pill",
13771
+ category: "caption",
13772
+ duration: 4,
13773
+ canvasWidth: 1920,
13774
+ canvasHeight: 1080,
13775
+ description: "White text inside a semi-transparent dark rounded pill \u2014 works on any background.",
13776
+ layers: [
13777
+ {
13778
+ kind: "text",
13779
+ id: "caption-text",
13780
+ content: "Sample Subtitle Caption",
13781
+ fontFamily: "Inter Variable",
13782
+ fontSize: 34,
13783
+ fontWeight: 700,
13784
+ color: "#FFFFFF",
13785
+ align: "center",
13786
+ x: 360,
13787
+ y: 890,
13788
+ width: 1200,
13789
+ height: 100,
13790
+ role: "primary",
13791
+ textRole: "caption",
13792
+ backgroundColor: "rgba(0,0,0,0.75)",
13793
+ backgroundRadius: 10,
13794
+ padding: 10,
13795
+ paddingTop: 10,
13796
+ paddingBottom: 10,
13797
+ paddingLeft: 20,
13798
+ paddingRight: 20,
13799
+ shadow: { color: "rgba(0,0,0,0.5)", blur: 4, offsetX: 0, offsetY: 2 },
13800
+ animation: {
13801
+ in: "fade",
13802
+ out: "fade",
13803
+ inDuration: 0.2,
13804
+ outDuration: 0.2,
13805
+ hold: "full"
13806
+ },
13807
+ anchor: {
13808
+ anchorPoint: "bottom-center",
13809
+ maxWidthPercentage: 90
13810
+ }
13811
+ }
13812
+ ]
13813
+ },
13814
+ {
13815
+ id: "outline-white",
13816
+ label: "Outline White",
13817
+ category: "caption",
13818
+ duration: 4,
13819
+ canvasWidth: 1920,
13820
+ canvasHeight: 1080,
13821
+ description: "Broadcast-standard white text with dark outline \u2014 clean and professional on any content.",
13822
+ layers: [
13823
+ {
13824
+ kind: "text",
13825
+ id: "caption-text",
13826
+ content: "Sample Subtitle Caption",
13827
+ fontFamily: "Inter Variable",
13828
+ fontSize: 32,
13829
+ fontWeight: 600,
13830
+ color: "#FFFFFF",
13831
+ align: "center",
13832
+ x: 360,
13833
+ y: 890,
13834
+ width: 1200,
13835
+ height: 100,
13836
+ role: "primary",
13837
+ textRole: "caption",
13838
+ stroke: { color: "#1a1a1a", width: 3 },
13839
+ shadow: { color: "rgba(0,0,0,0.8)", blur: 5, offsetX: 0, offsetY: 2 },
13840
+ animation: {
13841
+ in: "fade",
13842
+ out: "fade",
13843
+ inDuration: 0.2,
13844
+ outDuration: 0.2,
13845
+ hold: "full"
13846
+ },
13847
+ anchor: {
13848
+ anchorPoint: "bottom-center",
13849
+ maxWidthPercentage: 90
13850
+ }
13851
+ }
13852
+ ]
13853
+ },
13854
+ {
13855
+ id: "neon-pop",
13856
+ label: "Neon Pop",
13857
+ category: "caption",
13858
+ duration: 4,
13859
+ canvasWidth: 1920,
13860
+ canvasHeight: 1080,
13861
+ description: "Electric cyan with a vivid blue glow \u2014 perfect for tech, gaming, and high-energy content.",
13862
+ layers: [
13863
+ {
13864
+ kind: "text",
13865
+ id: "caption-text",
13866
+ content: "Sample Subtitle Caption",
13867
+ fontFamily: "Outfit Variable",
13868
+ fontSize: 38,
13869
+ fontWeight: 800,
13870
+ color: "#00FFFF",
13871
+ align: "center",
13872
+ x: 360,
13873
+ y: 890,
13874
+ width: 1200,
13875
+ height: 100,
13876
+ role: "primary",
13877
+ textRole: "caption",
13878
+ stroke: { color: "#0044EE", width: 3 },
13879
+ shadow: { color: "rgba(0,68,238,0.5)", blur: 10, offsetX: 0, offsetY: 0 },
13880
+ animation: {
13881
+ in: "fade",
13882
+ out: "fade",
13883
+ inDuration: 0.2,
13884
+ outDuration: 0.2,
13885
+ hold: "full"
13886
+ },
13887
+ anchor: {
13888
+ anchorPoint: "bottom-center",
13889
+ maxWidthPercentage: 90
13890
+ }
13891
+ }
13892
+ ]
13893
+ },
13894
+ {
13895
+ id: "minimal-clean",
13896
+ label: "Minimal Clean",
13897
+ category: "caption",
13898
+ duration: 4,
13899
+ canvasWidth: 1920,
13900
+ canvasHeight: 1080,
13901
+ description: "Understated white text with a soft shadow \u2014 editorial and podcast-friendly.",
13902
+ layers: [
13903
+ {
13904
+ kind: "text",
13905
+ id: "caption-text",
13906
+ content: "Sample Subtitle Caption",
13907
+ fontFamily: "Inter Variable",
13908
+ fontSize: 30,
13909
+ fontWeight: 400,
13910
+ color: "#FFFFFF",
13911
+ align: "center",
13912
+ x: 360,
13913
+ y: 890,
13914
+ width: 1200,
13915
+ height: 100,
13916
+ role: "primary",
13917
+ textRole: "caption",
13918
+ stroke: { color: "rgba(0,0,0,0.3)", width: 1.5 },
13919
+ shadow: { color: "rgba(0,0,0,0.7)", blur: 8, offsetX: 0, offsetY: 3 },
13920
+ animation: {
13921
+ in: "fade",
13922
+ out: "fade",
13923
+ inDuration: 0.2,
13924
+ outDuration: 0.2,
13925
+ hold: "full"
13926
+ },
13927
+ anchor: {
13928
+ anchorPoint: "bottom-center",
13929
+ maxWidthPercentage: 90
13930
+ }
13931
+ }
13932
+ ]
13933
+ },
13934
+ {
13935
+ id: "fire-orange",
13936
+ label: "Fire Orange",
13937
+ category: "caption",
13938
+ duration: 4,
13939
+ canvasWidth: 1920,
13940
+ canvasHeight: 1080,
13941
+ description: "Bold warm orange with dark outline \u2014 energetic and attention-grabbing for action content.",
13942
+ layers: [
13943
+ {
13944
+ kind: "text",
13945
+ id: "caption-text",
13946
+ content: "Sample Subtitle Caption",
13947
+ fontFamily: "Outfit Variable",
13948
+ fontSize: 40,
13949
+ fontWeight: 900,
13950
+ color: "#FF6B1A",
13951
+ align: "center",
13952
+ x: 360,
13953
+ y: 890,
13954
+ width: 1200,
13955
+ height: 100,
13956
+ role: "primary",
13957
+ textRole: "caption",
13958
+ stroke: { color: "#1A0800", width: 4 },
13959
+ shadow: { color: "rgba(255,80,0,0.4)", blur: 8, offsetX: 0, offsetY: 0 },
13960
+ animation: {
13961
+ in: "fade",
13962
+ out: "fade",
13963
+ inDuration: 0.2,
13964
+ outDuration: 0.2,
13965
+ hold: "full"
13966
+ },
13967
+ anchor: {
13968
+ anchorPoint: "bottom-center",
13969
+ maxWidthPercentage: 90
13970
+ }
13971
+ }
13972
+ ]
13973
+ },
13974
+ {
13975
+ id: "frosted-glass",
13976
+ label: "Frosted Glass",
13977
+ category: "caption",
13978
+ duration: 4,
13979
+ canvasWidth: 1920,
13980
+ canvasHeight: 1080,
13981
+ description: "Modern frosted glass pill with light text \u2014 clean, premium look for lifestyle and brand content.",
13982
+ layers: [
13983
+ {
13984
+ kind: "text",
13985
+ id: "caption-text",
13986
+ content: "Sample Subtitle Caption",
13987
+ fontFamily: "Inter Variable",
13988
+ fontSize: 32,
13989
+ fontWeight: 600,
13990
+ color: "#FFFFFF",
13991
+ align: "center",
13992
+ x: 360,
13993
+ y: 890,
13994
+ width: 1200,
13995
+ height: 100,
13996
+ role: "primary",
13997
+ textRole: "caption",
13998
+ backgroundColor: "rgba(255,255,255,0.12)",
13999
+ backgroundBorderColor: "rgba(255,255,255,0.3)",
14000
+ backgroundBorderWidth: 1,
14001
+ backgroundRadius: 14,
14002
+ padding: 12,
14003
+ paddingTop: 12,
14004
+ paddingBottom: 12,
14005
+ paddingLeft: 24,
14006
+ paddingRight: 24,
14007
+ stroke: { color: "rgba(255,255,255,0.3)", width: 1 },
14008
+ shadow: { color: "rgba(0,0,0,0.4)", blur: 6, offsetX: 0, offsetY: 2 },
14009
+ animation: {
14010
+ in: "fade",
14011
+ out: "fade",
14012
+ inDuration: 0.2,
14013
+ outDuration: 0.2,
14014
+ hold: "full"
14015
+ },
14016
+ anchor: {
14017
+ anchorPoint: "bottom-center",
14018
+ maxWidthPercentage: 90
14019
+ }
14020
+ }
14021
+ ]
14022
+ },
14023
+ {
14024
+ id: "typewriter-mono",
14025
+ label: "Typewriter Mono",
14026
+ category: "caption",
14027
+ duration: 4,
14028
+ canvasWidth: 1920,
14029
+ canvasHeight: 1080,
14030
+ description: "Monospace typewriter style \u2014 perfect for documentary narration, tech, or interview content.",
14031
+ layers: [
14032
+ {
14033
+ kind: "text",
14034
+ id: "caption-text",
14035
+ content: "Sample Subtitle Caption",
14036
+ fontFamily: "monospace",
14037
+ fontSize: 28,
14038
+ fontWeight: 400,
14039
+ color: "#E8E8D8",
14040
+ align: "left",
14041
+ x: 360,
14042
+ y: 890,
14043
+ width: 1200,
14044
+ height: 100,
14045
+ role: "primary",
14046
+ textRole: "caption",
14047
+ backgroundColor: "rgba(0,0,0,0.85)",
14048
+ backgroundRadius: 4,
14049
+ padding: 10,
14050
+ paddingTop: 10,
14051
+ paddingBottom: 10,
14052
+ paddingLeft: 16,
14053
+ paddingRight: 16,
14054
+ animation: {
14055
+ in: "fade",
14056
+ out: "fade",
14057
+ inDuration: 0.2,
14058
+ outDuration: 0.2,
14059
+ hold: "full"
14060
+ },
14061
+ anchor: {
14062
+ anchorPoint: "bottom-center",
14063
+ maxWidthPercentage: 90
14064
+ }
14065
+ }
14066
+ ]
13529
14067
  }
13530
14068
  ];
13531
14069
  function getCanvasTemplatePreset(id) {
@@ -13995,8 +14533,8 @@ function resolveTemplateControlValues(artifact, optionsOrCustomization, fallback
13995
14533
  (candidate) => candidate.type === "text"
13996
14534
  );
13997
14535
  const values = { ...existingValues || {} };
13998
- for (const control of artifact.controls) {
13999
- if (control.type !== "text" && control.type !== "color") continue;
14536
+ for (const control of artifact.controls || []) {
14537
+ if (control.type !== "text" && control.type !== "color" && control.type !== "font") continue;
14000
14538
  const node = artifact.document?.nodes?.find(
14001
14539
  (candidate) => candidate.id === control.target.nodeId
14002
14540
  );
@@ -14023,6 +14561,41 @@ function resolveTemplateControlValues(artifact, optionsOrCustomization, fallback
14023
14561
  roleColor = customization?.primaryColor;
14024
14562
  }
14025
14563
  values[control.id] = explicitColor ?? roleColor ?? values[control.id] ?? control.defaultValue;
14564
+ } else if (control.type === "font") {
14565
+ const explicitFont = customization?.layerFontFamilies?.[control.target.nodeId];
14566
+ let roleFont;
14567
+ if (role === "secondary" || labelLower.includes("secondary")) {
14568
+ roleFont = customization?.secondaryFontFamily;
14569
+ } else {
14570
+ roleFont = customization?.primaryFontFamily;
14571
+ }
14572
+ values[control.id] = explicitFont ?? roleFont ?? values[control.id] ?? control.defaultValue;
14573
+ }
14574
+ }
14575
+ for (const node of artifact.document?.nodes || []) {
14576
+ if (node.type === "text") {
14577
+ const role = node.role || "";
14578
+ const textKey = `text-${node.id}`;
14579
+ const fontKey = `font-${node.id}`;
14580
+ const colorKey = `color-${node.id}`;
14581
+ const explicitText = customization?.layerTexts?.[node.id];
14582
+ const roleText = role === "secondary" ? customization?.secondaryText : role === "accent" ? customization?.accentText : customization?.primaryText;
14583
+ const resolvedText = explicitText ?? roleText ?? (firstTextNode && node.id === firstTextNode.id ? targetFallbackText : void 0) ?? values[textKey] ?? node.text;
14584
+ if (resolvedText !== void 0) {
14585
+ values[textKey] = resolvedText;
14586
+ }
14587
+ const explicitFont = customization?.layerFontFamilies?.[node.id];
14588
+ const roleFont = role === "secondary" ? customization?.secondaryFontFamily : customization?.primaryFontFamily;
14589
+ const resolvedFont = explicitFont ?? roleFont ?? values[fontKey] ?? node.style?.fontFamily;
14590
+ if (resolvedFont !== void 0) {
14591
+ values[fontKey] = resolvedFont;
14592
+ }
14593
+ const explicitColor = customization?.layerColors?.[node.id];
14594
+ const roleColor = role === "secondary" ? customization?.secondaryColor : customization?.primaryColor;
14595
+ const resolvedColor = explicitColor ?? roleColor ?? values[colorKey] ?? node.style?.textColor;
14596
+ if (resolvedColor !== void 0) {
14597
+ values[colorKey] = resolvedColor;
14598
+ }
14026
14599
  }
14027
14600
  }
14028
14601
  return values;
@@ -14325,6 +14898,24 @@ function compileTextTemplate(artifact, context) {
14325
14898
  const node = findNode(document2.nodes, control.target.nodeId);
14326
14899
  if (node) setPath(node, control.target.propertyPath, resolvedControls[control.id]);
14327
14900
  }
14901
+ if (context.controlValues) {
14902
+ for (const node of document2.nodes || []) {
14903
+ if (node.type === "text") {
14904
+ const textVal = context.controlValues[`text-${node.id}`];
14905
+ if (typeof textVal === "string") {
14906
+ node.text = textVal;
14907
+ }
14908
+ const fontVal = context.controlValues[`font-${node.id}`];
14909
+ if (typeof fontVal === "string") {
14910
+ node.style = { ...node.style, fontFamily: fontVal };
14911
+ }
14912
+ const colorVal = context.controlValues[`color-${node.id}`];
14913
+ if (typeof colorVal === "string") {
14914
+ node.style = { ...node.style, textColor: colorVal };
14915
+ }
14916
+ }
14917
+ }
14918
+ }
14328
14919
  const time = mapTime(context.time, artifact, context.clipDuration);
14329
14920
  const flexPositions = /* @__PURE__ */ new Map();
14330
14921
  const containers = (document2.nodes || []).filter((n) => n.type === "container");