@forgecharts/sdk 1.5.80 → 1.5.82

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/internal.js CHANGED
@@ -7629,11 +7629,12 @@ var PixiLineRenderer = class {
7629
7629
  if (this._gradientCache && this._gradientCache.color === color && this._gradientCache.ph === ph) {
7630
7630
  gradient = this._gradientCache.gradient;
7631
7631
  } else {
7632
+ const hex6 = `#${(color >>> 0).toString(16).padStart(6, "0")}`;
7632
7633
  gradient = new FillGradient({
7633
7634
  type: "linear",
7634
7635
  colorStops: [
7635
- { offset: 0, color: (color << 8 | 96) >>> 0 },
7636
- { offset: 1, color: (color << 8 | 0) >>> 0 }
7636
+ { offset: 0, color: `${hex6}60` },
7637
+ { offset: 1, color: `${hex6}00` }
7637
7638
  ],
7638
7639
  start: { x: 0, y: 0 },
7639
7640
  end: { x: 0, y: ph }
@@ -9059,6 +9060,8 @@ var PixiChart = class {
9059
9060
  this._layers.dirty.mark(3 /* Drawing */);
9060
9061
  }
9061
9062
  // ─── Rendering ───────────────────────────────────────────────────────────────
9063
+ /** Styles whose renderer has already logged a failure this session. */
9064
+ _renderErrorLogged = /* @__PURE__ */ new Set();
9062
9065
  _renderFrame() {
9063
9066
  if (!this._ready || this._destroyed) return;
9064
9067
  const t = this._transform;
@@ -9073,20 +9076,27 @@ var PixiChart = class {
9073
9076
  if (opts.visible === false) continue;
9074
9077
  const bars = this._getVisibleBars(series);
9075
9078
  if (bars.length === 0) continue;
9076
- switch (opts.type) {
9077
- case "line":
9078
- case "area":
9079
- this._lineRenderer.draw(bars, t, opts);
9080
- break;
9081
- case "histogram":
9082
- this._histogramRenderer.draw(bars, t);
9083
- break;
9084
- case "heikinashi":
9085
- this._candleRenderer.drawHeikinAshi(bars, t, opts);
9086
- break;
9087
- default:
9088
- this._candleRenderer.draw(bars, t, opts);
9089
- break;
9079
+ try {
9080
+ switch (opts.type) {
9081
+ case "line":
9082
+ case "area":
9083
+ this._lineRenderer.draw(bars, t, opts);
9084
+ break;
9085
+ case "histogram":
9086
+ this._histogramRenderer.draw(bars, t);
9087
+ break;
9088
+ case "heikinashi":
9089
+ this._candleRenderer.drawHeikinAshi(bars, t, opts);
9090
+ break;
9091
+ default:
9092
+ this._candleRenderer.draw(bars, t, opts);
9093
+ break;
9094
+ }
9095
+ } catch (err) {
9096
+ if (!this._renderErrorLogged.has(opts.type)) {
9097
+ this._renderErrorLogged.add(opts.type);
9098
+ console.error(`[PixiChart] ${opts.type} renderer failed (series skipped):`, err);
9099
+ }
9090
9100
  }
9091
9101
  }
9092
9102
  dirty.clear(1 /* PriceSeries */);
@@ -25620,7 +25630,7 @@ var demonstrationTool = {
25620
25630
  };
25621
25631
 
25622
25632
  // src/version.ts
25623
- var FORGECHARTS_VERSION = "1.5.80" ;
25633
+ var FORGECHARTS_VERSION = "1.5.82" ;
25624
25634
 
25625
25635
  // src/compatibility.ts
25626
25636
  var MIN_KIT_API = 1;