@tradingaction/core 2.0.0 → 2.0.2

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.
Files changed (57) hide show
  1. package/LICENSE +24 -24
  2. package/README.md +5 -5
  3. package/lib/CanvasContainer.d.ts +19 -19
  4. package/lib/CanvasContainer.js +27 -27
  5. package/lib/Chart.d.ts +32 -32
  6. package/lib/Chart.js +56 -56
  7. package/lib/Chart.js.map +1 -1
  8. package/lib/ChartCanvas.d.ts +235 -235
  9. package/lib/ChartCanvas.js +770 -770
  10. package/lib/ChartCanvas.js.map +1 -1
  11. package/lib/EventCapture.d.ts +131 -131
  12. package/lib/EventCapture.js +488 -488
  13. package/lib/GenericChartComponent.d.ts +21 -21
  14. package/lib/GenericChartComponent.js +74 -74
  15. package/lib/GenericComponent.d.ts +81 -81
  16. package/lib/GenericComponent.js +354 -354
  17. package/lib/GenericComponent.js.map +1 -1
  18. package/lib/MoreProps.d.ts +16 -16
  19. package/lib/MoreProps.js +1 -1
  20. package/lib/index.d.ts +7 -7
  21. package/lib/index.js +7 -7
  22. package/lib/useEvent.d.ts +1 -1
  23. package/lib/useEvent.js +12 -12
  24. package/lib/utils/ChartDataUtil.d.ts +49 -49
  25. package/lib/utils/ChartDataUtil.js +204 -204
  26. package/lib/utils/PureComponent.d.ts +4 -4
  27. package/lib/utils/PureComponent.js +9 -9
  28. package/lib/utils/accumulatingWindow.d.ts +15 -15
  29. package/lib/utils/accumulatingWindow.js +97 -97
  30. package/lib/utils/barWidth.d.ts +15 -15
  31. package/lib/utils/barWidth.js +26 -26
  32. package/lib/utils/closestItem.d.ts +5 -5
  33. package/lib/utils/closestItem.js +44 -44
  34. package/lib/utils/evaluator.d.ts +7 -7
  35. package/lib/utils/evaluator.js +93 -93
  36. package/lib/utils/identity.d.ts +1 -1
  37. package/lib/utils/identity.js +1 -1
  38. package/lib/utils/index.d.ts +46 -46
  39. package/lib/utils/index.js +125 -125
  40. package/lib/utils/noop.d.ts +1 -1
  41. package/lib/utils/noop.js +2 -2
  42. package/lib/utils/shallowEqual.d.ts +1 -1
  43. package/lib/utils/shallowEqual.js +21 -21
  44. package/lib/utils/slidingWindow.d.ts +19 -19
  45. package/lib/utils/slidingWindow.js +108 -108
  46. package/lib/utils/strokeDasharray.d.ts +3 -3
  47. package/lib/utils/strokeDasharray.js +36 -36
  48. package/lib/utils/zipper.d.ts +7 -7
  49. package/lib/utils/zipper.js +35 -35
  50. package/lib/zoom/index.d.ts +1 -1
  51. package/lib/zoom/index.js +1 -1
  52. package/lib/zoom/zoomBehavior.d.ts +10 -10
  53. package/lib/zoom/zoomBehavior.js +17 -17
  54. package/package.json +2 -2
  55. package/src/Chart.tsx +2 -2
  56. package/src/ChartCanvas.tsx +1 -1
  57. package/src/GenericComponent.tsx +1 -0
