@pipsend/charts 2.3.3 → 2.3.4

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 v2.3.3
3
+ * Pipsend Charts v2.3.4
4
4
  * Copyright (c) 2026 Pipsend
5
5
  * Licensed under MIT License
6
6
  * Built on TradingView Lightweight Charts™ (Apache 2.0)
@@ -11132,7 +11132,7 @@ class SeriesCustomPaneView extends SeriesPaneViewBase {
11132
11132
  return {
11133
11133
  _internal_time: row._internal_index,
11134
11134
  _internal_x: NaN,
11135
- ...colorer._internal_barStyle(row._internal_index),
11135
+ ...colorer._internal_barStyle(row._internal_index, { _internal_value: row }),
11136
11136
  _internal_originalData: row._internal_data,
11137
11137
  };
11138
11138
  });
@@ -12450,7 +12450,9 @@ class LinePaneViewBase extends SeriesPaneViewBase {
12450
12450
  const colorer = this._internal__series._internal_barColorer();
12451
12451
  this._internal__items = this._internal__series._internal_bars()._internal_rows().map((row) => {
12452
12452
  const value = row._internal_value[3 /* PlotRowValueIndex.Close */];
12453
- return this._internal__createRawItem(row._internal_index, value, colorer);
12453
+ // The row travels with the point: without it the colorer looks it up
12454
+ // again by index, and that lookup could fail and take the repaint down.
12455
+ return this._internal__createRawItem(row._internal_index, value, colorer, row);
12454
12456
  });
12455
12457
  }
12456
12458
  }
@@ -12618,10 +12620,10 @@ class SeriesLinePaneView extends LinePaneViewBase {
12618
12620
  super(...arguments);
12619
12621
  this._internal__renderer = new PaneRendererLine();
12620
12622
  }
