@tradecanvas/core 1.16.1 → 1.18.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/dist/axis/PriceAxis.d.ts +15 -0
- package/dist/axis/PriceAxis.d.ts.map +1 -1
- package/dist/axis/index.d.ts +1 -1
- package/dist/axis/index.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1587 -1547
- package/dist/index.js.map +1 -1
- package/dist/realtime/StreamManager.d.ts +3 -1
- package/dist/realtime/StreamManager.d.ts.map +1 -1
- package/dist/realtime/adapters/PollingAdapter.d.ts +1 -1
- package/dist/realtime/adapters/PollingAdapter.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/axis/PriceAxis.d.ts
CHANGED
|
@@ -7,6 +7,21 @@ export declare function priceScaleText(price: number, viewport: ViewportState, p
|
|
|
7
7
|
export declare class PriceAxis {
|
|
8
8
|
private locale;
|
|
9
9
|
private reservedPrice;
|
|
10
|
+
private precision;
|
|
11
|
+
private tick;
|
|
12
|
+
/** Decimals the labels show (the market's or the symbol's), or null to fit them to the range. */
|
|
13
|
+
setPricePrecision(precision: number | null): void;
|
|
14
|
+
/** The smallest price step (a symbol's `minTick`): ticks stay on whole numbers of it. Null: none. */
|
|
15
|
+
setPriceTick(tick: number | null): void;
|
|
16
|
+
/**
|
|
17
|
+
* The scale's step and the decimals its labels show, for the range on view:
|
|
18
|
+
* on the symbol's price grid in its decimals; a fraction's steps with a
|
|
19
|
+
* fraction format; and where fewer than two prices of the grid are on view
|
|
20
|
+
* (a flat or deeply zoomed range), the plain step in the decimals it needs.
|
|
21
|
+
*/
|
|
22
|
+
private scale;
|
|
23
|
+
/** A price as this scale writes it now (to measure the axis by). */
|
|
24
|
+
labelText(price: number, viewport: ViewportState): string;
|
|
10
25
|
/**
|
|
11
26
|
* Price whose tag sits on the axis (the last-price tag). Tick labels it
|
|
12
27
|
* would cover are skipped instead of showing half-hidden behind it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceAxis.d.ts","sourceRoot":"","sources":["../../src/axis/PriceAxis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGjE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAMhH;
|
|
1
|
+
{"version":3,"file":"PriceAxis.d.ts","sourceRoot":"","sources":["../../src/axis/PriceAxis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGjE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAMhH;AA+BD,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,aAAa,CAAsC;IAC3D,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,IAAI,CAAuB;IAEnC,iGAAiG;IACjG,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIjD,qGAAqG;IACrG,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIvC;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAUb,oEAAoE;IACpE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,GAAG,MAAM;IAIzD;;;OAGG;IACH,wBAAwB,CAAC,QAAQ,EAAE,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI;IAItE,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B;;;OAGG;IACH,MAAM,CACJ,GAAG,EAAE,wBAAwB,EAC7B,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,KAAK,EACZ,IAAI,GAAE,OAAO,GAAG,MAAgB;IAChC,kGAAkG;IAClG,KAAK,GAAE,SAAS,MAAM,EAAO,GAC5B,IAAI;CA2DR"}
|
package/dist/axis/index.d.ts
CHANGED
package/dist/axis/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/axis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/axis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|