next-flow-interface 0.17.22 → 0.17.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -10
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { SwitchProps, EmptyProps, InputNumberProps, SelectProps } from 'antd';
2
2
  import { ColorPickerProps, Color } from 'antd/es/color-picker';
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, Attributes } from 'react';
3
+ import React$1, { ReactNode, MouseEventHandler, DetailedHTMLProps, HTMLAttributes, FunctionComponent, MouseEvent as MouseEvent$1, Attributes } 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, Texture, DynamicTexture, Engine, WebXRDefaultExperience, 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, Texture, DynamicTexture, Engine, WebGPUEngine, WebXRDefaultExperience, 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 { Root } from 'react-dom/client';
@@ -326,7 +326,9 @@ interface ResourcePreviewProps extends DivProps {
326
326
  interface ScrollBarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
327
327
  children: ReactNode | undefined;
328
328
  className?: string;
329
- drawer?: boolean;
329
+ innerClassName?: string;
330
+ barPaddingStart?: string;
331
+ barPaddingEnd?: string;
330
332
  }
331
333
 
332
334
  interface UploadButtonAndListProps {
@@ -1248,11 +1250,14 @@ interface RsModelServiceApi {
1248
1250
  interface RsServiceApi {
1249
1251
  canvas: HTMLCanvasElement | undefined;
1250
1252
  scene: Scene | undefined;
1251
- engine: Engine | undefined;
1253
+ engine: Engine | WebGPUEngine | undefined;
1252
1254
  experience: WebXRDefaultExperience | null;
1253
1255
  state: {
1254
1256
  rendering: boolean;
1255
1257
  };
1258
+ isSupportWebXR(): boolean;
1259
+ isWebXRInitialized(): boolean;
1260
+ enterVR(onInitialize: () => void): Promise<void>;
1256
1261
  }
1257
1262
 
1258
1263
  interface ContextMenuServiceApi {
@@ -1504,9 +1509,9 @@ interface MessageServiceApi {
1504
1509
  show: (text: string, type: MessageType, duration?: number) => void;
1505
1510
  }
1506
1511
 
1507
- type NativeMouseEventSubscriber = (e: MouseEvent$1) => void;
1508
- type NativeDragEventSubscriber = (e: DragEvent$1) => void;
1509
- type NativeWheelEventSubscriber = (e: WheelEvent$1) => void;
1512
+ type NativeMouseEventSubscriber = (e: MouseEvent) => void;
1513
+ type NativeDragEventSubscriber = (e: DragEvent) => void;
1514
+ type NativeWheelEventSubscriber = (e: WheelEvent) => void;
1510
1515
  type NativePointerEventSubscriber = (e: PointerEvent) => void;
1511
1516
  type NativeKeyboardEventSubscriber = (e: KeyboardEvent) => void;
1512
1517
  type NativeFocusEventSubscriber = (e: FocusEvent) => void;
@@ -1627,9 +1632,9 @@ interface PluginContainerServiceApi {
1627
1632
  plugins: Map<string, PluginInformation>;
1628
1633
  addPlugin(plugin: BasePlugin): void;
1629
1634
  removePlugin(plugin: BasePlugin): void;
1630
- openPlugin(plugin: IconPlugin): boolean;
1631
- closePlugin(plugin: IconPlugin): boolean;
1632
- closeDrawerPluginByPosition(position: IconPluginPosition): boolean;
1635
+ openPlugin(plugin: IconPlugin): Promise<boolean>;
1636
+ closePlugin(plugin: IconPlugin): Promise<boolean>;
1637
+ closeDrawerPluginByPosition(position: IconPluginPosition): Promise<boolean>;
1633
1638
  }
1634
1639
 
1635
1640
  interface FileData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-flow-interface",
3
- "version": "0.17.22",
3
+ "version": "0.17.24",
4
4
  "description": "Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",