lightweight-charts-drawing 0.2.1 → 0.2.3

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 CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.3 (01/10/2026)
4
+
5
+ ### Changed
6
+
7
+ - The drawing core folder is `src/core` (was `src/tv`). Internal only: the
8
+ package entry and its exports are unchanged.
9
+
10
+ ### Fixed
11
+
12
+ - Long / short position: the stop and target handles are hit where they are
13
+ drawn (entry x). The hit test used the middle of the box, so dragging a
14
+ drawn stop or target square moved the whole drawing.
15
+
16
+ ## 0.2.2 (28/09/2026)
17
+
18
+ ### Changed
19
+
20
+ - Shift gestures follow TradingView Desktop 3.4.1 (new `tv/interact/shift.ts`):
21
+ - 45° snap = TV `snapPoint45Degree`: horizontal keeps the bar and takes
22
+ the reference price, vertical keeps the price and takes the reference
23
+ bar, a diagonal is rounded to a whole bar.
24
+ - New Shift rules: arrow marker, fib circles, fib speed resistance fan,
25
+ price note, note, rotated rectangle (45°); parallel channel, flat
26
+ top/bottom, disjoint channel (2nd point / anchor 1 only); ellipse (circle,
27
+ finished after 2 clicks); rectangle (square rounded to a bar, the preview
28
+ too, and the middle anchors); Gann box (fixed increments, was a square);
29
+ Gann square anchor drag (keeps the price-per-bar ratio).
30
+ - Shift + body drag moves only horizontally or vertically (past 10 px).
31
+ - Removed Shift rules TV does not have: pitchfork family, pitchfan,
32
+ triangle, trend-based fib extension (45°), bar pattern and fixed range
33
+ volume profile (square).
34
+ - Runtime magnet: Shift turns it off only after the first point or while
35
+ dragging an anchor.
36
+ - Ellipse anchor 0 / 1 drag keeps the minor radius (TV).
37
+
3
38
  ## 0.2.1 (26/09/2026)
4
39
 
5
40
  ### Fixed
package/README.md CHANGED
@@ -90,7 +90,7 @@ dialogs, text / table editors, toolbar, context menu.
90
90
  ## Architecture
91
91
 
92
92
  ```
93
- src/tv/ shared drawing core, no UI and no lightweight-charts runtime:
93
+ src/core/ shared drawing core, no UI and no lightweight-charts runtime:
94
94
  tool model + TradingView factory defaults (specs), hit tests,
95
95
  placement and drag rules (interact), saved-drawing migration
96
96
  (serialize), renderer-neutral scenes per tool (scene)
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * lightweight-charts-drawing 0.2
3
3
  *
4
4
  * TradingView-style drawing tools for lightweight-charts v5, built on a shared
5
- * drawing core (src/tv: tool model + TradingView factory defaults, hit tests,
5
+ * drawing core (src/core: tool model + TradingView factory defaults, hit tests,
6
6
  * placement / drag rules, renderer-neutral scenes) and a canvas runtime
7
7
  * (src/runtime: DrawingManager).
8
8
  *
@@ -1358,7 +1358,7 @@ declare type UnitVisibility = {
1358
1358
  to: number;
1359
1359
  };
1360
1360
 
1361
- export declare const VERSION = "0.2.1";
1361
+ export declare const VERSION = "0.2.3";
1362
1362
 
1363
1363
  declare type WithId<T> = T & {
1364
1364
  id: string;