@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/index.js +27 -17
- package/dist/index.js.map +1 -1
- package/dist/internal.js +27 -17
- package/dist/internal.js.map +1 -1
- package/dist/pixi/PixiChart.d.ts +2 -0
- package/dist/pixi/PixiChart.d.ts.map +1 -1
- package/dist/pixi/PixiLineRenderer.d.ts.map +1 -1
- package/dist/react/index.js +27 -17
- package/dist/react/index.js.map +1 -1
- package/dist/react/internal.js +27 -17
- package/dist/react/internal.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7619,11 +7619,12 @@ var PixiLineRenderer = class {
|
|
|
7619
7619
|
if (this._gradientCache && this._gradientCache.color === color && this._gradientCache.ph === ph) {
|
|
7620
7620
|
gradient = this._gradientCache.gradient;
|
|
7621
7621
|
} else {
|
|
7622
|
+
const hex6 = `#${(color >>> 0).toString(16).padStart(6, "0")}`;
|
|
7622
7623
|
gradient = new FillGradient({
|
|
7623
7624
|
type: "linear",
|
|
7624
7625
|
colorStops: [
|
|
7625
|
-
{ offset: 0, color:
|
|
7626
|
-
{ offset: 1, color:
|
|
7626
|
+
{ offset: 0, color: `${hex6}60` },
|
|
7627
|
+
{ offset: 1, color: `${hex6}00` }
|
|
7627
7628
|
],
|
|
7628
7629
|
start: { x: 0, y: 0 },
|
|
7629
7630
|
end: { x: 0, y: ph }
|
|
@@ -9049,6 +9050,8 @@ var PixiChart = class {
|
|
|
9049
9050
|
this._layers.dirty.mark(3 /* Drawing */);
|
|
9050
9051
|
}
|
|
9051
9052
|
// ─── Rendering ───────────────────────────────────────────────────────────────
|
|
9053
|
+
/** Styles whose renderer has already logged a failure this session. */
|
|
9054
|
+
_renderErrorLogged = /* @__PURE__ */ new Set();
|
|
9052
9055
|
_renderFrame() {
|
|
9053
9056
|
if (!this._ready || this._destroyed) return;
|
|
9054
9057
|
const t = this._transform;
|
|
@@ -9063,20 +9066,27 @@ var PixiChart = class {
|
|
|
9063
9066
|
if (opts.visible === false) continue;
|
|
9064
9067
|
const bars = this._getVisibleBars(series);
|
|
9065
9068
|
if (bars.length === 0) continue;
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9069
|
+
try {
|
|
9070
|
+
switch (opts.type) {
|
|
9071
|
+
case "line":
|
|
9072
|
+
case "area":
|
|
9073
|
+
this._lineRenderer.draw(bars, t, opts);
|
|
9074
|
+
break;
|
|
9075
|
+
case "histogram":
|
|
9076
|
+
this._histogramRenderer.draw(bars, t);
|
|
9077
|
+
break;
|
|
9078
|
+
case "heikinashi":
|
|
9079
|
+
this._candleRenderer.drawHeikinAshi(bars, t, opts);
|
|
9080
|
+
break;
|
|
9081
|
+
default:
|
|
9082
|
+
this._candleRenderer.draw(bars, t, opts);
|
|
9083
|
+
break;
|
|
9084
|
+
}
|
|
9085
|
+
} catch (err) {
|
|
9086
|
+
if (!this._renderErrorLogged.has(opts.type)) {
|
|
9087
|
+
this._renderErrorLogged.add(opts.type);
|
|
9088
|
+
console.error(`[PixiChart] ${opts.type} renderer failed (series skipped):`, err);
|
|
9089
|
+
}
|
|
9080
9090
|
}
|
|
9081
9091
|
}
|
|
9082
9092
|
dirty.clear(1 /* PriceSeries */);
|
|
@@ -25610,7 +25620,7 @@ var demonstrationTool = {
|
|
|
25610
25620
|
};
|
|
25611
25621
|
|
|
25612
25622
|
// src/version.ts
|
|
25613
|
-
var FORGECHARTS_VERSION = "1.5.
|
|
25623
|
+
var FORGECHARTS_VERSION = "1.5.82" ;
|
|
25614
25624
|
|
|
25615
25625
|
// src/compatibility.ts
|
|
25616
25626
|
var MIN_KIT_API = 1;
|