hyperprop-charting-library 0.1.120 → 0.1.121
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/hyperprop-charting-library.cjs +612 -347
- package/dist/hyperprop-charting-library.d.ts +25 -0
- package/dist/hyperprop-charting-library.js +612 -347
- package/dist/index.cjs +612 -347
- package/dist/index.d.cts +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +612 -347
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -29,6 +29,14 @@ interface ChartOptions {
|
|
|
29
29
|
candleColorEpsilon?: number;
|
|
30
30
|
autoScaleSmoothing?: number;
|
|
31
31
|
autoScaleIgnoreLatestCandle?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Momentum panning after a flick, with exponential friction. Defaults to
|
|
34
|
+
* enabled for touch/pen and disabled for mouse (TradingView behavior).
|
|
35
|
+
*/
|
|
36
|
+
kineticScroll?: {
|
|
37
|
+
touch?: boolean;
|
|
38
|
+
mouse?: boolean;
|
|
39
|
+
};
|
|
32
40
|
pinOutOfRangeLines?: boolean;
|
|
33
41
|
doubleClickEnabled?: boolean;
|
|
34
42
|
doubleClickAction?: "reset" | "placeLimitOrder";
|
|
@@ -186,6 +194,23 @@ interface IndicatorPlugin<TInputs extends Record<string, unknown> = Record<strin
|
|
|
186
194
|
paneHeightRatio?: number;
|
|
187
195
|
defaultInputs?: TInputs;
|
|
188
196
|
draw: (ctx: CanvasRenderingContext2D, renderContext: IndicatorRenderContext, inputs: TInputs) => void | IndicatorPaneRenderInfo;
|
|
197
|
+
/**
|
|
198
|
+
* Visible value range for overlay autoscale: the price scale expands so
|
|
199
|
+
* every reported range fits (e.g. Bollinger/VWAP bands never clip at the
|
|
200
|
+
* chart edge). `skipIndex` marks the live bar when the chart is configured
|
|
201
|
+
* to ignore it. Return null when the indicator has no visible values.
|
|
202
|
+
*/
|
|
203
|
+
getAutoscaleRange?: (data: Array<{
|
|
204
|
+
time: Date;
|
|
205
|
+
o: number;
|
|
206
|
+
h: number;
|
|
207
|
+
l: number;
|
|
208
|
+
c: number;
|
|
209
|
+
v?: number;
|
|
210
|
+
}>, startIndex: number, endIndex: number, inputs: TInputs, skipIndex: number) => {
|
|
211
|
+
min: number;
|
|
212
|
+
max: number;
|
|
213
|
+
} | null;
|
|
189
214
|
}
|
|
190
215
|
interface BuiltInIndicatorInfo {
|
|
191
216
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,14 @@ interface ChartOptions {
|
|
|
29
29
|
candleColorEpsilon?: number;
|
|
30
30
|
autoScaleSmoothing?: number;
|
|
31
31
|
autoScaleIgnoreLatestCandle?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Momentum panning after a flick, with exponential friction. Defaults to
|
|
34
|
+
* enabled for touch/pen and disabled for mouse (TradingView behavior).
|
|
35
|
+
*/
|
|
36
|
+
kineticScroll?: {
|
|
37
|
+
touch?: boolean;
|
|
38
|
+
mouse?: boolean;
|
|
39
|
+
};
|
|
32
40
|
pinOutOfRangeLines?: boolean;
|
|
33
41
|
doubleClickEnabled?: boolean;
|
|
34
42
|
doubleClickAction?: "reset" | "placeLimitOrder";
|
|
@@ -186,6 +194,23 @@ interface IndicatorPlugin<TInputs extends Record<string, unknown> = Record<strin
|
|
|
186
194
|
paneHeightRatio?: number;
|
|
187
195
|
defaultInputs?: TInputs;
|
|
188
196
|
draw: (ctx: CanvasRenderingContext2D, renderContext: IndicatorRenderContext, inputs: TInputs) => void | IndicatorPaneRenderInfo;
|
|
197
|
+
/**
|
|
198
|
+
* Visible value range for overlay autoscale: the price scale expands so
|
|
199
|
+
* every reported range fits (e.g. Bollinger/VWAP bands never clip at the
|
|
200
|
+
* chart edge). `skipIndex` marks the live bar when the chart is configured
|
|
201
|
+
* to ignore it. Return null when the indicator has no visible values.
|
|
202
|
+
*/
|
|
203
|
+
getAutoscaleRange?: (data: Array<{
|
|
204
|
+
time: Date;
|
|
205
|
+
o: number;
|
|
206
|
+
h: number;
|
|
207
|
+
l: number;
|
|
208
|
+
c: number;
|
|
209
|
+
v?: number;
|
|
210
|
+
}>, startIndex: number, endIndex: number, inputs: TInputs, skipIndex: number) => {
|
|
211
|
+
min: number;
|
|
212
|
+
max: number;
|
|
213
|
+
} | null;
|
|
189
214
|
}
|
|
190
215
|
interface BuiltInIndicatorInfo {
|
|
191
216
|
id: string;
|