package/LICENSE CHANGED
@@ -1,24 +1,24 @@
1
- The MIT License (MIT)
2
- https://github.com/reactivemarkets/react-financial-charts
3
-
4
- Copyright (c) 2015-2018 Ragu Ramaswamy
5
- Copyright (c) 2016 Julien Renaux
6
- Copyright (c) 2019 Reactive Markets
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+ https://github.com/reactivemarkets/react-financial-charts
3
+
4
+ Copyright (c) 2015-2018 Ragu Ramaswamy
5
+ Copyright (c) 2016 Julien Renaux
6
+ Copyright (c) 2019 Reactive Markets
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # Axes
2
-
3
- ```bash
4
- npm i @react-financial-charts/axes
5
- ```
1
+ # Axes
2
+
3
+ ```bash
4
+ npm i @tradingaction/axes
5
+ ```
@@ -1,19 +1,19 @@
1
- import * as React from "react";
2
- export interface ICanvasContexts {
3
- readonly bg?: CanvasRenderingContext2D;
4
- readonly axes?: CanvasRenderingContext2D;
5
- readonly mouseCoord?: CanvasRenderingContext2D;
6
- }
7
- export interface CanvasContainerProps {
8
- readonly height: number;
9
- readonly ratio: number;
10
- readonly style?: React.CSSProperties;
11
- readonly width: number;
12
- }
13
- export declare class CanvasContainer extends React.PureComponent<CanvasContainerProps> {
14
- private readonly bgRef;
15
- private readonly axesRef;
16
- private readonly mouseRef;
17
- getCanvasContexts(): ICanvasContexts;
18
- render(): JSX.Element;
19
- }
1
+ import * as React from "react";
2
+ export interface ICanvasContexts {
3
+ readonly bg?: CanvasRenderingContext2D;
4
+ readonly axes?: CanvasRenderingContext2D;
5
+ readonly mouseCoord?: CanvasRenderingContext2D;
6
+ }
7
+ export interface CanvasContainerProps {
8
+ readonly height: number;
9
+ readonly ratio: number;
10
+ readonly style?: React.CSSProperties;
11
+ readonly width: number;
12
+ }
13
+ export declare class CanvasContainer extends React.PureComponent<CanvasContainerProps> {
14
+ private readonly bgRef;
15
+ private readonly axesRef;
16
+ private readonly mouseRef;
17
+ getCanvasContexts(): ICanvasContexts;
18
+ render(): JSX.Element;
19
+ }
@@ -1,28 +1,28 @@
1
- import * as React from "react";
2
- export class CanvasContainer extends React.PureComponent {
3
- constructor() {
4
- super(...arguments);
5
- this.bgRef = React.createRef();
6
- this.axesRef = React.createRef();
7
- this.mouseRef = React.createRef();
8
- }
9
- getCanvasContexts() {
10
- var _a, _b, _c, _d, _e, _f;
11
- return {
12
- bg: (_b = (_a = this.bgRef.current) === null || _a === void 0 ? void 0 : _a.getContext("2d")) !== null && _b !== void 0 ? _b : undefined,
13
- axes: (_d = (_c = this.axesRef.current) === null || _c === void 0 ? void 0 : _c.getContext("2d")) !== null && _d !== void 0 ? _d : undefined,
14
- mouseCoord: (_f = (_e = this.mouseRef.current) === null || _e === void 0 ? void 0 : _e.getContext("2d")) !== null && _f !== void 0 ? _f : undefined,
15
- };
16
- }
17
- render() {
18
- const { height, ratio, style, width } = this.props;
19
- const adjustedWidth = width * ratio;
20
- const adjustedHeight = height * ratio;
21
- const canvasStyle = { position: "absolute", width, height };
22
- return (React.createElement("div", { style: Object.assign(Object.assign({}, style), { position: "absolute" }) },
23
- React.createElement("canvas", { ref: this.bgRef, width: adjustedWidth, height: adjustedHeight, style: canvasStyle }),
24
- React.createElement("canvas", { ref: this.axesRef, width: adjustedWidth, height: adjustedHeight, style: canvasStyle }),
25
- React.createElement("canvas", { ref: this.mouseRef, width: adjustedWidth, height: adjustedHeight, style: canvasStyle })));
26
- }
27
- }
1
+ import * as React from "react";
2
+ export class CanvasContainer extends React.PureComponent {
3
+ constructor() {
4
+ super(...arguments);
5
+ this.bgRef = React.createRef();
6
+ this.axesRef = React.createRef();
7
+ this.mouseRef = React.createRef();
8
+ }
9
+ getCanvasContexts() {
10
+ var _a, _b, _c, _d, _e, _f;
11
+ return {
12
+ bg: (_b = (_a = this.bgRef.current) === null || _a === void 0 ? void 0 : _a.getContext("2d")) !== null && _b !== void 0 ? _b : undefined,
13
+ axes: (_d = (_c = this.axesRef.current) === null || _c === void 0 ? void 0 : _c.getContext("2d")) !== null && _d !== void 0 ? _d : undefined,
14
+ mouseCoord: (_f = (_e = this.mouseRef.current) === null || _e === void 0 ? void 0 : _e.getContext("2d")) !== null && _f !== void 0 ? _f : undefined,
15
+ };
16
+ }
17
+ render() {
18
+ const { height, ratio, style, width } = this.props;
19
+ const adjustedWidth = width * ratio;
20
+ const adjustedHeight = height * ratio;
21
+ const canvasStyle = { position: "absolute", width, height };
22
+ return (React.createElement("div", { style: Object.assign(Object.assign({}, style), { position: "absolute" }) },
23
+ React.createElement("canvas", { ref: this.bgRef, width: adjustedWidth, height: adjustedHeight, style: canvasStyle }),
24
+ React.createElement("canvas", { ref: this.axesRef, width: adjustedWidth, height: adjustedHeight, style: canvasStyle }),
25
+ React.createElement("canvas", { ref: this.mouseRef, width: adjustedWidth, height: adjustedHeight, style: canvasStyle })));
26
+ }
27
+ }
28
28
  //# sourceMappingURL=CanvasContainer.js.map
