next-flow-interface 0.24.22 → 0.24.24
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.d.ts +25 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1973,7 +1973,7 @@ export declare function getBlockDiagonalLength(
|
|
|
1973
1973
|
* RvUtils.getByRvPath({ a: { b: 1 } }, "a.b") // 1
|
|
1974
1974
|
* ```
|
|
1975
1975
|
*/
|
|
1976
|
-
declare function getByRvPath<T = unknown>(source: StoredRhineVar, path: string | RvPath): T | undefined
|
|
1976
|
+
declare function getByRvPath<T = unknown>(source: StoredRhineVar | object, path: string | RvPath): T | undefined
|
|
1977
1977
|
|
|
1978
1978
|
declare function getDistance(x1: number, y1: number, x2: number, y2: number): number
|
|
1979
1979
|
|
|
@@ -2948,12 +2948,12 @@ export declare type MessageType = 'info' | 'warning' | 'error' | 'success'
|
|
|
2948
2948
|
*/
|
|
2949
2949
|
export declare class MixPartialData {
|
|
2950
2950
|
data: Set<MixPartialDataItem>
|
|
2951
|
-
constructor(data?: [BaseAttribute
|
|
2951
|
+
constructor(data?: [BaseAttribute<any>, string | RvPath, unknown][])
|
|
2952
2952
|
toMap(): Map<string, MixPartialDataItem>
|
|
2953
2953
|
toRecord(): Record<string, MixPartialDataItem>
|
|
2954
|
-
push(attribute: BaseAttribute
|
|
2955
|
-
forEach(callback: (attribute: BaseAttribute
|
|
2956
|
-
forEachWithStringPath(callback: (attribute: BaseAttribute
|
|
2954
|
+
push(attribute: BaseAttribute<any>, path: string | RvPath, value: unknown): void
|
|
2955
|
+
forEach(callback: (attribute: BaseAttribute<any>, path: RvPath, value: unknown) => void): void
|
|
2956
|
+
forEachWithStringPath(callback: (attribute: BaseAttribute<any>, path: string, value: unknown) => void): void
|
|
2957
2957
|
toPartialData(): PartialData
|
|
2958
2958
|
get size(): number
|
|
2959
2959
|
}
|
|
@@ -2962,7 +2962,7 @@ export declare class MixPartialData {
|
|
|
2962
2962
|
* @public
|
|
2963
2963
|
*/
|
|
2964
2964
|
export declare interface MixPartialDataItem {
|
|
2965
|
-
attribute: BaseAttribute
|
|
2965
|
+
attribute: BaseAttribute<any>
|
|
2966
2966
|
path: RvPath
|
|
2967
2967
|
value: unknown
|
|
2968
2968
|
}
|
|
@@ -3139,6 +3139,24 @@ export declare abstract class NodeAttribute<T extends object = never> extends Ba
|
|
|
3139
3139
|
sidList?: string[],
|
|
3140
3140
|
nidList?: string[],
|
|
3141
3141
|
): Map<string, Map<string, PartialData>>
|
|
3142
|
+
/**
|
|
3143
|
+
* 获取指定元素的局部数据
|
|
3144
|
+
* @param paths
|
|
3145
|
+
* @param sid
|
|
3146
|
+
* @param nid
|
|
3147
|
+
*/
|
|
3148
|
+
readPartial(paths: (string | RvPath)[], sid?: string, nid?: string): PartialData
|
|
3149
|
+
/**
|
|
3150
|
+
* 获取多个元素的局部数据
|
|
3151
|
+
* @param paths
|
|
3152
|
+
* @param sidList
|
|
3153
|
+
* @param nidList
|
|
3154
|
+
*/
|
|
3155
|
+
multiReadPartial(
|
|
3156
|
+
paths: (string | RvPath)[],
|
|
3157
|
+
sidList?: string[],
|
|
3158
|
+
nidList?: string[],
|
|
3159
|
+
): Map<string, Map<string, PartialData>>
|
|
3142
3160
|
set(path: string | RvPath, value: unknown, sid?: string, nid?: string): void
|
|
3143
3161
|
multiSet(path: string | RvPath, value: unknown, sidList?: string[], nidList?: string[]): void
|
|
3144
3162
|
/**
|
|
@@ -3571,7 +3589,7 @@ export declare class PartialData {
|
|
|
3571
3589
|
push(path: string | RvPath, value: unknown): void
|
|
3572
3590
|
forEach(callback: (path: RvPath, value: unknown) => void): void
|
|
3573
3591
|
forEachWithStringPath(callback: (path: string, value: unknown) => void): void
|
|
3574
|
-
toMixPartialData(attribute: BaseAttribute): MixPartialData
|
|
3592
|
+
toMixPartialData(attribute: BaseAttribute<any>): MixPartialData
|
|
3575
3593
|
get size(): number
|
|
3576
3594
|
}
|
|
3577
3595
|
|