@luxalgo/vela 0.8.2 → 0.8.4
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/dist/{DataProvider-COGDs9Xg.d.cts → DataProvider-Bw58CjYy.d.cts} +1 -1
- package/dist/{DataProvider-DpOWZD8F.d.ts → DataProvider-Byo8pEv0.d.ts} +1 -1
- package/dist/{chunk-DPAA3SRT.js → chunk-ALTGHKIM.js} +836 -32
- package/dist/{chunk-27UTYE7T.js → chunk-AUOB7A5Y.js} +49 -7
- package/dist/{chunk-HKNO24GD.js → chunk-I2U4NZD2.js} +56 -1
- package/dist/{chunk-R2JMNIHY.js → chunk-MOJ4T26N.js} +341 -169
- package/dist/{chunk-T3DZIR5Y.js → chunk-UNUVPQFW.js} +2214 -886
- package/dist/{chunk-NLDTVFOI.js → chunk-WY5H4S4I.js} +129 -10
- package/dist/{contributions-Cgm9RJYP.d.cts → contributions-BY3zSYiZ.d.ts} +98 -7
- package/dist/{contributions-bWgwyiVi.d.ts → contributions-DOm40g5-.d.cts} +98 -7
- package/dist/index.cjs +3066 -893
- package/dist/index.d.cts +36 -22
- package/dist/index.d.ts +36 -22
- package/dist/index.js +5 -5
- package/dist/{options-NAUHiQEC.d.ts → options-CSXbjMM5.d.cts} +129 -4
- package/dist/{options-NAUHiQEC.d.cts → options-CSXbjMM5.d.ts} +129 -4
- package/dist/{plugin-CqxWoDKS.d.ts → plugin-BDxUhGO3.d.ts} +4 -4
- package/dist/{plugin-CjjzZX2F.d.cts → plugin-CiQVyETg.d.cts} +4 -4
- package/dist/plugin.cjs +573 -17
- package/dist/plugin.d.cts +5 -5
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.js +3 -3
- package/dist/providers/binance.d.cts +2 -2
- package/dist/providers/binance.d.ts +2 -2
- package/dist/providers/coinbase.d.cts +2 -2
- package/dist/providers/coinbase.d.ts +2 -2
- package/dist/providers/hyperliquid.d.cts +2 -2
- package/dist/providers/hyperliquid.d.ts +2 -2
- package/dist/{side-panel-wMNfgyZb.d.cts → side-panel-_2UK1gSm.d.cts} +45 -3
- package/dist/{side-panel-wMNfgyZb.d.ts → side-panel-_2UK1gSm.d.ts} +45 -3
- package/dist/{statusline-model-Dih6FGWP.d.ts → statusline-model-C9tYXuux.d.ts} +19 -4
- package/dist/{statusline-model-Dpfpq54A.d.cts → statusline-model-DUBX6Fib.d.cts} +19 -4
- package/dist/ui.cjs +224 -14
- package/dist/ui.d.cts +119 -87
- package/dist/ui.d.ts +119 -87
- package/dist/ui.js +3 -3
- package/dist/vela.global.js +3073 -900
- package/dist/vela.global.min.js +158 -54
- package/dist/widget.cjs +3640 -1119
- package/dist/widget.d.cts +24 -10
- package/dist/widget.d.ts +24 -10
- package/dist/widget.js +7 -7
- package/dist/workspace.cjs +3639 -1119
- package/dist/workspace.d.cts +61 -20
- package/dist/workspace.d.ts +61 -20
- package/dist/workspace.js +6 -6
- package/package.json +1 -1
- /package/dist/{chunk-JU4CWEBF.js → chunk-W5YPYZ2P.js} +0 -0
package/dist/workspace.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { O as OHLCV, V as VisibleRangePreset, a as VisibleRange, b as VelaOptions, I as InputValue, c as VelaTheme, N as NativeBackend, d as MarketSession } from './options-
|
|
2
|
-
import { S as SyncSetting, V as VelaStorage, C as CellState, W as WidgetHistory, R as ResolvedIndicator, a as StatuslinePart, b as RangePreset, T as TrackSizes, c as VelaShellOptions, d as SyncOptions, e as SyncKind, f as WorkspaceState } from './statusline-model-
|
|
3
|
-
export { g as ChartState, P as PanelsState, h as decodeState, i as encodeState, s as sanitizeState } from './statusline-model-
|
|
1
|
+
import { O as OHLCV, V as VisibleRangePreset, a as VisibleRange, b as VelaOptions, I as InputValue, c as VelaTheme, N as NativeBackend, d as MarketSession } from './options-CSXbjMM5.cjs';
|
|
2
|
+
import { S as SyncSetting, V as VelaStorage, C as CellState, W as WidgetHistory, R as ResolvedIndicator, a as StatuslinePart, b as RangePreset, T as TrackSizes, c as VelaShellOptions, d as SyncOptions, e as SyncKind, f as WorkspaceState } from './statusline-model-DUBX6Fib.cjs';
|
|
3
|
+
export { g as ChartState, D as DrawingToolsState, P as PanelsState, h as decodeState, i as encodeState, s as sanitizeState } from './statusline-model-DUBX6Fib.cjs';
|
|
4
4
|
import { K as KeymapManager } from './keymap-CGOz5F5f.cjs';
|
|
5
|
-
import { I as IndicatorHandle, S as ScriptingEngine, W as WidgetContext, V as Vela, E as ExternalIndicatorEntry, R as ReplayState, a as ReplayBounds, b as VelaEventMap, c as ScriptRun } from './contributions-
|
|
6
|
-
import { M as MarketDataFeed } from './DataProvider-
|
|
5
|
+
import { I as IndicatorHandle, S as ScriptingEngine, W as WidgetContext, V as Vela, E as ExternalIndicatorEntry, R as ReplayState, a as ReplayBounds, b as VelaEventMap, c as ScriptRun } from './contributions-DOm40g5-.cjs';
|
|
6
|
+
import { M as MarketDataFeed } from './DataProvider-Bw58CjYy.cjs';
|
|
7
7
|
|
|
8
8
|
/** The cells that follow `originId` under `setting` — PURE (never includes the origin). */
|
|
9
9
|
declare function syncTargets(originId: string, setting: SyncSetting | undefined, cellIds: readonly string[]): string[];
|
|
@@ -53,14 +53,17 @@ type CellBoot = PooledCellState & Pick<CellSeed, 'data' | 'visibleRange'>;
|
|
|
53
53
|
* `nativeBackend` (the WebGL budget policy, explicit value resolved upstream), the
|
|
54
54
|
* market/view seeds (those flow through {@link CellSeed}), and `drawings`' toolbar
|
|
55
55
|
* sub-key (see {@link cellDrawings}). */
|
|
56
|
-
type CellChartDefaults = Pick<VelaOptions, 'renderer' | 'defaultLanguage' | 'currentPriceLine' | 'logScale' | 'animations' | 'glow' | 'upColor' | 'downColor' | 'drawings' | 'settings'>;
|
|
57
|
-
/** A cell's
|
|
58
|
-
* shell runs without status lines)
|
|
59
|
-
* the workspace's STYLE link mirrors across
|
|
56
|
+
type CellChartDefaults = Pick<VelaOptions, 'renderer' | 'defaultLanguage' | 'currentPriceLine' | 'logScale' | 'animations' | 'glow' | 'upColor' | 'downColor' | 'drawings' | 'settings' | 'priceAxis'>;
|
|
57
|
+
/** A cell's own look prefs as one bundle — the Status line tab's segment toggles (null
|
|
58
|
+
* when the shell runs without status lines) and indicator legend titles/values, plus
|
|
59
|
+
* the Symbol tab's watermark toggles. What the workspace's STYLE link mirrors across
|
|
60
|
+
* same-group cells, next to the renderer config. */
|
|
60
61
|
interface CellStatusPrefs {
|
|
61
62
|
parts: Record<StatuslinePart, boolean> | null;
|
|
62
63
|
indicatorTitles: boolean;
|
|
63
64
|
indicatorValues: boolean;
|
|
65
|
+
watermark: boolean;
|
|
66
|
+
replayWatermark: boolean;
|
|
64
67
|
}
|
|
65
68
|
/** One entry of the shared indicator picker's native catalog, per cell. */
|
|
66
69
|
interface CellNativeInfo {
|
|
@@ -121,7 +124,7 @@ interface CellDeps {
|
|
|
121
124
|
onPriceStyleChanged(id: string): void;
|
|
122
125
|
/** The cell's indicator ledger changed (count/picker refresh upstream). */
|
|
123
126
|
onIndicatorsChanged(id: string): void;
|
|
124
|
-
/** A Status line tab pref changed on this cell (the style link mirrors upstream). */
|
|
127
|
+
/** A Status line tab or watermark pref changed on this cell (the style link mirrors upstream). */
|
|
125
128
|
onStatusPrefsChanged(id: string): void;
|
|
126
129
|
/** Persistable per-cell state changed outside the market/indicator channels
|
|
127
130
|
* (bars budget, watermark/titles toggles) — the workspace debounces a save. */
|
|
@@ -285,11 +288,11 @@ declare class ChartCell {
|
|
|
285
288
|
setIndicatorValuesVisible(visible: boolean): void;
|
|
286
289
|
/** Show/hide one status-line segment (the settings dialog's Status line tab). */
|
|
287
290
|
private setStatuslinePart;
|
|
288
|
-
/** This cell's Status line tab prefs as one bundle (see {@link CellStatusPrefs}). */
|
|
291
|
+
/** This cell's Status line tab and watermark prefs as one bundle (see {@link CellStatusPrefs}). */
|
|
289
292
|
statusPrefs(): CellStatusPrefs;
|
|
290
|
-
/** Converge this cell's Status line tab prefs to `prefs` — the
|
|
291
|
-
* the workspace's style link. Idempotent: matching values change
|
|
292
|
-
* propagated echo dies on its own. */
|
|
293
|
+
/** Converge this cell's Status line tab and watermark prefs to `prefs` — the
|
|
294
|
+
* follower half of the workspace's style link. Idempotent: matching values change
|
|
295
|
+
* nothing, so a propagated echo dies on its own. */
|
|
293
296
|
applyStatusPrefs(prefs: CellStatusPrefs): void;
|
|
294
297
|
/** The LIVE chart of this cell — never cache it across a layout change (the cell's
|
|
295
298
|
* identity is what endures; the chart dies with the cell). */
|
|
@@ -712,6 +715,19 @@ interface WorkspaceEventMap extends Record<string, unknown> {
|
|
|
712
715
|
* change included.
|
|
713
716
|
*/
|
|
714
717
|
'script:run': WorkspaceScriptRun;
|
|
718
|
+
/**
|
|
719
|
+
* One cell's price style is switching `from` → `to` — the per-chart
|
|
720
|
+
* `priceStyle:change` relayed up with the cell's identity, so one subscription
|
|
721
|
+
* covers the whole grid, cells added by a later layout change included. Only the
|
|
722
|
+
* cell whose style changes emits. Same timing as the chart event: synchronous,
|
|
723
|
+
* before that cell repaints, so `ws.cell(id).priceStyle` and the cell's canvas
|
|
724
|
+
* still show `from` while the listener runs.
|
|
725
|
+
*/
|
|
726
|
+
'cell:priceStyle': {
|
|
727
|
+
id: string;
|
|
728
|
+
from: string;
|
|
729
|
+
to: string;
|
|
730
|
+
};
|
|
715
731
|
/** The grid switched layouts (cells created/destroyed/restored around it). */
|
|
716
732
|
'layout:changed': {
|
|
717
733
|
layout: string;
|
|
@@ -792,6 +808,12 @@ declare class VelaWorkspace {
|
|
|
792
808
|
private historyUnsub;
|
|
793
809
|
/** Favorite drawing tools — a WORKSPACE preference (one star set, every cell). */
|
|
794
810
|
private favs;
|
|
811
|
+
/** Every drawing tool's remembered settings — a SHARED pref, mirrored onto every cell. */
|
|
812
|
+
private toolDefs;
|
|
813
|
+
/** Every drawing tool's saved looks — a SHARED pref like the remembered settings. */
|
|
814
|
+
private toolTemplates;
|
|
815
|
+
/** Re-entrancy guard while one cell's remembered settings fan out to the others. */
|
|
816
|
+
private toolDefsBusy;
|
|
795
817
|
/** Favorite timeframes — the shared topbar's quick-switch chips, one set for the grid. */
|
|
796
818
|
private tfFavs;
|
|
797
819
|
/** Live sync configuration (mutable copy of the option). */
|
|
@@ -993,6 +1015,14 @@ declare class VelaWorkspace {
|
|
|
993
1015
|
/** Put keyboard focus back on the active cell's chart surface (after a toolbar press
|
|
994
1016
|
* stole it) so chart/drawing shortcuts keep working. */
|
|
995
1017
|
private refocusActive;
|
|
1018
|
+
/** Take a document's drawing-tool prefs as the shared mirrors (cells pick them up as they
|
|
1019
|
+
* are built, or from {@link pushToolDefaults} / the active-cell projection). */
|
|
1020
|
+
private adoptDrawingTools;
|
|
1021
|
+
/** Mirror the shared remembered settings onto every cell but `from` (the cell they came from).
|
|
1022
|
+
* Receiving them is not an edit: the cells' `drawing:defaults` echoes are ignored. */
|
|
1023
|
+
private pushToolDefaults;
|
|
1024
|
+
/** The drawing-tool prefs worth saving; null when every one is at its default. */
|
|
1025
|
+
private drawingToolsState;
|
|
996
1026
|
/** Debounced dirty mark: one `state:changed` (+ one storage write in persist mode)
|
|
997
1027
|
* per burst of edits, flushed hard on unload/destroy. */
|
|
998
1028
|
private markStateDirty;
|
|
@@ -1074,12 +1104,23 @@ declare class VelaWorkspace {
|
|
|
1074
1104
|
*/
|
|
1075
1105
|
private alignNewCellStyles;
|
|
1076
1106
|
/**
|
|
1077
|
-
*
|
|
1078
|
-
*
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
1081
|
-
* in
|
|
1082
|
-
*
|
|
1107
|
+
* Bring cells minted by a layout change into their drawings group: with the link
|
|
1108
|
+
* on, a NEW cell (fresh slot, or one returning from the pool that missed edits
|
|
1109
|
+
* while dormant) receives the drawings of a pre-existing group peer — the active
|
|
1110
|
+
* cell when it is one. A drawing the arriving cell already holds a linked copy of
|
|
1111
|
+
* is refreshed in place; any other is copied and linked like a freshly synced
|
|
1112
|
+
* drawing, so later edits and removals follow both ways. The arrival is the cell's
|
|
1113
|
+
* starting state, not an edit: it stays out of the cell's undo timeline, and the
|
|
1114
|
+
* busy guard keeps the copies' own events from fanning back out.
|
|
1115
|
+
*/
|
|
1116
|
+
private alignNewCellDrawings;
|
|
1117
|
+
/**
|
|
1118
|
+
* Mirror an origin cell's presentation — the style-link slice of its renderer
|
|
1119
|
+
* config ({@link styleConfigPatch}) plus its Status line and watermark prefs —
|
|
1120
|
+
* onto its same-group followers (the style link). Loop-safe two ways: the busy
|
|
1121
|
+
* guard eats the followers' SYNCHRONOUS echoes (their `applyConfig` re-fires
|
|
1122
|
+
* `onConfigChanged` in the same tick), and the equality short-circuits leave
|
|
1123
|
+
* already-converged followers untouched, so nothing re-emits once the group agrees.
|
|
1083
1124
|
*/
|
|
1084
1125
|
private propagateStylePrefs;
|
|
1085
1126
|
/**
|
package/dist/workspace.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { O as OHLCV, V as VisibleRangePreset, a as VisibleRange, b as VelaOptions, I as InputValue, c as VelaTheme, N as NativeBackend, d as MarketSession } from './options-
|
|
2
|
-
import { S as SyncSetting, V as VelaStorage, C as CellState, W as WidgetHistory, R as ResolvedIndicator, a as StatuslinePart, b as RangePreset, T as TrackSizes, c as VelaShellOptions, d as SyncOptions, e as SyncKind, f as WorkspaceState } from './statusline-model-
|
|
3
|
-
export { g as ChartState, P as PanelsState, h as decodeState, i as encodeState, s as sanitizeState } from './statusline-model-
|
|
1
|
+
import { O as OHLCV, V as VisibleRangePreset, a as VisibleRange, b as VelaOptions, I as InputValue, c as VelaTheme, N as NativeBackend, d as MarketSession } from './options-CSXbjMM5.js';
|
|
2
|
+
import { S as SyncSetting, V as VelaStorage, C as CellState, W as WidgetHistory, R as ResolvedIndicator, a as StatuslinePart, b as RangePreset, T as TrackSizes, c as VelaShellOptions, d as SyncOptions, e as SyncKind, f as WorkspaceState } from './statusline-model-C9tYXuux.js';
|
|
3
|
+
export { g as ChartState, D as DrawingToolsState, P as PanelsState, h as decodeState, i as encodeState, s as sanitizeState } from './statusline-model-C9tYXuux.js';
|
|
4
4
|
import { K as KeymapManager } from './keymap-CGOz5F5f.js';
|
|
5
|
-
import { I as IndicatorHandle, S as ScriptingEngine, W as WidgetContext, V as Vela, E as ExternalIndicatorEntry, R as ReplayState, a as ReplayBounds, b as VelaEventMap, c as ScriptRun } from './contributions-
|
|
6
|
-
import { M as MarketDataFeed } from './DataProvider-
|
|
5
|
+
import { I as IndicatorHandle, S as ScriptingEngine, W as WidgetContext, V as Vela, E as ExternalIndicatorEntry, R as ReplayState, a as ReplayBounds, b as VelaEventMap, c as ScriptRun } from './contributions-BY3zSYiZ.js';
|
|
6
|
+
import { M as MarketDataFeed } from './DataProvider-Byo8pEv0.js';
|
|
7
7
|
|
|
8
8
|
/** The cells that follow `originId` under `setting` — PURE (never includes the origin). */
|
|
9
9
|
declare function syncTargets(originId: string, setting: SyncSetting | undefined, cellIds: readonly string[]): string[];
|
|
@@ -53,14 +53,17 @@ type CellBoot = PooledCellState & Pick<CellSeed, 'data' | 'visibleRange'>;
|
|
|
53
53
|
* `nativeBackend` (the WebGL budget policy, explicit value resolved upstream), the
|
|
54
54
|
* market/view seeds (those flow through {@link CellSeed}), and `drawings`' toolbar
|
|
55
55
|
* sub-key (see {@link cellDrawings}). */
|
|
56
|
-
type CellChartDefaults = Pick<VelaOptions, 'renderer' | 'defaultLanguage' | 'currentPriceLine' | 'logScale' | 'animations' | 'glow' | 'upColor' | 'downColor' | 'drawings' | 'settings'>;
|
|
57
|
-
/** A cell's
|
|
58
|
-
* shell runs without status lines)
|
|
59
|
-
* the workspace's STYLE link mirrors across
|
|
56
|
+
type CellChartDefaults = Pick<VelaOptions, 'renderer' | 'defaultLanguage' | 'currentPriceLine' | 'logScale' | 'animations' | 'glow' | 'upColor' | 'downColor' | 'drawings' | 'settings' | 'priceAxis'>;
|
|
57
|
+
/** A cell's own look prefs as one bundle — the Status line tab's segment toggles (null
|
|
58
|
+
* when the shell runs without status lines) and indicator legend titles/values, plus
|
|
59
|
+
* the Symbol tab's watermark toggles. What the workspace's STYLE link mirrors across
|
|
60
|
+
* same-group cells, next to the renderer config. */
|
|
60
61
|
interface CellStatusPrefs {
|
|
61
62
|
parts: Record<StatuslinePart, boolean> | null;
|
|
62
63
|
indicatorTitles: boolean;
|
|
63
64
|
indicatorValues: boolean;
|
|
65
|
+
watermark: boolean;
|
|
66
|
+
replayWatermark: boolean;
|
|
64
67
|
}
|
|
65
68
|
/** One entry of the shared indicator picker's native catalog, per cell. */
|
|
66
69
|
interface CellNativeInfo {
|
|
@@ -121,7 +124,7 @@ interface CellDeps {
|
|
|
121
124
|
onPriceStyleChanged(id: string): void;
|
|
122
125
|
/** The cell's indicator ledger changed (count/picker refresh upstream). */
|
|
123
126
|
onIndicatorsChanged(id: string): void;
|
|
124
|
-
/** A Status line tab pref changed on this cell (the style link mirrors upstream). */
|
|
127
|
+
/** A Status line tab or watermark pref changed on this cell (the style link mirrors upstream). */
|
|
125
128
|
onStatusPrefsChanged(id: string): void;
|
|
126
129
|
/** Persistable per-cell state changed outside the market/indicator channels
|
|
127
130
|
* (bars budget, watermark/titles toggles) — the workspace debounces a save. */
|
|
@@ -285,11 +288,11 @@ declare class ChartCell {
|
|
|
285
288
|
setIndicatorValuesVisible(visible: boolean): void;
|
|
286
289
|
/** Show/hide one status-line segment (the settings dialog's Status line tab). */
|
|
287
290
|
private setStatuslinePart;
|
|
288
|
-
/** This cell's Status line tab prefs as one bundle (see {@link CellStatusPrefs}). */
|
|
291
|
+
/** This cell's Status line tab and watermark prefs as one bundle (see {@link CellStatusPrefs}). */
|
|
289
292
|
statusPrefs(): CellStatusPrefs;
|
|
290
|
-
/** Converge this cell's Status line tab prefs to `prefs` — the
|
|
291
|
-
* the workspace's style link. Idempotent: matching values change
|
|
292
|
-
* propagated echo dies on its own. */
|
|
293
|
+
/** Converge this cell's Status line tab and watermark prefs to `prefs` — the
|
|
294
|
+
* follower half of the workspace's style link. Idempotent: matching values change
|
|
295
|
+
* nothing, so a propagated echo dies on its own. */
|
|
293
296
|
applyStatusPrefs(prefs: CellStatusPrefs): void;
|
|
294
297
|
/** The LIVE chart of this cell — never cache it across a layout change (the cell's
|
|
295
298
|
* identity is what endures; the chart dies with the cell). */
|
|
@@ -712,6 +715,19 @@ interface WorkspaceEventMap extends Record<string, unknown> {
|
|
|
712
715
|
* change included.
|
|
713
716
|
*/
|
|
714
717
|
'script:run': WorkspaceScriptRun;
|
|
718
|
+
/**
|
|
719
|
+
* One cell's price style is switching `from` → `to` — the per-chart
|
|
720
|
+
* `priceStyle:change` relayed up with the cell's identity, so one subscription
|
|
721
|
+
* covers the whole grid, cells added by a later layout change included. Only the
|
|
722
|
+
* cell whose style changes emits. Same timing as the chart event: synchronous,
|
|
723
|
+
* before that cell repaints, so `ws.cell(id).priceStyle` and the cell's canvas
|
|
724
|
+
* still show `from` while the listener runs.
|
|
725
|
+
*/
|
|
726
|
+
'cell:priceStyle': {
|
|
727
|
+
id: string;
|
|
728
|
+
from: string;
|
|
729
|
+
to: string;
|
|
730
|
+
};
|
|
715
731
|
/** The grid switched layouts (cells created/destroyed/restored around it). */
|
|
716
732
|
'layout:changed': {
|
|
717
733
|
layout: string;
|
|
@@ -792,6 +808,12 @@ declare class VelaWorkspace {
|
|
|
792
808
|
private historyUnsub;
|
|
793
809
|
/** Favorite drawing tools — a WORKSPACE preference (one star set, every cell). */
|
|
794
810
|
private favs;
|
|
811
|
+
/** Every drawing tool's remembered settings — a SHARED pref, mirrored onto every cell. */
|
|
812
|
+
private toolDefs;
|
|
813
|
+
/** Every drawing tool's saved looks — a SHARED pref like the remembered settings. */
|
|
814
|
+
private toolTemplates;
|
|
815
|
+
/** Re-entrancy guard while one cell's remembered settings fan out to the others. */
|
|
816
|
+
private toolDefsBusy;
|
|
795
817
|
/** Favorite timeframes — the shared topbar's quick-switch chips, one set for the grid. */
|
|
796
818
|
private tfFavs;
|
|
797
819
|
/** Live sync configuration (mutable copy of the option). */
|
|
@@ -993,6 +1015,14 @@ declare class VelaWorkspace {
|
|
|
993
1015
|
/** Put keyboard focus back on the active cell's chart surface (after a toolbar press
|
|
994
1016
|
* stole it) so chart/drawing shortcuts keep working. */
|
|
995
1017
|
private refocusActive;
|
|
1018
|
+
/** Take a document's drawing-tool prefs as the shared mirrors (cells pick them up as they
|
|
1019
|
+
* are built, or from {@link pushToolDefaults} / the active-cell projection). */
|
|
1020
|
+
private adoptDrawingTools;
|
|
1021
|
+
/** Mirror the shared remembered settings onto every cell but `from` (the cell they came from).
|
|
1022
|
+
* Receiving them is not an edit: the cells' `drawing:defaults` echoes are ignored. */
|
|
1023
|
+
private pushToolDefaults;
|
|
1024
|
+
/** The drawing-tool prefs worth saving; null when every one is at its default. */
|
|
1025
|
+
private drawingToolsState;
|
|
996
1026
|
/** Debounced dirty mark: one `state:changed` (+ one storage write in persist mode)
|
|
997
1027
|
* per burst of edits, flushed hard on unload/destroy. */
|
|
998
1028
|
private markStateDirty;
|
|
@@ -1074,12 +1104,23 @@ declare class VelaWorkspace {
|
|
|
1074
1104
|
*/
|
|
1075
1105
|
private alignNewCellStyles;
|
|
1076
1106
|
/**
|
|
1077
|
-
*
|
|
1078
|
-
*
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
1081
|
-
* in
|
|
1082
|
-
*
|
|
1107
|
+
* Bring cells minted by a layout change into their drawings group: with the link
|
|
1108
|
+
* on, a NEW cell (fresh slot, or one returning from the pool that missed edits
|
|
1109
|
+
* while dormant) receives the drawings of a pre-existing group peer — the active
|
|
1110
|
+
* cell when it is one. A drawing the arriving cell already holds a linked copy of
|
|
1111
|
+
* is refreshed in place; any other is copied and linked like a freshly synced
|
|
1112
|
+
* drawing, so later edits and removals follow both ways. The arrival is the cell's
|
|
1113
|
+
* starting state, not an edit: it stays out of the cell's undo timeline, and the
|
|
1114
|
+
* busy guard keeps the copies' own events from fanning back out.
|
|
1115
|
+
*/
|
|
1116
|
+
private alignNewCellDrawings;
|
|
1117
|
+
/**
|
|
1118
|
+
* Mirror an origin cell's presentation — the style-link slice of its renderer
|
|
1119
|
+
* config ({@link styleConfigPatch}) plus its Status line and watermark prefs —
|
|
1120
|
+
* onto its same-group followers (the style link). Loop-safe two ways: the busy
|
|
1121
|
+
* guard eats the followers' SYNCHRONOUS echoes (their `applyConfig` re-fires
|
|
1122
|
+
* `onConfigChanged` in the same tick), and the equality short-circuits leave
|
|
1123
|
+
* already-converged followers untouched, so nothing re-emits once the group agrees.
|
|
1083
1124
|
*/
|
|
1084
1125
|
private propagateStylePrefs;
|
|
1085
1126
|
/**
|
package/dist/workspace.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ChartCell, GRID_PICKER_MAX, VelaWorkspace, WorkspaceReplay, activeAfterLayout, barClose, decodeState, encodeState, ensureLayout, evenTracks, gridStyles, lastOpenClosedBy, layoutDefinition, layoutForGrid, layoutShape, layouts, memoryStorageAdapter, rangesWithin, registerBuiltinLayouts, registerLayout, resizeTracks, sanitizeState, syncTargets, trackOffsets, unregisterLayout } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
1
|
+
export { ChartCell, GRID_PICKER_MAX, VelaWorkspace, WorkspaceReplay, activeAfterLayout, barClose, decodeState, encodeState, ensureLayout, evenTracks, gridStyles, lastOpenClosedBy, layoutDefinition, layoutForGrid, layoutShape, layouts, memoryStorageAdapter, rangesWithin, registerBuiltinLayouts, registerLayout, resizeTracks, sanitizeState, syncTargets, trackOffsets, unregisterLayout } from './chunk-MOJ4T26N.js';
|
|
2
|
+
import './chunk-UNUVPQFW.js';
|
|
3
|
+
import './chunk-ALTGHKIM.js';
|
|
4
|
+
import './chunk-AUOB7A5Y.js';
|
|
5
|
+
import './chunk-WY5H4S4I.js';
|
|
6
|
+
import './chunk-I2U4NZD2.js';
|
|
7
7
|
import './chunk-W4EJWLEO.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxalgo/vela",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "The open-source core of Vela by LuxAlgo: a charting library with a native high-performance renderer, drawing tools, pluggable chart types and pluggable scripting engines.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"charting library",
|
|
File without changes
|