@kumo-charts/core 1.0.0-beta.6 → 1.0.0-beta.7

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.
Files changed (69) hide show
  1. package/LICENSE +201 -201
  2. package/NOTICE +11 -11
  3. package/README.md +23 -23
  4. package/dist/{aggregator-CsTcgTRK.js → aggregator-DFCDVoFt.js} +3 -3
  5. package/dist/{alert-book-DNP68WX7.js → alert-book-KgUNJ1Pm.js} +5 -4
  6. package/dist/alert-engine.d.ts +5 -5
  7. package/dist/alert-engine.js +10 -10
  8. package/dist/{alerts-Bv5u4-99.js → alerts-sN1NVz-X.js} +19 -7
  9. package/dist/alerts.d.ts +1 -1
  10. package/dist/alerts.js +1 -1
  11. package/dist/all.d.ts +9 -9
  12. package/dist/all.js +9 -9
  13. package/dist/{api-BxS-GfYB.d.ts → api-BWC_Cce5.d.ts} +15 -1
  14. package/dist/{api-BlJUtij_.d.ts → api-DgviKlaI.d.ts} +1 -1
  15. package/dist/{bar-store-B_NkvUnA.js → bar-store-B4HFH1h6.js} +21 -3
  16. package/dist/{calendar-BkI9B9A5.js → calendar-xZYfA5bX.js} +4 -4
  17. package/dist/{chart-types-pzeZDEp9.js → chart-types-DtRsOwjT.js} +3 -3
  18. package/dist/chart-types.d.ts +1 -1
  19. package/dist/chart-types.js +1 -1
  20. package/dist/collection-RZyV3hnM.js +71 -0
  21. package/dist/{color-1Osbv2TE.js → color-AsBx5M66.js} +1 -1
  22. package/dist/{data-B75gRyuP.d.ts → data-RRHroFqK.d.ts} +34 -2
  23. package/dist/{drawings-DMRwbLsg.js → drawings-C-jyagJI.js} +137 -125
  24. package/dist/drawings.d.ts +3 -3
  25. package/dist/drawings.js +1 -1
  26. package/dist/{frame-Bt85Ejw7.js → frame-790ompHn.js} +5 -6
  27. package/dist/{index-Bfi0g81h.d.ts → index-B5nL4-fG.d.ts} +4 -2
  28. package/dist/{index-D12U6YKZ.d.ts → index-BMRUiN6F.d.ts} +2 -2
  29. package/dist/{index-SSXLg0b-.d.ts → index-Bgl-FJT3.d.ts} +3 -3
  30. package/dist/{index-BoRy0gWB.d.ts → index-Bp1gL2SV.d.ts} +1 -1
  31. package/dist/{index-DTrnOP7Q.d.ts → index-CsFnU-ko.d.ts} +1 -1
  32. package/dist/{index-BpyqTH6i.d.ts → index-D5fdjNJv.d.ts} +14 -2
  33. package/dist/{index-DvbA0QtQ.d.ts → index-cuDsywlB.d.ts} +1 -1
  34. package/dist/index.d.ts +3 -3
  35. package/dist/index.js +280 -107
  36. package/dist/{indicator-store-CSNYNv-H.js → indicator-store-Cj8FkdLe.js} +11 -5
  37. package/dist/{indicators-7G1DqNSH.js → indicators-KKeZmC6g.js} +30 -9
  38. package/dist/indicators.d.ts +2 -2
  39. package/dist/indicators.js +2 -2
  40. package/dist/kumo-charts.iife.js +7 -7
  41. package/dist/{module-DxdViSuj.d.ts → module-ma1-rklb.d.ts} +2 -2
  42. package/dist/{modules-RlaXjRWe.js → modules-D_E0wmaT.js} +1 -1
  43. package/dist/{price-line-BPw9VyW3.js → price-line-Ctf8YIXI.js} +77 -89
  44. package/dist/{price-line-CdM5YNlZ.d.ts → price-line-exqgokHI.d.ts} +3 -1
  45. package/dist/{price-lines-CaLOO6qa.js → price-lines-C9xony-Z.js} +1 -1
  46. package/dist/{registry-f-A949ov.js → registry-DpycnxXe.js} +8 -4
  47. package/dist/{replay-_1IoxPdh.js → replay-BglWO-Se.js} +3 -3
  48. package/dist/replay.d.ts +1 -1
  49. package/dist/replay.js +1 -1
  50. package/dist/{series-store-Brd46VuC.js → series-store-DwvvS42F.js} +3 -3
  51. package/dist/{time-BN0L-hLy.js → time-QUqwrKFO.js} +1 -1
  52. package/dist/{trading-CjKK5irF.js → trading-BY4NVox9.js} +38 -17
  53. package/dist/trading.d.ts +1 -1
  54. package/dist/trading.js +1 -1
  55. package/dist/{transforms-CtdsqwVk.js → transforms-D07qL7UT.js} +3 -3
  56. package/dist/{types-Bgjeo6w6.js → types-CEVVGcR9.js} +6 -2
  57. package/dist/{types-uoxTaiGv.js → types-CgerhCJ3.js} +3 -1
  58. package/dist/{types-xV6t4aad.d.ts → types-CrxgaGh5.d.ts} +14 -2
  59. package/dist/{validate-YdhjgZ6g.js → validate-B_z8rO0I.js} +4 -1
  60. package/dist/{value-format-BieuAeNK.js → value-format-DwSqOZkc.js} +6 -6
  61. package/dist/{values-Cw8XKIVE.js → values-CIb5EJ5-.js} +18 -10
  62. package/dist/{values-CtBpceAo.js → values-Hk0_RbLE.js} +5 -5
  63. package/dist/{volume-profile-ZWM9N-I-.js → volume-profile-Ci-AGdvp.js} +5 -8
  64. package/dist/volume-profile.d.ts +1 -1
  65. package/dist/volume-profile.js +1 -1
  66. package/dist/{watermark-qCkQw950.js → watermark--TmdUE3C.js} +3 -3
  67. package/dist/watermark.d.ts +1 -1
  68. package/dist/watermark.js +1 -1
  69. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { En as BarsView, Tn as BarInput, Yt as TextOverrides, l as ChartModule } from "./data-B75gRyuP.js";
