vim-web 0.3.44-dev.47 → 0.3.44-dev.50
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/style.css +16 -1
- package/dist/types/core-viewers/index.d.ts +3 -0
- package/dist/types/core-viewers/shared/baseInputHandler.d.ts +29 -0
- package/dist/types/core-viewers/shared/index.d.ts +9 -0
- package/dist/types/core-viewers/shared/inputHandler.d.ts +115 -28
- package/dist/types/core-viewers/shared/keyboardHandler.d.ts +2 -2
- package/dist/types/core-viewers/shared/mouseHandler.d.ts +9 -9
- package/dist/types/core-viewers/shared/raycaster.d.ts +13 -0
- package/dist/types/core-viewers/shared/selection.d.ts +45 -0
- package/dist/types/core-viewers/shared/touchHandler.d.ts +2 -2
- 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 -5
- 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 -9
- 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/{utils/math3d.d.ts → ultra/rpcTypes.d.ts} +22 -22
- 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/ultraCoreViewer.d.ts → viewer.d.ts} +18 -15
- package/dist/types/core-viewers/ultra/vim.d.ts +48 -0
- package/dist/types/core-viewers/webgl/index.d.ts +2 -20
- 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 +23 -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} +4 -4
- 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 +15 -19
- 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 -102
- 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 +1 -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 +4 -3
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/index.d.ts +7 -0
- 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 +4 -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 +1 -7
- 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 +34 -43
- 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 +7 -7
- package/dist/types/core-viewers/webgl/viewer/rendering/renderer.d.ts +8 -5
- 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 +10 -10
- package/dist/types/react-viewers/bim/bimSearch.d.ts +2 -2
- package/dist/types/react-viewers/bim/bimTree.d.ts +8 -6
- 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 +0 -4
- package/dist/types/react-viewers/controlbar/controlBarButton.d.ts +1 -4
- package/dist/types/react-viewers/controlbar/controlBarIds.d.ts +36 -30
- package/dist/types/react-viewers/controlbar/controlBarSection.d.ts +2 -4
- package/dist/types/react-viewers/controlbar/index.d.ts +5 -0
- package/dist/types/react-viewers/controlbar/style.d.ts +10 -0
- package/dist/types/react-viewers/errors/index.d.ts +3 -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/element.d.ts +3 -2
- package/dist/types/react-viewers/helpers/index.d.ts +10 -0
- package/dist/types/react-viewers/helpers/loadRequest.d.ts +6 -6
- package/dist/types/react-viewers/helpers/reactUtils.d.ts +8 -2
- package/dist/types/react-viewers/helpers/utils.d.ts +1 -1
- package/dist/types/react-viewers/{panels/icons.d.ts → icons.d.ts} +7 -0
- package/dist/types/react-viewers/index.d.ts +9 -11
- package/dist/types/react-viewers/panels/axesPanel.d.ts +2 -2
- package/dist/types/react-viewers/panels/contextMenu.d.ts +8 -8
- package/dist/types/react-viewers/panels/genericPanel.d.ts +22 -0
- package/dist/types/react-viewers/panels/index.d.ts +14 -0
- package/dist/types/react-viewers/panels/loadingBox.d.ts +2 -2
- package/dist/types/react-viewers/panels/modal.d.ts +5 -5
- package/dist/types/react-viewers/panels/renderSettingsPanel.d.ts +4 -0
- package/dist/types/react-viewers/panels/restOfScreen.d.ts +1 -1
- 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/menuSettings.d.ts +2 -2
- package/dist/types/react-viewers/settings/settings.d.ts +10 -49
- 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 +2 -1
- package/dist/types/react-viewers/state/controlBarState.d.ts +21 -30
- 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/sharedIsolation.d.ts +36 -0
- package/dist/types/react-viewers/state/viewerInputs.d.ts +2 -2
- 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 -2
- 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/{ultraComponentRef.d.ts → viewerRef.d.ts} +9 -7
- 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} +8 -8
- 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/{webglComponentRef.d.ts → viewerRef.d.ts} +20 -20
- package/dist/types/react-viewers/webgl/viewerState.d.ts +7 -5
- package/dist/types/utils/index.d.ts +11 -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/utils/requestResult.d.ts → utils/result.d.ts} +1 -1
- package/dist/types/utils/strings.d.ts +7 -0
- package/dist/types/{core-viewers/ultra/viewer → utils}/validation.d.ts +11 -10
- package/dist/vim-web.iife.js +21045 -20980
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +21028 -20963
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/core-viewers/shared/coreInputHandler.d.ts +0 -110
- package/dist/types/core-viewers/ultra/viewer/marshal.d.ts +0 -86
- package/dist/types/core-viewers/ultra/viewer/selection.d.ts +0 -99
- package/dist/types/core-viewers/ultra/viewer/ultraInputsAdapter.d.ts +0 -5
- package/dist/types/core-viewers/ultra/viewer/vim.d.ts +0 -111
- package/dist/types/core-viewers/utils/result.d.ts +0 -11
- package/dist/types/core-viewers/webgl/viewer/gizmos/gizmoRectangle.d.ts +0 -51
- package/dist/types/core-viewers/webgl/viewer/webglInputsAdapter.d.ts +0 -3
- package/dist/types/react-viewers/helpers/isolation.d.ts +0 -128
- package/dist/types/react-viewers/ultra/ultraCameraState.d.ts +0 -3
- package/dist/types/react-viewers/ultra/ultraComponent.d.ts +0 -23
- package/dist/types/react-viewers/ultra/ultraControlBarState.d.ts +0 -8
- 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/webgInputsBindings.d.ts +0 -8
- package/dist/types/react-viewers/webgl/webglCameraState.d.ts +0 -2
- package/dist/types/react-viewers/webgl/webglComponent.d.ts +0 -28
- 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/sectionBox.d.ts → sectionBox.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/core-viewers/webgl/viewer/camera/{ICamera.d.ts → cameraInterface.d.ts} +0 -0
- /package/dist/types/react-viewers/{sidePanel → state}/sideState.d.ts +0 -0
- /package/dist/types/{core-viewers/utils → utils}/array.d.ts +0 -0
- /package/dist/types/{core-viewers/utils → utils}/debounce.d.ts +0 -0
- /package/dist/types/{core-viewers/utils → utils}/promise.d.ts +0 -0
- /package/dist/types/{core-viewers/utils → utils}/threeUtils.d.ts +0 -0
- /package/dist/types/{core-viewers/utils → utils}/url.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { TouchHandler } from './touchHandler';
|
|
2
|
-
import { MouseHandler } from './mouseHandler';
|
|
3
|
-
import { KeyboardHandler } from './keyboardHandler';
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { InputHandler } from './inputHandler';
|
|
6
|
-
export type PointerMode = 'orbit' | 'look' | 'pan' | 'zoom' | 'rect';
|
|
7
|
-
export interface InputAdapter {
|
|
8
|
-
init: () => void;
|
|
9
|
-
toggleOrthographic: () => void;
|
|
10
|
-
resetCamera: () => void;
|
|
11
|
-
clearSelection: () => void;
|
|
12
|
-
frameCamera: () => void;
|
|
13
|
-
moveCamera: (value: THREE.Vector3) => void;
|
|
14
|
-
orbitCamera: (value: THREE.Vector2) => void;
|
|
15
|
-
rotateCamera: (value: THREE.Vector2) => void;
|
|
16
|
-
panCamera: (value: THREE.Vector2) => void;
|
|
17
|
-
keyDown: (keyCode: string) => boolean;
|
|
18
|
-
keyUp: (keyCode: string) => boolean;
|
|
19
|
-
mouseDown: (pos: THREE.Vector2, button: number) => void;
|
|
20
|
-
mouseUp: (pos: THREE.Vector2, button: number) => void;
|
|
21
|
-
mouseMove: (pos: THREE.Vector2) => void;
|
|
22
|
-
selectAtPointer: (pos: THREE.Vector2, add: boolean) => void;
|
|
23
|
-
frameAtPointer: (pos: THREE.Vector2) => void;
|
|
24
|
-
zoom: (value: number) => void;
|
|
25
|
-
}
|
|
26
|
-
interface InputSettings {
|
|
27
|
-
orbit: boolean;
|
|
28
|
-
scrollSpeed: number;
|
|
29
|
-
moveSpeed: number;
|
|
30
|
-
rotateSpeed: number;
|
|
31
|
-
orbitSpeed: number;
|
|
32
|
-
}
|
|
33
|
-
export declare class CoreInputHandler extends InputHandler {
|
|
34
|
-
/**
|
|
35
|
-
* Touch input handler
|
|
36
|
-
*/
|
|
37
|
-
touch: TouchHandler;
|
|
38
|
-
/**
|
|
39
|
-
* Mouse input handler
|
|
40
|
-
*/
|
|
41
|
-
mouse: MouseHandler;
|
|
42
|
-
/**
|
|
43
|
-
* Keyboard input handler
|
|
44
|
-
*/
|
|
45
|
-
keyboard: KeyboardHandler;
|
|
46
|
-
scrollSpeed: number;
|
|
47
|
-
private _moveSpeed;
|
|
48
|
-
rotateSpeed: number;
|
|
49
|
-
orbitSpeed: number;
|
|
50
|
-
private _pointerActive;
|
|
51
|
-
private _pointerFallback;
|
|
52
|
-
private _pointerOverride;
|
|
53
|
-
private _onPointerOverrideChanged;
|
|
54
|
-
private _onPointerModeChanged;
|
|
55
|
-
private _onSettingsChanged;
|
|
56
|
-
private _adapter;
|
|
57
|
-
constructor(canvas: HTMLCanvasElement, adapter: InputAdapter, settings?: Partial<InputSettings>);
|
|
58
|
-
init(): void;
|
|
59
|
-
get moveSpeed(): number;
|
|
60
|
-
set moveSpeed(value: number);
|
|
61
|
-
get onSettingsChanged(): import("ste-signals").ISignal;
|
|
62
|
-
/**
|
|
63
|
-
* Returns the last main mode (orbit, look) that was active.
|
|
64
|
-
*/
|
|
65
|
-
get pointerFallback(): PointerMode;
|
|
66
|
-
/**
|
|
67
|
-
* Returns current pointer mode.
|
|
68
|
-
*/
|
|
69
|
-
get pointerActive(): PointerMode;
|
|
70
|
-
/**
|
|
71
|
-
* A temporary pointer mode used for temporary icons.
|
|
72
|
-
*/
|
|
73
|
-
get pointerOverride(): PointerMode;
|
|
74
|
-
set pointerOverride(value: PointerMode | undefined);
|
|
75
|
-
/**
|
|
76
|
-
* Changes pointer interaction mode. Look mode will set camera orbitMode to false.
|
|
77
|
-
*/
|
|
78
|
-
set pointerActive(value: PointerMode);
|
|
79
|
-
/**
|
|
80
|
-
* Event called when pointer interaction mode changes.
|
|
81
|
-
*/
|
|
82
|
-
get onPointerModeChanged(): import("ste-signals").ISignal;
|
|
83
|
-
/**
|
|
84
|
-
* Event called when the pointer is temporarily overriden.
|
|
85
|
-
*/
|
|
86
|
-
get onPointerOverrideChanged(): import("ste-signals").ISignal;
|
|
87
|
-
private _onContextMenu;
|
|
88
|
-
/**
|
|
89
|
-
* Event called when when context menu could be displayed
|
|
90
|
-
*/
|
|
91
|
-
get onContextMenu(): import("ste-simple-events").ISimpleEvent<THREE.Vector2>;
|
|
92
|
-
/**
|
|
93
|
-
* Calls context menu action
|
|
94
|
-
*/
|
|
95
|
-
ContextMenu(position: THREE.Vector2 | undefined): void;
|
|
96
|
-
/**
|
|
97
|
-
* Register inputs handlers for default viewer behavior
|
|
98
|
-
*/
|
|
99
|
-
registerAll(): void;
|
|
100
|
-
/**
|
|
101
|
-
* Unregisters all input handlers
|
|
102
|
-
*/
|
|
103
|
-
unregisterAll: () => void;
|
|
104
|
-
/**
|
|
105
|
-
* Resets all input state
|
|
106
|
-
*/
|
|
107
|
-
resetAll(): void;
|
|
108
|
-
dispose(): void;
|
|
109
|
-
}
|
|
110
|
-
export {};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Don't modify this file, the RPC generated code depends on its interface.
|
|
3
|
-
*/
|
|
4
|
-
import { Box3, RGB, RGBA, RGBA32, Segment, Vector2, Vector3, Matrix44 } from "../../utils/math3d";
|
|
5
|
-
export type HitCheckResult = {
|
|
6
|
-
vimHandle: number;
|
|
7
|
-
nodeIndex: number;
|
|
8
|
-
worldPosition: Vector3;
|
|
9
|
-
worldNormal: Vector3;
|
|
10
|
-
};
|
|
11
|
-
export type VimStatus = {
|
|
12
|
-
status: number;
|
|
13
|
-
progress: number;
|
|
14
|
-
};
|
|
15
|
-
export type SectionBoxState = {
|
|
16
|
-
visible: boolean;
|
|
17
|
-
interactive: boolean;
|
|
18
|
-
clip: boolean;
|
|
19
|
-
box: Box3;
|
|
20
|
-
};
|
|
21
|
-
export type Vector4 = {
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
z: number;
|
|
25
|
-
w: number;
|
|
26
|
-
};
|
|
27
|
-
export declare class Marshal {
|
|
28
|
-
private buffer;
|
|
29
|
-
private _dataView;
|
|
30
|
-
private _offset;
|
|
31
|
-
constructor(initialSize?: number);
|
|
32
|
-
getBuffer(): ArrayBuffer;
|
|
33
|
-
private ensureCapacity;
|
|
34
|
-
writeData(data: ArrayBuffer): void;
|
|
35
|
-
writeMatrix44(data: Matrix44): void;
|
|
36
|
-
writeBoolean(value: boolean): void;
|
|
37
|
-
writeInt(value: number): void;
|
|
38
|
-
writeUInt(value: number): void;
|
|
39
|
-
writeFloat(value: number): void;
|
|
40
|
-
writeString(value: string): void;
|
|
41
|
-
writeHitCheckResult(data: HitCheckResult): void;
|
|
42
|
-
writeVimStatus(data: VimStatus): void;
|
|
43
|
-
writeVector2(data: Vector2): void;
|
|
44
|
-
writeVector3(data: Vector3): void;
|
|
45
|
-
writeVector4(data: Vector4): void;
|
|
46
|
-
writeRGBA(color: RGBA): void;
|
|
47
|
-
writeRGB(color: RGBA): void;
|
|
48
|
-
writeRGBA32(color: RGBA32): void;
|
|
49
|
-
writeSegment(segment: Segment): void;
|
|
50
|
-
writeBox3(data: Box3): void;
|
|
51
|
-
writeSectionBoxState(data: SectionBoxState): void;
|
|
52
|
-
writeArrayOfInt(values: number[]): void;
|
|
53
|
-
writeArrayOfUInt(values: number[]): void;
|
|
54
|
-
writeArrayOfFloat(values: number[]): void;
|
|
55
|
-
writeArrayOfBool(values: boolean[]): void;
|
|
56
|
-
writeArrayOfRGBA32(values: RGBA32[]): void;
|
|
57
|
-
writeArray<T>(data: T[], sizeT: number, write: (data: T) => void): void;
|
|
58
|
-
}
|
|
59
|
-
export declare class ReadMarshal {
|
|
60
|
-
private _dataView;
|
|
61
|
-
private _offset;
|
|
62
|
-
constructor(buffer: ArrayBuffer);
|
|
63
|
-
readMatrix44(): Matrix44;
|
|
64
|
-
readInt(): number;
|
|
65
|
-
readUInt(): number;
|
|
66
|
-
readFloat(): number;
|
|
67
|
-
readBoolean(): boolean;
|
|
68
|
-
readString(): string;
|
|
69
|
-
readHitCheckResult(): HitCheckResult;
|
|
70
|
-
readVimStatus(): VimStatus;
|
|
71
|
-
readVector2(): Vector2;
|
|
72
|
-
readVector3(): Vector3;
|
|
73
|
-
readVector4(): Vector4;
|
|
74
|
-
readRGBA(): RGBA;
|
|
75
|
-
readRGB(): RGB;
|
|
76
|
-
readRGBA32(): RGBA32;
|
|
77
|
-
readBox3(): Box3;
|
|
78
|
-
readSegment(): Segment;
|
|
79
|
-
readSectionBoxState(): SectionBoxState;
|
|
80
|
-
readArrayOfInt(): number[];
|
|
81
|
-
readArrayOfUInt(): number[];
|
|
82
|
-
readArrayOfFloat(): number[];
|
|
83
|
-
readArrayOfBool(): boolean[];
|
|
84
|
-
readArrayOfRGBA32(): RGBA32[];
|
|
85
|
-
readArray<T>(read: () => T): T[];
|
|
86
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Box3, Vector2, Vector3 } from "../../utils/math3d";
|
|
2
|
-
import { RpcSafeClient } from "./rpcSafeClient";
|
|
3
|
-
import { Vim } from "./vim";
|
|
4
|
-
import { IReadonlyVimCollection } from "./vimCollection";
|
|
5
|
-
export interface IViewerSelection {
|
|
6
|
-
hitTest(pos: Vector2): Promise<HitTestResult | undefined>;
|
|
7
|
-
select(vim: Vim, node: number | number[]): void;
|
|
8
|
-
toggle(vim: Vim, node: number | number[]): void;
|
|
9
|
-
add(vim: Vim, node: number | number[]): void;
|
|
10
|
-
remove(vim: Vim, node: number | number[]): void;
|
|
11
|
-
clear(vim?: Vim): void;
|
|
12
|
-
get(): ReadonlyMap<Vim, ReadonlySet<number>>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Represents the result of a hit test operation.
|
|
16
|
-
*/
|
|
17
|
-
export type HitTestResult = {
|
|
18
|
-
/** The Vim instance that was hit */
|
|
19
|
-
vim: Vim;
|
|
20
|
-
/** The index of the node that was hit */
|
|
21
|
-
nodeIndex: number;
|
|
22
|
-
/** The 3D world position of the hit point */
|
|
23
|
-
worldPosition: Vector3;
|
|
24
|
-
/** The surface normal at the hit point */
|
|
25
|
-
worldNormal: Vector3;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Manages selection state of nodes across multiple VIM instances.
|
|
29
|
-
*/
|
|
30
|
-
export declare class ViewerSelection implements IViewerSelection {
|
|
31
|
-
private _rpc;
|
|
32
|
-
private _vims;
|
|
33
|
-
private _selectedNodes;
|
|
34
|
-
private _onValueChanged;
|
|
35
|
-
get onValueChanged(): import("ste-signals").ISignal;
|
|
36
|
-
get(): ReadonlyMap<Vim, ReadonlySet<number>>;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a new ViewerSelection instance.
|
|
39
|
-
* @param rpc - RPC client for communication with the viewer.
|
|
40
|
-
* @param vims - Collection of VIM instances to manage.
|
|
41
|
-
*/
|
|
42
|
-
constructor(rpc: RpcSafeClient, vims: IReadonlyVimCollection);
|
|
43
|
-
/**
|
|
44
|
-
* Gets the total number of selected nodes across all VIMs.
|
|
45
|
-
* @returns The total count of selected nodes.
|
|
46
|
-
*/
|
|
47
|
-
get count(): number;
|
|
48
|
-
/**
|
|
49
|
-
* Performs a hit test at the specified screen position.
|
|
50
|
-
* @param pos - The screen position in 2D coordinates.
|
|
51
|
-
* @returns Promise resolving to hit test result or undefined if no hit.
|
|
52
|
-
*/
|
|
53
|
-
hitTest(pos: Vector2): Promise<HitTestResult | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* Replaces the current selection with the specified node(s).
|
|
56
|
-
* Clears all previous selections across all VIMs.
|
|
57
|
-
* @param vim - The Vim instance to select nodes from.
|
|
58
|
-
* @param node - A single node index or array of node indices to select.
|
|
59
|
-
*/
|
|
60
|
-
select(vim: Vim, node: number | number[]): void;
|
|
61
|
-
/**
|
|
62
|
-
* Toggles the selection state of the specified node(s).
|
|
63
|
-
* If a node is currently selected, it will be deselected, and vice versa.
|
|
64
|
-
* @param vim - The Vim instance containing the nodes.
|
|
65
|
-
* @param node - A single node index or array of node indices to toggle.
|
|
66
|
-
*/
|
|
67
|
-
toggle(vim: Vim, node: number | number[]): void;
|
|
68
|
-
/**
|
|
69
|
-
* Adds the specified node(s) to the current selection.
|
|
70
|
-
* If a node is already selected, it remains selected.
|
|
71
|
-
* @param vim - The Vim instance containing the nodes.
|
|
72
|
-
* @param node - A single node index or array of node indices to add.
|
|
73
|
-
*/
|
|
74
|
-
add(vim: Vim, node: number | number[]): void;
|
|
75
|
-
/**
|
|
76
|
-
* Removes the specified node(s) from the current selection.
|
|
77
|
-
* If a node is not selected, no action is taken for that node.
|
|
78
|
-
* @param vim - The Vim instance containing the nodes.
|
|
79
|
-
* @param node - A single node index or array of node indices to remove.
|
|
80
|
-
*/
|
|
81
|
-
remove(vim: Vim, node: number | number[]): void;
|
|
82
|
-
/**
|
|
83
|
-
* Clears all selections across all VIMs or for a specific VIM.
|
|
84
|
-
* @param vim - Optional. If provided, only clears selections for the specified VIM.
|
|
85
|
-
*/
|
|
86
|
-
clear(vim?: Vim): void;
|
|
87
|
-
private _clear;
|
|
88
|
-
/**
|
|
89
|
-
* Calculates the bounding box encompassing all selected nodes.
|
|
90
|
-
* @returns Promise resolving to a Box3 representing the bounds of all selected nodes,
|
|
91
|
-
* or undefined if no nodes are selected or bounds cannot be calculated.
|
|
92
|
-
*/
|
|
93
|
-
getBoundingBox(): Promise<Box3 | undefined>;
|
|
94
|
-
/**
|
|
95
|
-
* Cleans up resources and releases memory.
|
|
96
|
-
* Should be called when the selection manager is no longer needed.
|
|
97
|
-
*/
|
|
98
|
-
dispose(): void;
|
|
99
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CoreInputHandler } from "../../shared/coreInputHandler";
|
|
2
|
-
import { UltraCoreViewer } from "./ultraCoreViewer";
|
|
3
|
-
declare const CODE_TO_KEYCODE: Record<string, number>;
|
|
4
|
-
export default CODE_TO_KEYCODE;
|
|
5
|
-
export declare function ultraInputAdapter(viewer: UltraCoreViewer): CoreInputHandler;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { ColorHandle } from './color';
|
|
2
|
-
import { ColorManager } from './colorManager';
|
|
3
|
-
import { LoadRequest } from './loadRequest';
|
|
4
|
-
import { RpcSafeClient, VimSource } from './rpcSafeClient';
|
|
5
|
-
import { ILogger } from './logger';
|
|
6
|
-
import { Box3 } from '../../utils/math3d';
|
|
7
|
-
type NodeState = 'visible' | 'hidden' | 'ghosted' | 'highlighted';
|
|
8
|
-
export declare class Vim {
|
|
9
|
-
readonly source: VimSource;
|
|
10
|
-
private _handle;
|
|
11
|
-
private _request;
|
|
12
|
-
private readonly _rpc;
|
|
13
|
-
private _colors;
|
|
14
|
-
private _logger;
|
|
15
|
-
private _nodeStates;
|
|
16
|
-
private _allNodeState;
|
|
17
|
-
private _nodeColors;
|
|
18
|
-
private _pendingNodeStateChanges;
|
|
19
|
-
private _updateScheduled;
|
|
20
|
-
/**
|
|
21
|
-
* Creates an instance of the Vim class.
|
|
22
|
-
* @param rpc - The RPC client used for communication.
|
|
23
|
-
* @param color - The color manager for handling colors.
|
|
24
|
-
* @param source - The source URL or file path of the Vim.
|
|
25
|
-
* @param logger - The logger for logging messages.
|
|
26
|
-
*/
|
|
27
|
-
constructor(rpc: RpcSafeClient, color: ColorManager, source: VimSource, logger: ILogger);
|
|
28
|
-
get handle(): number;
|
|
29
|
-
/**
|
|
30
|
-
* Indicates whether the Vim is connected.
|
|
31
|
-
* @returns True if connected; otherwise, false.
|
|
32
|
-
*/
|
|
33
|
-
get connected(): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Connects to the Vim and initiates loading.
|
|
36
|
-
* @returns The load request associated with this operation.
|
|
37
|
-
*/
|
|
38
|
-
connect(): LoadRequest;
|
|
39
|
-
private reapplyNodes;
|
|
40
|
-
private reapplyColors;
|
|
41
|
-
/**
|
|
42
|
-
* Disconnects the Vim and unloads it from the server.
|
|
43
|
-
*/
|
|
44
|
-
disconnect(): void;
|
|
45
|
-
/**
|
|
46
|
-
* Requests for the server to load the given URL or file path.
|
|
47
|
-
* @param source - The URL or file path to load.
|
|
48
|
-
* @param result - The load request object to update.
|
|
49
|
-
* @returns The updated load request.
|
|
50
|
-
*/
|
|
51
|
-
private _load;
|
|
52
|
-
private getErrorType;
|
|
53
|
-
private _getHandle;
|
|
54
|
-
/**
|
|
55
|
-
* Shows the given nodes.
|
|
56
|
-
* @param nodes - The nodes to show. If 'all' is passed, all nodes will be shown.
|
|
57
|
-
*/
|
|
58
|
-
show(nodes: number[] | 'all'): void;
|
|
59
|
-
/**
|
|
60
|
-
* Hides the given nodes.
|
|
61
|
-
* @param nodes - The nodes to hide. If 'all' is passed, all nodes will be hidden.
|
|
62
|
-
*/
|
|
63
|
-
hide(nodes: number[] | 'all'): void;
|
|
64
|
-
/**
|
|
65
|
-
* Ghosts the given nodes.
|
|
66
|
-
* @param nodes - The nodes to ghost. If 'all' is passed, all nodes will be ghosted.
|
|
67
|
-
*/
|
|
68
|
-
ghost(nodes: number[] | 'all'): void;
|
|
69
|
-
/**
|
|
70
|
-
* Highlights the given nodes.
|
|
71
|
-
* @param nodes - The nodes to highlight. If 'all' is passed, all nodes will be highlighted.
|
|
72
|
-
*/
|
|
73
|
-
highlight(nodes: number[] | 'all'): void;
|
|
74
|
-
/**
|
|
75
|
-
* Removes the highlight from the given nodes and reverts them to a fallback state.
|
|
76
|
-
* @param nodes - The nodes to remove the highlight from.
|
|
77
|
-
* @param fallback - The state to revert the nodes to.
|
|
78
|
-
*/
|
|
79
|
-
removeHighlight(nodes: number[] | 'all', fallback: NodeState): void;
|
|
80
|
-
/**
|
|
81
|
-
* Retrieves the bounding box of the given nodes.
|
|
82
|
-
* @param nodes - The nodes to get the bounding box for.
|
|
83
|
-
* @returns A Promise that resolves to the bounding box, or undefined if not connected or nodes are empty.
|
|
84
|
-
* @throws Error if 'all' is passed, as this feature is not supported yet.
|
|
85
|
-
*/
|
|
86
|
-
getBoundingBox(nodes: number[] | 'all'): Promise<Box3 | undefined>;
|
|
87
|
-
/**
|
|
88
|
-
* Applies a color to the given nodes.
|
|
89
|
-
* @param color - The color to apply.
|
|
90
|
-
* @param nodes - The nodes to apply the color to.
|
|
91
|
-
*/
|
|
92
|
-
applyColor(color: ColorHandle | undefined, nodes: number[]): void;
|
|
93
|
-
/**
|
|
94
|
-
* Applies an array of colors to the given nodes.
|
|
95
|
-
* @param color - An array of colors to apply, corresponding to each node.
|
|
96
|
-
* @param nodes - The nodes to apply the colors to.
|
|
97
|
-
* @throws Will throw an error if the lengths of the colors and nodes arrays do not match.
|
|
98
|
-
*/
|
|
99
|
-
applyColors(color: (ColorHandle | undefined)[], nodes: number[]): void;
|
|
100
|
-
/**
|
|
101
|
-
* Clears the color from the given nodes.
|
|
102
|
-
* @param nodes - The nodes to clear the color from.
|
|
103
|
-
*/
|
|
104
|
-
clearColor(nodes: number[] | 'all'): void;
|
|
105
|
-
private updateMap;
|
|
106
|
-
private scheduleNodeStateChange;
|
|
107
|
-
private scheduleUpdate;
|
|
108
|
-
private update;
|
|
109
|
-
private callRPCForState;
|
|
110
|
-
}
|
|
111
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class Result<T, E> {
|
|
2
|
-
private readonly value;
|
|
3
|
-
private readonly error;
|
|
4
|
-
private constructor();
|
|
5
|
-
static ok<T, E>(value: T): Result<T, E>;
|
|
6
|
-
static error<T, E>(error: E): Result<T, E>;
|
|
7
|
-
isOk(): this is Result<T, undefined>;
|
|
8
|
-
isError(): this is Result<undefined, string>;
|
|
9
|
-
getValue(): T;
|
|
10
|
-
getError(): E;
|
|
11
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module viw-webgl-viewer/gizmos
|
|
3
|
-
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { Viewer } from '../viewer';
|
|
6
|
-
/**
|
|
7
|
-
* Rectangle Gizmo used for rectangle selection.
|
|
8
|
-
*/
|
|
9
|
-
export declare class GizmoRectangle {
|
|
10
|
-
private line;
|
|
11
|
-
private viewer;
|
|
12
|
-
private points;
|
|
13
|
-
constructor(viewer: Viewer);
|
|
14
|
-
/**
|
|
15
|
-
* Removes the object from rendering and dispose resources from memory
|
|
16
|
-
*/
|
|
17
|
-
dispose(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Indicates whether the gizmo is visible.
|
|
20
|
-
*/
|
|
21
|
-
get visible(): boolean;
|
|
22
|
-
set visible(value: boolean);
|
|
23
|
-
/**
|
|
24
|
-
* Sets the two corner points defining the rectangle.
|
|
25
|
-
* @param {THREE.Vector2} posA - The position of the first corner.
|
|
26
|
-
* @param {THREE.Vector2} posB - The position of the second corner.
|
|
27
|
-
*/
|
|
28
|
-
setCorners(posA: THREE.Vector2, posB: THREE.Vector2): void;
|
|
29
|
-
private getIntersection;
|
|
30
|
-
private updateRect;
|
|
31
|
-
private getBoxSize;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the bounding box of the selection.
|
|
34
|
-
* The bounding box is the projection of the selection rectangle
|
|
35
|
-
* onto the plane coplanar to the closest hit of 5 raycasts: one in each corner and one in the center.
|
|
36
|
-
* X-----X
|
|
37
|
-
* | X |
|
|
38
|
-
* X-----X
|
|
39
|
-
* @returns {THREE.Box3} The bounding box of the selection.
|
|
40
|
-
*/
|
|
41
|
-
getBoundingBox(target?: THREE.Box3): THREE.Box3;
|
|
42
|
-
/**
|
|
43
|
-
* Performs a raycast from the camera through the five interest points and returns the closest hit position.
|
|
44
|
-
* @returns {THREE.Vector3} The position of the closest hit.
|
|
45
|
-
*/
|
|
46
|
-
getClosestHit(): THREE.Vector3;
|
|
47
|
-
/**
|
|
48
|
-
* Projects all points on a plane the coplanar to position.
|
|
49
|
-
*/
|
|
50
|
-
private projectPoints;
|
|
51
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import * as VIM from '../../core-viewers/webgl/index';
|
|
2
|
-
import { ComponentSettings } from '../settings/settings';
|
|
3
|
-
import { CameraRef } from '../state/cameraState';
|
|
4
|
-
import { ISimpleEvent } from 'ste-simple-events';
|
|
5
|
-
/**
|
|
6
|
-
* Manages the isolation mechanic in the VIM component.
|
|
7
|
-
*
|
|
8
|
-
* **Isolation** determines which objects are visible (isolated) and which are
|
|
9
|
-
* hidden or displayed as ghosted. This class applies materials, updates object
|
|
10
|
-
* visibility, and ensures the camera view is adjusted when isolation changes.
|
|
11
|
-
*/
|
|
12
|
-
export declare class Isolation {
|
|
13
|
-
private _viewer;
|
|
14
|
-
private _settings;
|
|
15
|
-
private _isolation;
|
|
16
|
-
private _camera;
|
|
17
|
-
private _onChanged;
|
|
18
|
-
/**
|
|
19
|
-
* An event that is dispatched whenever the isolation set changes.
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* This can be used by other parts of the application to react to isolation
|
|
23
|
-
* updates (for example, updating UI or triggering additional viewport actions).
|
|
24
|
-
*
|
|
25
|
-
* @returns {ISimpleEvent<string>} Event interface for subscribing to isolation changes.
|
|
26
|
-
*/
|
|
27
|
-
get onChanged(): ISimpleEvent<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Constructs an IsolationManager.
|
|
30
|
-
*
|
|
31
|
-
* @param viewer - The VIM Viewer responsible for managing the 3D scene and objects.
|
|
32
|
-
* @param camera - A component that handles camera control and framing.
|
|
33
|
-
* @param settings - The settings that control isolation and material usage.
|
|
34
|
-
*/
|
|
35
|
-
constructor(viewer: VIM.Viewer, camera: CameraRef, settings: ComponentSettings);
|
|
36
|
-
/**
|
|
37
|
-
* Applies relevant settings to the isolation behavior.
|
|
38
|
-
*
|
|
39
|
-
* @param settings - The new settings to apply.
|
|
40
|
-
*
|
|
41
|
-
* @remarks
|
|
42
|
-
* This updates the internal reference to settings and immediately sets
|
|
43
|
-
* the material based on whether isolation is currently active.
|
|
44
|
-
*/
|
|
45
|
-
applySettings(settings: ComponentSettings): void;
|
|
46
|
-
/**
|
|
47
|
-
* Checks if isolation is currently active (i.e., any objects are isolated).
|
|
48
|
-
*
|
|
49
|
-
* @returns True if isolation is active; otherwise, false.
|
|
50
|
-
*/
|
|
51
|
-
isActive(): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Retrieves the current array of isolated objects.
|
|
54
|
-
*
|
|
55
|
-
* @returns An array of isolated objects, or undefined if isolation is not active.
|
|
56
|
-
*/
|
|
57
|
-
current(): VIM.Object3D[] | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Sets the specified objects as isolated, hiding or ghosting the rest.
|
|
60
|
-
*
|
|
61
|
-
* @param objects - The objects to isolate.
|
|
62
|
-
* @param source - A label or identifier indicating the source of this action (e.g., "user").
|
|
63
|
-
*/
|
|
64
|
-
isolate(objects: VIM.Object3D[], source: string): void;
|
|
65
|
-
/**
|
|
66
|
-
* Toggles isolation by using the current selection.
|
|
67
|
-
*
|
|
68
|
-
* @param source - A label or identifier for the isolation action.
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* This method replaces the current isolation set with whatever objects are
|
|
72
|
-
* currently selected. If selection is empty, it effectively clears isolation.
|
|
73
|
-
*/
|
|
74
|
-
toggle(source: string): void;
|
|
75
|
-
/**
|
|
76
|
-
* Hides the specified objects from the isolation set.
|
|
77
|
-
*
|
|
78
|
-
* @param objects - The objects to hide.
|
|
79
|
-
* @param source - A label or identifier for the isolation action.
|
|
80
|
-
*
|
|
81
|
-
* @remarks
|
|
82
|
-
* If there is no active isolation set (i.e., all objects are visible),
|
|
83
|
-
* the method first treats all objects in the scene as isolated,
|
|
84
|
-
* and then removes the specified objects. This ensures the specified
|
|
85
|
-
* objects become hidden.
|
|
86
|
-
*/
|
|
87
|
-
hide(objects: VIM.Object3D[], source: string): void;
|
|
88
|
-
/**
|
|
89
|
-
* Adds the specified objects to the current isolation set (making them visible).
|
|
90
|
-
*
|
|
91
|
-
* @param objects - The objects to show.
|
|
92
|
-
* @param source - A label or identifier for the isolation action.
|
|
93
|
-
*/
|
|
94
|
-
show(objects: VIM.Object3D[], source: string): void;
|
|
95
|
-
/**
|
|
96
|
-
* Clears the current isolation set, making all objects visible.
|
|
97
|
-
*
|
|
98
|
-
* @param source - A label or identifier for the isolation action.
|
|
99
|
-
*/
|
|
100
|
-
clear(source: string): void;
|
|
101
|
-
/**
|
|
102
|
-
* Constructs the correct material (or array of materials) based on the given settings.
|
|
103
|
-
*
|
|
104
|
-
* @param settings - The current component settings, including isolation rules.
|
|
105
|
-
* @param isolate - Whether or not isolation is active.
|
|
106
|
-
* @returns The material(s) to assign to the renderer, or undefined if default materials should be used.
|
|
107
|
-
*
|
|
108
|
-
* @remarks
|
|
109
|
-
* - If isolation is active and `useGhostMaterial` is true, an array containing
|
|
110
|
-
* the simple and ghost materials is returned.
|
|
111
|
-
* - If fast materials are enabled, the simple material is returned.
|
|
112
|
-
* - Otherwise, defaults to undefined, allowing the system to pick a standard material.
|
|
113
|
-
*/
|
|
114
|
-
private getMaterial;
|
|
115
|
-
/**
|
|
116
|
-
* Applies the current isolation state: sets visibility for objects, updates materials,
|
|
117
|
-
* and dispatches the changed event.
|
|
118
|
-
*
|
|
119
|
-
* @param source - A label or identifier for the isolation action.
|
|
120
|
-
*/
|
|
121
|
-
private _apply;
|
|
122
|
-
/**
|
|
123
|
-
* Gathers all objects from all loaded VIM instances.
|
|
124
|
-
*
|
|
125
|
-
* @returns An array of all objects within the loaded VIM scenes.
|
|
126
|
-
*/
|
|
127
|
-
private getAllObjects;
|
|
128
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as Ultra from '../../core-viewers/ultra/index';
|
|
2
|
-
import { Container } from '../container';
|
|
3
|
-
import { UltraComponentRef } from './ultraComponentRef';
|
|
4
|
-
/**
|
|
5
|
-
* Creates a UI container along with a VIM.Viewer and its associated React component.
|
|
6
|
-
* @param container An optional container object. If none is provided, a container will be created.
|
|
7
|
-
* @param componentSettings UI Component settings.
|
|
8
|
-
* @param viewerSettings Viewer settings.
|
|
9
|
-
* @returns An object containing the resulting container, reactRoot, and viewer.
|
|
10
|
-
*/
|
|
11
|
-
export declare function createUltraComponent(container?: Container | HTMLElement): Promise<UltraComponentRef>;
|
|
12
|
-
/**
|
|
13
|
-
* Represents a React component providing UI for the Vim viewer.
|
|
14
|
-
* @param container The container object containing root, gfx, and UI elements for the Vim viewer.
|
|
15
|
-
* @param viewer The Vim viewer instance for which UI is provided.
|
|
16
|
-
* @param onMount A callback function triggered when the component is mounted. Receives a reference to the Vim component.
|
|
17
|
-
* @param settings Optional settings for configuring the Vim component's behavior.
|
|
18
|
-
*/
|
|
19
|
-
export declare function UltraComponent(props: {
|
|
20
|
-
container: Container;
|
|
21
|
-
viewer: Ultra.UltraCoreViewer;
|
|
22
|
-
onMount: (component: UltraComponentRef) => void;
|
|
23
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ControlBarCustomization } from '../controlbar/controlBar';
|
|
2
|
-
import { SectionBoxRef } from '../state/sectionBoxState';
|
|
3
|
-
import * as Ultra from '../../core-viewers/ultra/index';
|
|
4
|
-
import { CameraRef } from '../state/cameraState';
|
|
5
|
-
import { ControlBar } from '..';
|
|
6
|
-
export { buttonDefaultStyle, buttonBlueStyle } from '../controlbar/controlBarButton';
|
|
7
|
-
export { sectionDefaultStyle, sectionBlueStyle } from '../controlbar/controlBarSection';
|
|
8
|
-
export declare function useUltraControlBar(viewer: Ultra.UltraCoreViewer, section: SectionBoxRef, camera: CameraRef, customization: ControlBarCustomization | undefined): ControlBar.IControlBarSection[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ModalRef } from "../panels/modal";
|
|
2
|
-
import * as Ultra from '../../core-viewers/ultra/index';
|
|
3
|
-
export declare function updateModal(modal: ModalRef, state: Ultra.ClientState): void;
|
|
4
|
-
export declare function updateProgress(request: Ultra.ILoadRequest, modal: ModalRef): Promise<void>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module viw-webgl-react
|
|
3
|
-
*/
|
|
4
|
-
import * as VIM from '../../core-viewers/webgl/index';
|
|
5
|
-
import { SideState } from '../sidePanel/sideState';
|
|
6
|
-
import { CameraRef } from '../state/cameraState';
|
|
7
|
-
import { Isolation } from '../helpers/isolation';
|
|
8
|
-
export declare function applyWebglBindings(viewer: VIM.Viewer, camera: CameraRef, isolation: Isolation, sideState: SideState): void;
|