@rfkit/charts 1.3.11 → 1.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/index.js +285 -186
- package/package.json +1 -1
- package/utils/frequency.d.ts +1 -0
- package/utils/subscription.d.ts +2 -2
package/package.json
CHANGED
package/utils/frequency.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const leftSegments2frequency: (segments: SegmentsType) => (left:
|
|
|
18
18
|
/**
|
|
19
19
|
* 点信息转换成频率
|
|
20
20
|
*/
|
|
21
|
+
export declare const leftToIndex: (left: number, length: number) => number;
|
|
21
22
|
export declare function leftPoints2frequency<T>(points: Array<T>): (left: number) => T | undefined;
|
|
22
23
|
interface ScopeInfo {
|
|
23
24
|
segments: SegmentsType;
|
package/utils/subscription.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SpectrumAnalyzer,
|
|
1
|
+
import type { SpectrumAnalyzer, SpectrumOutputData } from '@rfkit/spectrum-analyzer';
|
|
2
2
|
import type { RecursiveFunction } from '../types';
|
|
3
3
|
interface ChartsGlobal {
|
|
4
4
|
datas: Record<string, unknown>;
|
|
@@ -24,7 +24,7 @@ interface ChartSubscriptions {
|
|
|
24
24
|
}
|
|
25
25
|
export declare function createSubscriptionManager(id: string, name?: string, func?: CSMCallback): (...args: any[]) => void;
|
|
26
26
|
export interface rawData {
|
|
27
|
-
getAllRawData: () =>
|
|
27
|
+
getAllRawData: (left?: number) => SpectrumOutputData;
|
|
28
28
|
}
|
|
29
29
|
export declare const getDefaultData: () => rawData;
|
|
30
30
|
export default function withDatabase(globalID: string, data?: rawData): rawData;
|