openalgo-charts 2.6.2 → 2.6.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/README.md CHANGED
@@ -12,7 +12,7 @@ with no runtime dependencies.
12
12
  [![npm version](https://img.shields.io/npm/v/openalgo-charts.svg?color=cb3837&label=npm)](https://www.npmjs.com/package/openalgo-charts)
13
13
  [![license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](./LICENSE)
14
14
  [![npm downloads](https://img.shields.io/npm/dm/openalgo-charts.svg?color=0ea5e9&label=npm%20downloads)](https://www.npmjs.com/package/openalgo-charts)
15
- [![tests](https://img.shields.io/badge/engine%20tests-11641%20passing-brightgreen.svg)](#develop)
15
+ [![tests](https://img.shields.io/badge/engine%20tests-11674%20passing-brightgreen.svg)](#develop)
16
16
  [![dependencies](https://img.shields.io/badge/runtime%20deps-0-brightgreen.svg)](#principles)
17
17
 
18
18
  [**Documentation**](https://marketcalls.github.io/openalgo-charts/)  ·  [**Live examples**](https://marketcalls.github.io/openalgo-charts/examples)  ·  [**Getting started**](./docs/getting-started.md)  ·  [**Migrating to 2.0**](./docs/migrating-to-2.md)  ·  [**Architecture**](./ARCHITECTURE.md)
@@ -25,7 +25,7 @@ with no runtime dependencies.
25
25
  npm install openalgo-charts
26
26
  ```
27
27
 
28
- Current version: **2.6.2**, a fix for the bottom bar's ranges and Go to, which reported missing history across a weekend or another gap no session trades in. 2.6.1 was order flow analytics for the footprint (trade classification, a trade size filter, imbalance and delta views, zones, unfinished auctions, delta flips and session statistics), rows aligned on the even boundary, Renko and point and figure sizing from price or the ATR, and settings dialogs for both chart types in the widget and the reference host. 2.6.0 was analysis depth and a stricter API: the chart applies Heikin Ashi, Renko, range bars, line break, point and figure and Kagi to the bars you feed, live, with each study on the elements or the underlying bars; seven new built-ins and a timeframe input on 29 of them; symbol search through the OpenAlgo feed; rich event details with host actions; a typed event map for `chart.on`; a classic-script build of every tier and `require()` of the ESM files; and declarations that hold for a host compiling with both strict flags. 2.5.10 was the persistence, saved layouts and chart grid release.
28
+ Current version: **2.6.3**, a finish release: finer drawing tool and chrome glyphs drawn at one line weight, a drawing rail that folds away behind a tab so the chart takes its width, a smoother wheel and trackpad zoom, a widget whose drag keeps the price scale fitting through every zoom after it, a log scale that fills the pane, tooltips that no longer take the click meant for the control under them, and a neutral palette in the reference host. 2.6.2 was a fix for the bottom bar's ranges and Go to, which reported missing history across a weekend or another gap no session trades in. 2.6.1 was order flow analytics for the footprint (trade classification, a trade size filter, imbalance and delta views, zones, unfinished auctions, delta flips and session statistics), rows aligned on the even boundary, Renko and point and figure sizing from price or the ATR, and settings dialogs for both chart types in the widget and the reference host. 2.6.0 was analysis depth and a stricter API: the chart applies Heikin Ashi, Renko, range bars, line break, point and figure and Kagi to the bars you feed, live, with each study on the elements or the underlying bars; seven new built-ins and a timeframe input on 29 of them; symbol search through the OpenAlgo feed; rich event details with host actions; a typed event map for `chart.on`; a classic-script build of every tier and `require()` of the ESM files; and declarations that hold for a host compiling with both strict flags. 2.5.10 was the persistence, saved layouts and chart grid release.
29
29
  See the [changelog](./CHANGELOG.md) for release notes.
30
30
 
31
31
  ## Quick start
@@ -66,7 +66,7 @@ Firefox and WebKit. In Vue, hold the chart in a `shallowRef`, never in `ref()` o
66
66
 
67
67
  ## Architecture
68
68
 
69
- <a href="docs/architecture-diagram.svg"><img src="docs/architecture-diagram.svg" alt="OpenAlgo Charts 2.6.2 architecture: host responsibilities, the base data-to-rendering pipeline with alerts and shared replay, and eight optional tiers including workspace storage, trading tools and the widget" width="920" /></a>
69
+ <a href="docs/architecture-diagram.svg"><img src="docs/architecture-diagram.svg" alt="OpenAlgo Charts 2.6.3 architecture: host responsibilities, the base data-to-rendering pipeline with alerts and shared replay, and eight optional tiers including workspace storage, trading tools and the widget" width="920" /></a>
70
70
 
71
71
  How data reaches the chart, what your app owns, and which features you can import.
72
72
  [Open the full-size diagram](docs/architecture-diagram.svg).
@@ -117,7 +117,7 @@ You can also load the library from a CDN in a plain HTML page:
117
117
  ```html
118
118
  <div id="chart" style="width:100vw;height:100vh"></div>
119
119
  <script type="module">
120
- import { createChart, generateBars } from 'https://unpkg.com/openalgo-charts@2.6.2/dist/openalgo-charts.mjs';
120
+ import { createChart, generateBars } from 'https://unpkg.com/openalgo-charts@2.6.3/dist/openalgo-charts.mjs';
121
121
  const chart = createChart(document.getElementById('chart'), { timezone: 'Asia/Kolkata' });
122
122
  chart.addSeries('candlestick').setData(generateBars(1700000000, 200, 3600));
123
123
  chart.fitContent();
@@ -179,17 +179,17 @@ Unused optional tiers stay out of the base chart download.
179
179
 
180
180
  | Import | Contents | Brotli |
181
181
  |---|---|---|
182
- | `openalgo-charts` | Engine, 13 chart types, panes and scales, custom indicator registry, primitives, alerts, replay, comparisons, chart linking, state, feeds, bar cache, trading overlays, CSV and SVG export | 137.44 kB |
182
+ | `openalgo-charts` | Engine, 13 chart types, panes and scales, custom indicator registry, primitives, alerts, replay, comparisons, chart linking, state, feeds, bar cache, trading overlays, CSV and SVG export | 137.61 kB |
183
183
  | `openalgo-charts/indicators` | 112 built-in indicators, calculation helpers and helpers for studies that use external data | 43.02 kB |
184
- | `openalgo-charts/draw` | 87 drawing tools + a headless drawing controller, clipboard, settings schema, level palette, freehand geometry and SVG icons | 58.36 kB |
184
+ | `openalgo-charts/draw` | 87 drawing tools + a headless drawing controller, clipboard, settings schema, level palette, freehand geometry and SVG icons | 58.44 kB |
185
185
  | `openalgo-charts/transform` | Heikin Ashi, Renko, Range bars, Line Break, Point &amp; Figure, Kagi, and symbol arithmetic (`AAPL/MSFT`) | 6.23 kB |
186
186
  | `openalgo-charts/profile` | Volume Profile, Market Profile (TPO) with compact pixel letters, Footprint, order flow | 19.54 kB |
187
187
  | `openalgo-charts/trade` | Order, position and bracket tools, account state, order preview and position commands, plus a depth-of-market ladder | 16.88 kB |
188
188
  | `openalgo-charts/webgl` | GPU drawing for supported series, with Canvas 2D fallback | 6.97 kB |
189
- | `openalgo-charts/widget` | `createWidget`: toolbar, bottom bar, Data, Objects, Watchlist and News dock, account summary, symbol search, dialogs, mobile controls, a shortcuts editor, saved layouts, the chart grid (`createChartGrid`) and optional persistence in IndexedDB | 124.13 kB |
189
+ | `openalgo-charts/widget` | `createWidget`: toolbar, bottom bar, Data, Objects, Watchlist and News dock, account summary, symbol search, dialogs, mobile controls, a shortcuts editor, saved layouts, the chart grid (`createChartGrid`) and optional persistence in IndexedDB | 124.94 kB |
190
190
  | `openalgo-charts/workspace` | Validated workspace and indicator-template documents, named watchlists, named catalogs with revision checks, asynchronous storage and an IndexedDB adapter; no DOM | 11.73 kB |
191
191
 
192
- Everything together is **424.27 kB Brotli**; a widget terminal with built-in indicators (base + draw + indicators + widget) is 362.94 kB. The widget's eight first-use parts (the shortcuts editor, the Layouts menu, the templates list, the chart data dialog, the chart type settings dialog, the grid bar and its menus, and the IndexedDB store) add 21.00 kB in files of their own, fetched only when a widget first uses one. The nine classic-script files together are 438.25 kB. Figures are measured from the 2.6.2 release build. The trade tier is 16.88 kB on its own; base + trade costs 154.31 kB. Sizes use decimal kB.
192
+ Everything together is **425.35 kB Brotli**; a widget terminal with built-in indicators (base + draw + indicators + widget) is 364.01 kB. The widget's eight first-use parts (the shortcuts editor, the Layouts menu, the templates list, the chart data dialog, the chart type settings dialog, the grid bar and its menus, and the IndexedDB store) add 21.00 kB in files of their own, fetched only when a widget first uses one. The nine classic-script files together are 439.11 kB. Figures are measured from the 2.6.3 release build. The trade tier is 16.88 kB on its own; base + trade costs 154.49 kB. Sizes use decimal kB.
193
193
 
194
194
  ## What's built
195
195
 
@@ -515,19 +515,19 @@ Enforced in CI by [`size-limit`](./.size-limit.json). Nothing is excluded, becau
515
515
 
516
516
  | Bundle | Limit | Actual |
517
517
  |---|---|---|
518
- | Base engine | 137.54 kB | 137.44 kB |
519
- | Base + trade | 154.42 kB | 154.31 kB |
518
+ | Base engine | 137.62 kB | 137.61 kB |
519
+ | Base + trade | 154.49 kB | 154.49 kB |
520
520
  | Indicators tier | 43.02 kB | 43.02 kB |
521
- | Draw tier | 58.36 kB | 58.36 kB |
521
+ | Draw tier | 58.45 kB | 58.44 kB |
522
522
  | Transform tier | 6.23 kB | 6.23 kB |
523
523
  | Profile tier | 19.54 kB | 19.54 kB |
524
524
  | WebGL2 tier | 6.97 kB | 6.97 kB |
525
- | Widget tier | 124.13 kB | 124.13 kB |
525
+ | Widget tier | 124.94 kB | 124.94 kB |
526
526
  | Widget first-use parts (eight files beside the widget tier) | 21.00 kB | 21.00 kB |
527
- | Widget terminal (base + draw + indicators + widget) | 362.94 kB | 362.94 kB |
527
+ | Widget terminal (base + draw + indicators + widget) | 364.01 kB | 364.01 kB |
528
528
  | Workspace tier | 11.73 kB | 11.73 kB |
529
- | Script tags (the nine classic-script files) | 438.25 kB | 438.25 kB |
530
- | **Everything** | 424.28 kB | 424.27 kB |
529
+ | Script tags (the nine classic-script files) | 439.12 kB | 439.11 kB |
530
+ | **Everything** | 425.35 kB | 425.35 kB |
531
531
 
532
532
  ## Documentation
533
533
 
@@ -578,8 +578,8 @@ See [Contributing](./CONTRIBUTING.md) for setup, targeted checks, documentation
578
578
  ```bash
579
579
  npm install # install dev toolchain
580
580
  npm run typecheck # TypeScript: src with the stricter flags, then the tests
581
- npm test # engine unit tests (Vitest): 11641 across 515 files
582
- npm run test:demo # reference-host tests: 726 across 68 files
581
+ npm test # engine unit tests (Vitest): 11674 across 516 files
582
+ npm run test:demo # reference-host tests: 730 across 68 files
583
583
  npm run test:endurance # node endurance-harness tests: 7 cases
584
584
  npm run build # Rollup -> dist/ (minified ESM per tier + types)
585
585
  npm run size # size-limit (Brotli) against the budget
@@ -599,7 +599,7 @@ npm run verify # lint + types + cycles + unused exports + unit + endurance h
599
599
 
600
600
  ## Status &amp; limitations
601
601
 
602
- Version **2.6.2**. All engine build phases are implemented. Upgrading a 1.9.x host: [Migrating to 2.0](./docs/migrating-to-2.md).
602
+ Version **2.6.3**. All engine build phases are implemented. Upgrading a 1.9.x host: [Migrating to 2.0](./docs/migrating-to-2.md).
603
603
 
604
604
  Known gaps, stated plainly:
605
605
 
@@ -2360,21 +2360,22 @@ declare const DEFAULT_FIB_TIME_ZONE: readonly FibLevel[];
2360
2360
  *
2361
2361
  * # Two tiers, one line
2362
2362
  *
2363
- * Tool glyphs live on a 24-unit grid and are shown at 24px in the rail. Host
2364
- * chrome (undo, close, the settings tab rail) is shown at 16px beside them, and
2365
- * a 24-grid glyph scaled to 16 lands its 2-unit stroke on 1.33 pixels, blurred
2366
- * across two rows on every edge. So chrome has its own registry drawn on a
2367
- * 16-unit grid. Both tiers draw a 2-unit stroke, and since each is shown at its
2368
- * grid size, that is the same 2px line on screen in both rails: a lock under
2369
- * the tools reads as part of the same set, only smaller.
2370
- *
2371
- * The chrome stroke was 1.5 through 2.5.5, chosen to match the tool weight as a
2372
- * fraction of the box. On integer coordinates a 1.5 stroke covers 0.75 of two
2373
- * pixel rows, so no edge was ever solid (0.18 of its inked pixels, against 0.59
2374
- * for the tools). A 1px stroke on half-unit coordinates was tried as well: as
2375
- * crisp on straight edges, but faint on every curve and visibly lighter than
2376
- * the tool rail beside it, on both themes. Two it is, with the few glyphs that
2377
- * were too dense for it redrawn with more air.
2363
+ * Tool glyphs live on a 24-unit grid and are shown at 20px in the rail. Host
2364
+ * chrome (undo, close, the settings tab rail) is shown at 16px beside them on
2365
+ * a registry of its own, drawn on a 16-unit grid, because a 24-grid glyph
2366
+ * scaled to 16 loses its detail. Each tier's stroke is set so that it lands
2367
+ * on the same line on screen at its display size: 1.6 units at 20px and 1.3
2368
+ * units at 16px are both about 1.3px, so a lock under the tools reads as part
2369
+ * of the same set, only smaller.
2370
+ *
2371
+ * Through 2.6.2 both tiers drew a 2-unit stroke at their grid size (24px and
2372
+ * 16px), which put every edge on a pixel boundary. Crisp, but a line half
2373
+ * again as wide on tool glyphs a fifth larger is nearly twice the ink, and a
2374
+ * rail of them read as heavy beside the chart it frames: on screen, weight is
2375
+ * noticed long before edge sharpness.
2376
+ * Earlier still the chrome stroke was 1.5 at 16px, the lightest of the three,
2377
+ * and the tool rail beside it the heaviest; one line across both is the rule
2378
+ * that survived every revision.
2378
2379
  *
2379
2380
  * # The grid
2380
2381
  *
@@ -2385,12 +2386,11 @@ declare const DEFAULT_FIB_TIME_ZONE: readonly FibLevel[];
2385
2386
  * - **One viewBox per tier.** 24 by 24 for tools, 16 by 16 for chrome, so a
2386
2387
  * host sets the size once per surface.
2387
2388
  * - **A margin all round.** Live area 2 to 22 on the tool grid, 2 to 14 on the
2388
- * chrome grid, so the ink stops a pixel short of the box. Without it,
2389
- * glyphs that happen to reach the edge look larger than their neighbours
2390
- * and the rail reads as ragged.
2391
- * - **Integer coordinates.** With a stroke of 2, an orthogonal edge centred on
2392
- * an integer covers exactly two device pixels at 1:1, which is what makes it
2393
- * crisp.
2389
+ * chrome grid, so the ink stops short of the box. Without it, glyphs that
2390
+ * happen to reach the edge look larger than their neighbours and the rail
2391
+ * reads as ragged.
2392
+ * - **Integer coordinates.** Parallel strokes keep an even gap and a family
2393
+ * of glyphs shares its anchor points, so siblings line up in a list.
2394
2394
  * - **One stroke weight.** Different weights across identically sized boxes
2395
2395
  * is the single most visible tell of a set assembled rather than drawn.
2396
2396
  * - **The whole glyph in its path.** The marks that tell siblings apart (a
@@ -2402,19 +2402,24 @@ declare const DEFAULT_FIB_TIME_ZONE: readonly FibLevel[];
2402
2402
  *
2403
2403
  * # Rendering
2404
2404
  *
2405
- * Tool glyphs are crispest at 24px, and at any integer multiple of it. At 18px
2406
- * the 0.75 scale puts a 2-unit stroke on 1.5 device pixels and every edge is
2407
- * anti-aliased across two rows: that is a host sizing choice, not something the
2408
- * path data can fix. Prefer 24, or 12 with a heavier weight. Chrome glyphs are
2409
- * drawn for 16px and its multiples.
2405
+ * Tool glyphs are drawn for 20px and chrome glyphs for 16px, which is what
2406
+ * `iconSvg` and `chromeIconSvg` default to. A host that shows a glyph larger
2407
+ * scales the line with it; one that wants the same line at another size sets
2408
+ * the stroke to keep it near 1.3px.
2410
2409
  */
2411
2410
  /** The viewBox every glyph is authored in. */
2412
2411
  declare const ICON_VIEWBOX = "0 0 24 24";
2413
2412
  /**
2414
- * Stroke width in viewBox units. Paths carry no presentation attributes, so a
2415
- * host that wants a lighter set overrides this once rather than editing glyphs.
2413
+ * The CSS pixel size a tool glyph is drawn for: the rail, a flyout row and
2414
+ * `iconSvg` by default.
2416
2415
  */
2417
- declare const ICON_STROKE = 2;
2416
+ declare const ICON_SIZE = 20;
2417
+ /**
2418
+ * Stroke width in viewBox units: about 1.3px at `ICON_SIZE`. Paths carry no
2419
+ * presentation attributes, so a host that wants another weight overrides this
2420
+ * once rather than editing glyphs.
2421
+ */
2422
+ declare const ICON_STROKE = 1.6;
2418
2423
  /**
2419
2424
  * The attribute bag a tier hands its host. Structural, so the markup builders
2420
2425
  * in `icon-svg.ts` take either tier's bag through one signature.
@@ -2432,7 +2437,7 @@ declare const ICON_ATTRS: {
2432
2437
  readonly viewBox: "0 0 24 24";
2433
2438
  readonly fill: "none";
2434
2439
  readonly stroke: "currentColor";
2435
- readonly strokeWidth: 2;
2440
+ readonly strokeWidth: 1.6;
2436
2441
  readonly strokeLinecap: "round";
2437
2442
  readonly strokeLinejoin: "round";
2438
2443
  };
@@ -2472,21 +2477,19 @@ declare function drawingToolAccent(toolId: string): string | undefined;
2472
2477
  declare function drawingToolIconIds(): string[];
2473
2478
  /** The viewBox every chrome glyph is authored in. */
2474
2479
  declare const CHROME_ICON_VIEWBOX = "0 0 16 16";
2480
+ /** The CSS pixel size a chrome glyph is drawn for, and `chromeIconSvg`'s default. */
2481
+ declare const CHROME_ICON_SIZE = 16;
2475
2482
  /**
2476
- * Chrome stroke width in viewBox units. The same 2 as the tool tier, which at
2477
- * the two native sizes is the same 2px line on screen. It was 1.5 through 2.5.5:
2478
- * matched to the tool weight as a fraction of the box, and never crisp, since
2479
- * a 1.5 stroke on whole units puts every edge three quarters of the way
2480
- * across a pixel. See the file comment for the 1px alternative and why it
2481
- * lost.
2483
+ * Chrome stroke width in viewBox units: about 1.3px at `CHROME_ICON_SIZE`, the
2484
+ * line the tool tier draws at its own size, so the two rails read as one set.
2482
2485
  */
2483
- declare const CHROME_ICON_STROKE = 2;
2486
+ declare const CHROME_ICON_STROKE = 1.3;
2484
2487
  /** Attributes a host should apply to the `<svg>` around a chrome glyph. */
2485
2488
  declare const CHROME_ICON_ATTRS: {
2486
2489
  readonly viewBox: "0 0 16 16";
2487
2490
  readonly fill: "none";
2488
2491
  readonly stroke: "currentColor";
2489
- readonly strokeWidth: 2;
2492
+ readonly strokeWidth: 1.3;
2490
2493
  readonly strokeLinecap: "round";
2491
2494
  readonly strokeLinejoin: "round";
2492
2495
  };
@@ -2496,8 +2499,9 @@ declare const CHROME_ICON_ATTRS: {
2496
2499
  * marks included; no presentation attributes; integer coordinates) on the 16
2497
2500
  * grid with a 2..14 live area.
2498
2501
  *
2499
- * At a 2px line a 16px glyph has room for about four parallel strokes with a
2500
- * pixel between them, so the dense glyphs are drawn with that in mind: two
2502
+ * The set was drawn for a 2px line, where a 16px glyph has room for about four
2503
+ * parallel strokes with a pixel between them, and keeps that air at the finer
2504
+ * line it is shown with now: two
2501
2505
  * sliders rather than three, a lens and a pupil as small solid dots rather
2502
2506
  * than rings, and no plus squeezed inside a square.
2503
2507
  *
@@ -2515,7 +2519,7 @@ declare const CHROME_ICONS: Readonly<Record<string, string>>;
2515
2519
  /**
2516
2520
  * The fills of the chrome glyphs' marks, as `DRAWING_TOOL_ACCENTS` is for the
2517
2521
  * tools: each mark is outlined in the glyph's path, and this paints it solid.
2518
- * At 16px a ring of a 2px line is mostly line already, so the fill matters
2522
+ * At 16px a ring of radius 1 is mostly line already, so the fill matters
2519
2523
  * most for the rings of radius 2: the slider knobs, a head, a line's markers.
2520
2524
  */
2521
2525
  declare const CHROME_ICON_ACCENTS: Readonly<Record<string, string>>;
@@ -2561,8 +2565,9 @@ interface LayoutIconSlot {
2561
2565
  * (whole units, the 2..14 live area, no presentation attributes), and draws
2562
2566
  * through the chrome attribute bag like any `CHROME_ICONS` value.
2563
2567
  *
2564
- * One to four a side: twelve units split four ways leaves a pixel of clear
2565
- * between two lines of the 2px stroke, and five would close it up. Throws a
2568
+ * One to four a side: twelve units split four ways leaves clear space
2569
+ * between two lines even at the 2px stroke the set was drawn for, and five
2570
+ * would close it up. Throws a
2566
2571
  * `RangeError` for anything else, and for a slot outside the grid or over
2567
2572
  * another. A chart grid takes up to eight a side, so a caller that draws the
2568
2573
  * current layout falls back to the `layout` glyph past four.
@@ -2575,8 +2580,8 @@ declare const ICON_SYMBOL_PREFIX = "oac-icon-";
2575
2580
  interface IconSvgOptions {
2576
2581
  /**
2577
2582
  * Width and height. A number is CSS pixels; a string is written verbatim, so
2578
- * `'1em'` sizes the glyph with the surrounding text. Default: the grid's
2579
- * native size (24 for tools, 16 for chrome), where the stroke is crispest.
2583
+ * `'1em'` sizes the glyph with the surrounding text. Default: the size the
2584
+ * tier is drawn for (`ICON_SIZE` for tools, `CHROME_ICON_SIZE` for chrome).
2580
2585
  */
2581
2586
  size?: number | string;
2582
2587
  /** Stroke width in viewBox units. Default: the tier's `*_STROKE`. */
@@ -3084,4 +3089,4 @@ declare const PATTERN_DRAWING_TOOLS: readonly DrawingTool[];
3084
3089
 
3085
3090
  declare const DRAW_TIER: "draw";
3086
3091
 
3087
- export { ADVANCED_GEOMETRY_TOOLS, ADVANCED_LINE_TOOLS, ALIGN_OPTIONS, ANCHORED_VWAP, ARC, ARROW, ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, type AnalysisProfileRow, type AnalysisStatus, type AnchoredVwapOptions, type AnchoredVwapPoint, type AnchoredVwapResult, type AnchoredVwapSource, BALLOON, BRUSH, BUILTIN_DRAWING_TOOLS, CALLOUT, CHROME_ICONS, CHROME_ICON_ACCENTS, CHROME_ICON_ATTRS, CHROME_ICON_FILLED, CHROME_ICON_STROKE, CHROME_ICON_VIEWBOX, CIRCLE, COLOR_FIELD, COMMENT, CROSS_LINE, CURVE, CYCLE_PALETTE, CYCLIC_LINES, type ClipboardPort, DATE_RANGE, DEFAULT_FIB, DEFAULT_FIB_FAN, DEFAULT_FIB_TIME_ZONE, DEFAULT_GANN_BOX, DEFAULT_GANN_FAN, DOUBLE_CURVE, DRAWING_CLIPBOARD_KEY, DRAWING_CLIPBOARD_VERSION, DRAWING_STATE_VERSION, DRAWING_TOOL_ACCENTS, DRAWING_TOOL_ICONS, DRAW_TIER, type DrawContext, type Drawing, type DrawingChangeEvent, type DrawingChangeKind, type DrawingChartHost, DrawingClipboard, type DrawingClipboardOptions, DrawingController, type DrawingControllerOptions, type DrawingDocumentStore, type DrawingEditOptions, type DrawingEvent, type DrawingGestureOptions, type DrawingGroup, type DrawingIdEvent, type DrawingIdsEvent, type DrawingInput, type DrawingInstrument, type DrawingIntervalRange, type DrawingKeyAction, type DrawingKeyContext, type DrawingKeyEvent, DrawingLayer, type DrawingLayerOrder, type DrawingLinkChart, type DrawingLinkContext, type DrawingLinkContextSource, DrawingLinkGroup, type DrawingLinkOptions, type DrawingListEvent, type DrawingModeEvent, type DrawingPatch, type DrawingPlacementOptions, type DrawingPoint, type DrawingPointerKind, type DrawingPolicy, type DrawingSpace, type DrawingStackTarget, type DrawingStyle, type DrawingText, type DrawingTextStorage, type DrawingTool, type DrawingToolEvent, type DrawingValueContext, type DrawingsDocument, ELLIPSE, EXTENDED_LINE, EXTEND_FIELDS, type ExpandContext, FIB_CHANNEL, FIB_EXTENSION, FIB_FAN, FIB_RETRACEMENT, FIB_TIME_ZONE, FILL_FIELDS, FIXED_RANGE_VOLUME_PROFILE, FLAG_MARK, FONT_FIELDS, FONT_OPTIONS, FORECAST, type FibLevel, type FieldGroup, type FieldKind, type FixedRangeVolumeProfileOptions, type FixedRangeVolumeProfileResult, GANN_BOX, GANN_FAN, HIGHLIGHTER, HORIZONTAL_LINE, HORIZONTAL_RAY, type HitContext, ICON_ATTRS, ICON_STROKE, ICON_SYMBOL_PREFIX, ICON_VIEWBOX, INTERVAL_FIELDS, type IconAttrs, type IconSvgOptions, type InputAnchorStep, InstrumentDrawings, type InstrumentDrawingsChart, type InstrumentDrawingsError, type InstrumentDrawingsOptions, LEVEL_FIELDS, LEVEL_NEUTRAL, LINE_FIELDS, LINE_STYLE_FIELD, LINE_STYLE_OPTIONS, LINE_WIDTH_FIELD, LONG_POSITION, type LayoutIconSlot, MEASURE, type MagnetMode, NOTE, NUDGE_STEP_PX, NUDGE_STEP_SHIFT_PX, PARALLEL_CHANNEL, PATH, PATTERN_DRAWING_TOOLS, PLATE_TEXT_FIELDS, POLYLINE, PRICE_LABEL, PRICE_NOTE, PRICE_RANGE, RAY, RECTANGLE, ROTATED_RECTANGLE, SHAPE_TEXT_FIELDS, SHORT_POSITION, SHOW_LABELS_FIELD, SIGNPOST, SINE_LINE, SPACE_FIELD, SPACE_OPTIONS, type ScreenPoint, type SettingsField, type SettingsSchema, type ShortcutEvent, type StudyInputTarget, TABLE, TEXT, TEXT_FIELDS, TEXT_POSITION_OPTIONS, TEXT_VALUE_FIELD, TIME_CYCLES, TREND_LINE, TRIANGLE, type ToolCursorOptions, VALIGN_OPTIONS, VERTICAL_LINE, type ViewportPoint, anchoredVwapAnalysis, applyDrawingSettings, boundsOf, catmullRom, chartTypeIcon, chromeIcon, chromeIconAccent, chromeIconIds, chromeIconSvg, clearMemoryClipboard, cloneDrawing, cloneLevels, coerceSettingValue, composeSettings, createDrawingLinkGroup, createInstrumentDrawings, cycleColor, decodeClipboardPayload, distToEllipse, distToLine, distToPolyline, distToRect, distToSegment, drawingSettingsSchema, drawingShortcuts, drawingShownOnInterval, drawingToolAccent, drawingToolIcon, drawingToolIconIds, encodeClipboardPayload, extendSegment, fixedRangeVolumeProfileAnalysis, formatRatio, gannLabel, getDrawingTool, hasDrawingTool, iconSprite, iconSvg, iconUse, instrumentDrawingsKey, keyToDrawingAction, layoutIconPath, levelColor, matchDrawingShortcut, memoryDrawingStore, migrateDrawings, migrateUnscopedDrawings, pressureWidth, rdpSimplify, readDrawingSetting, readDrawingSettings, rectOf, registerBuiltinDrawingTools, registerDrawingTool, registeredDrawingTools, sanitizeDrawing, sortByZIndex, studyInputTarget, systemClipboard, toolCursor, webStorageDrawingStore };
3092
+ export { ADVANCED_GEOMETRY_TOOLS, ADVANCED_LINE_TOOLS, ALIGN_OPTIONS, ANCHORED_VWAP, ARC, ARROW, ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, type AnalysisProfileRow, type AnalysisStatus, type AnchoredVwapOptions, type AnchoredVwapPoint, type AnchoredVwapResult, type AnchoredVwapSource, BALLOON, BRUSH, BUILTIN_DRAWING_TOOLS, CALLOUT, CHROME_ICONS, CHROME_ICON_ACCENTS, CHROME_ICON_ATTRS, CHROME_ICON_FILLED, CHROME_ICON_SIZE, CHROME_ICON_STROKE, CHROME_ICON_VIEWBOX, CIRCLE, COLOR_FIELD, COMMENT, CROSS_LINE, CURVE, CYCLE_PALETTE, CYCLIC_LINES, type ClipboardPort, DATE_RANGE, DEFAULT_FIB, DEFAULT_FIB_FAN, DEFAULT_FIB_TIME_ZONE, DEFAULT_GANN_BOX, DEFAULT_GANN_FAN, DOUBLE_CURVE, DRAWING_CLIPBOARD_KEY, DRAWING_CLIPBOARD_VERSION, DRAWING_STATE_VERSION, DRAWING_TOOL_ACCENTS, DRAWING_TOOL_ICONS, DRAW_TIER, type DrawContext, type Drawing, type DrawingChangeEvent, type DrawingChangeKind, type DrawingChartHost, DrawingClipboard, type DrawingClipboardOptions, DrawingController, type DrawingControllerOptions, type DrawingDocumentStore, type DrawingEditOptions, type DrawingEvent, type DrawingGestureOptions, type DrawingGroup, type DrawingIdEvent, type DrawingIdsEvent, type DrawingInput, type DrawingInstrument, type DrawingIntervalRange, type DrawingKeyAction, type DrawingKeyContext, type DrawingKeyEvent, DrawingLayer, type DrawingLayerOrder, type DrawingLinkChart, type DrawingLinkContext, type DrawingLinkContextSource, DrawingLinkGroup, type DrawingLinkOptions, type DrawingListEvent, type DrawingModeEvent, type DrawingPatch, type DrawingPlacementOptions, type DrawingPoint, type DrawingPointerKind, type DrawingPolicy, type DrawingSpace, type DrawingStackTarget, type DrawingStyle, type DrawingText, type DrawingTextStorage, type DrawingTool, type DrawingToolEvent, type DrawingValueContext, type DrawingsDocument, ELLIPSE, EXTENDED_LINE, EXTEND_FIELDS, type ExpandContext, FIB_CHANNEL, FIB_EXTENSION, FIB_FAN, FIB_RETRACEMENT, FIB_TIME_ZONE, FILL_FIELDS, FIXED_RANGE_VOLUME_PROFILE, FLAG_MARK, FONT_FIELDS, FONT_OPTIONS, FORECAST, type FibLevel, type FieldGroup, type FieldKind, type FixedRangeVolumeProfileOptions, type FixedRangeVolumeProfileResult, GANN_BOX, GANN_FAN, HIGHLIGHTER, HORIZONTAL_LINE, HORIZONTAL_RAY, type HitContext, ICON_ATTRS, ICON_SIZE, ICON_STROKE, ICON_SYMBOL_PREFIX, ICON_VIEWBOX, INTERVAL_FIELDS, type IconAttrs, type IconSvgOptions, type InputAnchorStep, InstrumentDrawings, type InstrumentDrawingsChart, type InstrumentDrawingsError, type InstrumentDrawingsOptions, LEVEL_FIELDS, LEVEL_NEUTRAL, LINE_FIELDS, LINE_STYLE_FIELD, LINE_STYLE_OPTIONS, LINE_WIDTH_FIELD, LONG_POSITION, type LayoutIconSlot, MEASURE, type MagnetMode, NOTE, NUDGE_STEP_PX, NUDGE_STEP_SHIFT_PX, PARALLEL_CHANNEL, PATH, PATTERN_DRAWING_TOOLS, PLATE_TEXT_FIELDS, POLYLINE, PRICE_LABEL, PRICE_NOTE, PRICE_RANGE, RAY, RECTANGLE, ROTATED_RECTANGLE, SHAPE_TEXT_FIELDS, SHORT_POSITION, SHOW_LABELS_FIELD, SIGNPOST, SINE_LINE, SPACE_FIELD, SPACE_OPTIONS, type ScreenPoint, type SettingsField, type SettingsSchema, type ShortcutEvent, type StudyInputTarget, TABLE, TEXT, TEXT_FIELDS, TEXT_POSITION_OPTIONS, TEXT_VALUE_FIELD, TIME_CYCLES, TREND_LINE, TRIANGLE, type ToolCursorOptions, VALIGN_OPTIONS, VERTICAL_LINE, type ViewportPoint, anchoredVwapAnalysis, applyDrawingSettings, boundsOf, catmullRom, chartTypeIcon, chromeIcon, chromeIconAccent, chromeIconIds, chromeIconSvg, clearMemoryClipboard, cloneDrawing, cloneLevels, coerceSettingValue, composeSettings, createDrawingLinkGroup, createInstrumentDrawings, cycleColor, decodeClipboardPayload, distToEllipse, distToLine, distToPolyline, distToRect, distToSegment, drawingSettingsSchema, drawingShortcuts, drawingShownOnInterval, drawingToolAccent, drawingToolIcon, drawingToolIconIds, encodeClipboardPayload, extendSegment, fixedRangeVolumeProfileAnalysis, formatRatio, gannLabel, getDrawingTool, hasDrawingTool, iconSprite, iconSvg, iconUse, instrumentDrawingsKey, keyToDrawingAction, layoutIconPath, levelColor, matchDrawingShortcut, memoryDrawingStore, migrateDrawings, migrateUnscopedDrawings, pressureWidth, rdpSimplify, readDrawingSetting, readDrawingSettings, rectOf, registerBuiltinDrawingTools, registerDrawingTool, registeredDrawingTools, sanitizeDrawing, sortByZIndex, studyInputTarget, systemClipboard, toolCursor, webStorageDrawingStore };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Library version string. Matches package.json (including locally prepared releases). */
2
- declare const VERSION = "2.6.2";
2
+ declare const VERSION = "2.6.3";
3
3
  /** Returns the current library version. */
4
4
  declare function version(): string;
5
5
 
@@ -333,8 +333,8 @@ declare class PriceScale {
333
333
  * The range stays in *price* units in every mode, so the rebasing modes need
334
334
  * no separate pass: their transform is affine with a positive scale factor,
335
335
  * which maps a margin of 10% of the price span onto a margin of 10% of the
336
- * percent span. Log is the one that pads in price space and shows it, which
337
- * is long-standing behaviour and left alone here.
336
+ * percent span. Log pads in log space (`scaleAutoscaleRange`), so the data
337
+ * keeps the same share of the pane there too.
338
338
  */
339
339
  autoscale(low: number, high: number, progress?: number): boolean;
340
340
  /**