@pipsend/charts 2.3.11 → 2.3.13
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 +143 -38
- package/dist/pipsend-charts.production.mjs +2 -2
- package/dist/pipsend-charts.standalone.development.js +143 -38
- package/dist/pipsend-charts.standalone.development.mjs +143 -38
- package/dist/pipsend-charts.standalone.production.js +2 -2
- package/dist/pipsend-charts.standalone.production.mjs +2 -2
- package/dist/typings.d.ts +19 -3
- package/package.json +1 -1
package/dist/typings.d.ts
CHANGED
|
@@ -1510,6 +1510,9 @@ export declare class TextTool extends DrawingToolBase {
|
|
|
1510
1510
|
*/
|
|
1511
1511
|
private _hitTestPrimitive;
|
|
1512
1512
|
hitTest(x: number, y: number): boolean;
|
|
1513
|
+
private _tailSize;
|
|
1514
|
+
private _boxOrigin;
|
|
1515
|
+
private _traceBox;
|
|
1513
1516
|
hitTestEndpoint(x: number, y: number): "anchor" | null;
|
|
1514
1517
|
startDrag(target: "anchor" | "body", grab: DragAnchor): void;
|
|
1515
1518
|
stopDrag(): void;
|
|
@@ -6673,7 +6676,10 @@ export interface RectangleToolOptions extends DrawingToolOptions {
|
|
|
6673
6676
|
borderStyle?: "solid" | "dashed" | "dotted";
|
|
6674
6677
|
showLabel?: boolean;
|
|
6675
6678
|
labelText?: string;
|
|
6676
|
-
labelPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "center";
|
|
6679
|
+
labelPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "center" | "left" | "right";
|
|
6680
|
+
labelColor?: string;
|
|
6681
|
+
labelBackgroundColor?: string;
|
|
6682
|
+
labelFontSize?: number;
|
|
6677
6683
|
onUpdate?: () => void;
|
|
6678
6684
|
onRemove?: () => void;
|
|
6679
6685
|
}
|
|
@@ -7259,6 +7265,9 @@ export interface TextToolOptions extends DrawingToolOptions {
|
|
|
7259
7265
|
borderWidth?: number;
|
|
7260
7266
|
textAlign?: "left" | "center" | "right";
|
|
7261
7267
|
maxWidth?: number;
|
|
7268
|
+
anchor?: TextToolAnchor;
|
|
7269
|
+
pointer?: boolean;
|
|
7270
|
+
borderRadius?: number;
|
|
7262
7271
|
onUpdate?: () => void;
|
|
7263
7272
|
onRemove?: () => void;
|
|
7264
7273
|
onTextChange?: (text: string) => void;
|
|
@@ -8040,9 +8049,10 @@ export type SeriesMarkerPricePosition = "atPriceTop" | "atPriceBottom" | "atPric
|
|
|
8040
8049
|
*
|
|
8041
8050
|
* `tag` draws the text inside a rounded bubble with a pointer aimed at the
|
|
8042
8051
|
* anchor, which is what trading platforms use for BUY/SELL callouts. The other
|
|
8043
|
-
* shapes draw the text next to the shape instead.
|
|
8052
|
+
* shapes draw the text next to the shape instead. `xcross` is a thin ×, the
|
|
8053
|
+
* usual mark for a signal that was cancelled or expired.
|
|
8044
8054
|
*/
|
|
8045
|
-
export type SeriesMarkerShape = "circle" | "square" | "arrowUp" | "arrowDown" | "tag";
|
|
8055
|
+
export type SeriesMarkerShape = "circle" | "square" | "arrowUp" | "arrowDown" | "tag" | "xcross";
|
|
8046
8056
|
/**
|
|
8047
8057
|
* The visual stacking order for the markers within the chart.
|
|
8048
8058
|
*
|
|
@@ -8073,6 +8083,12 @@ export type SessionPeriod = "daily" | "weekly" | "monthly";
|
|
|
8073
8083
|
* A custom function used to handle changes to the time scale's size.
|
|
8074
8084
|
*/
|
|
8075
8085
|
export type SizeChangeEventHandler = (width: number, height: number) => void;
|
|
8086
|
+
/**
|
|
8087
|
+
* Where the `time`/`price` point sits on the label. `top-left` hangs the box below and to the
|
|
8088
|
+
* right of the point; `left`, `right` and `center` centre it on the price, the way a price label
|
|
8089
|
+
* at the end of a line reads. `pointer` adds a tail from the box to the point for `left`/`right`.
|
|
8090
|
+
*/
|
|
8091
|
+
export type TextToolAnchor = "top-left" | "left" | "right" | "center";
|
|
8076
8092
|
/**
|
|
8077
8093
|
* The `TickMarkFormatter` is used to customize tick mark labels on the time scale.
|
|
8078
8094
|
*
|