package/lib/Chart.d.ts CHANGED
@@ -1,32 +1,32 @@
1
- import { ScaleContinuousNumeric } from "d3-scale";
2
- import * as React from "react";
3
- import { ChartCanvasContextType } from "./ChartCanvas";
4
- import type { ChartConfig } from "./utils/ChartDataUtil";
5
- export type ChartContextType = Omit<ChartCanvasContextType<number | Date>, "chartConfig"> & {
6
- chartConfig: ChartConfig;
7
- };
8
- export declare const ChartContext: React.Context<ChartContextType>;
9
- export interface ChartProps {
10
- readonly flipYScale?: boolean;
11
- readonly height?: number;
12
- readonly id: number | string;
13
- readonly onContextMenu?: (event: React.MouseEvent, moreProps: any) => void;
14
- readonly onDoubleClick?: (event: React.MouseEvent, moreProps: any) => void;
15
- readonly origin?: number[] | ((width: number, height: number) => number[]);
16
- readonly padding?: number | {
17
- top: number;
18
- bottom: number;
19
- };
20
- readonly yExtents?: number[] | ((data: any) => number) | ((data: any) => number[]);
21
- readonly yExtentsCalculator?: (options: {
22
- plotData: any[];
23
- xDomain: any;
24
- xAccessor: any;
25
- displayXAccessor: any;
26
- fullData: any[];
27
- }) => number[];
28
- readonly yPan?: boolean;
29
- readonly yPanEnabled?: boolean;
30
- readonly yScale?: ScaleContinuousNumeric<number, number>;
31
- }
32
- export declare const Chart: React.MemoExoticComponent<(props: React.PropsWithChildren<ChartProps>) => JSX.Element>;
1
+ import { ScaleContinuousNumeric } from "d3-scale";
2
+ import * as React from "react";
3
+ import { ChartCanvasContextType } from "./ChartCanvas";
4
+ import type { ChartConfig } from "./utils/ChartDataUtil";
5
+ export type ChartContextType = Omit<ChartCanvasContextType<number | Date>, "chartConfig"> & {
6
+ chartConfig: ChartConfig;
7
+ };
8
+ export declare const ChartContext: React.Context<ChartContextType>;
9
+ export interface ChartProps {
10
+ readonly flipYScale?: boolean;
11
+ readonly height?: number;
12
+ readonly id: number | string;
13
+ readonly onContextMenu?: (event: React.MouseEvent, moreProps: any) => void;
14
+ readonly onDoubleClick?: (event: React.MouseEvent, moreProps: any) => void;
15
+ readonly origin?: number[] | ((width: number, height: number) => number[]);
16
+ readonly padding?: number | {
17
+ top: number;
18
+ bottom: number;
19
+ };
20
+ readonly yExtents?: number[] | ((data: any) => number) | ((data: any) => number[]);
21
+ readonly yExtentsCalculator?: (options: {
22
+ plotData: any[];
23
+ xDomain: any;
24
+ xAccessor: any;
25
+ displayXAccessor: any;
26
+ fullData: any[];
27
+ }) => number[];
28
+ readonly yPan?: boolean;
29
+ readonly yPanEnabled?: boolean;
30
+ readonly yScale?: ScaleContinuousNumeric<number, number>;
31
+ }
32
+ export declare const Chart: React.MemoExoticComponent<(props: React.PropsWithChildren<ChartProps>) => JSX.Element>;
package/lib/Chart.js CHANGED
@@ -1,57 +1,57 @@
1
- import * as React from "react";
2
- import { ChartCanvasContext, chartCanvasContextDefaultValue } from "./ChartCanvas";
3
- export const ChartContext = React.createContext(Object.assign(Object.assign({}, chartCanvasContextDefaultValue), {
4
- // @ts-ignore
5
- chartConfig: {}, chartId: 0 }));
6
- export const Chart = React.memo((props) => {
7
- const {
8
- // flipYScale = false,
9
- id = 0,
10
- // origin = [0, 0],
11
- // padding = 0,
12
- // yPan = true,
13
- // yPanEnabled = false,
14
- // yScale = scaleLinear(),
15
- onContextMenu, onDoubleClick, } = props;
16
- const chartCanvasContextValue = React.useContext(ChartCanvasContext);
17
- const { subscribe, unsubscribe, chartConfigs } = chartCanvasContextValue;
18
- const listener = React.useCallback((type, moreProps, _, e) => {
19
- switch (type) {
20
- case "contextmenu": {
21
- if (onContextMenu === undefined) {
22
- return;
23
- }
24
- const { currentCharts } = moreProps;
25
- if (currentCharts.indexOf(id) > -1) {
26
- onContextMenu(e, moreProps);
27
- }
28
- break;
29
- }
30
- case "dblclick": {
31
- if (onDoubleClick === undefined) {
32
- return;
33
- }
34
- const { currentCharts } = moreProps;
35
- if (currentCharts.indexOf(id) > -1) {
36
- onDoubleClick(e, moreProps);
37
- }
38
- break;
39
- }
40
- }
41
- }, [onContextMenu, onDoubleClick, id]);
42
- React.useEffect(() => {
43
- subscribe(`chart_${id}`, {
44
- listener,
45
- });
46
- return () => unsubscribe(`chart_${id}`);
47
- }, [subscribe, unsubscribe, id, listener]);
48
- const config = chartConfigs.find(({ id }) => id === props.id);
49
- const contextValue = React.useMemo(() => {
50
- return Object.assign(Object.assign({}, chartCanvasContextValue), { chartId: id, chartConfig: config });
51
- }, [id, config, chartCanvasContextValue]);
52
- const { origin: [x, y], } = config;
53
- return (React.createElement(ChartContext.Provider, { value: contextValue },
54
- React.createElement("g", { transform: `translate(${x}, ${y})`, id: `chart_${id}` }, props.children)));
55
- });
56
- Chart.displayName = "Chart";
1
+ import * as React from "react";
2
+ import { ChartCanvasContext, chartCanvasContextDefaultValue } from "./ChartCanvas";
3
+ export const ChartContext = React.createContext(Object.assign(Object.assign({}, chartCanvasContextDefaultValue), {
4
+ // @ts-ignore
5
+ chartConfig: {}, chartId: 0 }));
6
+ export const Chart = React.memo((props) => {
7
+ const {
8
+ // flipYScale = false,
9
+ id = 0,
10
+ // origin = [0, 0],
11
+ // padding = 0,
12
+ // yPan = true,
13
+ // yPanEnabled = false,
14
+ // yScale = scaleLinear(),
15
+ onContextMenu, onDoubleClick, } = props;
16
+ const chartCanvasContextValue = React.useContext(ChartCanvasContext);
17
+ const { subscribe, unsubscribe, chartConfigs } = chartCanvasContextValue;
18
+ const listener = React.useCallback((type, moreProps, _, e) => {
19
+ switch (type) {
20
+ case "contextmenu": {
21
+ if (onContextMenu === undefined) {
22
+ return;
23
+ }
24
+ const { currentCharts } = moreProps;
25
+ if ((currentCharts === null || currentCharts === void 0 ? void 0 : currentCharts.indexOf(id)) > -1) {
26
+ onContextMenu(e, moreProps);
27
+ }
28
+ break;
29
+ }
30
+ case "dblclick": {
31
+ if (onDoubleClick === undefined) {
32
+ return;
33
+ }
34
+ const { currentCharts } = moreProps;
35
+ if ((currentCharts === null || currentCharts === void 0 ? void 0 : currentCharts.indexOf(id)) > -1) {
36
+ onDoubleClick(e, moreProps);
37
+ }
38
+ break;
39
+ }
40
+ }
41
+ }, [onContextMenu, onDoubleClick, id]);
42
+ React.useEffect(() => {
43
+ subscribe(`chart_${id}`, {
44
+ listener,
45
+ });
46
+ return () => unsubscribe(`chart_${id}`);
47
+ }, [subscribe, unsubscribe, id, listener]);
48
+ const config = chartConfigs.find(({ id }) => id === props.id);
49
+ const contextValue = React.useMemo(() => {
50
+ return Object.assign(Object.assign({}, chartCanvasContextValue), { chartId: id, chartConfig: config });
51
+ }, [id, config, chartCanvasContextValue]);
52
+ const { origin: [x, y], } = config;
53
+ return (React.createElement(ChartContext.Provider, { value: contextValue },
54
+ React.createElement("g", { transform: `translate(${x}, ${y})`, id: `chart_${id}` }, props.children)));
55
+ });
56
+ Chart.displayName = "Chart";
57
57
  //# sourceMappingURL=Chart.js.map
package/lib/Chart.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Chart.js","sourceRoot":"","sources":["../src/Chart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,8BAA8B,EAA0B,MAAM,eAAe,CAAC;AAM3G,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,iCACxC,8BAA8B;IACjC,aAAa;IACb,WAAW,EAAE,EAAE,EACf,OAAO,EAAE,CAAC,IACZ,CAAC;AAuBH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAA0C,EAAE,EAAE;IAC3E,MAAM;IACF,sBAAsB;IACtB,EAAE,GAAG,CAAC;IACN,mBAAmB;IACnB,eAAe;IACf,eAAe;IACf,uBAAuB;IACvB,0BAA0B;IAC1B,aAAa,EACb,aAAa,GAChB,GAAG,KAAK,CAAC;IAEV,MAAM,uBAAuB,GAAG,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACrE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,uBAAuB,CAAC;IAEzE,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAC9B,CAAC,IAAY,EAAE,SAAc,EAAE,CAAM,EAAE,CAAmB,EAAE,EAAE;QAC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