@funnest/charts 0.6.7 → 0.6.9
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/dist/index.js
CHANGED
|
@@ -1260,6 +1260,7 @@ var BUILTIN_DRAWINGS = [
|
|
|
1260
1260
|
type: "fibonacci",
|
|
1261
1261
|
name: { ko: "\uD53C\uBCF4\uB098\uCE58 \uB418\uB3CC\uB9BC", en: "Fib retracement" },
|
|
1262
1262
|
group: "fib",
|
|
1263
|
+
section: { ko: "\uD53C\uBCF4\uB098\uCE58", en: "Fibonacci" },
|
|
1263
1264
|
clicks: 2,
|
|
1264
1265
|
distance: (g, x, y) => {
|
|
1265
1266
|
const [x1, y1] = p0(g);
|
|
@@ -77,6 +77,11 @@ export interface IndicatorDefinition {
|
|
|
77
77
|
defaults: IndicatorParams;
|
|
78
78
|
title(params: IndicatorParams): string;
|
|
79
79
|
compute(bars: readonly Bar[], params: IndicatorParams): IndicatorOutput;
|
|
80
|
+
/**
|
|
81
|
+
* Left out of the indicator picker: added only from code (e.g. an app's user scripts, whose
|
|
82
|
+
* params say which script). Charts that already have it show and save it as usual.
|
|
83
|
+
*/
|
|
84
|
+
hidden?: boolean;
|
|
80
85
|
}
|
|
81
86
|
/** Distinct line colors that avoid the up/down candle colors. */
|
|
82
87
|
export declare const SERIES_COLORS: string[];
|
|
@@ -45,6 +45,11 @@ export interface DrawingDefinition {
|
|
|
45
45
|
icon?: string;
|
|
46
46
|
/** Tools with the same group share one drawing-bar button with a menu. Default: the type. */
|
|
47
47
|
group?: string;
|
|
48
|
+
/**
|
|
49
|
+
* A heading in that menu (피보나치, 갠, 엘리어트 파동…): consecutive tools with the same section
|
|
50
|
+
* are listed under it, with a divider between sections. Default: no heading.
|
|
51
|
+
*/
|
|
52
|
+
section?: Record<Locale, string>;
|
|
48
53
|
/** Clicks (or drag ends) needed to place it. */
|
|
49
54
|
clicks: number;
|
|
50
55
|
/**
|