@tradecanvas/chart 1.17.0 → 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.
@@ -888,7 +888,7 @@ function kn(e) {
888
888
  if (typeof e == "number" && !Number.isFinite(e)) throw RangeError(`Invalid UTC offset: ${e}`);
889
889
  }
890
890
  var An = 2, jn = .08, Mn = 800, Nn = 20, Pn = 8, Fn = class {
891
- static version = "1.17.0";
891
+ static version = "1.18.0";
892
892
  engine;
893
893
  viewport;
894
894
  dataManager;
@@ -1854,6 +1854,12 @@ var An = 2, jn = .08, Mn = 800, Nn = 20, Pn = 8, Fn = class {
1854
1854
  let { min: n, max: r } = this.viewport.getState().priceRange;
1855
1855
  return Number(e.toFixed(this.marketPricePrecision ?? s(n, r)));
1856
1856
  }
1857
+ getPriceStep() {
1858
+ let e = this.symbolInfo?.minTick ?? this.priceUnit ?? void 0;
1859
+ if (e !== void 0 && e > 0) return e;
1860
+ let { min: t, max: n } = this.viewport.getState().priceRange, r = this.marketPricePrecision ?? s(t, n);
1861
+ return Number((10 ** -r).toFixed(r));
1862
+ }
1857
1863
  setPriceFormat(e) {
1858
1864
  this.applyPriceFormat(e), this.updateViewportAndRender();
1859
1865
  }
@@ -4199,4 +4205,4 @@ var br = class {
4199
4205
  //#endregion
4200
4206
  export { Yt as C, F as S, H as _, hr as a, on as b, Fn as c, xn as d, W as f, vn as g, _n as h, gr as i, On as l, bn as m, _r as n, fr as o, yn as p, $ as r, rr as s, br as t, Sn as u, ln as v, I as x, L as y };
4201
4207
 
4202
- //# sourceMappingURL=LayoutSession-DW5fcwzw.js.map
4208
+ //# sourceMappingURL=LayoutSession-DnVpA1Bg.js.map