kline-orderbook-chart 1.4.6 → 1.5.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/CHANGELOG.md +10 -0
- package/README.md +26 -26
- package/dist/chart-engine.mjs +43 -0
- package/dist/chart_engine.js +5 -5
- package/dist/chart_engine_bg.wasm +0 -0
- package/dist/index.d.ts +12 -6
- package/package.json +5 -5
- package/dist/mrd-chart-engine.mjs +0 -43
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function createChartBridge(
|
|
2
2
|
canvas: HTMLCanvasElement,
|
|
3
3
|
options?: ChartBridgeOptions,
|
|
4
|
-
): Promise<
|
|
4
|
+
): Promise<ChartEngine>;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Eagerly fetch and compile the native engine module in the background.
|
|
@@ -31,7 +31,7 @@ export interface ChartBridgeOptions {
|
|
|
31
31
|
* "License expired" overlay, when the chart is fully blocked) become
|
|
32
32
|
* clickable affordances that open the pricing page in a new tab.
|
|
33
33
|
*
|
|
34
|
-
* Default: opens https://app.
|
|
34
|
+
* Default: opens https://app.tapedelta.com/charting-library/pricing.
|
|
35
35
|
*
|
|
36
36
|
* Customers embedding the engine in their own trading product can
|
|
37
37
|
* point trial-expired users at THEIR upgrade page instead.
|
|
@@ -41,7 +41,7 @@ export interface ChartBridgeOptions {
|
|
|
41
41
|
url?: string;
|
|
42
42
|
/** Sub-text on the badge (default: "Open the full app"). */
|
|
43
43
|
text?: string;
|
|
44
|
-
/** Bold title on the badge (default: "
|
|
44
|
+
/** Bold title on the badge (default: "Tape Delta"). */
|
|
45
45
|
title?: string;
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -49,7 +49,7 @@ export declare function dispatchCommands(ctx: CanvasRenderingContext2D, memory:
|
|
|
49
49
|
export declare function setupEvents(canvas: HTMLCanvasElement, engine: any, callbacks: any): () => void;
|
|
50
50
|
export declare function createCustomIndicatorManager(engine: any, memory: WebAssembly.Memory, dispatch: any): any;
|
|
51
51
|
|
|
52
|
-
export interface
|
|
52
|
+
export interface ChartEngine {
|
|
53
53
|
engine: any;
|
|
54
54
|
start(): void;
|
|
55
55
|
stop(): void;
|
|
@@ -109,12 +109,15 @@ export interface MrdChart {
|
|
|
109
109
|
resetView(opts?: { isMobile?: boolean }): void;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
/** @deprecated Renamed to {@link ChartEngine}. Kept as a back-compat alias. */
|
|
113
|
+
export type MrdChart = ChartEngine;
|
|
114
|
+
|
|
112
115
|
// ── Orderbook Engine ──
|
|
113
116
|
|
|
114
117
|
export declare function createOrderbookBridge(
|
|
115
118
|
canvas: HTMLCanvasElement,
|
|
116
119
|
options?: OrderbookBridgeOptions,
|
|
117
|
-
): Promise<
|
|
120
|
+
): Promise<OrderbookEngine>;
|
|
118
121
|
|
|
119
122
|
export interface OrderbookBridgeOptions {
|
|
120
123
|
/** Ed25519-signed license token. Requires the Enterprise tier; without a
|
|
@@ -133,7 +136,7 @@ export interface OrderbookBridgeOptions {
|
|
|
133
136
|
ringRows?: number;
|
|
134
137
|
}
|
|
135
138
|
|
|
136
|
-
export interface
|
|
139
|
+
export interface OrderbookEngine {
|
|
137
140
|
engine: any;
|
|
138
141
|
start(): void;
|
|
139
142
|
stop(): void;
|
|
@@ -158,3 +161,6 @@ export interface MrdOrderbook {
|
|
|
158
161
|
getHoverQty(): number;
|
|
159
162
|
getHoverSide(): number;
|
|
160
163
|
}
|
|
164
|
+
|
|
165
|
+
/** @deprecated Renamed to {@link OrderbookEngine}. Kept as a back-compat alias. */
|
|
166
|
+
export type MrdOrderbook = OrderbookEngine;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kline-orderbook-chart",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Candlestick chart with built-in GPU-accelerated (WebGL2) orderbook heatmap, footprint chart, volume profile, and liquidation heatmap. Native WebAssembly engine — 60 fps, zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/
|
|
7
|
-
"module": "dist/
|
|
6
|
+
"main": "dist/chart-engine.mjs",
|
|
7
|
+
"module": "dist/chart-engine.mjs",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"import": "./dist/
|
|
11
|
+
"import": "./dist/chart-engine.mjs",
|
|
12
12
|
"types": "./dist/index.d.ts"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"trading",
|
|
49
49
|
"crypto"
|
|
50
50
|
],
|
|
51
|
-
"author": "
|
|
51
|
+
"author": "Tape Delta <support@tapedelta.com>",
|
|
52
52
|
"license": "SEE LICENSE IN LICENSE",
|
|
53
53
|
"homepage": "https://github.com/PhamNhinh/kline-orderbook-chart",
|
|
54
54
|
"repository": {
|