2
- import { _ as DrawingTexts, l as DrawingInput, n as Drawing, p as DrawingPoint, t as Anchors, u as DrawingLevel, y as DrawingTypeDefinition } from "./types-xV6t4aad.js";
3
- import { n as DrawingsApi } from "./api-BlJUtij_.js";
1
+ import { On as BarInput, Qt as TextOverrides, kn as BarsView, l as ChartModule } from "./data-RRHroFqK.js";
2
+ import { _ as DrawingTexts, l as DrawingInput, n as Drawing, p as DrawingPoint, t as Anchors, u as DrawingLevel, y as DrawingTypeDefinition } from "./types-CrxgaGh5.js";
3
+ import { n as DrawingsApi } from "./api-DgviKlaI.js";
4
4
  //#region src/drawings/drawings-domain.d.ts
5
5
  type DrawingsChangeReason = 'create' | 'edit' | 'remove' | 'undo' | 'redo';
6
6
  //#endregion
@@ -1,4 +1,4 @@
1
- import { Nn as TimeInput, l as ChartModule } from "./data-B75gRyuP.js";
1
+ import { In as TimeInput, l as ChartModule } from "./data-RRHroFqK.js";
2
2
  //#region src/replay/replay.d.ts
3
3
  interface ReplaySettings {
4
4
  /** Steps per second while playing. */
@@ -1,4 +1,4 @@
1
- import { ht as BarTransformDefinition, l as ChartModule, xt as SeriesTypeDefinition } from "./data-B75gRyuP.js";
1
+ import { ht as BarTransformDefinition, l as ChartModule, xt as SeriesTypeDefinition } from "./data-RRHroFqK.js";
2
2
  //#region src/chart-types/module.d.ts
3
3
  /**
4
4
  * A chart type: how its bars are built from the bars of the timeframe (`transform`, set with
@@ -1,6 +1,6 @@
1
- import { Bt as LineStyle, Nn as TimeInput, l as ChartModule } from "./data-B75gRyuP.js";
1
+ import { In as TimeInput, Ut as LineStyle, l as ChartModule } from "./data-RRHroFqK.js";
2
2
  import { t as MarkerShape } from "./shapes-BeKfp99c.js";
3
- import { i as CollectionApi, n as PriceDragEvent, r as PriceLineButton } from "./price-line-CdM5YNlZ.js";
3
+ import { a as CollectionApi, i as PriceLineButton, n as LabelAlign, r as PriceDragEvent } from "./price-line-exqgokHI.js";
4
4
  //#region src/trading/markers.d.ts
5
5
  type MarkerPosition = 'above' | 'below' | 'price';
6
6
  interface MarkerInput {
@@ -68,6 +68,15 @@ interface OrderInput {
68
68
  color?: string;
69
69
  lineStyle?: LineStyle;
70
70
  buttons?: PriceLineButton[];
71
+ /** Where along the line its label is: `left`, `center` or `right` of the plot. Default `right`. */
72
+ labelAlign?: LabelAlign;
73
+ /** Its price on the price axis. Off where the label says it. Default `true`. */
74
+ axisLabel?: boolean;
75
+ /**
76
+ * A short text the browser shows after a moment while the pointer rests on its line or its label (not on its buttons),
77
+ * such as what it says that its label does not. None by default.
78
+ */
79
+ tooltip?: string;
71
80
  }
