lightweight-charts-drawing 0.2.5 → 0.3.0
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/CHANGELOG.md +21 -0
- package/dist/index.d.ts +1 -1
- package/dist/lightweight-charts-drawing.es.js +4 -4
- package/dist/lightweight-charts-drawing.es.js.map +1 -1
- package/dist/lightweight-charts-drawing.umd.cjs +3 -3
- package/dist/lightweight-charts-drawing.umd.cjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0 (02/10/2026)
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `fibLevelAt(d, pts, cursor, w, coords)` (`src/core/scene/fib.ts`): the fib
|
|
8
|
+
retracement / trend-based extension level line under the cursor (within
|
|
9
|
+
6 px): its index in the level list, y, x-range and level text x. For hosts
|
|
10
|
+
that edit a level's text on the chart. Not exported from the package entry.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Anchored VWAP: an unset `fillBackground` draws the band #1 fill (TradingView
|
|
15
|
+
factory: on, transparency 95). Before, only `fillBackground: true` drew it.
|
|
16
|
+
- Triangle pattern, head and shoulders: an unset `transparency` is the factory
|
|
17
|
+
85 (was 80), and transparency 100 draws no fill (was a 0.15 opacity
|
|
18
|
+
fallback).
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- `VERSION` matches the package version (it stayed at 0.2.4 in 0.2.5).
|
|
23
|
+
|
|
3
24
|
## 0.2.5 (01/10/2026)
|
|
4
25
|
|
|
5
26
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -1363,7 +1363,7 @@ declare type UnitVisibility = {
|
|
|
1363
1363
|
to: number;
|
|
1364
1364
|
};
|
|
1365
1365
|
|
|
1366
|
-
export declare const VERSION = "0.
|
|
1366
|
+
export declare const VERSION = "0.3.0";
|
|
1367
1367
|
|
|
1368
1368
|
/** Volume profile tools: the reference VbPFixed / VbPAnchored study
|
|
1369
1369
|
* defaults (24 rows, Up/Down, 70% value area, histogram 30% of the box,
|
|
@@ -3406,7 +3406,7 @@ function lc(e, t, n) {
|
|
|
3406
3406
|
t: "polygon",
|
|
3407
3407
|
pts: a,
|
|
3408
3408
|
fill: n.fillBackground === !1 ? "none" : n.backgroundColor ?? n.color,
|
|
3409
|
-
fillOpacity: Z(n
|
|
3409
|
+
fillOpacity: Z({ ...n, transparency: n.transparency ?? 85 }),
|
|
3410
3410
|
stroke: n.color,
|
|
3411
3411
|
strokeWidth: n.width,
|
|
3412
3412
|
dash: W({ ...n, lineStyle: "dotted" }),
|
|
@@ -3426,7 +3426,7 @@ function po(e, t, n, o) {
|
|
|
3426
3426
|
return s < 0 || s > 1 ? null : { x: n.x + r.x * s, y: n.y + r.y * s };
|
|
3427
3427
|
}
|
|
3428
3428
|
function sc(e, t, n) {
|
|
3429
|
-
const o = Z(n
|
|
3429
|
+
const o = Z({ ...n, transparency: n.transparency ?? 85 }), i = n.backgroundColor ?? n.color, [r, l, s, a, c, f, h] = e, u = po(s, c, r, l), x = po(s, c, f, h), d = (m, g) => ({ x: m.x + (g.x - m.x) * 10, y: m.y + (g.y - m.y) * 10 }), p = re(n), y = (m, g, w) => ({ t: "polygon", pts: [m, g, w], fill: i, fillOpacity: o, stroke: "none", inert: !0 }), b = [ve(e)];
|
|
3430
3430
|
return n.fillBackground !== !1 && (b.push(y(s, a, c)), u && b.push(y(u, l, s)), x && b.push(y(c, f, x))), b.push(
|
|
3431
3431
|
{ t: "line", a: u ?? d(c, s), b: x ?? d(s, c), stroke: n.color, strokeWidth: n.width, dash: W({ ...n, lineStyle: "dotted" }), inert: !0 },
|
|
3432
3432
|
{ t: "polyline", pts: e, fill: "none", stroke: n.color, strokeWidth: n.width, dash: W(n), join: "round" },
|
|
@@ -3884,7 +3884,7 @@ function zc(e, t, n, o, i, r) {
|
|
|
3884
3884
|
];
|
|
3885
3885
|
for (const h of s.bands)
|
|
3886
3886
|
if (!(h.upper.length < 2 || h.lower.length < 2)) {
|
|
3887
|
-
i.fillBackground
|
|
3887
|
+
i.fillBackground !== !1 && h.index === 0 && c.push({ t: "polygon", pts: [...h.upper, ...h.lower.slice().reverse()], fill: i.backgroundColor ?? "#4caf50", fillOpacity: Z({ ...i, transparency: i.transparency ?? 95 }), stroke: "none", inert: !0 });
|
|
3888
3888
|
for (const [u, x] of [["upper", h.upper], ["lower", h.lower]]) {
|
|
3889
3889
|
const d = cn(i, h.index, u);
|
|
3890
3890
|
d.visible && c.push(...f(x, d.color, d.width));
|
|
@@ -6428,7 +6428,7 @@ class Na {
|
|
|
6428
6428
|
});
|
|
6429
6429
|
}
|
|
6430
6430
|
}
|
|
6431
|
-
const Ja = "0.
|
|
6431
|
+
const Ja = "0.3.0";
|
|
6432
6432
|
export {
|
|
6433
6433
|
La as ANCHORABLE_KINDS,
|
|
6434
6434
|
Mn as DEFAULT_STYLE,
|