@orangecharts/wrun-chart-host 0.9.0 → 0.10.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.
Files changed (170) hide show
  1. package/README.md +1 -0
  2. package/dist/constants/feature-flags.constants.d.ts +6 -1
  3. package/dist/constants/feature-flags.constants.js +67 -24
  4. package/dist/constants/opra-compliance.constants.d.ts +3 -2
  5. package/dist/constants/opra-compliance.constants.js +3 -2
  6. package/dist/constants/scriptEditor/builtin-script-snippets.d.ts +26 -0
  7. package/dist/constants/scriptEditor/builtin-script-snippets.js +6 -0
  8. package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.d.ts +15 -0
  9. package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.js +17 -0
  10. package/dist/constants/venue-presets.constants.d.ts +20 -20
  11. package/dist/constants/venue-presets.constants.js +24 -26
  12. package/dist/host-env.d.ts +29 -5
  13. package/dist/host-env.js +6 -0
  14. package/dist/host-ports.types.d.ts +69 -15
  15. package/dist/index.d.ts +13 -0
  16. package/dist/index.js +13 -0
  17. package/dist/interfaces/kscript-diagnostics.interface.d.ts +6 -0
  18. package/dist/interfaces/replay.interface.d.ts +8 -0
  19. package/dist/interfaces/wrun-runtime.interface.d.ts +18 -2
  20. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +41 -4
  21. package/dist/kscript-data/controls/live-trades-merge.util.js +52 -7
  22. package/dist/kscript-data/controls/live-trades-order-gate.util.d.ts +56 -0
  23. package/dist/kscript-data/controls/live-trades-order-gate.util.js +107 -0
  24. package/dist/market-data/billing.interface.d.ts +95 -31
  25. package/dist/market-data/billing.interface.js +36 -5
  26. package/dist/market-data/venue.d.ts +88 -6
  27. package/dist/market-data/venues/cme.contract.copy.json +66 -0
  28. package/dist/market-data/venues/cme.d.ts +126 -0
  29. package/dist/market-data/venues/cme.js +133 -0
  30. package/dist/market-data/venues/index.d.ts +162 -5
  31. package/dist/market-data/venues/index.js +48 -6
  32. package/dist/settings-templates/index.js +7 -3
  33. package/dist/settings-templates/indicator-fields.d.ts +5 -4
  34. package/dist/settings-templates/indicator-fields.js +45 -6
  35. package/dist/settings-templates/tool-rules.d.ts +27 -17
  36. package/dist/settings-templates/tool-rules.js +27 -11
  37. package/dist/settings-templates/tool-tables.generated.js +91 -31
  38. package/dist/utility/chart/book-live-bucket.util.d.ts +15 -0
  39. package/dist/utility/chart/book-live-bucket.util.js +47 -0
  40. package/dist/utility/chart/index-mode-admission.util.js +15 -2
  41. package/dist/utility/chart/kscript-drawing-safe-area.util.d.ts +35 -11
  42. package/dist/utility/chart/kscript-drawing-safe-area.util.js +145 -35
  43. package/dist/utility/chart/kscript-live-coalesce.util.d.ts +7 -2
  44. package/dist/utility/chart/kscript-live-coalesce.util.js +9 -3
  45. package/dist/utility/chart/kscript-provenance-keys.util.js +6 -0
  46. package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +3 -1
  47. package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +32 -2
  48. package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +45 -0
  49. package/dist/utility/chart/kscript-venue-policy.util.d.ts +54 -35
  50. package/dist/utility/chart/kscript-venue-policy.util.js +78 -42
  51. package/dist/utility/chart/market-session-schedule.util.d.ts +10 -0
  52. package/dist/utility/chart/market-session-schedule.util.js +16 -0
  53. package/dist/utility/chart/opra-read-access.leaf.d.ts +5 -3
  54. package/dist/utility/chart/opra-read-access.leaf.js +5 -3
  55. package/dist/utility/chart/rth-session.util.d.ts +3 -2
  56. package/dist/utility/chart/rth-session.util.js +2 -1
  57. package/dist/utility/chart/window-geometry.leaf.d.ts +8 -0
  58. package/dist/utility/chart/window-geometry.leaf.js +22 -6
  59. package/dist/utility/chart/wrun-run-result.util.d.ts +12 -0
  60. package/dist/utility/chart/wrun-run-result.util.js +141 -6
  61. package/dist/utility/options/option-bar-anchor.util.d.ts +145 -0
  62. package/dist/utility/options/option-bar-anchor.util.js +340 -0
  63. package/dist/utility/options/option-venue.util.d.ts +18 -0
  64. package/dist/utility/options/option-venue.util.js +27 -0
  65. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +2 -0
  66. package/dist/utility/wrun/derived-roots.util.d.ts +213 -0
  67. package/dist/utility/wrun/derived-roots.util.js +471 -0
  68. package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.d.ts +41 -6
  69. package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.js +89 -19
  70. package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.d.ts +9 -4
  71. package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.js +47 -6
  72. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -2
  73. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -2
  74. package/dist/utility/wrun/sources/lanes/option_daily.js +5 -2
  75. package/dist/utility/wrun/sources/lanes/options_flow.js +5 -2
  76. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +64 -19
  77. package/dist/utility/wrun/sources/opra-option-lanes.util.js +105 -35
  78. package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +2 -1
  79. package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +2 -1
  80. package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +3 -0
  81. package/dist/utility/wrun/sources/row-lanes/option_prints.js +19 -4
  82. package/dist/utility/wrun/sources/row-lanes/option_strike_flow.js +17 -4
  83. package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +52 -13
  84. package/dist/utility/wrun/sources/row-lanes/option_strikes.js +88 -19
  85. package/dist/utility/wrun/sources/row-lanes/option_surface.js +2 -1
  86. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -0
  87. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +24 -9
  88. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +39 -10
  89. package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.d.ts +64 -0
  90. package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.js +89 -0
  91. package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +15 -3
  92. package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +22 -3
  93. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +31 -0
  94. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +174 -13
  95. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +685 -27
  96. package/dist/utility/wrun/wrun-builtin-twin.util.d.ts +12 -0
  97. package/dist/utility/wrun/wrun-builtin-twin.util.js +21 -0
  98. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +53 -12
  99. package/dist/utility/wrun/wrun-chart-market-facts.util.js +101 -53
  100. package/dist/utility/wrun/wrun-download-meter.util.d.ts +15 -0
  101. package/dist/utility/wrun/wrun-download-meter.util.js +14 -2
  102. package/dist/utility/wrun/wrun-download-plan.util.d.ts +99 -0
  103. package/dist/utility/wrun/wrun-download-plan.util.js +118 -0
  104. package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +11 -3
  105. package/dist/utility/wrun/wrun-draft-legend-note.util.js +26 -4
  106. package/dist/utility/wrun/wrun-frames.d.ts +27 -6
  107. package/dist/utility/wrun/wrun-frames.js +73 -10
  108. package/dist/utility/wrun/wrun-hosted-wire.util.d.ts +7 -1
  109. package/dist/utility/wrun/wrun-hosted-wire.util.js +12 -2
  110. package/dist/utility/wrun/wrun-hud-looks.util.d.ts +18 -4
  111. package/dist/utility/wrun/wrun-hud-looks.util.js +45 -13
  112. package/dist/utility/wrun/wrun-latest-snapshot.d.ts +11 -0
  113. package/dist/utility/wrun/wrun-live-intake.util.d.ts +13 -7
  114. package/dist/utility/wrun/wrun-live-intake.util.js +82 -29
  115. package/dist/utility/wrun/wrun-live-tick.util.d.ts +4 -0
  116. package/dist/utility/wrun/wrun-live-tick.util.js +158 -14
  117. package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +49 -10
  118. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +65 -5
  119. package/dist/utility/wrun/wrun-market-size-defaults.util.js +31 -5
  120. package/dist/utility/wrun/wrun-opra-lane.util.d.ts +17 -4
  121. package/dist/utility/wrun/wrun-opra-lane.util.js +6 -4
  122. package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.d.ts +31 -0
  123. package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.js +119 -0
  124. package/dist/utility/wrun/wrun-option-strike-flow-lane.util.d.ts +23 -6
  125. package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +47 -11
  126. package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +86 -19
  127. package/dist/utility/wrun/wrun-option-strike-flow.util.js +168 -62
  128. package/dist/utility/wrun/wrun-option-views.util.d.ts +47 -13
  129. package/dist/utility/wrun/wrun-option-views.util.js +98 -26
  130. package/dist/utility/wrun/wrun-output-style.util.d.ts +6 -2
  131. package/dist/utility/wrun/wrun-output-style.util.js +20 -2
  132. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +17 -0
  133. package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +10 -1
  134. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +52 -4
  135. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +100 -31
  136. package/dist/utility/wrun/wrun-overlay-run.util.js +733 -114
  137. package/dist/utility/wrun/wrun-pane-format.util.d.ts +2 -1
  138. package/dist/utility/wrun/wrun-pane-format.util.js +7 -3
  139. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +9 -0
  140. package/dist/utility/wrun/wrun-panel-mount.util.js +63 -13
  141. package/dist/utility/wrun/wrun-panel-style.util.d.ts +10 -9
  142. package/dist/utility/wrun/wrun-panel-style.util.js +58 -9
  143. package/dist/utility/wrun/wrun-param-map.util.d.ts +14 -11
  144. package/dist/utility/wrun/wrun-param-map.util.js +10 -5
  145. package/dist/utility/wrun/wrun-param-values.util.d.ts +14 -4
  146. package/dist/utility/wrun/wrun-param-values.util.js +4 -0
  147. package/dist/utility/wrun/wrun-pin-spelling.util.js +12 -11
  148. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +50 -0
  149. package/dist/utility/wrun/wrun-refusal-surface.util.js +68 -0
  150. package/dist/utility/wrun/wrun-refused-latest.util.d.ts +10 -0
  151. package/dist/utility/wrun/wrun-refused-latest.util.js +12 -0
  152. package/dist/utility/wrun/wrun-row-source.d.ts +11 -0
  153. package/dist/utility/wrun/wrun-run-interval.util.d.ts +4 -2
  154. package/dist/utility/wrun/wrun-run-interval.util.js +9 -6
  155. package/dist/utility/wrun/wrun-script-inputs.util.d.ts +45 -1
  156. package/dist/utility/wrun/wrun-script-inputs.util.js +112 -4
  157. package/dist/utility/wrun/wrun-setting-words.util.d.ts +7 -3
  158. package/dist/utility/wrun/wrun-setting-words.util.js +13 -5
  159. package/dist/utility/wrun/wrun-socket-row-source.d.ts +27 -2
  160. package/dist/utility/wrun/wrun-socket-row-source.js +113 -8
  161. package/dist/utility/wrun/wrun-source-rows.util.d.ts +5 -1
  162. package/dist/utility/wrun/wrun-source-rows.util.js +16 -3
  163. package/dist/utility/wrun/wrun-style-words.util.js +6 -4
  164. package/dist/utility/wrun/wrun-table-chrome.util.d.ts +3 -2
  165. package/dist/utility/wrun/wrun-table-chrome.util.js +19 -11
  166. package/dist/utility/wrun/wrun-tape-per-order.util.d.ts +2 -0
  167. package/dist/utility/wrun/wrun-tape-per-order.util.js +26 -0
  168. package/dist/utils/replay/replay-buffer-math.d.ts +53 -2
  169. package/dist/utils/replay/replay-buffer-math.js +227 -20
  170. package/package.json +11 -11
