@ndmspc/ndmvr 1.1.0-rc.2 → 1.1.0-rc.4
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/ndmvr.d.ts +62 -29
- package/dist/ndmvr.es.js +8992 -9080
- package/dist/ndmvr.umd.js +36 -36
- package/package.json +2 -2
package/dist/ndmvr.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { canvasSubjectGet } from '@ndmspc/ndmvr-core';
|
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
5
|
import { configSubjectGet } from '@ndmspc/ndmvr-core';
|
|
6
6
|
import { Context } from 'react';
|
|
7
|
+
import { default as default_2 } from 'react';
|
|
7
8
|
import { DefaultXRControllerOptions } from '@pmndrs/xr';
|
|
8
9
|
import { DefaultXRGazeOptions } from '@pmndrs/xr';
|
|
9
10
|
import { DefaultXRHandOptions } from '@pmndrs/xr';
|
|
@@ -12,7 +13,6 @@ import { DefaultXRTransientPointerOptions } from '@pmndrs/xr';
|
|
|
12
13
|
import { functionSubjectGet } from '@ndmspc/ndmvr-core';
|
|
13
14
|
import { histogramSubjectGet } from '@ndmspc/ndmvr-core';
|
|
14
15
|
import { JSX } from 'react/jsx-runtime';
|
|
15
|
-
import { NdmvrRaycaster } from '@ndmspc/ndmvr-core';
|
|
16
16
|
import { Position } from '@ndmspc/ndmvr-core';
|
|
17
17
|
import { Rotation } from '@ndmspc/ndmvr-core';
|
|
18
18
|
import { Scale } from '@ndmspc/ndmvr-core';
|
|
@@ -20,16 +20,15 @@ import { stateSubjectGet } from '@ndmspc/ndmvr-core';
|
|
|
20
20
|
import * as THREE from 'three';
|
|
21
21
|
import { XRStore } from '@pmndrs/xr';
|
|
22
22
|
|
|
23
|
-
export declare function BinInfo({
|
|
23
|
+
export declare function BinInfo({ precision }: BinInfoProps): JSX.Element;
|
|
24
|
+
|
|
25
|
+
export declare namespace BinInfo {
|
|
26
|
+
var menuName: string;
|
|
27
|
+
var menuLabel: string;
|
|
28
|
+
}
|
|
24
29
|
|
|
25
30
|
export declare interface BinInfoProps {
|
|
26
|
-
originRef: React.RefObject<THREE.Group>;
|
|
27
31
|
precision?: number;
|
|
28
|
-
offset?: {
|
|
29
|
-
x: number;
|
|
30
|
-
y: number;
|
|
31
|
-
z: number;
|
|
32
|
-
};
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
export { binInfoSubjectGet }
|
|
@@ -68,15 +67,20 @@ export declare function Controllers({ originRef, cameraRef, setShowMenu, setShow
|
|
|
68
67
|
export declare interface ControllersProps {
|
|
69
68
|
originRef: React.RefObject<THREE.Group>;
|
|
70
69
|
cameraRef: React.RefObject<THREE.Camera>;
|
|
71
|
-
setShowMenu
|
|
72
|
-
setShowHelp
|
|
70
|
+
setShowMenu?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
71
|
+
setShowHelp?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
73
72
|
desktopSpeed?: number;
|
|
74
73
|
vrSpeed?: number;
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
export declare function
|
|
76
|
+
export declare function Demo(): JSX.Element;
|
|
78
77
|
|
|
79
|
-
export declare
|
|
78
|
+
export declare namespace Demo {
|
|
79
|
+
var menuName: string;
|
|
80
|
+
var menuLabel: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export declare function DesktopController({ originRef, cameraRef, speed, }: DesktopControllerProps): any;
|
|
80
84
|
|
|
81
85
|
export declare interface DesktopControllerProps {
|
|
82
86
|
originRef: React.RefObject<THREE.Group>;
|
|
@@ -86,8 +90,26 @@ export declare interface DesktopControllerProps {
|
|
|
86
90
|
onToggleHelp?: () => void;
|
|
87
91
|
}
|
|
88
92
|
|
|
93
|
+
export declare function DrawOptions(): JSX.Element;
|
|
94
|
+
|
|
95
|
+
export declare namespace DrawOptions {
|
|
96
|
+
var menuName: string;
|
|
97
|
+
var menuLabel: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
89
100
|
export { functionSubjectGet }
|
|
90
101
|
|
|
102
|
+
export declare function HelperTips({ originRef }: HelperTipsProps): JSX.Element;
|
|
103
|
+
|
|
104
|
+
export declare namespace HelperTips {
|
|
105
|
+
var menuName: string;
|
|
106
|
+
var menuLabel: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare interface HelperTipsProps {
|
|
110
|
+
originRef?: default_2.RefObject<THREE.Group> | null;
|
|
111
|
+
}
|
|
112
|
+
|
|
91
113
|
export declare const HistogramContext: Context<any>;
|
|
92
114
|
|
|
93
115
|
export { histogramSubjectGet }
|
|
@@ -98,6 +120,13 @@ export declare interface HistogramWrapperProps {
|
|
|
98
120
|
id: string;
|
|
99
121
|
}
|
|
100
122
|
|
|
123
|
+
export declare function HttpConnectionMenu(): JSX.Element;
|
|
124
|
+
|
|
125
|
+
export declare namespace HttpConnectionMenu {
|
|
126
|
+
var menuName: string;
|
|
127
|
+
var menuLabel: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
101
130
|
export declare const IframeCernboxService: ({ targetOrigin, onConfigLoad }: IframeServiceProps_2) => any;
|
|
102
131
|
|
|
103
132
|
declare interface IframeMessage {
|
|
@@ -121,20 +150,19 @@ declare interface IframeServiceProps_2 {
|
|
|
121
150
|
|
|
122
151
|
export declare function JsrootEnv(): JSX.Element;
|
|
123
152
|
|
|
124
|
-
export declare function Menu({
|
|
153
|
+
export declare function Menu({ children, defaultOpen, initialTabHelp, originRef, offset, scale, }: MenuProps): JSX.Element;
|
|
125
154
|
|
|
126
155
|
export declare interface MenuProps {
|
|
127
|
-
|
|
156
|
+
children?: React.ReactNode;
|
|
157
|
+
defaultOpen?: boolean;
|
|
158
|
+
initialTabHelp?: boolean;
|
|
159
|
+
originRef?: React.RefObject<THREE.Group> | null;
|
|
128
160
|
offset?: {
|
|
129
161
|
x: number;
|
|
130
162
|
y: number;
|
|
131
163
|
z: number;
|
|
132
164
|
};
|
|
133
|
-
|
|
134
|
-
currentConfig?: NdmvrConfig | null;
|
|
135
|
-
onConfigChange?: ((config: Record<string, unknown>) => void) | null;
|
|
136
|
-
openHelp?: () => void;
|
|
137
|
-
help?: boolean;
|
|
165
|
+
scale?: number;
|
|
138
166
|
}
|
|
139
167
|
|
|
140
168
|
export declare interface NdmspcConfig {
|
|
@@ -186,14 +214,14 @@ export declare interface NdmvrConfig {
|
|
|
186
214
|
config?: object;
|
|
187
215
|
}
|
|
188
216
|
|
|
189
|
-
export declare function NdmvrContent(
|
|
217
|
+
export declare function NdmvrContent({ children }: {
|
|
218
|
+
children?: React.ReactNode | null;
|
|
219
|
+
}): JSX.Element;
|
|
190
220
|
|
|
191
|
-
export declare function NdmvrEnv({ children,
|
|
221
|
+
export declare function NdmvrEnv({ children, browser, hierarchy, rootNode, hierarchyDocRef, onSelectItem, }: NdmvrEnvProps): JSX.Element;
|
|
192
222
|
|
|
193
223
|
export declare interface NdmvrEnvProps {
|
|
194
224
|
children?: React.ReactNode;
|
|
195
|
-
menu?: boolean;
|
|
196
|
-
help?: boolean;
|
|
197
225
|
browser?: boolean;
|
|
198
226
|
showUIExternal?: boolean;
|
|
199
227
|
currentConfig?: NdmvrConfig;
|
|
@@ -205,13 +233,11 @@ export declare interface NdmvrEnvProps {
|
|
|
205
233
|
onSelectItem?: (path: string) => void;
|
|
206
234
|
}
|
|
207
235
|
|
|
208
|
-
export declare function
|
|
236
|
+
export declare function SettingsPanel(): JSX.Element;
|
|
209
237
|
|
|
210
|
-
export declare
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
doubleClickMs?: number;
|
|
214
|
-
handedness?: "left" | "right" | "none";
|
|
238
|
+
export declare namespace SettingsPanel {
|
|
239
|
+
var menuName: string;
|
|
240
|
+
var menuLabel: string;
|
|
215
241
|
}
|
|
216
242
|
|
|
217
243
|
export { stateSubjectGet }
|
|
@@ -241,4 +267,11 @@ export declare interface VRControllerProps {
|
|
|
241
267
|
onToggleHelp?: () => void;
|
|
242
268
|
}
|
|
243
269
|
|
|
270
|
+
export declare function WsConnectionMenu(): JSX.Element;
|
|
271
|
+
|
|
272
|
+
export declare namespace WsConnectionMenu {
|
|
273
|
+
var menuName: string;
|
|
274
|
+
var menuLabel: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
244
277
|
export { }
|