@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,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The inputs that change a twin's series, read from its declared rows
|
|
3
|
+
* (`settings.scriptInputs`, the script inputs' flat list), the sheet-free lane:
|
|
4
|
+
* every row that stands for one sheet param by the hosted lane's own filter
|
|
5
|
+
* (wrunSheetParamsFromDeclarations: a composite's members, never the
|
|
6
|
+
* virtual composite row; a colour-array row as one colour param per member
|
|
7
|
+
* since the parity round; never a divider or a note), minus
|
|
8
|
+
* what only paints: a Style page row (`styleOf`, its Visible rows
|
|
9
|
+
* included), a colour row and an om line-style knob (a select whose values
|
|
10
|
+
* are style names). The kScript stand-in keys a twin's last drawing on these
|
|
11
|
+
* values, so a period change moves the key and a colour pick or a Visible
|
|
12
|
+
* flip does not. Declaration order, each name once; empty without rows.
|
|
13
|
+
*/
|
|
14
|
+
export declare function wrunTwinComputeInputNames(settings: unknown): string[];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The inputs that change a built-in's proven twin's series, read off its declared rows: a thin fact
|
|
3
|
+
* the kScript stand-in (kscript-standin.util) keys a twin's stored drawing on synchronously, at the
|
|
4
|
+
* cached candle paint, before any wrun loader has run. It lives here, beside the script inputs it
|
|
5
|
+
* mirrors (wrun-script-inputs.util re-exports it), so the stand-in never pulls the script inputs'
|
|
6
|
+
* graph onto the boot path (docs/features/kscript/wrun/wrun-browser-runtime.md, "Boot doors").
|
|
7
|
+
*/
|
|
8
|
+
import { isWrunStyleRowKey } from './wrun-color-facts.util.js';
|
|
9
|
+
/** The row types that stand for one sheet param each (the hosted lane's
|
|
10
|
+
* list, wrun-param-map.util), minus the colour row. */
|
|
11
|
+
const WRUN_TWIN_COMPUTE_ROW_TYPES = new Set([
|
|
12
|
+
'number',
|
|
13
|
+
'int',
|
|
14
|
+
'boolean',
|
|
15
|
+
'select',
|
|
16
|
+
'time',
|
|
17
|
+
'price',
|
|
18
|
+
'multi',
|
|
19
|
+
'symbol',
|
|
20
|
+
'text',
|
|
21
|
+
]);
|
|
22
|
+
function isRecord(value) {
|
|
23
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
24
|
+
}
|
|
25
|
+
function nonEmptyString(value) {
|
|
26
|
+
return typeof value === 'string' && value.trim() !== '' ? value : undefined;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The inputs that change a twin's series, read from its declared rows
|
|
30
|
+
* (`settings.scriptInputs`, the script inputs' flat list), the sheet-free lane:
|
|
31
|
+
* every row that stands for one sheet param by the hosted lane's own filter
|
|
32
|
+
* (wrunSheetParamsFromDeclarations: a composite's members, never the
|
|
33
|
+
* virtual composite row; a colour-array row as one colour param per member
|
|
34
|
+
* since the parity round; never a divider or a note), minus
|
|
35
|
+
* what only paints: a Style page row (`styleOf`, its Visible rows
|
|
36
|
+
* included), a colour row and an om line-style knob (a select whose values
|
|
37
|
+
* are style names). The kScript stand-in keys a twin's last drawing on these
|
|
38
|
+
* values, so a period change moves the key and a colour pick or a Visible
|
|
39
|
+
* flip does not. Declaration order, each name once; empty without rows.
|
|
40
|
+
*/
|
|
41
|
+
export function wrunTwinComputeInputNames(settings) {
|
|
42
|
+
const rows = isRecord(settings) && Array.isArray(settings.scriptInputs) ? settings.scriptInputs : [];
|
|
43
|
+
const names = new Set();
|
|
44
|
+
for (const row of rows) {
|
|
45
|
+
if (!isRecord(row))
|
|
46
|
+
continue;
|
|
47
|
+
const name = nonEmptyString(row.name);
|
|
48
|
+
if (name === undefined || isWrunStyleRowKey(name) || row.styleOf !== undefined || row.virtual === true)
|
|
49
|
+
continue;
|
|
50
|
+
if (typeof row.type !== 'string' || !WRUN_TWIN_COMPUTE_ROW_TYPES.has(row.type))
|
|
51
|
+
continue;
|
|
52
|
+
const options = Array.isArray(row.options) ? row.options.map(Number) : undefined;
|
|
53
|
+
if (row.type === 'select' && options?.some((value) => !Number.isFinite(value)))
|
|
54
|
+
continue;
|
|
55
|
+
names.add(name);
|
|
56
|
+
}
|
|
57
|
+
return [...names];
|
|
58
|
+
}
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ONE visibility table (WRUN-REPORTS-CLASSES class C2): every kind a wrun sheet can draw, its Style-row
|
|
3
|
+
* target and how its Visible row reaches the chart. Every Style-row builder, the paint seam's writes, the run
|
|
4
|
+
* result's mounts, the visibility apply and the drawing door read their targets from here, never from a list of
|
|
5
|
+
* their own (docs/features/kscript/wrun/wrun-typed-inputs.md, "The visibility table").
|
|
6
|
+
*
|
|
7
|
+
* The guard is the type: the table is checked against the kit's section union (`WrunSectionKind`, the precedent
|
|
8
|
+
* wrun-section-kinds.util) plus the outputs, and each kind table against its kind union, so a kit that adds a
|
|
9
|
+
* section or a kind fails typecheck here until it has a rule. Groups, one mechanism per family:
|
|
10
|
+
* - `nested`: a plot under the overlay or a series pane; no sheet write, hidden in place after every integration
|
|
11
|
+
* (wrun-run-result.util applyWrunOutputVisibility, titan's nested `isHidden`).
|
|
12
|
+
* - `drawing`: a drawing record; no sheet write, dropped at the drawing door (kscript-drawings.util) by the
|
|
13
|
+
* overlay's settings, so the last one gone mounts an explicit empty set.
|
|
14
|
+
* - `skip`: a declaration the builder leaves out; the row writes `visible` on it (wrunSheetWithSettings) and the
|
|
15
|
+
* mount builds nothing. Titan's HUD layer paints a corner label and a table without reading a nested plot's
|
|
16
|
+
* hidden flag (alpha.1098 HudLayer.probe reads paintSuspended only), so renderers never hide in place.
|
|
17
|
+
* `'not-drawn'`: no Style target (the strategy payload, the HUD cards and legend, the stats strip's look, panes).
|
|
18
|
+
*
|
|
19
|
+
* Rides the boot path with the paint seam that reads it (wrun-color-settings.util), so it holds the rules and
|
|
20
|
+
* the one-entry reads only; the walk over a whole sheet lives with the row builder (wrun-script-inputs.util
|
|
21
|
+
* wrunVisibilityTargets). Imports types only.
|
|
22
|
+
*/
|
|
23
|
+
import type { WrunIndicatorMetadata, WrunMetadataOutput } from '../../interfaces/wrun-runtime.interface.js';
|
|
24
|
+
/** How a Visible row reaches the chart (the module note). */
|
|
25
|
+
export type WrunVisibilityGroup = 'nested' | 'drawing' | 'skip';
|
|
26
|
+
export interface WrunVisibilityKindRule {
|
|
27
|
+
group: WrunVisibilityGroup;
|
|
28
|
+
}
|
|
29
|
+
/** How a drawn output styles on the Style page (wrun-script-inputs.util stylePropertiesOf). */
|
|
30
|
+
export type WrunOutputStyleKind = 'line' | 'area' | 'bar' | 'mark' | 'candle';
|
|
31
|
+
/** A plot word's rule: its group, how it styles (absent: Visible only), the titan family the outputs loop mounts
|
|
32
|
+
* it as (absent: it mounts elsewhere) and its paint family (wrun-style-patch.util). */
|
|
33
|
+
export interface WrunOutputPlotRule extends WrunVisibilityKindRule {
|
|
34
|
+
style?: WrunOutputStyleKind;
|
|
35
|
+
titan?: 'spline' | 'area' | 'bar' | 'point';
|
|
36
|
+
paint?: 'line' | 'area' | 'bar' | 'candle' | 'shape' | 'scatter';
|
|
37
|
+
}
|
|
38
|
+
/** Every plot word the kit's schema accepts. A data-only `''` draws nothing (its `barcolor: true` form is the
|
|
39
|
+
* candle tint, WRUN_BARCOLOR_OUTPUT_RULE); an inset output is the inset child the run result builds from it. */
|
|
40
|
+
export declare const WRUN_OUTPUT_PLOT_RULES: Readonly<{
|
|
41
|
+
readonly line: {
|
|
42
|
+
readonly group: "nested";
|
|
43
|
+
readonly style: "line";
|
|
44
|
+
readonly titan: "spline";
|
|
45
|
+
readonly paint: "line";
|
|
46
|
+
};
|
|
47
|
+
readonly area: {
|
|
48
|
+
readonly group: "nested";
|
|
49
|
+
readonly style: "area";
|
|
50
|
+
readonly titan: "area";
|
|
51
|
+
readonly paint: "area";
|
|
52
|
+
};
|
|
53
|
+
readonly bar: {
|
|
54
|
+
readonly group: "nested";
|
|
55
|
+
readonly style: "bar";
|
|
56
|
+
readonly titan: "bar";
|
|
57
|
+
readonly paint: "bar";
|
|
58
|
+
};
|
|
59
|
+
readonly histogram: {
|
|
60
|
+
readonly group: "nested";
|
|
61
|
+
readonly style: "bar";
|
|
62
|
+
readonly titan: "bar";
|
|
63
|
+
readonly paint: "bar";
|
|
64
|
+
};
|
|
65
|
+
readonly candle: {
|
|
66
|
+
readonly group: "nested";
|
|
67
|
+
readonly style: "candle";
|
|
68
|
+
readonly titan: "spline";
|
|
69
|
+
readonly paint: "candle";
|
|
70
|
+
};
|
|
71
|
+
readonly shape: {
|
|
72
|
+
readonly group: "nested";
|
|
73
|
+
readonly style: "mark";
|
|
74
|
+
readonly titan: "point";
|
|
75
|
+
readonly paint: "shape";
|
|
76
|
+
};
|
|
77
|
+
readonly scatter: {
|
|
78
|
+
readonly group: "nested";
|
|
79
|
+
readonly style: "mark";
|
|
80
|
+
readonly titan: "point";
|
|
81
|
+
readonly paint: "scatter";
|
|
82
|
+
};
|
|
83
|
+
readonly inset: {
|
|
84
|
+
readonly group: "skip";
|
|
85
|
+
};
|
|
86
|
+
readonly '': "not-drawn";
|
|
87
|
+
}>;
|
|
88
|
+
/** The candle tint: mounted under the `barcolor` plot, whose own `isHidden` titan tints the candles by. */
|
|
89
|
+
export declare const WRUN_BARCOLOR_OUTPUT_RULE: WrunOutputPlotRule;
|
|
90
|
+
export declare const WRUN_BARCOLOR_PLOT_KEY = "barcolor";
|
|
91
|
+
export declare const WRUN_RENDERER_KIND_RULES: Readonly<{
|
|
92
|
+
readonly inset: {
|
|
93
|
+
readonly group: "skip";
|
|
94
|
+
};
|
|
95
|
+
readonly text: {
|
|
96
|
+
readonly group: "skip";
|
|
97
|
+
};
|
|
98
|
+
readonly label: {
|
|
99
|
+
readonly group: "skip";
|
|
100
|
+
};
|
|
101
|
+
readonly table: {
|
|
102
|
+
readonly group: "skip";
|
|
103
|
+
};
|
|
104
|
+
readonly shape: {
|
|
105
|
+
readonly group: "skip";
|
|
106
|
+
};
|
|
107
|
+
readonly stats_row: {
|
|
108
|
+
readonly group: "skip";
|
|
109
|
+
};
|
|
110
|
+
readonly bgcolor: {
|
|
111
|
+
readonly group: "skip";
|
|
112
|
+
};
|
|
113
|
+
readonly barcolor: {
|
|
114
|
+
readonly group: "skip";
|
|
115
|
+
};
|
|
116
|
+
}>;
|
|
117
|
+
/** The mini-chart grid rides the outputs as one plot the integration lifts into the grid overlay: `skip`. */
|
|
118
|
+
export declare const WRUN_DRAWING_KIND_RULES: Readonly<{
|
|
119
|
+
readonly ladder: {
|
|
120
|
+
readonly group: "drawing";
|
|
121
|
+
};
|
|
122
|
+
readonly feed: {
|
|
123
|
+
readonly group: "drawing";
|
|
124
|
+
};
|
|
125
|
+
readonly meter: {
|
|
126
|
+
readonly group: "drawing";
|
|
127
|
+
};
|
|
128
|
+
readonly line: {
|
|
129
|
+
readonly group: "drawing";
|
|
130
|
+
};
|
|
131
|
+
readonly box: {
|
|
132
|
+
readonly group: "drawing";
|
|
133
|
+
};
|
|
134
|
+
readonly polyline: {
|
|
135
|
+
readonly group: "drawing";
|
|
136
|
+
};
|
|
137
|
+
readonly label: {
|
|
138
|
+
readonly group: "drawing";
|
|
139
|
+
};
|
|
140
|
+
readonly card: {
|
|
141
|
+
readonly group: "drawing";
|
|
142
|
+
};
|
|
143
|
+
readonly minicharts: {
|
|
144
|
+
readonly group: "skip";
|
|
145
|
+
};
|
|
146
|
+
}>;
|
|
147
|
+
export declare const WRUN_PROFILE_KIND_RULES: Readonly<{
|
|
148
|
+
readonly footprint: {
|
|
149
|
+
readonly group: "skip";
|
|
150
|
+
};
|
|
151
|
+
readonly tpo: {
|
|
152
|
+
readonly group: "skip";
|
|
153
|
+
};
|
|
154
|
+
readonly volume: {
|
|
155
|
+
readonly group: "skip";
|
|
156
|
+
};
|
|
157
|
+
}>;
|
|
158
|
+
/** A line's `fill_to` shading follows its line's row. */
|
|
159
|
+
export declare const WRUN_HANDLE_KIND_RULES: Readonly<{
|
|
160
|
+
readonly line: {
|
|
161
|
+
readonly group: "drawing";
|
|
162
|
+
};
|
|
163
|
+
readonly box: {
|
|
164
|
+
readonly group: "drawing";
|
|
165
|
+
};
|
|
166
|
+
readonly label: {
|
|
167
|
+
readonly group: "drawing";
|
|
168
|
+
};
|
|
169
|
+
readonly polyline: {
|
|
170
|
+
readonly group: "drawing";
|
|
171
|
+
};
|
|
172
|
+
}>;
|
|
173
|
+
export type WrunVisibilityRule = {
|
|
174
|
+
prefix: string;
|
|
175
|
+
group: WrunVisibilityGroup;
|
|
176
|
+
} | {
|
|
177
|
+
prefix: string;
|
|
178
|
+
kinds: Readonly<Record<string, WrunVisibilityKindRule | 'not-drawn'>>;
|
|
179
|
+
};
|
|
180
|
+
/** THE table, in Style page order (its key order is the order a sheet's targets are offered). */
|
|
181
|
+
export declare const WRUN_VISIBILITY_RULES: Readonly<{
|
|
182
|
+
readonly outputs: {
|
|
183
|
+
readonly prefix: "";
|
|
184
|
+
readonly kinds: Readonly<{
|
|
185
|
+
readonly line: {
|
|
186
|
+
readonly group: "nested";
|
|
187
|
+
readonly style: "line";
|
|
188
|
+
readonly titan: "spline";
|
|
189
|
+
readonly paint: "line";
|
|
190
|
+
};
|
|
191
|
+
readonly area: {
|
|
192
|
+
readonly group: "nested";
|
|
193
|
+
readonly style: "area";
|
|
194
|
+
readonly titan: "area";
|
|
195
|
+
readonly paint: "area";
|
|
196
|
+
};
|
|
197
|
+
readonly bar: {
|
|
198
|
+
readonly group: "nested";
|
|
199
|
+
readonly style: "bar";
|
|
200
|
+
readonly titan: "bar";
|
|
201
|
+
readonly paint: "bar";
|
|
202
|
+
};
|
|
203
|
+
readonly histogram: {
|
|
204
|
+
readonly group: "nested";
|
|
205
|
+
readonly style: "bar";
|
|
206
|
+
readonly titan: "bar";
|
|
207
|
+
readonly paint: "bar";
|
|
208
|
+
};
|
|
209
|
+
readonly candle: {
|
|
210
|
+
readonly group: "nested";
|
|
211
|
+
readonly style: "candle";
|
|
212
|
+
readonly titan: "spline";
|
|
213
|
+
readonly paint: "candle";
|
|
214
|
+
};
|
|
215
|
+
readonly shape: {
|
|
216
|
+
readonly group: "nested";
|
|
217
|
+
readonly style: "mark";
|
|
218
|
+
readonly titan: "point";
|
|
219
|
+
readonly paint: "shape";
|
|
220
|
+
};
|
|
221
|
+
readonly scatter: {
|
|
222
|
+
readonly group: "nested";
|
|
223
|
+
readonly style: "mark";
|
|
224
|
+
readonly titan: "point";
|
|
225
|
+
readonly paint: "scatter";
|
|
226
|
+
};
|
|
227
|
+
readonly inset: {
|
|
228
|
+
readonly group: "skip";
|
|
229
|
+
};
|
|
230
|
+
readonly '': "not-drawn";
|
|
231
|
+
}>;
|
|
232
|
+
};
|
|
233
|
+
readonly ranges: {
|
|
234
|
+
readonly prefix: "range";
|
|
235
|
+
readonly group: "nested";
|
|
236
|
+
};
|
|
237
|
+
readonly fills: {
|
|
238
|
+
readonly prefix: "fill";
|
|
239
|
+
readonly group: "nested";
|
|
240
|
+
};
|
|
241
|
+
readonly boxes: {
|
|
242
|
+
readonly prefix: "box";
|
|
243
|
+
readonly group: "nested";
|
|
244
|
+
};
|
|
245
|
+
readonly renderers: {
|
|
246
|
+
readonly prefix: "text";
|
|
247
|
+
readonly kinds: Readonly<{
|
|
248
|
+
readonly inset: {
|
|
249
|
+
readonly group: "skip";
|
|
250
|
+
};
|
|
251
|
+
readonly text: {
|
|
252
|
+
readonly group: "skip";
|
|
253
|
+
};
|
|
254
|
+
readonly label: {
|
|
255
|
+
readonly group: "skip";
|
|
256
|
+
};
|
|
257
|
+
readonly table: {
|
|
258
|
+
readonly group: "skip";
|
|
259
|
+
};
|
|
260
|
+
readonly shape: {
|
|
261
|
+
readonly group: "skip";
|
|
262
|
+
};
|
|
263
|
+
readonly stats_row: {
|
|
264
|
+
readonly group: "skip";
|
|
265
|
+
};
|
|
266
|
+
readonly bgcolor: {
|
|
267
|
+
readonly group: "skip";
|
|
268
|
+
};
|
|
269
|
+
readonly barcolor: {
|
|
270
|
+
readonly group: "skip";
|
|
271
|
+
};
|
|
272
|
+
}>;
|
|
273
|
+
};
|
|
274
|
+
readonly segments: {
|
|
275
|
+
readonly prefix: "segment";
|
|
276
|
+
readonly group: "drawing";
|
|
277
|
+
};
|
|
278
|
+
readonly drawings: {
|
|
279
|
+
readonly prefix: "drawing";
|
|
280
|
+
readonly kinds: Readonly<{
|
|
281
|
+
readonly ladder: {
|
|
282
|
+
readonly group: "drawing";
|
|
283
|
+
};
|
|
284
|
+
readonly feed: {
|
|
285
|
+
readonly group: "drawing";
|
|
286
|
+
};
|
|
287
|
+
readonly meter: {
|
|
288
|
+
readonly group: "drawing";
|
|
289
|
+
};
|
|
290
|
+
readonly line: {
|
|
291
|
+
readonly group: "drawing";
|
|
292
|
+
};
|
|
293
|
+
readonly box: {
|
|
294
|
+
readonly group: "drawing";
|
|
295
|
+
};
|
|
296
|
+
readonly polyline: {
|
|
297
|
+
readonly group: "drawing";
|
|
298
|
+
};
|
|
299
|
+
readonly label: {
|
|
300
|
+
readonly group: "drawing";
|
|
301
|
+
};
|
|
302
|
+
readonly card: {
|
|
303
|
+
readonly group: "drawing";
|
|
304
|
+
};
|
|
305
|
+
readonly minicharts: {
|
|
306
|
+
readonly group: "skip";
|
|
307
|
+
};
|
|
308
|
+
}>;
|
|
309
|
+
};
|
|
310
|
+
readonly handles: {
|
|
311
|
+
readonly prefix: "handles";
|
|
312
|
+
readonly kinds: Readonly<{
|
|
313
|
+
readonly line: {
|
|
314
|
+
readonly group: "drawing";
|
|
315
|
+
};
|
|
316
|
+
readonly box: {
|
|
317
|
+
readonly group: "drawing";
|
|
318
|
+
};
|
|
319
|
+
readonly label: {
|
|
320
|
+
readonly group: "drawing";
|
|
321
|
+
};
|
|
322
|
+
readonly polyline: {
|
|
323
|
+
readonly group: "drawing";
|
|
324
|
+
};
|
|
325
|
+
}>;
|
|
326
|
+
};
|
|
327
|
+
readonly heatmaps: {
|
|
328
|
+
readonly prefix: "heatmap";
|
|
329
|
+
readonly group: "skip";
|
|
330
|
+
};
|
|
331
|
+
readonly profiles: {
|
|
332
|
+
readonly prefix: "profile";
|
|
333
|
+
readonly kinds: Readonly<{
|
|
334
|
+
readonly footprint: {
|
|
335
|
+
readonly group: "skip";
|
|
336
|
+
};
|
|
337
|
+
readonly tpo: {
|
|
338
|
+
readonly group: "skip";
|
|
339
|
+
};
|
|
340
|
+
readonly volume: {
|
|
341
|
+
readonly group: "skip";
|
|
342
|
+
};
|
|
343
|
+
}>;
|
|
344
|
+
};
|
|
345
|
+
readonly levels: {
|
|
346
|
+
readonly prefix: "levels";
|
|
347
|
+
readonly group: "skip";
|
|
348
|
+
};
|
|
349
|
+
readonly matrices: {
|
|
350
|
+
readonly prefix: "matrix";
|
|
351
|
+
readonly group: "skip";
|
|
352
|
+
};
|
|
353
|
+
readonly panels: {
|
|
354
|
+
readonly prefix: "panel";
|
|
355
|
+
readonly group: "skip";
|
|
356
|
+
};
|
|
357
|
+
readonly marks: {
|
|
358
|
+
readonly prefix: "marks";
|
|
359
|
+
readonly group: "skip";
|
|
360
|
+
};
|
|
361
|
+
readonly spans: {
|
|
362
|
+
readonly prefix: "spans";
|
|
363
|
+
readonly group: "skip";
|
|
364
|
+
};
|
|
365
|
+
readonly rays: {
|
|
366
|
+
readonly prefix: "rays";
|
|
367
|
+
readonly group: "skip";
|
|
368
|
+
};
|
|
369
|
+
readonly strategy: "not-drawn";
|
|
370
|
+
readonly presentation: "not-drawn";
|
|
371
|
+
readonly stats_strip: "not-drawn";
|
|
372
|
+
readonly panes: "not-drawn";
|
|
373
|
+
}>;
|
|
374
|
+
export type WrunVisibilitySection = keyof typeof WRUN_VISIBILITY_RULES;
|
|
375
|
+
/** A section with a Style target. */
|
|
376
|
+
export type WrunDrawnVisibilitySection = {
|
|
377
|
+
[S in WrunVisibilitySection]: (typeof WRUN_VISIBILITY_RULES)[S] extends 'not-drawn' ? never : S;
|
|
378
|
+
}[WrunVisibilitySection];
|
|
379
|
+
/** A prefixed target's prefix. */
|
|
380
|
+
export type WrunVisibilityPrefix = Exclude<{
|
|
381
|
+
[S in WrunDrawnVisibilitySection]: (typeof WRUN_VISIBILITY_RULES)[S]['prefix'];
|
|
382
|
+
}[WrunDrawnVisibilitySection], ''>;
|
|
383
|
+
/** The sheet slice the table reads (boxes and segments ride untyped). */
|
|
384
|
+
export type WrunVisibilitySheet = Partial<Pick<WrunIndicatorMetadata, Extract<WrunVisibilitySection, keyof WrunIndicatorMetadata> | 'params'>> & {
|
|
385
|
+
boxes?: unknown;
|
|
386
|
+
segments?: unknown;
|
|
387
|
+
};
|
|
388
|
+
/** One drawn entry as a Style target. */
|
|
389
|
+
export interface WrunVisibilityTarget {
|
|
390
|
+
/** `__style__<target>__visible`: an output's name, else `<prefix>:<identity>`. */
|
|
391
|
+
target: string;
|
|
392
|
+
section: WrunDrawnVisibilitySection;
|
|
393
|
+
/** Its place in its section (a handle kind's place in the kit's kind list). */
|
|
394
|
+
at: number;
|
|
395
|
+
/** Its kind word (a renderer, drawing, profile or handle kind; an output's plot word). */
|
|
396
|
+
kind?: string;
|
|
397
|
+
group: WrunVisibilityGroup;
|
|
398
|
+
/** The declaration (a handle kind's: its `handles.<kind>` defaults). */
|
|
399
|
+
entry: Record<string, unknown>;
|
|
400
|
+
/** An output's classification. */
|
|
401
|
+
draw?: WrunOutputDraw;
|
|
402
|
+
}
|
|
403
|
+
export interface WrunOutputDraw extends WrunOutputPlotRule {
|
|
404
|
+
barcolor: boolean;
|
|
405
|
+
}
|
|
406
|
+
/** A target's Visible row key (frozen `__style__<target>__visible`). */
|
|
407
|
+
export declare function wrunVisibleRowKey(target: string): string;
|
|
408
|
+
/** An output word's rule; a word the schema does not list (an older or hand-written sheet) is a line, the
|
|
409
|
+
* adapter's default. */
|
|
410
|
+
export declare function wrunOutputPlotRule(plot: unknown): WrunOutputPlotRule | 'not-drawn';
|
|
411
|
+
/** A fully transparent output (opacity 0 on its static colour, no per-bar colour, no bar palette): a range's
|
|
412
|
+
* edge helper, which mounts no plot. */
|
|
413
|
+
export declare function isWrunTransparentOutput(output: Pick<WrunMetadataOutput, 'plot' | 'opacity' | 'color_by' | 'color_packed_by' | 'colors'>): boolean;
|
|
414
|
+
/** THE drawn / transparent classifier every reader of an output's plot word asks (the Style rows, the run
|
|
415
|
+
* result's mount, the in-place patch, the pane plan): undefined for an output that draws nothing. */
|
|
416
|
+
export declare function wrunOutputDraw(output: Pick<WrunMetadataOutput, 'plot' | 'opacity' | 'color_by' | 'color_packed_by' | 'colors' | 'barcolor'>): WrunOutputDraw | undefined;
|
|
417
|
+
/** The frozen identities past an output's name. */
|
|
418
|
+
export declare const wrunFillTarget: (first: string, second: string, ordinal: number) => string;
|
|
419
|
+
export declare const wrunRangeTarget: (upper: string, lower: string, ordinal: number) => string;
|
|
420
|
+
export declare const wrunBoxTarget: (nameOrIndex: string | number) => string;
|
|
421
|
+
export declare const wrunSegmentTarget: (nameOrIndex: string | number) => string;
|
|
422
|
+
export declare const wrunDrawingTarget: (kind: string, nameOrIndex: string | number) => string;
|
|
423
|
+
export declare const wrunHandlesTarget: (kind: string) => string;
|
|
424
|
+
/** A target prefix's section (undefined: a word the table lists no section under). */
|
|
425
|
+
export declare function wrunVisibilitySectionOfPrefix(prefix: string): WrunDrawnVisibilitySection | undefined;
|
|
426
|
+
/**
|
|
427
|
+
* The target of one entry of a section (`at`: its place; a handle kind: its place in the kit's kind list), its
|
|
428
|
+
* group by its section or kind; undefined when the entry draws nothing (an output the classifier leaves out, a
|
|
429
|
+
* kind with no rule, a declaration missing what its identity names). A band's ordinal counts the section's bands
|
|
430
|
+
* over the same pair before it. One entry only: the sheet walk (wrunVisibilityTargets) adds the checks that need
|
|
431
|
+
* the whole sheet (a candle group's members, a tooltip source).
|
|
432
|
+
*/
|
|
433
|
+
export declare function wrunVisibilityEntryTarget(sheet: WrunVisibilitySheet, section: WrunDrawnVisibilitySection, at: number): WrunVisibilityTarget | undefined;
|
|
434
|
+
/** The target of the entry a style-target path names (`[section, name or index]`; a handle kind by its kind). */
|
|
435
|
+
export declare function wrunVisibilityTargetAt(sheet: WrunVisibilitySheet, section: string, nameOrIndex: unknown): WrunVisibilityTarget | undefined;
|
|
436
|
+
/** A Style row's target found in a sheet (undefined: an unknown prefix, or no entry draws under it). */
|
|
437
|
+
export declare function findWrunVisibilityTarget(sheet: WrunVisibilitySheet, target: string): WrunVisibilityTarget | undefined;
|