@@ -7,11 +7,12 @@
7
7
  * Moved here from the web app, content unchanged: the persistence list settingsToSave and its type lists
8
8
  * (src/constants/indicator.constants.ts), the instance keys and the template meta allowlists
9
9
  * (src/utility/chart/indicator-defaults-apply.util.ts), the volatile keys (src/utility/chart/settings-templates.util.ts).
10
- * Three changes are decisions of the plan, not drift: `runMode` is row-only instance state (A11); seven meta
10
+ * Three changes are decisions of the plan, not drift: `runMode` is row-only instance state (A11); six meta
11
11
  * preferences a settings dialog writes are template-lane (decision 6: the Bitfinex position side, the Put/Call mode,
12
- * the Turnover sides and period, the Aggregated Volume margin category, the Sector Volume asset type and the Insurance
13
- * fund group), the ETF pick stays identity; and "all" is a declared value (`visibleIntervalsMs: []` is All intervals,
14
- * `maxNakedLevels: 0` is all levels, decision 3), which a capture writes where the engine holds none.
12
+ * the Turnover sides and period, the Sector Volume asset type and the Insurance fund group; the Aggregated Volume
13
+ * margin category was a seventh until its row, which nothing read, left on 2026-10-25), the ETF pick stays identity;
14
+ * and "all" is a declared value (`visibleIntervalsMs: []` is All intervals, `maxNakedLevels: 0` is all levels,
15
+ * decision 3), which a capture writes where the engine holds none.
15
16
  *