72
81
  interface Order {
73
82
  readonly id: string;
@@ -81,6 +90,9 @@ interface Order {
81
90
  readonly color: string | null;
82
91
  readonly lineStyle: LineStyle;
83
92
  readonly buttons: readonly PriceLineButton[];
93
+ readonly labelAlign: LabelAlign;
94
+ readonly axisLabel: boolean;
95
+ readonly tooltip: string | null;
84
96
  }
85
97
  //#endregion
86
98
  //#region src/trading/module.d.ts
@@ -1,4 +1,4 @@
1
- import { l as ChartModule } from "./data-B75gRyuP.js";
1
+ import { l as ChartModule } from "./data-RRHroFqK.js";
2
2
  //#region src/watermark/module.d.ts
3
3
  /** A line of text of the watermark. */
4
4
  interface WatermarkLine {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as Point, $t as TimeScaleOptions, A as TimeScaleApi, An as TradeSide, At as ChartTexts, B as OptionsChangeEvent, Bt as LineStyle, C as SavedScale, Cn as Bar, Ct as CalendarInput, D as PluginPaintContext, Dn as PRICE_SOURCES, Dt as CalendarBucket, E as PluginLayer, En as BarsView, Et as BarColorContext, F as ChartPointerEvent, Ft as LINE_STYLES, G as VisibleRangeChangeEvent, Gt as PriceFormatter, H as SelectionChangeEvent, Ht as PaneOptions, I as CrosshairMoveEvent, It as LatestPriceOptions, J as PriceScaleApi, Jt as ScaleMargins, K as SeriesApi, Kt as PriceScaleMode, L as LegendButtonClickEvent, Lt as LegendButton, M as ButtonClickEvent, Mn as ValueSource, Mt as FontOptions, N as ChartArea, Nn as TimeInput, Nt as GridOptions, O as PluginPane, On as PriceSource, Ot as CalendarOptions, P as ChartEventMap, Pt as InteractionOptions, Q as ObjectKind, Qt as TimeFormatter, R as LoadMoreEvent, Rt as LegendItem, S as ChartState, Sn as parseInterval, St as Calendar, T as PluginHost, Tn as BarInput, Tt as createCalendar, U as TimeRange, Ut as PerformanceOptions, V as PaneResizeEvent, Vt as MainSeriesOptions, W as TypesChangeEvent, Wt as PriceFormatContext, X as Selection, Xt as Theme, Y as CrosshairState, Yt as TextOverrides, Z as ChartCommand, Zt as TimeFormatContext, _ as ModulesEvents, _n as IntervalUnit, _t as BarTransformState, a as CreateChartOptions, an as HighLowStyle, at as ViewAlign, b as ModulesTypes, bn as formatInterval, bt as SeriesPoints, c as createChart, cn as LineMarkersStyle, ct as Rect, d as ModuleDefinition, dn as PointFigureStyle, dt as PaneInput, en as TimeUnit, et as Series, f as ModuleOptions, fn as SeriesStyleMap, ft as PriceRange, g as ModulesApi, gn as IntervalInput, gt as BarTransformInput, h as ModuleTypes, hn as Interval, ht as BarTransformDefinition, i as ChartBase, in as ColumnsStyle, it as LogicalRange, j as BarsChangeEvent, jn as ValuePointInput, jt as CrosshairOptions, k as TransformsApi, kn as TradeInput, kt as ChartOptions, l as ChartModule, ln as LineSeriesStyle, lt as SeparatorLayout, m as ModuleStatePart, mn as SeriesType, mt as Unsubscribe, n as DataSetOptions, nn as BaselineStyle, nt as SeriesPatch, o as CrosshairApi, on as HlcAreaStyle, ot as Layout, p as ModuleOptionsOf, pn as SeriesStyleOverrides, pt as DeepPartial, q as PanesApi, qt as PriceScaleOptions, r as Chart, rn as CandleStyle, rt as SeriesPointInput, s as PluginsApi, sn as KagiStyle, st as PaneLayout, t as DataApi, tn as AreaStyle, tt as SeriesInput, u as ModuleContext, un as OhlcStyle, ut as Pane, v as ModulesOptions, vn as canBuildTimeframe, vt as BarTransformStream, w as ChartPlugin, wn as BarChange, wt as CalendarRange, x as createModule, xn as intervalDuration, xt as SeriesTypeDefinition, y as ModulesState, yn as checkTimeframe, yt as SeriesPaintContext, z as ObjectTarget, zt as LegendOptions } from "./data-B75gRyuP.js";
1
+ import { $ as Point, $t as Theme, A as TimeScaleApi, An as PRICE_SOURCES, At as ChartTexts, B as OptionsChangeEvent, Bt as LegendButton, C as SavedScale, Cn as formatInterval, Ct as CalendarInput, D as PluginPaintContext, Dn as BarChange, Dt as CalendarBucket, E as PluginLayer, En as Bar, Et as BarColorContext, F as ChartPointerEvent, Fn as ValueSource, Ft as InteractionOptions, G as VisibleRangeChangeEvent, Gt as PaneOptions, H as SelectionChangeEvent, Ht as LegendOptions, I as CrosshairMoveEvent, In as TimeInput, It as LABEL_ANCHORS, J as PriceScaleApi, Jt as PriceFormatter, K as SeriesApi, Kt as PerformanceOptions, L as LegendButtonClickEvent, Lt as LINE_STYLES, M as ButtonClickEvent, Mn as TradeInput, Mt as CrosshairPriceLines, N as ChartArea, Nn as TradeSide, Nt as FontOptions, O as PluginPane, On as BarInput, Ot as CalendarOptions, P as ChartEventMap, Pn as ValuePointInput, Pt as GridOptions, Q as ObjectKind, Qt as TextOverrides, R as LoadMoreEvent, Rt as LabelAnchor, S as ChartState, Sn as checkTimeframe, St as Calendar, T as PluginHost, Tn as parseInterval, Tt as createCalendar, U as TimeRange, Ut as LineStyle, V as PaneResizeEvent, Vt as LegendItem, W as TypesChangeEvent, Wt as MainSeriesOptions, X as Selection, Xt as PriceScaleOptions, Y as CrosshairState, Yt as PriceScaleMode, Z as ChartCommand, Zt as ScaleMargins, _ as ModulesEvents, _n as SeriesType, _t as BarTransformState, a as CreateChartOptions, an as BaselineStyle, at as ViewAlign, b as ModulesTypes, bn as IntervalUnit, bt as SeriesPoints, c as createChart, cn as HighLowStyle, ct as Rect, d as ModuleDefinition, dn as LineMarkersStyle, dt as PaneInput, en as TimeFormatContext, et as Series, f as ModuleOptions, fn as LineSeriesStyle, ft as PriceRange, g as ModulesApi, gn as SeriesStyleOverrides, gt as BarTransformInput, h as ModuleTypes, hn as SeriesStyleMap, ht as BarTransformDefinition, i as ChartBase, in as AreaStyle, it as LogicalRange, j as BarsChangeEvent, jn as PriceSource, jt as CrosshairOptions, k as TransformsApi, kn as BarsView, kt as ChartOptions, l as ChartModule, ln as HlcAreaStyle, lt as SeparatorLayout, m as ModuleStatePart, mn as PointFigureStyle, mt as Unsubscribe, n as DataSetOptions, nn as TimeScaleOptions, nt as SeriesPatch, o as CrosshairApi, on as CandleStyle, ot as Layout, p as ModuleOptionsOf, pn as OhlcStyle, pt as DeepPartial, q as PanesApi, qt as PriceFormatContext, r as Chart, rn as TimeUnit, rt as SeriesPointInput, s as PluginsApi, sn as ColumnsStyle, st as PaneLayout, t as DataApi, tn as TimeFormatter, tt as SeriesInput, u as ModuleContext, un as KagiStyle, ut as Pane, v as ModulesOptions, vn as Interval, vt as BarTransformStream, w as ChartPlugin, wn as intervalDuration, wt as CalendarRange, x as createModule, xn as canBuildTimeframe, xt as SeriesTypeDefinition, y as ModulesState, yn as IntervalInput, yt as SeriesPaintContext, z as ObjectTarget, zt as LatestPriceOptions } from "./data-RRHroFqK.js";
2
2
  import { t as MarkerShape } from "./shapes-BeKfp99c.js";
3
- import { i as CollectionApi, n as PriceDragEvent, r as PriceLineButton, t as DragPhase } from "./price-line-CdM5YNlZ.js";
3
+ import { a as CollectionApi, i as PriceLineButton, n as LabelAlign, r as PriceDragEvent, t as DragPhase } from "./price-line-exqgokHI.js";
4
4
  //#region src/data/bar-store.d.ts
5
5
  /**
6
6
  * Checks a bar as the chart does and returns it normalized: the time in epoch milliseconds and
@@ -33,4 +33,4 @@ export declare class ChartError extends Error {
33
33
  constructor(message: string);
34
34
  }
35
35
  //#endregion
36
- export { type AreaStyle, type Bar, type BarChange, type BarColorContext, type BarInput, type BarTransformDefinition, type BarTransformInput, type BarTransformState, type BarTransformStream, type BarsChangeEvent, type BarsView, type BaselineStyle, type ButtonClickEvent, type Calendar, type CalendarBucket, type CalendarInput, type CalendarOptions, type CalendarRange, type CandleStyle, type Chart, type ChartArea, type ChartBase, type ChartCommand, type ChartEventMap, type ChartModule, type ChartOptions, type ChartOptionsInput, type ChartPlugin, type ChartPointerEvent, type ChartState, type ChartTexts, type CollectionApi, type ColumnsStyle, type CreateChartOptions, type CrosshairApi, type CrosshairMoveEvent, type CrosshairOptions, type CrosshairState, type DataApi, type DataSetOptions, type DeepPartial, type DragPhase, type FontOptions, type GridOptions, type HighLowStyle, type HlcAreaStyle, type InteractionOptions, type Interval, type IntervalInput, type IntervalUnit, type KagiStyle, LINE_STYLES, type LatestPriceOptions, type Layout, type LegendButton, type LegendButtonClickEvent, type LegendItem, type LegendOptions, type LineMarkersStyle, type LineSeriesStyle, type LineStyle, type LoadMoreEvent, type LogicalRange, type MainSeriesOptions, type MarkerShape, type ModuleContext, type ModuleDefinition, type ModuleOptions, type ModuleOptionsOf, type ModuleStatePart, type ModuleTypes, type ModulesApi, type ModulesEvents, type ModulesOptions, type ModulesState, type ModulesTypes, type ObjectKind, type ObjectTarget, type OhlcStyle, type OptionsChangeEvent, PRICE_SOURCES, type Pane, type PaneInput, type PaneLayout, type PaneOptions, type PaneResizeEvent, type PanesApi, type PerformanceOptions, type PluginHost, type PluginLayer, type PluginPaintContext, type PluginPane, type PluginsApi, type Point, type PointFigureStyle, type PriceDragEvent, type PriceFormatContext, type PriceFormatter, type PriceLineButton, type PriceRange, type PriceScaleApi, type PriceScaleMode, type PriceScaleOptions, type PriceSource, type Rect, type SavedScale, type ScaleMargins, type Selection, type SelectionChangeEvent, type SeparatorLayout, type Series, type SeriesApi, type SeriesInput, type SeriesPaintContext, type SeriesPatch, type SeriesPointInput, type SeriesPoints, type SeriesStyleMap, type SeriesStyleOverrides, type SeriesType, type SeriesTypeDefinition, type TextOverrides, type Theme, type TimeFormatContext, type TimeFormatter, type TimeInput, type TimeRange, type TimeScaleApi, type TimeScaleOptions, type TimeUnit, type TradeInput, type TradeSide, type TransformsApi, type TypesChangeEvent, type Unsubscribe, type ValuePointInput, type ValueSource, type ViewAlign, type VisibleRangeChangeEvent, canBuildTimeframe, checkTimeframe, createCalendar, createChart, createModule, formatInterval, intervalDuration, parseInterval };
36
+ export { type AreaStyle, type Bar, type BarChange, type BarColorContext, type BarInput, type BarTransformDefinition, type BarTransformInput, type BarTransformState, type BarTransformStream, type BarsChangeEvent, type BarsView, type BaselineStyle, type ButtonClickEvent, type Calendar, type CalendarBucket, type CalendarInput, type CalendarOptions, type CalendarRange, type CandleStyle, type Chart, type ChartArea, type ChartBase, type ChartCommand, type ChartEventMap, type ChartModule, type ChartOptions, type ChartOptionsInput, type ChartPlugin, type ChartPointerEvent, type ChartState, type ChartTexts, type CollectionApi, type ColumnsStyle, type CreateChartOptions, type CrosshairApi, type CrosshairMoveEvent, type CrosshairOptions, type CrosshairPriceLines, type CrosshairState, type DataApi, type DataSetOptions, type DeepPartial, type DragPhase, type FontOptions, type GridOptions, type HighLowStyle, type HlcAreaStyle, type InteractionOptions, type Interval, type IntervalInput, type IntervalUnit, type KagiStyle, LABEL_ANCHORS, LINE_STYLES, type LabelAlign, type LabelAnchor, type LatestPriceOptions, type Layout, type LegendButton, type LegendButtonClickEvent, type LegendItem, type LegendOptions, type LineMarkersStyle, type LineSeriesStyle, type LineStyle, type LoadMoreEvent, type LogicalRange, type MainSeriesOptions, type MarkerShape, type ModuleContext, type ModuleDefinition, type ModuleOptions, type ModuleOptionsOf, type ModuleStatePart, type ModuleTypes, type ModulesApi, type ModulesEvents, type ModulesOptions, type ModulesState, type ModulesTypes, type ObjectKind, type ObjectTarget, type OhlcStyle, type OptionsChangeEvent, PRICE_SOURCES, type Pane, type PaneInput, type PaneLayout, type PaneOptions, type PaneResizeEvent, type PanesApi, type PerformanceOptions, type PluginHost, type PluginLayer, type PluginPaintContext, type PluginPane, type PluginsApi, type Point, type PointFigureStyle, type PriceDragEvent, type PriceFormatContext, type PriceFormatter, type PriceLineButton, type PriceRange, type PriceScaleApi, type PriceScaleMode, type PriceScaleOptions, type PriceSource, type Rect, type SavedScale, type ScaleMargins, type Selection, type SelectionChangeEvent, type SeparatorLayout, type Series, type SeriesApi, type SeriesInput, type SeriesPaintContext, type SeriesPatch, type SeriesPointInput, type SeriesPoints, type SeriesStyleMap, type SeriesStyleOverrides, type SeriesType, type SeriesTypeDefinition, type TextOverrides, type Theme, type TimeFormatContext, type TimeFormatter, type TimeInput, type TimeRange, type TimeScaleApi, type TimeScaleOptions, type TimeUnit, type TradeInput, type TradeSide, type TransformsApi, type TypesChangeEvent, type Unsubscribe, type ValuePointInput, type ValueSource, type ViewAlign, type VisibleRangeChangeEvent, canBuildTimeframe, checkTimeframe, createCalendar, createChart, createModule, formatInterval, intervalDuration, parseInterval };