@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.
- package/LICENSE +201 -201
- package/NOTICE +11 -11
- package/README.md +23 -23
- package/dist/{aggregator-CsTcgTRK.js → aggregator-DFCDVoFt.js} +3 -3
- package/dist/{alert-book-DNP68WX7.js → alert-book-KgUNJ1Pm.js} +5 -4
- package/dist/alert-engine.d.ts +5 -5
- package/dist/alert-engine.js +10 -10
- package/dist/{alerts-Bv5u4-99.js → alerts-sN1NVz-X.js} +19 -7
- package/dist/alerts.d.ts +1 -1
- package/dist/alerts.js +1 -1
- package/dist/all.d.ts +9 -9
- package/dist/all.js +9 -9
- package/dist/{api-BxS-GfYB.d.ts → api-BWC_Cce5.d.ts} +15 -1
- package/dist/{api-BlJUtij_.d.ts → api-DgviKlaI.d.ts} +1 -1
- package/dist/{bar-store-B_NkvUnA.js → bar-store-B4HFH1h6.js} +21 -3
- package/dist/{calendar-BkI9B9A5.js → calendar-xZYfA5bX.js} +4 -4
- package/dist/{chart-types-pzeZDEp9.js → chart-types-DtRsOwjT.js} +3 -3
- package/dist/chart-types.d.ts +1 -1
- package/dist/chart-types.js +1 -1
- package/dist/collection-RZyV3hnM.js +71 -0
- package/dist/{color-1Osbv2TE.js → color-AsBx5M66.js} +1 -1
- package/dist/{data-B75gRyuP.d.ts → data-RRHroFqK.d.ts} +34 -2
- package/dist/{drawings-DMRwbLsg.js → drawings-C-jyagJI.js} +137 -125
- package/dist/drawings.d.ts +3 -3
- package/dist/drawings.js +1 -1
- package/dist/{frame-Bt85Ejw7.js → frame-790ompHn.js} +5 -6
- package/dist/{index-Bfi0g81h.d.ts → index-B5nL4-fG.d.ts} +4 -2
- package/dist/{index-D12U6YKZ.d.ts → index-BMRUiN6F.d.ts} +2 -2
- package/dist/{index-SSXLg0b-.d.ts → index-Bgl-FJT3.d.ts} +3 -3
- package/dist/{index-BoRy0gWB.d.ts → index-Bp1gL2SV.d.ts} +1 -1
- package/dist/{index-DTrnOP7Q.d.ts → index-CsFnU-ko.d.ts} +1 -1
- package/dist/{index-BpyqTH6i.d.ts → index-D5fdjNJv.d.ts} +14 -2
- package/dist/{index-DvbA0QtQ.d.ts → index-cuDsywlB.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +280 -107
- package/dist/{indicator-store-CSNYNv-H.js → indicator-store-Cj8FkdLe.js} +11 -5
- package/dist/{indicators-7G1DqNSH.js → indicators-KKeZmC6g.js} +30 -9
- package/dist/indicators.d.ts +2 -2
- package/dist/indicators.js +2 -2
- package/dist/kumo-charts.iife.js +7 -7
- package/dist/{module-DxdViSuj.d.ts → module-ma1-rklb.d.ts} +2 -2
- package/dist/{modules-RlaXjRWe.js → modules-D_E0wmaT.js} +1 -1
- package/dist/{price-line-BPw9VyW3.js → price-line-Ctf8YIXI.js} +77 -89
- package/dist/{price-line-CdM5YNlZ.d.ts → price-line-exqgokHI.d.ts} +3 -1
- package/dist/{price-lines-CaLOO6qa.js → price-lines-C9xony-Z.js} +1 -1
- package/dist/{registry-f-A949ov.js → registry-DpycnxXe.js} +8 -4
- package/dist/{replay-_1IoxPdh.js → replay-BglWO-Se.js} +3 -3
- package/dist/replay.d.ts +1 -1
- package/dist/replay.js +1 -1
- package/dist/{series-store-Brd46VuC.js → series-store-DwvvS42F.js} +3 -3
- package/dist/{time-BN0L-hLy.js → time-QUqwrKFO.js} +1 -1
- package/dist/{trading-CjKK5irF.js → trading-BY4NVox9.js} +38 -17
- package/dist/trading.d.ts +1 -1
- package/dist/trading.js +1 -1
- package/dist/{transforms-CtdsqwVk.js → transforms-D07qL7UT.js} +3 -3
- package/dist/{types-Bgjeo6w6.js → types-CEVVGcR9.js} +6 -2
- package/dist/{types-uoxTaiGv.js → types-CgerhCJ3.js} +3 -1
- package/dist/{types-xV6t4aad.d.ts → types-CrxgaGh5.d.ts} +14 -2
- package/dist/{validate-YdhjgZ6g.js → validate-B_z8rO0I.js} +4 -1
- package/dist/{value-format-BieuAeNK.js → value-format-DwSqOZkc.js} +6 -6
- package/dist/{values-Cw8XKIVE.js → values-CIb5EJ5-.js} +18 -10
- package/dist/{values-CtBpceAo.js → values-Hk0_RbLE.js} +5 -5
- package/dist/{volume-profile-ZWM9N-I-.js → volume-profile-Ci-AGdvp.js} +5 -8
- package/dist/volume-profile.d.ts +1 -1
- package/dist/volume-profile.js +1 -1
- package/dist/{watermark-qCkQw950.js → watermark--TmdUE3C.js} +3 -3
- package/dist/watermark.d.ts +1 -1
- package/dist/watermark.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { n as toTime, t as describeTime } from "./time-
|
|
3
|
-
import { f as checkMargins, n as checkColor, o as MAIN_PANE_ID, r as checkStyleColors } from "./color-
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import { i as identityBucketer, t as createBarFeed } from "./aggregator-
|
|
7
|
-
import { a as fixedMs, d as parseCalendar, f as sameCalendar, i as checkTimeframe, l as parseInterval, o as formatInterval, r as canBuildTimeframe, t as CalendarModel, u as sameInterval } from "./calendar-
|
|
8
|
-
import { a as CHART_TEXTS, o as checkTexts, t as Registry } from "./registry-
|
|
1
|
+
import { a as checkFunctionOrNull, c as checkOneOf, d as fieldsOf, l as checkString, m as fail, n as checkBoolean, o as checkNumber, p as describeValue, r as checkFields, s as checkObject, u as checkTimeZone } from "./validate-B_z8rO0I.js";
|
|
2
|
+
import { n as toTime, t as describeTime } from "./time-QUqwrKFO.js";
|
|
3
|
+
import { f as checkMargins, n as checkColor, o as MAIN_PANE_ID, r as checkStyleColors } from "./color-AsBx5M66.js";
|
|
4
|
+
import { i as deepMerge, n as LINE_STYLES, r as deepFreeze, t as LABEL_ANCHORS } from "./types-CgerhCJ3.js";
|
|
5
|
+
import { m as ChangeLog, n as BarsReader, t as BarStore } from "./bar-store-B4HFH1h6.js";
|
|
6
|
+
import { i as identityBucketer, t as createBarFeed } from "./aggregator-DFCDVoFt.js";
|
|
7
|
+
import { a as fixedMs, d as parseCalendar, f as sameCalendar, i as checkTimeframe, l as parseInterval, o as formatInterval, r as canBuildTimeframe, t as CalendarModel, u as sameInterval } from "./calendar-xZYfA5bX.js";
|
|
8
|
+
import { a as CHART_TEXTS, o as checkTexts, t as Registry } from "./registry-DpycnxXe.js";
|
|
9
9
|
import { t as PRICE_SOURCES } from "./types-BT7GXg-l.js";
|
|
10
10
|
//#region src/options/fields.ts
|
|
11
11
|
/** The fields of each section of the chart's options that holds settings, not entries by name. */
|
|
@@ -25,7 +25,9 @@ const SECTION_FIELDS = {
|
|
|
25
25
|
horizontal: true,
|
|
26
26
|
labels: true,
|
|
27
27
|
style: true,
|
|
28
|
-
snapToBars: true
|
|
28
|
+
snapToBars: true,
|
|
29
|
+
priceLines: true,
|
|
30
|
+
avoidLabels: true
|
|
29
31
|
}),
|
|
30
32
|
mainSeries: fieldsOf({
|
|
31
33
|
type: true,
|
|
@@ -48,7 +50,9 @@ const SECTION_FIELDS = {
|
|
|
48
50
|
margins: true,
|
|
49
51
|
precision: true,
|
|
50
52
|
formatter: true,
|
|
51
|
-
minWidth: true
|
|
53
|
+
minWidth: true,
|
|
54
|
+
pinLabels: true,
|
|
55
|
+
labelAnchor: true
|
|
52
56
|
}),
|
|
53
57
|
latestPrice: fieldsOf({
|
|
54
58
|
line: true,
|
|
@@ -158,6 +162,8 @@ function validateOptions(options) {
|
|
|
158
162
|
checkBoolean("options.crosshair.labels", options.crosshair.labels);
|
|
159
163
|
checkOneOf("options.crosshair.style", options.crosshair.style, LINE_STYLES);
|
|
160
164
|
checkBoolean("options.crosshair.snapToBars", options.crosshair.snapToBars);
|
|
165
|
+
checkFunctionOrNull("options.crosshair.priceLines", options.crosshair.priceLines);
|
|
166
|
+
checkBoolean("options.crosshair.avoidLabels", options.crosshair.avoidLabels);
|
|
161
167
|
checkString("options.mainSeries.type", options.mainSeries.type);
|
|
162
168
|
checkOneOf("options.mainSeries.source", options.mainSeries.source, PRICE_SOURCES);
|
|
163
169
|
checkFunctionOrNull("options.mainSeries.barColor", options.mainSeries.barColor);
|
|
@@ -191,6 +197,8 @@ function validateOptions(options) {
|
|
|
191
197
|
});
|
|
192
198
|
checkFunctionOrNull("options.priceScale.formatter", price.formatter);
|
|
193
199
|
checkNumber("options.priceScale.minWidth", price.minWidth, { min: 0 });
|
|
200
|
+
checkBoolean("options.priceScale.pinLabels", price.pinLabels);
|
|
201
|
+
checkOneOf("options.priceScale.labelAnchor", price.labelAnchor, LABEL_ANCHORS);
|
|
194
202
|
checkBoolean("options.latestPrice.line", options.latestPrice.line);
|
|
195
203
|
checkBoolean("options.latestPrice.label", options.latestPrice.label);
|
|
196
204
|
checkBoolean("options.latestPrice.countdown", options.latestPrice.countdown);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as toTime } from "./time-
|
|
3
|
-
import { l as IdSequence, n as checkColor } from "./color-
|
|
4
|
-
import {
|
|
5
|
-
import { c as unsetTexts, l as withTexts, o as checkTexts } from "./registry-
|
|
1
|
+
import { c as checkOneOf, d as fieldsOf, l as checkString, m as fail, n as checkBoolean, o as checkNumber, r as checkFields, s as checkObject, t as checkArray } from "./validate-B_z8rO0I.js";
|
|
2
|
+
import { n as toTime } from "./time-QUqwrKFO.js";
|
|
3
|
+
import { l as IdSequence, n as checkColor } from "./color-AsBx5M66.js";
|
|
4
|
+
import { i as deepMerge, n as LINE_STYLES, r as deepFreeze } from "./types-CgerhCJ3.js";
|
|
5
|
+
import { c as unsetTexts, l as withTexts, o as checkTexts } from "./registry-DpycnxXe.js";
|
|
6
6
|
import { t as PRICE_SOURCES } from "./types-BT7GXg-l.js";
|
|
7
7
|
import { a as font } from "./canvas-BFRISb50.js";
|
|
8
8
|
//#region src/drawings/style.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as withAlpha, l as IdSequence, n as checkColor } from "./color-
|
|
3
|
-
import { t as BarStore } from "./bar-store-
|
|
1
|
+
import { c as checkOneOf, d as fieldsOf, l as checkString, m as fail, n as checkBoolean, o as checkNumber, r as checkFields, t as checkArray } from "./validate-B_z8rO0I.js";
|
|
2
|
+
import { i as withAlpha, l as IdSequence, n as checkColor } from "./color-AsBx5M66.js";
|
|
3
|
+
import { t as BarStore } from "./bar-store-B4HFH1h6.js";
|
|
4
4
|
import { t as LruCache } from "./lru-cache-DUUNVfYO.js";
|
|
5
|
-
import { n as defineModule } from "./modules-
|
|
5
|
+
import { n as defineModule } from "./modules-D_E0wmaT.js";
|
|
6
6
|
//#region src/volume-profile/paint.ts
|
|
7
7
|
function profileColors(given, theme) {
|
|
8
8
|
return {
|
|
@@ -703,10 +703,7 @@ function fixedRangeVolumeProfile(options = {}) {
|
|
|
703
703
|
return edge <= tolerance ? {
|
|
704
704
|
part: "line",
|
|
705
705
|
distance: edge
|
|
706
|
-
} :
|
|
707
|
-
part: "body",
|
|
708
|
-
distance: 0
|
|
709
|
-
};
|
|
706
|
+
} : null;
|
|
710
707
|
},
|
|
711
708
|
handles: (geometry) => {
|
|
712
709
|
const range = rangeOf(geometry);
|
package/dist/volume-profile.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as VolumeProfileMode, a as VolumeProfileOptions, c as computeVolumeProfile, d as volumeProfileGrid, f as VolumeProfilesApi, g as VolumeProfileInput, h as VolumeProfile, i as VolumeProfileGrid, l as pointOfControl, m as volumeProfiles, n as fixedRangeVolumeProfile, o as VolumeProfileRow, p as VolumeProfilesModule, r as VolumeProfileData, s as checkVolumeProfileOptions, t as FixedRangeVolumeProfileOptions, u as valueAreaOf, v as VolumeProfilePlacement } from "./index-
|
|
1
|
+
import { _ as VolumeProfileMode, a as VolumeProfileOptions, c as computeVolumeProfile, d as volumeProfileGrid, f as VolumeProfilesApi, g as VolumeProfileInput, h as VolumeProfile, i as VolumeProfileGrid, l as pointOfControl, m as volumeProfiles, n as fixedRangeVolumeProfile, o as VolumeProfileRow, p as VolumeProfilesModule, r as VolumeProfileData, s as checkVolumeProfileOptions, t as FixedRangeVolumeProfileOptions, u as valueAreaOf, v as VolumeProfilePlacement } from "./index-BMRUiN6F.js";
|
|
2
2
|
export { type FixedRangeVolumeProfileOptions, type VolumeProfile, type VolumeProfileData, type VolumeProfileGrid, type VolumeProfileInput, type VolumeProfileMode, type VolumeProfileOptions, type VolumeProfilePlacement, type VolumeProfileRow, type VolumeProfilesApi, type VolumeProfilesModule, checkVolumeProfileOptions, computeVolumeProfile, fixedRangeVolumeProfile, pointOfControl, valueAreaOf, volumeProfileGrid, volumeProfiles };
|
package/dist/volume-profile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as checkVolumeProfileOptions, i as computeVolumeProfile, t as fixedRangeVolumeProfile, a as pointOfControl, o as valueAreaOf, s as volumeProfileGrid, n as volumeProfiles } from "./volume-profile-
|
|
1
|
+
export { r as checkVolumeProfileOptions, i as computeVolumeProfile, t as fixedRangeVolumeProfile, a as pointOfControl, o as valueAreaOf, s as volumeProfileGrid, n as volumeProfiles } from "./volume-profile-Ci-AGdvp.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as withAlpha, n as checkColor } from "./color-
|
|
1
|
+
import { d as fieldsOf, l as checkString, o as checkNumber, r as checkFields, t as checkArray } from "./validate-B_z8rO0I.js";
|
|
2
|
+
import { i as withAlpha, n as checkColor } from "./color-AsBx5M66.js";
|
|
3
3
|
import { a as font } from "./canvas-BFRISb50.js";
|
|
4
|
-
import { n as defineModule } from "./modules-
|
|
4
|
+
import { n as defineModule } from "./modules-D_E0wmaT.js";
|
|
5
5
|
//#region src/watermark/module.ts
|
|
6
6
|
const DEFAULT_SIZE = 40;
|
|
7
7
|
/** The height of a line, as a share of its font size. */
|
package/dist/watermark.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as watermark, n as WatermarkModule, r as WatermarkOptions, t as WatermarkLine } from "./index-
|
|
1
|
+
import { i as watermark, n as WatermarkModule, r as WatermarkOptions, t as WatermarkLine } from "./index-cuDsywlB.js";
|
|
2
2
|
export { type WatermarkLine, type WatermarkModule, type WatermarkOptions, watermark };
|
package/dist/watermark.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as watermark } from "./watermark
|
|
1
|
+
export { t as watermark } from "./watermark--TmdUE3C.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumo-charts/core",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "Framework-agnostic, high-performance Canvas trading chart library: a small core, and indicators, drawing tools, chart types, alerts, orders, markers, replay, volume profiles and a watermark as modules.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|