@luxalgo/vela 0.6.1 → 0.6.2
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-BNKtYU5V.d.cts → DataProvider-CNmk84SH.d.cts} +14 -0
- package/dist/{DataProvider-gJjN_0eh.d.ts → DataProvider-DHX4x6-r.d.ts} +14 -0
- package/dist/{chunk-4MQEG67Z.js → chunk-7D6YIF34.js} +2135 -2452
- package/dist/{chunk-ZNL2X6U2.js → chunk-7Y7CJ7EN.js} +1 -1
- package/dist/{chunk-EMS6PO2T.js → chunk-PN5KWFZ4.js} +6 -1
- package/dist/chunk-QHZ7IXFL.js +2598 -0
- package/dist/chunk-TP56QRMK.js +503 -0
- package/dist/{chunk-6LZJRO2S.js → chunk-U5KCQHAC.js} +108 -5
- package/dist/{contributions-D64UA74H.d.cts → contributions-DDpv7hEL.d.cts} +5 -1
- package/dist/{contributions-lPAgo9Cu.d.ts → contributions-ciV6Neyd.d.ts} +5 -1
- package/dist/{history-CVoFDJ2D.d.ts → history-CFqZm5re.d.ts} +2 -2
- package/dist/{history-fSMXVLt1.d.cts → history-ChoT34nz.d.cts} +2 -2
- package/dist/index.cjs +3708 -2730
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/{plugin-o5HJH46Z.d.ts → plugin-C97gUCVf.d.ts} +6 -2
- package/dist/{plugin-D5ni4WEJ.d.cts → plugin-CSb_sTiN.d.cts} +6 -2
- package/dist/plugin.d.cts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.js +2 -2
- package/dist/providers/binance.d.cts +1 -1
- package/dist/providers/binance.d.ts +1 -1
- package/dist/providers/coinbase.d.cts +1 -1
- package/dist/providers/coinbase.d.ts +1 -1
- package/dist/providers/hyperliquid.d.cts +1 -1
- package/dist/providers/hyperliquid.d.ts +1 -1
- package/dist/ui.cjs +1001 -247
- package/dist/ui.d.cts +257 -10
- package/dist/ui.d.ts +257 -10
- package/dist/ui.js +3 -3
- package/dist/vela.global.js +12345 -3952
- package/dist/vela.global.min.js +479 -124
- package/dist/widget.cjs +3388 -2865
- package/dist/widget.d.cts +7 -5
- package/dist/widget.d.ts +7 -5
- package/dist/widget.js +13 -9
- package/dist/workspace.cjs +3051 -2528
- package/dist/workspace.d.cts +6 -4
- package/dist/workspace.d.ts +6 -4
- package/dist/workspace.js +11 -7
- package/package.json +1 -1
- package/dist/chunk-OGRQW3M6.js +0 -1328
- package/dist/chunk-QWIEKZRE.js +0 -1042
package/dist/workspace.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { O as OHLCV, V as VisibleRangePreset, a as VisibleRange, b as VelaOptions, c as VelaTheme, N as NativeBackend, d as MarketSession } from './options-BqGeFHtp.cjs';
|
|
2
|
-
import { S as SyncSetting, V as VelaStorage, C as CellState, W as WidgetHistory, R as ResolvedIndicator, a as RangePreset, T as TrackSizes, b as VelaShellOptions, c as SyncOptions, d as SyncKind, e as WorkspaceState } from './history-
|
|
3
|
-
export { f as ChartState, P as PanelsState, g as decodeState, h as encodeState, s as sanitizeState } from './history-
|
|
2
|
+
import { S as SyncSetting, V as VelaStorage, C as CellState, W as WidgetHistory, R as ResolvedIndicator, a as RangePreset, T as TrackSizes, b as VelaShellOptions, c as SyncOptions, d as SyncKind, e as WorkspaceState } from './history-ChoT34nz.cjs';
|
|
3
|
+
export { f as ChartState, P as PanelsState, g as decodeState, h as encodeState, s as sanitizeState } from './history-ChoT34nz.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, a 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, a as ScriptRun } from './contributions-DDpv7hEL.cjs';
|
|
6
|
+
import { M as MarketDataFeed } from './DataProvider-CNmk84SH.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[];
|
|
@@ -127,6 +127,8 @@ declare class ChartCell {
|
|
|
127
127
|
* plot-overlay tokens re-derive from). */
|
|
128
128
|
private appTheme;
|
|
129
129
|
private readonly statusline;
|
|
130
|
+
/** Keeps this cell's market badge on the symbol's real calendar (see {@link MarketStatusTracker}). */
|
|
131
|
+
private readonly marketStatus;
|
|
130
132
|
private readonly watermark;
|
|
131
133
|
private readonly contextMenu;
|
|
132
134
|
private readonly offMarket;
|
package/dist/workspace.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { O as OHLCV, V as VisibleRangePreset, a as VisibleRange, b as VelaOptions, c as VelaTheme, N as NativeBackend, d as MarketSession } from './options-BqGeFHtp.js';
|
|
2
|
-
import { S as SyncSetting, V as VelaStorage, C as CellState, W as WidgetHistory, R as ResolvedIndicator, a as RangePreset, T as TrackSizes, b as VelaShellOptions, c as SyncOptions, d as SyncKind, e as WorkspaceState } from './history-
|
|
3
|
-
export { f as ChartState, P as PanelsState, g as decodeState, h as encodeState, s as sanitizeState } from './history-
|
|
2
|
+
import { S as SyncSetting, V as VelaStorage, C as CellState, W as WidgetHistory, R as ResolvedIndicator, a as RangePreset, T as TrackSizes, b as VelaShellOptions, c as SyncOptions, d as SyncKind, e as WorkspaceState } from './history-CFqZm5re.js';
|
|
3
|
+
export { f as ChartState, P as PanelsState, g as decodeState, h as encodeState, s as sanitizeState } from './history-CFqZm5re.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, a 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, a as ScriptRun } from './contributions-ciV6Neyd.js';
|
|
6
|
+
import { M as MarketDataFeed } from './DataProvider-DHX4x6-r.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[];
|
|
@@ -127,6 +127,8 @@ declare class ChartCell {
|
|
|
127
127
|
* plot-overlay tokens re-derive from). */
|
|
128
128
|
private appTheme;
|
|
129
129
|
private readonly statusline;
|
|
130
|
+
/** Keeps this cell's market badge on the symbol's real calendar (see {@link MarketStatusTracker}). */
|
|
131
|
+
private readonly marketStatus;
|
|
130
132
|
private readonly watermark;
|
|
131
133
|
private readonly contextMenu;
|
|
132
134
|
private readonly offMarket;
|
package/dist/workspace.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { WidgetHistory, prefixedSymbol, normalizeSession, Watermark, Statusline, ChartContextMenu, statuslineInkOf, indicatorLedger, Glider, localStorageAdapter, decodeState, SymbolPicker, IndicatorPicker, TimeframeQuick, Topbar, PanelDock, ObjectTree, DataWindow, Toast, Bottombar, MobileBar, DrawingPill, LayoutModeController, toolShortcutHints, resolveIndicators, sanitizeState, encodeState, TimeframeDrawer, RANGE_PRESETS, DrawingsDrawer, MoreDrawer, priceStyleIcon, priceStyleLabel, TimezoneDrawer, PriceScaleDrawer, ZOOM_IN, ZOOM_OUT, PAN_FAST, ShortcutsHelp } from './chunk-
|
|
2
|
-
export { decodeState, encodeState, sanitizeState } from './chunk-
|
|
3
|
-
import { parseSymbol, Vela, normalizeTimezone, TypedEventBus, MultiProviderFeed, resolveTheme, createCustomMark, createAttributionMark, DrawingToolbar, defaultToolbar, applyAttributionMarkTheme, sharedBarStore, timeframeToMs, priceStyleIds } from './chunk-
|
|
4
|
-
import { resolveEngines, legendActionsProviderFor, rendererDefaults, widgetActions, widgetAttachments } from './chunk-
|
|
5
|
-
import { KeymapManager,
|
|
6
|
-
import { applyPlotOverlayTokens, ensureUIHost } from './chunk-
|
|
7
|
-
import { registerIcon, svg16, injectStyles } from './chunk-
|
|
1
|
+
import { WidgetHistory, prefixedSymbol, normalizeSession, Watermark, Statusline, MarketStatusTracker, ChartContextMenu, statuslineInkOf, indicatorLedger, Glider, localStorageAdapter, decodeState, SymbolPicker, IndicatorPicker, TimeframeQuick, Topbar, PanelDock, ObjectTree, DataWindow, Toast, Bottombar, MobileBar, DrawingPill, LayoutModeController, toolShortcutHints, resolveIndicators, sanitizeState, encodeState, TimeframeDrawer, RANGE_PRESETS, DrawingsDrawer, MoreDrawer, priceStyleIcon, priceStyleLabel, TimezoneDrawer, PriceScaleDrawer, ZOOM_IN, ZOOM_OUT, PAN_FAST, ShortcutsHelp } from './chunk-U5KCQHAC.js';
|
|
2
|
+
export { decodeState, encodeState, sanitizeState } from './chunk-U5KCQHAC.js';
|
|
3
|
+
import { parseSymbol, Vela, normalizeTimezone, TypedEventBus, MultiProviderFeed, resolveTheme, createCustomMark, createAttributionMark, DrawingToolbar, defaultToolbar, applyAttributionMarkTheme, sharedBarStore, timeframeToMs, priceStyleIds } from './chunk-7D6YIF34.js';
|
|
4
|
+
import { resolveEngines, legendActionsProviderFor, rendererDefaults, widgetActions, widgetAttachments } from './chunk-7Y7CJ7EN.js';
|
|
5
|
+
import { KeymapManager, isEditableTarget } from './chunk-TP56QRMK.js';
|
|
6
|
+
import { applyPlotOverlayTokens, ensureUIHost, Menu } from './chunk-QHZ7IXFL.js';
|
|
7
|
+
import { registerIcon, svg16, injectStyles } from './chunk-PN5KWFZ4.js';
|
|
8
8
|
|
|
9
9
|
// src/workspace/sync.ts
|
|
10
10
|
function syncTargets(originId, setting, cellIds) {
|
|
@@ -165,9 +165,11 @@ var ChartCell = class {
|
|
|
165
165
|
this.statusline = deps.statusline ? new Statusline(this.host, symbol ?? "") : null;
|
|
166
166
|
this.statusline?.setMeta(seed.timeframe ?? "60", this.state.provider ?? "");
|
|
167
167
|
this.statusline?.onChart(this.inner);
|
|
168
|
+
this.marketStatus = this.statusline ? new MarketStatusTracker((s) => this.statusline?.setMarketStatus(s)) : null;
|
|
168
169
|
void this.inner.data.ready().then(() => {
|
|
169
170
|
if (this.inner && this.state.symbol) this.statusline?.setMeta(this.state.timeframe ?? "60", this.inner.data.displayPrefix(this.state.symbol) ?? this.state.provider ?? "");
|
|
170
171
|
this.refreshSessionAvailable();
|
|
172
|
+
if (this.inner && this.state.symbol) this.marketStatus?.track(this.inner.data, this.state.symbol);
|
|
171
173
|
});
|
|
172
174
|
this.syncStatuslineColors();
|
|
173
175
|
this.contextMenu = new ChartContextMenu(this.host, {
|
|
@@ -296,6 +298,7 @@ var ChartCell = class {
|
|
|
296
298
|
if (this.inner) this.statusline?.onChart(this.inner);
|
|
297
299
|
this.refreshNativeCatalog();
|
|
298
300
|
this.refreshSessionAvailable();
|
|
301
|
+
if (this.inner) this.marketStatus?.track(this.inner.data, symbol2);
|
|
299
302
|
this.deps.onMarketChanged(this.id);
|
|
300
303
|
});
|
|
301
304
|
}
|
|
@@ -607,6 +610,7 @@ var ChartCell = class {
|
|
|
607
610
|
this.offMarket();
|
|
608
611
|
this.contextMenu.destroy();
|
|
609
612
|
this.history.destroy();
|
|
613
|
+
this.marketStatus?.stop();
|
|
610
614
|
this.statusline?.destroy();
|
|
611
615
|
this.watermark?.destroy();
|
|
612
616
|
this.inner?.destroy();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxalgo/vela",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Open-source charting library with a native high-performance renderer, drawing tools, pluggable chart types and pluggable scripting engines.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://luxalgo.com/vela",
|