kline-orderbook-chart 1.2.0 → 1.4.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/CHANGELOG.md +47 -0
- package/dist/chart_engine.js +1 -1
- package/dist/chart_engine_bg.wasm +0 -0
- package/dist/index.d.ts +13 -0
- package/dist/mrd-chart-engine.mjs +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,14 @@ export interface MrdChart {
|
|
|
54
54
|
start(): void;
|
|
55
55
|
stop(): void;
|
|
56
56
|
resize(retries?: number): void;
|
|
57
|
+
/**
|
|
58
|
+
* Re-render the current chart frame to a fresh offscreen canvas at
|
|
59
|
+
* `cssSize × scale` device px (true supersampling), for crisp
|
|
60
|
+
* snapshots/exports independent of the screen's devicePixelRatio.
|
|
61
|
+
* Returns null when the candle engine isn't the active painter
|
|
62
|
+
* (e.g. tick mode) — blit the live canvas in that case.
|
|
63
|
+
*/
|
|
64
|
+
captureFrame(scale?: number): HTMLCanvasElement | null;
|
|
57
65
|
destroy(): void;
|
|
58
66
|
pause(): void;
|
|
59
67
|
resume(): void;
|
|
@@ -109,6 +117,11 @@ export declare function createOrderbookBridge(
|
|
|
109
117
|
): Promise<MrdOrderbook>;
|
|
110
118
|
|
|
111
119
|
export interface OrderbookBridgeOptions {
|
|
120
|
+
/** Ed25519-signed license token. Requires the Enterprise tier; without a
|
|
121
|
+
* covering license the panel renders an "Enterprise license required"
|
|
122
|
+
* notice and never paints orderbook data. */
|
|
123
|
+
licenseKey?: string | null;
|
|
124
|
+
key?: string | null;
|
|
112
125
|
symbol?: string;
|
|
113
126
|
tickSize?: number;
|
|
114
127
|
visibleTicks?: number;
|