@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
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/** The legend stack's box in plot CSS pixels (origin: the plot's top-left corner). */
|
|
2
|
+
export interface LegendBox {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
right: number;
|
|
6
|
+
bottom: number;
|
|
7
|
+
}
|
|
8
|
+
/** A pane's plot box in CSS px: the legend section's size (the pane's height, the plot's width without the axis). */
|
|
9
|
+
export interface PaneBox {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The engine's `CardSafeAreaInsets` (titan `interfaces/drawing.ts`): CSS px a
|
|
15
|
+
* safe-area widget keeps from the pane's top edge at its left and right
|
|
16
|
+
* corners and from the pane's right edge.
|
|
17
|
+
*/
|
|
18
|
+
export interface CardSafeAreaInsets {
|
|
19
|
+
topLeft: number;
|
|
20
|
+
topRight: number;
|
|
21
|
+
right: number;
|
|
22
|
+
}
|
|
23
|
+
/** One measure of a chart's pane chrome. */
|
|
24
|
+
export interface ChartChromeSafeArea {
|
|
25
|
+
/** Insets per pane: `main` for the price pane, else the hosting meta's id. */
|
|
26
|
+
panes: Record<string, CardSafeAreaInsets>;
|
|
27
|
+
/** The price legend's bottom in the chart cell (`#tc-container-N`) px plus the gap; null without a legend. */
|
|
28
|
+
hudTopLeft: number | null;
|
|
29
|
+
}
|
|
30
|
+
export type ChartChromeSafeAreaListener = (measure: ChartChromeSafeArea) => void;
|
|
31
|
+
export interface LegendSafeAreaChart {
|
|
32
|
+
/** TitanCharts' own container; the tc-container above it carries the host rows. */
|
|
33
|
+
mainContainerDiv?: unknown;
|
|
34
|
+
metadata?: unknown;
|
|
35
|
+
updateDrawings?(overlayId: string, drawings: unknown[]): void;
|
|
36
|
+
/** The engine's card safe-area door (T-CARDS); absent on an older engine, so every call is guarded. */
|
|
37
|
+
setCardSafeArea?(paneId: string, insets: CardSafeAreaInsets | null): void;
|
|
38
|
+
}
|
|
39
|
+
/** Air between the legend's last row (or an earlier stacked group) and the shifted group. */
|
|
40
|
+
export declare const LEGEND_SAFE_AREA_GAP_PX = 8;
|
|
41
|
+
/** The price-axis tags a right-anchored widget steps past (DW06). */
|
|
42
|
+
export declare const CHART_AXIS_TAG_CLEARANCE_PX = 56;
|
|
43
|
+
/** The pane action bar a top-right or top-centre widget steps under (DW06); the compare strip adds to it. */
|
|
44
|
+
export declare const CHART_ACTION_BAR_CLEARANCE_PX = 40;
|
|
45
|
+
/**
|
|
46
|
+
* How far down (CSS px) the set's `top_left` group must move to sit
|
|
47
|
+
* `LEGEND_SAFE_AREA_GAP_PX` under the legend: 0 when there is no legend, no
|
|
48
|
+
* group, or the two boxes do not meet. With a `pane` box the shift stops
|
|
49
|
+
* where the group's bottom meets the pane's (item 28).
|
|
50
|
+
*/
|
|
51
|
+
export declare function legendSafeAreaShift(drawings: readonly unknown[], legend: LegendBox | null, pane?: PaneBox | null): number;
|
|
52
|
+
/** The set with its `top_left` group moved down by `dy`; the same array when `dy` is 0. */
|
|
53
|
+
export declare function shiftLegendSafeArea(drawings: unknown[], dy: number): unknown[];
|
|
54
|
+
/** `shiftLegendSafeArea` by `legendSafeAreaShift`. */
|
|
55
|
+
export declare function applyLegendSafeArea(drawings: unknown[], legend: LegendBox | null): unknown[];
|
|
56
|
+
/** One chart's legend pane: titan's container, the tc-container above it (the
|
|
57
|
+
* host rows), and the main section's legend section (the plot origin). The
|
|
58
|
+
* wrun table chrome reads the same legend through these (wrun-table-chrome.util). */
|
|
59
|
+
export interface LegendPane {
|
|
60
|
+
main: Element;
|
|
61
|
+
root: Element;
|
|
62
|
+
plot: Element;
|
|
63
|
+
}
|
|
64
|
+
export declare function legendPaneOf(tc: LegendSafeAreaChart): LegendPane | null;
|
|
65
|
+
export declare function legendRowsOf(pane: LegendPane): Element[];
|
|
66
|
+
export declare function measureLegendBox(pane: LegendPane): LegendBox | null;
|
|
67
|
+
/**
|
|
68
|
+
* One fresh measure of the chart's pane chrome (DW06): the price pane's
|
|
69
|
+
* insets (`main`: legend bottom plus the gap, the action bar plus the compare
|
|
70
|
+
* strip, the axis tags), each offchart pane's insets (its legend row plus the
|
|
71
|
+
* gap, its move buttons plus the gap or else the plain edge, the axis tags)
|
|
72
|
+
* and the HUD layer's top-left inset. Without a pane DOM: no panes, no inset.
|
|
73
|
+
*/
|
|
74
|
+
export declare function measureChartChromeSafeArea(tc: LegendSafeAreaChart): ChartChromeSafeArea;
|
|
75
|
+
/**
|
|
76
|
+
* Follows the chart's pane chrome: `listener` gets every new measure (the
|
|
77
|
+
* legend grew or shrank, a pane joined or left, the compare strip came or
|
|
78
|
+
* went) until the returned function is called. The tracker stays alive for a
|
|
79
|
+
* listener even with no drawings mounted.
|
|
80
|
+
*/
|
|
81
|
+
export declare function watchChartChromeSafeArea(tc: LegendSafeAreaChart, listener: ChartChromeSafeAreaListener): () => void;
|
|
82
|
+
/**
|
|
83
|
+
* The set to hand `updateDrawings`: the `top_left` group moved under the
|
|
84
|
+
* chart's legend when they meet, a stacking overlay's corner groups moved
|
|
85
|
+
* clear of the earlier groups at the same corner, `safeArea` handles stepped
|
|
86
|
+
* past the axis tags and the action bar, and plain `top_right` / `top_center`
|
|
87
|
+
* groups dropped under their pane's button strip. Every push of an overlay's
|
|
88
|
+
* drawings goes through here (a full apply, a replay-lane reveal, a clear), so
|
|
89
|
+
* the tracker always holds the mounted set of each overlay that owns a corner
|
|
90
|
+
* group, a handle under a button strip or a `safeArea` record (a card's
|
|
91
|
+
* insets ride the engine door) and can re-mount it when the chrome or an
|
|
92
|
+
* earlier group changes; a set without one (the clear included) drops the
|
|
93
|
+
* overlay from the tracker, and the overlays stacked on it follow.
|
|
94
|
+
*/
|
|
95
|
+
export declare function mountWithLegendSafeArea(tc: LegendSafeAreaChart, overlayId: string, drawings: unknown[]): unknown[];
|