@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/react/internal.js
CHANGED
|
@@ -7592,11 +7592,12 @@ var PixiLineRenderer = class {
|
|
|
7592
7592
|
if (this._gradientCache && this._gradientCache.color === color && this._gradientCache.ph === ph) {
|
|
7593
7593
|
gradient = this._gradientCache.gradient;
|
|
7594
7594
|
} else {
|
|
7595
|
+
const hex6 = `#${(color >>> 0).toString(16).padStart(6, "0")}`;
|
|
7595
7596
|
gradient = new FillGradient({
|
|
7596
7597
|
type: "linear",
|
|
7597
7598
|
colorStops: [
|
|
7598
|
-
{ offset: 0, color:
|
|
7599
|
-
{ offset: 1, color:
|
|
7599
|
+
{ offset: 0, color: `${hex6}60` },
|
|
7600
|
+
{ offset: 1, color: `${hex6}00` }
|
|
7600
7601
|
],
|
|
7601
7602
|
start: { x: 0, y: 0 },
|
|
7602
7603
|
end: { x: 0, y: ph }
|
|
@@ -9022,6 +9023,8 @@ var PixiChart = class {
|
|
|
9022
9023
|
this._layers.dirty.mark(3 /* Drawing */);
|
|
9023
9024
|
}
|
|
9024
9025
|
// ─── Rendering ───────────────────────────────────────────────────────────────
|
|
9026
|
+
/** Styles whose renderer has already logged a failure this session. */
|
|
9027
|
+
_renderErrorLogged = /* @__PURE__ */ new Set();
|
|
9025
9028
|
_renderFrame() {
|
|
9026
9029
|
if (!this._ready || this._destroyed) return;
|
|
9027
9030
|
const t = this._transform;
|
|
@@ -9036,20 +9039,27 @@ var PixiChart = class {
|
|
|
9036
9039
|
if (opts.visible === false) continue;
|
|
9037
9040
|
const bars = this._getVisibleBars(series);
|
|
9038
9041
|
if (bars.length === 0) continue;
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9042
|
+
try {
|
|
9043
|
+
switch (opts.type) {
|
|
9044
|
+
case "line":
|
|
9045
|
+
case "area":
|
|
9046
|
+
this._lineRenderer.draw(bars, t, opts);
|
|
9047
|
+
break;
|
|
9048
|
+
case "histogram":
|
|
9049
|
+
this._histogramRenderer.draw(bars, t);
|
|
9050
|
+
break;
|
|
9051
|
+
case "heikinashi":
|
|
9052
|
+
this._candleRenderer.drawHeikinAshi(bars, t, opts);
|
|
9053
|
+
break;
|
|
9054
|
+
default:
|
|
9055
|
+
this._candleRenderer.draw(bars, t, opts);
|
|
9056
|
+
break;
|
|
9057
|
+
}
|
|
9058
|
+
} catch (err) {
|
|
9059
|
+
if (!this._renderErrorLogged.has(opts.type)) {
|
|
9060
|
+
this._renderErrorLogged.add(opts.type);
|
|
9061
|
+
console.error(`[PixiChart] ${opts.type} renderer failed (series skipped):`, err);
|
|
9062
|
+
}
|
|
9053
9063
|
}
|
|
9054
9064
|
}
|
|
9055
9065
|
dirty.clear(1 /* PriceSeries */);
|
|
@@ -18359,7 +18369,7 @@ var DEMONSTRATION_STROKE = "rgba(255, 200, 50, 0.7)";
|
|
|
18359
18369
|
var DEMONSTRATION_COLOR = "var(--crosshair-overlay, rgba(255,255,255,0.75))";
|
|
18360
18370
|
|
|
18361
18371
|
// src/version.ts
|
|
18362
|
-
var FORGECHARTS_VERSION = "1.5.
|
|
18372
|
+
var FORGECHARTS_VERSION = "1.5.82" ;
|
|
18363
18373
|
function applyRuntimeConfig(caps, config) {
|
|
18364
18374
|
if (!config) return caps;
|
|
18365
18375
|
const orderEntry = config.enableOrderEntry === false ? false : caps.orderEntry;
|