@pipsend/charts 1.1.0 → 1.1.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * Pipsend Charts v1.1.0
3
+ * Pipsend Charts v1.1.2-dev+202601191544
4
4
  * Copyright (c) 2026 Pipsend
5
5
  * Licensed under MIT License
6
6
  * Built on TradingView Lightweight Charts™ (Apache 2.0)
@@ -18744,6 +18744,8 @@ 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
18749
  }
18748
18750
  if (this._private__positionOptions.onRemove) {
18749
18751
  this._private__positionOptions.onRemove();
@@ -19256,6 +19258,8 @@ class RulerTool extends DrawingToolBase {
19256
19258
  if (this._private__primitive) {
19257
19259
  this._series.detachPrimitive(this._private__primitive);
19258
19260
  this._private__primitive = null;
19261
+ // Force chart redraw to clear the detached primitive
19262
+ this._chart.timeScale().applyOptions({});
19259
19263
  }
19260
19264
  if (this._private__drawingManager) {
19261
19265
  this._private__drawingManager._internal_destroy();
@@ -19945,6 +19949,8 @@ class FibonacciTool extends DrawingToolBase {
19945
19949
  if (this._private__primitive) {
19946
19950
  this._series.detachPrimitive(this._private__primitive);
19947
19951
  this._private__primitive = null;
19952
+ // Force chart redraw to clear the detached primitive
19953
+ this._chart.timeScale().applyOptions({});
19948
19954
  }
19949
19955
  if (this._private__drawingManager) {
19950
19956
  this._private__drawingManager._internal_destroy();
@@ -19959,6 +19965,8 @@ class FibonacciTool extends DrawingToolBase {
19959
19965
  if (this._private__primitive) {
19960
19966
  this._series.detachPrimitive(this._private__primitive);
19961
19967
  this._private__primitive = null;
19968
+ // Force chart redraw to clear the detached primitive
19969
+ this._chart.timeScale().applyOptions({});
19962
19970
  }
19963
19971
  if (this._private__fibOptions.onRemove) {
19964
19972
  this._private__fibOptions.onRemove();
@@ -20326,6 +20334,8 @@ class TrendLineTool extends DrawingToolBase {
20326
20334
  if (this._private__primitive) {
20327
20335
  this._series.detachPrimitive(this._private__primitive);
20328
20336
  this._private__primitive = null;
20337
+ // Force chart redraw to clear the detached primitive
20338
+ this._chart.timeScale().applyOptions({});
20329
20339
  }
20330
20340
  if (this._private__trendOptions.onRemove) {
20331
20341
  this._private__trendOptions.onRemove();
@@ -20525,6 +20535,8 @@ class HorizontalLineTool extends DrawingToolBase {
20525
20535
  if (this._private__primitive) {
20526
20536
  this._series.detachPrimitive(this._private__primitive);
20527
20537
  this._private__primitive = null;
20538
+ // Force chart redraw to clear the detached primitive
20539
+ this._chart.timeScale().applyOptions({});
20528
20540
  }
20529
20541
  if (this._private__hLineOptions.onRemove) {
20530
20542
  this._private__hLineOptions.onRemove();
@@ -20726,6 +20738,8 @@ class VerticalLineTool extends DrawingToolBase {
20726
20738
  if (this._private__primitive) {
20727
20739
  this._series.detachPrimitive(this._private__primitive);
20728
20740
  this._private__primitive = null;
20741
+ // Force chart redraw to clear the detached primitive
20742
+ this._chart.timeScale().applyOptions({});
20729
20743
  }
20730
20744
  if (this._private__vLineOptions.onRemove) {
20731
20745
  this._private__vLineOptions.onRemove();
@@ -21148,6 +21162,8 @@ class ArrowTool extends DrawingToolBase {
21148
21162
  if (this._private__primitive) {
21149
21163
  this._series.detachPrimitive(this._private__primitive);
21150
21164
  this._private__primitive = null;
21165
+ // Force chart redraw to clear the detached primitive
21166
+ this._chart.timeScale().applyOptions({});
21151
21167
  }
21152
21168
  if (this._private__arrowOptions.onRemove) {
21153
21169
  this._private__arrowOptions.onRemove();
@@ -21624,6 +21640,8 @@ class RectangleTool extends DrawingToolBase {
21624
21640
  if (this._private__primitive) {
21625
21641
  this._series.detachPrimitive(this._private__primitive);
21626
21642
  this._private__primitive = null;
21643
+ // Force chart redraw to clear the detached primitive
21644
+ this._chart.timeScale().applyOptions({});
21627
21645
  }
21628
21646
  if (this._private__rectOptions.onRemove) {
21629
21647
  this._private__rectOptions.onRemove();
@@ -22003,6 +22021,8 @@ class CircleTool extends DrawingToolBase {
22003
22021
  if (this._private__primitive) {
22004
22022
  this._series.detachPrimitive(this._private__primitive);
22005
22023
  this._private__primitive = null;
22024
+ // Force chart redraw to clear the detached primitive
22025
+ this._chart.timeScale().applyOptions({});
22006
22026
  }
22007
22027
  if (this._private__circleOptions.onRemove) {
22008
22028
  this._private__circleOptions.onRemove();
@@ -22377,6 +22397,8 @@ class FibonacciFanTool extends DrawingToolBase {
22377
22397
  if (this._private__primitive) {
22378
22398
  this._series.detachPrimitive(this._private__primitive);
22379
22399
  this._private__primitive = null;
22400
+ // Force chart redraw to clear the detached primitive
22401
+ this._chart.timeScale().applyOptions({});
22380
22402
  }
22381
22403
  if (this._private__fanOptions.onRemove) {
22382
22404
  this._private__fanOptions.onRemove();
@@ -22755,6 +22777,8 @@ class FibonacciExtensionTool extends DrawingToolBase {
22755
22777
  if (this._private__primitive) {
22756
22778
  this._series.detachPrimitive(this._private__primitive);
22757
22779
  this._private__primitive = null;
22780
+ // Force chart redraw to clear the detached primitive
22781
+ this._chart.timeScale().applyOptions({});
22758
22782
  }
22759
22783
  }
22760
22784
  }
@@ -22991,6 +23015,8 @@ class GanttTool extends DrawingToolBase {
22991
23015
  if (this._private__primitive) {
22992
23016
  this._series.detachPrimitive(this._private__primitive);
22993
23017
  this._private__primitive = null;
23018
+ // Force chart redraw to clear the detached primitive
23019
+ this._chart.timeScale().applyOptions({});
22994
23020
  }
22995
23021
  if (this._private__ganttOptions.onRemove) {
22996
23022
  this._private__ganttOptions.onRemove();
@@ -23437,6 +23463,8 @@ class BrushTool extends DrawingToolBase {
23437
23463
  if (this._private__primitive) {
23438
23464
  this._series.detachPrimitive(this._private__primitive);
23439
23465
  this._private__primitive = null;
23466
+ // Force chart redraw to clear the detached primitive
23467
+ this._chart.timeScale().applyOptions({});
23440
23468
  }
23441
23469
  if (this._private__brushOptions.onRemove) {
23442
23470
  this._private__brushOptions.onRemove();
@@ -23749,6 +23777,9 @@ class TextTool extends DrawingToolBase {
23749
23777
  }
23750
23778
  if (this._private__primitive && this._series) {
23751
23779
  this._series.detachPrimitive(this._private__primitive);
23780
+ this._private__primitive = null;
23781
+ // Force chart redraw to clear the detached primitive
23782
+ this._chart.timeScale().applyOptions({});
23752
23783
  }
23753
23784
  if (this._private__textOptions.onRemove) {
23754
23785
  this._private__textOptions.onRemove();
@@ -23769,7 +23800,7 @@ const customSeriesDefaultOptions = {
23769
23800
  * Returns the current version as a string. For example `'1.0.0'`.
23770
23801
  */
23771
23802
  function version() {
23772
- return "1.1.0";
23803
+ return "1.1.2-dev+202601191544";
23773
23804
  }
23774
23805
 
23775
23806
  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.0
3
+ * Pipsend Charts v1.1.2-dev+202601191544
4
4
  * Copyright (c) 2026 Pipsend
5
5
  * Licensed under MIT License
6
6
  * Built on TradingView Lightweight Charts™ (Apache 2.0)
@@ -19140,6 +19140,8 @@
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
19145
  }
19144
19146
  if (this._private__positionOptions.onRemove) {
19145
19147
  this._private__positionOptions.onRemove();
@@ -19652,6 +19654,8 @@
19652
19654
  if (this._private__primitive) {
19653
19655
  this._series.detachPrimitive(this._private__primitive);
19654
19656
  this._private__primitive = null;
19657
+ // Force chart redraw to clear the detached primitive
19658
+ this._chart.timeScale().applyOptions({});
19655
19659
  }
19656
19660
  if (this._private__drawingManager) {
19657
19661
  this._private__drawingManager._internal_destroy();
@@ -20341,6 +20345,8 @@
20341
20345
  if (this._private__primitive) {
20342
20346
  this._series.detachPrimitive(this._private__primitive);
20343
20347
  this._private__primitive = null;
20348
+ // Force chart redraw to clear the detached primitive
20349
+ this._chart.timeScale().applyOptions({});
20344
20350
  }
20345
20351
  if (this._private__drawingManager) {
20346
20352
  this._private__drawingManager._internal_destroy();
@@ -20355,6 +20361,8 @@
20355
20361
  if (this._private__primitive) {
20356
20362
  this._series.detachPrimitive(this._private__primitive);
20357
20363
  this._private__primitive = null;
20364
+ // Force chart redraw to clear the detached primitive
20365
+ this._chart.timeScale().applyOptions({});
20358
20366
  }
20359
20367
  if (this._private__fibOptions.onRemove) {
20360
20368
  this._private__fibOptions.onRemove();
@@ -20722,6 +20730,8 @@
20722
20730
  if (this._private__primitive) {
20723
20731
  this._series.detachPrimitive(this._private__primitive);
20724
20732
  this._private__primitive = null;
20733
+ // Force chart redraw to clear the detached primitive
20734
+ this._chart.timeScale().applyOptions({});
20725
20735
  }
20726
20736
  if (this._private__trendOptions.onRemove) {
20727
20737
  this._private__trendOptions.onRemove();
@@ -20921,6 +20931,8 @@
20921
20931
  if (this._private__primitive) {
20922
20932
  this._series.detachPrimitive(this._private__primitive);
20923
20933
  this._private__primitive = null;
20934
+ // Force chart redraw to clear the detached primitive
20935
+ this._chart.timeScale().applyOptions({});
20924
20936
  }
20925
20937
  if (this._private__hLineOptions.onRemove) {
20926
20938
  this._private__hLineOptions.onRemove();
@@ -21122,6 +21134,8 @@
21122
21134
  if (this._private__primitive) {
21123
21135
  this._series.detachPrimitive(this._private__primitive);
21124
21136
  this._private__primitive = null;
21137
+ // Force chart redraw to clear the detached primitive
21138
+ this._chart.timeScale().applyOptions({});
21125
21139
  }
21126
21140
  if (this._private__vLineOptions.onRemove) {
21127
21141
  this._private__vLineOptions.onRemove();
@@ -21544,6 +21558,8 @@
21544
21558
  if (this._private__primitive) {
21545
21559
  this._series.detachPrimitive(this._private__primitive);
21546
21560
  this._private__primitive = null;
21561
+ // Force chart redraw to clear the detached primitive
21562
+ this._chart.timeScale().applyOptions({});
21547
21563
  }
21548
21564
  if (this._private__arrowOptions.onRemove) {
21549
21565
  this._private__arrowOptions.onRemove();
@@ -22020,6 +22036,8 @@
22020
22036
  if (this._private__primitive) {
22021
22037
  this._series.detachPrimitive(this._private__primitive);
22022
22038
  this._private__primitive = null;
22039
+ // Force chart redraw to clear the detached primitive
22040
+ this._chart.timeScale().applyOptions({});
22023
22041
  }
22024
22042
  if (this._private__rectOptions.onRemove) {
22025
22043
  this._private__rectOptions.onRemove();
@@ -22399,6 +22417,8 @@
22399
22417
  if (this._private__primitive) {
22400
22418
  this._series.detachPrimitive(this._private__primitive);
22401
22419
  this._private__primitive = null;
22420
+ // Force chart redraw to clear the detached primitive
22421
+ this._chart.timeScale().applyOptions({});
22402
22422
  }
22403
22423
  if (this._private__circleOptions.onRemove) {
22404
22424
  this._private__circleOptions.onRemove();
@@ -22773,6 +22793,8 @@
22773
22793
  if (this._private__primitive) {
22774
22794
  this._series.detachPrimitive(this._private__primitive);
22775
22795
  this._private__primitive = null;
22796
+ // Force chart redraw to clear the detached primitive
22797
+ this._chart.timeScale().applyOptions({});
22776
22798
  }
22777
22799
  if (this._private__fanOptions.onRemove) {
22778
22800
  this._private__fanOptions.onRemove();
@@ -23151,6 +23173,8 @@
23151
23173
  if (this._private__primitive) {
23152
23174
  this._series.detachPrimitive(this._private__primitive);
23153
23175
  this._private__primitive = null;
23176
+ // Force chart redraw to clear the detached primitive
23177
+ this._chart.timeScale().applyOptions({});
23154
23178
  }
23155
23179
  }
23156
23180
  }
@@ -23387,6 +23411,8 @@
23387
23411
  if (this._private__primitive) {
23388
23412
  this._series.detachPrimitive(this._private__primitive);
23389
23413
  this._private__primitive = null;
23414
+ // Force chart redraw to clear the detached primitive
23415
+ this._chart.timeScale().applyOptions({});
23390
23416
  }
23391
23417
  if (this._private__ganttOptions.onRemove) {
23392
23418
  this._private__ganttOptions.onRemove();
@@ -23833,6 +23859,8 @@
23833
23859
  if (this._private__primitive) {
23834
23860
  this._series.detachPrimitive(this._private__primitive);
23835
23861
  this._private__primitive = null;
23862
+ // Force chart redraw to clear the detached primitive
23863
+ this._chart.timeScale().applyOptions({});
23836
23864
  }
23837
23865
  if (this._private__brushOptions.onRemove) {
23838
23866
  this._private__brushOptions.onRemove();
@@ -24145,6 +24173,9 @@
24145
24173
  }
24146
24174
  if (this._private__primitive && this._series) {
24147
24175
  this._series.detachPrimitive(this._private__primitive);
24176
+ this._private__primitive = null;
24177
+ // Force chart redraw to clear the detached primitive
24178
+ this._chart.timeScale().applyOptions({});
24148
24179
  }
24149
24180
  if (this._private__textOptions.onRemove) {
24150
24181
  this._private__textOptions.onRemove();
@@ -24165,7 +24196,7 @@
24165
24196
  * Returns the current version as a string. For example `'1.0.0'`.
24166
24197
  */
24167
24198
  function version() {
24168
- return "1.1.0";
24199
+ return "1.1.2-dev+202601191544";
24169
24200
  }
24170
24201
 
24171
24202
  var PipsendChartsModule = /*#__PURE__*/Object.freeze({
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * Pipsend Charts v1.1.0
3
+ * Pipsend Charts v1.1.2-dev+202601191544
4
4
  * Copyright (c) 2026 Pipsend
5
5
  * Licensed under MIT License
6
6
  * Built on TradingView Lightweight Charts™ (Apache 2.0)
@@ -19137,6 +19137,8 @@ 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
19142
  }
19141
19143
  if (this._private__positionOptions.onRemove) {
19142
19144
  this._private__positionOptions.onRemove();
@@ -19649,6 +19651,8 @@ class RulerTool extends DrawingToolBase {
19649
19651
  if (this._private__primitive) {
19650
19652
  this._series.detachPrimitive(this._private__primitive);
19651
19653
  this._private__primitive = null;
19654
+ // Force chart redraw to clear the detached primitive
19655
+ this._chart.timeScale().applyOptions({});
19652
19656
  }
19653
19657
  if (this._private__drawingManager) {
19654
19658
  this._private__drawingManager._internal_destroy();
@@ -20338,6 +20342,8 @@ class FibonacciTool extends DrawingToolBase {
20338
20342
  if (this._private__primitive) {
20339
20343
  this._series.detachPrimitive(this._private__primitive);
20340
20344
  this._private__primitive = null;
20345
+ // Force chart redraw to clear the detached primitive
20346
+ this._chart.timeScale().applyOptions({});
20341
20347
  }
20342
20348
  if (this._private__drawingManager) {
20343
20349
  this._private__drawingManager._internal_destroy();
@@ -20352,6 +20358,8 @@ class FibonacciTool extends DrawingToolBase {
20352
20358
  if (this._private__primitive) {
20353
20359
  this._series.detachPrimitive(this._private__primitive);
20354
20360
  this._private__primitive = null;
20361
+ // Force chart redraw to clear the detached primitive
20362
+ this._chart.timeScale().applyOptions({});
20355
20363
  }
20356
20364
  if (this._private__fibOptions.onRemove) {
20357
20365
  this._private__fibOptions.onRemove();
@@ -20719,6 +20727,8 @@ class TrendLineTool extends DrawingToolBase {
20719
20727
  if (this._private__primitive) {
20720
20728
  this._series.detachPrimitive(this._private__primitive);
20721
20729
  this._private__primitive = null;
20730
+ // Force chart redraw to clear the detached primitive
20731
+ this._chart.timeScale().applyOptions({});
20722
20732
  }
20723
20733
  if (this._private__trendOptions.onRemove) {
20724
20734
  this._private__trendOptions.onRemove();
@@ -20918,6 +20928,8 @@ class HorizontalLineTool extends DrawingToolBase {
20918
20928
  if (this._private__primitive) {
20919
20929
  this._series.detachPrimitive(this._private__primitive);
20920
20930
  this._private__primitive = null;
20931
+ // Force chart redraw to clear the detached primitive
20932
+ this._chart.timeScale().applyOptions({});
20921
20933
  }
20922
20934
  if (this._private__hLineOptions.onRemove) {
20923
20935
  this._private__hLineOptions.onRemove();
@@ -21119,6 +21131,8 @@ class VerticalLineTool extends DrawingToolBase {
21119
21131
  if (this._private__primitive) {
21120
21132
  this._series.detachPrimitive(this._private__primitive);
21121
21133
  this._private__primitive = null;
21134
+ // Force chart redraw to clear the detached primitive
21135
+ this._chart.timeScale().applyOptions({});
21122
21136
  }
21123
21137
  if (this._private__vLineOptions.onRemove) {
21124
21138
  this._private__vLineOptions.onRemove();
@@ -21541,6 +21555,8 @@ class ArrowTool extends DrawingToolBase {
21541
21555
  if (this._private__primitive) {
21542
21556
  this._series.detachPrimitive(this._private__primitive);
21543
21557
  this._private__primitive = null;
21558
+ // Force chart redraw to clear the detached primitive
21559
+ this._chart.timeScale().applyOptions({});
21544
21560
  }
21545
21561
  if (this._private__arrowOptions.onRemove) {
21546
21562
  this._private__arrowOptions.onRemove();
@@ -22017,6 +22033,8 @@ class RectangleTool extends DrawingToolBase {
22017
22033
  if (this._private__primitive) {
22018
22034
  this._series.detachPrimitive(this._private__primitive);
22019
22035
  this._private__primitive = null;
22036
+ // Force chart redraw to clear the detached primitive
22037
+ this._chart.timeScale().applyOptions({});
22020
22038
  }
22021
22039
  if (this._private__rectOptions.onRemove) {
22022
22040
  this._private__rectOptions.onRemove();
@@ -22396,6 +22414,8 @@ class CircleTool extends DrawingToolBase {
22396
22414
  if (this._private__primitive) {
22397
22415
  this._series.detachPrimitive(this._private__primitive);
22398
22416
  this._private__primitive = null;
22417
+ // Force chart redraw to clear the detached primitive
22418
+ this._chart.timeScale().applyOptions({});
22399
22419
  }
22400
22420
  if (this._private__circleOptions.onRemove) {
22401
22421
  this._private__circleOptions.onRemove();
@@ -22770,6 +22790,8 @@ class FibonacciFanTool extends DrawingToolBase {
22770
22790
  if (this._private__primitive) {
22771
22791
  this._series.detachPrimitive(this._private__primitive);
22772
22792
  this._private__primitive = null;
22793
+ // Force chart redraw to clear the detached primitive
22794
+ this._chart.timeScale().applyOptions({});
22773
22795
  }
22774
22796
  if (this._private__fanOptions.onRemove) {
22775
22797
  this._private__fanOptions.onRemove();
@@ -23148,6 +23170,8 @@ class FibonacciExtensionTool extends DrawingToolBase {
23148
23170
  if (this._private__primitive) {
23149
23171
  this._series.detachPrimitive(this._private__primitive);
23150
23172
  this._private__primitive = null;
23173
+ // Force chart redraw to clear the detached primitive
23174
+ this._chart.timeScale().applyOptions({});
23151
23175
  }
23152
23176
  }
23153
23177
  }
@@ -23384,6 +23408,8 @@ class GanttTool extends DrawingToolBase {
23384
23408
  if (this._private__primitive) {
23385
23409
  this._series.detachPrimitive(this._private__primitive);
23386
23410
  this._private__primitive = null;
23411
+ // Force chart redraw to clear the detached primitive
23412
+ this._chart.timeScale().applyOptions({});
23387
23413
  }
23388
23414
  if (this._private__ganttOptions.onRemove) {
23389
23415
  this._private__ganttOptions.onRemove();
@@ -23830,6 +23856,8 @@ class BrushTool extends DrawingToolBase {
23830
23856
  if (this._private__primitive) {
23831
23857
  this._series.detachPrimitive(this._private__primitive);
23832
23858
  this._private__primitive = null;
23859
+ // Force chart redraw to clear the detached primitive
23860
+ this._chart.timeScale().applyOptions({});
23833
23861
  }
23834
23862
  if (this._private__brushOptions.onRemove) {
23835
23863
  this._private__brushOptions.onRemove();
@@ -24142,6 +24170,9 @@ class TextTool extends DrawingToolBase {
24142
24170
  }
24143
24171
  if (this._private__primitive && this._series) {
24144
24172
  this._series.detachPrimitive(this._private__primitive);
24173
+ this._private__primitive = null;
24174
+ // Force chart redraw to clear the detached primitive
24175
+ this._chart.timeScale().applyOptions({});
24145
24176
  }
24146
24177
  if (this._private__textOptions.onRemove) {
24147
24178
  this._private__textOptions.onRemove();
@@ -24162,7 +24193,7 @@ const customSeriesDefaultOptions = {
24162
24193
  * Returns the current version as a string. For example `'1.0.0'`.
24163
24194
  */
24164
24195
  function version() {
24165
- return "1.1.0";
24196
+ return "1.1.2-dev+202601191544";
24166
24197
  }
24167
24198
 
24168
24199
  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,5 +1,6 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "private": false,
3
+ "version": "1.1.2",
3
4
  "name": "@pipsend/charts",
4
5
  "author": "Pipsend",
5
6
  "license": "SEE LICENSE IN LICENSE",
@@ -53,7 +54,88 @@
53
54
  "bollinger-bands",
54
55
  "financial-analysis"
55
56
  ],
57
+ "engines": {
58
+ "node": ">=22.3"
59
+ },
56
60
  "dependencies": {
57
61
  "fancy-canvas": "2.1.0"
62
+ },
63
+ "devDependencies": {
64
+ "@juggle/resize-observer": "3.4.0",
65
+ "@rollup/plugin-node-resolve": "16.0.1",
66
+ "@rollup/plugin-replace": "6.0.2",
67
+ "@rollup/plugin-terser": "0.4.4",
68
+ "@size-limit/file": "11.2.0",
69
+ "@size-limit/webpack": "11.2.0",
70
+ "@types/chai": "5.2.1",
71
+ "@types/express": "5.0.1",
72
+ "@types/glob": "8.1.0",
73
+ "@types/node": "22",
74
+ "@types/pixelmatch": "5.2.6",
75
+ "@types/pngjs": "6.0.5",
76
+ "@typescript-eslint/eslint-plugin": "7.18.0",
77
+ "@typescript-eslint/eslint-plugin-tslint": "7.0.2",
78
+ "@typescript-eslint/parser": "7.18.0",
79
+ "ajv": "7.2.4",
80
+ "bytes": "3.1.2",
81
+ "chai": "5.2.0",
82
+ "chai-exclude": "3.0.1",
83
+ "cross-env": "7.0.3",
84
+ "dts-bundle-generator": "9.5.1",
85
+ "eslint": "8",
86
+ "eslint-formatter-unix": "8.40.0",
87
+ "eslint-plugin-deprecation": "3.0.0",
88
+ "eslint-plugin-import": "2.31.0",
89
+ "eslint-plugin-unicorn": "56.0.1",
90
+ "esno": "4.8.0",
91
+ "glob": "11.0.1",
92
+ "markdown-it": "14.1.0",
93
+ "markdown-it-anchor": "9.2.0",
94
+ "markdownlint-cli": "0.44.0",
95
+ "npm-run-all": "4.1.5",
96
+ "rimraf": "6.0.1",
97
+ "rollup": "4.40.0",
98
+ "size-limit": "11.2.0",
99
+ "ts-node": "10.9.2",
100
+ "ts-patch": "3.3.0",
101
+ "ts-transformer-properties-rename": "0.17.0",
102
+ "ts-transformer-strip-const-enums": "2.0.0",
103
+ "tslib": "2.8.1",
104
+ "tslint": "6.1.3",
105
+ "tslint-eslint-rules": "5.4.0",
106
+ "tslint-microsoft-contrib": "6.2.0",
107
+ "tsx": "4.19.3",
108
+ "typescript": "5.5.4",
109
+ "yargs": "17.7.2"
110
+ },
111
+ "scripts": {
112
+ "prepare": "node scripts/githooks/install.js || true",
113
+ "clean": "rimraf lib/ dist/",
114
+ "bundle-dts": "dts-bundle-generator --config dts-config.json",
115
+ "tsc": "tspc -p tsconfig.prod.json",
116
+ "tsc-watch": "npm run tsc -- --watch --preserveWatchOutput",
117
+ "tsc-verify": "node website/scripts/generate-versions-dts.js && tsc -b tsconfig.composite.json",
118
+ "lint": "npm-run-all -p lint:**",
119
+ "lint:eslint": "eslint --format=unix ./",
120
+ "lint:md": "markdownlint -i \"**/node_modules/**\" -i \"**/website/docs/api/**\" -i \"**/website/versioned_docs/**/api/**\" -i \"**/*.mdx\" \"**/*.md\"",
121
+ "check-dts-docs": "npm-run-all -p check-dts-docs-duplicates check-dts-docs-eslint",
122
+ "check-dts-docs-duplicates": "node ./scripts/check-typings-for-duplicates.js ./dist/typings.d.ts",
123
+ "check-dts-docs-eslint": "eslint --format=unix ./dist/typings.d.ts --no-ignore",
124
+ "check-markdown-links": "node scripts/check-markdown-links.js",
125
+ "rollup": "rollup -c rollup.config.js",
126
+ "rollup-watch": "npm run rollup -- --watch",
127
+ "build": "npm-run-all tsc rollup bundle-dts",
128
+ "build:watch": "npm-run-all tsc -p tsc-watch rollup-watch",
129
+ "build:prod": "cross-env NODE_ENV=production npm run build",
130
+ "build:release": "cross-env BUILD_TAG=release npm run build:prod",
131
+ "prepare-release": "npm-run-all clean build:release && npm run prepare-package-json-for-release",
132
+ "prepare-package-json-for-release": "node ./scripts/clean-package-json.js",
133
+ "size-limit": "size-limit",
134
+ "verify": "npm-run-all clean -p build:prod check-markdown-links -p lint check-dts-docs tsc-verify test size-limit -p type-tests",
135
+ "test": "esno --import ./tests/unittests/setup.units.mjs --test './tests/unittests/**/*.spec.ts'",
136
+ "type-tests": "tsc -b ./src/tsconfig.composite.json && tsc -p ./tests/type-checks/tsconfig.composite.json --noEmit",
137
+ "e2e:coverage": "esno ./tests/e2e/coverage/runner.ts ./dist/pipsend-charts.standalone.development.js",
138
+ "e2e:interactions": "esno ./tests/e2e/interactions/runner.ts ./dist/pipsend-charts.standalone.development.js",
139
+ "e2e:memleaks": "esno ./tests/e2e/memleaks/runner.ts ./dist/pipsend-charts.standalone.development.js"
58
140
  }
59
141
  }