vim-web 0.3.44-dev.8 → 0.3.44-dev.80
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/README.md +2 -2
- package/dist/style.css +47 -33
- package/dist/types/core-viewers/index.d.ts +3 -0
- package/dist/types/core-viewers/{webgl/viewer/inputs/inputHandler.d.ts → shared/baseInputHandler.d.ts} +6 -6
- package/dist/types/core-viewers/shared/index.d.ts +9 -0
- package/dist/types/core-viewers/shared/inputHandler.d.ts +118 -0
- package/dist/types/core-viewers/shared/keyboardHandler.d.ts +96 -0
- package/dist/types/core-viewers/shared/mouseHandler.d.ts +26 -0
- package/dist/types/core-viewers/shared/raycaster.d.ts +13 -0
- package/dist/types/core-viewers/shared/selection.d.ts +105 -0
- package/dist/types/core-viewers/{webgl/viewer/inputs → shared}/touchHandler.d.ts +15 -18
- package/dist/types/core-viewers/shared/vim.d.ts +35 -0
- package/dist/types/core-viewers/ultra/{viewer/camera.d.ts → camera.d.ts} +14 -4
- package/dist/types/core-viewers/ultra/{viewer/colorManager.d.ts → colorManager.d.ts} +6 -6
- package/dist/types/core-viewers/ultra/{viewer/decoder.d.ts → decoder.d.ts} +0 -8
- package/dist/types/core-viewers/ultra/element3d.d.ts +15 -0
- package/dist/types/core-viewers/ultra/index.d.ts +28 -8
- package/dist/types/core-viewers/ultra/inputAdapter.d.ts +5 -0
- package/dist/types/core-viewers/ultra/nodeState.d.ts +113 -0
- package/dist/types/core-viewers/ultra/raycaster.d.ts +52 -0
- package/dist/types/core-viewers/ultra/{viewer/color.d.ts → remoteColor.d.ts} +3 -3
- package/dist/types/core-viewers/ultra/{viewer/renderer.d.ts → renderer.d.ts} +9 -3
- package/dist/types/core-viewers/ultra/{viewer/rpcClient.d.ts → rpcClient.d.ts} +27 -28
- package/dist/types/core-viewers/ultra/rpcMarshal.d.ts +62 -0
- package/dist/types/core-viewers/ultra/{viewer/rpcSafeClient.d.ts → rpcSafeClient.d.ts} +22 -23
- package/dist/types/core-viewers/ultra/{utils/math3d.d.ts → rpcTypes.d.ts} +22 -22
- package/dist/types/core-viewers/ultra/{viewer/sectionBox.d.ts → sectionBox.d.ts} +7 -2
- package/dist/types/core-viewers/ultra/selection.d.ts +4 -0
- package/dist/types/core-viewers/ultra/{viewer/socketClient.d.ts → socketClient.d.ts} +4 -11
- package/dist/types/core-viewers/ultra/{viewer/viewer.d.ts → viewer.d.ts} +16 -13
- package/dist/types/core-viewers/ultra/vim.d.ts +48 -0
- package/dist/types/core-viewers/webgl/index.d.ts +2 -21
- package/dist/types/core-viewers/webgl/loader/{colorAttributes.d.ts → colorAttribute.d.ts} +4 -4
- package/dist/types/core-viewers/webgl/loader/{object3D.d.ts → element3d.d.ts} +12 -9
- package/dist/types/core-viewers/webgl/loader/geometry.d.ts +76 -78
- package/dist/types/core-viewers/webgl/loader/index.d.ts +24 -0
- package/dist/types/core-viewers/webgl/loader/materials/index.d.ts +9 -0
- package/dist/types/core-viewers/webgl/loader/materials/{viewerMaterials.d.ts → materials.d.ts} +5 -5
- package/dist/types/core-viewers/webgl/loader/mesh.d.ts +7 -7
- package/dist/types/core-viewers/webgl/loader/progressive/insertableGeometry.d.ts +2 -2
- package/dist/types/core-viewers/webgl/loader/progressive/insertableMesh.d.ts +1 -1
- package/dist/types/core-viewers/webgl/loader/progressive/insertableSubmesh.d.ts +1 -1
- package/dist/types/core-viewers/webgl/loader/progressive/instancedMesh.d.ts +1 -1
- package/dist/types/core-viewers/webgl/loader/progressive/instancedSubmesh.d.ts +1 -1
- package/dist/types/core-viewers/webgl/loader/progressive/legacyMeshFactory.d.ts +2 -2
- package/dist/types/core-viewers/webgl/loader/progressive/subsetBuilder.d.ts +2 -2
- package/dist/types/core-viewers/webgl/loader/progressive/subsetRequest.d.ts +2 -2
- package/dist/types/core-viewers/webgl/loader/progressive/vimRequest.d.ts +3 -3
- package/dist/types/core-viewers/webgl/loader/scene.d.ts +11 -14
- package/dist/types/core-viewers/webgl/loader/vim.d.ts +16 -20
- package/dist/types/core-viewers/webgl/loader/vimSettings.d.ts +2 -2
- package/dist/types/core-viewers/webgl/loader/{objectAttributes.d.ts → webglAttribute.d.ts} +4 -4
- package/dist/types/core-viewers/webgl/viewer/camera/camera.d.ts +8 -113
- package/dist/types/core-viewers/webgl/viewer/camera/{ICamera.d.ts → cameraInterface.d.ts} +0 -4
- package/dist/types/core-viewers/webgl/viewer/camera/cameraMovement.d.ts +5 -5
- package/dist/types/core-viewers/webgl/viewer/camera/cameraMovementLerp.d.ts +2 -2
- package/dist/types/core-viewers/webgl/viewer/camera/cameraMovementSnap.d.ts +2 -2
- package/dist/types/core-viewers/webgl/viewer/camera/{orthographic.d.ts → cameraOrthographic.d.ts} +1 -1
- package/dist/types/core-viewers/webgl/viewer/camera/{perspective.d.ts → cameraPerspective.d.ts} +1 -1
- package/dist/types/core-viewers/webgl/viewer/camera/index.d.ts +7 -0
- package/dist/types/core-viewers/webgl/viewer/environment/environment.d.ts +5 -5
- package/dist/types/core-viewers/webgl/viewer/environment/index.d.ts +3 -0
- package/dist/types/core-viewers/webgl/viewer/environment/{cameraLight.d.ts → light.d.ts} +2 -2
- package/dist/types/core-viewers/webgl/viewer/environment/skybox.d.ts +3 -3
- package/dist/types/core-viewers/webgl/viewer/gizmos/axes/axesSettings.d.ts +3 -2
- package/dist/types/core-viewers/webgl/viewer/gizmos/axes/gizmoAxes.d.ts +3 -1
- package/dist/types/core-viewers/webgl/viewer/gizmos/axes/index.d.ts +3 -0
- package/dist/types/core-viewers/webgl/viewer/gizmos/gizmoOrbit.d.ts +2 -2
- package/dist/types/core-viewers/webgl/viewer/gizmos/gizmos.d.ts +0 -5
- package/dist/types/core-viewers/webgl/viewer/gizmos/index.d.ts +7 -0
- package/dist/types/core-viewers/webgl/viewer/gizmos/markers/gizmoMarker.d.ts +63 -15
- package/dist/types/core-viewers/webgl/viewer/gizmos/markers/gizmoMarkers.d.ts +30 -7
- package/dist/types/core-viewers/webgl/viewer/gizmos/markers/index.d.ts +2 -0
- package/dist/types/core-viewers/webgl/viewer/gizmos/measure/index.d.ts +3 -0
- package/dist/types/core-viewers/webgl/viewer/gizmos/measure/measure.d.ts +10 -16
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/index.d.ts +7 -0
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBox.d.ts +4 -5
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxGizmo.d.ts +1 -1
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxHandle.d.ts +6 -4
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxHandles.d.ts +1 -1
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxInputs.d.ts +3 -40
- package/dist/types/core-viewers/webgl/viewer/index.d.ts +10 -0
- package/dist/types/core-viewers/webgl/viewer/inputsAdapter.d.ts +3 -0
- package/dist/types/core-viewers/webgl/viewer/raycaster.d.ts +37 -57
- package/dist/types/core-viewers/webgl/viewer/rendering/index.d.ts +4 -0
- package/dist/types/core-viewers/webgl/viewer/rendering/mergePass.d.ts +2 -2
- package/dist/types/core-viewers/webgl/viewer/rendering/renderScene.d.ts +8 -8
- package/dist/types/core-viewers/webgl/viewer/rendering/renderer.d.ts +9 -6
- package/dist/types/core-viewers/webgl/viewer/rendering/renderingComposer.d.ts +2 -2
- package/dist/types/core-viewers/webgl/viewer/rendering/renderingSection.d.ts +2 -2
- package/dist/types/core-viewers/webgl/viewer/selection.d.ts +6 -89
- package/dist/types/core-viewers/webgl/viewer/settings/index.d.ts +3 -0
- package/dist/types/core-viewers/webgl/viewer/settings/{defaultViewerSettings.d.ts → viewerDefaultSettings.d.ts} +1 -1
- package/dist/types/core-viewers/webgl/viewer/settings/viewerSettings.d.ts +2 -9
- package/dist/types/core-viewers/webgl/viewer/settings/viewerSettingsParsing.d.ts +1 -1
- package/dist/types/core-viewers/webgl/viewer/viewer.d.ts +13 -13
- package/dist/types/index.d.ts +2 -3
- package/dist/types/react-viewers/bim/bimInfoData.d.ts +2 -2
- package/dist/types/react-viewers/bim/bimInfoObject.d.ts +4 -4
- package/dist/types/react-viewers/bim/bimInfoPanel.d.ts +3 -3
- package/dist/types/react-viewers/bim/bimInfoVim.d.ts +4 -4
- package/dist/types/react-viewers/bim/bimPanel.d.ts +13 -13
- package/dist/types/react-viewers/bim/bimSearch.d.ts +2 -2
- package/dist/types/react-viewers/bim/bimTree.d.ts +10 -8
- package/dist/types/react-viewers/bim/bimTreeData.d.ts +5 -4
- package/dist/types/react-viewers/bim/index.d.ts +8 -0
- package/dist/types/react-viewers/container.d.ts +3 -3
- package/dist/types/react-viewers/controlbar/controlBar.d.ts +10 -4
- package/dist/types/react-viewers/controlbar/controlBarButton.d.ts +1 -4
- package/dist/types/react-viewers/controlbar/controlBarIds.d.ts +36 -27
- package/dist/types/react-viewers/controlbar/controlBarSection.d.ts +1 -4
- package/dist/types/react-viewers/controlbar/index.d.ts +6 -0
- package/dist/types/react-viewers/controlbar/style.d.ts +10 -0
- package/dist/types/react-viewers/errors/index.d.ts +2 -0
- package/dist/types/react-viewers/generic/genericField.d.ts +28 -0
- package/dist/types/react-viewers/generic/genericPanel.d.ts +12 -0
- package/dist/types/react-viewers/generic/index.d.ts +2 -0
- package/dist/types/react-viewers/generic/inputNumber.d.ts +5 -0
- package/dist/types/react-viewers/helpers/cameraObserver.d.ts +2 -2
- package/dist/types/react-viewers/helpers/cursor.d.ts +5 -3
- package/dist/types/react-viewers/helpers/customizer.d.ts +4 -0
- package/dist/types/react-viewers/helpers/element.d.ts +3 -2
- package/dist/types/react-viewers/helpers/index.d.ts +7 -0
- package/dist/types/react-viewers/helpers/layout.d.ts +24 -0
- package/dist/types/react-viewers/helpers/loadRequest.d.ts +6 -6
- package/dist/types/react-viewers/helpers/reactUtils.d.ts +285 -0
- package/dist/types/react-viewers/helpers/utils.d.ts +1 -1
- package/dist/types/react-viewers/{panels/icons.d.ts → icons.d.ts} +9 -0
- package/dist/types/react-viewers/index.d.ts +11 -6
- package/dist/types/react-viewers/panels/axesPanel.d.ts +4 -4
- package/dist/types/react-viewers/panels/contextMenu.d.ts +22 -14
- package/dist/types/react-viewers/panels/help.d.ts +2 -7
- package/dist/types/react-viewers/panels/index.d.ts +25 -0
- package/dist/types/react-viewers/panels/isolationPanel.d.ts +9 -0
- package/dist/types/react-viewers/panels/loadingBox.d.ts +5 -2
- package/dist/types/react-viewers/panels/messageBox.d.ts +1 -1
- package/dist/types/react-viewers/panels/modal.d.ts +9 -10
- package/dist/types/react-viewers/panels/restOfScreen.d.ts +1 -1
- package/dist/types/react-viewers/panels/sectionBoxPanel.d.ts +8 -2
- package/dist/types/react-viewers/{sidePanel → panels}/sidePanel.d.ts +3 -3
- package/dist/types/react-viewers/panels/toast.d.ts +3 -3
- package/dist/types/react-viewers/settings/index.d.ts +5 -0
- package/dist/types/react-viewers/settings/settings.d.ts +13 -52
- package/dist/types/react-viewers/settings/{menuSettings.d.ts → settingsPanel.d.ts} +3 -3
- package/dist/types/react-viewers/settings/settingsState.d.ts +8 -8
- package/dist/types/react-viewers/settings/settingsStorage.d.ts +6 -6
- package/dist/types/react-viewers/settings/userBoolean.d.ts +17 -0
- package/dist/types/react-viewers/state/cameraState.d.ts +24 -0
- package/dist/types/react-viewers/state/controlBarState.d.ts +36 -21
- package/dist/types/react-viewers/state/index.d.ts +9 -0
- package/dist/types/react-viewers/state/measureState.d.ts +2 -2
- package/dist/types/react-viewers/state/pointerState.d.ts +5 -5
- package/dist/types/react-viewers/state/sectionBoxState.d.ts +18 -18
- package/dist/types/react-viewers/state/sharedIsolation.d.ts +38 -0
- package/dist/types/react-viewers/state/viewerInputs.d.ts +3 -0
- package/dist/types/react-viewers/ultra/camera.d.ts +3 -0
- package/dist/types/react-viewers/ultra/controlBar.d.ts +6 -0
- package/dist/types/react-viewers/ultra/errors/ultraErrors.d.ts +3 -3
- package/dist/types/react-viewers/ultra/index.d.ts +2 -1
- package/dist/types/react-viewers/ultra/isolation.d.ts +3 -0
- package/dist/types/react-viewers/ultra/modal.d.ts +5 -0
- package/dist/types/react-viewers/ultra/sectionBox.d.ts +3 -0
- package/dist/types/react-viewers/ultra/viewer.d.ts +21 -0
- package/dist/types/react-viewers/ultra/viewerRef.d.ts +47 -0
- package/dist/types/react-viewers/urls.d.ts +1 -0
- package/dist/types/react-viewers/webgl/camera.d.ts +3 -0
- package/dist/types/react-viewers/webgl/index.d.ts +3 -8
- package/dist/types/react-viewers/webgl/inputsBindings.d.ts +8 -0
- package/dist/types/react-viewers/webgl/isolation.d.ts +2 -0
- package/dist/types/react-viewers/webgl/{webglLoading.d.ts → loading.d.ts} +9 -9
- package/dist/types/react-viewers/webgl/sectionBox.d.ts +3 -0
- package/dist/types/react-viewers/webgl/viewer.d.ts +28 -0
- package/dist/types/react-viewers/webgl/viewerRef.d.ts +107 -0
- package/dist/types/react-viewers/webgl/viewerState.d.ts +7 -5
- package/dist/types/utils/debounce.d.ts +30 -0
- package/dist/types/utils/index.d.ts +10 -0
- package/dist/types/utils/interfaces.d.ts +3 -0
- package/dist/types/utils/math3d.d.ts +19 -0
- package/dist/types/utils/partial.d.ts +7 -0
- package/dist/types/{core-viewers/webgl/utils/requestResult.d.ts → utils/result.d.ts} +1 -1
- package/dist/types/{core-viewers/webgl/utils → utils}/threeUtils.d.ts +1 -0
- package/dist/types/{core-viewers/ultra/utils → utils}/url.d.ts +2 -0
- package/dist/types/{core-viewers/ultra/utils → utils}/validation.d.ts +11 -10
- package/dist/vim-web.iife.js +17280 -17199
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +17288 -17207
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/core-viewers/ultra/utils/debounce.d.ts +0 -1
- package/dist/types/core-viewers/ultra/utils/deferredPromise.d.ts +0 -8
- package/dist/types/core-viewers/ultra/utils/result.d.ts +0 -11
- package/dist/types/core-viewers/ultra/viewer/inputs/InputTouch.d.ts +0 -25
- package/dist/types/core-viewers/ultra/viewer/inputs/inputHandler.d.ts +0 -7
- package/dist/types/core-viewers/ultra/viewer/inputs/inputKeyboard.d.ts +0 -20
- package/dist/types/core-viewers/ultra/viewer/inputs/inputMouse.d.ts +0 -21
- package/dist/types/core-viewers/ultra/viewer/inputs/inputs.d.ts +0 -27
- package/dist/types/core-viewers/ultra/viewer/marshal.d.ts +0 -86
- package/dist/types/core-viewers/ultra/viewer/selection.d.ts +0 -96
- package/dist/types/core-viewers/ultra/viewer/vim.d.ts +0 -111
- package/dist/types/core-viewers/webgl/utils/deferredPromise.d.ts +0 -8
- package/dist/types/core-viewers/webgl/viewer/gizmos/gizmoRectangle.d.ts +0 -51
- package/dist/types/core-viewers/webgl/viewer/gizmos/measure/measureFlow.d.ts +0 -36
- package/dist/types/core-viewers/webgl/viewer/inputs/input.d.ts +0 -128
- package/dist/types/core-viewers/webgl/viewer/inputs/keyboardHandler.d.ts +0 -113
- package/dist/types/core-viewers/webgl/viewer/inputs/mouseHandler.d.ts +0 -66
- package/dist/types/react-viewers/errors/errorUtils.d.ts +0 -2
- package/dist/types/react-viewers/helpers/camera.d.ts +0 -37
- package/dist/types/react-viewers/helpers/inputs.d.ts +0 -22
- package/dist/types/react-viewers/helpers/isolation.d.ts +0 -128
- package/dist/types/react-viewers/ultra/ultraComponent.d.ts +0 -47
- package/dist/types/react-viewers/ultra/ultraControlBarState.d.ts +0 -6
- package/dist/types/react-viewers/ultra/ultraModal.d.ts +0 -4
- package/dist/types/react-viewers/ultra/ultraSectionBoxState.d.ts +0 -3
- package/dist/types/react-viewers/webgl/webglComponent.d.ts +0 -28
- package/dist/types/react-viewers/webgl/webglComponentRef.d.ts +0 -118
- package/dist/types/react-viewers/webgl/webglSectionBoxState.d.ts +0 -3
- /package/dist/types/core-viewers/ultra/{viewer/decoderWithWorker.d.ts → decoderWithWorker.d.ts} +0 -0
- /package/dist/types/core-viewers/ultra/{viewer/loadRequest.d.ts → loadRequest.d.ts} +0 -0
- /package/dist/types/core-viewers/ultra/{viewer/logger.d.ts → logger.d.ts} +0 -0
- /package/dist/types/core-viewers/ultra/{viewer/protocol.d.ts → protocol.d.ts} +0 -0
- /package/dist/types/core-viewers/ultra/{viewer/streamLogger.d.ts → streamLogger.d.ts} +0 -0
- /package/dist/types/core-viewers/ultra/{viewer/streamRenderer.d.ts → streamRenderer.d.ts} +0 -0
- /package/dist/types/core-viewers/ultra/{viewer/viewport.d.ts → viewport.d.ts} +0 -0
- /package/dist/types/core-viewers/ultra/{viewer/vimCollection.d.ts → vimCollection.d.ts} +0 -0
- /package/dist/types/react-viewers/{sidePanel → state}/sideState.d.ts +0 -0
- /package/dist/types/{core-viewers/ultra/utils → utils}/array.d.ts +0 -0
- /package/dist/types/{core-viewers/ultra/utils → utils}/promise.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { LoadingError } from '../webgl/
|
|
1
|
+
import * as Core from '../../core-viewers';
|
|
2
|
+
import { LoadingError } from '../webgl/loading';
|
|
3
3
|
type RequestCallbacks = {
|
|
4
|
-
onProgress: (p:
|
|
4
|
+
onProgress: (p: Core.Webgl.IProgressLogs) => void;
|
|
5
5
|
onError: (e: LoadingError) => void;
|
|
6
6
|
onDone: () => void;
|
|
7
7
|
};
|
|
@@ -16,14 +16,14 @@ export declare class LoadRequest {
|
|
|
16
16
|
private _progressPromise;
|
|
17
17
|
private _isDone;
|
|
18
18
|
private _completionPromise;
|
|
19
|
-
constructor(callbacks: RequestCallbacks, source:
|
|
19
|
+
constructor(callbacks: RequestCallbacks, source: Core.Webgl.RequestSource, settings?: Core.Webgl.VimPartialSettings);
|
|
20
20
|
private startRequest;
|
|
21
21
|
private onProgress;
|
|
22
22
|
private onSuccess;
|
|
23
23
|
private onError;
|
|
24
24
|
private end;
|
|
25
|
-
getProgress(): AsyncGenerator<
|
|
26
|
-
getResult(): Promise<import("../../
|
|
25
|
+
getProgress(): AsyncGenerator<Core.Webgl.IProgressLogs, void, void>;
|
|
26
|
+
getResult(): Promise<import("../../utils").Result<Core.Webgl.Vim>>;
|
|
27
27
|
abort(): void;
|
|
28
28
|
}
|
|
29
29
|
export {};
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module state-action-refs
|
|
3
|
+
*
|
|
4
|
+
* This module exports various React hooks and TypeScript interfaces to create references for state,
|
|
5
|
+
* actions, and functions. These references allow you to store and manipulate values and functions,
|
|
6
|
+
* as well as dynamically inject additional behavior (using prepend and append methods) into their call chains.
|
|
7
|
+
*
|
|
8
|
+
* The provided hooks include:
|
|
9
|
+
* - useStateRef: A state reference with event dispatching and validation.
|
|
10
|
+
* - useActionRef: A reference for an action (a function with no arguments).
|
|
11
|
+
* - useArgActionRef: A reference for an action that accepts an argument.
|
|
12
|
+
* - useFuncRef: A reference for a function returning a value.
|
|
13
|
+
* - useAsyncFuncRef: A reference for an asynchronous function.
|
|
14
|
+
* - useArgFuncRef: A reference for a function that accepts an argument and returns a value.
|
|
15
|
+
*/
|
|
16
|
+
import { ISimpleEvent } from "ste-simple-events";
|
|
17
|
+
/**
|
|
18
|
+
* Interface for a state reference.
|
|
19
|
+
* Provides methods to get, set, and confirm the current state.
|
|
20
|
+
*/
|
|
21
|
+
export interface StateRef<T> {
|
|
22
|
+
/**
|
|
23
|
+
* Returns the current state value.
|
|
24
|
+
*/
|
|
25
|
+
get(): T;
|
|
26
|
+
/**
|
|
27
|
+
* Updates the state to the provided value.
|
|
28
|
+
* @param value - The new state value.
|
|
29
|
+
*/
|
|
30
|
+
set(value: T): void;
|
|
31
|
+
/**
|
|
32
|
+
* Confirms the current state (potentially applying a confirmation transformation).
|
|
33
|
+
*/
|
|
34
|
+
confirm(): void;
|
|
35
|
+
onChange: ISimpleEvent<T>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A basic implementation of StateRef<T> without React.
|
|
39
|
+
*/
|
|
40
|
+
export declare class MutableState<T> implements StateRef<T> {
|
|
41
|
+
private _value;
|
|
42
|
+
private _onChange;
|
|
43
|
+
constructor(initial: T);
|
|
44
|
+
get(): T;
|
|
45
|
+
set(value: T): void;
|
|
46
|
+
confirm(): void;
|
|
47
|
+
get onChange(): ISimpleEvent<T>;
|
|
48
|
+
}
|
|
49
|
+
export interface StateRefresher {
|
|
50
|
+
refresh: () => void;
|
|
51
|
+
}
|
|
52
|
+
export declare function useRefresher(): StateRefresher;
|
|
53
|
+
/**
|
|
54
|
+
* A custom hook that creates a state reference.
|
|
55
|
+
* The reference provides access to the state, along with event dispatching, validation, and confirmation logic.
|
|
56
|
+
*
|
|
57
|
+
* @param initialValue - The initial state value.
|
|
58
|
+
* @returns An object implementing StateRef along with additional helper hooks.
|
|
59
|
+
*/
|
|
60
|
+
export declare function useStateRef<T>(initialValue: T | (() => T)): {
|
|
61
|
+
/**
|
|
62
|
+
* Returns the current state value.
|
|
63
|
+
*/
|
|
64
|
+
get(): T;
|
|
65
|
+
set: (value: T) => void;
|
|
66
|
+
onChange: ISimpleEvent<T>;
|
|
67
|
+
/**
|
|
68
|
+
* Confirms the current state by applying the confirm function and updating the state.
|
|
69
|
+
*/
|
|
70
|
+
confirm(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Registers a callback to be invoked when the state changes.
|
|
73
|
+
* Accepts a sync function, a cleanup function, or a function returning a Promise<void> (which will be ignored).
|
|
74
|
+
*
|
|
75
|
+
* @param on - The callback function that receives the new state value.
|
|
76
|
+
*/
|
|
77
|
+
useOnChange(on: (value: T) => void | (() => void) | Promise<void>): void;
|
|
78
|
+
/**
|
|
79
|
+
* Memoizes a value based on the current state and additional dependencies.
|
|
80
|
+
* @param on - A function that computes a value based on the current state.
|
|
81
|
+
* @param deps - Optional additional dependencies.
|
|
82
|
+
* @returns The memoized value.
|
|
83
|
+
*/
|
|
84
|
+
useMemo<TOut>(on: (value: T) => TOut, deps?: any[]): TOut;
|
|
85
|
+
/**
|
|
86
|
+
* Sets a validation function to process any new state value before updating.
|
|
87
|
+
* @param on - A function that validates (and optionally transforms) the new state value.
|
|
88
|
+
*/
|
|
89
|
+
useValidate(on: (next: T, current: T) => T): void;
|
|
90
|
+
/**
|
|
91
|
+
* Sets a confirmation function to process the state value during confirmation.
|
|
92
|
+
* @param on - A function that confirms (and optionally transforms) the current state value.
|
|
93
|
+
*/
|
|
94
|
+
useConfirm(on: (value: T) => T): void;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Interface for an action reference (a function with no arguments).
|
|
98
|
+
* Provides methods to call, get, set, and inject code before or after the stored function.
|
|
99
|
+
*/
|
|
100
|
+
export interface ActionRef {
|
|
101
|
+
/**
|
|
102
|
+
* Invokes the stored action.
|
|
103
|
+
*/
|
|
104
|
+
call(): void;
|
|
105
|
+
/**
|
|
106
|
+
* Retrieves the current action function.
|
|
107
|
+
* @returns The stored action function.
|
|
108
|
+
*/
|
|
109
|
+
get(): () => void;
|
|
110
|
+
/**
|
|
111
|
+
* Sets the stored action function.
|
|
112
|
+
* @param fn - The new action function.
|
|
113
|
+
*/
|
|
114
|
+
set(fn: () => void): void;
|
|
115
|
+
/**
|
|
116
|
+
* Prepends a function to be executed before the stored action.
|
|
117
|
+
* @param fn - The function to run before the original action.
|
|
118
|
+
*/
|
|
119
|
+
prepend(fn: () => void): void;
|
|
120
|
+
/**
|
|
121
|
+
* Appends a function to be executed after the stored action.
|
|
122
|
+
* @param fn - The function to run after the original action.
|
|
123
|
+
*/
|
|
124
|
+
append(fn: () => void): void;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Custom hook to create an action reference.
|
|
128
|
+
*
|
|
129
|
+
* @param action - The initial action function.
|
|
130
|
+
* @returns An object implementing ActionRef.
|
|
131
|
+
*/
|
|
132
|
+
export declare function useActionRef(action: () => void): ActionRef;
|
|
133
|
+
/**
|
|
134
|
+
* Interface for an action reference that accepts an argument.
|
|
135
|
+
* Provides methods to call with an argument, get, set, and inject code before or after the stored function.
|
|
136
|
+
*/
|
|
137
|
+
export interface ArgActionRef<T> {
|
|
138
|
+
/**
|
|
139
|
+
* Invokes the stored action with the provided argument.
|
|
140
|
+
* @param arg - The argument to pass to the action.
|
|
141
|
+
*/
|
|
142
|
+
call(arg: T): void;
|
|
143
|
+
/**
|
|
144
|
+
* Retrieves the current action function.
|
|
145
|
+
* @returns The stored action function.
|
|
146
|
+
*/
|
|
147
|
+
get(): (arg: T) => void;
|
|
148
|
+
/**
|
|
149
|
+
* Sets the stored action function.
|
|
150
|
+
* @param fn - The new action function.
|
|
151
|
+
*/
|
|
152
|
+
set(fn: (arg: T) => void): void;
|
|
153
|
+
/**
|
|
154
|
+
* Prepends a function to be executed before the stored action.
|
|
155
|
+
* @param fn - The function to run before the original action.
|
|
156
|
+
*/
|
|
157
|
+
prepend(fn: (arg: T) => void): void;
|
|
158
|
+
/**
|
|
159
|
+
* Appends a function to be executed after the stored action.
|
|
160
|
+
* @param fn - The function to run after the original action.
|
|
161
|
+
*/
|
|
162
|
+
append(fn: (arg: T) => void): void;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Custom hook to create an argument-based action reference.
|
|
166
|
+
*
|
|
167
|
+
* @param action - The initial action function that accepts an argument.
|
|
168
|
+
* @returns An object implementing ArgActionRef.
|
|
169
|
+
*/
|
|
170
|
+
export declare function useArgActionRef<T>(action: (arg: T) => void): ArgActionRef<T>;
|
|
171
|
+
/**
|
|
172
|
+
* Interface for a function reference that returns a value.
|
|
173
|
+
* Provides methods to call, get, set, and inject code before or after the stored function.
|
|
174
|
+
*/
|
|
175
|
+
export interface FuncRef<T> {
|
|
176
|
+
/**
|
|
177
|
+
* Invokes the stored function and returns its value.
|
|
178
|
+
* @returns The result of the function call.
|
|
179
|
+
*/
|
|
180
|
+
call(): T;
|
|
181
|
+
/**
|
|
182
|
+
* Retrieves the current function.
|
|
183
|
+
* @returns The stored function.
|
|
184
|
+
*/
|
|
185
|
+
get(): () => T;
|
|
186
|
+
/**
|
|
187
|
+
* Sets the stored function.
|
|
188
|
+
* @param fn - The new function.
|
|
189
|
+
*/
|
|
190
|
+
set(fn: () => T): void;
|
|
191
|
+
/**
|
|
192
|
+
* Prepends a function to be executed before the stored function.
|
|
193
|
+
* @param fn - The function to run before the original function.
|
|
194
|
+
*/
|
|
195
|
+
prepend(fn: () => void): void;
|
|
196
|
+
/**
|
|
197
|
+
* Appends a function to be executed after the stored function.
|
|
198
|
+
* @param fn - The function to run after the original function.
|
|
199
|
+
*/
|
|
200
|
+
append(fn: () => void): void;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Custom hook to create a function reference.
|
|
204
|
+
*
|
|
205
|
+
* @param fn - The initial function.
|
|
206
|
+
* @returns An object implementing FuncRef.
|
|
207
|
+
*/
|
|
208
|
+
export declare function useFuncRef<T>(fn: () => T): FuncRef<T>;
|
|
209
|
+
/**
|
|
210
|
+
* Interface for an asynchronous function reference.
|
|
211
|
+
* Provides methods to call, get, set, and inject code before or after the stored async function.
|
|
212
|
+
*/
|
|
213
|
+
export interface AsyncFuncRef<T> {
|
|
214
|
+
/**
|
|
215
|
+
* Invokes the stored asynchronous function and returns a promise of its result.
|
|
216
|
+
* @returns A promise resolving to the result of the async function.
|
|
217
|
+
*/
|
|
218
|
+
call(): Promise<T>;
|
|
219
|
+
/**
|
|
220
|
+
* Retrieves the current asynchronous function.
|
|
221
|
+
* @returns The stored async function.
|
|
222
|
+
*/
|
|
223
|
+
get(): () => Promise<T>;
|
|
224
|
+
/**
|
|
225
|
+
* Sets the stored asynchronous function.
|
|
226
|
+
* @param fn - The new async function.
|
|
227
|
+
*/
|
|
228
|
+
set(fn: () => Promise<T>): void;
|
|
229
|
+
/**
|
|
230
|
+
* Prepends a function to be executed before the stored async function.
|
|
231
|
+
* @param fn - The function to run before the original async function.
|
|
232
|
+
*/
|
|
233
|
+
prepend(fn: () => Promise<void> | void): void;
|
|
234
|
+
/**
|
|
235
|
+
* Appends a function to be executed after the stored async function.
|
|
236
|
+
* @param fn - The function to run after the original async function.
|
|
237
|
+
*/
|
|
238
|
+
append(fn: () => Promise<void> | void): void;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Custom hook to create an asynchronous function reference.
|
|
242
|
+
*
|
|
243
|
+
* @param fn - The initial asynchronous function.
|
|
244
|
+
* @returns An object implementing AsyncFuncRef.
|
|
245
|
+
*/
|
|
246
|
+
export declare function useAsyncFuncRef<T>(fn: () => Promise<T>): AsyncFuncRef<T>;
|
|
247
|
+
/**
|
|
248
|
+
* Interface for a function reference that accepts an argument and returns a result.
|
|
249
|
+
* Provides methods to call, get, set, and inject code before or after the stored function.
|
|
250
|
+
*/
|
|
251
|
+
export interface ArgFuncRef<TArg, TResult> {
|
|
252
|
+
/**
|
|
253
|
+
* Invokes the stored function with the provided argument.
|
|
254
|
+
* @param arg - The argument to pass to the function.
|
|
255
|
+
* @returns The result of the function call.
|
|
256
|
+
*/
|
|
257
|
+
call(arg: TArg): TResult;
|
|
258
|
+
/**
|
|
259
|
+
* Retrieves the current function.
|
|
260
|
+
* @returns The stored function.
|
|
261
|
+
*/
|
|
262
|
+
get(): (arg: TArg) => TResult;
|
|
263
|
+
/**
|
|
264
|
+
* Sets the stored function.
|
|
265
|
+
* @param fn - The new function.
|
|
266
|
+
*/
|
|
267
|
+
set(fn: (arg: TArg) => TResult): void;
|
|
268
|
+
/**
|
|
269
|
+
* Prepends a function to be executed before the stored function.
|
|
270
|
+
* @param fn - The function to run before the original function.
|
|
271
|
+
*/
|
|
272
|
+
prepend(fn: (arg: TArg) => void): void;
|
|
273
|
+
/**
|
|
274
|
+
* Appends a function to be executed after the stored function.
|
|
275
|
+
* @param fn - The function to run after the original function.
|
|
276
|
+
*/
|
|
277
|
+
append(fn: (arg: TArg) => void): void;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Custom hook to create an argument-based function reference.
|
|
281
|
+
*
|
|
282
|
+
* @param fn - The initial function that accepts an argument and returns a result.
|
|
283
|
+
* @returns An object implementing ArgFuncRef.
|
|
284
|
+
*/
|
|
285
|
+
export declare function useArgFuncRef<TArg, TResult>(fn: (arg: TArg) => TResult): ArgFuncRef<TArg, TResult>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserBoolean } from '../settings
|
|
1
|
+
import { UserBoolean } from '../settings';
|
|
2
2
|
export declare function whenTrue(value: UserBoolean | boolean, element: JSX.Element): JSX.Element;
|
|
3
3
|
export declare function whenFalse(value: UserBoolean | boolean, element: JSX.Element): JSX.Element;
|
|
4
4
|
export declare function whenAllTrue(value: (UserBoolean | boolean)[], element: JSX.Element): JSX.Element;
|
|
@@ -10,6 +10,8 @@ export type IconOptions = {
|
|
|
10
10
|
fill: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
|
+
export declare function pointer({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function filter({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export declare function slidersHoriz({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export declare function settings({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export declare function help({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,6 +29,8 @@ export declare function arrowLeft({ height, width, fill, className }: IconOption
|
|
|
27
29
|
export declare function fullArrowLeft({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
28
30
|
export declare function visible({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
29
31
|
export declare function hidden({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function frameScene({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function autoCamera({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
30
34
|
export declare function orbit({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
31
35
|
export declare function look({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
32
36
|
export declare function perspective({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
@@ -36,6 +40,11 @@ export declare function pan({ height, width, fill, className }: IconOptions): im
|
|
|
36
40
|
export declare function zoom({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
37
41
|
export declare function frameRect({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
38
42
|
export declare function frameSelection({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare function showAll({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function showSelection({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function hideSelection({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare function isolateSelection({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare function autoIsolate({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
39
48
|
export declare function toggleIsolation({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
40
49
|
export declare function measure({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
41
50
|
export declare function sectionBoxSettings({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
export *
|
|
3
|
-
export * as
|
|
4
|
-
export * as
|
|
5
|
-
export * as
|
|
2
|
+
export * from './bim';
|
|
3
|
+
export * as ControlBar from './controlbar';
|
|
4
|
+
export * as Icons from './icons';
|
|
5
|
+
export * as Settings from './settings';
|
|
6
|
+
export * as Webgl from './webgl';
|
|
7
|
+
export * as Ultra from './ultra';
|
|
8
|
+
export * as Errors from './errors';
|
|
6
9
|
export * as Urls from './urls';
|
|
7
|
-
export * as Icons from './panels/icons';
|
|
8
|
-
export type { MessageBoxProps } from './panels/messageBox';
|
|
9
10
|
export * from './container';
|
|
11
|
+
export * from './panels';
|
|
12
|
+
export * from './helpers';
|
|
13
|
+
export * from './generic';
|
|
14
|
+
export type * from './state';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @module viw-webgl-react
|
|
3
3
|
*/
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
5
|
+
import * as Core from '../../core-viewers';
|
|
6
|
+
import { CameraRef } from '../state/cameraState';
|
|
7
7
|
import { SettingsState } from '../settings/settingsState';
|
|
8
8
|
/**
|
|
9
9
|
* Memoized version of the AxesPanelMemo.
|
|
@@ -13,8 +13,8 @@ export declare const AxesPanelMemo: React.MemoExoticComponent<typeof AxesPanel>;
|
|
|
13
13
|
* JSX Component for axes gizmo.
|
|
14
14
|
*/
|
|
15
15
|
declare function AxesPanel(props: {
|
|
16
|
-
viewer:
|
|
17
|
-
camera:
|
|
16
|
+
viewer: Core.Webgl.Viewer;
|
|
17
|
+
camera: CameraRef;
|
|
18
18
|
settings: SettingsState;
|
|
19
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -2,12 +2,22 @@
|
|
|
2
2
|
* @module viw-webgl-react
|
|
3
3
|
*/
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import {
|
|
6
|
-
import { Isolation } from '../helpers/isolation';
|
|
7
|
-
import { ComponentCamera } from '../helpers/camera';
|
|
5
|
+
import { CameraRef } from '../state/cameraState';
|
|
8
6
|
import { TreeActionRef } from '../bim/bimTree';
|
|
9
|
-
import {
|
|
7
|
+
import { ModalHandle } from './modal';
|
|
8
|
+
import { IsolationRef } from '../state/sharedIsolation';
|
|
9
|
+
import * as Core from '../../core-viewers';
|
|
10
10
|
type ClickCallback = React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
11
|
+
/**
|
|
12
|
+
* Reference to manage context menu functionality in the viewer.
|
|
13
|
+
*/
|
|
14
|
+
export type ContextMenuRef = {
|
|
15
|
+
/**
|
|
16
|
+
* Defines a callback function to dynamically customize the context menu.
|
|
17
|
+
* @param customization The configuration object specifying the customization options for the context menu.
|
|
18
|
+
*/
|
|
19
|
+
customize: (customization: ContextMenuCustomization) => void;
|
|
20
|
+
};
|
|
11
21
|
export declare function showContextMenu(position: {
|
|
12
22
|
x: number;
|
|
13
23
|
y: number;
|
|
@@ -27,8 +37,6 @@ export declare const contextMenuElementIds: {
|
|
|
27
37
|
showObject: string;
|
|
28
38
|
clearSelection: string;
|
|
29
39
|
showAll: string;
|
|
30
|
-
dividerMeasure: string;
|
|
31
|
-
deleteMeasurement: string;
|
|
32
40
|
dividerSection: string;
|
|
33
41
|
ignoreSection: string;
|
|
34
42
|
resetSection: string;
|
|
@@ -59,16 +67,16 @@ export type ContextMenuCustomization = (e: ContextMenuElement[]) => ContextMenuE
|
|
|
59
67
|
/**
|
|
60
68
|
* Memoized version of VimContextMenu.
|
|
61
69
|
*/
|
|
62
|
-
export declare const VimContextMenuMemo: React.MemoExoticComponent<typeof
|
|
70
|
+
export declare const VimContextMenuMemo: React.MemoExoticComponent<typeof ContextMenu>;
|
|
63
71
|
/**
|
|
64
|
-
* Context menu
|
|
72
|
+
* Context menu viewer definition according to current state.
|
|
65
73
|
*/
|
|
66
|
-
export declare function
|
|
67
|
-
viewer:
|
|
68
|
-
camera:
|
|
69
|
-
modal:
|
|
70
|
-
isolation:
|
|
71
|
-
selection:
|
|
74
|
+
export declare function ContextMenu(props: {
|
|
75
|
+
viewer: Core.Webgl.Viewer;
|
|
76
|
+
camera: CameraRef;
|
|
77
|
+
modal: ModalHandle;
|
|
78
|
+
isolation: IsolationRef;
|
|
79
|
+
selection: Core.Webgl.Element3D[];
|
|
72
80
|
customization?: (e: ContextMenuElement[]) => ContextMenuElement[];
|
|
73
81
|
treeRef: React.MutableRefObject<TreeActionRef | undefined>;
|
|
74
82
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module viw-webgl-react
|
|
3
3
|
*/
|
|
4
|
-
export type
|
|
5
|
-
link: boolean;
|
|
6
|
-
};
|
|
7
|
-
export type HelpPropsTyped = HelpProps & {
|
|
4
|
+
export type HelpPropsTyped = {
|
|
8
5
|
type: 'help';
|
|
9
6
|
};
|
|
10
7
|
/**
|
|
11
8
|
* JSX Component for help page.
|
|
12
9
|
*/
|
|
13
|
-
export declare function MenuHelp(
|
|
14
|
-
value: HelpProps;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function MenuHelp(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * as ContextMenu from './contextMenu';
|
|
2
|
+
export declare const SectionBoxPanel: {
|
|
3
|
+
Ids: {
|
|
4
|
+
showGhost: string;
|
|
5
|
+
ghostOpacity: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare const IsolationPanel: {
|
|
9
|
+
Ids: {
|
|
10
|
+
topOffset: string;
|
|
11
|
+
sideOffset: string;
|
|
12
|
+
bottomOffset: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type * from './axesPanel';
|
|
16
|
+
export type * from './help';
|
|
17
|
+
export type * from './loadingBox';
|
|
18
|
+
export type * from './logo';
|
|
19
|
+
export type * from './messageBox';
|
|
20
|
+
export type * from './modal';
|
|
21
|
+
export type * from './overlay';
|
|
22
|
+
export type * from './performance';
|
|
23
|
+
export type * from './isolationPanel';
|
|
24
|
+
export type * from './restOfScreen';
|
|
25
|
+
export type * from './toast';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IsolationRef } from "../state/sharedIsolation";
|
|
2
|
+
import { GenericPanelHandle } from "../generic/genericPanel";
|
|
3
|
+
export declare const Ids: {
|
|
4
|
+
showGhost: string;
|
|
5
|
+
ghostOpacity: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const IsolationPanel: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
state: IsolationRef;
|
|
9
|
+
} & import("react").RefAttributes<GenericPanelHandle>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module viw-webgl-react
|
|
3
3
|
*/
|
|
4
|
+
import { ReactNode } from 'react';
|
|
4
5
|
export type ProgressMode = '%' | 'bytes';
|
|
5
6
|
/**
|
|
6
7
|
* Interface for message information displayed in the LoadingBox.
|
|
@@ -12,15 +13,17 @@ export type LoadingBoxProps = {
|
|
|
12
13
|
message?: string;
|
|
13
14
|
progress?: number;
|
|
14
15
|
mode?: ProgressMode;
|
|
16
|
+
more?: ReactNode;
|
|
15
17
|
};
|
|
16
18
|
export type LoadingBoxPropsTyped = LoadingBoxProps & {
|
|
17
19
|
type: 'loading';
|
|
18
20
|
};
|
|
19
21
|
/**
|
|
20
|
-
* LoadingBox
|
|
22
|
+
* LoadingBox viewer that displays a loading message or other messages.
|
|
21
23
|
* @param props - Component props containing optional content.
|
|
22
|
-
* @returns The LoadingBox
|
|
24
|
+
* @returns The LoadingBox viewer or null if no content is provided.
|
|
23
25
|
*/
|
|
24
26
|
export declare function LoadingBox(props: {
|
|
25
27
|
content: LoadingBoxProps;
|
|
26
28
|
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function UltraSuggestion(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { MessageBoxProps, MessageBoxPropsTyped } from './messageBox';
|
|
2
3
|
import { LoadingBoxProps, LoadingBoxPropsTyped } from './loadingBox';
|
|
3
|
-
import {
|
|
4
|
-
export type ModalProps =
|
|
5
|
-
|
|
6
|
-
canClose: boolean;
|
|
4
|
+
import { HelpPropsTyped } from './help';
|
|
5
|
+
export type ModalProps = (MessageBoxPropsTyped | LoadingBoxPropsTyped | HelpPropsTyped) & {
|
|
6
|
+
canClose?: boolean;
|
|
7
7
|
onClose?: () => void;
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
10
|
-
|
|
9
|
+
export type ModalHandle = {
|
|
10
|
+
getActiveState(): ModalProps | undefined;
|
|
11
11
|
loading(content: LoadingBoxProps | undefined): void;
|
|
12
12
|
message(content: MessageBoxProps | undefined): void;
|
|
13
13
|
help(show: boolean): void;
|
|
14
14
|
};
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Modal: React.ForwardRefExoticComponent<{
|
|
16
|
+
canFollowLinks: boolean;
|
|
17
|
+
} & React.RefAttributes<ModalHandle>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { SectionBoxRef } from "../state/sectionBoxState";
|
|
2
|
-
|
|
2
|
+
import { GenericPanelHandle } from "../generic/genericPanel";
|
|
3
|
+
export declare const Ids: {
|
|
4
|
+
topOffset: string;
|
|
5
|
+
sideOffset: string;
|
|
6
|
+
bottomOffset: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const SectionBoxPanel: import("react").ForwardRefExoticComponent<{
|
|
3
9
|
state: SectionBoxRef;
|
|
4
|
-
}
|
|
10
|
+
} & import("react").RefAttributes<GenericPanelHandle>>;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @module viw-webgl-react
|
|
3
3
|
*/
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import * as
|
|
6
|
-
import { SideState } from '
|
|
5
|
+
import * as Core from '../../core-viewers';
|
|
6
|
+
import { SideState } from '../state/sideState';
|
|
7
7
|
import { Container } from '../container';
|
|
8
8
|
/**
|
|
9
9
|
* Memoized version of the SidePanel.
|
|
@@ -15,6 +15,6 @@ export declare const SidePanelMemo: React.MemoExoticComponent<typeof SidePanel>;
|
|
|
15
15
|
export declare function SidePanel(props: {
|
|
16
16
|
container: Container;
|
|
17
17
|
side: SideState;
|
|
18
|
-
viewer:
|
|
18
|
+
viewer: Core.Webgl.Viewer;
|
|
19
19
|
content: () => JSX.Element;
|
|
20
20
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @module viw-webgl-react
|
|
3
3
|
*/
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import * as
|
|
6
|
-
import { SideState } from '../
|
|
5
|
+
import * as Core from '../../core-viewers';
|
|
6
|
+
import { SideState } from '../state/sideState';
|
|
7
7
|
export type ToastConfigSpeed = {
|
|
8
8
|
visible: boolean;
|
|
9
9
|
speed: number;
|
|
@@ -16,7 +16,7 @@ export declare const MenuToastMemo: React.MemoExoticComponent<typeof MenuToast>;
|
|
|
16
16
|
* Toast jsx component that briefly shows up when camera speed changes.
|
|
17
17
|
*/
|
|
18
18
|
declare function MenuToast(props: {
|
|
19
|
-
viewer:
|
|
19
|
+
viewer: Core.Webgl.Viewer;
|
|
20
20
|
side: SideState;
|
|
21
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|