next-flow-interface 0.24.21 → 0.24.23

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 (2) hide show
  1. package/index.d.ts +21 -1
  2. 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
 
@@ -2955,6 +2955,7 @@ export declare class MixPartialData {
2955
2955
  forEach(callback: (attribute: BaseAttribute, path: RvPath, value: unknown) => void): void
2956
2956
  forEachWithStringPath(callback: (attribute: BaseAttribute, path: string, value: unknown) => void): void
2957
2957
  toPartialData(): PartialData
2958
+ get size(): number
2958
2959
  }
2959
2960
 
2960
2961
  /**
@@ -3138,6 +3139,24 @@ export declare abstract class NodeAttribute<T extends object = never> extends Ba
3138
3139
  sidList?: string[],
3139
3140
  nidList?: string[],
3140
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>>
3141
3160
  set(path: string | RvPath, value: unknown, sid?: string, nid?: string): void
3142
3161
  multiSet(path: string | RvPath, value: unknown, sidList?: string[], nidList?: string[]): void
3143
3162
  /**
@@ -3571,6 +3590,7 @@ export declare class PartialData {
3571
3590
  forEach(callback: (path: RvPath, value: unknown) => void): void
3572
3591
  forEachWithStringPath(callback: (path: string, value: unknown) => void): void
3573
3592
  toMixPartialData(attribute: BaseAttribute): MixPartialData
3593
+ get size(): number
3574
3594
  }
3575
3595
 
3576
3596
  /**
package/package.json CHANGED
@@ -37,7 +37,7 @@
37
37
  "valtio": "2.1.7",
38
38
  "rhine-var": "0.11.2"
39
39
  },
40
- "version": "0.24.21",
40
+ "version": "0.24.23",
41
41
  "author": "NextFlow",
42
42
  "license": "Apache-2.0",
43
43
  "keywords": [