@orangecharts/wrun-chart-host 0.11.1 → 0.15.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/README.md +1 -0
- package/dist/constants/feature-flags.constants.d.ts +4 -4
- package/dist/constants/feature-flags.constants.js +38 -52
- package/dist/constants/feature-limits.constants.d.ts +1 -1
- package/dist/constants/feature-limits.constants.js +5 -4
- package/dist/constants/interval.constants.d.ts +7 -0
- package/dist/constants/interval.constants.js +7 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +20 -149
- package/dist/constants/scriptEditor/cme-official-scripts.constants.js +20 -309
- package/dist/constants/stocks-compliance.constants.d.ts +15 -0
- package/dist/constants/stocks-compliance.constants.js +15 -0
- package/dist/host-env.d.ts +69 -3
- package/dist/host-env.js +21 -0
- package/dist/host-ports.types.d.ts +36 -3
- package/dist/index.d.ts +18 -0
- package/dist/index.js +19 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +52 -12
- package/dist/indicators/controls/tpo-session.util.js +113 -16
- package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +6 -0
- package/dist/instances/script-engine-worker-ohlcv-transfer.js +16 -0
- package/dist/interfaces/cme-realtime.interface.d.ts +8 -0
- package/dist/interfaces/cme-realtime.interface.js +2 -1
- package/dist/interfaces/feed.interface.d.ts +15 -1
- package/dist/interfaces/replay.interface.d.ts +5 -0
- package/dist/interfaces/stocks-realtime.interface.d.ts +4 -3
- package/dist/interfaces/stocks-realtime.interface.js +5 -4
- package/dist/interfaces/wrun-runtime.interface.d.ts +141 -20
- package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +17 -0
- package/dist/kscript-data/controls/live-ohlcv-merge.util.js +22 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +46 -40
- package/dist/kscript-data/controls/live-trades-merge.util.js +80 -107
- package/dist/market-data/billing.interface.d.ts +9 -1
- package/dist/market-data/venue.d.ts +1 -1
- package/dist/market-data/venues/index.d.ts +5 -5
- package/dist/market-data/venues/opra.js +3 -3
- package/dist/market-data/venues/stocks.contract.copy.json +6 -5
- package/dist/market-data/venues/stocks.d.ts +5 -5
- package/dist/market-data/venues/stocks.js +21 -18
- package/dist/settings-templates/frvp-fields.d.ts +12 -1
- package/dist/settings-templates/frvp-fields.js +15 -4
- package/dist/settings-templates/index.js +12 -5
- package/dist/settings-templates/indicator-fields.js +43 -2
- package/dist/settings-templates/tool-rules.d.ts +17 -8
- package/dist/settings-templates/tool-rules.js +15 -8
- package/dist/settings-templates/tool-tables.generated.js +4 -2
- package/dist/utility/auth/server-clock.util.d.ts +3 -1
- package/dist/utility/auth/server-clock.util.js +3 -1
- package/dist/utility/chart/book-live-bucket.util.js +2 -2
- package/dist/utility/chart/cache-alignment.util.d.ts +38 -7
- package/dist/utility/chart/cache-alignment.util.js +50 -13
- package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +2 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.js +16 -0
- package/dist/utility/chart/cme-session-bucket.util.d.ts +18 -75
- package/dist/utility/chart/cme-session-bucket.util.js +25 -332
- package/dist/utility/chart/continuous-contracts.util.js +6 -5
- package/dist/utility/chart/display-offset.leaf.d.ts +24 -0
- package/dist/utility/chart/display-offset.leaf.js +41 -0
- package/dist/utility/chart/effective-chart-session.util.d.ts +2 -1
- package/dist/utility/chart/effective-chart-session.util.js +13 -5
- package/dist/utility/chart/feed-interval.util.d.ts +6 -20
- package/dist/utility/chart/feed-interval.util.js +13 -22
- package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +27 -7
- package/dist/utility/chart/fetch-dedupe-policy.util.js +86 -11
- package/dist/utility/chart/footprint-band.util.d.ts +21 -5
- package/dist/utility/chart/footprint-band.util.js +53 -14
- package/dist/utility/chart/host-bar-placement.util.d.ts +7 -4
- package/dist/utility/chart/host-bar-placement.util.js +8 -2
- package/dist/utility/chart/indicator-inflight-registry.util.d.ts +32 -0
- package/dist/utility/chart/indicator-inflight-registry.util.js +52 -0
- package/dist/utility/chart/indicator-run-interval.util.d.ts +10 -4
- package/dist/utility/chart/indicator-run-interval.util.js +21 -12
- package/dist/utility/chart/interval-registry.util.d.ts +1 -1
- package/dist/utility/chart/interval-registry.util.js +1 -1
- package/dist/utility/chart/kscript-legend-entries.util.d.ts +12 -0
- package/dist/utility/chart/kscript-legend-entries.util.js +16 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +1 -1
- package/dist/utility/chart/kscript-run-interval-projection.util.js +4 -2
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -62
- package/dist/utility/chart/kscript-venue-policy.util.js +85 -94
- package/dist/utility/chart/live-bucket.util.d.ts +39 -17
- package/dist/utility/chart/live-bucket.util.js +103 -57
- package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +58 -20
- package/dist/utility/chart/local-kscript-source-revalidation.util.js +98 -23
- package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +35 -11
- package/dist/utility/chart/local-kscript-warmup-depth.util.js +24 -3
- package/dist/utility/chart/market-session-schedule.util.d.ts +8 -0
- package/dist/utility/chart/market-session-schedule.util.js +39 -1
- package/dist/utility/chart/market-session.util.d.ts +136 -0
- package/dist/utility/chart/market-session.util.js +341 -0
- package/dist/utility/chart/om-panel.util.d.ts +5 -3
- package/dist/utility/chart/om-panel.util.js +42 -7
- package/dist/utility/chart/om-target.util.d.ts +14 -1
- package/dist/utility/chart/om-target.util.js +22 -5
- package/dist/utility/chart/opra-read-access.leaf.d.ts +16 -1
- package/dist/utility/chart/opra-read-access.leaf.js +22 -0
- package/dist/utility/chart/profile-row-height.util.d.ts +49 -16
- package/dist/utility/chart/profile-row-height.util.js +74 -37
- package/dist/utility/chart/rth-session.util.d.ts +55 -20
- package/dist/utility/chart/rth-session.util.js +94 -46
- package/dist/utility/chart/session-lattice.util.d.ts +150 -0
- package/dist/utility/chart/session-lattice.util.js +488 -0
- package/dist/utility/chart/trading-day.util.d.ts +40 -2
- package/dist/utility/chart/trading-day.util.js +84 -7
- package/dist/utility/chart/us-equities-session.util.d.ts +32 -11
- package/dist/utility/chart/us-equities-session.util.js +44 -15
- package/dist/utility/chart/window-geometry.leaf.d.ts +28 -7
- package/dist/utility/chart/window-geometry.leaf.js +57 -8
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +21 -14
- package/dist/utility/chart/wrun-bar-session-facts.util.js +32 -38
- package/dist/utility/chart/wrun-run-result.util.d.ts +38 -13
- package/dist/utility/chart/wrun-run-result.util.js +97 -27
- package/dist/utility/common/time.util.js +5 -4
- package/dist/utility/market-events/earnings-scope.util.d.ts +10 -5
- package/dist/utility/market-events/earnings-scope.util.js +17 -9
- package/dist/utility/market-events/market-events.util.d.ts +14 -7
- package/dist/utility/market-events/market-events.util.js +30 -17
- package/dist/utility/number-format.util.d.ts +14 -21
- package/dist/utility/number-format.util.js +38 -24
- package/dist/utility/options/option-venue-disclosure.util.d.ts +40 -6
- package/dist/utility/options/option-venue-disclosure.util.js +71 -11
- package/dist/utility/options/option-venue.util.d.ts +1 -1
- package/dist/utility/options/option-venue.util.js +1 -1
- package/dist/utility/pool-symbol.leaf.d.ts +7 -0
- package/dist/utility/pool-symbol.leaf.js +50 -5
- package/dist/utility/stocks/stock-display.util.d.ts +15 -0
- package/dist/utility/stocks/stock-display.util.js +37 -0
- package/dist/utility/symbol-selection/contract-expiry.util.js +5 -4
- package/dist/utility/v2/gate-plane.util.d.ts +6 -0
- package/dist/utility/v2/gate-plane.util.js +11 -1
- package/dist/utility/v2/gate-session-latch.util.d.ts +1 -1
- package/dist/utility/v2/gate-session-latch.util.js +3 -3
- package/dist/utility/v2/governed-tier.leaf.d.ts +17 -16
- package/dist/utility/v2/governed-tier.leaf.js +17 -16
- package/dist/utility/v2/stocks-governed.util.d.ts +5 -0
- package/dist/utility/v2/stocks-governed.util.js +14 -0
- package/dist/utility/v2/v2-enums.leaf.d.ts +13 -0
- package/dist/utility/v2/v2-enums.leaf.js +458 -0
- package/dist/utility/wrun/derived-roots.leaf.d.ts +21 -1
- package/dist/utility/wrun/derived-roots.leaf.js +27 -1
- package/dist/utility/wrun/derived-roots.util.d.ts +44 -32
- package/dist/utility/wrun/derived-roots.util.js +97 -56
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -3
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -3
- package/dist/utility/wrun/sources/lanes/option_daily.d.ts +2 -1
- package/dist/utility/wrun/sources/lanes/option_daily.js +2 -1
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +3 -0
- package/dist/utility/wrun/sources/lanes/options_flow.js +23 -5
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +3 -4
- package/dist/utility/wrun/sources/row-lane-registry.js +9 -4
- package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +19 -0
- package/dist/utility/wrun/sources/row-lanes/dark_pool.js +104 -0
- package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.d.ts +20 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.js +103 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -2
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +15 -13
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +49 -23
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +14 -9
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +75 -27
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +139 -82
- package/dist/utility/wrun/wrun-app-layer.leaf.d.ts +78 -0
- package/dist/utility/wrun/wrun-app-layer.leaf.js +89 -0
- package/dist/utility/wrun/wrun-bar-count.util.d.ts +11 -7
- package/dist/utility/wrun/wrun-bar-count.util.js +12 -8
- package/dist/utility/wrun/wrun-batched-kinds.leaf.d.ts +13 -0
- package/dist/utility/wrun/wrun-batched-kinds.leaf.js +18 -0
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +46 -23
- package/dist/utility/wrun/wrun-batched-marks.util.js +260 -62
- package/dist/utility/wrun/wrun-batched-readout.util.d.ts +26 -19
- package/dist/utility/wrun/wrun-batched-readout.util.js +81 -27
- package/dist/utility/wrun/wrun-book-bands.leaf.d.ts +8 -0
- package/dist/utility/wrun/wrun-book-bands.leaf.js +7 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.d.ts +19 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.js +40 -0
- package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-canvases.util.d.ts +24 -7
- package/dist/utility/wrun/wrun-canvases.util.js +99 -30
- package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +6 -3
- package/dist/utility/wrun/wrun-chart-context-names.util.js +8 -4
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +47 -29
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +201 -201
- package/dist/utility/wrun/wrun-child-overlay-id.util.js +2 -1
- package/dist/utility/wrun/wrun-cme-legs-note.util.d.ts +15 -0
- package/dist/utility/wrun/wrun-cme-legs-note.util.js +49 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +38 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.js +81 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.js +3 -0
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +6 -1
- package/dist/utility/wrun/wrun-color-settings.util.js +32 -7
- package/dist/utility/wrun/wrun-dark-pool.util.d.ts +50 -0
- package/dist/utility/wrun/wrun-dark-pool.util.js +127 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +67 -12
- package/dist/utility/wrun/wrun-declared-warmup.util.js +165 -13
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +18 -8
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +57 -11
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +14 -10
- package/dist/utility/wrun/wrun-draft-overlay.util.js +26 -14
- package/dist/utility/wrun/wrun-earnings-facts.util.js +3 -2
- package/dist/utility/wrun/wrun-etf-funds.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-etf-funds.util.js +4 -0
- package/dist/utility/wrun/wrun-held-lanes.util.js +8 -2
- package/dist/utility/wrun/wrun-history-as-of.util.d.ts +77 -0
- package/dist/utility/wrun/wrun-history-as-of.util.js +108 -0
- package/dist/utility/wrun/wrun-host.service.d.ts +64 -14
- package/dist/utility/wrun/wrun-host.service.js +137 -27
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +3 -3
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +12 -2
- package/dist/utility/wrun/wrun-hover.util.d.ts +8 -2
- package/dist/utility/wrun/wrun-hover.util.js +24 -13
- package/dist/utility/wrun/wrun-inert-legend.util.d.ts +13 -0
- package/dist/utility/wrun/wrun-inert-legend.util.js +31 -3
- package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +7 -5
- package/dist/utility/wrun/wrun-input-requirements.leaf.js +16 -6
- package/dist/utility/wrun/wrun-install-pacer.util.d.ts +26 -0
- package/dist/utility/wrun/wrun-install-pacer.util.js +145 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.d.ts +22 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.js +1 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +12 -5
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +23 -5
- package/dist/utility/wrun/wrun-lane-warmup.util.js +22 -4
- package/dist/utility/wrun/wrun-leg-close.util.d.ts +6 -5
- package/dist/utility/wrun/wrun-leg-close.util.js +11 -9
- package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +3 -1
- package/dist/utility/wrun/wrun-leg-fetch.util.js +9 -2
- package/dist/utility/wrun/wrun-levels-child.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-levels-child.util.js +6 -0
- package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -0
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +15 -6
- package/dist/utility/wrun/wrun-live-intake.util.js +167 -47
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +52 -8
- package/dist/utility/wrun/wrun-live-tick.util.js +655 -97
- package/dist/utility/wrun/wrun-market-facts.util.d.ts +16 -2
- package/dist/utility/wrun/wrun-market-facts.util.js +32 -3
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +27 -27
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +28 -16
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +34 -5
- package/dist/utility/wrun/wrun-oi-lane.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-oi-lane.util.js +16 -10
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +1 -1
- package/dist/utility/wrun/wrun-option-views.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-option-views.util.js +5 -2
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.d.ts +5 -0
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.js +16 -0
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-options-stop.util.js +6 -4
- package/dist/utility/wrun/wrun-output-words.util.d.ts +14 -0
- package/dist/utility/wrun/wrun-output-words.util.js +51 -0
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +116 -11
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +208 -43
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +20 -10
- package/dist/utility/wrun/wrun-overlay-park.util.d.ts +84 -0
- package/dist/utility/wrun/wrun-overlay-park.util.js +135 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +37 -4
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +26 -14
- package/dist/utility/wrun/wrun-overlay-result.util.d.ts +6 -1
- package/dist/utility/wrun/wrun-overlay-result.util.js +2 -0
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +247 -26
- package/dist/utility/wrun/wrun-overlay-run.util.js +2234 -408
- package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +11 -2
- package/dist/utility/wrun/wrun-panel-mount.util.js +122 -19
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-panel-style.util.js +3 -2
- package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +7 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +18 -4
- package/dist/utility/wrun/wrun-pin-venues.util.d.ts +26 -17
- package/dist/utility/wrun/wrun-pin-venues.util.js +43 -36
- package/dist/utility/wrun/wrun-pinned-lanes.util.d.ts +58 -0
- package/dist/utility/wrun/wrun-pinned-lanes.util.js +72 -0
- package/dist/utility/wrun/wrun-prefix-cohort.util.js +2 -1
- package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +22 -9
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +145 -26
- package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +29 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.js +23 -5
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +9 -1
- package/dist/utility/wrun/wrun-refusal-surface.util.js +15 -1
- package/dist/utility/wrun/wrun-refusal.util.d.ts +19 -1
- package/dist/utility/wrun/wrun-refusal.util.js +103 -16
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +20 -6
- package/dist/utility/wrun/wrun-registry-errors.util.js +20 -6
- package/dist/utility/wrun/wrun-replay-rows.util.js +6 -10
- package/dist/utility/wrun/wrun-run-health.util.d.ts +95 -5
- package/dist/utility/wrun/wrun-run-health.util.js +209 -3
- package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-run-interval-session.util.js +2 -2
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +9 -8
- package/dist/utility/wrun/wrun-run-interval.util.js +13 -11
- package/dist/utility/wrun/wrun-sandbox-row-source.js +5 -2
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +38 -11
- package/dist/utility/wrun/wrun-script-inputs.util.js +194 -56
- package/dist/utility/wrun/wrun-session-composition.util.d.ts +81 -0
- package/dist/utility/wrun/wrun-session-composition.util.js +169 -0
- package/dist/utility/wrun/wrun-setting-words.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-setting-words.util.js +25 -7
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +94 -28
- package/dist/utility/wrun/wrun-source-rows.util.js +738 -93
- package/dist/utility/wrun/wrun-stream-clock.util.d.ts +45 -0
- package/dist/utility/wrun/wrun-stream-clock.util.js +108 -0
- package/dist/utility/wrun/wrun-style-names.util.d.ts +23 -0
- package/dist/utility/wrun/wrun-style-names.util.js +74 -0
- package/dist/utility/wrun/wrun-tape-coins.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-tape-coins.util.js +110 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +62 -32
- package/dist/utility/wrun/wrun-tape-source.util.js +72 -34
- package/dist/utility/wrun/wrun-tier-grid.util.d.ts +13 -5
- package/dist/utility/wrun/wrun-tier-grid.util.js +23 -13
- package/dist/utility/wrun/wrun-tpo-rows.util.js +2 -1
- package/dist/utility/wrun/wrun-trades-lane.util.d.ts +73 -0
- package/dist/utility/wrun/wrun-trades-lane.util.js +82 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +5 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +9 -2
- package/dist/utility/wrun/wrun-visibility-table.d.ts +13 -0
- package/dist/utility/wrun/wrun-visibility-table.js +9 -0
- package/dist/utility/wrun/wrun-volume-profile.util.js +7 -3
- package/dist/utils/replay/replay-buffer-math.d.ts +16 -6
- package/dist/utils/replay/replay-buffer-math.js +60 -30
- package/dist/workers/constants/socket-slots.d.ts +11 -7
- package/dist/workers/constants/socket-slots.js +6 -5
- package/package.json +5 -5
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Batched marks (WRUN-BATCHED-MARKS-PLAN, the frontend side): a wrun indicator's `marks`, `spans
|
|
3
|
-
* and `
|
|
4
|
-
* child overlays (`<parent>::marks:<name>`, `::spans:<name>`, `::rays:<name>`), like the grid
|
|
5
|
-
* heatmap child (docs/features/kscript/wrun/wrun-batched-marks.md).
|
|
2
|
+
* Batched marks (WRUN-BATCHED-MARKS-PLAN, the frontend side): a wrun indicator's `marks`, `spans`,
|
|
3
|
+
* `rays` and `flags` sections, each N records a bar riding plain data-only outputs, mounted as ROW-BACKED
|
|
4
|
+
* child overlays (`<parent>::marks:<name>`, `::spans:<name>`, `::rays:<name>`, `::flags:<name>`), like the grid
|
|
5
|
+
* heatmap child (docs/features/kscript/wrun/wrun-batched-marks.md). A `flags` section (the dark pool round) holds
|
|
6
|
+
* marks records (`[price, qty, meta]`, the same stride and row copy) the engine draws as chips above the candles.
|
|
6
7
|
*
|
|
7
8
|
* - Sections (`readWrunBatchedSections`): read by INDEX, never by name. A section's outputs start at
|
|
8
9
|
* `first_output` and run `slots * stride` contiguous declared outputs, every one data-only (plot
|
|
@@ -15,12 +16,14 @@
|
|
|
15
16
|
* engine's unit, exactly once: no other seam converts a time.
|
|
16
17
|
* - The gate (`wrunBatchedLayoutVerdict`, round-1 finding 17): before anything paints, each section's
|
|
17
18
|
* declaration is checked against the vocabulary this chart reads (cached per declaration): a stride
|
|
18
|
-
* it does not know (marks 3, spans and rays 4 or 5), a key it does not know, or an option value it
|
|
19
|
+
* it does not know (marks and flags 3, spans and rays 4 or 5), a key it does not know, or an option value it
|
|
19
20
|
* does not know under a known key refuses THAT section's child by name ("Needs a newer chart",
|
|
20
21
|
* the engine gate's row, wrun-panel-mount.util), never the Indicator; the chart's own `visible`
|
|
21
22
|
* and the legacy `shape` are admitted. The row copy checks each filled slot's meta too (an empty
|
|
22
23
|
* slot's is never read): a meta packing a field past the ones this chart decodes refuses the child
|
|
23
|
-
* the same way.
|
|
24
|
+
* the same way. The engine is judged at the mount (`wrunBatchedEngineVerdict`): a look the chart reads but
|
|
25
|
+
* an older engine would draw as another (the diamond, the log size law and its px bounds) needs the engine
|
|
26
|
+
* release that draws them.
|
|
24
27
|
* - Rows (`wrunBatchedRowsOf`): one child row per parent row, `[ts, ...fields]`, width `1 + slots *
|
|
25
28
|
* stride`, a field that is not finite NaN (a NaN price is an empty slot), a non-ready row all NaN.
|
|
26
29
|
* An all-NaN row still carries its timestamp: on a live tick it clears the bar's records. A row is
|
|
@@ -59,15 +62,15 @@
|
|
|
59
62
|
* hover). Where no unit is proven the engine is handed `usd` in place of `units`, never a wrong number.
|
|
60
63
|
*/
|
|
61
64
|
import type { WrunBatchedMarksKind, WrunBatchedSection, WrunIndicatorMetadata, WrunOutputRow } from '../../interfaces/wrun-runtime.interface.js';
|
|
65
|
+
import type { DisplayOffset } from '../chart/display-offset.leaf.js';
|
|
62
66
|
import { type WrunCellsCapSummary } from './wrun-cap-notice.util.js';
|
|
63
67
|
import { type WrunCanvasReadout } from './wrun-canvas-readout.util.js';
|
|
64
68
|
import { wrunCanvasMergeLive } from './wrun-canvases.util.js';
|
|
65
69
|
import { type WrunColorTheme } from './wrun-style-words.util.js';
|
|
66
|
-
export { decodeWrunMarkMeta, decodeWrunSpanMeta, formatWrunBatchedNumber, isWrunBatchedNumberFormat, WRUN_BATCHED_NUMBER_FORMATS, wrunBatchedReadoutText, wrunMarkQtyInUnits, WRUN_MARK_META_MAX_OFFSET_MS, type WrunBatchedNumberFormat, type WrunMarkMeta, type WrunSpanMeta, } from './wrun-batched-readout.util.js';
|
|
70
|
+
export { decodeWrunFlagMeta, decodeWrunMarkMeta, decodeWrunSpanMeta, formatWrunBatchedNumber, isWrunBatchedNumberFormat, WRUN_BATCHED_NUMBER_FORMATS, wrunBatchedReadoutText, wrunMarkQtyInUnits, WRUN_MARK_META_MAX_OFFSET_MS, type WrunBatchedNumberFormat, type WrunFlagMeta, type WrunMarkMeta, type WrunSpanMeta, } from './wrun-batched-readout.util.js';
|
|
67
71
|
export type { WrunBatchedHoverRecord } from './wrun-canvas-readout.util.js';
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
/** The fields of one record, per kind: marks `[price, qty, meta]`, spans `[top, bottom, length,
|
|
72
|
+
export { isWrunBatchedMarksKind, WRUN_BATCHED_MARKS_KINDS } from './wrun-batched-kinds.leaf.js';
|
|
73
|
+
/** The fields of one record, per kind: marks and flags `[price, qty, meta]`, spans `[top, bottom, length,
|
|
71
74
|
* meta]`, rays `[y1, y2, length, meta]`. */
|
|
72
75
|
export declare const WRUN_BATCHED_STRIDE: Readonly<Record<WrunBatchedMarksKind, number>>;
|
|
73
76
|
/** One slot's fields in output order, per kind (the kit's WRUN_BATCHED_FIELDS). */
|
|
@@ -90,7 +93,12 @@ export declare const WRUN_BATCHED_MAX_SLOTS = 64;
|
|
|
90
93
|
export declare const WRUN_BATCHED_MAX_OUTPUTS = 256;
|
|
91
94
|
/** A hover template's longest text. */
|
|
92
95
|
export declare const WRUN_BATCHED_TOOLTIP_MAX_CHARS = 200;
|
|
93
|
-
|
|
96
|
+
/** The chip templates a flags section declares at most (its meta's word is 0..3), and the longest one. */
|
|
97
|
+
export declare const WRUN_FLAGS_MAX_WORDS = 4;
|
|
98
|
+
export declare const WRUN_FLAGS_WORD_MAX_CHARS = 32;
|
|
99
|
+
/** A flags section's colours by part (the dark pool round): the chip's fill, its edge (the hairline too) and its
|
|
100
|
+
* text. A list holds at most these three; a part it leaves out takes its default (LOOK_DEFAULTS.flags). */
|
|
101
|
+
export declare const WRUN_FLAGS_COLOR_PARTS: readonly ["fill", "edge", "text"];
|
|
94
102
|
/** A batched child's id: `<overlayId>::<kind>:<name>`. */
|
|
95
103
|
export declare function wrunBatchedChildId(overlayId: string, kind: WrunBatchedMarksKind, name: string): string;
|
|
96
104
|
/** One section as the chart reads it: its geometry and the declaration (the painted sheet's). */
|
|
@@ -103,26 +111,31 @@ export interface WrunBatchedSectionSpec {
|
|
|
103
111
|
firstOutput: number;
|
|
104
112
|
stride: number;
|
|
105
113
|
declaration: WrunBatchedSection;
|
|
114
|
+
/** The section's title, the one order every surface titles it in (wrun-style-names.util wrunStyleTitle): the
|
|
115
|
+
* sheet's `style_names` label, else its own readout `label`, else its name read as words. Its hover readout
|
|
116
|
+
* carries it (`{{label}}` prints it). */
|
|
117
|
+
title: string;
|
|
106
118
|
/** Why this chart cannot draw the section (its declaration names a layout newer than this build:
|
|
107
119
|
* a stride, a key or an option value the gate does not know), absent when it can. Its child is
|
|
108
120
|
* refused by name ("Needs a newer chart") and the rest of the Indicator runs; the geometry above
|
|
109
121
|
* is then a placeholder (the section's outputs are never read). */
|
|
110
122
|
newer?: string;
|
|
111
123
|
}
|
|
112
|
-
/** The sheet slice the sections are read from. */
|
|
113
|
-
export type WrunBatchedSheet = Pick<WrunIndicatorMetadata, 'id' | 'outputs'> & Partial<Pick<WrunIndicatorMetadata,
|
|
124
|
+
/** The sheet slice the sections are read from (`style_names`: the words their titles read first). */
|
|
125
|
+
export type WrunBatchedSheet = Pick<WrunIndicatorMetadata, 'id' | 'outputs'> & Partial<Pick<WrunIndicatorMetadata, WrunBatchedMarksKind | 'style_names'>>;
|
|
114
126
|
/** The cells one kept bar of a section costs: its child row, the timestamp and every field of every
|
|
115
127
|
* slot (`1 + slots * stride`), and nothing else (the parent run's columns and a replace's old copy
|
|
116
128
|
* are not charged; the header says why). Empty slots count: the row is as wide as the section. */
|
|
117
129
|
export declare function wrunBatchedBarCells(spec: Pick<WrunBatchedSectionSpec, 'slots' | 'stride'>): number;
|
|
118
130
|
/**
|
|
119
|
-
* The sheet's batched sections in mount order (marks, spans, rays; each list in its order),
|
|
131
|
+
* The sheet's batched sections in mount order (marks, spans, rays, flags; each list in its order),
|
|
120
132
|
* validated against the sheet's outputs BY INDEX: `slots` a whole number from 1 to 64, `stride` one
|
|
121
|
-
* the gate admits (marks 3; spans and rays 4, or 5 for the timed layout), `first_output` a whole
|
|
133
|
+
* the gate admits (marks and flags 3; spans and rays 4, or 5 for the timed layout), `first_output` a whole
|
|
122
134
|
* number, and outputs `first_output` through `first_output + slots * stride - 1` declared,
|
|
123
135
|
* contiguous, data-only (plot ""), inside the 256 a sheet declares and owned by no other section; a
|
|
124
136
|
* unique name; declared colours the kind takes (left out, the kit's default colours draw); a tooltip
|
|
125
|
-
* of at most 200 characters
|
|
137
|
+
* of at most 200 characters; a flags section's `words` 1 to 4 texts of at most 32 characters and its `icons`
|
|
138
|
+
* at most one a word. Anything else refuses the run by name (thrown). A section whose
|
|
126
139
|
* declaration names a layout newer than this chart (`wrunBatchedLayoutVerdict`: a stride, a key or an
|
|
127
140
|
* option value it does not know) refuses nothing here: it is read with its reason (`newer`), its
|
|
128
141
|
* outputs unread, and its child alone is refused at the mount. A section the Style row switched off
|
|
@@ -183,9 +196,10 @@ export interface WrunBatchedChildOverlay {
|
|
|
183
196
|
}
|
|
184
197
|
/**
|
|
185
198
|
* Why this chart cannot draw a section of `kind` (the gate, round-1 finding 17), null when it can: a
|
|
186
|
-
* stride it does not know (marks 3; spans and rays 4, or 5 for the timed layout), a key it does not
|
|
199
|
+
* stride it does not know (marks and flags 3; spans and rays 4, or 5 for the timed layout), a key it does not
|
|
187
200
|
* know, or an option value it does not know under a known key, nested keys included (`size`, `text`,
|
|
188
|
-
* `border`). The section's child is refused by name ("Needs a newer
|
|
201
|
+
* `border`) and every entry of a list key (`icons`). The section's child is refused by name ("Needs a newer
|
|
202
|
+
* chart") and the Indicator's other
|
|
189
203
|
* children run: the next layout change is caught here as the timed one would have been. The reason is
|
|
190
204
|
* diagnostic text (the notice row's details), never copy. Read once per section (cached).
|
|
191
205
|
*
|
|
@@ -202,7 +216,7 @@ export declare function wrunBatchedLayoutVerdict(kind: WrunBatchedMarksKind, sec
|
|
|
202
216
|
* here, the child rows start at field 0), the look of its kind, and `hoverReadout` when a tooltip is
|
|
203
217
|
* declared (the engine registers its drawn records for hover then). Colours stay as declared. A marks
|
|
204
218
|
* child also carries the market's dollar unit (`valuePerUnit`) when the build hands a proven one; spans
|
|
205
|
-
* and rays never do (their records hold no quantity). */
|
|
219
|
+
* and rays never do (their records hold no quantity), nor flags (a chip's templates print no `units`). */
|
|
206
220
|
export declare function wrunBatchedSettingsOf(spec: WrunBatchedSectionSpec, context?: Pick<WrunBatchedChildrenOptions, 'valuePerUnit'>): Record<string, unknown>;
|
|
207
221
|
/** What a build of the batched children takes beside the sheet and the rows. */
|
|
208
222
|
export interface WrunBatchedChildrenOptions {
|
|
@@ -233,6 +247,15 @@ export declare function wrunBatchedMarksChildren(sheet: WrunBatchedSheet, output
|
|
|
233
247
|
* number decoded (a packed theme token through its word, the existing packed-colour decode for the
|
|
234
248
|
* rest); undefined when it is neither. */
|
|
235
249
|
export declare function resolveWrunBatchedColor(value: unknown, theme: WrunColorTheme): string | undefined;
|
|
250
|
+
/**
|
|
251
|
+
* Why the chart's engine cannot draw a batched child its kind's renderer draws, null when it can: the mount asks it
|
|
252
|
+
* once the engine gate passed the kind (the pack settled and registered, `hasPlotRenderer` the engine's own answer).
|
|
253
|
+
* A marks child whose look needs the dark pool round's engine (look 4, the `log` law, a `min_px` or `max_px` bound)
|
|
254
|
+
* on an engine without that release's `flags` renderer is refused by name ("Needs a newer chart"), as an unknown
|
|
255
|
+
* look is by the layout gate, never drawn as another look. A flags child is never judged here: the gate already
|
|
256
|
+
* asked the engine for its kind. The reason is diagnostic text, never copy.
|
|
257
|
+
*/
|
|
258
|
+
export declare function wrunBatchedEngineVerdict(child: Pick<WrunBatchedChildOverlay, 'kind' | 'settings'>, hasPlotRenderer: (type: string) => boolean): string | null;
|
|
236
259
|
export interface WrunBatchedChildConfig {
|
|
237
260
|
id: string;
|
|
238
261
|
plot: WrunBatchedMarksKind;
|
|
@@ -248,14 +271,14 @@ export interface WrunBatchedChildConfig {
|
|
|
248
271
|
* kind), the settings with every colour resolved against the chart's theme, the live merge. A child
|
|
249
272
|
* with a readout registers it for the hover inspector as the child carries it (its template's text
|
|
250
273
|
* as `text`); one without forgets any it had. A timed readout first takes the display offset its
|
|
251
|
-
* `{{start}}` and `{{end}}` print in (`timeOffsetMs`: the chart's display timezone,
|
|
252
|
-
* longer bars), stamped on the child's own readout so every
|
|
253
|
-
* switch retranslates, which stamps it again.
|
|
274
|
+
* `{{start}}` and `{{end}}` print in (`timeOffsetMs`: the chart's display timezone, a fixed shift or the
|
|
275
|
+
* shift at each instant, none on daily and longer bars), stamped on the child's own readout so every
|
|
276
|
+
* registration of it keeps it; a timezone switch retranslates, which stamps it again.
|
|
254
277
|
*/
|
|
255
278
|
export declare function wrunBatchedChildConfig(child: WrunBatchedChildOverlay, ctx: {
|
|
256
279
|
overlayId: string;
|
|
257
280
|
theme: WrunColorTheme;
|
|
258
|
-
timeOffsetMs?:
|
|
281
|
+
timeOffsetMs?: DisplayOffset;
|
|
259
282
|
}): WrunBatchedChildConfig;
|
|
260
283
|
/** A batched child's geometry read off its settings (the mount's budget and the window landing). */
|
|
261
284
|
export declare function wrunBatchedGeometryOf(settings: Record<string, unknown>): {
|