next-flow-interface 0.24.26 → 0.24.28
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 +142 -84
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,65 +1,111 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
ShadowGenerator,
|
|
22
|
-
StandardMaterial,
|
|
23
|
-
Texture,
|
|
24
|
-
TransformNode,
|
|
25
|
-
Animation as Animation_2,
|
|
26
|
-
AbstractMesh,
|
|
27
|
-
Vector2,
|
|
28
|
-
Vector3,
|
|
29
|
-
WebGPUEngine,
|
|
30
|
-
} from '@babylonjs/core'
|
|
31
|
-
import { WebXRDefaultExperience } from '@babylonjs/core/XR/webXRDefaultExperience'
|
|
32
|
-
import OSS from 'ali-oss'
|
|
33
|
-
import { EmptyProps, InputNumberProps, SelectProps, SwitchProps } from 'antd'
|
|
34
|
-
import { Color, ColorPickerProps } from 'antd/es/color-picker'
|
|
1
|
+
import { AbstractMesh } from '@babylonjs/core'
|
|
2
|
+
import { Animation as Animation_2 } from '@babylonjs/core'
|
|
3
|
+
import { AnimationEventHandler } from 'react'
|
|
4
|
+
import { AnimationGroup } from '@babylonjs/core'
|
|
5
|
+
import { AnyWebByteStream } from 'strtok3'
|
|
6
|
+
import { ArcRotateCamera } from '@babylonjs/core'
|
|
7
|
+
import { AriaRole } from 'react'
|
|
8
|
+
import { Attributes } from 'react'
|
|
9
|
+
import { Awareness } from 'rhine-var'
|
|
10
|
+
import { BaseTexture } from '@babylonjs/core'
|
|
11
|
+
import { ClipboardEventHandler } from 'react'
|
|
12
|
+
import { Color } from 'antd/es/color-picker'
|
|
13
|
+
import { Color3 } from '@babylonjs/core'
|
|
14
|
+
import { Color3 as Color3_2 } from '@babylonjs/core/Maths/math.color'
|
|
15
|
+
import { Color4 } from '@babylonjs/core'
|
|
16
|
+
import { ColorPickerProps } from 'antd/es/color-picker'
|
|
17
|
+
import { CompositionEventHandler } from 'react'
|
|
18
|
+
import { CSSProperties } from 'react'
|
|
19
|
+
import { CSSResult } from 'lit'
|
|
20
|
+
import { CubeTexture } from '@babylonjs/core'
|
|
35
21
|
import { DefaultOptionType } from 'antd/es/select'
|
|
36
|
-
import {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} from 'react'
|
|
22
|
+
import { DetailedHTMLProps } from 'react'
|
|
23
|
+
import { DragEvent as DragEvent_2 } from 'react'
|
|
24
|
+
import { DragEventHandler } from 'react'
|
|
25
|
+
import { DynamicTexture } from '@babylonjs/core'
|
|
26
|
+
import { EmptyProps } from 'antd'
|
|
27
|
+
import { Engine } from '@babylonjs/core'
|
|
28
|
+
import { EventName } from '@lit/react'
|
|
29
|
+
import { EventType } from 'rhine-var'
|
|
30
|
+
import { FocusEventHandler } from 'react'
|
|
31
|
+
import { FormEventHandler } from 'react'
|
|
32
|
+
import { ForwardRefExoticComponent } from 'react'
|
|
33
|
+
import { FunctionComponent } from 'react'
|
|
34
|
+
import { Geometry } from '@babylonjs/core'
|
|
35
|
+
import { HTMLAttributeAnchorTarget } from 'react'
|
|
36
|
+
import { HTMLAttributeReferrerPolicy } from 'react'
|
|
37
|
+
import { HTMLAttributes } from 'react'
|
|
38
|
+
import { InputBlock } from '@babylonjs/core'
|
|
39
|
+
import { InputEventHandler } from 'react'
|
|
40
|
+
import { InputNumberProps } from 'antd'
|
|
41
|
+
import { IParticleSystem } from '@babylonjs/core'
|
|
42
|
+
import { JSX } from 'react'
|
|
43
|
+
import { Key } from 'react'
|
|
44
|
+
import { KeyboardEventHandler } from 'react'
|
|
45
|
+
import { Light } from '@babylonjs/core'
|
|
46
|
+
import { LitElement } from 'lit'
|
|
47
|
+
import { Locale as Locale_2 } from 'use-intl'
|
|
48
|
+
import { LocalePrefix } from 'next-intl/routing'
|
|
49
|
+
import { Material } from '@babylonjs/core'
|
|
50
|
+
import { Mesh } from '@babylonjs/core'
|
|
51
|
+
import { MouseEvent as MouseEvent_2 } from 'react'
|
|
52
|
+
import { MouseEventHandler } from 'react'
|
|
53
|
+
import { MultipartUploadResult } from 'ali-oss'
|
|
54
|
+
import { NavigateOptions } from 'next/dist/shared/lib/app-router-context.shared-runtime'
|
|
55
|
+
import { Node as Node_2 } from '@babylonjs/core'
|
|
56
|
+
import { NodeMaterial } from '@babylonjs/core'
|
|
57
|
+
import { NodeMaterialBlock } from '@babylonjs/core'
|
|
58
|
+
import { NodeMaterialBlockConnectionPointTypes } from '@babylonjs/core'
|
|
59
|
+
import { Observable } from '@babylonjs/core/Misc/observable'
|
|
60
|
+
import OSS from 'ali-oss'
|
|
61
|
+
import { PBRMaterial } from '@babylonjs/core'
|
|
62
|
+
import { PointerEventHandler } from 'react'
|
|
63
|
+
import { PrefetchOptions } from 'next/dist/shared/lib/app-router-context.shared-runtime'
|
|
64
|
+
import { Quaternion } from '@babylonjs/core'
|
|
65
|
+
import { QueryParams } from 'next-intl/navigation'
|
|
66
|
+
import { default as React_2 } from 'react'
|
|
67
|
+
import { ReactEventHandler } from 'react'
|
|
68
|
+
import { ReactNode } from 'react'
|
|
69
|
+
import { ReactPortal } from 'react'
|
|
70
|
+
import { ReactWebComponent } from '@lit/react'
|
|
71
|
+
import { RecursiveArray } from 'rhine-var'
|
|
72
|
+
import { RecursiveCrossRhineVar } from 'rhine-var'
|
|
73
|
+
import { RecursiveMap } from 'rhine-var'
|
|
74
|
+
import { RecursiveObject } from 'rhine-var'
|
|
75
|
+
import { RedirectType } from 'next/navigation'
|
|
76
|
+
import { Ref } from 'react'
|
|
77
|
+
import { RefAttributes } from 'react'
|
|
78
|
+
import { RhineVarArray } from 'rhine-var'
|
|
79
|
+
import { RhineVarMap } from 'rhine-var'
|
|
48
80
|
import { Root } from 'react-dom/client'
|
|
49
|
-
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
} from '
|
|
62
|
-
import {
|
|
81
|
+
import { RvKey } from 'rhine-var'
|
|
82
|
+
import { RvPath } from 'rhine-var'
|
|
83
|
+
import { Scene } from '@babylonjs/core'
|
|
84
|
+
import { SelectProps } from 'antd'
|
|
85
|
+
import { ShadowGenerator } from '@babylonjs/core'
|
|
86
|
+
import { SixDofDragBehavior } from '@babylonjs/core/Behaviors/Meshes/sixDofDragBehavior'
|
|
87
|
+
import { Skeleton } from '@babylonjs/core'
|
|
88
|
+
import { StandardMaterial } from '@babylonjs/core'
|
|
89
|
+
import { StoredRhineVar } from 'rhine-var'
|
|
90
|
+
import { SwitchProps } from 'antd'
|
|
91
|
+
import { TemplateResult } from 'lit-html'
|
|
92
|
+
import { Texture } from '@babylonjs/core'
|
|
93
|
+
import { TextureBlock } from '@babylonjs/core'
|
|
94
|
+
import { ThemeConfig } from 'antd'
|
|
95
|
+
import { ToggleEventHandler } from 'react'
|
|
96
|
+
import { TouchEvent as TouchEvent_2 } from 'react'
|
|
97
|
+
import { TouchEventHandler } from 'react'
|
|
98
|
+
import { TransformNode } from '@babylonjs/core'
|
|
99
|
+
import { TransitionEventHandler } from 'react'
|
|
100
|
+
import { UIEventHandler } from 'react'
|
|
101
|
+
import { UrlObject } from 'url'
|
|
102
|
+
import { UtilityLayerRenderer } from '@babylonjs/core/Rendering/utilityLayerRenderer'
|
|
103
|
+
import { Vector2 } from '@babylonjs/core'
|
|
104
|
+
import { Vector3 } from '@babylonjs/core'
|
|
105
|
+
import { WebGPUEngine } from '@babylonjs/core'
|
|
106
|
+
import { WebXRDefaultExperience } from '@babylonjs/core/XR/webXRDefaultExperience'
|
|
107
|
+
import { WheelEvent as WheelEvent_2 } from 'react'
|
|
108
|
+
import { WheelEventHandler } from 'react'
|
|
63
109
|
|
|
64
110
|
/**
|
|
65
111
|
* @public
|
|
@@ -294,7 +340,7 @@ declare function approximatelyEqual(n1: number, n2: number, bias?: number): bool
|
|
|
294
340
|
/**
|
|
295
341
|
* @public
|
|
296
342
|
*/
|
|
297
|
-
export declare type Attribute<T extends object =
|
|
343
|
+
export declare type Attribute<T extends object = any> = NodeAttribute<T> | StepAttribute<T> | GlobalAttribute<T>
|
|
298
344
|
|
|
299
345
|
/**
|
|
300
346
|
* @public
|
|
@@ -312,15 +358,15 @@ export declare class AttributeService {
|
|
|
312
358
|
stepAttributes: StepAttribute<any>[]
|
|
313
359
|
globalAttributes: GlobalAttribute<any>[]
|
|
314
360
|
/** 注册属性 */
|
|
315
|
-
register<T extends object =
|
|
361
|
+
register<T extends object = any>(attribute: Attribute<T>): void
|
|
316
362
|
/** 通过路径精确匹配获取属性 */
|
|
317
|
-
get<T extends object =
|
|
363
|
+
get<T extends object = any>(type: AttributeType, path: RvPath | string): Attribute<T> | undefined
|
|
318
364
|
/** 通过路径获取 NodeAttribute */
|
|
319
|
-
getNodeAttribute<T extends object =
|
|
365
|
+
getNodeAttribute<T extends object = any>(path: RvPath | string): NodeAttribute<T> | undefined
|
|
320
366
|
/** 通过路径获取 StepAttribute */
|
|
321
|
-
getStepAttribute<T extends object =
|
|
367
|
+
getStepAttribute<T extends object = any>(path: RvPath | string): StepAttribute<T> | undefined
|
|
322
368
|
/** 通过路径获取 GlobalAttribute */
|
|
323
|
-
getGlobalAttribute<T extends object =
|
|
369
|
+
getGlobalAttribute<T extends object = any>(path: RvPath | string): GlobalAttribute<T> | undefined
|
|
324
370
|
/** 根据类型获取属性列表,不传入类型的时候返回所有 */
|
|
325
371
|
getList(type?: AttributeType): Attribute<any>[]
|
|
326
372
|
isPathConflict(type: AttributeType, path: RvPath): boolean
|
|
@@ -468,7 +514,9 @@ export declare class AwarenessService {
|
|
|
468
514
|
setLocalState(state?: RvAwareness): void
|
|
469
515
|
setLocalStateCamera(state?: RvCameraLocation): void
|
|
470
516
|
setLocalStateField(field: string, state: unknown): void
|
|
471
|
-
getLocalState():
|
|
517
|
+
getLocalState(): {
|
|
518
|
+
[x: string]: any
|
|
519
|
+
} | null
|
|
472
520
|
startUpdate(): void
|
|
473
521
|
stopUpdate(): void
|
|
474
522
|
setUpdateInterval(interval: number): void
|
|
@@ -484,7 +532,7 @@ export declare class AwarenessService {
|
|
|
484
532
|
/**
|
|
485
533
|
* @public
|
|
486
534
|
*/
|
|
487
|
-
export declare abstract class BaseAttribute<T extends object =
|
|
535
|
+
export declare abstract class BaseAttribute<T extends object = any> {
|
|
488
536
|
abstract type: AttributeType
|
|
489
537
|
abstract path: RvPath
|
|
490
538
|
defaultValue: T
|
|
@@ -1053,20 +1101,30 @@ declare function copyText(text: string): Promise<boolean>
|
|
|
1053
1101
|
/**
|
|
1054
1102
|
* 创建属性右键菜单
|
|
1055
1103
|
*
|
|
1056
|
-
* @param
|
|
1057
|
-
* @param
|
|
1104
|
+
* @param mark
|
|
1105
|
+
* @param initialize
|
|
1058
1106
|
* @param intl
|
|
1059
1107
|
* @param defaultAttribute
|
|
1108
|
+
* @param defaultEnableMultiNode
|
|
1109
|
+
* @param defaultEnableBatchApply 是否默认启用 BatchApply, 如果为 undefined 则根据 defaultAttribute 判断, 若 defaultAttribute 为 undefined 则默认 false
|
|
1060
1110
|
*
|
|
1061
1111
|
* @public
|
|
1062
1112
|
*/
|
|
1063
1113
|
export declare function createAttributeContextMenu(
|
|
1064
|
-
|
|
1065
|
-
|
|
1114
|
+
mark: () => void,
|
|
1115
|
+
initialize: () => void,
|
|
1066
1116
|
intl: Intl_2,
|
|
1067
|
-
defaultAttribute?: Attribute
|
|
1117
|
+
defaultAttribute?: Attribute,
|
|
1118
|
+
defaultEnableMultiNode?: boolean,
|
|
1119
|
+
defaultEnableBatchApply?: boolean,
|
|
1068
1120
|
): {
|
|
1069
|
-
onContextMenu: (
|
|
1121
|
+
onContextMenu: (
|
|
1122
|
+
event: MouseEvent_2,
|
|
1123
|
+
label: string,
|
|
1124
|
+
paths: PathListWithOptionableAttribute | string,
|
|
1125
|
+
enableMultiNode?: boolean,
|
|
1126
|
+
enableBatchApply?: boolean,
|
|
1127
|
+
) => void
|
|
1070
1128
|
}
|
|
1071
1129
|
|
|
1072
1130
|
/**
|
|
@@ -2052,7 +2110,7 @@ declare function getSearchParams(key: string): string | undefined
|
|
|
2052
2110
|
/**
|
|
2053
2111
|
* @public
|
|
2054
2112
|
*/
|
|
2055
|
-
export declare abstract class GlobalAttribute<T extends object =
|
|
2113
|
+
export declare abstract class GlobalAttribute<T extends object = any> extends BaseAttribute<T> {
|
|
2056
2114
|
type: AttributeType
|
|
2057
2115
|
generate(): T
|
|
2058
2116
|
initialize(): void
|
|
@@ -2765,7 +2823,7 @@ export declare function MaterialSymbol(props: MaterialSymbolProps): React_2.JSX.
|
|
|
2765
2823
|
export declare function materialSymbol(
|
|
2766
2824
|
icon: string,
|
|
2767
2825
|
options?: MaterialSymbolOptions,
|
|
2768
|
-
): FunctionComponent<Record<string,
|
|
2826
|
+
): FunctionComponent<Record<string, unknown>>
|
|
2769
2827
|
|
|
2770
2828
|
/**
|
|
2771
2829
|
* @public
|
|
@@ -3156,7 +3214,7 @@ export declare const NetworkUtils: {
|
|
|
3156
3214
|
/**
|
|
3157
3215
|
* @public
|
|
3158
3216
|
*/
|
|
3159
|
-
export declare abstract class NodeAttribute<T extends object =
|
|
3217
|
+
export declare abstract class NodeAttribute<T extends object = any> extends BaseAttribute<T> {
|
|
3160
3218
|
type: AttributeType
|
|
3161
3219
|
get targetSid(): string
|
|
3162
3220
|
get targetSidList(): string[]
|
|
@@ -3241,7 +3299,7 @@ export declare abstract class NodeAttribute<T extends object = never> extends Ba
|
|
|
3241
3299
|
/**
|
|
3242
3300
|
* @public
|
|
3243
3301
|
*/
|
|
3244
|
-
export declare type NodeAttributeTargetSubscriber<T extends object =
|
|
3302
|
+
export declare type NodeAttributeTargetSubscriber<T extends object = any> = (
|
|
3245
3303
|
type: TChangeType,
|
|
3246
3304
|
path: RvPath,
|
|
3247
3305
|
value: unknown,
|
|
@@ -3657,7 +3715,7 @@ export declare interface PartialDataItem {
|
|
|
3657
3715
|
*/
|
|
3658
3716
|
export declare type PathListWithOptionableAttribute = (
|
|
3659
3717
|
| [path: string | RvPath]
|
|
3660
|
-
| [path: string | RvPath, attribute: Attribute
|
|
3718
|
+
| [path: string | RvPath, attribute: Attribute]
|
|
3661
3719
|
)[]
|
|
3662
3720
|
|
|
3663
3721
|
declare type PathValueArray<T = unknown> = {
|
|
@@ -6232,7 +6290,7 @@ export declare class StatusService {
|
|
|
6232
6290
|
/**
|
|
6233
6291
|
* @public
|
|
6234
6292
|
*/
|
|
6235
|
-
export declare abstract class StepAttribute<T extends object =
|
|
6293
|
+
export declare abstract class StepAttribute<T extends object = any> extends BaseAttribute<T> {
|
|
6236
6294
|
type: AttributeType
|
|
6237
6295
|
get targetSid(): string
|
|
6238
6296
|
get targetSidList(): string[]
|
|
@@ -6306,7 +6364,7 @@ export declare abstract class StepAttribute<T extends object = never> extends Ba
|
|
|
6306
6364
|
/**
|
|
6307
6365
|
* @public
|
|
6308
6366
|
*/
|
|
6309
|
-
export declare type StepAttributeTargetSubscriber<T extends object =
|
|
6367
|
+
export declare type StepAttributeTargetSubscriber<T extends object = any> = (
|
|
6310
6368
|
type: TChangeType,
|
|
6311
6369
|
path: RvPath,
|
|
6312
6370
|
value: unknown,
|
|
@@ -6813,7 +6871,7 @@ export declare function useGlobal<T = unknown>(
|
|
|
6813
6871
|
/**
|
|
6814
6872
|
* @public
|
|
6815
6873
|
*/
|
|
6816
|
-
export declare function useGlobalAttribute<T extends object =
|
|
6874
|
+
export declare function useGlobalAttribute<T extends object = any>(
|
|
6817
6875
|
path?: string | RvPath,
|
|
6818
6876
|
): {
|
|
6819
6877
|
state: T | StoredRhineVar<T>
|
|
@@ -6908,7 +6966,7 @@ export declare function useTargetNode<T = unknown>(
|
|
|
6908
6966
|
/**
|
|
6909
6967
|
* @public
|
|
6910
6968
|
*/
|
|
6911
|
-
export declare function useTargetNodeAttribute<T extends object =
|
|
6969
|
+
export declare function useTargetNodeAttribute<T extends object = any>(
|
|
6912
6970
|
path?: string | RvPath,
|
|
6913
6971
|
): {
|
|
6914
6972
|
state: T | StoredRhineVar<T>
|
|
@@ -6966,7 +7024,7 @@ export declare function useTargetStep<T = unknown>(
|
|
|
6966
7024
|
/**
|
|
6967
7025
|
* @public
|
|
6968
7026
|
*/
|
|
6969
|
-
export declare function useTargetStepAttribute<T extends object =
|
|
7027
|
+
export declare function useTargetStepAttribute<T extends object = any>(
|
|
6970
7028
|
path?: string | RvPath,
|
|
6971
7029
|
): {
|
|
6972
7030
|
state: T | StoredRhineVar<T>
|