@tradingaction/interactive 2.0.18 → 2.1.1
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/lib/Brush.d.ts +1 -1
- package/lib/ClickCallback.d.ts +1 -1
- package/lib/DrawingObjectSelector.d.ts +1 -1
- package/lib/EquidistantChannel.d.ts +1 -1
- package/lib/FibonacciRetracement.d.ts +1 -1
- package/lib/GannFan.d.ts +1 -1
- package/lib/InteractiveText.d.ts +1 -1
- package/lib/InteractiveYCoordinate.d.ts +1 -1
- package/lib/Rectangle.d.ts +1 -1
- package/lib/StandardDeviationChannel.d.ts +1 -1
- package/lib/TrendLine.d.ts +1 -1
- package/lib/ZoomButtons.d.ts +1 -1
- package/lib/ZoomButtons.js.map +1 -1
- package/lib/components/ChannelWithArea.d.ts +1 -1
- package/lib/components/ClickableCircle.d.ts +1 -1
- package/lib/components/ClickableShape.d.ts +1 -1
- package/lib/components/GannFan.d.ts +1 -1
- package/lib/components/HoverTextNearMouse.d.ts +1 -1
- package/lib/components/InteractiveRectangle.d.ts +1 -1
- package/lib/components/InteractiveStraightLine.d.ts +1 -1
- package/lib/components/InteractiveText.d.ts +1 -1
- package/lib/components/InteractiveYCoordinate.d.ts +1 -1
- package/lib/components/LinearRegressionChannelWithArea.d.ts +1 -1
- package/lib/components/MouseLocationIndicator.d.ts +1 -1
- package/lib/components/Text.d.ts +1 -1
- package/lib/wrapper/EachEquidistantChannel.d.ts +1 -1
- package/lib/wrapper/EachFibRetracement.d.ts +1 -1
- package/lib/wrapper/EachGannFan.d.ts +1 -1
- package/lib/wrapper/EachInteractiveYCoordinate.d.ts +1 -1
- package/lib/wrapper/EachLinearRegressionChannel.d.ts +1 -1
- package/lib/wrapper/EachRectangle.d.ts +1 -1
- package/lib/wrapper/EachText.d.ts +1 -1
- package/lib/wrapper/EachTrendLine.d.ts +1 -1
- package/package.json +4 -4
- package/src/ZoomButtons.tsx +2 -2
package/lib/Brush.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class Brush extends React.Component<BrushProps, BrushState> {
|
|
|
26
26
|
private zoomHappening?;
|
|
27
27
|
constructor(props: BrushProps);
|
|
28
28
|
terminate(): void;
|
|
29
|
-
render(): JSX.Element | null;
|
|
29
|
+
render(): React.JSX.Element | null;
|
|
30
30
|
private readonly drawOnCanvas;
|
|
31
31
|
private readonly handleZoomStart;
|
|
32
32
|
private readonly handleDrawSquare;
|
package/lib/ClickCallback.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class DrawingObjectSelector extends React.Component<DrawingObject
|
|
|
10
10
|
static defaultProps: {
|
|
11
11
|
enabled: boolean;
|
|
12
12
|
};
|
|
13
|
-
render(): JSX.Element;
|
|
13
|
+
render(): React.JSX.Element;
|
|
14
14
|
private readonly getInteraction;
|
|
15
15
|
private readonly handleClick;
|
|
16
16
|
private readonly handleDoubleClick;
|
|
@@ -64,7 +64,7 @@ export declare class EquidistantChannel extends React.Component<EquidistantChann
|
|
|
64
64
|
private getSelectionState;
|
|
65
65
|
private mouseMoved;
|
|
66
66
|
constructor(props: EquidistantChannelProps);
|
|
67
|
-
render(): JSX.Element;
|
|
67
|
+
render(): React.JSX.Element;
|
|
68
68
|
private readonly handleDragChannel;
|
|
69
69
|
private readonly handleDragChannelComplete;
|
|
70
70
|
private readonly handleStart;
|
|
@@ -73,7 +73,7 @@ export declare class FibonacciRetracement extends React.Component<FibonacciRetra
|
|
|
73
73
|
private saveNodeType;
|
|
74
74
|
private terminate;
|
|
75
75
|
constructor(props: FibonacciRetracementProps);
|
|
76
|
-
render(): JSX.Element;
|
|
76
|
+
render(): React.JSX.Element;
|
|
77
77
|
private readonly handleDoubleClick;
|
|
78
78
|
private readonly handleClickWhenHover;
|
|
79
79
|
private readonly handleClickOutside;
|
package/lib/GannFan.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export declare class GannFan extends React.Component<GannFanProps, GannFanState>
|
|
|
68
68
|
private saveNodeType;
|
|
69
69
|
private terminate;
|
|
70
70
|
constructor(props: GannFanProps);
|
|
71
|
-
render(): JSX.Element;
|
|
71
|
+
render(): React.JSX.Element;
|
|
72
72
|
private readonly handleEnd;
|
|
73
73
|
private readonly handleStart;
|
|
74
74
|
private readonly handleDrawFan;
|
package/lib/InteractiveText.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export declare class InteractiveText extends React.Component<InteractiveTextProp
|
|
|
57
57
|
private saveNodeType;
|
|
58
58
|
private terminate;
|
|
59
59
|
constructor(props: InteractiveTextProps);
|
|
60
|
-
render(): JSX.Element;
|
|
60
|
+
render(): React.JSX.Element;
|
|
61
61
|
private readonly handleDraw;
|
|
62
62
|
private readonly handleDragComplete;
|
|
63
63
|
private readonly handleDrag;
|
|
@@ -114,7 +114,7 @@ export declare class InteractiveYCoordinate extends React.Component<InteractiveY
|
|
|
114
114
|
private saveNodeType;
|
|
115
115
|
private terminate;
|
|
116
116
|
constructor(props: InteractiveYCoordinateProps);
|
|
117
|
-
render(): JSX.Element;
|
|
117
|
+
render(): React.JSX.Element;
|
|
118
118
|
private readonly handleDelete;
|
|
119
119
|
private readonly handleDragComplete;
|
|
120
120
|
private readonly handleDrag;
|
package/lib/Rectangle.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare class Rectangle extends React.Component<RectangleProps, Rectangle
|
|
|
76
76
|
private saveNodeType;
|
|
77
77
|
private terminate;
|
|
78
78
|
constructor(props: RectangleProps);
|
|
79
|
-
render(): JSX.Element;
|
|
79
|
+
render(): React.JSX.Element;
|
|
80
80
|
private readonly handleEnd;
|
|
81
81
|
private readonly handleStart;
|
|
82
82
|
private readonly handleDrawLine;
|
|
@@ -64,7 +64,7 @@ export declare class StandardDeviationChannel extends React.Component<StandardDe
|
|
|
64
64
|
private saveNodeType;
|
|
65
65
|
private terminate;
|
|
66
66
|
constructor(props: StandardDeviationChannelProps);
|
|
67
|
-
render(): JSX.Element;
|
|
67
|
+
render(): React.JSX.Element;
|
|
68
68
|
private handleEnd;
|
|
69
69
|
private readonly handleStart;
|
|
70
70
|
private readonly handleDrawLine;
|
package/lib/TrendLine.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export declare class TrendLine extends React.Component<TrendLineProps, TrendLine
|
|
|
74
74
|
private saveNodeType;
|
|
75
75
|
private terminate;
|
|
76
76
|
constructor(props: TrendLineProps);
|
|
77
|
-
render(): JSX.Element;
|
|
77
|
+
render(): React.JSX.Element;
|
|
78
78
|
private readonly handleEnd;
|
|
79
79
|
private readonly handleStart;
|
|
80
80
|
private readonly handleDrawLine;
|
package/lib/ZoomButtons.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare class ZoomButtons extends React.Component<ZoomButtonsProps> {
|
|
|
23
23
|
};
|
|
24
24
|
static contextType: React.Context<import("@tradingaction/core").ChartContextType>;
|
|
25
25
|
private interval?;
|
|
26
|
-
render(): JSX.Element;
|
|
26
|
+
render(): React.JSX.Element;
|
|
27
27
|
private readonly handleZoomIn;
|
|
28
28
|
private readonly handleZoomOut;
|
|
29
29
|
private readonly zoom;
|
package/lib/ZoomButtons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoomButtons.js","sourceRoot":"","sources":["../src/ZoomButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA2B;IAAlE;;QAsGqB,iBAAY,GAAG,GAAG,EAAE;YACjC,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,OAAO;aACV;YAED,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC,CAAC;QAEe,kBAAa,GAAG,GAAG,EAAE;YAClC,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,OAAO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AI;IACjB,cAAc,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE;IACL,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,CAAC;IACd,QAAQ,EAAE,SAAS;IACnB,cAAc,EAAE,GAAG;CACtB,CAAC;AAEY,uBAAW,GAAG,YAAY,CAAC"}
|
|
@@ -19,7 +19,7 @@ export declare class ClickableCircle extends React.Component<ClickableCircleProp
|
|
|
19
19
|
className: string;
|
|
20
20
|
show: boolean;
|
|
21
21
|
};
|
|
22
|
-
render(): JSX.Element | null;
|
|
22
|
+
render(): React.JSX.Element | null;
|
|
23
23
|
private readonly drawOnCanvas;
|
|
24
24
|
private readonly isHover;
|
|
25
25
|
private readonly helper;
|
|
@@ -26,7 +26,7 @@ export declare class ClickableShape extends React.Component<ClickableShapeProps>
|
|
|
26
26
|
strokeWidth: number;
|
|
27
27
|
};
|
|
28
28
|
private closeIcon;
|
|
29
|
-
render(): JSX.Element | null;
|
|
29
|
+
render(): React.JSX.Element | null;
|
|
30
30
|
private readonly drawOnCanvas;
|
|
31
31
|
private readonly isHover;
|
|
32
32
|
private readonly helper;
|
|
@@ -24,7 +24,7 @@ export declare class GannFan extends React.Component<GannFanProps> {
|
|
|
24
24
|
tolerance: number;
|
|
25
25
|
selected: boolean;
|
|
26
26
|
};
|
|
27
|
-
render(): JSX.Element;
|
|
27
|
+
render(): React.JSX.Element;
|
|
28
28
|
private readonly drawOnCanvas;
|
|
29
29
|
private readonly isHover;
|
|
30
30
|
private readonly getLineCoordinates;
|
|
@@ -26,7 +26,7 @@ export declare class HoverTextNearMouse extends React.Component<HoverTextNearMou
|
|
|
26
26
|
constructor(props: HoverTextNearMouseProps);
|
|
27
27
|
componentDidMount(): void;
|
|
28
28
|
componentDidUpdate(): void;
|
|
29
|
-
render(): JSX.Element | null;
|
|
29
|
+
render(): React.JSX.Element | null;
|
|
30
30
|
private readonly renderSVG;
|
|
31
31
|
private readonly getBgHeight;
|
|
32
32
|
private readonly getBgWidth;
|
|
@@ -31,7 +31,7 @@ export declare class InteractiveText extends React.Component<InteractiveTextProp
|
|
|
31
31
|
private calculateTextWidth;
|
|
32
32
|
private textWidth?;
|
|
33
33
|
componentDidUpdate(previousProps: InteractiveTextProps): void;
|
|
34
|
-
render(): JSX.Element;
|
|
34
|
+
render(): React.JSX.Element;
|
|
35
35
|
private readonly isHover;
|
|
36
36
|
private readonly drawOnCanvas;
|
|
37
37
|
private readonly helper;
|
|
@@ -39,7 +39,7 @@ export declare class InteractiveYCoordinate extends React.Component<InteractiveY
|
|
|
39
39
|
hovering: boolean;
|
|
40
40
|
};
|
|
41
41
|
private width;
|
|
42
|
-
render(): JSX.Element;
|
|
42
|
+
render(): React.JSX.Element;
|
|
43
43
|
private readonly drawOnCanvas;
|
|
44
44
|
private readonly isHover;
|
|
45
45
|
private readonly helper;
|
|
@@ -25,7 +25,7 @@ export declare class MouseLocationIndicator extends React.Component<MouseLocatio
|
|
|
25
25
|
disablePan: boolean;
|
|
26
26
|
};
|
|
27
27
|
private mutableState;
|
|
28
|
-
render(): JSX.Element;
|
|
28
|
+
render(): React.JSX.Element;
|
|
29
29
|
private readonly xy;
|
|
30
30
|
private readonly handleClick;
|
|
31
31
|
private readonly handleMouseDown;
|
package/lib/components/Text.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare class EachEquidistantChannel extends React.Component<EachEquidist
|
|
|
47
47
|
private isHover;
|
|
48
48
|
private saveNodeType;
|
|
49
49
|
constructor(props: EachEquidistantChannelProps);
|
|
50
|
-
render(): JSX.Element;
|
|
50
|
+
render(): React.JSX.Element;
|
|
51
51
|
private readonly getEdgeCircle;
|
|
52
52
|
private readonly handleChannelHeightChange;
|
|
53
53
|
private readonly handleLine1Edge2Drag;
|
|
@@ -69,7 +69,7 @@ export declare class EachFibRetracement extends React.Component<EachFibRetraceme
|
|
|
69
69
|
private isHover;
|
|
70
70
|
private saveNodeType;
|
|
71
71
|
constructor(props: EachFibRetracementProps);
|
|
72
|
-
render(): JSX.Element;
|
|
72
|
+
render(): React.JSX.Element;
|
|
73
73
|
private readonly handleEdge2Drag;
|
|
74
74
|
private readonly handleEdge1Drag;
|
|
75
75
|
private readonly handleLineNSResizeBottom;
|
|
@@ -70,7 +70,7 @@ export declare class EachGannFan extends React.Component<EachGannFanProps, EachG
|
|
|
70
70
|
private dragStart;
|
|
71
71
|
private saveNodeType;
|
|
72
72
|
constructor(props: EachGannFanProps);
|
|
73
|
-
render(): JSX.Element;
|
|
73
|
+
render(): React.JSX.Element;
|
|
74
74
|
private readonly getEdgeCircle;
|
|
75
75
|
private readonly handleLine1Edge2Drag;
|
|
76
76
|
private readonly handleLine1Edge1Drag;
|
|
@@ -40,7 +40,7 @@ export declare class EachInteractiveYCoordinate extends React.Component<EachInte
|
|
|
40
40
|
private isHover;
|
|
41
41
|
private saveNodeType;
|
|
42
42
|
constructor(props: EachInteractiveYCoordinateProps);
|
|
43
|
-
render(): JSX.Element;
|
|
43
|
+
render(): React.JSX.Element;
|
|
44
44
|
private readonly handleCloseIconHover;
|
|
45
45
|
private readonly handleHover;
|
|
46
46
|
private readonly handleDelete;
|
|
@@ -66,7 +66,7 @@ export declare class EachLinearRegressionChannel extends React.Component<EachLin
|
|
|
66
66
|
private isHover;
|
|
67
67
|
private saveNodeType;
|
|
68
68
|
constructor(props: EachLinearRegressionChannelProps);
|
|
69
|
-
render(): JSX.Element;
|
|
69
|
+
render(): React.JSX.Element;
|
|
70
70
|
private readonly handleHover;
|
|
71
71
|
private readonly handleEdge2Drag;
|
|
72
72
|
private readonly handleEdge1Drag;
|
|
@@ -72,7 +72,7 @@ export declare class EachRectangle extends React.Component<EachRectangleProps, E
|
|
|
72
72
|
private isHover;
|
|
73
73
|
private saveNodeType;
|
|
74
74
|
constructor(props: EachRectangleProps);
|
|
75
|
-
render(): JSX.Element;
|
|
75
|
+
render(): React.JSX.Element;
|
|
76
76
|
private readonly handleHover;
|
|
77
77
|
private readonly handleEdge2Drag;
|
|
78
78
|
private readonly handleDoubleClickWhenHover;
|
|
@@ -51,7 +51,7 @@ export declare class EachText extends React.Component<EachTextProps, EachTextSta
|
|
|
51
51
|
private isHover;
|
|
52
52
|
private saveNodeType;
|
|
53
53
|
constructor(props: EachTextProps);
|
|
54
|
-
render(): JSX.Element;
|
|
54
|
+
render(): React.JSX.Element;
|
|
55
55
|
private readonly handleHover;
|
|
56
56
|
private readonly handleDrag;
|
|
57
57
|
private readonly handleDragStart;
|
|
@@ -67,7 +67,7 @@ export declare class EachTrendLine extends React.Component<EachTrendLineProps, E
|
|
|
67
67
|
private isHover;
|
|
68
68
|
private saveNodeType;
|
|
69
69
|
constructor(props: EachTrendLineProps);
|
|
70
|
-
render(): JSX.Element;
|
|
70
|
+
render(): React.JSX.Element;
|
|
71
71
|
private readonly handleHover;
|
|
72
72
|
private readonly handleEdge2Drag;
|
|
73
73
|
private readonly handleDoubleClickWhenHover;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradingaction/interactive",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Interactive features for react-financial-charts",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"watch": "tsc -p tsconfig.json --watch --preserveWatchOutput"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tradingaction/coordinates": "^2.
|
|
42
|
-
"@tradingaction/core": "^2.
|
|
41
|
+
"@tradingaction/coordinates": "^2.1.1",
|
|
42
|
+
"@tradingaction/core": "^2.1.1",
|
|
43
43
|
"d3-array": "^2.9.1",
|
|
44
44
|
"d3-format": "^2.0.0",
|
|
45
45
|
"d3-interpolate": "^2.0.1",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
50
50
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "7491d9931380aafbdf99dfbdb06e1e2705c99fb9"
|
|
53
53
|
}
|
package/src/ZoomButtons.tsx
CHANGED
|
@@ -31,7 +31,7 @@ export class ZoomButtons extends React.Component<ZoomButtonsProps> {
|
|
|
31
31
|
private interval?: number;
|
|
32
32
|
|
|
33
33
|
public render() {
|
|
34
|
-
const { chartConfig } = this.context;
|
|
34
|
+
const { chartConfig } = this.context as any;
|
|
35
35
|
|
|
36
36
|
const { width, height } = chartConfig;
|
|
37
37
|
|
|
@@ -133,7 +133,7 @@ export class ZoomButtons extends React.Component<ZoomButtonsProps> {
|
|
|
133
133
|
};
|
|
134
134
|
|
|
135
135
|
private readonly zoom = (direction: number) => {
|
|
136
|
-
const { xAxisZoom, xScale, plotData, xAccessor } = this.context;
|
|
136
|
+
const { xAxisZoom, xScale, plotData, xAccessor } = this.context as any;
|
|
137
137
|
|
|
138
138
|
const cx = xScale(xAccessor(last(plotData)));
|
|
139
139
|
|