@luxalgo/vela 0.5.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/LICENSE +201 -0
- package/NOTICE +28 -0
- package/README.md +135 -0
- package/dist/DataProvider-DKNDHpNv.d.cts +134 -0
- package/dist/DataProvider-Dzd-Erlk.d.ts +134 -0
- package/dist/chunk-7UFX5ZIG.js +5976 -0
- package/dist/chunk-GYD2THPV.js +252 -0
- package/dist/chunk-KCCZNKH7.js +19137 -0
- package/dist/chunk-KM6LHB3Y.js +76 -0
- package/dist/chunk-OVQKKXLZ.js +3978 -0
- package/dist/chunk-Q3XQHLIH.js +7 -0
- package/dist/chunk-RHIDOUFL.js +698 -0
- package/dist/contributions-hX3EUyjG.d.ts +1528 -0
- package/dist/contributions-o1GRKPI_.d.cts +1528 -0
- package/dist/history-Dzxz-MQj.d.ts +298 -0
- package/dist/history-LJkz4-sS.d.cts +298 -0
- package/dist/icons-BZYbJXSV.d.cts +10 -0
- package/dist/icons-BZYbJXSV.d.ts +10 -0
- package/dist/index.cjs +25294 -0
- package/dist/index.d.cts +1189 -0
- package/dist/index.d.ts +1189 -0
- package/dist/index.js +5 -0
- package/dist/keymap-CGOz5F5f.d.cts +64 -0
- package/dist/keymap-CGOz5F5f.d.ts +64 -0
- package/dist/options-Q-576hIi.d.cts +1545 -0
- package/dist/options-Q-576hIi.d.ts +1545 -0
- package/dist/plugin-D94muTV-.d.cts +405 -0
- package/dist/plugin-aGUD1epn.d.ts +405 -0
- package/dist/plugin.cjs +5967 -0
- package/dist/plugin.d.cts +7 -0
- package/dist/plugin.d.ts +7 -0
- package/dist/plugin.js +3 -0
- package/dist/providers/binance.cjs +390 -0
- package/dist/providers/binance.d.cts +62 -0
- package/dist/providers/binance.d.ts +62 -0
- package/dist/providers/binance.js +388 -0
- package/dist/providers/coinbase.cjs +462 -0
- package/dist/providers/coinbase.d.cts +59 -0
- package/dist/providers/coinbase.d.ts +59 -0
- package/dist/providers/coinbase.js +460 -0
- package/dist/providers/hyperliquid.cjs +361 -0
- package/dist/providers/hyperliquid.d.cts +54 -0
- package/dist/providers/hyperliquid.d.ts +54 -0
- package/dist/providers/hyperliquid.js +359 -0
- package/dist/side-panel-CT9ZwIGz.d.cts +63 -0
- package/dist/side-panel-CT9ZwIGz.d.ts +63 -0
- package/dist/ui.cjs +1030 -0
- package/dist/ui.d.cts +188 -0
- package/dist/ui.d.ts +188 -0
- package/dist/ui.js +3 -0
- package/dist/vela.global.js +26509 -0
- package/dist/vela.global.min.js +230 -0
- package/dist/widget.cjs +31178 -0
- package/dist/widget.d.cts +799 -0
- package/dist/widget.d.ts +799 -0
- package/dist/widget.js +1060 -0
- package/dist/workspace.cjs +31692 -0
- package/dist/workspace.d.cts +579 -0
- package/dist/workspace.d.ts +579 -0
- package/dist/workspace.js +1694 -0
- package/package.json +95 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { stableSeriesId } from './chunk-Q3XQHLIH.js';
|
|
2
|
+
export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MultiProviderFeed, NativeRenderer, RendererControl, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-KCCZNKH7.js';
|
|
3
|
+
export { DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, Drawing, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, getDrawingType, getNativeIndicator, legendActions, nativeIndicatorDescriptors, nativeIndicatorTypes, registerChartType, registerDefaultEngine, registerDrawingType, registerLegendAction, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resolveEngines, sidePanels, tickerModifierIds, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-7UFX5ZIG.js';
|
|
4
|
+
import './chunk-KM6LHB3Y.js';
|
|
5
|
+
export { ACCENT, ACCENT_BRIGHT, BEARISH, BULLISH, CATEGORICAL, CROSSHAIR, HIGHLIGHT, INFO, INVALID, MARKER, NEUTRAL, SERIES_LINE, SESSION_OFF, SESSION_POST, SESSION_PRE, SLATE, SLATE_DEEP, TRADE_EXIT, TRADE_LONG, TRADE_SHORT, VALID, WARNING, categoricalColor, iconMarkup, registerIcon } from './chunk-GYD2THPV.js';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
interface KeyBindingDescriptor {
|
|
2
|
+
/** Stable id, e.g. `'chart.toggle-log-scale'`. Re-registering an id replaces it. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Default chord(s). Users can `rebind()` without touching the descriptor. */
|
|
5
|
+
keys: string | string[];
|
|
6
|
+
/** Human label for the shortcuts help panel. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Help-panel grouping, e.g. `'Chart'`, `'Drawings'`. */
|
|
9
|
+
category?: string;
|
|
10
|
+
/** `'global'` fires in ANY scope; anything else only while it is the top scope. Default `'chart'`. */
|
|
11
|
+
scope?: string;
|
|
12
|
+
/** Extra runtime gate evaluated at match time. */
|
|
13
|
+
when?: () => boolean;
|
|
14
|
+
/** Fire even while an input/textarea/contenteditable has focus (default false). */
|
|
15
|
+
allowInInput?: boolean;
|
|
16
|
+
/** preventDefault + stopPropagation on match (default true). */
|
|
17
|
+
preventDefault?: boolean;
|
|
18
|
+
run: (ev: KeyboardEvent) => void;
|
|
19
|
+
}
|
|
20
|
+
interface ResolvedBinding {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly label: string;
|
|
23
|
+
readonly category: string;
|
|
24
|
+
readonly scope: string;
|
|
25
|
+
/** Active chords (custom rebinds if present, else descriptor defaults). */
|
|
26
|
+
readonly keys: readonly string[];
|
|
27
|
+
/** Display form per platform, e.g. `'⌘⇧K'` (mac) / `'Ctrl+Shift+K'`. */
|
|
28
|
+
readonly display: readonly string[];
|
|
29
|
+
}
|
|
30
|
+
interface KeymapOptions {
|
|
31
|
+
/** Force the platform (default: sniffed from `navigator.platform`). */
|
|
32
|
+
platform?: 'mac' | 'other';
|
|
33
|
+
/** The scope active when the stack is empty. Default `'chart'`. */
|
|
34
|
+
baseScope?: string;
|
|
35
|
+
}
|
|
36
|
+
declare class KeymapManager {
|
|
37
|
+
private readonly mac;
|
|
38
|
+
private readonly baseScope;
|
|
39
|
+
private readonly descriptors;
|
|
40
|
+
private readonly rebinds;
|
|
41
|
+
private readonly scopeStack;
|
|
42
|
+
private target;
|
|
43
|
+
private readonly onKeydown;
|
|
44
|
+
constructor(opts?: KeymapOptions);
|
|
45
|
+
/** Register (or replace, by id) a binding. Returns a disposer. */
|
|
46
|
+
register(desc: KeyBindingDescriptor): () => void;
|
|
47
|
+
unregister(id: string): void;
|
|
48
|
+
/** User-level rebinding: overrides the descriptor's default chords (null resets). */
|
|
49
|
+
rebind(id: string, keys: string | string[] | null): void;
|
|
50
|
+
/** Snapshot for a shortcuts help panel / rebinding UI. */
|
|
51
|
+
bindings(): ResolvedBinding[];
|
|
52
|
+
pushScope(scope: string): () => void;
|
|
53
|
+
/** Pops the TOPMOST occurrence of `scope` (tolerates out-of-order teardown). */
|
|
54
|
+
popScope(scope: string): void;
|
|
55
|
+
get activeScope(): string;
|
|
56
|
+
attach(target: EventTarget): void;
|
|
57
|
+
detach(): void;
|
|
58
|
+
/** The matcher — public so hosts/tests can feed events from their own listeners. */
|
|
59
|
+
handleKeydown(ev: KeyboardEvent): boolean;
|
|
60
|
+
destroy(): void;
|
|
61
|
+
private activeKeys;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { KeymapManager as K, type ResolvedBinding as R, type KeyBindingDescriptor as a, type KeymapOptions as b };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
interface KeyBindingDescriptor {
|
|
2
|
+
/** Stable id, e.g. `'chart.toggle-log-scale'`. Re-registering an id replaces it. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Default chord(s). Users can `rebind()` without touching the descriptor. */
|
|
5
|
+
keys: string | string[];
|
|
6
|
+
/** Human label for the shortcuts help panel. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Help-panel grouping, e.g. `'Chart'`, `'Drawings'`. */
|
|
9
|
+
category?: string;
|
|
10
|
+
/** `'global'` fires in ANY scope; anything else only while it is the top scope. Default `'chart'`. */
|
|
11
|
+
scope?: string;
|
|
12
|
+
/** Extra runtime gate evaluated at match time. */
|
|
13
|
+
when?: () => boolean;
|
|
14
|
+
/** Fire even while an input/textarea/contenteditable has focus (default false). */
|
|
15
|
+
allowInInput?: boolean;
|
|
16
|
+
/** preventDefault + stopPropagation on match (default true). */
|
|
17
|
+
preventDefault?: boolean;
|
|
18
|
+
run: (ev: KeyboardEvent) => void;
|
|
19
|
+
}
|
|
20
|
+
interface ResolvedBinding {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly label: string;
|
|
23
|
+
readonly category: string;
|
|
24
|
+
readonly scope: string;
|
|
25
|
+
/** Active chords (custom rebinds if present, else descriptor defaults). */
|
|
26
|
+
readonly keys: readonly string[];
|
|
27
|
+
/** Display form per platform, e.g. `'⌘⇧K'` (mac) / `'Ctrl+Shift+K'`. */
|
|
28
|
+
readonly display: readonly string[];
|
|
29
|
+
}
|
|
30
|
+
interface KeymapOptions {
|
|
31
|
+
/** Force the platform (default: sniffed from `navigator.platform`). */
|
|
32
|
+
platform?: 'mac' | 'other';
|
|
33
|
+
/** The scope active when the stack is empty. Default `'chart'`. */
|
|
34
|
+
baseScope?: string;
|
|
35
|
+
}
|
|
36
|
+
declare class KeymapManager {
|
|
37
|
+
private readonly mac;
|
|
38
|
+
private readonly baseScope;
|
|
39
|
+
private readonly descriptors;
|
|
40
|
+
private readonly rebinds;
|
|
41
|
+
private readonly scopeStack;
|
|
42
|
+
private target;
|
|
43
|
+
private readonly onKeydown;
|
|
44
|
+
constructor(opts?: KeymapOptions);
|
|
45
|
+
/** Register (or replace, by id) a binding. Returns a disposer. */
|
|
46
|
+
register(desc: KeyBindingDescriptor): () => void;
|
|
47
|
+
unregister(id: string): void;
|
|
48
|
+
/** User-level rebinding: overrides the descriptor's default chords (null resets). */
|
|
49
|
+
rebind(id: string, keys: string | string[] | null): void;
|
|
50
|
+
/** Snapshot for a shortcuts help panel / rebinding UI. */
|
|
51
|
+
bindings(): ResolvedBinding[];
|
|
52
|
+
pushScope(scope: string): () => void;
|
|
53
|
+
/** Pops the TOPMOST occurrence of `scope` (tolerates out-of-order teardown). */
|
|
54
|
+
popScope(scope: string): void;
|
|
55
|
+
get activeScope(): string;
|
|
56
|
+
attach(target: EventTarget): void;
|
|
57
|
+
detach(): void;
|
|
58
|
+
/** The matcher — public so hosts/tests can feed events from their own listeners. */
|
|
59
|
+
handleKeydown(ev: KeyboardEvent): boolean;
|
|
60
|
+
destroy(): void;
|
|
61
|
+
private activeKeys;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { KeymapManager as K, type ResolvedBinding as R, type KeyBindingDescriptor as a, type KeymapOptions as b };
|