lightweight-charts-drawing 0.3.0 → 0.4.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 +11 -0
- package/dist/index.d.ts +14 -1
- package/dist/lightweight-charts-drawing.es.js +275 -242
- package/dist/lightweight-charts-drawing.es.js.map +1 -1
- package/dist/lightweight-charts-drawing.umd.cjs +7 -7
- package/dist/lightweight-charts-drawing.umd.cjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0 (02/10/2026)
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `fibLevelAt` is exported from the package entry.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- `VERSION` is read from `package.json` at build time (vite `define`), so it
|
|
12
|
+
cannot stay behind the package version again.
|
|
13
|
+
|
|
3
14
|
## 0.3.0 (02/10/2026)
|
|
4
15
|
|
|
5
16
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -637,6 +637,19 @@ export declare function drawScene(ctx: Ctx, items: SceneItem[], o: CanvasSceneOp
|
|
|
637
637
|
* saved default (TV restoreFactoryDefaults / "Apply defaults"). */
|
|
638
638
|
export declare function factoryStyleFor(kind: DrawingKind): DrawingStyle;
|
|
639
639
|
|
|
640
|
+
/** The fib retracement / trend-based extension level line under `cursor`
|
|
641
|
+
* (within 6 px, inside the levels' x-range): its index in the drawing's
|
|
642
|
+
* level list (`style.levels` or the factory list), y, x-range and the
|
|
643
|
+
* position of its level text (the Text alignment). Null elsewhere. Used by
|
|
644
|
+
* hosts to edit a level's text on the chart. */
|
|
645
|
+
export declare function fibLevelAt(d: Drawing, pts: Pt[], cursor: Pt, w: number, coords: Coords | null): {
|
|
646
|
+
index: number;
|
|
647
|
+
y: number;
|
|
648
|
+
left: number;
|
|
649
|
+
right: number;
|
|
650
|
+
textX: number;
|
|
651
|
+
} | null;
|
|
652
|
+
|
|
640
653
|
export declare function findOverlaySpec(toolId: string | null): OverlaySpec | undefined;
|
|
641
654
|
|
|
642
655
|
/** A finished placement: the clicked points -> the new drawing with the data
|
|
@@ -1363,7 +1376,7 @@ declare type UnitVisibility = {
|
|
|
1363
1376
|
to: number;
|
|
1364
1377
|
};
|
|
1365
1378
|
|
|
1366
|
-
export declare const VERSION
|
|
1379
|
+
export declare const VERSION: string;
|
|
1367
1380
|
|
|
1368
1381
|
/** Volume profile tools: the reference VbPFixed / VbPAnchored study
|
|
1369
1382
|
* defaults (24 rows, Up/Down, 70% value area, histogram 30% of the box,
|