16
17
  * A row is `[key, field]`: the field's owner (the settings bag when it names none, else `meta`, the bag's `meta`
17
18
  * object), its lanes, whether it is instance state (which instance this is: never written by a template or a saved
@@ -761,6 +762,19 @@ export const INDICATOR_COMMON_FIELDS = [
761
762
  ['showValueAreaBand', PREFERENCE],
762
763
  ['candleMarker', PREFERENCE],
763
764
  ['footprintColumns', PREFERENCE],
765
+ // The Aggregated Volume Footprint's Trim empty tail rows (settings no-op audit, 2026-10-25): its template stamps
766
+ // the key on, and a row the user switched off must keep it off through a reload.
767
+ ['trimZeroTails', PREFERENCE],
768
+ // A window's projection stamps (window-cell.util, 2026-10-23), declared after the fixture in their own change: the
769
+ // chart Indicator a window door copied the owner from (`{ overlayId, chartIndex }`), and the mark of a window that
770
+ // shows its tables alone (the window an add opens beside its chart Indicator). The row keeps both (a reload keeps
771
+ // the window a projection); a template or saved default never carries them onto another instance.
772
+ ['wrunWindowSourceId', INSTANCE],
773
+ ['wrunWindowTablesOnly', INSTANCE],
774
+ // The Pane page's Scale mode (PaneSettingsComponent, settings audit 2026-10-25): false is Manual, absent is Auto
775
+ // (the restore reads `settings.isAutoScale ?? true`). Without the row every save dropped it, so Manual read Auto
776
+ // after a reload.
777
+ ['isAutoScale', PREFERENCE],
764
778
  ];
765
779
  /**
766
780
  * FEED (live series, docs/features/indicators/feeds.md): the rest of the C4 record beside `address`, `scope` and
@@ -799,6 +813,31 @@ const METRIC_PROFILE_FIELDS = [
799
813
  * generic, and declared for every overlay it would start persisting other natives' engine keys.
800
814
  */
801
815
  const SYMBOL_COMPARISON_FIELDS = [['label', INSTANCE]];
816
+ /**
817
+ * The Options Heatmap's node layer and cell look: Node levels, Node %, Node change, Style (Volumetric beads or Classic
818
+ * tiles) and Low nodes, preferences its settings dialog writes. Off every list, each save dropped them and a reload read
819
+ * each one's default. Scoped to the type, because the names are generic: declared for every overlay they would start
820
+ * persisting other natives' engine keys (the book heatmaps keep their own `cellShape` in `meta`). The data source
821
+ * (`dataSource`, the internal Server strike rows switch, OPTIONS-HEATMAP-STRIKE-SURFACE plan 2.4) is kept the same
822
+ * way: an explicit choice survives a reload, and an overlay that never chose keeps no value, so it reads the default.
823
+ */
824
+ const OPTIONS_HEATMAP_FIELDS = [
825
+ ['showNodes', PREFERENCE],
826
+ ['nodePct', PREFERENCE],
827
+ ['velocityWindow', PREFERENCE],
828
+ ['cellShape', PREFERENCE],
829
+ ['lowNodes', PREFERENCE],
830
+ ['dataSource', PREFERENCE],
831
+ ];
832
+ /**
833
+ * The Options GEX profile's Top node pill (its settings dialog's Key levels rows), scoped like the heatmap's above, and
834
+ * the look of a level's axis tag (`axisTagLook`, 'quiet' | 'words', EM-LOOK 2026-10-26), unset until the user picks one.
835
+ */
836
+ const OPTIONS_GEX_FIELDS = [
837
+ ['showTopNode', PREFERENCE],
838
+ ['topNodeColor', PREFERENCE],
839
+ ['axisTagLook', PREFERENCE],
840
+ ];
802
841
  /** The VRVP own-window scope rows (see INDICATOR_TYPE_FIELDS below). */
803
842
  const VISIBLE_RANGE_PROFILE_FIELDS = [
804
843
  ['profileWindow', PREFERENCE],
@@ -827,6 +866,8 @@ export const INDICATOR_TYPE_FIELDS = {
827
866
  AGGREGATED_VISIBLE_RANGE_VOLUME_PROFILE: VISIBLE_RANGE_PROFILE_FIELDS,
828
867
  OPEN_INTEREST_PROFILE: METRIC_PROFILE_FIELDS,
829
868
  LIQUIDATION_PROFILE: METRIC_PROFILE_FIELDS,
869
+ OPTIONS_HEATMAP: OPTIONS_HEATMAP_FIELDS,
870
+ OPTIONS_GEX: OPTIONS_GEX_FIELDS,
830
871
  SYMBOL_COMPARISON_SCALE: SYMBOL_COMPARISON_FIELDS,
831
872
  SYMBOL_COMPARISON_PCT_SCALE: SYMBOL_COMPARISON_FIELDS,
832
873
  SYMBOL_COMPARISON_PANE: SYMBOL_COMPARISON_FIELDS,
@@ -842,8 +883,6 @@ export const INDICATOR_TYPE_FIELDS = {
842
883
  ['sides', META_PREFERENCE],
843
884
  ['period', META_PREFERENCE],
844
885
  ],
845
- /** The margin category (AggregatedVolumeSettings.vue `meta.categoryTypes`). */
846
- AGGREGATED_VOLUME: [['categoryTypes', META_PREFERENCE]],
847
886
  /**
848
887
  * The asset type (SectorVolumeSettings.vue `meta.assetType`) is a preference. The exchanges are derived: the asset
849
888
  * type handler writes its table's entry, but a fresh instance stamps the chart's own venue (initializeOverlay), so a
@@ -5,8 +5,8 @@
5
5
  *
6
6
  * - TOOL_DEFAULT_STYLE[type]: the registry defaultStyle, then the held extras below with their declared defaults;
7
7
  * - TOOL_TEMPLATE_KEYS[type]: those keys, then the text of a type whose text is a label (the text rule, textRoleOf),
8
- * then `visibleIntervalsMs` unless the type is interval-bound, never an instance key or a cached compute key
9
- * (`settingsKeysToStrip`).
8
+ * then `visibleIntervalsMs` unless the type is interval-bound, never an instance key (the type's own too,
9
+ * `instanceKeysByType`) or a cached compute key (`settingsKeysToStrip`).
10
10
  *
11
11
  * The text rule is the hosts' too: a host's text box reads it through toolTextRole (settings-templates/index.ts), so
12
12
  * the box and the template tables give every type one answer.
@@ -22,6 +22,20 @@ export declare const TOOL_TEMPLATE_RULES: {
22
22
  * a type whose text is a label (the text rule, `text`) carries it in its template.
23
23
  */
24
24
  readonly instanceKeys: readonly ["isLocked", "isHidden", "zPriority", "name", "text"];
25
+ /**
26
+ * Values the engine computes for one drawing and writes into its settings, by type (titan's tool classes): a
27
+ * GhostFeed seeds its average high-low and variance from the candles of the symbol it is drawn on, in that market's
28
+ * price units, and skips the seed while the drawing holds an averageHL (ghostFeed.ts seedInputs). The registry lists
29
+ * them at 0, the engine's "not seeded yet", so a new drawing seeds its own. They are instance state like
30
+ * `instanceKeys`: no template carries or writes them, Save as default and the style memory keep neither (web
31
+ * src/store/tool-style-memory.ts keeps the default lane), and a template applied to a drawing leaves its own. Until
32
+ * 2026-10-25 they rode both lanes, so a GhostFeed drawn after one on BTC drew BTC's volatility on any symbol.
33
+ * tests/packages/wrun-chart-host/settings-templates/tool-tables.engine-reads.spec.ts fails on a key the engine writes
34
+ * that a lane carries unless this list names it or the spec waives it as a pick the user made.
35
+ */
36
+ readonly instanceKeysByType: {
37
+ readonly GhostFeed: readonly ["averageHL", "variance"];
38
+ };
25
39
  /**
26
40
  * The text rule: which drawing types hold a free text (`key`), and what that text is. It is the one rule for every
27
41
  * surface: the template tables (the generator) and the settings panel's text box (web
@@ -54,8 +68,11 @@ export declare const TOOL_TEMPLATE_RULES: {
54
68
  readonly intervalBoundTypes: readonly ["GhostFeed", "BarPattern", "GannSquareFixed"];
55
69
  /**
56
70
  * Keys the engine reads but the registry defaultStyle does not list (web src/components/objects/tool-prop-sections.ts
57
- * HELD_EXTRA_FIELDS: the price label flag of a horizontal line or ray, a position's line width and style), each with
58
- * the default the engine seeds (titan's tool classes), so a template, a seed and Save as default see every key.
71
+ * HELD_EXTRA_FIELDS: the price label flag of a horizontal line or ray), each with the default the engine seeds
72
+ * (titan's tool classes), so a template, a seed and Save as default see every key. A key belongs in the registry:
73
+ * an extra stays here only while the registry cannot carry it as the editors show it (the price label flag is the
74
+ * `highlight` field under a per-type label). A position's line width and style moved into the registry with
75
+ * chart-schema 0.5.1, and the generator refuses an extra the registry lists.
59
76
  */
60
77
  readonly heldExtras: {
61
78
  readonly HorizontalLine: {
@@ -64,24 +81,17 @@ export declare const TOOL_TEMPLATE_RULES: {
64
81
  readonly HorizontalRay: {
65
82
  readonly highlight: true;
66
83
  };
67
- readonly LongPosition: {
68
- readonly lineWidth: 2;
69
- readonly lineStyle: "solid";
70
- };
71
- readonly ShortPosition: {
72
- readonly lineWidth: 2;
73
- readonly lineStyle: "solid";
74
- };
75
84
  };
76
85
  /**
77
- * Style keys Save as default never keeps (web src/store/tool-style-memory.ts NON_STYLE_KEYS): `rotation` is one
78
- * placed drawing's geometry, and the position tools' financial inputs would carry one account's numbers into the
79
- * next drawing. A template still carries them: it is applied on purpose, onto one drawing.
86
+ * Style keys Save as default never keeps, and so neither does web's style memory (src/store/tool-style-memory.ts
87
+ * keeps the default lane): `rotation` is one placed drawing's geometry, and the position tools' financial inputs
88
+ * would carry one account's numbers into the next drawing. A template still carries them: it is applied on purpose,
89
+ * onto one drawing.
80
90
  */
81
91
  readonly defaultExcludedKeys: readonly ["rotation", "accountSize", "risk", "riskDisplayMode", "lotSize"];
82
92
  /**
83
- * Types whose Save as default keeps nothing (web src/store/tool-style-memory.ts NON_MEMORY_TOOL_TYPES): an Image is
84
- * placed by a dialog that owns its source and opacity at confirm time.
93
+ * Types whose Save as default keeps nothing, and so neither does web's style memory: an Image is placed by a dialog
94
+ * that owns its source and opacity at confirm time.
85
95
  */
86
96
  readonly defaultExcludedTypes: readonly ["Image"];
87
97
  };
@@ -5,8 +5,8 @@
5
5
  *
6
6
  * - TOOL_DEFAULT_STYLE[type]: the registry defaultStyle, then the held extras below with their declared defaults;
7
7
  * - TOOL_TEMPLATE_KEYS[type]: those keys, then the text of a type whose text is a label (the text rule, textRoleOf),
8
- * then `visibleIntervalsMs` unless the type is interval-bound, never an instance key or a cached compute key
9
- * (`settingsKeysToStrip`).
8
+ * then `visibleIntervalsMs` unless the type is interval-bound, never an instance key (the type's own too,
9
+ * `instanceKeysByType`) or a cached compute key (`settingsKeysToStrip`).
10
10
  *
11
11
  * The text rule is the hosts' too: a host's text box reads it through toolTextRole (settings-templates/index.ts), so
12
12
  * the box and the template tables give every type one answer.
@@ -22,6 +22,20 @@ export const TOOL_TEMPLATE_RULES = {
22
22
  * a type whose text is a label (the text rule, `text`) carries it in its template.
23
23
  */
24
24
  instanceKeys: ['isLocked', 'isHidden', 'zPriority', 'name', 'text'],
25
+ /**
26
+ * Values the engine computes for one drawing and writes into its settings, by type (titan's tool classes): a
27
+ * GhostFeed seeds its average high-low and variance from the candles of the symbol it is drawn on, in that market's
28
+ * price units, and skips the seed while the drawing holds an averageHL (ghostFeed.ts seedInputs). The registry lists
29
+ * them at 0, the engine's "not seeded yet", so a new drawing seeds its own. They are instance state like
30
+ * `instanceKeys`: no template carries or writes them, Save as default and the style memory keep neither (web
31
+ * src/store/tool-style-memory.ts keeps the default lane), and a template applied to a drawing leaves its own. Until
32
+ * 2026-10-25 they rode both lanes, so a GhostFeed drawn after one on BTC drew BTC's volatility on any symbol.
33
+ * tests/packages/wrun-chart-host/settings-templates/tool-tables.engine-reads.spec.ts fails on a key the engine writes
34
+ * that a lane carries unless this list names it or the spec waives it as a pick the user made.
35
+ */
36
+ instanceKeysByType: {
37
+ GhostFeed: ['averageHL', 'variance'],
38
+ },
25
39
  /**
26
40
  * The text rule: which drawing types hold a free text (`key`), and what that text is. It is the one rule for every
27
41
  * surface: the template tables (the generator) and the settings panel's text box (web
@@ -54,24 +68,26 @@ export const TOOL_TEMPLATE_RULES = {
54
68
  intervalBoundTypes: ['GhostFeed', 'BarPattern', 'GannSquareFixed'],
55
69
  /**
56
70
  * Keys the engine reads but the registry defaultStyle does not list (web src/components/objects/tool-prop-sections.ts
57
- * HELD_EXTRA_FIELDS: the price label flag of a horizontal line or ray, a position's line width and style), each with
58
- * the default the engine seeds (titan's tool classes), so a template, a seed and Save as default see every key.
71
+ * HELD_EXTRA_FIELDS: the price label flag of a horizontal line or ray), each with the default the engine seeds
72
+ * (titan's tool classes), so a template, a seed and Save as default see every key. A key belongs in the registry:
73
+ * an extra stays here only while the registry cannot carry it as the editors show it (the price label flag is the
74
+ * `highlight` field under a per-type label). A position's line width and style moved into the registry with
75
+ * chart-schema 0.5.1, and the generator refuses an extra the registry lists.
59
76
  */
60
77
  heldExtras: {
61
78
  HorizontalLine: { highlight: true },
62
79
  HorizontalRay: { highlight: true },
63
- LongPosition: { lineWidth: 2, lineStyle: 'solid' },
64
- ShortPosition: { lineWidth: 2, lineStyle: 'solid' },
65
80
  },
66
81
  /**
67
- * Style keys Save as default never keeps (web src/store/tool-style-memory.ts NON_STYLE_KEYS): `rotation` is one
68
- * placed drawing's geometry, and the position tools' financial inputs would carry one account's numbers into the
69
- * next drawing. A template still carries them: it is applied on purpose, onto one drawing.
82
+ * Style keys Save as default never keeps, and so neither does web's style memory (src/store/tool-style-memory.ts
83
+ * keeps the default lane): `rotation` is one placed drawing's geometry, and the position tools' financial inputs
84
+ * would carry one account's numbers into the next drawing. A template still carries them: it is applied on purpose,
85
+ * onto one drawing.
70
86
  */
71
87
  defaultExcludedKeys: ['rotation', 'accountSize', 'risk', 'riskDisplayMode', 'lotSize'],
72
88
  /**
73
- * Types whose Save as default keeps nothing (web src/store/tool-style-memory.ts NON_MEMORY_TOOL_TYPES): an Image is
74
- * placed by a dialog that owns its source and opacity at confirm time.
89
+ * Types whose Save as default keeps nothing, and so neither does web's style memory: an Image is placed by a dialog
90
+ * that owns its source and opacity at confirm time.
75
91
  */
76
92
  defaultExcludedTypes: ['Image'],
77
93
  };
@@ -9,15 +9,24 @@ export const TOOL_DEFAULT_STYLE = {
9
9
  lineWidth: 2,
10
10
  lineStyle: 'solid',
11
11
  fillBackground: true,
12
+ fillColor: '#4DA3FF',
12
13
  backgroundOpacity: 10,
13
14
  showLabels: true,
14
15
  },
15
- AnchoredNote: { fontColor: '#4DA3FF', fontFamily: 'Poppins', fontSize: 24, fontStyle: 'normal', color: '#4DA3FF' },
16
+ AnchoredNote: {
17
+ fontColor: '#4DA3FF',
18
+ fontFamily: 'Poppins',
19
+ fontSize: 24,
20
+ fontStyle: 'normal',
21
+ textPosition: 'center',
22
+ color: '#4DA3FF',
23
+ },
16
24
  AnchoredText: {
17
25
  fontColor: '#4DA3FF',
18
26
  fontFamily: 'Poppins',
19
27
  fontSize: 24,
20
28
  fontStyle: 'normal',
29
+ textPosition: 'center',
21
30
  color: '#4DA3FF',
22
31
  fillBackground: false,
23
32
  fillColor: '#F7D774',
@@ -77,7 +86,14 @@ export const TOOL_DEFAULT_STYLE = {
77
86
  ArrowMarker: { color: '#1E90FF80', lineWidth: 2, lineStyle: 'solid' },
78
87
  BarPattern: { color: '#4DA3FF', patternMode: 'lineClose', transparency: 0, mirrored: false, flipped: false },
79
88
  Burj: { color: '#FFBED3', highlight: false, lineWidth: 2 },
80
- Callout: { fontColor: '#4DA3FF', fontFamily: 'Poppins', fontSize: 24, fontStyle: 'normal', color: '#4DA3FF' },
89
+ Callout: {
90
+ fontColor: '#4DA3FF',
91
+ fontFamily: 'Poppins',
92
+ fontSize: 24,
93
+ fontStyle: 'normal',
94
+ textPosition: 'center',
95
+ color: '#4DA3FF',
96
+ },
81
97
  Circle: {
82
98
  color: '#4DA3FF',
83
99
  borderColor: '#4DA3FF',
@@ -102,26 +118,28 @@ export const TOOL_DEFAULT_STYLE = {
102
118
  lineWidth: 2,
103
119
  lineStyle: 'solid',
104
120
  fillBackground: true,
121
+ fillColor: '#4DA3FF',
105
122
  backgroundOpacity: 10,
106
123
  showLabels: true,
107
124
  },
108
- DatePriceRange: { bullishColor: '#00C2A8', bearishColor: '#ff3232' },
109
- DateRange: { color: '#00C2A8' },
110
- DisjointChannel: { color: '#4DA3FF', lineWidth: 2, lineStyle: 'solid', fillBackground: true, backgroundOpacity: 10 },
111
- Divergence: { bullishColor: '#60F09A', bearishColor: '#FF6E5F', highlight: false, lineWidth: 2 },
112
- DoubleCurve: {
125
+ DatePriceRange: { bullishColor: '#00C2A8', bearishColor: '#ff3232', lineWidth: 2, lineStyle: 'solid' },
126
+ DateRange: { color: '#00C2A8', lineWidth: 2, lineStyle: 'solid' },
127
+ DisjointChannel: {
113
128
  color: '#4DA3FF',
114
- borderColor: '#4DA3FF',
115
129
  lineWidth: 2,
116
130
  lineStyle: 'solid',
117
131
  fillBackground: true,
118
- backgroundOpacity: 15,
132
+ fillColor: '#4DA3FF',
133
+ backgroundOpacity: 10,
119
134
  },
135
+ Divergence: { bullishColor: '#60F09A', bearishColor: '#FF6E5F', highlight: false, lineWidth: 2 },
136
+ DoubleCurve: { borderColor: '#4DA3FF', lineWidth: 2, lineStyle: 'solid' },
120
137
  ElliottCorrection: {
121
138
  color: '#4DA3FF',
122
139
  lineWidth: 2,
123
140
  lineStyle: 'solid',
124
141
  fillBackground: false,
142
+ fillColor: '#4DA3FF',
125
143
  backgroundOpacity: 10,
126
144
  showLabels: true,
127
145
  },
@@ -130,6 +148,7 @@ export const TOOL_DEFAULT_STYLE = {
130
148
  lineWidth: 2,
131
149
  lineStyle: 'solid',
132
150
  fillBackground: false,
151
+ fillColor: '#4DA3FF',
133
152
  backgroundOpacity: 10,
134
153
  showLabels: true,
135
154
  },
@@ -138,6 +157,7 @@ export const TOOL_DEFAULT_STYLE = {
138
157
  lineWidth: 2,
139
158
  lineStyle: 'solid',
140
159
  fillBackground: false,
160
+ fillColor: '#4DA3FF',
141
161
  backgroundOpacity: 10,
142
162
  showLabels: true,
143
163
  },
@@ -146,6 +166,7 @@ export const TOOL_DEFAULT_STYLE = {
146
166
  lineWidth: 2,
147
167
  lineStyle: 'solid',
148
168
  fillBackground: false,
169
+ fillColor: '#4DA3FF',
149
170
  backgroundOpacity: 10,
150
171
  showLabels: true,
151
172
  },
@@ -154,6 +175,7 @@ export const TOOL_DEFAULT_STYLE = {
154
175
  lineWidth: 2,
155
176
  lineStyle: 'solid',
156
177
  fillBackground: false,
178
+ fillColor: '#4DA3FF',
157
179
  backgroundOpacity: 10,
158
180
  showLabels: true,
159
181
  },
@@ -419,7 +441,14 @@ export const TOOL_DEFAULT_STYLE = {
419
441
  },
420
442
  FixedRangeVolumeProfile: {},
421
443
  FlagMark: { color: '#4DA3FF' },
422
- FlatTopBottom: { color: '#4DA3FF', lineWidth: 2, lineStyle: 'solid', fillBackground: true, backgroundOpacity: 10 },
444
+ FlatTopBottom: {
445
+ color: '#4DA3FF',
446
+ lineWidth: 2,
447
+ lineStyle: 'solid',
448
+ fillBackground: true,
449
+ fillColor: '#4DA3FF',
450
+ backgroundOpacity: 10,
451
+ },
423
452
  Flow: { color: '#044391', highlight: false, lineWidth: 2 },
424
453
  Fork: { color: '#5AA0FF', highlight: false, lineWidth: 2 },
425
454
  GannBox: {
@@ -584,10 +613,11 @@ export const TOOL_DEFAULT_STYLE = {
584
613
  lineWidth: 2,
585
614
  lineStyle: 'solid',
586
615
  fillBackground: true,
616
+ fillColor: '#4DA3FF',
587
617
  backgroundOpacity: 10,
588
618
  showLabels: true,
589
619
  },
590
- Highlighter: { color: 'rgba(242, 201, 76, 0.4)', lineWidth: 14, smoothing: 10 },
620
+ Highlighter: { color: 'rgba(242, 201, 76, 0.4)', lineStyle: 'solid', lineWidth: 14, smoothing: 10 },
591
621
  HorizontalLine: {
592
622
  color: '#4DA3FF',
593
623
  fontColor: '#4DA3FF',
@@ -689,7 +719,14 @@ export const TOOL_DEFAULT_STYLE = {
689
719
  ],
690
720
  },
691
721
  Momentum: { color: '#00FF7F', highlight: true, lineWidth: 2 },
692
- Note: { fontColor: '#4DA3FF', fontFamily: 'Poppins', fontSize: 24, fontStyle: 'normal', color: '#4DA3FF' },
722
+ Note: {
723
+ fontColor: '#4DA3FF',
724
+ fontFamily: 'Poppins',
725
+ fontSize: 24,
726
+ fontStyle: 'normal',
727
+ textPosition: 'center',
728
+ color: '#4DA3FF',
729
+ },
693
730
  ParallelLine: {
694
731
  color: '#4DA3FF',
695
732
  fontColor: '#4DA3FF',
@@ -701,9 +738,10 @@ export const TOOL_DEFAULT_STYLE = {
701
738
  fontWeight: 400,
702
739
  fontStyle: 'normal',
703
740
  fillBackground: true,
741
+ fillColor: '#4DA3FF26',
704
742
  middleLine: true,
705
743
  },
706
- Path: { color: '#4DA3FF' },
744
+ Path: { color: '#4DA3FF', lineStyle: 'solid', lineWidth: 1.5 },
707
745
  Pencil: { color: '#4DA3FF', lineStyle: 'solid', lineWidth: 2, smoothing: 10 },
708
746
  Pitchfan: {
709
747
  medianColor: '#F23645',
@@ -761,8 +799,8 @@ export const TOOL_DEFAULT_STYLE = {
761
799
  stopColor: 'rgb(245, 39, 78)',
762
800
  },
763
801
  PriceLabel: { color: '#4DA3FF', fontColor: '#FFFFFF', fontSize: 12 },
764
- PriceNote: { color: '#4DA3FF', fontColor: '#FFFFFF', fontSize: 12 },
765
- PriceRange: { bullishColor: '#00C2A8', bearishColor: '#ff3232' },
802
+ PriceNote: { color: '#4DA3FF', fontColor: '#FFFFFF', fontSize: 12, lineWidth: 1.5, lineStyle: 'solid' },
803
+ PriceRange: { bullishColor: '#00C2A8', bearishColor: '#ff3232', lineWidth: 2, lineStyle: 'solid' },
766
804
  Ray: {
767
805
  color: '#4DA3FF',
768
806
  fontColor: '#4DA3FF',
@@ -859,6 +897,7 @@ export const TOOL_DEFAULT_STYLE = {
859
897
  fontFamily: 'Poppins',
860
898
  fontSize: 24,
861
899
  fontStyle: 'normal',
900
+ textPosition: 'center',
862
901
  color: '#4DA3FF',
863
902
  fillBackground: false,
864
903
  fillColor: '#F7D774',
@@ -920,6 +959,7 @@ export const TOOL_DEFAULT_STYLE = {
920
959
  lineWidth: 2,
921
960
  lineStyle: 'solid',
922
961
  fillBackground: true,
962
+ fillColor: '#4DA3FF',
923
963
  backgroundOpacity: 10,
924
964
  showLabels: true,
925
965
  },
@@ -940,6 +980,7 @@ export const TOOL_DEFAULT_STYLE = {
940
980
  lineWidth: 2,
941
981
  lineStyle: 'solid',
942
982
  fillBackground: true,
983
+ fillColor: '#4DA3FF',
943
984
  backgroundOpacity: 10,
944
985
  showLabels: true,
945
986
  },
@@ -950,16 +991,18 @@ export const TOOL_TEMPLATE_KEYS = {
950
991
  'lineWidth',
951
992
  'lineStyle',
952
993
  'fillBackground',
994
+ 'fillColor',
953
995
  'backgroundOpacity',
954
996
  'showLabels',
955
997
  'visibleIntervalsMs',
956
998
  ],
957
- AnchoredNote: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'color', 'visibleIntervalsMs'],
999
+ AnchoredNote: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'textPosition', 'color', 'visibleIntervalsMs'],
958
1000
  AnchoredText: [
959
1001
  'fontColor',
960
1002
  'fontFamily',
961
1003
  'fontSize',
962
1004
  'fontStyle',
1005
+ 'textPosition',
963
1006
  'color',
964
1007
  'fillBackground',
965
1008
  'fillColor',
@@ -1014,7 +1057,7 @@ export const TOOL_TEMPLATE_KEYS = {
1014
1057
  ArrowMarker: ['color', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
1015
1058
  BarPattern: ['color', 'patternMode', 'transparency', 'mirrored', 'flipped'],
1016
1059
  Burj: ['color', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
1017
- Callout: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'color', 'visibleIntervalsMs'],
1060
+ Callout: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'textPosition', 'color', 'visibleIntervalsMs'],
1018
1061
  Circle: [
1019
1062
  'color',
1020
1063
  'borderColor',
@@ -1041,28 +1084,30 @@ export const TOOL_TEMPLATE_KEYS = {
1041
1084
  'lineWidth',
1042
1085
  'lineStyle',
1043
1086
  'fillBackground',
1087
+ 'fillColor',
1044
1088
  'backgroundOpacity',
1045
1089
  'showLabels',
1046
1090
  'visibleIntervalsMs',
1047
1091
  ],
1048
- DatePriceRange: ['bullishColor', 'bearishColor', 'visibleIntervalsMs'],
1049
- DateRange: ['color', 'visibleIntervalsMs'],
1050
- DisjointChannel: ['color', 'lineWidth', 'lineStyle', 'fillBackground', 'backgroundOpacity', 'visibleIntervalsMs'],
1051
- Divergence: ['bullishColor', 'bearishColor', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
1052
- DoubleCurve: [
1092
+ DatePriceRange: ['bullishColor', 'bearishColor', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
1093
+ DateRange: ['color', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
1094
+ DisjointChannel: [
1053
1095
  'color',
1054
- 'borderColor',
1055
1096
  'lineWidth',
1056
1097
  'lineStyle',
1057
1098
  'fillBackground',
1099
+ 'fillColor',
1058
1100
  'backgroundOpacity',
1059
1101
  'visibleIntervalsMs',
1060
1102
  ],
1103
+ Divergence: ['bullishColor', 'bearishColor', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
1104
+ DoubleCurve: ['borderColor', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
1061
1105
  ElliottCorrection: [
1062
1106
  'color',
1063
1107
  'lineWidth',
1064
1108
  'lineStyle',
1065
1109
  'fillBackground',
1110
+ 'fillColor',
1066
1111
  'backgroundOpacity',
1067
1112
  'showLabels',
1068
1113
  'visibleIntervalsMs',
@@ -1072,6 +1117,7 @@ export const TOOL_TEMPLATE_KEYS = {
1072
1117
  'lineWidth',
1073
1118
  'lineStyle',
1074
1119
  'fillBackground',
1120
+ 'fillColor',
1075
1121
  'backgroundOpacity',
1076
1122
  'showLabels',
1077
1123
  'visibleIntervalsMs',
@@ -1081,6 +1127,7 @@ export const TOOL_TEMPLATE_KEYS = {
1081
1127
  'lineWidth',
1082
1128
  'lineStyle',
1083
1129
  'fillBackground',
1130
+ 'fillColor',
1084
1131
  'backgroundOpacity',
1085
1132
  'showLabels',
1086
1133
  'visibleIntervalsMs',
@@ -1090,6 +1137,7 @@ export const TOOL_TEMPLATE_KEYS = {
1090
1137
  'lineWidth',
1091
1138
  'lineStyle',
1092
1139
  'fillBackground',
1140
+ 'fillColor',
1093
1141
  'backgroundOpacity',
1094
1142
  'showLabels',
1095
1143
  'visibleIntervalsMs',
@@ -1099,6 +1147,7 @@ export const TOOL_TEMPLATE_KEYS = {
1099
1147
  'lineWidth',
1100
1148
  'lineStyle',
1101
1149
  'fillBackground',
1150
+ 'fillColor',
1102
1151
  'backgroundOpacity',
1103
1152
  'showLabels',
1104
1153
  'visibleIntervalsMs',
@@ -1277,7 +1326,15 @@ export const TOOL_TEMPLATE_KEYS = {
1277
1326
  'levelLineStyle',
1278
1327
  ],
1279
1328
  FlagMark: ['color', 'visibleIntervalsMs'],
1280
- FlatTopBottom: ['color', 'lineWidth', 'lineStyle', 'fillBackground', 'backgroundOpacity', 'visibleIntervalsMs'],
1329
+ FlatTopBottom: [
1330
+ 'color',
1331
+ 'lineWidth',
1332
+ 'lineStyle',
1333
+ 'fillBackground',
1334
+ 'fillColor',
1335
+ 'backgroundOpacity',
1336
+ 'visibleIntervalsMs',
1337
+ ],
1281
1338
  Flow: ['color', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
1282
1339
  Fork: ['color', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
1283
1340
  GannBox: [
@@ -1327,8 +1384,6 @@ export const TOOL_TEMPLATE_KEYS = {
1327
1384
  ],
1328
1385
  GhostFeed: [
1329
1386
  'followChartTheme',
1330
- 'averageHL',
1331
- 'variance',
1332
1387
  'transparency',
1333
1388
  'candleUpColor',
1334
1389
  'candleDownColor',
@@ -1343,11 +1398,12 @@ export const TOOL_TEMPLATE_KEYS = {
1343
1398
  'lineWidth',
1344
1399
  'lineStyle',
1345
1400
  'fillBackground',
1401
+ 'fillColor',
1346
1402
  'backgroundOpacity',
1347
1403
  'showLabels',
1348
1404
  'visibleIntervalsMs',
1349
1405
  ],
1350
- Highlighter: ['color', 'lineWidth', 'smoothing', 'visibleIntervalsMs'],
1406
+ Highlighter: ['color', 'lineStyle', 'lineWidth', 'smoothing', 'visibleIntervalsMs'],
1351
1407
  HorizontalLine: [
1352
1408
  'color',
1353
1409
  'fontColor',
@@ -1440,7 +1496,7 @@ export const TOOL_TEMPLATE_KEYS = {
1440
1496
  'visibleIntervalsMs',
1441
1497
  ],
1442
1498
  Momentum: ['color', 'highlight', 'lineWidth', 'visibleIntervalsMs'],
1443
- Note: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'color', 'visibleIntervalsMs'],
1499
+ Note: ['fontColor', 'fontFamily', 'fontSize', 'fontStyle', 'textPosition', 'color', 'visibleIntervalsMs'],
1444
1500
  ParallelLine: [
1445
1501
  'color',
1446
1502
  'fontColor',
@@ -1452,11 +1508,12 @@ export const TOOL_TEMPLATE_KEYS = {
1452
1508
  'fontWeight',
1453
1509
  'fontStyle',
1454
1510
  'fillBackground',
1511
+ 'fillColor',
1455
1512
  'middleLine',
1456
1513
  'text',
1457
1514
  'visibleIntervalsMs',
1458
1515
  ],
1459
- Path: ['color', 'visibleIntervalsMs'],
1516
+ Path: ['color', 'lineStyle', 'lineWidth', 'visibleIntervalsMs'],
1460
1517
  Pencil: ['color', 'lineStyle', 'lineWidth', 'smoothing', 'visibleIntervalsMs'],
1461
1518
  Pitchfan: [
1462
1519
  'medianColor',
@@ -1493,8 +1550,8 @@ export const TOOL_TEMPLATE_KEYS = {
1493
1550
  ],
1494
1551
  PositionForecast: ['color', 'lineWidth', 'lineStyle', 'profitColor', 'stopColor', 'visibleIntervalsMs'],
1495
1552
  PriceLabel: ['color', 'fontColor', 'fontSize', 'visibleIntervalsMs'],
1496
- PriceNote: ['color', 'fontColor', 'fontSize', 'text', 'visibleIntervalsMs'],
1497
- PriceRange: ['bullishColor', 'bearishColor', 'visibleIntervalsMs'],
1553
+ PriceNote: ['color', 'fontColor', 'fontSize', 'lineWidth', 'lineStyle', 'text', 'visibleIntervalsMs'],
1554
+ PriceRange: ['bullishColor', 'bearishColor', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
1498
1555
  Ray: [
1499
1556
  'color',
1500
1557
  'fontColor',
@@ -1591,6 +1648,7 @@ export const TOOL_TEMPLATE_KEYS = {
1591
1648
  'fontFamily',
1592
1649
  'fontSize',
1593
1650
  'fontStyle',
1651
+ 'textPosition',
1594
1652
  'color',
1595
1653
  'fillBackground',
1596
1654
  'fillColor',
@@ -1658,6 +1716,7 @@ export const TOOL_TEMPLATE_KEYS = {
1658
1716
  'lineWidth',
1659
1717
  'lineStyle',
1660
1718
  'fillBackground',
1719
+ 'fillColor',
1661
1720
  'backgroundOpacity',
1662
1721
  'showLabels',
1663
1722
  'visibleIntervalsMs',
@@ -1681,6 +1740,7 @@ export const TOOL_TEMPLATE_KEYS = {
1681
1740
  'lineWidth',
1682
1741
  'lineStyle',
1683
1742
  'fillBackground',
1743
+ 'fillColor',
1684
1744
  'backgroundOpacity',
1685
1745
  'showLabels',
1686
1746
  'visibleIntervalsMs',
@@ -0,0 +1,15 @@
1
+ import { type LiveBucketVenue } from './live-bucket.util.js';
2
+ /**
3
+ * The lattice bar an END-stamped book frame closes, or null off the lattice (another venue, a
4
+ * coin-aggregated book that passes no venue, an interval the gateway does not roll): the stamp is
5
+ * read one millisecond early, so a stamp exactly on a boundary closes the bar before it whatever
6
+ * the width (45m bars open on the quarter hour, not only on whole hours). A weekly stamp keeps its
7
+ * own week, as in `roundObTimestamp`.
8
+ */
9
+ export declare function cmeLatticeBookBucketMs(stampMs: number, intervalMs: number, venue: LiveBucketVenue | null | undefined): number | null;
10
+ /** The bar a live book row is keyed on: the CME session lattice bar on a CME Group market, else
11
+ * `roundObTimestamp`'s END reading of the plain grid. */
12
+ export declare function bookLiveBucketMs(stampMs: number, intervalMs: number, venue: LiveBucketVenue | null | undefined): number;
13
+ /** Copies of book rows `[stamp, ...levels]`, each keyed on its bar (`bookLiveBucketMs`). An unknown
14
+ * interval keeps every row's own stamp; the inputs are never written. */
15
+ export declare function bookLiveBucketRows(rows: ReadonlyArray<ArrayLike<number>>, intervalMs: number, venue: LiveBucketVenue | null | undefined): Float64Array[];