next-flow-interface 0.15.5 → 0.15.8
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/dist/index.d.ts +45 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ColorPickerProps, Color } from 'antd/es/color-picker';
|
|
|
3
3
|
import React$1, { ReactNode, MouseEventHandler, DetailedHTMLProps, HTMLAttributes, FunctionComponent, MouseEvent as MouseEvent$1, DragEvent as DragEvent$1, WheelEvent as WheelEvent$1, PointerEvent, KeyboardEvent, FocusEvent, UIEvent } from 'react';
|
|
4
4
|
import { DefaultOptionType } from 'antd/es/select';
|
|
5
5
|
import { RvPath, RhineVarMap, StoredRhineVar, RecursiveObject, RecursiveMap, RecursiveArray, RhineVarArray } from 'rhine-var';
|
|
6
|
-
import { Node, NodeMaterialBlockConnectionPointTypes, BaseTexture, PBRMaterial, NodeMaterial, Animation, Color3, Color4, Scene, Material, NodeMaterialBlock, ShadowGenerator, AnimationGroup as AnimationGroup$1, TransformNode, Vector3, ArcRotateCamera, Light, CubeTexture, AbstractMesh, Mesh, Engine, Quaternion } from '@babylonjs/core';
|
|
6
|
+
import { Node, NodeMaterialBlockConnectionPointTypes, BaseTexture, PBRMaterial, NodeMaterial, Animation, Color3, Color4, Scene, Material, NodeMaterialBlock, ShadowGenerator, AnimationGroup as AnimationGroup$1, TransformNode, Vector3, ArcRotateCamera, Light, CubeTexture, AbstractMesh, Mesh, Engine, Texture, DynamicTexture, Quaternion } from '@babylonjs/core';
|
|
7
7
|
import { AnimationGroup } from '@babylonjs/core/Animations/animationGroup';
|
|
8
8
|
import { TransformNode as TransformNode$1 } from '@babylonjs/core/Meshes/transformNode';
|
|
9
9
|
import { AnyWebByteStream } from 'strtok3';
|
|
@@ -1739,6 +1739,16 @@ interface RvGlobalServiceApi {
|
|
|
1739
1739
|
state: StoredRhineVar<RvGlobal>;
|
|
1740
1740
|
}
|
|
1741
1741
|
|
|
1742
|
+
interface RvNodeMaterialAnalyzerApi {
|
|
1743
|
+
/**
|
|
1744
|
+
* 确保当前材质的 RhineVar 对象包含节点材质信息 若没有则添加
|
|
1745
|
+
*
|
|
1746
|
+
* @param material {StoredRhineVar<RvMaterial>} 需操作的 RhineVar 材质数据对象
|
|
1747
|
+
* @returns {Promise<boolean>} 是否添加了材质
|
|
1748
|
+
*/
|
|
1749
|
+
ensure(material: StoredRhineVar<RvMaterial>): Promise<boolean>;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1742
1752
|
interface RvAnimation {
|
|
1743
1753
|
loop?: RvLoop;
|
|
1744
1754
|
embedded?: RvNative;
|
|
@@ -2429,7 +2439,7 @@ interface RvBase {
|
|
|
2429
2439
|
files: RhineVarMap<RvFile>;
|
|
2430
2440
|
resources: RhineVarMap<RvResource>;
|
|
2431
2441
|
scene: RvSceneNode;
|
|
2432
|
-
models: RvModel
|
|
2442
|
+
models: RhineVarMap<RvModel>;
|
|
2433
2443
|
separate: RvSeparate;
|
|
2434
2444
|
history: RvHistory;
|
|
2435
2445
|
meetings: RhineVarMap<RvMeeting>;
|
|
@@ -2448,8 +2458,8 @@ interface TAttributesServiceApi {
|
|
|
2448
2458
|
state: StoredRhineVar<RvAttributes> | null;
|
|
2449
2459
|
subscribe(subscriber: TAttributesSubscriber): () => void;
|
|
2450
2460
|
unsubscribe(subscriber: TAttributesSubscriber): void;
|
|
2451
|
-
set(path: string | RvPath, value:
|
|
2452
|
-
get(path: string | RvPath):
|
|
2461
|
+
set<T>(path: string | RvPath, value: T): void;
|
|
2462
|
+
get<T>(path: string | RvPath): T | null;
|
|
2453
2463
|
}
|
|
2454
2464
|
|
|
2455
2465
|
interface NfpApi {
|
|
@@ -2523,6 +2533,7 @@ interface NfpApi {
|
|
|
2523
2533
|
rvResourceService: RvResourceServiceApi;
|
|
2524
2534
|
rvModelService: RvModelServiceApi;
|
|
2525
2535
|
rvAttributesService: RvAttributesServiceApi;
|
|
2536
|
+
rvNodeMaterialAnalyzer: RvNodeMaterialAnalyzerApi;
|
|
2526
2537
|
};
|
|
2527
2538
|
target: {
|
|
2528
2539
|
tStepService: TStepServiceApi;
|
|
@@ -2589,6 +2600,22 @@ interface NfpApi {
|
|
|
2589
2600
|
|
|
2590
2601
|
type NodeMaterialChangeListener = (nid: string, fid: string, material: NodeMaterial) => void;
|
|
2591
2602
|
|
|
2603
|
+
interface TextureInfo {
|
|
2604
|
+
fid: string;
|
|
2605
|
+
localUrl: string;
|
|
2606
|
+
texture: Texture;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
interface RsTextureServiceApi {
|
|
2610
|
+
get(fid: string): TextureInfo | null;
|
|
2611
|
+
getWhiteTexture(): DynamicTexture;
|
|
2612
|
+
getBlackTexture(): DynamicTexture;
|
|
2613
|
+
add(fid: string): Promise<TextureInfo | null>;
|
|
2614
|
+
getTexture(fid: string, without: number): Promise<Texture | null>;
|
|
2615
|
+
pushTexture(fid: string, texture: Texture, url: string): TextureInfo;
|
|
2616
|
+
remove(fid: string): void;
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2592
2619
|
interface ContextMenuServiceApi {
|
|
2593
2620
|
/**
|
|
2594
2621
|
* 当前所有右键菜单
|
|
@@ -2801,7 +2828,7 @@ interface RvMeetingServiceApi {
|
|
|
2801
2828
|
CLICK_ALLOW_DELAY: number;
|
|
2802
2829
|
meetings: RecursiveMap<RvMeeting>;
|
|
2803
2830
|
currentMeeting: StoredRhineVar<RvMeeting> | null;
|
|
2804
|
-
getRvMeetingById(id: string): RvMeeting |
|
|
2831
|
+
getRvMeetingById(id: string): StoredRhineVar<RvMeeting> | null;
|
|
2805
2832
|
setConfigByCurrentMeeting(): boolean;
|
|
2806
2833
|
generateId(): string;
|
|
2807
2834
|
removeAllMeetings(): void;
|
|
@@ -2835,6 +2862,18 @@ interface DrawerPlugin extends IconPlugin {
|
|
|
2835
2862
|
onTitleContextMenu?: () => void;
|
|
2836
2863
|
}
|
|
2837
2864
|
|
|
2865
|
+
interface C3 {
|
|
2866
|
+
r: number;
|
|
2867
|
+
g: number;
|
|
2868
|
+
b: number;
|
|
2869
|
+
}
|
|
2870
|
+
interface C4 {
|
|
2871
|
+
r: number;
|
|
2872
|
+
g: number;
|
|
2873
|
+
b: number;
|
|
2874
|
+
a: number;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2838
2877
|
declare function computeSHA256(buffer: BufferSource): Promise<string>;
|
|
2839
2878
|
declare const CryptoUtils: {
|
|
2840
2879
|
computeSHA256: typeof computeSHA256;
|
|
@@ -3020,4 +3059,4 @@ declare const VectorUtils: {
|
|
|
3020
3059
|
toArrayWithRound4: typeof toArrayWithRound4;
|
|
3021
3060
|
};
|
|
3022
3061
|
|
|
3023
|
-
export { acceptMime as AcceptMime, type AddLocalDataOptionInterface as AddLocalDataOption, type AnchorProps, type AntCheckboxProps, type AntColorProps, type AntEmptyProps, type AntNumberProps, type AntSelectProps, type AntSwitchProps, type BasePlugin, type BasePluginConfig, type BuiltInPluginConfig, type CameraConfigurationAnimationApi, type CameraLocationAnimationApi, ContextMenu, type ContextMenuController, type ContextMenuCreateOptions, type ContextMenuProps, type ContextMenuServiceApi, CryptoUtils, DataUtils, Dialog, type DialogController, type DialogCreateOptions, type DialogPlugin, type DialogProps, type DialogServiceApi, type DivProps, type DivPropsSimple, type DrawerPlugin, type EasyPropertyAnimationApi, type ExternalPluginConfig, type FileData, type FileProgressBarProps, FileUtils, type FirstLoadModelServiceApi, FirstLoadModelServiceEventType, FirstLoadModelServiceStatus, type FirstLoadModelServiceSubscriber, type FirstLoadServiceApi, FirstLoadServiceEventType, FirstLoadServiceStatus, type FirstLoadServiceSubscriber, type FlexGrowProps, FocusMode, type FogAnimationApi, type GroundAnimationApi, type HighLightInfo, type HistoryServiceApi, HistoryServiceEventType, type HistoryServiceStateSubscriber, type HistoryServiceSubscriber, type IconPlugin, IconPluginPosition, type InternationalizationServiceApi, LabelInfo, LabelTheme, type LastSubscriber, type LightAnimationApi, type LocalData, type LocalDataServiceApi, LocalDataServiceEventType, type LocalDataServiceSubscriber, LocalDataStatus, LocalDataType, Locale, type MainPortalProps, type MaterialSymbolFunction, type MaterialSymbolOptions, type MaterialSymbolProps, MathUtils, type Meeting, type MeetingServiceApi, MeetingStatus, MenuLine, type MenuLineCreateOptions, MenuLineType, Message, type MessageServiceApi, type MessageState, type MessageType, type ModulePreloaderApi, type NativeAnyEventSubscriber, type NativeDragEventSubscriber, type NativeEventServiceApi, NativeEventUtils, type NativeFocusEventSubscriber, type NativeKeyboardEventSubscriber, type NativeMouseEventSubscriber, type NativePointerEventSubscriber, type NativeUIEventSubscriber, type NativeWheelEventSubscriber, NetworkUtils, type NfpApi, type NodeMaterialChangeListener, type NodeMaterialInfo, type NodePair, NumberUtils, type OssUploadInstance, OssUploadInstanceStatus, type OssUploadServiceApi, OssUploadServiceEventType, type OssUploadServiceSubscriber, type Page, PageMode, PageType, PageUtils, type PluginConfig, type PluginConnectorApi, type PluginContainerServiceApi, PluginEventType, PluginFrom, type PluginServiceApi, type PluginServiceSubscriber, type PluginState, PluginType, type PluginViewProps, type ProgressBarProps, type ResourcePreviewProps, type ResourceServiceApi, type RsAudioServiceApi, type RsClickApi, type RsEnvironmentApi, type RsEnvironmentServiceApi, type RsLabelServiceApi, type RsLoopAnimationManagerApi, type RsMaterialServiceApi, type RsModel, type RsModelServiceApi, RsModelServiceEventType, type RsModelServiceSubscriber, RsModelStatus, type RsNodeMaterialManagerApi, type RsNodeServiceApi, type RsSelectionNodeInfo, type RsSelectionServiceApi, type RsSelectionState, type RsSeparateServiceApi, type RsServiceApi, type RsTransformGroundApi, type RsdButtonProps, type RsdCheckableButtonProps, type RsdCheckboxProps, type RsdColorProps, type RsdFileSelectProps, type RsdInputProps, type RsdMentionsProps, type RsdNoneProps, type RsdNumberListProps, type RsdNumberProps, type RsdSelectProps, type RsdSwitchProps, type RsdTitleProps, RvAttachType, type RvAttributes, type RvAttributesServiceApi, type RvAudio, type RvAwareness, type RvAwarenessClick, type RvAwarenessUser, type RvBase, type RvBasicConfig, RvBasicType, type RvCamera, type RvCameraLocation, type RvCode, type RvCodeAttributeApi, type RvConfiguration, type RvEnvironment, type RvFile, type RvFileServiceApi, RvFileServiceEventType, type RvFileServiceSubscriber, RvFileType, type RvGlobal, type RvGlobalServiceApi, type RvHistory, type RvLabel, type RvLabelAttributeApi, type RvLocation, type RvLocationAttributeApi, type RvLoop, type RvLoopAttributeApi, type RvMaterial, type RvMaterialAttributeApi, type RvMaterialGeneral, type RvMaterialNode, type RvMaterialNodeInput, type RvMaterialPBR, type RvMaterialTexture, RvMaterialType, type RvMeeting, type RvMeetingCurrent, type RvMeetingServiceApi, type RvMeetingStatistic, type RvModel, RvModelOrigin, type RvModelServiceApi, type RvNative, type RvNativeAttributeApi, type RvNode, RvPresetType, type RvResource, type RvResourceServiceApi, RvResourceServiceEventType, type RvResourceServiceSubscriber, RvResourceType, type RvSceneNode, type RvSeparate, type RvStep, type RvStepServiceApi, RvUtils, type RvVersion, type SceneServiceApi, type Screen, ScreenSize, type ScrollBarProps, type SelectedSubscriber, type ShadowAnimationApi, ShareMode, type SkyboxAnimationApi, type SpaceServiceApi, type SpanProps, type SpanPropsSimple, type Status, type StatusChangeSubscriber, type StatusServiceApi, type StepChangeSubscriber, type StepOptions, type SupportAnimationTarget, type SyncServiceApi, type TAttributesServiceApi, type TAttributesSubscriber, TChangeType, type TStepServiceApi, type TSubscriber, ThemeBackground, ThemeColor, type ThemeProviderProps, type ThemeServiceApi, ThemeShape, type ThemeState, TimeUtils, type Translator, type UploadButtonAndListProps, UrlUtils, type UseBase, type UseStepOptions, type UseTAttributes, type UseTStep, type UserAuth, type UserInfo, type UserServiceApi, type V2, type V3, type V4, VectorUtils, type ViewPlugin, sleep, throttle };
|
|
3062
|
+
export { acceptMime as AcceptMime, type AddLocalDataOptionInterface as AddLocalDataOption, type AnchorProps, type AntCheckboxProps, type AntColorProps, type AntEmptyProps, type AntNumberProps, type AntSelectProps, type AntSwitchProps, type BasePlugin, type BasePluginConfig, type BuiltInPluginConfig, type C3, type C4, type CameraConfigurationAnimationApi, type CameraLocationAnimationApi, ContextMenu, type ContextMenuController, type ContextMenuCreateOptions, type ContextMenuProps, type ContextMenuServiceApi, CryptoUtils, DataUtils, Dialog, type DialogController, type DialogCreateOptions, type DialogPlugin, type DialogProps, type DialogServiceApi, type DivProps, type DivPropsSimple, type DrawerPlugin, type EasyPropertyAnimationApi, type ExternalPluginConfig, type FileData, type FileProgressBarProps, FileUtils, type FirstLoadModelServiceApi, FirstLoadModelServiceEventType, FirstLoadModelServiceStatus, type FirstLoadModelServiceSubscriber, type FirstLoadServiceApi, FirstLoadServiceEventType, FirstLoadServiceStatus, type FirstLoadServiceSubscriber, type FlexGrowProps, FocusMode, type FogAnimationApi, type GroundAnimationApi, type HighLightInfo, type HistoryServiceApi, HistoryServiceEventType, type HistoryServiceStateSubscriber, type HistoryServiceSubscriber, type IconPlugin, IconPluginPosition, type InternationalizationServiceApi, LabelInfo, LabelTheme, type LastSubscriber, type LightAnimationApi, type LocalData, type LocalDataServiceApi, LocalDataServiceEventType, type LocalDataServiceSubscriber, LocalDataStatus, LocalDataType, Locale, type MainPortalProps, type MaterialSymbolFunction, type MaterialSymbolOptions, type MaterialSymbolProps, MathUtils, type Meeting, type MeetingServiceApi, MeetingStatus, MenuLine, type MenuLineCreateOptions, MenuLineType, Message, type MessageServiceApi, type MessageState, type MessageType, type ModulePreloaderApi, type NativeAnyEventSubscriber, type NativeDragEventSubscriber, type NativeEventServiceApi, NativeEventUtils, type NativeFocusEventSubscriber, type NativeKeyboardEventSubscriber, type NativeMouseEventSubscriber, type NativePointerEventSubscriber, type NativeUIEventSubscriber, type NativeWheelEventSubscriber, NetworkUtils, type NfpApi, type NodeMaterialChangeListener, type NodeMaterialInfo, type NodePair, NumberUtils, type OssUploadInstance, OssUploadInstanceStatus, type OssUploadServiceApi, OssUploadServiceEventType, type OssUploadServiceSubscriber, type Page, PageMode, PageType, PageUtils, type PluginConfig, type PluginConnectorApi, type PluginContainerServiceApi, PluginEventType, PluginFrom, type PluginServiceApi, type PluginServiceSubscriber, type PluginState, PluginType, type PluginViewProps, type ProgressBarProps, type ResourcePreviewProps, type ResourceServiceApi, type RsAudioServiceApi, type RsClickApi, type RsEnvironmentApi, type RsEnvironmentServiceApi, type RsLabelServiceApi, type RsLoopAnimationManagerApi, type RsMaterialServiceApi, type RsModel, type RsModelServiceApi, RsModelServiceEventType, type RsModelServiceSubscriber, RsModelStatus, type RsNodeMaterialManagerApi, type RsNodeServiceApi, type RsSelectionNodeInfo, type RsSelectionServiceApi, type RsSelectionState, type RsSeparateServiceApi, type RsServiceApi, type RsTextureServiceApi, type RsTransformGroundApi, type RsdButtonProps, type RsdCheckableButtonProps, type RsdCheckboxProps, type RsdColorProps, type RsdFileSelectProps, type RsdInputProps, type RsdMentionsProps, type RsdNoneProps, type RsdNumberListProps, type RsdNumberProps, type RsdSelectProps, type RsdSwitchProps, type RsdTitleProps, RvAttachType, type RvAttributes, type RvAttributesServiceApi, type RvAudio, type RvAwareness, type RvAwarenessClick, type RvAwarenessUser, type RvBase, type RvBasicConfig, RvBasicType, type RvCamera, type RvCameraLocation, type RvCode, type RvCodeAttributeApi, type RvConfiguration, type RvEnvironment, type RvFile, type RvFileServiceApi, RvFileServiceEventType, type RvFileServiceSubscriber, RvFileType, type RvGlobal, type RvGlobalServiceApi, type RvHistory, type RvLabel, type RvLabelAttributeApi, type RvLocation, type RvLocationAttributeApi, type RvLoop, type RvLoopAttributeApi, type RvMaterial, type RvMaterialAttributeApi, type RvMaterialGeneral, type RvMaterialNode, type RvMaterialNodeInput, type RvMaterialPBR, type RvMaterialTexture, RvMaterialType, type RvMeeting, type RvMeetingCurrent, type RvMeetingServiceApi, type RvMeetingStatistic, type RvModel, RvModelOrigin, type RvModelServiceApi, type RvNative, type RvNativeAttributeApi, type RvNode, type RvNodeMaterialAnalyzerApi, RvPresetType, type RvResource, type RvResourceServiceApi, RvResourceServiceEventType, type RvResourceServiceSubscriber, RvResourceType, type RvSceneNode, type RvSeparate, type RvStep, type RvStepServiceApi, RvUtils, type RvVersion, type SceneServiceApi, type Screen, ScreenSize, type ScrollBarProps, type SelectedSubscriber, type ShadowAnimationApi, ShareMode, type SkyboxAnimationApi, type SpaceServiceApi, type SpanProps, type SpanPropsSimple, type Status, type StatusChangeSubscriber, type StatusServiceApi, type StepChangeSubscriber, type StepOptions, type SupportAnimationTarget, type SyncServiceApi, type TAttributesServiceApi, type TAttributesSubscriber, TChangeType, type TStepServiceApi, type TSubscriber, type TextureInfo, ThemeBackground, ThemeColor, type ThemeProviderProps, type ThemeServiceApi, ThemeShape, type ThemeState, TimeUtils, type Translator, type UploadButtonAndListProps, UrlUtils, type UseBase, type UseStepOptions, type UseTAttributes, type UseTStep, type UserAuth, type UserInfo, type UserServiceApi, type V2, type V3, type V4, VectorUtils, type ViewPlugin, sleep, throttle };
|
package/package.json
CHANGED