@orangecharts/wrun-chart-host 0.1.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 +72 -0
- package/dist/constants/governed-exchanges.constants.d.ts +11 -0
- package/dist/constants/governed-exchanges.constants.js +11 -0
- package/dist/constants/indicator-sets.constants.d.ts +8 -0
- package/dist/constants/indicator-sets.constants.js +8 -0
- package/dist/constants/interval.constants.d.ts +34 -0
- package/dist/constants/interval.constants.js +121 -0
- package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.d.ts +28 -0
- package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.js +65 -0
- package/dist/constants/tpo-color-schemes.constants.d.ts +30 -0
- package/dist/constants/tpo-color-schemes.constants.js +32 -0
- package/dist/host-env.d.ts +102 -0
- package/dist/host-env.js +26 -0
- package/dist/index.d.ts +93 -0
- package/dist/index.js +96 -0
- package/dist/indicators/controls/tpo-letter.util.d.ts +2 -0
- package/dist/indicators/controls/tpo-letter.util.js +13 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +99 -0
- package/dist/indicators/controls/tpo-session.util.js +389 -0
- package/dist/interfaces/kscript-diagnostics.interface.d.ts +64 -0
- package/dist/interfaces/kscript-diagnostics.interface.js +1 -0
- package/dist/interfaces/om-panel-data.interface.d.ts +103 -0
- package/dist/interfaces/om-panel-data.interface.js +7 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +2659 -0
- package/dist/interfaces/wrun-runtime.interface.js +55 -0
- package/dist/utility/chart/calendar-interval.util.d.ts +24 -0
- package/dist/utility/chart/calendar-interval.util.js +81 -0
- package/dist/utility/chart/candle-bar-end.util.d.ts +15 -0
- package/dist/utility/chart/candle-bar-end.util.js +23 -0
- package/dist/utility/chart/cme-realtime.util.d.ts +24 -0
- package/dist/utility/chart/cme-realtime.util.js +53 -0
- package/dist/utility/chart/interval-ladder.util.d.ts +27 -0
- package/dist/utility/chart/interval-ladder.util.js +92 -0
- package/dist/utility/chart/kscript-drawing-prep.util.d.ts +40 -0
- package/dist/utility/chart/kscript-drawing-prep.util.js +184 -0
- package/dist/utility/chart/kscript-drawing-safe-area.util.d.ts +95 -0
- package/dist/utility/chart/kscript-drawing-safe-area.util.js +805 -0
- package/dist/utility/chart/kscript-legend-entries.util.d.ts +166 -0
- package/dist/utility/chart/kscript-legend-entries.util.js +538 -0
- package/dist/utility/chart/kscript-output-role.util.d.ts +32 -0
- package/dist/utility/chart/kscript-output-role.util.js +215 -0
- package/dist/utility/chart/kscript-provenance-keys.util.d.ts +22 -0
- package/dist/utility/chart/kscript-provenance-keys.util.js +56 -0
- package/dist/utility/chart/kscript-run-result-normalize.util.d.ts +53 -0
- package/dist/utility/chart/kscript-run-result-normalize.util.js +476 -0
- package/dist/utility/chart/kscript-run-result-shape.util.d.ts +14 -0
- package/dist/utility/chart/kscript-run-result-shape.util.js +66 -0
- package/dist/utility/chart/kscript-titancharts-container.util.d.ts +29 -0
- package/dist/utility/chart/kscript-titancharts-container.util.js +151 -0
- package/dist/utility/chart/kscript-viewport-overlays.util.d.ts +83 -0
- package/dist/utility/chart/kscript-viewport-overlays.util.js +443 -0
- package/dist/utility/chart/om-panel-push-style.util.d.ts +78 -0
- package/dist/utility/chart/om-panel-push-style.util.js +301 -0
- package/dist/utility/chart/om-panel.util.d.ts +166 -0
- package/dist/utility/chart/om-panel.util.js +815 -0
- package/dist/utility/chart/om-series.util.d.ts +42 -0
- package/dist/utility/chart/om-series.util.js +330 -0
- package/dist/utility/chart/om-target.util.d.ts +11 -0
- package/dist/utility/chart/om-target.util.js +24 -0
- package/dist/utility/chart/om-widget.util.d.ts +148 -0
- package/dist/utility/chart/om-widget.util.js +413 -0
- package/dist/utility/chart/overlay-output-budget.util.d.ts +16 -0
- package/dist/utility/chart/overlay-output-budget.util.js +109 -0
- package/dist/utility/chart/overlay-paint-flags.util.d.ts +24 -0
- package/dist/utility/chart/overlay-paint-flags.util.js +55 -0
- package/dist/utility/chart/profile-row-height.util.d.ts +21 -0
- package/dist/utility/chart/profile-row-height.util.js +110 -0
- package/dist/utility/chart/session-interval.util.d.ts +1 -0
- package/dist/utility/chart/session-interval.util.js +35 -0
- package/dist/utility/chart/technical-script-legend-value.util.d.ts +18 -0
- package/dist/utility/chart/technical-script-legend-value.util.js +53 -0
- package/dist/utility/chart/trading-day.util.d.ts +70 -0
- package/dist/utility/chart/trading-day.util.js +238 -0
- package/dist/utility/chart/wrun-legend-name.util.d.ts +25 -0
- package/dist/utility/chart/wrun-legend-name.util.js +87 -0
- package/dist/utility/chart/wrun-run-result.util.d.ts +977 -0
- package/dist/utility/chart/wrun-run-result.util.js +5179 -0
- package/dist/utility/chart/wrun-visibility-chart.util.d.ts +25 -0
- package/dist/utility/chart/wrun-visibility-chart.util.js +22 -0
- package/dist/utility/indicators/heatmap-sensitivity.util.d.ts +62 -0
- package/dist/utility/indicators/heatmap-sensitivity.util.js +82 -0
- package/dist/utility/number-format.util.d.ts +68 -0
- package/dist/utility/number-format.util.js +188 -0
- package/dist/utility/v2/opra-governed.util.d.ts +1 -0
- package/dist/utility/v2/opra-governed.util.js +13 -0
- package/dist/utility/wrun/wrun-auto-row.util.d.ts +54 -0
- package/dist/utility/wrun/wrun-auto-row.util.js +96 -0
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +341 -0
- package/dist/utility/wrun/wrun-batched-marks.util.js +938 -0
- package/dist/utility/wrun/wrun-batched-readout.util.d.ts +75 -0
- package/dist/utility/wrun/wrun-batched-readout.util.js +171 -0
- package/dist/utility/wrun/wrun-box-segment.util.d.ts +185 -0
- package/dist/utility/wrun/wrun-box-segment.util.js +570 -0
- package/dist/utility/wrun/wrun-build-memo.util.d.ts +133 -0
- package/dist/utility/wrun/wrun-build-memo.util.js +301 -0
- package/dist/utility/wrun/wrun-builtin-twin-ports.util.d.ts +25 -0
- package/dist/utility/wrun/wrun-builtin-twin-ports.util.js +75 -0
- package/dist/utility/wrun/wrun-builtin-twin.util.d.ts +9 -0
- package/dist/utility/wrun/wrun-builtin-twin.util.js +40 -0
- package/dist/utility/wrun/wrun-canvas-cache.util.d.ts +28 -0
- package/dist/utility/wrun/wrun-canvas-cache.util.js +56 -0
- package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +69 -0
- package/dist/utility/wrun/wrun-canvas-readout.util.js +53 -0
- package/dist/utility/wrun/wrun-canvases.util.d.ts +295 -0
- package/dist/utility/wrun/wrun-canvases.util.js +1432 -0
- package/dist/utility/wrun/wrun-cap-notice.util.d.ts +77 -0
- package/dist/utility/wrun/wrun-cap-notice.util.js +296 -0
- package/dist/utility/wrun/wrun-card-style.util.d.ts +154 -0
- package/dist/utility/wrun/wrun-card-style.util.js +539 -0
- package/dist/utility/wrun/wrun-chart-context.util.d.ts +89 -0
- package/dist/utility/wrun/wrun-chart-context.util.js +213 -0
- package/dist/utility/wrun/wrun-chart-names.util.d.ts +23 -0
- package/dist/utility/wrun/wrun-chart-names.util.js +33 -0
- package/dist/utility/wrun/wrun-chart-time.util.d.ts +12 -0
- package/dist/utility/wrun/wrun-chart-time.util.js +23 -0
- package/dist/utility/wrun/wrun-child-overlay-id.util.d.ts +13 -0
- package/dist/utility/wrun/wrun-child-overlay-id.util.js +44 -0
- package/dist/utility/wrun/wrun-color-facts.util.d.ts +40 -0
- package/dist/utility/wrun/wrun-color-facts.util.js +88 -0
- package/dist/utility/wrun/wrun-color-settings.lazy.d.ts +26 -0
- package/dist/utility/wrun/wrun-color-settings.lazy.js +9 -0
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +351 -0
- package/dist/utility/wrun/wrun-color-settings.util.js +1363 -0
- package/dist/utility/wrun/wrun-footprint-modes.util.d.ts +23 -0
- package/dist/utility/wrun/wrun-footprint-modes.util.js +24 -0
- package/dist/utility/wrun/wrun-frames.d.ts +217 -0
- package/dist/utility/wrun/wrun-frames.js +1021 -0
- package/dist/utility/wrun/wrun-handles.util.d.ts +792 -0
- package/dist/utility/wrun/wrun-handles.util.js +2050 -0
- package/dist/utility/wrun/wrun-heatmap-cell-budget.util.d.ts +156 -0
- package/dist/utility/wrun/wrun-heatmap-cell-budget.util.js +342 -0
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +218 -0
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +667 -0
- package/dist/utility/wrun/wrun-hosted-wire.util.d.ts +40 -0
- package/dist/utility/wrun/wrun-hosted-wire.util.js +27 -0
- package/dist/utility/wrun/wrun-hover.util.d.ts +182 -0
- package/dist/utility/wrun/wrun-hover.util.js +534 -0
- package/dist/utility/wrun/wrun-hud-looks.util.d.ts +246 -0
- package/dist/utility/wrun/wrun-hud-looks.util.js +587 -0
- package/dist/utility/wrun/wrun-integration-budget.util.d.ts +47 -0
- package/dist/utility/wrun/wrun-integration-budget.util.js +122 -0
- package/dist/utility/wrun/wrun-latest-snapshot.d.ts +19 -0
- package/dist/utility/wrun/wrun-latest-snapshot.js +7 -0
- package/dist/utility/wrun/wrun-levels-child.util.d.ts +131 -0
- package/dist/utility/wrun/wrun-levels-child.util.js +514 -0
- package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +75 -0
- package/dist/utility/wrun/wrun-lifecycle.contract.js +9 -0
- package/dist/utility/wrun/wrun-market-facts.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-market-facts.util.js +238 -0
- package/dist/utility/wrun/wrun-output-style.util.d.ts +344 -0
- package/dist/utility/wrun/wrun-output-style.util.js +1239 -0
- package/dist/utility/wrun/wrun-overlay-identity.util.d.ts +84 -0
- package/dist/utility/wrun/wrun-overlay-identity.util.js +142 -0
- package/dist/utility/wrun/wrun-overlay-result.util.d.ts +120 -0
- package/dist/utility/wrun/wrun-overlay-result.util.js +219 -0
- package/dist/utility/wrun/wrun-pack.util.d.ts +70 -0
- package/dist/utility/wrun/wrun-pack.util.js +301 -0
- package/dist/utility/wrun/wrun-pane-format.util.d.ts +180 -0
- package/dist/utility/wrun/wrun-pane-format.util.js +299 -0
- package/dist/utility/wrun/wrun-panel-style.lazy.d.ts +25 -0
- package/dist/utility/wrun/wrun-panel-style.lazy.js +15 -0
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +174 -0
- package/dist/utility/wrun/wrun-panel-style.util.js +726 -0
- package/dist/utility/wrun/wrun-param-values.util.d.ts +69 -0
- package/dist/utility/wrun/wrun-param-values.util.js +230 -0
- package/dist/utility/wrun/wrun-refusal.util.d.ts +263 -0
- package/dist/utility/wrun/wrun-refusal.util.js +1259 -0
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +199 -0
- package/dist/utility/wrun/wrun-registry-errors.util.js +257 -0
- package/dist/utility/wrun/wrun-render-select.util.d.ts +336 -0
- package/dist/utility/wrun/wrun-render-select.util.js +1157 -0
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +434 -0
- package/dist/utility/wrun/wrun-script-inputs.util.js +1971 -0
- package/dist/utility/wrun/wrun-setting-words.lazy.d.ts +20 -0
- package/dist/utility/wrun/wrun-setting-words.lazy.js +9 -0
- package/dist/utility/wrun/wrun-setting-words.util.d.ts +79 -0
- package/dist/utility/wrun/wrun-setting-words.util.js +176 -0
- package/dist/utility/wrun/wrun-socket-row-store.d.ts +98 -0
- package/dist/utility/wrun/wrun-socket-row-store.js +417 -0
- package/dist/utility/wrun/wrun-style-flags.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-style-flags.util.js +21 -0
- package/dist/utility/wrun/wrun-style-words.util.d.ts +148 -0
- package/dist/utility/wrun/wrun-style-words.util.js +439 -0
- package/dist/utility/wrun/wrun-table-look.util.d.ts +125 -0
- package/dist/utility/wrun/wrun-table-look.util.js +225 -0
- package/dist/utility/wrun/wrun-text-look.util.d.ts +51 -0
- package/dist/utility/wrun/wrun-text-look.util.js +227 -0
- package/dist/utility/wrun/wrun-text-params.util.d.ts +106 -0
- package/dist/utility/wrun/wrun-text-params.util.js +171 -0
- package/dist/utility/wrun/wrun-tpo-rows.util.d.ts +71 -0
- package/dist/utility/wrun/wrun-tpo-rows.util.js +438 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +14 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +58 -0
- package/dist/utility/wrun/wrun-visibility-table.d.ts +437 -0
- package/dist/utility/wrun/wrun-visibility-table.js +237 -0
- package/dist/utility/wrun/wrun-volume-profile.util.d.ts +37 -0
- package/dist/utility/wrun/wrun-volume-profile.util.js +278 -0
- package/package.json +38 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export * from './host-env.js';
|
|
2
|
+
export * from './constants/governed-exchanges.constants.js';
|
|
3
|
+
export * from './constants/indicator-sets.constants.js';
|
|
4
|
+
export * from './constants/interval.constants.js';
|
|
5
|
+
export * from './constants/scriptEditor/technicalIndicatorScriptKeys.constants.js';
|
|
6
|
+
export * from './constants/tpo-color-schemes.constants.js';
|
|
7
|
+
export * from './indicators/controls/tpo-letter.util.js';
|
|
8
|
+
export * from './indicators/controls/tpo-session.util.js';
|
|
9
|
+
export * from './interfaces/kscript-diagnostics.interface.js';
|
|
10
|
+
export * from './interfaces/om-panel-data.interface.js';
|
|
11
|
+
export * from './interfaces/wrun-runtime.interface.js';
|
|
12
|
+
export * from './utility/chart/calendar-interval.util.js';
|
|
13
|
+
export * from './utility/chart/candle-bar-end.util.js';
|
|
14
|
+
export * from './utility/chart/cme-realtime.util.js';
|
|
15
|
+
export * from './utility/chart/interval-ladder.util.js';
|
|
16
|
+
export * from './utility/chart/kscript-drawing-prep.util.js';
|
|
17
|
+
export * from './utility/chart/kscript-drawing-safe-area.util.js';
|
|
18
|
+
export * from './utility/chart/kscript-legend-entries.util.js';
|
|
19
|
+
export * from './utility/chart/kscript-output-role.util.js';
|
|
20
|
+
export * from './utility/chart/kscript-provenance-keys.util.js';
|
|
21
|
+
export * from './utility/chart/kscript-run-result-normalize.util.js';
|
|
22
|
+
export * from './utility/chart/kscript-run-result-shape.util.js';
|
|
23
|
+
export * from './utility/chart/kscript-titancharts-container.util.js';
|
|
24
|
+
export * from './utility/chart/kscript-viewport-overlays.util.js';
|
|
25
|
+
export * from './utility/chart/om-panel-push-style.util.js';
|
|
26
|
+
export * from './utility/chart/om-panel.util.js';
|
|
27
|
+
export * from './utility/chart/om-series.util.js';
|
|
28
|
+
export * from './utility/chart/om-target.util.js';
|
|
29
|
+
export * from './utility/chart/overlay-output-budget.util.js';
|
|
30
|
+
export * from './utility/chart/overlay-paint-flags.util.js';
|
|
31
|
+
export * from './utility/chart/profile-row-height.util.js';
|
|
32
|
+
export * from './utility/chart/session-interval.util.js';
|
|
33
|
+
export * from './utility/chart/technical-script-legend-value.util.js';
|
|
34
|
+
export * from './utility/chart/trading-day.util.js';
|
|
35
|
+
export * from './utility/chart/wrun-legend-name.util.js';
|
|
36
|
+
export * from './utility/chart/wrun-run-result.util.js';
|
|
37
|
+
export * from './utility/chart/wrun-visibility-chart.util.js';
|
|
38
|
+
export * from './utility/indicators/heatmap-sensitivity.util.js';
|
|
39
|
+
export * from './utility/number-format.util.js';
|
|
40
|
+
export * from './utility/v2/opra-governed.util.js';
|
|
41
|
+
export * from './utility/wrun/wrun-auto-row.util.js';
|
|
42
|
+
export * from './utility/wrun/wrun-batched-marks.util.js';
|
|
43
|
+
export * from './utility/wrun/wrun-batched-readout.util.js';
|
|
44
|
+
export * from './utility/wrun/wrun-box-segment.util.js';
|
|
45
|
+
export * from './utility/wrun/wrun-build-memo.util.js';
|
|
46
|
+
export * from './utility/wrun/wrun-builtin-twin-ports.util.js';
|
|
47
|
+
export * from './utility/wrun/wrun-builtin-twin.util.js';
|
|
48
|
+
export * from './utility/wrun/wrun-canvas-cache.util.js';
|
|
49
|
+
export * from './utility/wrun/wrun-canvas-readout.util.js';
|
|
50
|
+
export * from './utility/wrun/wrun-canvases.util.js';
|
|
51
|
+
export * from './utility/wrun/wrun-cap-notice.util.js';
|
|
52
|
+
export * from './utility/wrun/wrun-card-style.util.js';
|
|
53
|
+
export * from './utility/wrun/wrun-chart-context.util.js';
|
|
54
|
+
export * from './utility/wrun/wrun-chart-names.util.js';
|
|
55
|
+
export * from './utility/wrun/wrun-chart-time.util.js';
|
|
56
|
+
export * from './utility/wrun/wrun-child-overlay-id.util.js';
|
|
57
|
+
export * from './utility/wrun/wrun-color-facts.util.js';
|
|
58
|
+
export * from './utility/wrun/wrun-color-settings.lazy.js';
|
|
59
|
+
export * from './utility/wrun/wrun-color-settings.util.js';
|
|
60
|
+
export * from './utility/wrun/wrun-footprint-modes.util.js';
|
|
61
|
+
export * from './utility/wrun/wrun-handles.util.js';
|
|
62
|
+
export * from './utility/wrun/wrun-heatmap-cell-budget.util.js';
|
|
63
|
+
export * from './utility/wrun/wrun-hosted-wire-caps.js';
|
|
64
|
+
export * from './utility/wrun/wrun-hosted-wire.util.js';
|
|
65
|
+
export * from './utility/wrun/wrun-hover.util.js';
|
|
66
|
+
export * from './utility/wrun/wrun-hud-looks.util.js';
|
|
67
|
+
export * from './utility/wrun/wrun-integration-budget.util.js';
|
|
68
|
+
export * from './utility/wrun/wrun-latest-snapshot.js';
|
|
69
|
+
export * from './utility/wrun/wrun-levels-child.util.js';
|
|
70
|
+
export * from './utility/wrun/wrun-lifecycle.contract.js';
|
|
71
|
+
export * from './utility/wrun/wrun-market-facts.util.js';
|
|
72
|
+
export * from './utility/wrun/wrun-output-style.util.js';
|
|
73
|
+
export * from './utility/wrun/wrun-overlay-identity.util.js';
|
|
74
|
+
export * from './utility/wrun/wrun-overlay-result.util.js';
|
|
75
|
+
export * from './utility/wrun/wrun-pack.util.js';
|
|
76
|
+
export * from './utility/wrun/wrun-panel-style.lazy.js';
|
|
77
|
+
export * from './utility/wrun/wrun-panel-style.util.js';
|
|
78
|
+
export * from './utility/wrun/wrun-param-values.util.js';
|
|
79
|
+
export * from './utility/wrun/wrun-refusal.util.js';
|
|
80
|
+
export * from './utility/wrun/wrun-registry-errors.util.js';
|
|
81
|
+
export * from './utility/wrun/wrun-render-select.util.js';
|
|
82
|
+
export * from './utility/wrun/wrun-script-inputs.util.js';
|
|
83
|
+
export * from './utility/wrun/wrun-setting-words.lazy.js';
|
|
84
|
+
export * from './utility/wrun/wrun-setting-words.util.js';
|
|
85
|
+
export * from './utility/wrun/wrun-socket-row-store.js';
|
|
86
|
+
export * from './utility/wrun/wrun-style-flags.util.js';
|
|
87
|
+
export * from './utility/wrun/wrun-table-look.util.js';
|
|
88
|
+
export * from './utility/wrun/wrun-text-look.util.js';
|
|
89
|
+
export * from './utility/wrun/wrun-text-params.util.js';
|
|
90
|
+
export * from './utility/wrun/wrun-tpo-rows.util.js';
|
|
91
|
+
export * from './utility/wrun/wrun-twin-compute-inputs.util.js';
|
|
92
|
+
export * from './utility/wrun/wrun-visibility-table.js';
|
|
93
|
+
export * from './utility/wrun/wrun-volume-profile.util.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// The package entry (generated: node scripts/wrun-chart-host-extract.mjs --index). Every module joins it unless
|
|
2
|
+
// one of its export names resolves to another declaration than the same name already here (an ambiguous
|
|
3
|
+
// `export *`); every module is importable by its subpath either way.
|
|
4
|
+
export * from './host-env.js';
|
|
5
|
+
export * from './constants/governed-exchanges.constants.js';
|
|
6
|
+
export * from './constants/indicator-sets.constants.js';
|
|
7
|
+
export * from './constants/interval.constants.js';
|
|
8
|
+
export * from './constants/scriptEditor/technicalIndicatorScriptKeys.constants.js';
|
|
9
|
+
export * from './constants/tpo-color-schemes.constants.js';
|
|
10
|
+
export * from './indicators/controls/tpo-letter.util.js';
|
|
11
|
+
export * from './indicators/controls/tpo-session.util.js';
|
|
12
|
+
export * from './interfaces/kscript-diagnostics.interface.js';
|
|
13
|
+
export * from './interfaces/om-panel-data.interface.js';
|
|
14
|
+
export * from './interfaces/wrun-runtime.interface.js';
|
|
15
|
+
export * from './utility/chart/calendar-interval.util.js';
|
|
16
|
+
export * from './utility/chart/candle-bar-end.util.js';
|
|
17
|
+
export * from './utility/chart/cme-realtime.util.js';
|
|
18
|
+
export * from './utility/chart/interval-ladder.util.js';
|
|
19
|
+
export * from './utility/chart/kscript-drawing-prep.util.js';
|
|
20
|
+
export * from './utility/chart/kscript-drawing-safe-area.util.js';
|
|
21
|
+
export * from './utility/chart/kscript-legend-entries.util.js';
|
|
22
|
+
export * from './utility/chart/kscript-output-role.util.js';
|
|
23
|
+
export * from './utility/chart/kscript-provenance-keys.util.js';
|
|
24
|
+
export * from './utility/chart/kscript-run-result-normalize.util.js';
|
|
25
|
+
export * from './utility/chart/kscript-run-result-shape.util.js';
|
|
26
|
+
export * from './utility/chart/kscript-titancharts-container.util.js';
|
|
27
|
+
export * from './utility/chart/kscript-viewport-overlays.util.js';
|
|
28
|
+
export * from './utility/chart/om-panel-push-style.util.js';
|
|
29
|
+
export * from './utility/chart/om-panel.util.js';
|
|
30
|
+
export * from './utility/chart/om-series.util.js';
|
|
31
|
+
export * from './utility/chart/om-target.util.js';
|
|
32
|
+
export * from './utility/chart/overlay-output-budget.util.js';
|
|
33
|
+
export * from './utility/chart/overlay-paint-flags.util.js';
|
|
34
|
+
export * from './utility/chart/profile-row-height.util.js';
|
|
35
|
+
export * from './utility/chart/session-interval.util.js';
|
|
36
|
+
export * from './utility/chart/technical-script-legend-value.util.js';
|
|
37
|
+
export * from './utility/chart/trading-day.util.js';
|
|
38
|
+
export * from './utility/chart/wrun-legend-name.util.js';
|
|
39
|
+
export * from './utility/chart/wrun-run-result.util.js';
|
|
40
|
+
export * from './utility/chart/wrun-visibility-chart.util.js';
|
|
41
|
+
export * from './utility/indicators/heatmap-sensitivity.util.js';
|
|
42
|
+
export * from './utility/number-format.util.js';
|
|
43
|
+
export * from './utility/v2/opra-governed.util.js';
|
|
44
|
+
export * from './utility/wrun/wrun-auto-row.util.js';
|
|
45
|
+
export * from './utility/wrun/wrun-batched-marks.util.js';
|
|
46
|
+
export * from './utility/wrun/wrun-batched-readout.util.js';
|
|
47
|
+
export * from './utility/wrun/wrun-box-segment.util.js';
|
|
48
|
+
export * from './utility/wrun/wrun-build-memo.util.js';
|
|
49
|
+
export * from './utility/wrun/wrun-builtin-twin-ports.util.js';
|
|
50
|
+
export * from './utility/wrun/wrun-builtin-twin.util.js';
|
|
51
|
+
export * from './utility/wrun/wrun-canvas-cache.util.js';
|
|
52
|
+
export * from './utility/wrun/wrun-canvas-readout.util.js';
|
|
53
|
+
export * from './utility/wrun/wrun-canvases.util.js';
|
|
54
|
+
export * from './utility/wrun/wrun-cap-notice.util.js';
|
|
55
|
+
export * from './utility/wrun/wrun-card-style.util.js';
|
|
56
|
+
export * from './utility/wrun/wrun-chart-context.util.js';
|
|
57
|
+
export * from './utility/wrun/wrun-chart-names.util.js';
|
|
58
|
+
export * from './utility/wrun/wrun-chart-time.util.js';
|
|
59
|
+
export * from './utility/wrun/wrun-child-overlay-id.util.js';
|
|
60
|
+
export * from './utility/wrun/wrun-color-facts.util.js';
|
|
61
|
+
export * from './utility/wrun/wrun-color-settings.lazy.js';
|
|
62
|
+
export * from './utility/wrun/wrun-color-settings.util.js';
|
|
63
|
+
export * from './utility/wrun/wrun-footprint-modes.util.js';
|
|
64
|
+
export * from './utility/wrun/wrun-handles.util.js';
|
|
65
|
+
export * from './utility/wrun/wrun-heatmap-cell-budget.util.js';
|
|
66
|
+
export * from './utility/wrun/wrun-hosted-wire-caps.js';
|
|
67
|
+
export * from './utility/wrun/wrun-hosted-wire.util.js';
|
|
68
|
+
export * from './utility/wrun/wrun-hover.util.js';
|
|
69
|
+
export * from './utility/wrun/wrun-hud-looks.util.js';
|
|
70
|
+
export * from './utility/wrun/wrun-integration-budget.util.js';
|
|
71
|
+
export * from './utility/wrun/wrun-latest-snapshot.js';
|
|
72
|
+
export * from './utility/wrun/wrun-levels-child.util.js';
|
|
73
|
+
export * from './utility/wrun/wrun-lifecycle.contract.js';
|
|
74
|
+
export * from './utility/wrun/wrun-market-facts.util.js';
|
|
75
|
+
export * from './utility/wrun/wrun-output-style.util.js';
|
|
76
|
+
export * from './utility/wrun/wrun-overlay-identity.util.js';
|
|
77
|
+
export * from './utility/wrun/wrun-overlay-result.util.js';
|
|
78
|
+
export * from './utility/wrun/wrun-pack.util.js';
|
|
79
|
+
export * from './utility/wrun/wrun-panel-style.lazy.js';
|
|
80
|
+
export * from './utility/wrun/wrun-panel-style.util.js';
|
|
81
|
+
export * from './utility/wrun/wrun-param-values.util.js';
|
|
82
|
+
export * from './utility/wrun/wrun-refusal.util.js';
|
|
83
|
+
export * from './utility/wrun/wrun-registry-errors.util.js';
|
|
84
|
+
export * from './utility/wrun/wrun-render-select.util.js';
|
|
85
|
+
export * from './utility/wrun/wrun-script-inputs.util.js';
|
|
86
|
+
export * from './utility/wrun/wrun-setting-words.lazy.js';
|
|
87
|
+
export * from './utility/wrun/wrun-setting-words.util.js';
|
|
88
|
+
export * from './utility/wrun/wrun-socket-row-store.js';
|
|
89
|
+
export * from './utility/wrun/wrun-style-flags.util.js';
|
|
90
|
+
export * from './utility/wrun/wrun-table-look.util.js';
|
|
91
|
+
export * from './utility/wrun/wrun-text-look.util.js';
|
|
92
|
+
export * from './utility/wrun/wrun-text-params.util.js';
|
|
93
|
+
export * from './utility/wrun/wrun-tpo-rows.util.js';
|
|
94
|
+
export * from './utility/wrun/wrun-twin-compute-inputs.util.js';
|
|
95
|
+
export * from './utility/wrun/wrun-visibility-table.js';
|
|
96
|
+
export * from './utility/wrun/wrun-volume-profile.util.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { generateTpoLetters } from './tpo-session.util.js';
|
|
2
|
+
const MALFORMED_TPO_LETTER = '?';
|
|
3
|
+
export function formatTpoLetterTolerant(blockId, sessionType = 'Daily', tpoBlockSizeMinutes = 30) {
|
|
4
|
+
try {
|
|
5
|
+
return generateTpoLetters([blockId], sessionType, tpoBlockSizeMinutes)[0] ?? MALFORMED_TPO_LETTER;
|
|
6
|
+
}
|
|
7
|
+
catch {
|
|
8
|
+
return MALFORMED_TPO_LETTER;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export function generateTpoLettersTolerant(blockIds, sessionType, tpoBlockSizeMinutes) {
|
|
12
|
+
return blockIds.map((blockId) => formatTpoLetterTolerant(blockId, sessionType, tpoBlockSizeMinutes));
|
|
13
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export type TpoTimeRange = {
|
|
2
|
+
start_time?: unknown;
|
|
3
|
+
end_time?: unknown;
|
|
4
|
+
timezone?: unknown;
|
|
5
|
+
};
|
|
6
|
+
export interface TpoSessionWindow {
|
|
7
|
+
startSec: number;
|
|
8
|
+
endSec: number;
|
|
9
|
+
fullSession: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const TPO_TRADING_HOUR_TIME_RANGES: Record<string, TpoTimeRange>;
|
|
12
|
+
/** Settings projection every TPO time-range decision reads. */
|
|
13
|
+
export interface TpoTimeRangeSettings {
|
|
14
|
+
customTimeRange?: unknown;
|
|
15
|
+
tradingHour?: unknown;
|
|
16
|
+
sessionType?: unknown;
|
|
17
|
+
customSessions?: TpoCustomSessionsSettings;
|
|
18
|
+
tradingDayAnchor?: unknown;
|
|
19
|
+
exchange?: unknown;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The trading-day anchored time range that APPLIES to these settings, or
|
|
23
|
+
* undefined. The anchor only shapes the default full-day case: an explicit
|
|
24
|
+
* custom range, a non-'All Hours' trading hour, a non-Daily session type, or
|
|
25
|
+
* active custom sessions each keep their existing behavior.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolveTradingDayTpoTimeRange(settings: TpoTimeRangeSettings | null | undefined): TpoTimeRange | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Precedence: explicit custom range, then the trading-day anchored range
|
|
30
|
+
* (which itself yields to non-'All Hours' trading hours and custom
|
|
31
|
+
* sessions), then the trading-hour preset table.
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveTpoSettingsTimeRange(settings: TpoTimeRangeSettings): TpoTimeRange | undefined;
|
|
34
|
+
export declare function resolveTpoTimeRangeWindow(timestamp: number, customTimeRange?: TpoTimeRange): TpoSessionWindow | undefined;
|
|
35
|
+
export declare function containsTpoWindowTime(timestamp: number, window: TpoSessionWindow): boolean;
|
|
36
|
+
export declare function getTpoSessionStart(timestamp: number, sessionType: string, customTimeRange?: TpoTimeRange): number;
|
|
37
|
+
export declare function getNextTpoSessionStart(timestamp: number, sessionType: string, customTimeRange?: TpoTimeRange): number;
|
|
38
|
+
export declare function generateTpoLetters(blockIds: number[], _sessionType: string, _tpoBlockSizeMinutes: number): string[];
|
|
39
|
+
export interface TpoCustomSessionSegment {
|
|
40
|
+
label: string;
|
|
41
|
+
/** 'HH:MM' in UTC. */
|
|
42
|
+
start: string;
|
|
43
|
+
/** 'HH:MM' in UTC; '00:00' (or '24:00') as an end means midnight. An end
|
|
44
|
+
* earlier than the start wraps past midnight into the next day. */
|
|
45
|
+
end: string;
|
|
46
|
+
color: string;
|
|
47
|
+
}
|
|
48
|
+
export interface TpoCustomSessionsSettings {
|
|
49
|
+
enabled?: boolean;
|
|
50
|
+
segments?: TpoCustomSessionSegment[];
|
|
51
|
+
}
|
|
52
|
+
/** Editable starting template (Asia / London / New York / Close, UTC) — a
|
|
53
|
+
* default for the editor, never a hard-coded behavior. */
|
|
54
|
+
export declare const DEFAULT_TPO_CUSTOM_SESSION_SEGMENTS: readonly TpoCustomSessionSegment[];
|
|
55
|
+
interface NormalizedTpoSegment extends TpoCustomSessionSegment {
|
|
56
|
+
startMinute: number;
|
|
57
|
+
/** Minutes past the START day's midnight: above 1440 for the segment that
|
|
58
|
+
* wraps past midnight ('22:00'-'11:00' is 1320..2100). */
|
|
59
|
+
endMinute: number;
|
|
60
|
+
index: number;
|
|
61
|
+
}
|
|
62
|
+
/** Validate + order user segments; null when the set is unusable (bad times,
|
|
63
|
+
* zero-length, or overlapping segments). Gaps between segments are allowed,
|
|
64
|
+
* and one segment may wrap past midnight. */
|
|
65
|
+
export declare function normalizeTpoCustomSessionSegments(value: unknown): NormalizedTpoSegment[] | null;
|
|
66
|
+
export declare function resolveTpoCustomSessionsSetting(settings: {
|
|
67
|
+
sessionType?: unknown;
|
|
68
|
+
customSessions?: TpoCustomSessionsSettings;
|
|
69
|
+
} | null | undefined): NormalizedTpoSegment[] | null;
|
|
70
|
+
/**
|
|
71
|
+
* Fetch-alignment range for an active custom-session set, or undefined to keep
|
|
72
|
+
* plain UTC-day alignment. The fetch window must be cut where no session is
|
|
73
|
+
* open, or its edge returns a session fragment: that instant is UTC midnight
|
|
74
|
+
* until a segment wraps past it, then it is the wrapped session's end.
|
|
75
|
+
*/
|
|
76
|
+
export declare function resolveTpoCustomSessionsAlignmentRange(segments: readonly NormalizedTpoSegment[]): TpoTimeRange | undefined;
|
|
77
|
+
/** Data-affecting projection of the custom-session config (colors excluded):
|
|
78
|
+
* used for cache keys and refetch triggers. Empty string when inactive. */
|
|
79
|
+
export declare function tpoCustomSessionsDataKey(settings: {
|
|
80
|
+
sessionType?: unknown;
|
|
81
|
+
customSessions?: TpoCustomSessionsSettings;
|
|
82
|
+
} | null | undefined): string;
|
|
83
|
+
export interface TpoCustomSessionWindow {
|
|
84
|
+
startSec: number;
|
|
85
|
+
endSec: number;
|
|
86
|
+
index: number;
|
|
87
|
+
label: string;
|
|
88
|
+
color: string;
|
|
89
|
+
}
|
|
90
|
+
/** The segment window containing `timestamp` (unix seconds, UTC), or null when
|
|
91
|
+
* the timestamp falls in a gap between segments. */
|
|
92
|
+
export declare function getTpoCustomSessionWindow(timestamp: number, segments: readonly NormalizedTpoSegment[]): TpoCustomSessionWindow | null;
|
|
93
|
+
/** The next segment start strictly after `timestamp` (same day or the first
|
|
94
|
+
* segment of the next day). */
|
|
95
|
+
export declare function getNextTpoCustomSessionStart(timestamp: number, segments: readonly NormalizedTpoSegment[]): number;
|
|
96
|
+
/** Flat 4-stop ramps (one per segment) for titan's periodPalettes, so a
|
|
97
|
+
* period's paletteIndex — the segment index — colors the whole profile. */
|
|
98
|
+
export declare function buildTpoCustomSessionPeriodPalettes(segments: readonly NormalizedTpoSegment[]): string[][];
|
|
99
|
+
export {};
|