12621
- _internal__createRawItem(time, price, colorer) {
12623
+ _internal__createRawItem(time, price, colorer, row) {
12622
12624
  return {
12623
12625
  ...this._internal__createRawItemBase(time, price),
12624
- ...colorer._internal_barStyle(time),
12626
+ ...colorer._internal_barStyle(time, { _internal_value: row }),
12625
12627
  };
12626
12628
  }
12627
12629
  _internal__prepareRendererData() {
@@ -13095,10 +13097,10 @@ class SeriesBaselinePaneView extends LinePaneViewBase {
13095
13097
  this._private__baselineLineRenderer = new PaneRendererBaselineLine();
13096
13098
  this._internal__renderer._internal_setRenderers([this._private__baselineAreaRenderer, this._private__baselineLineRenderer]);
13097
13099
  }
13098
- _internal__createRawItem(time, price, colorer) {
13100
+ _internal__createRawItem(time, price, colorer, row) {
13099
13101
  return {
13100
13102
  ...this._internal__createRawItemBase(time, price),
13101
- ...colorer._internal_barStyle(time),
13103
+ ...colorer._internal_barStyle(time, { _internal_value: row }),
13102
13104
  };
13103
13105
  }
13104
13106
  _internal__prepareRendererData() {
@@ -13218,10 +13220,10 @@ class SeriesAreaPaneView extends LinePaneViewBase {
13218
13220
  this._private__lineRenderer = new PaneRendererLine();
13219
13221
  this._internal__renderer._internal_setRenderers([this._private__areaRenderer, this._private__lineRenderer]);
13220
13222
  }
13221
- _internal__createRawItem(time, price, colorer) {
13223
+ _internal__createRawItem(time, price, colorer, row) {
13222
13224
  return {
13223
13225
  ...this._internal__createRawItemBase(time, price),
13224
- ...colorer._internal_barStyle(time),
13226
+ ...colorer._internal_barStyle(time, { _internal_value: row }),
13225
13227
  };
13226
13228
  }
13227
13229
  _internal__prepareRendererData() {
@@ -13414,6 +13416,9 @@ class BarsPaneViewBase extends SeriesPaneViewBase {
13414
13416
  }
13415
13417
  _internal__fillRawPoints() {
13416
13418
  const colorer = this._internal__series._internal_barColorer();
13419
+ // The row goes to the colorer as it is. Asking for the style by index
13420
+ // alone made it look the row up again, and that second lookup could come
13421
+ // back empty and throw, taking the whole repaint down with it.
13417
13422
  this._internal__items = this._internal__series._internal_bars()._internal_rows().map((row) => this._internal__createRawItem(row._internal_index, row, colorer));
13418
13423
  }
13419
13424
  }
@@ -13426,7 +13431,7 @@ class SeriesBarsPaneView extends BarsPaneViewBase {
13426
13431
  _internal__createRawItem(time, bar, colorer) {
13427
13432
  return {
13428
13433
  ...this._internal__createDefaultItem(time, bar, colorer),
13429
- ...colorer._internal_barStyle(time),
13434
+ ...colorer._internal_barStyle(time, { _internal_value: bar }),
13430
13435
  };
13431
13436
  }
13432
13437
  _internal__prepareRendererData() {
@@ -13619,7 +13624,7 @@ class SeriesCandlesticksPaneView extends BarsPaneViewBase {
13619
13624
  _internal__createRawItem(time, bar, colorer) {
13620
13625
  return {
13621
13626
  ...this._internal__createDefaultItem(time, bar, colorer),
13622
- ...colorer._internal_barStyle(time),
13627
+ ...colorer._internal_barStyle(time, { _internal_value: bar }),
13623
13628
  };
13624
13629
  }
13625
13630
  _internal__prepareRendererData() {
@@ -13787,10 +13792,10 @@ class SeriesHistogramPaneView extends LinePaneViewBase {
13787
13792
  super(...arguments);
13788
13793
  this._internal__renderer = new PaneRendererHistogram();
13789
13794
  }
13790
- _internal__createRawItem(time, price, colorer) {
13795
+ _internal__createRawItem(time, price, colorer, row) {
13791
13796
  return {
13792
13797
  ...this._internal__createRawItemBase(time, price),
13793
- ...colorer._internal_barStyle(time),
13798
+ ...colorer._internal_barStyle(time, { _internal_value: row }),
13794
13799
  };
13795
13800
  }
13796
13801
  _internal__prepareRendererData() {
@@ -30605,7 +30610,7 @@ const customSeriesDefaultOptions = {
30605
30610
  * Returns the current version as a string. For example `'1.0.0'`.
30606
30611
  */
30607
30612
  function version() {
30608
- return "2.3.3";
30613
+ return "2.3.4";
30609
30614
  }
30610
30615
 
30611
30616
  export { areaSeries as AreaSeries, ArrowTool, barSeries as BarSeries, baselineSeries as BaselineSeries, BrushTool, candlestickSeries as CandlestickSeries, CircleTool, ColorType, CrossLineTool, 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, ParallelChannelTool, PitchforkTool, PolygonTool, PositionCalculator, PositionLine, PositionMarkersManager, PositionTool, PriceLineSource, PriceScaleMode, RectangleTool, RulerCalculator, RulerTool, STANDARD_FIBONACCI_RATIOS, TextTool, TickMarkType, TrackingModeExitMode, TradingSessionsIndicator, TrendLineTool, VerticalLineTool, VolumeProfileIndicator, applyADX, applyATR, applyBollingerBands, applyCCI, applyDonchianChannels, applyEMA, applyHeikinAshi, applyIchimoku, applyKeltnerChannels, applyMACD, applyMFI, applyOBV, applyParabolicSAR, applyPivotPoints, applyRSI, applySMA, applyStochastic, applySuperTrend, applyVWAP, applyVolume, applyWMA, applyWilliamsR, calculateHeikinAshi, calculatePipConfig, coordinateFromTime, createArrowTool, createBrushTool, createChart, createChartEx, createCircleTool, createCrossLineTool, createFibonacciExtensionTool, createFibonacciFanTool, createFibonacciTool, createGanttTool, createHorizontalLineTool, createImageWatermark, createInteractiveLineManager, createOptionsChart, createParallelChannelTool, createPitchforkTool, createPolygonTool, createPositionLine, createPositionMarkers, createPositionTool, createRectangleTool, createRulerTool, createSeriesMarkers, createTextTool, createTextWatermark, createTradingLine, createTradingSessionsIndicator, createTrendLineTool, createUpDownMarkers, createVerticalLineTool, createVolumeProfileIndicator, createYieldCurveChart, customSeriesDefaultOptions, defaultHorzScaleBehavior, getPipConfig, hideSeriesPaint, isBusinessDay, isUTCTimestamp, setSeriesVolumes, setVolumeProfileData, timeFromCoordinate, version };