@rfkit/charts 1.2.23 → 1.2.25
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/README.md +1 -1
- package/components/AxisY/heatmap/components/Ticks/index.d.ts +3 -3
- package/components/HeatmapCapture/tools.d.ts +2 -6
- package/components/Tooltip/index.d.ts +3 -1
- package/engine/engine.d.ts +1 -2
- package/engine/fluorescence.d.ts +2 -3
- package/engine/heatmap.d.ts +2 -3
- package/engine/index.d.ts +3 -5
- package/engine/series.d.ts +2 -3
- package/engine/type.d.ts +13 -0
- package/engine/utils.d.ts +2 -0
- package/engine/webglExample.d.ts +2 -2
- package/engine/webglSeries.d.ts +2 -3
- package/index.js +721 -1245
- package/modules/Fluorescence/render.d.ts +2 -3
- package/package.json +1 -1
- package/types/common.d.ts +1 -1
- package/types/publish.d.ts +22 -5
- package/types/store.d.ts +4 -9
- package/utils/index.d.ts +10 -3
- package/components/AxisY/heatmap/components/FullTicks/index.d.ts +0 -7
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
3
|
id: string;
|
|
4
4
|
inside?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
declare const _default: React.NamedExoticComponent<Props>;
|
|
7
|
+
export default _default;
|
|
@@ -14,12 +14,8 @@ export declare const defaultAreaInfoResult: {
|
|
|
14
14
|
endIndex: number;
|
|
15
15
|
startCol: number;
|
|
16
16
|
endCol: number;
|
|
17
|
-
startTimestamp:
|
|
18
|
-
|
|
19
|
-
endTimestamp: number;
|
|
20
|
-
endTimestampFormat: string;
|
|
21
|
-
duration: number;
|
|
22
|
-
durationFormat: string;
|
|
17
|
+
startTimestamp: string;
|
|
18
|
+
endTimestamp: string;
|
|
23
19
|
startFrequency: number;
|
|
24
20
|
startFrequencyFormat: string;
|
|
25
21
|
endFrequency: number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
type TooltipTriggerProps = React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>;
|
|
3
|
+
type TooltipTriggerElement = React.ReactElement<TooltipTriggerProps>;
|
|
2
4
|
interface TooltipProps {
|
|
3
|
-
children:
|
|
5
|
+
children: TooltipTriggerElement;
|
|
4
6
|
content: React.ReactNode;
|
|
5
7
|
delay?: number;
|
|
6
8
|
duration?: number;
|
package/engine/engine.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { RecursiveObject } from '../types';
|
|
2
1
|
import type { StateProps } from './type';
|
|
3
2
|
export default class Engine {
|
|
4
3
|
state: StateProps;
|
|
5
4
|
constructor(props: StateProps);
|
|
6
|
-
updateProps(e:
|
|
5
|
+
updateProps(e: Partial<StateProps>): void;
|
|
7
6
|
init(p: StateProps): void;
|
|
8
7
|
clearRect(): void;
|
|
9
8
|
resize(draw?: boolean): void;
|
package/engine/fluorescence.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { AxisYRange, RecursiveObject } from '../types';
|
|
2
1
|
import Engine from './engine';
|
|
3
|
-
import type { StateProps } from './type';
|
|
2
|
+
import type { AxisYRange, StateProps } from './type';
|
|
4
3
|
export default class Fluorescence extends Engine {
|
|
5
4
|
init(props: StateProps): void;
|
|
6
|
-
updateProps(e:
|
|
5
|
+
updateProps(e: Partial<StateProps>): void;
|
|
7
6
|
clearImageData(): void;
|
|
8
7
|
clearRect(): void;
|
|
9
8
|
clear(): void;
|
package/engine/heatmap.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { AxisYRange } from '../types';
|
|
2
1
|
import Engine from './engine';
|
|
3
|
-
import type { StateProps } from './type';
|
|
2
|
+
import type { AxisYRange, StateProps } from './type';
|
|
4
3
|
export default class Heatmap extends Engine {
|
|
5
4
|
init(props: StateProps): void;
|
|
6
|
-
updateProps(e:
|
|
5
|
+
updateProps(e: Partial<StateProps>): void;
|
|
7
6
|
clearImageData(): void;
|
|
8
7
|
clearRect(): void;
|
|
9
8
|
clear(): void;
|
package/engine/index.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ import IQ from './iq';
|
|
|
6
6
|
import IQEye from './iqEye';
|
|
7
7
|
import Radar from './radar';
|
|
8
8
|
import Series from './series';
|
|
9
|
-
import { GraphicType, OrientationType, type StateProps } from './type';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export { Heatmap, Fluorescence, Series, IQ, IQEye, OrientationType, GraphicType, Dial, Radar, Gauge, WebGLEngine, WebGLSeries };
|
|
13
|
-
export type { StateProps };
|
|
9
|
+
import { GraphicType, OrientationType, type AxisYRange, type SeriesConfig, type StateProps } from './type';
|
|
10
|
+
export { Dial, Fluorescence, Gauge, GraphicType, Heatmap, IQ, IQEye, OrientationType, Radar, Series };
|
|
11
|
+
export type { AxisYRange, SeriesConfig, StateProps };
|
package/engine/series.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { AxisYRange, RecursiveObject, SeriesConfig } from '../types';
|
|
2
1
|
import Engine from './engine';
|
|
3
|
-
import {
|
|
2
|
+
import type { AxisYRange, SeriesConfig, StateProps } from './type';
|
|
4
3
|
export default class Series extends Engine {
|
|
5
4
|
init(props: StateProps): void;
|
|
6
|
-
updateProps(e:
|
|
5
|
+
updateProps(e: Partial<StateProps>): void;
|
|
7
6
|
clear(): void;
|
|
8
7
|
setRange(range: AxisYRange): void;
|
|
9
8
|
setIntervel(interval: number): void;
|
package/engine/type.d.ts
CHANGED
|
@@ -17,3 +17,16 @@ export interface StateProps {
|
|
|
17
17
|
fluorescenceMaxCount?: number;
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
}
|
|
20
|
+
/** Y轴范围 [min, max] */
|
|
21
|
+
export type AxisYRange = [number, number];
|
|
22
|
+
/** Series 配置 */
|
|
23
|
+
export interface SeriesConfig {
|
|
24
|
+
readonly name: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
color?: string;
|
|
27
|
+
display?: boolean;
|
|
28
|
+
data?: Float32Array;
|
|
29
|
+
type?: GraphicType;
|
|
30
|
+
thickness?: number;
|
|
31
|
+
orientation?: OrientationType;
|
|
32
|
+
}
|
package/engine/webglExample.d.ts
CHANGED
package/engine/webglSeries.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { AxisYRange,
|
|
2
|
-
import { type StateProps } from './type';
|
|
1
|
+
import type { AxisYRange, SeriesConfig, StateProps } from './type';
|
|
3
2
|
import WebGLEngine from './webglEngine';
|
|
4
3
|
export default class WebGLSeries extends WebGLEngine {
|
|
5
4
|
private vertexData;
|
|
6
5
|
private colorData;
|
|
7
6
|
private throttledDraw;
|
|
8
7
|
init(props: StateProps): void;
|
|
9
|
-
updateProps(e:
|
|
8
|
+
updateProps(e: Partial<StateProps>): void;
|
|
10
9
|
clear(): void;
|
|
11
10
|
setRange(range: AxisYRange): void;
|
|
12
11
|
setIntervel(interval: number): void;
|