@octanejs/recharts 0.1.58 → 0.1.60
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/package.json +4 -4
- package/src/animation/CSSTransitionAnimate.tsrx +0 -1
- package/src/cartesian/Area.tsrx +1 -1
- package/src/cartesian/AreaRevealShape.tsrx +0 -1
- package/src/cartesian/Bar.tsrx +1 -6
- package/src/cartesian/BarStack.tsrx +1 -1
- package/src/cartesian/ErrorBar.tsrx +0 -1
- package/src/cartesian/Line.tsrx +1 -6
- package/src/cartesian/XAxis.tsrx +0 -1
- package/src/cartesian/YAxis.tsrx +1 -1
- package/src/cartesian/ZAxis.tsrx +0 -1
- package/src/component/Cursor.tsrx +0 -1
- package/src/polar/PolarGrid.tsrx +0 -1
- package/src/polar/RadialBar.tsrx +0 -1
- package/src/state/selectors/barStackSelectors.ts +3 -3
- package/src/util/FunnelUtils.tsrx +0 -3
- package/src/util/RadialBarUtils.tsrx +0 -1
- package/src/util/ScatterUtils.tsrx +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/recharts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.60",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"reselect": "5.2.0",
|
|
44
44
|
"tiny-invariant": "^1.3.3",
|
|
45
45
|
"victory-vendor": "^37.3.6",
|
|
46
|
-
"@octanejs/redux": "0.1.
|
|
46
|
+
"@octanejs/redux": "0.1.57"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"octane": "^0.
|
|
49
|
+
"octane": "^0.9.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tsrx/react": "^0.3.7",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react-dom": "19.2.7",
|
|
56
56
|
"recharts": "3.9.2",
|
|
57
57
|
"vitest": "^4.1.10",
|
|
58
|
-
"octane": "0.
|
|
58
|
+
"octane": "0.9.1"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"test": "vitest run"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties } from 'octane';
|
|
2
2
|
import type { OctaneNode } from '../util/OctaneTypes.ts';
|
|
3
|
-
import * as React from 'octane';
|
|
4
3
|
import { useCallback, useEffect, useRef, useState } from 'octane';
|
|
5
4
|
import { noop } from '../util/DataUtils';
|
|
6
5
|
import { resolveDefaultProps } from '../util/resolveDefaultProps';
|
package/src/cartesian/Area.tsrx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MutableRefObject,
|
|
1
|
+
import type { MutableRefObject, OctaneNode } from '../util/OctaneTypes.ts';
|
|
2
2
|
import * as React from 'octane';
|
|
3
3
|
import { useMemo, useRef } from 'octane';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { OctaneElement } from '../util/OctaneTypes.ts';
|
|
2
|
-
import * as React from 'octane';
|
|
3
2
|
import { isNumber } from '../util/DataUtils';
|
|
4
3
|
import { Curve, type BaseLineType, type Props as CurveProps } from '../shape/Curve.tsrx';
|
|
5
4
|
import type { CartesianLayout, LayoutType, ShapeAnimationProps } from '../util/types';
|
package/src/cartesian/Bar.tsrx
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { RegisteredCell } from '../context/CellsContext.ts';
|
|
2
2
|
import type { CellPropsFor } from '../component/Cell.ts';
|
|
3
|
-
import type {
|
|
4
|
-
MutableRefObject,
|
|
5
|
-
NativeMouseEvent,
|
|
6
|
-
OctaneElement,
|
|
7
|
-
OctaneNode,
|
|
8
|
-
} from '../util/OctaneTypes.ts';
|
|
3
|
+
import type { MutableRefObject, NativeMouseEvent, OctaneNode } from '../util/OctaneTypes.ts';
|
|
9
4
|
import type { Octane } from 'octane/jsx-runtime';
|
|
10
5
|
|
|
11
6
|
type Key = Octane.Key;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OctaneNode } from '../util/OctaneTypes.ts';
|
|
2
2
|
import type { NormalizedStackId, StackId } from '../util/ChartUtils';
|
|
3
3
|
import type { Props as LayerProps } from '../container/Layer.tsrx';
|
|
4
4
|
import type { RectRadius } from '../shape/Rectangle.tsrx';
|
|
@@ -2,7 +2,6 @@ import type { SVGProps } from '../util/OctaneTypes.ts';
|
|
|
2
2
|
/**
|
|
3
3
|
* @fileOverview Render a group of error bar
|
|
4
4
|
*/
|
|
5
|
-
import * as React from 'octane';
|
|
6
5
|
|
|
7
6
|
import { Layer } from '../container/Layer.tsrx';
|
|
8
7
|
import type { EasingInput, DataKey, RectangleCoordinate } from '../util/types';
|
package/src/cartesian/Line.tsrx
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
MutableRefObject,
|
|
3
|
-
OctaneElement,
|
|
4
|
-
OctaneNode,
|
|
5
|
-
RefObject,
|
|
6
|
-
} from '../util/OctaneTypes.ts';
|
|
1
|
+
import type { MutableRefObject, OctaneNode, RefObject } from '../util/OctaneTypes.ts';
|
|
7
2
|
import type { CurveType, Props as CurveProps } from '../shape/Curve.tsrx';
|
|
8
3
|
import type { LineDrawShapeProps } from './LineDrawShape.tsrx';
|
|
9
4
|
import type { CartesianLabelListEntry, ImplicitLabelListType } from '../component/LabelList.tsrx';
|
package/src/cartesian/XAxis.tsrx
CHANGED
package/src/cartesian/YAxis.tsrx
CHANGED
package/src/cartesian/ZAxis.tsrx
CHANGED
package/src/polar/PolarGrid.tsrx
CHANGED
package/src/polar/RadialBar.tsrx
CHANGED
|
@@ -7,12 +7,12 @@ import { selectUnfilteredCartesianItems } from './axisSelectors';
|
|
|
7
7
|
import type { CartesianGraphicalItemSettings } from '../graphicalItemsSlice';
|
|
8
8
|
import { selectBarRectangles } from './barSelectors';
|
|
9
9
|
|
|
10
|
-
const pickStackId = (
|
|
10
|
+
const pickStackId = (_state: RechartsRootState, stackId: NormalizedStackId): NormalizedStackId =>
|
|
11
11
|
stackId;
|
|
12
12
|
|
|
13
13
|
const pickIsPanorama = (
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
_state: RechartsRootState,
|
|
15
|
+
_stackId: NormalizedStackId,
|
|
16
16
|
isPanorama: boolean,
|
|
17
17
|
): boolean => isPanorama;
|
|
18
18
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'octane';
|
|
2
1
|
import type { Props as FunnelProps, FunnelTrapezoidItem } from '../cartesian/Funnel.tsrx';
|
|
3
2
|
import { Trapezoid } from '../shape/Trapezoid.tsrx';
|
|
4
3
|
import type { ShapeAnimationProps } from './types';
|
|
@@ -12,8 +11,6 @@ export type FunnelTrapezoidProps =
|
|
|
12
11
|
isActive: boolean;
|
|
13
12
|
} & ShapeAnimationProps & FunnelTrapezoidItem;
|
|
14
13
|
|
|
15
|
-
type FunnelTrapezoidShapeProps = Omit<FunnelTrapezoidProps, 'option'>;
|
|
16
|
-
|
|
17
14
|
export function FunnelTrapezoid({ option, ...shapeProps }: FunnelTrapezoidProps) {
|
|
18
15
|
return <Shape option={option} DefaultShape={defaultFunnelShape} shapeProps={shapeProps} />;
|
|
19
16
|
}
|