@pipsend/charts 2.3.4 → 2.3.11
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/pipsend-charts.development.mjs +171 -45
- package/dist/pipsend-charts.production.mjs +2 -2
- package/dist/pipsend-charts.standalone.development.js +171 -45
- package/dist/pipsend-charts.standalone.development.mjs +171 -45
- package/dist/pipsend-charts.standalone.production.js +2 -2
- package/dist/pipsend-charts.standalone.production.mjs +2 -2
- package/dist/typings.d.ts +46 -8
- package/package.json +1 -1
package/dist/typings.d.ts
CHANGED
|
@@ -313,14 +313,6 @@ export declare class CrossLineTool extends DrawingToolBase {
|
|
|
313
313
|
remove(): void;
|
|
314
314
|
protected _serializeShape(): SerializedDrawingTool;
|
|
315
315
|
}
|
|
316
|
-
/**
|
|
317
|
-
* A price line that can be dragged and clicked.
|
|
318
|
-
*
|
|
319
|
-
* Input is not handled here: every line on a chart shares a single
|
|
320
|
-
* TradingLineController, which is what guarantees that one gesture moves one
|
|
321
|
-
* line. Hit testing comes from the engine — the line's id travels as the price
|
|
322
|
-
* line's `externalId` — so the hit area matches what is drawn.
|
|
323
|
-
*/
|
|
324
316
|
export declare class DraggablePriceLine implements ControllableLine {
|
|
325
317
|
private readonly _chart;
|
|
326
318
|
private readonly _series;
|
|
@@ -336,6 +328,11 @@ export declare class DraggablePriceLine implements ControllableLine {
|
|
|
336
328
|
isDraggable(): boolean;
|
|
337
329
|
isClickable(): boolean;
|
|
338
330
|
setHovered(hovered: boolean): void;
|
|
331
|
+
/**
|
|
332
|
+
* The engine draws this one, so there is no pane view to ask: a press within
|
|
333
|
+
* the line's own grab strip counts as a hit.
|
|
334
|
+
*/
|
|
335
|
+
hitTestAt(x: number, y: number, slop?: number): unknown;
|
|
339
336
|
priceAt(paneY: number): number | null;
|
|
340
337
|
beginDrag(): void;
|
|
341
338
|
dragTo(price: number): void;
|
|
@@ -389,6 +386,7 @@ export declare class DrawingToolsManager {
|
|
|
389
386
|
private _mouseMoveHandler;
|
|
390
387
|
private _pointerDownHandler;
|
|
391
388
|
private _pointerUpHandler;
|
|
389
|
+
private _pointerMoveHandler;
|
|
392
390
|
private _pointerCancelHandler;
|
|
393
391
|
private _lostCaptureHandler;
|
|
394
392
|
private _windowPointerUpHandler;
|
|
@@ -542,6 +540,12 @@ export declare class DrawingToolsManager {
|
|
|
542
540
|
*/
|
|
543
541
|
private _findToolByExternalId;
|
|
544
542
|
private _handlePointerDown;
|
|
543
|
+
/**
|
|
544
|
+
* The drag reads the crosshair, which touch never moves: its move handler
|
|
545
|
+
* only tries to pan, and the drag has just turned panning off. So touch is
|
|
546
|
+
* driven straight from the pointer instead.
|
|
547
|
+
*/
|
|
548
|
+
private _handlePointerMove;
|
|
545
549
|
private _handlePointerUp;
|
|
546
550
|
/** Ends the drag when capture is lost without a pointerup ever arriving. */
|
|
547
551
|
private _handleLostPointerCapture;
|
|
@@ -1161,6 +1165,7 @@ export declare class PositionLine implements ISeriesPrimitive, ControllableLine
|
|
|
1161
1165
|
* of jumping to sit under it — which matters most when the label has been
|
|
1162
1166
|
* fanned away from its own line.
|
|
1163
1167
|
*/
|
|
1168
|
+
hitTestAt(x: number, y: number, slop?: number): unknown;
|
|
1164
1169
|
dragAnchorY(): number | null;
|
|
1165
1170
|
beginDrag(): void;
|
|
1166
1171
|
dragTo(price: number): void;
|
|
@@ -3300,6 +3305,12 @@ export interface ControllableLine {
|
|
|
3300
3305
|
* the pointer and that point instead of snapping the line under the cursor.
|
|
3301
3306
|
*/
|
|
3302
3307
|
dragAnchorY?(): number | null;
|
|
3308
|
+
/**
|
|
3309
|
+
* Optional. What sits at this pane point, as the id the hover would have
|
|
3310
|
+
* reported, or null. A touch has no hover — the press is the first event —
|
|
3311
|
+
* so it resolves the hit itself.
|
|
3312
|
+
*/
|
|
3313
|
+
hitTestAt?(x: number, y: number, slop?: number): unknown;
|
|
3303
3314
|
priceAt(paneY: number): number | null;
|
|
3304
3315
|
beginDrag(): void;
|
|
3305
3316
|
dragTo(price: number): void;
|
|
@@ -4376,6 +4387,14 @@ export interface IHorzScaleBehavior<HorzScaleItem> {
|
|
|
4376
4387
|
* @returns string
|
|
4377
4388
|
*/
|
|
4378
4389
|
formatTickmark(item: TickMark, localizationOptions: LocalizationOptions<HorzScaleItem>): string;
|
|
4390
|
+
/**
|
|
4391
|
+
* Whether a tickmark may be shown at all. Behaviours without it allow every mark.
|
|
4392
|
+
*
|
|
4393
|
+
* @param item - tickmark item
|
|
4394
|
+
* @param barsPerMark - how many bars apart marks must be at the current zoom
|
|
4395
|
+
* @returns false to leave the tickmark out
|
|
4396
|
+
*/
|
|
4397
|
+
allowsTickMark?(item: TickMark, barsPerMark: number): boolean;
|
|
4379
4398
|
/**
|
|
4380
4399
|
* Returns the maximum tickmark weight value for the specified tickmarks on the time scale.
|
|
4381
4400
|
*
|
|
@@ -6590,6 +6609,14 @@ export interface PriceScaleOptions {
|
|
|
6590
6609
|
* @defaultValue false
|
|
6591
6610
|
*/
|
|
6592
6611
|
ensureEdgeTickMarksVisible: boolean;
|
|
6612
|
+
/**
|
|
6613
|
+
* Vertical room each price label keeps, as a multiple of the font height.
|
|
6614
|
+
* Lower values fit more prices onto the scale. Around 1.2 they start to
|
|
6615
|
+
* touch.
|
|
6616
|
+
*
|
|
6617
|
+
* @defaultValue 2.5
|
|
6618
|
+
*/
|
|
6619
|
+
tickMarkSpacing: number;
|
|
6593
6620
|
}
|
|
6594
6621
|
export interface PriceVolumeBin {
|
|
6595
6622
|
priceLevel: number;
|
|
@@ -7346,6 +7373,17 @@ export interface TimeScaleOptions extends HorzScaleOptions {
|
|
|
7346
7373
|
* @defaultValue `undefined`
|
|
7347
7374
|
*/
|
|
7348
7375
|
tickMarkFormatter?: TickMarkFormatter;
|
|
7376
|
+
/**
|
|
7377
|
+
* Decides which times may carry a tick mark, and with it a vertical grid line.
|
|
7378
|
+
* Times it rejects never get one; the rest are thinned by weight and zoom as usual.
|
|
7379
|
+
*
|
|
7380
|
+
* `barsPerMark` is how many bars apart two marks must be at the current zoom for
|
|
7381
|
+
* their labels not to overlap, so a filter can pick a regular grid that fits,
|
|
7382
|
+
* e.g. every 10 minutes when every 2 would crowd the axis.
|
|
7383
|
+
*
|
|
7384
|
+
* @defaultValue `undefined`
|
|
7385
|
+
*/
|
|
7386
|
+
tickMarkFilter?: (time: Time, tickMarkType: TickMarkType, barsPerMark: number) => boolean;
|
|
7349
7387
|
}
|
|
7350
7388
|
/**
|
|
7351
7389
|
* Represents a point on the time scale
|