@pipsend/charts 1.1.2 → 1.1.3

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * Pipsend Charts v1.1.2-dev+202601191544
3
+ * Pipsend Charts v1.1.3-dev+202601191631
4
4
  * Copyright (c) 2026 Pipsend
5
5
  * Licensed under MIT License
6
6
  * Built on TradingView Lightweight Charts™ (Apache 2.0)
@@ -18744,8 +18744,13 @@ class PositionTool extends DrawingToolBase {
18744
18744
  if (this._private__primitive) {
18745
18745
  this._series.detachPrimitive(this._private__primitive);
18746
18746
  this._private__primitive = null;
18747
- // Force chart redraw to clear the detached primitive
18748
- this._chart.timeScale().applyOptions({});
18747
+ this._private__paneView = null;
18748
+ const chartElement = this._chart.chartElement?.();
18749
+ if (chartElement) {
18750
+ const currentWidth = chartElement.clientWidth;
18751
+ const currentHeight = chartElement.clientHeight;
18752
+ this._chart.resize(currentWidth, currentHeight);
18753
+ }
18749
18754
  }
18750
18755
  if (this._private__positionOptions.onRemove) {
18751
18756
  this._private__positionOptions.onRemove();
@@ -19258,8 +19263,13 @@ class RulerTool extends DrawingToolBase {
19258
19263
  if (this._private__primitive) {
19259
19264
  this._series.detachPrimitive(this._private__primitive);
19260
19265
  this._private__primitive = null;
19261
- // Force chart redraw to clear the detached primitive
19262
- this._chart.timeScale().applyOptions({});
19266
+ this._private__paneView = null;
19267
+ const chartElement = this._chart.chartElement?.();
19268
+ if (chartElement) {
19269
+ const currentWidth = chartElement.clientWidth;
19270
+ const currentHeight = chartElement.clientHeight;
19271
+ this._chart.resize(currentWidth, currentHeight);
19272
+ }
19263
19273
  }
19264
19274
  if (this._private__drawingManager) {
19265
19275
  this._private__drawingManager._internal_destroy();
@@ -19949,8 +19959,13 @@ class FibonacciTool extends DrawingToolBase {
19949
19959
  if (this._private__primitive) {
19950
19960
  this._series.detachPrimitive(this._private__primitive);
19951
19961
  this._private__primitive = null;
19952
- // Force chart redraw to clear the detached primitive
19953
- this._chart.timeScale().applyOptions({});
19962
+ this._private__paneView = null;
19963
+ const chartElement = this._chart.chartElement?.();
19964
+ if (chartElement) {
19965
+ const currentWidth = chartElement.clientWidth;
19966
+ const currentHeight = chartElement.clientHeight;
19967
+ this._chart.resize(currentWidth, currentHeight);
19968
+ }
19954
19969
  }
19955
19970
  if (this._private__drawingManager) {
19956
19971
  this._private__drawingManager._internal_destroy();
@@ -19965,8 +19980,13 @@ class FibonacciTool extends DrawingToolBase {
19965
19980
  if (this._private__primitive) {
19966
19981
  this._series.detachPrimitive(this._private__primitive);
19967
19982
  this._private__primitive = null;
19968
- // Force chart redraw to clear the detached primitive
19969
- this._chart.timeScale().applyOptions({});
19983
+ this._private__paneView = null;
19984
+ const chartElement = this._chart.chartElement?.();
19985
+ if (chartElement) {
19986
+ const currentWidth = chartElement.clientWidth;
19987
+ const currentHeight = chartElement.clientHeight;
19988
+ this._chart.resize(currentWidth, currentHeight);
19989
+ }
19970
19990
  }
19971
19991
  if (this._private__fibOptions.onRemove) {
19972
19992
  this._private__fibOptions.onRemove();
@@ -20332,10 +20352,18 @@ class TrendLineTool extends DrawingToolBase {
20332
20352
  }
20333
20353
  remove() {
20334
20354
  if (this._private__primitive) {
20355
+ // Detach from series
20335
20356
  this._series.detachPrimitive(this._private__primitive);
20357
+ // Clean up references
20336
20358
  this._private__primitive = null;
20337
- // Force chart redraw to clear the detached primitive
20338
- this._chart.timeScale().applyOptions({});
20359
+ this._private__paneView = null;
20360
+ // Force chart update by triggering a resize
20361
+ const chartElement = this._chart.chartElement?.();
20362
+ if (chartElement) {
20363
+ const currentWidth = chartElement.clientWidth;
20364
+ const currentHeight = chartElement.clientHeight;
20365
+ this._chart.resize(currentWidth, currentHeight);
20366
+ }
20339
20367
  }
20340
20368
  if (this._private__trendOptions.onRemove) {
20341
20369
  this._private__trendOptions.onRemove();
@@ -20535,8 +20563,13 @@ class HorizontalLineTool extends DrawingToolBase {
20535
20563
  if (this._private__primitive) {
20536
20564
  this._series.detachPrimitive(this._private__primitive);
20537
20565
  this._private__primitive = null;
20538
- // Force chart redraw to clear the detached primitive
20539
- this._chart.timeScale().applyOptions({});
20566
+ this._private__paneView = null;
20567
+ const chartElement = this._chart.chartElement?.();
20568
+ if (chartElement) {
20569
+ const currentWidth = chartElement.clientWidth;
20570
+ const currentHeight = chartElement.clientHeight;
20571
+ this._chart.resize(currentWidth, currentHeight);
20572
+ }
20540
20573
  }
20541
20574
  if (this._private__hLineOptions.onRemove) {
20542
20575
  this._private__hLineOptions.onRemove();
@@ -20738,8 +20771,13 @@ class VerticalLineTool extends DrawingToolBase {
20738
20771
  if (this._private__primitive) {
20739
20772
  this._series.detachPrimitive(this._private__primitive);
20740
20773
  this._private__primitive = null;
20741
- // Force chart redraw to clear the detached primitive
20742
- this._chart.timeScale().applyOptions({});
20774
+ this._private__paneView = null;
20775
+ const chartElement = this._chart.chartElement?.();
20776
+ if (chartElement) {
20777
+ const currentWidth = chartElement.clientWidth;
20778
+ const currentHeight = chartElement.clientHeight;
20779
+ this._chart.resize(currentWidth, currentHeight);
20780
+ }
20743
20781
  }
20744
20782
  if (this._private__vLineOptions.onRemove) {
20745
20783
  this._private__vLineOptions.onRemove();
@@ -21162,8 +21200,13 @@ class ArrowTool extends DrawingToolBase {
21162
21200
  if (this._private__primitive) {
21163
21201
  this._series.detachPrimitive(this._private__primitive);
21164
21202
  this._private__primitive = null;
21165
- // Force chart redraw to clear the detached primitive
21166
- this._chart.timeScale().applyOptions({});
21203
+ this._private__paneView = null;
21204
+ const chartElement = this._chart.chartElement?.();
21205
+ if (chartElement) {
21206
+ const currentWidth = chartElement.clientWidth;
21207
+ const currentHeight = chartElement.clientHeight;
21208
+ this._chart.resize(currentWidth, currentHeight);
21209
+ }
21167
21210
  }
21168
21211
  if (this._private__arrowOptions.onRemove) {
21169
21212
  this._private__arrowOptions.onRemove();
@@ -21640,8 +21683,13 @@ class RectangleTool extends DrawingToolBase {
21640
21683
  if (this._private__primitive) {
21641
21684
  this._series.detachPrimitive(this._private__primitive);
21642
21685
  this._private__primitive = null;
21643
- // Force chart redraw to clear the detached primitive
21644
- this._chart.timeScale().applyOptions({});
21686
+ this._private__paneView = null;
21687
+ const chartElement = this._chart.chartElement?.();
21688
+ if (chartElement) {
21689
+ const currentWidth = chartElement.clientWidth;
21690
+ const currentHeight = chartElement.clientHeight;
21691
+ this._chart.resize(currentWidth, currentHeight);
21692
+ }
21645
21693
  }
21646
21694
  if (this._private__rectOptions.onRemove) {
21647
21695
  this._private__rectOptions.onRemove();
@@ -22021,8 +22069,13 @@ class CircleTool extends DrawingToolBase {
22021
22069
  if (this._private__primitive) {
22022
22070
  this._series.detachPrimitive(this._private__primitive);
22023
22071
  this._private__primitive = null;
22024
- // Force chart redraw to clear the detached primitive
22025
- this._chart.timeScale().applyOptions({});
22072
+ this._private__paneView = null;
22073
+ const chartElement = this._chart.chartElement?.();
22074
+ if (chartElement) {
22075
+ const currentWidth = chartElement.clientWidth;
22076
+ const currentHeight = chartElement.clientHeight;
22077
+ this._chart.resize(currentWidth, currentHeight);
22078
+ }
22026
22079
  }
22027
22080
  if (this._private__circleOptions.onRemove) {
22028
22081
  this._private__circleOptions.onRemove();
@@ -22397,8 +22450,13 @@ class FibonacciFanTool extends DrawingToolBase {
22397
22450
  if (this._private__primitive) {
22398
22451
  this._series.detachPrimitive(this._private__primitive);
22399
22452
  this._private__primitive = null;
22400
- // Force chart redraw to clear the detached primitive
22401
- this._chart.timeScale().applyOptions({});
22453
+ this._private__paneView = null;
22454
+ const chartElement = this._chart.chartElement?.();
22455
+ if (chartElement) {
22456
+ const currentWidth = chartElement.clientWidth;
22457
+ const currentHeight = chartElement.clientHeight;
22458
+ this._chart.resize(currentWidth, currentHeight);
22459
+ }
22402
22460
  }
22403
22461
  if (this._private__fanOptions.onRemove) {
22404
22462
  this._private__fanOptions.onRemove();
@@ -22777,8 +22835,13 @@ class FibonacciExtensionTool extends DrawingToolBase {
22777
22835
  if (this._private__primitive) {
22778
22836
  this._series.detachPrimitive(this._private__primitive);
22779
22837
  this._private__primitive = null;
22780
- // Force chart redraw to clear the detached primitive
22781
- this._chart.timeScale().applyOptions({});
22838
+ this._private__paneView = null;
22839
+ const chartElement = this._chart.chartElement?.();
22840
+ if (chartElement) {
22841
+ const currentWidth = chartElement.clientWidth;
22842
+ const currentHeight = chartElement.clientHeight;
22843
+ this._chart.resize(currentWidth, currentHeight);
22844
+ }
22782
22845
  }
22783
22846
  }
22784
22847
  }
@@ -23015,8 +23078,13 @@ class GanttTool extends DrawingToolBase {
23015
23078
  if (this._private__primitive) {
23016
23079
  this._series.detachPrimitive(this._private__primitive);
23017
23080
  this._private__primitive = null;
23018
- // Force chart redraw to clear the detached primitive
23019
- this._chart.timeScale().applyOptions({});
23081
+ this._private__paneView = null;
23082
+ const chartElement = this._chart.chartElement?.();
23083
+ if (chartElement) {
23084
+ const currentWidth = chartElement.clientWidth;
23085
+ const currentHeight = chartElement.clientHeight;
23086
+ this._chart.resize(currentWidth, currentHeight);
23087
+ }
23020
23088
  }
23021
23089
  if (this._private__ganttOptions.onRemove) {
23022
23090
  this._private__ganttOptions.onRemove();
@@ -23463,8 +23531,13 @@ class BrushTool extends DrawingToolBase {
23463
23531
  if (this._private__primitive) {
23464
23532
  this._series.detachPrimitive(this._private__primitive);
23465
23533
  this._private__primitive = null;
23466
- // Force chart redraw to clear the detached primitive
23467
- this._chart.timeScale().applyOptions({});
23534
+ this._private__paneView = null;
23535
+ const chartElement = this._chart.chartElement?.();
23536
+ if (chartElement) {
23537
+ const currentWidth = chartElement.clientWidth;
23538
+ const currentHeight = chartElement.clientHeight;
23539
+ this._chart.resize(currentWidth, currentHeight);
23540
+ }
23468
23541
  }
23469
23542
  if (this._private__brushOptions.onRemove) {
23470
23543
  this._private__brushOptions.onRemove();
@@ -23778,8 +23851,13 @@ class TextTool extends DrawingToolBase {
23778
23851
  if (this._private__primitive && this._series) {
23779
23852
  this._series.detachPrimitive(this._private__primitive);
23780
23853
  this._private__primitive = null;
23781
- // Force chart redraw to clear the detached primitive
23782
- this._chart.timeScale().applyOptions({});
23854
+ this._private__paneView = null;
23855
+ const chartElement = this._chart.chartElement?.();
23856
+ if (chartElement) {
23857
+ const currentWidth = chartElement.clientWidth;
23858
+ const currentHeight = chartElement.clientHeight;
23859
+ this._chart.resize(currentWidth, currentHeight);
23860
+ }
23783
23861
  }
23784
23862
  if (this._private__textOptions.onRemove) {
23785
23863
  this._private__textOptions.onRemove();
@@ -23800,7 +23878,7 @@ const customSeriesDefaultOptions = {
23800
23878
  * Returns the current version as a string. For example `'1.0.0'`.
23801
23879
  */
23802
23880
  function version() {
23803
- return "1.1.2-dev+202601191544";
23881
+ return "1.1.3-dev+202601191631";
23804
23882
  }
23805
23883
 
23806
23884
  export { areaSeries as AreaSeries, ArrowTool, barSeries as BarSeries, baselineSeries as BaselineSeries, BrushTool, candlestickSeries as CandlestickSeries, CircleTool, ColorType, CrosshairMode, DEFAULT_SESSIONS, DraggablePriceLine, DrawingToolsManager, EXTENDED_FIBONACCI_RATIOS, FibonacciCalculator, FibonacciExtensionTool, FibonacciFanTool, FibonacciTool, GanttTool, histogramSeries as HistogramSeries, HorizontalLineTool, InteractiveLineManager, LastPriceAnimationMode, lineSeries as LineSeries, LineStyle, LineType, MismatchDirection, PositionCalculator, PositionMarkersManager, PositionTool, PriceLineSource, PriceScaleMode, RectangleTool, RulerCalculator, RulerTool, STANDARD_FIBONACCI_RATIOS, TextTool, TickMarkType, TrackingModeExitMode, TradingSessionsIndicator, TrendLineTool, VerticalLineTool, VolumeProfileIndicator, applyATR, applyBollingerBands, applyEMA, applyMACD, applyOBV, applyRSI, applySMA, applyStochastic, applyVolume, applyWMA, calculatePipConfig, createArrowTool, createBrushTool, createChart, createChartEx, createCircleTool, createFibonacciExtensionTool, createFibonacciFanTool, createFibonacciTool, createGanttTool, createHorizontalLineTool, createImageWatermark, createInteractiveLineManager, createOptionsChart, createPositionMarkers, createPositionTool, createRectangleTool, createRulerTool, createSeriesMarkers, createTextTool, createTextWatermark, createTradingLine, createTradingSessionsIndicator, createTrendLineTool, createUpDownMarkers, createVerticalLineTool, createVolumeProfileIndicator, createYieldCurveChart, customSeriesDefaultOptions, defaultHorzScaleBehavior, getPipConfig, isBusinessDay, isUTCTimestamp, setOBVVolumeData, setVolumeData, setVolumeProfileData, version };
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * Pipsend Charts v1.1.2-dev+202601191544
3
+ * Pipsend Charts v1.1.3-dev+202601191631
4
4
  * Copyright (c) 2026 Pipsend
5
5
  * Licensed under MIT License
6
6
  * Built on TradingView Lightweight Charts™ (Apache 2.0)
@@ -19140,8 +19140,13 @@
19140
19140
  if (this._private__primitive) {
19141
19141
  this._series.detachPrimitive(this._private__primitive);
19142
19142
  this._private__primitive = null;
19143
- // Force chart redraw to clear the detached primitive
19144
- this._chart.timeScale().applyOptions({});
19143
+ this._private__paneView = null;
19144
+ const chartElement = this._chart.chartElement?.();
19145
+ if (chartElement) {
19146
+ const currentWidth = chartElement.clientWidth;
19147
+ const currentHeight = chartElement.clientHeight;
19148
+ this._chart.resize(currentWidth, currentHeight);
19149
+ }
19145
19150
  }
19146
19151
  if (this._private__positionOptions.onRemove) {
19147
19152
  this._private__positionOptions.onRemove();
@@ -19654,8 +19659,13 @@
19654
19659
  if (this._private__primitive) {
19655
19660
  this._series.detachPrimitive(this._private__primitive);
19656
19661
  this._private__primitive = null;
19657
- // Force chart redraw to clear the detached primitive
19658
- this._chart.timeScale().applyOptions({});
19662
+ this._private__paneView = null;
19663
+ const chartElement = this._chart.chartElement?.();
19664
+ if (chartElement) {
19665
+ const currentWidth = chartElement.clientWidth;
19666
+ const currentHeight = chartElement.clientHeight;
19667
+ this._chart.resize(currentWidth, currentHeight);
19668
+ }
19659
19669
  }
19660
19670
  if (this._private__drawingManager) {
19661
19671
  this._private__drawingManager._internal_destroy();
@@ -20345,8 +20355,13 @@
20345
20355
  if (this._private__primitive) {
20346
20356
  this._series.detachPrimitive(this._private__primitive);
20347
20357
  this._private__primitive = null;
20348
- // Force chart redraw to clear the detached primitive
20349
- this._chart.timeScale().applyOptions({});
20358
+ this._private__paneView = null;
20359
+ const chartElement = this._chart.chartElement?.();
20360
+ if (chartElement) {
20361
+ const currentWidth = chartElement.clientWidth;
20362
+ const currentHeight = chartElement.clientHeight;
20363
+ this._chart.resize(currentWidth, currentHeight);
20364
+ }
20350
20365
  }
20351
20366
  if (this._private__drawingManager) {
20352
20367
  this._private__drawingManager._internal_destroy();
@@ -20361,8 +20376,13 @@
20361
20376
  if (this._private__primitive) {
20362
20377
  this._series.detachPrimitive(this._private__primitive);
20363
20378
  this._private__primitive = null;
20364
- // Force chart redraw to clear the detached primitive
20365
- this._chart.timeScale().applyOptions({});
20379
+ this._private__paneView = null;
20380
+ const chartElement = this._chart.chartElement?.();
20381
+ if (chartElement) {
20382
+ const currentWidth = chartElement.clientWidth;
20383
+ const currentHeight = chartElement.clientHeight;
20384
+ this._chart.resize(currentWidth, currentHeight);
20385
+ }
20366
20386
  }
20367
20387
  if (this._private__fibOptions.onRemove) {
20368
20388
  this._private__fibOptions.onRemove();
@@ -20728,10 +20748,18 @@
20728
20748
  }
20729
20749
  remove() {
20730
20750
  if (this._private__primitive) {
20751
+ // Detach from series
20731
20752
  this._series.detachPrimitive(this._private__primitive);
20753
+ // Clean up references
20732
20754
  this._private__primitive = null;
20733
- // Force chart redraw to clear the detached primitive
20734
- this._chart.timeScale().applyOptions({});
20755
+ this._private__paneView = null;
20756
+ // Force chart update by triggering a resize
20757
+ const chartElement = this._chart.chartElement?.();
20758
+ if (chartElement) {
20759
+ const currentWidth = chartElement.clientWidth;
20760
+ const currentHeight = chartElement.clientHeight;
20761
+ this._chart.resize(currentWidth, currentHeight);
20762
+ }
20735
20763
  }
20736
20764
  if (this._private__trendOptions.onRemove) {
20737
20765
  this._private__trendOptions.onRemove();
@@ -20931,8 +20959,13 @@
20931
20959
  if (this._private__primitive) {
20932
20960
  this._series.detachPrimitive(this._private__primitive);
20933
20961
  this._private__primitive = null;
20934
- // Force chart redraw to clear the detached primitive
20935
- this._chart.timeScale().applyOptions({});
20962
+ this._private__paneView = null;
20963
+ const chartElement = this._chart.chartElement?.();
20964
+ if (chartElement) {
20965
+ const currentWidth = chartElement.clientWidth;
20966
+ const currentHeight = chartElement.clientHeight;
20967
+ this._chart.resize(currentWidth, currentHeight);
20968
+ }
20936
20969
  }
20937
20970
  if (this._private__hLineOptions.onRemove) {
20938
20971
  this._private__hLineOptions.onRemove();
@@ -21134,8 +21167,13 @@
21134
21167
  if (this._private__primitive) {
21135
21168
  this._series.detachPrimitive(this._private__primitive);
21136
21169
  this._private__primitive = null;
21137
- // Force chart redraw to clear the detached primitive
21138
- this._chart.timeScale().applyOptions({});
21170
+ this._private__paneView = null;
21171
+ const chartElement = this._chart.chartElement?.();
21172
+ if (chartElement) {
21173
+ const currentWidth = chartElement.clientWidth;
21174
+ const currentHeight = chartElement.clientHeight;
21175
+ this._chart.resize(currentWidth, currentHeight);
21176
+ }
21139
21177
  }
21140
21178
  if (this._private__vLineOptions.onRemove) {
21141
21179
  this._private__vLineOptions.onRemove();
@@ -21558,8 +21596,13 @@
21558
21596
  if (this._private__primitive) {
21559
21597
  this._series.detachPrimitive(this._private__primitive);
21560
21598
  this._private__primitive = null;
21561
- // Force chart redraw to clear the detached primitive
21562
- this._chart.timeScale().applyOptions({});
21599
+ this._private__paneView = null;
21600
+ const chartElement = this._chart.chartElement?.();
21601
+ if (chartElement) {
21602
+ const currentWidth = chartElement.clientWidth;
21603
+ const currentHeight = chartElement.clientHeight;
21604
+ this._chart.resize(currentWidth, currentHeight);
21605
+ }
21563
21606
  }
21564
21607
  if (this._private__arrowOptions.onRemove) {
21565
21608
  this._private__arrowOptions.onRemove();
@@ -22036,8 +22079,13 @@
22036
22079
  if (this._private__primitive) {
22037
22080
  this._series.detachPrimitive(this._private__primitive);
22038
22081
  this._private__primitive = null;
22039
- // Force chart redraw to clear the detached primitive
22040
- this._chart.timeScale().applyOptions({});
22082
+ this._private__paneView = null;
22083
+ const chartElement = this._chart.chartElement?.();
22084
+ if (chartElement) {
22085
+ const currentWidth = chartElement.clientWidth;
22086
+ const currentHeight = chartElement.clientHeight;
22087
+ this._chart.resize(currentWidth, currentHeight);
22088
+ }
22041
22089
  }
22042
22090
  if (this._private__rectOptions.onRemove) {
22043
22091
  this._private__rectOptions.onRemove();
@@ -22417,8 +22465,13 @@
22417
22465
  if (this._private__primitive) {
22418
22466
  this._series.detachPrimitive(this._private__primitive);
22419
22467
  this._private__primitive = null;
22420
- // Force chart redraw to clear the detached primitive
22421
- this._chart.timeScale().applyOptions({});
22468
+ this._private__paneView = null;
22469
+ const chartElement = this._chart.chartElement?.();
22470
+ if (chartElement) {
22471
+ const currentWidth = chartElement.clientWidth;
22472
+ const currentHeight = chartElement.clientHeight;
22473
+ this._chart.resize(currentWidth, currentHeight);
22474
+ }
22422
22475
  }
22423
22476
  if (this._private__circleOptions.onRemove) {
22424
22477
  this._private__circleOptions.onRemove();
@@ -22793,8 +22846,13 @@
22793
22846
  if (this._private__primitive) {
22794
22847
  this._series.detachPrimitive(this._private__primitive);
22795
22848
  this._private__primitive = null;
22796
- // Force chart redraw to clear the detached primitive
22797
- this._chart.timeScale().applyOptions({});
22849
+ this._private__paneView = null;
22850
+ const chartElement = this._chart.chartElement?.();
22851
+ if (chartElement) {
22852
+ const currentWidth = chartElement.clientWidth;
22853
+ const currentHeight = chartElement.clientHeight;
22854
+ this._chart.resize(currentWidth, currentHeight);
22855
+ }
22798
22856
  }
22799
22857
  if (this._private__fanOptions.onRemove) {
22800
22858
  this._private__fanOptions.onRemove();
@@ -23173,8 +23231,13 @@
23173
23231
  if (this._private__primitive) {
23174
23232
  this._series.detachPrimitive(this._private__primitive);
23175
23233
  this._private__primitive = null;
23176
- // Force chart redraw to clear the detached primitive
23177
- this._chart.timeScale().applyOptions({});
23234
+ this._private__paneView = null;
23235
+ const chartElement = this._chart.chartElement?.();
23236
+ if (chartElement) {
23237
+ const currentWidth = chartElement.clientWidth;
23238
+ const currentHeight = chartElement.clientHeight;
23239
+ this._chart.resize(currentWidth, currentHeight);
23240
+ }
23178
23241
  }
23179
23242
  }
23180
23243
  }
@@ -23411,8 +23474,13 @@
23411
23474
  if (this._private__primitive) {
23412
23475
  this._series.detachPrimitive(this._private__primitive);
23413
23476
  this._private__primitive = null;
23414
- // Force chart redraw to clear the detached primitive
23415
- this._chart.timeScale().applyOptions({});
23477
+ this._private__paneView = null;
23478
+ const chartElement = this._chart.chartElement?.();
23479
+ if (chartElement) {
23480
+ const currentWidth = chartElement.clientWidth;
23481
+ const currentHeight = chartElement.clientHeight;
23482
+ this._chart.resize(currentWidth, currentHeight);
23483
+ }
23416
23484
  }
23417
23485
  if (this._private__ganttOptions.onRemove) {
23418
23486
  this._private__ganttOptions.onRemove();
@@ -23859,8 +23927,13 @@
23859
23927
  if (this._private__primitive) {
23860
23928
  this._series.detachPrimitive(this._private__primitive);
23861
23929
  this._private__primitive = null;
23862
- // Force chart redraw to clear the detached primitive
23863
- this._chart.timeScale().applyOptions({});
23930
+ this._private__paneView = null;
23931
+ const chartElement = this._chart.chartElement?.();
23932
+ if (chartElement) {
23933
+ const currentWidth = chartElement.clientWidth;
23934
+ const currentHeight = chartElement.clientHeight;
23935
+ this._chart.resize(currentWidth, currentHeight);
23936
+ }
23864
23937
  }
23865
23938
  if (this._private__brushOptions.onRemove) {
23866
23939
  this._private__brushOptions.onRemove();
@@ -24174,8 +24247,13 @@
24174
24247
  if (this._private__primitive && this._series) {
24175
24248
  this._series.detachPrimitive(this._private__primitive);
24176
24249
  this._private__primitive = null;
24177
- // Force chart redraw to clear the detached primitive
24178
- this._chart.timeScale().applyOptions({});
24250
+ this._private__paneView = null;
24251
+ const chartElement = this._chart.chartElement?.();
24252
+ if (chartElement) {
24253
+ const currentWidth = chartElement.clientWidth;
24254
+ const currentHeight = chartElement.clientHeight;
24255
+ this._chart.resize(currentWidth, currentHeight);
24256
+ }
24179
24257
  }
24180
24258
  if (this._private__textOptions.onRemove) {
24181
24259
  this._private__textOptions.onRemove();
@@ -24196,7 +24274,7 @@
24196
24274
  * Returns the current version as a string. For example `'1.0.0'`.
24197
24275
  */
24198
24276
  function version() {
24199
- return "1.1.2-dev+202601191544";
24277
+ return "1.1.3-dev+202601191631";
24200
24278
  }
24201
24279
 
24202
24280
  var PipsendChartsModule = /*#__PURE__*/Object.freeze({
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * Pipsend Charts v1.1.2-dev+202601191544
3
+ * Pipsend Charts v1.1.3-dev+202601191631
4
4
  * Copyright (c) 2026 Pipsend
5
5
  * Licensed under MIT License
6
6
  * Built on TradingView Lightweight Charts™ (Apache 2.0)
@@ -19137,8 +19137,13 @@ class PositionTool extends DrawingToolBase {
19137
19137
  if (this._private__primitive) {
19138
19138
  this._series.detachPrimitive(this._private__primitive);
19139
19139
  this._private__primitive = null;
19140
- // Force chart redraw to clear the detached primitive
19141
- this._chart.timeScale().applyOptions({});
19140
+ this._private__paneView = null;
19141
+ const chartElement = this._chart.chartElement?.();
19142
+ if (chartElement) {
19143
+ const currentWidth = chartElement.clientWidth;
19144
+ const currentHeight = chartElement.clientHeight;
19145
+ this._chart.resize(currentWidth, currentHeight);
19146
+ }
19142
19147
  }
19143
19148
  if (this._private__positionOptions.onRemove) {
19144
19149
  this._private__positionOptions.onRemove();
@@ -19651,8 +19656,13 @@ class RulerTool extends DrawingToolBase {
19651
19656
  if (this._private__primitive) {
19652
19657
  this._series.detachPrimitive(this._private__primitive);
19653
19658
  this._private__primitive = null;
19654
- // Force chart redraw to clear the detached primitive
19655
- this._chart.timeScale().applyOptions({});
19659
+ this._private__paneView = null;
19660
+ const chartElement = this._chart.chartElement?.();
19661
+ if (chartElement) {
19662
+ const currentWidth = chartElement.clientWidth;
19663
+ const currentHeight = chartElement.clientHeight;
19664
+ this._chart.resize(currentWidth, currentHeight);
19665
+ }
19656
19666
  }
19657
19667
  if (this._private__drawingManager) {
19658
19668
  this._private__drawingManager._internal_destroy();
@@ -20342,8 +20352,13 @@ class FibonacciTool extends DrawingToolBase {
20342
20352
  if (this._private__primitive) {
20343
20353
  this._series.detachPrimitive(this._private__primitive);
20344
20354
  this._private__primitive = null;
20345
- // Force chart redraw to clear the detached primitive
20346
- this._chart.timeScale().applyOptions({});
20355
+ this._private__paneView = null;
20356
+ const chartElement = this._chart.chartElement?.();
20357
+ if (chartElement) {
20358
+ const currentWidth = chartElement.clientWidth;
20359
+ const currentHeight = chartElement.clientHeight;
20360
+ this._chart.resize(currentWidth, currentHeight);
20361
+ }
20347
20362
  }
20348
20363
  if (this._private__drawingManager) {
20349
20364
  this._private__drawingManager._internal_destroy();
@@ -20358,8 +20373,13 @@ class FibonacciTool extends DrawingToolBase {
20358
20373
  if (this._private__primitive) {
20359
20374
  this._series.detachPrimitive(this._private__primitive);
20360
20375
  this._private__primitive = null;
20361
- // Force chart redraw to clear the detached primitive
20362
- this._chart.timeScale().applyOptions({});
20376
+ this._private__paneView = null;
20377
+ const chartElement = this._chart.chartElement?.();
20378
+ if (chartElement) {
20379
+ const currentWidth = chartElement.clientWidth;
20380
+ const currentHeight = chartElement.clientHeight;
20381
+ this._chart.resize(currentWidth, currentHeight);
20382
+ }
20363
20383
  }
20364
20384
  if (this._private__fibOptions.onRemove) {
20365
20385
  this._private__fibOptions.onRemove();
@@ -20725,10 +20745,18 @@ class TrendLineTool extends DrawingToolBase {
20725
20745
  }
20726
20746
  remove() {
20727
20747
  if (this._private__primitive) {
20748
+ // Detach from series
20728
20749
  this._series.detachPrimitive(this._private__primitive);
20750
+ // Clean up references
20729
20751
  this._private__primitive = null;
20730
- // Force chart redraw to clear the detached primitive
20731
- this._chart.timeScale().applyOptions({});
20752
+ this._private__paneView = null;
20753
+ // Force chart update by triggering a resize
20754
+ const chartElement = this._chart.chartElement?.();
20755
+ if (chartElement) {
20756
+ const currentWidth = chartElement.clientWidth;
20757
+ const currentHeight = chartElement.clientHeight;
20758
+ this._chart.resize(currentWidth, currentHeight);
20759
+ }
20732
20760
  }
20733
20761
  if (this._private__trendOptions.onRemove) {
20734
20762
  this._private__trendOptions.onRemove();
@@ -20928,8 +20956,13 @@ class HorizontalLineTool extends DrawingToolBase {
20928
20956
  if (this._private__primitive) {
20929
20957
  this._series.detachPrimitive(this._private__primitive);
20930
20958
  this._private__primitive = null;
20931
- // Force chart redraw to clear the detached primitive
20932
- this._chart.timeScale().applyOptions({});
20959
+ this._private__paneView = null;
20960
+ const chartElement = this._chart.chartElement?.();
20961
+ if (chartElement) {
20962
+ const currentWidth = chartElement.clientWidth;
20963
+ const currentHeight = chartElement.clientHeight;
20964
+ this._chart.resize(currentWidth, currentHeight);
20965
+ }
20933
20966
  }
20934
20967
  if (this._private__hLineOptions.onRemove) {
20935
20968
  this._private__hLineOptions.onRemove();
@@ -21131,8 +21164,13 @@ class VerticalLineTool extends DrawingToolBase {
21131
21164
  if (this._private__primitive) {
21132
21165
  this._series.detachPrimitive(this._private__primitive);
21133
21166
  this._private__primitive = null;
21134
- // Force chart redraw to clear the detached primitive
21135
- this._chart.timeScale().applyOptions({});
21167
+ this._private__paneView = null;
21168
+ const chartElement = this._chart.chartElement?.();
21169
+ if (chartElement) {
21170
+ const currentWidth = chartElement.clientWidth;
21171
+ const currentHeight = chartElement.clientHeight;
21172
+ this._chart.resize(currentWidth, currentHeight);
21173
+ }
21136
21174
  }
21137
21175
  if (this._private__vLineOptions.onRemove) {
21138
21176
  this._private__vLineOptions.onRemove();
@@ -21555,8 +21593,13 @@ class ArrowTool extends DrawingToolBase {
21555
21593
  if (this._private__primitive) {
21556
21594
  this._series.detachPrimitive(this._private__primitive);
21557
21595
  this._private__primitive = null;
21558
- // Force chart redraw to clear the detached primitive
21559
- this._chart.timeScale().applyOptions({});
21596
+ this._private__paneView = null;
21597
+ const chartElement = this._chart.chartElement?.();
21598
+ if (chartElement) {
21599
+ const currentWidth = chartElement.clientWidth;
21600
+ const currentHeight = chartElement.clientHeight;
21601
+ this._chart.resize(currentWidth, currentHeight);
21602
+ }
21560
21603
  }
21561
21604
  if (this._private__arrowOptions.onRemove) {
21562
21605
  this._private__arrowOptions.onRemove();
@@ -22033,8 +22076,13 @@ class RectangleTool extends DrawingToolBase {
22033
22076
  if (this._private__primitive) {
22034
22077
  this._series.detachPrimitive(this._private__primitive);
22035
22078
  this._private__primitive = null;
22036
- // Force chart redraw to clear the detached primitive
22037
- this._chart.timeScale().applyOptions({});
22079
+ this._private__paneView = null;
22080
+ const chartElement = this._chart.chartElement?.();
22081
+ if (chartElement) {
22082
+ const currentWidth = chartElement.clientWidth;
22083
+ const currentHeight = chartElement.clientHeight;
22084
+ this._chart.resize(currentWidth, currentHeight);
22085
+ }
22038
22086
  }
22039
22087
  if (this._private__rectOptions.onRemove) {
22040
22088
  this._private__rectOptions.onRemove();
@@ -22414,8 +22462,13 @@ class CircleTool extends DrawingToolBase {
22414
22462
  if (this._private__primitive) {
22415
22463
  this._series.detachPrimitive(this._private__primitive);
22416
22464
  this._private__primitive = null;
22417
- // Force chart redraw to clear the detached primitive
22418
- this._chart.timeScale().applyOptions({});
22465
+ this._private__paneView = null;
22466
+ const chartElement = this._chart.chartElement?.();
22467
+ if (chartElement) {
22468
+ const currentWidth = chartElement.clientWidth;
22469
+ const currentHeight = chartElement.clientHeight;
22470
+ this._chart.resize(currentWidth, currentHeight);
22471
+ }
22419
22472
  }
22420
22473
  if (this._private__circleOptions.onRemove) {
22421
22474
  this._private__circleOptions.onRemove();
@@ -22790,8 +22843,13 @@ class FibonacciFanTool extends DrawingToolBase {
22790
22843
  if (this._private__primitive) {
22791
22844
  this._series.detachPrimitive(this._private__primitive);
22792
22845
  this._private__primitive = null;
22793
- // Force chart redraw to clear the detached primitive
22794
- this._chart.timeScale().applyOptions({});
22846
+ this._private__paneView = null;
22847
+ const chartElement = this._chart.chartElement?.();
22848
+ if (chartElement) {
22849
+ const currentWidth = chartElement.clientWidth;
22850
+ const currentHeight = chartElement.clientHeight;
22851
+ this._chart.resize(currentWidth, currentHeight);
22852
+ }
22795
22853
  }
22796
22854
  if (this._private__fanOptions.onRemove) {
22797
22855
  this._private__fanOptions.onRemove();
@@ -23170,8 +23228,13 @@ class FibonacciExtensionTool extends DrawingToolBase {
23170
23228
  if (this._private__primitive) {
23171
23229
  this._series.detachPrimitive(this._private__primitive);
23172
23230
  this._private__primitive = null;
23173
- // Force chart redraw to clear the detached primitive
23174
- this._chart.timeScale().applyOptions({});
23231
+ this._private__paneView = null;
23232
+ const chartElement = this._chart.chartElement?.();
23233
+ if (chartElement) {
23234
+ const currentWidth = chartElement.clientWidth;
23235
+ const currentHeight = chartElement.clientHeight;
23236
+ this._chart.resize(currentWidth, currentHeight);
23237
+ }
23175
23238
  }
23176
23239
  }
23177
23240
  }
@@ -23408,8 +23471,13 @@ class GanttTool extends DrawingToolBase {
23408
23471
  if (this._private__primitive) {
23409
23472
  this._series.detachPrimitive(this._private__primitive);
23410
23473
  this._private__primitive = null;
23411
- // Force chart redraw to clear the detached primitive
23412
- this._chart.timeScale().applyOptions({});
23474
+ this._private__paneView = null;
23475
+ const chartElement = this._chart.chartElement?.();
23476
+ if (chartElement) {
23477
+ const currentWidth = chartElement.clientWidth;
23478
+ const currentHeight = chartElement.clientHeight;
23479
+ this._chart.resize(currentWidth, currentHeight);
23480
+ }
23413
23481
  }
23414
23482
  if (this._private__ganttOptions.onRemove) {
23415
23483
  this._private__ganttOptions.onRemove();
@@ -23856,8 +23924,13 @@ class BrushTool extends DrawingToolBase {
23856
23924
  if (this._private__primitive) {
23857
23925
  this._series.detachPrimitive(this._private__primitive);
23858
23926
  this._private__primitive = null;
23859
- // Force chart redraw to clear the detached primitive
23860
- this._chart.timeScale().applyOptions({});
23927
+ this._private__paneView = null;
23928
+ const chartElement = this._chart.chartElement?.();
23929
+ if (chartElement) {
23930
+ const currentWidth = chartElement.clientWidth;
23931
+ const currentHeight = chartElement.clientHeight;
23932
+ this._chart.resize(currentWidth, currentHeight);
23933
+ }
23861
23934
  }
23862
23935
  if (this._private__brushOptions.onRemove) {
23863
23936
  this._private__brushOptions.onRemove();
@@ -24171,8 +24244,13 @@ class TextTool extends DrawingToolBase {
24171
24244
  if (this._private__primitive && this._series) {
24172
24245
  this._series.detachPrimitive(this._private__primitive);
24173
24246
  this._private__primitive = null;
24174
- // Force chart redraw to clear the detached primitive
24175
- this._chart.timeScale().applyOptions({});
24247
+ this._private__paneView = null;
24248
+ const chartElement = this._chart.chartElement?.();
24249
+ if (chartElement) {
24250
+ const currentWidth = chartElement.clientWidth;
24251
+ const currentHeight = chartElement.clientHeight;
24252
+ this._chart.resize(currentWidth, currentHeight);
24253
+ }
24176
24254
  }
24177
24255
  if (this._private__textOptions.onRemove) {
24178
24256
  this._private__textOptions.onRemove();
@@ -24193,7 +24271,7 @@ const customSeriesDefaultOptions = {
24193
24271
  * Returns the current version as a string. For example `'1.0.0'`.
24194
24272
  */
24195
24273
  function version() {
24196
- return "1.1.2-dev+202601191544";
24274
+ return "1.1.3-dev+202601191631";
24197
24275
  }
24198
24276
 
24199
24277
  export { areaSeries as AreaSeries, ArrowTool, barSeries as BarSeries, baselineSeries as BaselineSeries, BrushTool, candlestickSeries as CandlestickSeries, CircleTool, ColorType, CrosshairMode, DEFAULT_SESSIONS, DraggablePriceLine, DrawingToolsManager, EXTENDED_FIBONACCI_RATIOS, FibonacciCalculator, FibonacciExtensionTool, FibonacciFanTool, FibonacciTool, GanttTool, histogramSeries as HistogramSeries, HorizontalLineTool, InteractiveLineManager, LastPriceAnimationMode, lineSeries as LineSeries, LineStyle, LineType, MismatchDirection, PositionCalculator, PositionMarkersManager, PositionTool, PriceLineSource, PriceScaleMode, RectangleTool, RulerCalculator, RulerTool, STANDARD_FIBONACCI_RATIOS, TextTool, TickMarkType, TrackingModeExitMode, TradingSessionsIndicator, TrendLineTool, VerticalLineTool, VolumeProfileIndicator, applyATR, applyBollingerBands, applyEMA, applyMACD, applyOBV, applyRSI, applySMA, applyStochastic, applyVolume, applyWMA, calculatePipConfig, createArrowTool, createBrushTool, createChart, createChartEx, createCircleTool, createFibonacciExtensionTool, createFibonacciFanTool, createFibonacciTool, createGanttTool, createHorizontalLineTool, createImageWatermark, createInteractiveLineManager, createOptionsChart, createPositionMarkers, createPositionTool, createRectangleTool, createRulerTool, createSeriesMarkers, createTextTool, createTextWatermark, createTradingLine, createTradingSessionsIndicator, createTrendLineTool, createUpDownMarkers, createVerticalLineTool, createVolumeProfileIndicator, createYieldCurveChart, customSeriesDefaultOptions, defaultHorzScaleBehavior, getPipConfig, isBusinessDay, isUTCTimestamp, setOBVVolumeData, setVolumeData, setVolumeProfileData, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "private": false,
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "name": "@pipsend/charts",
5
5
  "author": "Pipsend",
6
6
  "license": "SEE LICENSE IN LICENSE",