vim-web 0.6.0-dev.3 → 0.6.0-dev.5
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 +104 -75
- package/dist/style.css +3 -0
- package/dist/vim-bim.d.ts +1920 -0
- package/dist/vim-web.d.ts +3351 -0
- package/dist/vim-web.iife.js +18541 -19530
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +18561 -19550
- package/dist/vim-web.js.map +1 -1
- package/package.json +12 -9
- package/dist/types/core-viewers/index.d.ts +0 -3
- package/dist/types/core-viewers/shared/baseInputHandler.d.ts +0 -28
- package/dist/types/core-viewers/shared/index.d.ts +0 -11
- package/dist/types/core-viewers/shared/inputAdapter.d.ts +0 -22
- package/dist/types/core-viewers/shared/inputHandler.d.ts +0 -99
- package/dist/types/core-viewers/shared/keyboardHandler.d.ts +0 -96
- package/dist/types/core-viewers/shared/loadResult.d.ts +0 -55
- package/dist/types/core-viewers/shared/mouseHandler.d.ts +0 -30
- package/dist/types/core-viewers/shared/raycaster.d.ts +0 -27
- package/dist/types/core-viewers/shared/selection.d.ts +0 -105
- package/dist/types/core-viewers/shared/touchHandler.d.ts +0 -42
- package/dist/types/core-viewers/shared/vim.d.ts +0 -48
- package/dist/types/core-viewers/shared/vimCollection.d.ts +0 -25
- package/dist/types/core-viewers/ultra/camera.d.ts +0 -116
- package/dist/types/core-viewers/ultra/colorManager.d.ts +0 -73
- package/dist/types/core-viewers/ultra/decoder.d.ts +0 -108
- package/dist/types/core-viewers/ultra/decoderWithWorker.d.ts +0 -80
- package/dist/types/core-viewers/ultra/element3d.d.ts +0 -44
- package/dist/types/core-viewers/ultra/index.d.ts +0 -29
- package/dist/types/core-viewers/ultra/inputAdapter.d.ts +0 -8
- package/dist/types/core-viewers/ultra/loadRequest.d.ts +0 -14
- package/dist/types/core-viewers/ultra/logger.d.ts +0 -9
- package/dist/types/core-viewers/ultra/protocol.d.ts +0 -13
- package/dist/types/core-viewers/ultra/raycaster.d.ts +0 -52
- package/dist/types/core-viewers/ultra/remoteColor.d.ts +0 -37
- package/dist/types/core-viewers/ultra/renderer.d.ts +0 -147
- package/dist/types/core-viewers/ultra/rpcClient.d.ts +0 -86
- package/dist/types/core-viewers/ultra/rpcMarshal.d.ts +0 -64
- package/dist/types/core-viewers/ultra/rpcSafeClient.d.ts +0 -470
- package/dist/types/core-viewers/ultra/rpcTypes.d.ts +0 -71
- package/dist/types/core-viewers/ultra/rpcUtils.d.ts +0 -8
- package/dist/types/core-viewers/ultra/sectionBox.d.ts +0 -33
- package/dist/types/core-viewers/ultra/selection.d.ts +0 -4
- package/dist/types/core-viewers/ultra/socketClient.d.ts +0 -153
- package/dist/types/core-viewers/ultra/streamLogger.d.ts +0 -19
- package/dist/types/core-viewers/ultra/streamRenderer.d.ts +0 -7
- package/dist/types/core-viewers/ultra/viewer.d.ts +0 -139
- package/dist/types/core-viewers/ultra/viewport.d.ts +0 -47
- package/dist/types/core-viewers/ultra/vim.d.ts +0 -50
- package/dist/types/core-viewers/ultra/vimCollection.d.ts +0 -51
- package/dist/types/core-viewers/ultra/visibility.d.ts +0 -100
- package/dist/types/core-viewers/webgl/index.d.ts +0 -5
- package/dist/types/core-viewers/webgl/loader/averageBoundingBox.d.ts +0 -6
- package/dist/types/core-viewers/webgl/loader/colorAttribute.d.ts +0 -34
- package/dist/types/core-viewers/webgl/loader/element3d.d.ts +0 -108
- package/dist/types/core-viewers/webgl/loader/elementMapping.d.ts +0 -113
- package/dist/types/core-viewers/webgl/loader/geometry.d.ts +0 -103
- package/dist/types/core-viewers/webgl/loader/index.d.ts +0 -24
- package/dist/types/core-viewers/webgl/loader/materials/ghostMaterial.d.ts +0 -16
- package/dist/types/core-viewers/webgl/loader/materials/index.d.ts +0 -10
- package/dist/types/core-viewers/webgl/loader/materials/maskMaterial.d.ts +0 -8
- package/dist/types/core-viewers/webgl/loader/materials/materials.d.ts +0 -161
- package/dist/types/core-viewers/webgl/loader/materials/mergeMaterial.d.ts +0 -18
- package/dist/types/core-viewers/webgl/loader/materials/outlineMaterial.d.ts +0 -78
- package/dist/types/core-viewers/webgl/loader/materials/pickingMaterial.d.ts +0 -42
- package/dist/types/core-viewers/webgl/loader/materials/simpleMaterial.d.ts +0 -17
- package/dist/types/core-viewers/webgl/loader/materials/skyboxMaterial.d.ts +0 -16
- package/dist/types/core-viewers/webgl/loader/materials/standardMaterial.d.ts +0 -57
- package/dist/types/core-viewers/webgl/loader/materials/transferMaterial.d.ts +0 -8
- package/dist/types/core-viewers/webgl/loader/mesh.d.ts +0 -118
- package/dist/types/core-viewers/webgl/loader/progressive/g3dOffsets.d.ts +0 -53
- package/dist/types/core-viewers/webgl/loader/progressive/g3dSubset.d.ts +0 -117
- package/dist/types/core-viewers/webgl/loader/progressive/insertableGeometry.d.ts +0 -45
- package/dist/types/core-viewers/webgl/loader/progressive/insertableMesh.d.ts +0 -63
- package/dist/types/core-viewers/webgl/loader/progressive/insertableSubmesh.d.ts +0 -43
- package/dist/types/core-viewers/webgl/loader/progressive/instancedMesh.d.ts +0 -39
- package/dist/types/core-viewers/webgl/loader/progressive/instancedMeshFactory.d.ts +0 -27
- package/dist/types/core-viewers/webgl/loader/progressive/instancedSubmesh.d.ts +0 -31
- package/dist/types/core-viewers/webgl/loader/progressive/legacyMeshFactory.d.ts +0 -26
- package/dist/types/core-viewers/webgl/loader/progressive/loadRequest.d.ts +0 -21
- package/dist/types/core-viewers/webgl/loader/progressive/loadingSynchronizer.d.ts +0 -27
- package/dist/types/core-viewers/webgl/loader/progressive/subsetBuilder.d.ts +0 -74
- package/dist/types/core-viewers/webgl/loader/progressive/subsetRequest.d.ts +0 -38
- package/dist/types/core-viewers/webgl/loader/progressive/vimx.d.ts +0 -17
- package/dist/types/core-viewers/webgl/loader/scene.d.ts +0 -90
- package/dist/types/core-viewers/webgl/loader/vim.d.ts +0 -163
- package/dist/types/core-viewers/webgl/loader/vimCollection.d.ts +0 -79
- package/dist/types/core-viewers/webgl/loader/vimSettings.d.ts +0 -69
- package/dist/types/core-viewers/webgl/loader/webglAttribute.d.ts +0 -19
- package/dist/types/core-viewers/webgl/utils/boxes.d.ts +0 -5
- package/dist/types/core-viewers/webgl/viewer/camera/camera.d.ts +0 -149
- package/dist/types/core-viewers/webgl/viewer/camera/cameraInterface.d.ts +0 -107
- package/dist/types/core-viewers/webgl/viewer/camera/cameraMovement.d.ts +0 -88
- package/dist/types/core-viewers/webgl/viewer/camera/cameraMovementLerp.d.ts +0 -28
- package/dist/types/core-viewers/webgl/viewer/camera/cameraMovementSnap.d.ts +0 -23
- package/dist/types/core-viewers/webgl/viewer/camera/cameraOrthographic.d.ts +0 -11
- package/dist/types/core-viewers/webgl/viewer/camera/cameraPerspective.d.ts +0 -11
- package/dist/types/core-viewers/webgl/viewer/camera/index.d.ts +0 -7
- package/dist/types/core-viewers/webgl/viewer/environment/environment.d.ts +0 -38
- package/dist/types/core-viewers/webgl/viewer/environment/index.d.ts +0 -3
- package/dist/types/core-viewers/webgl/viewer/environment/light.d.ts +0 -43
- package/dist/types/core-viewers/webgl/viewer/environment/skybox.d.ts +0 -39
- package/dist/types/core-viewers/webgl/viewer/gizmos/axes/axes.d.ts +0 -14
- package/dist/types/core-viewers/webgl/viewer/gizmos/axes/axesSettings.d.ts +0 -20
- package/dist/types/core-viewers/webgl/viewer/gizmos/axes/gizmoAxes.d.ts +0 -62
- package/dist/types/core-viewers/webgl/viewer/gizmos/axes/index.d.ts +0 -3
- package/dist/types/core-viewers/webgl/viewer/gizmos/gizmoLoading.d.ts +0 -23
- package/dist/types/core-viewers/webgl/viewer/gizmos/gizmoOrbit.d.ts +0 -76
- package/dist/types/core-viewers/webgl/viewer/gizmos/gizmos.d.ts +0 -45
- package/dist/types/core-viewers/webgl/viewer/gizmos/index.d.ts +0 -7
- package/dist/types/core-viewers/webgl/viewer/gizmos/markers/gizmoMarker.d.ts +0 -113
- package/dist/types/core-viewers/webgl/viewer/gizmos/markers/gizmoMarkers.d.ts +0 -52
- package/dist/types/core-viewers/webgl/viewer/gizmos/markers/index.d.ts +0 -2
- package/dist/types/core-viewers/webgl/viewer/gizmos/measure/index.d.ts +0 -3
- package/dist/types/core-viewers/webgl/viewer/gizmos/measure/measure.d.ts +0 -97
- package/dist/types/core-viewers/webgl/viewer/gizmos/measure/measureGizmo.d.ts +0 -44
- package/dist/types/core-viewers/webgl/viewer/gizmos/measure/measureHtml.d.ts +0 -26
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/SectionBoxMesh.d.ts +0 -15
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/index.d.ts +0 -7
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBox.d.ts +0 -103
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxGizmo.d.ts +0 -18
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxHandle.d.ts +0 -20
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxHandles.d.ts +0 -20
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxInputs.d.ts +0 -118
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxOutline.d.ts +0 -15
- package/dist/types/core-viewers/webgl/viewer/index.d.ts +0 -10
- package/dist/types/core-viewers/webgl/viewer/inputAdapter.d.ts +0 -3
- package/dist/types/core-viewers/webgl/viewer/raycaster.d.ts +0 -71
- package/dist/types/core-viewers/webgl/viewer/rendering/gpuPicker.d.ts +0 -145
- package/dist/types/core-viewers/webgl/viewer/rendering/index.d.ts +0 -4
- package/dist/types/core-viewers/webgl/viewer/rendering/mergePass.d.ts +0 -18
- package/dist/types/core-viewers/webgl/viewer/rendering/outlinePass.d.ts +0 -19
- package/dist/types/core-viewers/webgl/viewer/rendering/renderScene.d.ts +0 -57
- package/dist/types/core-viewers/webgl/viewer/rendering/renderer.d.ts +0 -135
- package/dist/types/core-viewers/webgl/viewer/rendering/renderingComposer.d.ts +0 -95
- package/dist/types/core-viewers/webgl/viewer/rendering/renderingSection.d.ts +0 -40
- package/dist/types/core-viewers/webgl/viewer/rendering/transferPass.d.ts +0 -17
- package/dist/types/core-viewers/webgl/viewer/selection.d.ts +0 -9
- package/dist/types/core-viewers/webgl/viewer/settings/index.d.ts +0 -3
- package/dist/types/core-viewers/webgl/viewer/settings/viewerDefaultSettings.d.ts +0 -5
- package/dist/types/core-viewers/webgl/viewer/settings/viewerSettings.d.ts +0 -310
- package/dist/types/core-viewers/webgl/viewer/settings/viewerSettingsParsing.d.ts +0 -9
- package/dist/types/core-viewers/webgl/viewer/viewer.d.ts +0 -115
- package/dist/types/core-viewers/webgl/viewer/viewport.d.ts +0 -73
- package/dist/types/index.d.ts +0 -3
- package/dist/types/react-viewers/bim/bimInfoBody.d.ts +0 -9
- package/dist/types/react-viewers/bim/bimInfoData.d.ts +0 -144
- package/dist/types/react-viewers/bim/bimInfoHeader.d.ts +0 -6
- package/dist/types/react-viewers/bim/bimInfoObject.d.ts +0 -12
- package/dist/types/react-viewers/bim/bimInfoPanel.d.ts +0 -10
- package/dist/types/react-viewers/bim/bimInfoVim.d.ts +0 -5
- package/dist/types/react-viewers/bim/bimPanel.d.ts +0 -40
- package/dist/types/react-viewers/bim/bimSearch.d.ts +0 -17
- package/dist/types/react-viewers/bim/bimTree.d.ts +0 -33
- package/dist/types/react-viewers/bim/bimTreeData.d.ts +0 -44
- package/dist/types/react-viewers/bim/bimUtils.d.ts +0 -13
- package/dist/types/react-viewers/bim/index.d.ts +0 -8
- package/dist/types/react-viewers/bim/openState.d.ts +0 -5
- package/dist/types/react-viewers/container.d.ts +0 -27
- package/dist/types/react-viewers/controlbar/controlBar.d.ts +0 -25
- package/dist/types/react-viewers/controlbar/controlBarButton.d.ts +0 -15
- package/dist/types/react-viewers/controlbar/controlBarIds.d.ts +0 -32
- package/dist/types/react-viewers/controlbar/controlBarSection.d.ts +0 -8
- package/dist/types/react-viewers/controlbar/index.d.ts +0 -5
- package/dist/types/react-viewers/controlbar/style.d.ts +0 -10
- package/dist/types/react-viewers/errors/errorStyle.d.ts +0 -15
- package/dist/types/react-viewers/errors/errors.d.ts +0 -6
- package/dist/types/react-viewers/errors/index.d.ts +0 -2
- package/dist/types/react-viewers/generic/genericField.d.ts +0 -31
- package/dist/types/react-viewers/generic/genericPanel.d.ts +0 -12
- package/dist/types/react-viewers/generic/index.d.ts +0 -2
- package/dist/types/react-viewers/generic/inputNumber.d.ts +0 -4
- package/dist/types/react-viewers/helpers/cameraObserver.d.ts +0 -8
- package/dist/types/react-viewers/helpers/cursor.d.ts +0 -37
- package/dist/types/react-viewers/helpers/customizer.d.ts +0 -4
- package/dist/types/react-viewers/helpers/data.d.ts +0 -27
- package/dist/types/react-viewers/helpers/element.d.ts +0 -14
- package/dist/types/react-viewers/helpers/fullScreenObserver.d.ts +0 -9
- package/dist/types/react-viewers/helpers/index.d.ts +0 -6
- package/dist/types/react-viewers/helpers/layout.d.ts +0 -24
- package/dist/types/react-viewers/helpers/loadRequest.d.ts +0 -28
- package/dist/types/react-viewers/helpers/reactUtils.d.ts +0 -286
- package/dist/types/react-viewers/helpers/requestResult.d.ts +0 -13
- package/dist/types/react-viewers/helpers/utils.d.ts +0 -15
- package/dist/types/react-viewers/icons.d.ts +0 -61
- package/dist/types/react-viewers/index.d.ts +0 -14
- package/dist/types/react-viewers/panels/axesPanel.d.ts +0 -21
- package/dist/types/react-viewers/panels/contextMenu.d.ts +0 -83
- package/dist/types/react-viewers/panels/help.d.ts +0 -10
- package/dist/types/react-viewers/panels/index.d.ts +0 -26
- package/dist/types/react-viewers/panels/isolationPanel.d.ts +0 -11
- package/dist/types/react-viewers/panels/loadingBox.d.ts +0 -29
- package/dist/types/react-viewers/panels/logo.d.ts +0 -5
- package/dist/types/react-viewers/panels/messageBox.d.ts +0 -15
- package/dist/types/react-viewers/panels/modal.d.ts +0 -17
- package/dist/types/react-viewers/panels/overlay.d.ts +0 -10
- package/dist/types/react-viewers/panels/performance.d.ts +0 -7
- package/dist/types/react-viewers/panels/restOfScreen.d.ts +0 -5
- package/dist/types/react-viewers/panels/sectionBoxPanel.d.ts +0 -10
- package/dist/types/react-viewers/panels/sidePanel.d.ts +0 -20
- package/dist/types/react-viewers/panels/toast.d.ts +0 -22
- package/dist/types/react-viewers/settings/anySettings.d.ts +0 -7
- package/dist/types/react-viewers/settings/index.d.ts +0 -5
- package/dist/types/react-viewers/settings/settingsInputBox.d.ts +0 -4
- package/dist/types/react-viewers/settings/settingsItem.d.ts +0 -30
- package/dist/types/react-viewers/settings/settingsKeys.d.ts +0 -46
- package/dist/types/react-viewers/settings/settingsPanel.d.ts +0 -18
- package/dist/types/react-viewers/settings/settingsPanelContent.d.ts +0 -6
- package/dist/types/react-viewers/settings/settingsState.d.ts +0 -18
- package/dist/types/react-viewers/settings/settingsStorage.d.ts +0 -15
- package/dist/types/react-viewers/settings/settingsSubtitle.d.ts +0 -2
- package/dist/types/react-viewers/settings/settingsToggle.d.ts +0 -11
- package/dist/types/react-viewers/settings/userBoolean.d.ts +0 -17
- package/dist/types/react-viewers/state/cameraState.d.ts +0 -24
- package/dist/types/react-viewers/state/controlBarState.d.ts +0 -88
- package/dist/types/react-viewers/state/fullScreenState.d.ts +0 -4
- package/dist/types/react-viewers/state/index.d.ts +0 -9
- package/dist/types/react-viewers/state/measureState.d.ts +0 -7
- package/dist/types/react-viewers/state/pointerState.d.ts +0 -6
- package/dist/types/react-viewers/state/sectionBoxState.d.ts +0 -34
- package/dist/types/react-viewers/state/sharedIsolation.d.ts +0 -40
- package/dist/types/react-viewers/state/sideState.d.ts +0 -22
- package/dist/types/react-viewers/state/viewerInputs.d.ts +0 -3
- package/dist/types/react-viewers/ultra/camera.d.ts +0 -3
- package/dist/types/react-viewers/ultra/controlBar.d.ts +0 -9
- package/dist/types/react-viewers/ultra/errors/fileLoadingError.d.ts +0 -2
- package/dist/types/react-viewers/ultra/errors/fileOpeningError.d.ts +0 -2
- package/dist/types/react-viewers/ultra/errors/serverCompatibilityError.d.ts +0 -2
- package/dist/types/react-viewers/ultra/errors/serverConnectionError.d.ts +0 -2
- package/dist/types/react-viewers/ultra/errors/serverFileDownloadingError.d.ts +0 -2
- package/dist/types/react-viewers/ultra/errors/serverStreamError.d.ts +0 -2
- package/dist/types/react-viewers/ultra/errors/ultraErrors.d.ts +0 -3
- package/dist/types/react-viewers/ultra/index.d.ts +0 -3
- package/dist/types/react-viewers/ultra/isolation.d.ts +0 -3
- package/dist/types/react-viewers/ultra/modal.d.ts +0 -5
- package/dist/types/react-viewers/ultra/sectionBox.d.ts +0 -3
- package/dist/types/react-viewers/ultra/settings.d.ts +0 -13
- package/dist/types/react-viewers/ultra/settingsPanel.d.ts +0 -5
- package/dist/types/react-viewers/ultra/viewer.d.ts +0 -23
- package/dist/types/react-viewers/ultra/viewerRef.d.ts +0 -50
- package/dist/types/react-viewers/urls.d.ts +0 -2
- package/dist/types/react-viewers/webgl/camera.d.ts +0 -3
- package/dist/types/react-viewers/webgl/index.d.ts +0 -4
- package/dist/types/react-viewers/webgl/inputsBindings.d.ts +0 -8
- package/dist/types/react-viewers/webgl/isolation.d.ts +0 -2
- package/dist/types/react-viewers/webgl/loading.d.ts +0 -64
- package/dist/types/react-viewers/webgl/sectionBox.d.ts +0 -3
- package/dist/types/react-viewers/webgl/settings.d.ts +0 -36
- package/dist/types/react-viewers/webgl/settingsPanel.d.ts +0 -12
- package/dist/types/react-viewers/webgl/viewer.d.ts +0 -28
- package/dist/types/react-viewers/webgl/viewerRef.d.ts +0 -131
- package/dist/types/react-viewers/webgl/viewerState.d.ts +0 -13
- package/dist/types/utils/array.d.ts +0 -18
- package/dist/types/utils/asyncQueue.d.ts +0 -15
- package/dist/types/utils/debounce.d.ts +0 -30
- package/dist/types/utils/index.d.ts +0 -10
- package/dist/types/utils/interfaces.d.ts +0 -3
- package/dist/types/utils/math3d.d.ts +0 -19
- package/dist/types/utils/partial.d.ts +0 -7
- package/dist/types/utils/promise.d.ts +0 -21
- package/dist/types/utils/threeUtils.d.ts +0 -4
- package/dist/types/utils/url.d.ts +0 -10
- package/dist/types/utils/validation.d.ts +0 -29
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module viw-webgl-react
|
|
3
|
-
*/
|
|
4
|
-
import * as Core from '../../core-viewers';
|
|
5
|
-
import * as BIM from 'vim-format';
|
|
6
|
-
export type AugmentedElement = BIM.IElement & {
|
|
7
|
-
bimDocumentName: string;
|
|
8
|
-
categoryName: string;
|
|
9
|
-
familyTypeName: string;
|
|
10
|
-
levelName: string;
|
|
11
|
-
worksetName: string;
|
|
12
|
-
};
|
|
13
|
-
export declare function getElements(vim: Core.Webgl.Vim): Promise<AugmentedElement[]>;
|
|
14
|
-
export declare function filterElements(elements: AugmentedElement[], filter: string): AugmentedElement[];
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Computes a position for a floating element relative to a target, with smart fallback
|
|
3
|
-
* if it overflows the top or sides of the screen.
|
|
4
|
-
*
|
|
5
|
-
* @param originRect - The bounding rect of the origin element.
|
|
6
|
-
* @param panelRect - The bounding rect of the panel to position.
|
|
7
|
-
* @returns The top-left position for the panel.
|
|
8
|
-
*/
|
|
9
|
-
export declare function computeFloatingPosition(originRect: DOMRect, panelRect: DOMRect): {
|
|
10
|
-
top: number;
|
|
11
|
-
left: number;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Tracks and computes the screen position of a floating panel relative to a given anchor element.
|
|
15
|
-
*
|
|
16
|
-
* @param panelRef - Ref to the panel element to position
|
|
17
|
-
* @param anchorElement - The element the panel should be positioned relative to
|
|
18
|
-
* @param enabled - Whether the positioning logic is active
|
|
19
|
-
* @returns The top-left screen position for the panel
|
|
20
|
-
*/
|
|
21
|
-
export declare function useFloatingPanelPosition(panelRef: React.RefObject<HTMLElement>, anchorElement: HTMLElement | null, enabled: boolean): {
|
|
22
|
-
top: number;
|
|
23
|
-
left: number;
|
|
24
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as Core from '../../core-viewers';
|
|
2
|
-
import { ILoadRequest as CoreILoadRequest } from '../../core-viewers/webgl/loader/progressive/loadRequest';
|
|
3
|
-
import { IProgress } from '../../core-viewers/shared/loadResult';
|
|
4
|
-
import { LoadingError } from '../webgl/loading';
|
|
5
|
-
type RequestCallbacks = {
|
|
6
|
-
onProgress: (p: IProgress) => void;
|
|
7
|
-
onError: (e: LoadingError) => void;
|
|
8
|
-
onDone: () => void;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Class to handle loading a request.
|
|
12
|
-
* Implements ILoadRequest for compatibility with Ultra viewer's load request interface.
|
|
13
|
-
*/
|
|
14
|
-
export declare class LoadRequest implements CoreILoadRequest {
|
|
15
|
-
private _source;
|
|
16
|
-
private _request;
|
|
17
|
-
private _callbacks;
|
|
18
|
-
private _onLoaded?;
|
|
19
|
-
private _progressQueue;
|
|
20
|
-
private _resultPromise;
|
|
21
|
-
constructor(callbacks: RequestCallbacks, source: Core.Webgl.RequestSource, settings: Core.Webgl.VimPartialSettings, vimIndex: number, onLoaded?: (vim: Core.Webgl.Vim) => Promise<void> | void);
|
|
22
|
-
private trackAndGetResult;
|
|
23
|
-
get isCompleted(): boolean;
|
|
24
|
-
getProgress(): AsyncGenerator<IProgress>;
|
|
25
|
-
getResult(): Promise<Core.LoadResult<Core.Webgl.Vim>>;
|
|
26
|
-
abort(): void;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,286 +0,0 @@
|
|
|
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
|
-
* @param isLazy - Whether to treat the initialValue as a lazy initializer function.
|
|
59
|
-
* @returns An object implementing StateRef along with additional helper hooks.
|
|
60
|
-
*/
|
|
61
|
-
export declare function useStateRef<T>(initialValue: T | (() => T), isLazy?: boolean): {
|
|
62
|
-
/**
|
|
63
|
-
* Returns the current state value.
|
|
64
|
-
*/
|
|
65
|
-
get(): T;
|
|
66
|
-
set: (value: T) => void;
|
|
67
|
-
onChange: ISimpleEvent<T>;
|
|
68
|
-
/**
|
|
69
|
-
* Confirms the current state by applying the confirm function and updating the state.
|
|
70
|
-
*/
|
|
71
|
-
confirm(): void;
|
|
72
|
-
/**
|
|
73
|
-
* Registers a callback to be invoked when the state changes.
|
|
74
|
-
* Accepts a sync function, a cleanup function, or a function returning a Promise<void> (which will be ignored).
|
|
75
|
-
*
|
|
76
|
-
* @param on - The callback function that receives the new state value.
|
|
77
|
-
*/
|
|
78
|
-
useOnChange(on: (value: T) => void | (() => void) | Promise<void>): void;
|
|
79
|
-
/**
|
|
80
|
-
* Memoizes a value based on the current state and additional dependencies.
|
|
81
|
-
* @param on - A function that computes a value based on the current state.
|
|
82
|
-
* @param deps - Optional additional dependencies.
|
|
83
|
-
* @returns The memoized value.
|
|
84
|
-
*/
|
|
85
|
-
useMemo<TOut>(on: (value: T) => TOut, deps?: any[]): TOut;
|
|
86
|
-
/**
|
|
87
|
-
* Sets a validation function to process any new state value before updating.
|
|
88
|
-
* @param on - A function that validates (and optionally transforms) the new state value.
|
|
89
|
-
*/
|
|
90
|
-
useValidate(on: (next: T, current: T) => T): void;
|
|
91
|
-
/**
|
|
92
|
-
* Sets a confirmation function to process the state value during confirmation.
|
|
93
|
-
* @param on - A function that confirms (and optionally transforms) the current state value.
|
|
94
|
-
*/
|
|
95
|
-
useConfirm(on: (value: T) => T): void;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Interface for an action reference (a function with no arguments).
|
|
99
|
-
* Provides methods to call, get, set, and inject code before or after the stored function.
|
|
100
|
-
*/
|
|
101
|
-
export interface ActionRef {
|
|
102
|
-
/**
|
|
103
|
-
* Invokes the stored action.
|
|
104
|
-
*/
|
|
105
|
-
call(): void;
|
|
106
|
-
/**
|
|
107
|
-
* Retrieves the current action function.
|
|
108
|
-
* @returns The stored action function.
|
|
109
|
-
*/
|
|
110
|
-
get(): () => void;
|
|
111
|
-
/**
|
|
112
|
-
* Sets the stored action function.
|
|
113
|
-
* @param fn - The new action function.
|
|
114
|
-
*/
|
|
115
|
-
set(fn: () => void): void;
|
|
116
|
-
/**
|
|
117
|
-
* Prepends a function to be executed before the stored action.
|
|
118
|
-
* @param fn - The function to run before the original action.
|
|
119
|
-
*/
|
|
120
|
-
prepend(fn: () => void): void;
|
|
121
|
-
/**
|
|
122
|
-
* Appends a function to be executed after the stored action.
|
|
123
|
-
* @param fn - The function to run after the original action.
|
|
124
|
-
*/
|
|
125
|
-
append(fn: () => void): void;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Custom hook to create an action reference.
|
|
129
|
-
*
|
|
130
|
-
* @param action - The initial action function.
|
|
131
|
-
* @returns An object implementing ActionRef.
|
|
132
|
-
*/
|
|
133
|
-
export declare function useActionRef(action: () => void): ActionRef;
|
|
134
|
-
/**
|
|
135
|
-
* Interface for an action reference that accepts an argument.
|
|
136
|
-
* Provides methods to call with an argument, get, set, and inject code before or after the stored function.
|
|
137
|
-
*/
|
|
138
|
-
export interface ArgActionRef<T> {
|
|
139
|
-
/**
|
|
140
|
-
* Invokes the stored action with the provided argument.
|
|
141
|
-
* @param arg - The argument to pass to the action.
|
|
142
|
-
*/
|
|
143
|
-
call(arg: T): void;
|
|
144
|
-
/**
|
|
145
|
-
* Retrieves the current action function.
|
|
146
|
-
* @returns The stored action function.
|
|
147
|
-
*/
|
|
148
|
-
get(): (arg: T) => void;
|
|
149
|
-
/**
|
|
150
|
-
* Sets the stored action function.
|
|
151
|
-
* @param fn - The new action function.
|
|
152
|
-
*/
|
|
153
|
-
set(fn: (arg: T) => void): void;
|
|
154
|
-
/**
|
|
155
|
-
* Prepends a function to be executed before the stored action.
|
|
156
|
-
* @param fn - The function to run before the original action.
|
|
157
|
-
*/
|
|
158
|
-
prepend(fn: (arg: T) => void): void;
|
|
159
|
-
/**
|
|
160
|
-
* Appends a function to be executed after the stored action.
|
|
161
|
-
* @param fn - The function to run after the original action.
|
|
162
|
-
*/
|
|
163
|
-
append(fn: (arg: T) => void): void;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Custom hook to create an argument-based action reference.
|
|
167
|
-
*
|
|
168
|
-
* @param action - The initial action function that accepts an argument.
|
|
169
|
-
* @returns An object implementing ArgActionRef.
|
|
170
|
-
*/
|
|
171
|
-
export declare function useArgActionRef<T>(action: (arg: T) => void): ArgActionRef<T>;
|
|
172
|
-
/**
|
|
173
|
-
* Interface for a function reference that returns a value.
|
|
174
|
-
* Provides methods to call, get, set, and inject code before or after the stored function.
|
|
175
|
-
*/
|
|
176
|
-
export interface FuncRef<T> {
|
|
177
|
-
/**
|
|
178
|
-
* Invokes the stored function and returns its value.
|
|
179
|
-
* @returns The result of the function call.
|
|
180
|
-
*/
|
|
181
|
-
call(): T;
|
|
182
|
-
/**
|
|
183
|
-
* Retrieves the current function.
|
|
184
|
-
* @returns The stored function.
|
|
185
|
-
*/
|
|
186
|
-
get(): () => T;
|
|
187
|
-
/**
|
|
188
|
-
* Sets the stored function.
|
|
189
|
-
* @param fn - The new function.
|
|
190
|
-
*/
|
|
191
|
-
set(fn: () => T): void;
|
|
192
|
-
/**
|
|
193
|
-
* Prepends a function to be executed before the stored function.
|
|
194
|
-
* @param fn - The function to run before the original function.
|
|
195
|
-
*/
|
|
196
|
-
prepend(fn: () => void): void;
|
|
197
|
-
/**
|
|
198
|
-
* Appends a function to be executed after the stored function.
|
|
199
|
-
* @param fn - The function to run after the original function.
|
|
200
|
-
*/
|
|
201
|
-
append(fn: () => void): void;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Custom hook to create a function reference.
|
|
205
|
-
*
|
|
206
|
-
* @param fn - The initial function.
|
|
207
|
-
* @returns An object implementing FuncRef.
|
|
208
|
-
*/
|
|
209
|
-
export declare function useFuncRef<T>(fn: () => T): FuncRef<T>;
|
|
210
|
-
/**
|
|
211
|
-
* Interface for an asynchronous function reference.
|
|
212
|
-
* Provides methods to call, get, set, and inject code before or after the stored async function.
|
|
213
|
-
*/
|
|
214
|
-
export interface AsyncFuncRef<T> {
|
|
215
|
-
/**
|
|
216
|
-
* Invokes the stored asynchronous function and returns a promise of its result.
|
|
217
|
-
* @returns A promise resolving to the result of the async function.
|
|
218
|
-
*/
|
|
219
|
-
call(): Promise<T>;
|
|
220
|
-
/**
|
|
221
|
-
* Retrieves the current asynchronous function.
|
|
222
|
-
* @returns The stored async function.
|
|
223
|
-
*/
|
|
224
|
-
get(): () => Promise<T>;
|
|
225
|
-
/**
|
|
226
|
-
* Sets the stored asynchronous function.
|
|
227
|
-
* @param fn - The new async function.
|
|
228
|
-
*/
|
|
229
|
-
set(fn: () => Promise<T>): void;
|
|
230
|
-
/**
|
|
231
|
-
* Prepends a function to be executed before the stored async function.
|
|
232
|
-
* @param fn - The function to run before the original async function.
|
|
233
|
-
*/
|
|
234
|
-
prepend(fn: () => Promise<void> | void): void;
|
|
235
|
-
/**
|
|
236
|
-
* Appends a function to be executed after the stored async function.
|
|
237
|
-
* @param fn - The function to run after the original async function.
|
|
238
|
-
*/
|
|
239
|
-
append(fn: () => Promise<void> | void): void;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Custom hook to create an asynchronous function reference.
|
|
243
|
-
*
|
|
244
|
-
* @param fn - The initial asynchronous function.
|
|
245
|
-
* @returns An object implementing AsyncFuncRef.
|
|
246
|
-
*/
|
|
247
|
-
export declare function useAsyncFuncRef<T>(fn: () => Promise<T>): AsyncFuncRef<T>;
|
|
248
|
-
/**
|
|
249
|
-
* Interface for a function reference that accepts an argument and returns a result.
|
|
250
|
-
* Provides methods to call, get, set, and inject code before or after the stored function.
|
|
251
|
-
*/
|
|
252
|
-
export interface ArgFuncRef<TArg, TResult> {
|
|
253
|
-
/**
|
|
254
|
-
* Invokes the stored function with the provided argument.
|
|
255
|
-
* @param arg - The argument to pass to the function.
|
|
256
|
-
* @returns The result of the function call.
|
|
257
|
-
*/
|
|
258
|
-
call(arg: TArg): TResult;
|
|
259
|
-
/**
|
|
260
|
-
* Retrieves the current function.
|
|
261
|
-
* @returns The stored function.
|
|
262
|
-
*/
|
|
263
|
-
get(): (arg: TArg) => TResult;
|
|
264
|
-
/**
|
|
265
|
-
* Sets the stored function.
|
|
266
|
-
* @param fn - The new function.
|
|
267
|
-
*/
|
|
268
|
-
set(fn: (arg: TArg) => TResult): void;
|
|
269
|
-
/**
|
|
270
|
-
* Prepends a function to be executed before the stored function.
|
|
271
|
-
* @param fn - The function to run before the original function.
|
|
272
|
-
*/
|
|
273
|
-
prepend(fn: (arg: TArg) => void): void;
|
|
274
|
-
/**
|
|
275
|
-
* Appends a function to be executed after the stored function.
|
|
276
|
-
* @param fn - The function to run after the original function.
|
|
277
|
-
*/
|
|
278
|
-
append(fn: (arg: TArg) => void): void;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Custom hook to create an argument-based function reference.
|
|
282
|
-
*
|
|
283
|
-
* @param fn - The initial function that accepts an argument and returns a result.
|
|
284
|
-
* @returns An object implementing ArgFuncRef.
|
|
285
|
-
*/
|
|
286
|
-
export declare function useArgFuncRef<TArg, TResult>(fn: (arg: TArg) => TResult): ArgFuncRef<TArg, TResult>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class SuccessResult<T> {
|
|
2
|
-
result: T;
|
|
3
|
-
constructor(result: T);
|
|
4
|
-
isSuccess(): true;
|
|
5
|
-
isError(): false;
|
|
6
|
-
}
|
|
7
|
-
export declare class ErrorResult {
|
|
8
|
-
error: string;
|
|
9
|
-
constructor(error: string);
|
|
10
|
-
isSuccess(): false;
|
|
11
|
-
isError(): this is ErrorResult;
|
|
12
|
-
}
|
|
13
|
-
export type RequestResult<T> = SuccessResult<T> | ErrorResult;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { UserBoolean } from '../settings';
|
|
2
|
-
export declare function whenTrue(value: UserBoolean | boolean, element: JSX.Element): JSX.Element;
|
|
3
|
-
export declare function whenFalse(value: UserBoolean | boolean, element: JSX.Element): JSX.Element;
|
|
4
|
-
export declare function whenAllTrue(value: (UserBoolean | boolean)[], element: JSX.Element): JSX.Element;
|
|
5
|
-
export declare function whenAllFalse(value: (UserBoolean | boolean)[], element: JSX.Element): JSX.Element;
|
|
6
|
-
export declare function whenSomeTrue(value: (UserBoolean | boolean)[], element: JSX.Element): JSX.Element;
|
|
7
|
-
export declare function whenSomeFalse(value: (UserBoolean | boolean)[], element: JSX.Element): JSX.Element;
|
|
8
|
-
/**
|
|
9
|
-
* Makes all fields optional recursively
|
|
10
|
-
* @template T - The type to make recursively partial
|
|
11
|
-
* @returns A type with all nested properties made optional
|
|
12
|
-
*/
|
|
13
|
-
export type RecursivePartial<T> = {
|
|
14
|
-
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
|
|
15
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module icons
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Common Icon Options.
|
|
6
|
-
*/
|
|
7
|
-
export type IconOptions = {
|
|
8
|
-
height: number | string;
|
|
9
|
-
width: number | string;
|
|
10
|
-
fill: string;
|
|
11
|
-
className?: string;
|
|
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;
|
|
15
|
-
export declare function slidersHoriz({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function settings({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare function help({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare function trash({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare function checkmark({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare function undo({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export declare function close({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare function home({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare function fullsScreen({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare function minimize({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export declare function treeView({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export declare function more({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export declare function collapse({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export declare function arrowLeft({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export declare function fullArrowLeft({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export declare function visible({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
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;
|
|
34
|
-
export declare function orbit({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export declare function look({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export declare function perspective({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
export declare function orthographic({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export declare function camera({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
export declare function pan({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
export declare function zoom({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export declare function frameRect({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
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;
|
|
48
|
-
export declare function toggleIsolation({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
49
|
-
export declare function measure({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
export declare function sectionBoxSettings({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
export declare function sectionBoxAuto({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
52
|
-
export declare function sectionBoxVisible({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
export declare function sectionBox({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
54
|
-
export declare function sectionBoxDisable({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
export declare function sectionBoxClip({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export declare function sectionBoxIgnore({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
57
|
-
export declare function sectionBoxReset({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
58
|
-
export declare function sectionBoxShrink({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
59
|
-
export declare function sectionBoxShrink2({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
60
|
-
export declare function ghost({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
export declare function ghostDead({ height, width, fill, className }: IconOptions): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import './style.css';
|
|
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';
|
|
9
|
-
export * as Urls from './urls';
|
|
10
|
-
export * from './container';
|
|
11
|
-
export * from './panels';
|
|
12
|
-
export * from './helpers';
|
|
13
|
-
export * from './generic';
|
|
14
|
-
export type * from './state';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module viw-webgl-react
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import * as Core from '../../core-viewers';
|
|
6
|
-
import { CameraRef } from '../state/cameraState';
|
|
7
|
-
import { SettingsState } from '../settings/settingsState';
|
|
8
|
-
import { WebglSettings } from '../webgl/settings';
|
|
9
|
-
/**
|
|
10
|
-
* Memoized version of the AxesPanelMemo.
|
|
11
|
-
*/
|
|
12
|
-
export declare const AxesPanelMemo: React.MemoExoticComponent<typeof AxesPanel>;
|
|
13
|
-
/**
|
|
14
|
-
* JSX Component for axes gizmo.
|
|
15
|
-
*/
|
|
16
|
-
declare function AxesPanel(props: {
|
|
17
|
-
viewer: Core.Webgl.Viewer;
|
|
18
|
-
camera: CameraRef;
|
|
19
|
-
settings: SettingsState<WebglSettings>;
|
|
20
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module viw-webgl-react
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { CameraRef } from '../state/cameraState';
|
|
6
|
-
import { TreeActionRef } from '../bim/bimTree';
|
|
7
|
-
import { ModalHandle } from './modal';
|
|
8
|
-
import { IsolationRef } from '../state/sharedIsolation';
|
|
9
|
-
import * as Core from '../../core-viewers';
|
|
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
|
-
};
|
|
21
|
-
export declare function showContextMenu(position: {
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
} | undefined): void;
|
|
25
|
-
/**
|
|
26
|
-
* Current list of context menu item ids. Used to find and replace items when customizing the context menu.
|
|
27
|
-
*/
|
|
28
|
-
export declare const contextMenuElementIds: {
|
|
29
|
-
showControls: string;
|
|
30
|
-
dividerCamera: string;
|
|
31
|
-
resetCamera: string;
|
|
32
|
-
zoomToFit: string;
|
|
33
|
-
dividerSelection: string;
|
|
34
|
-
isolateSelection: string;
|
|
35
|
-
selectSimilar: string;
|
|
36
|
-
hideObject: string;
|
|
37
|
-
showObject: string;
|
|
38
|
-
clearSelection: string;
|
|
39
|
-
showAll: string;
|
|
40
|
-
dividerSection: string;
|
|
41
|
-
ignoreSection: string;
|
|
42
|
-
resetSection: string;
|
|
43
|
-
fitSectionToSelection: string;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Represents a button in the context menu. It can't be clicked triggering given action.
|
|
47
|
-
*/
|
|
48
|
-
export interface IContextMenuButton {
|
|
49
|
-
id: string;
|
|
50
|
-
label: string;
|
|
51
|
-
keyboard: string;
|
|
52
|
-
action: (e: ClickCallback) => void;
|
|
53
|
-
enabled: boolean;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Represents a divider in the context menu. It can't be clicked.
|
|
57
|
-
*/
|
|
58
|
-
export interface IContextMenuDivider {
|
|
59
|
-
id: string;
|
|
60
|
-
enabled: boolean;
|
|
61
|
-
}
|
|
62
|
-
export type ContextMenuElement = IContextMenuButton | IContextMenuDivider;
|
|
63
|
-
/**
|
|
64
|
-
* A map function that changes the context menu.
|
|
65
|
-
*/
|
|
66
|
-
export type ContextMenuCustomization = (e: ContextMenuElement[]) => ContextMenuElement[];
|
|
67
|
-
/**
|
|
68
|
-
* Memoized version of VimContextMenu.
|
|
69
|
-
*/
|
|
70
|
-
export declare const VimContextMenuMemo: React.MemoExoticComponent<typeof ContextMenu>;
|
|
71
|
-
/**
|
|
72
|
-
* Context menu viewer definition according to current state.
|
|
73
|
-
*/
|
|
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[];
|
|
80
|
-
customization?: (e: ContextMenuElement[]) => ContextMenuElement[];
|
|
81
|
-
treeRef: React.MutableRefObject<TreeActionRef | undefined>;
|
|
82
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
83
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export * as ContextMenu from './contextMenu';
|
|
2
|
-
export declare const SectionBoxPanel: {
|
|
3
|
-
Ids: {
|
|
4
|
-
showGhost: string;
|
|
5
|
-
ghostOpacity: string;
|
|
6
|
-
transparency: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export declare const IsolationPanel: {
|
|
10
|
-
Ids: {
|
|
11
|
-
topOffset: string;
|
|
12
|
-
sideOffset: string;
|
|
13
|
-
bottomOffset: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export type * from './axesPanel';
|
|
17
|
-
export type * from './help';
|
|
18
|
-
export type * from './loadingBox';
|
|
19
|
-
export type * from './logo';
|
|
20
|
-
export type * from './messageBox';
|
|
21
|
-
export type * from './modal';
|
|
22
|
-
export type * from './overlay';
|
|
23
|
-
export type * from './performance';
|
|
24
|
-
export type * from './isolationPanel';
|
|
25
|
-
export type * from './restOfScreen';
|
|
26
|
-
export type * from './toast';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IsolationRef } from "../state/sharedIsolation";
|
|
2
|
-
import { GenericPanelHandle } from "../generic/genericPanel";
|
|
3
|
-
export declare const Ids: {
|
|
4
|
-
showGhost: string;
|
|
5
|
-
ghostOpacity: string;
|
|
6
|
-
transparency: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const IsolationPanel: import("react").ForwardRefExoticComponent<{
|
|
9
|
-
state: IsolationRef;
|
|
10
|
-
transparency: boolean;
|
|
11
|
-
} & import("react").RefAttributes<GenericPanelHandle>>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module viw-webgl-react
|
|
3
|
-
*/
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
|
-
export type ProgressMode = 'percent' | 'bytes';
|
|
6
|
-
/**
|
|
7
|
-
* Interface for message information displayed in the LoadingBox.
|
|
8
|
-
* @property message - Optional main message text.
|
|
9
|
-
* @property info - Optional additional information or tooltip text.
|
|
10
|
-
* @property progress - The progress of an operation.
|
|
11
|
-
*/
|
|
12
|
-
export type LoadingBoxProps = {
|
|
13
|
-
message?: string;
|
|
14
|
-
progress?: number;
|
|
15
|
-
mode?: ProgressMode;
|
|
16
|
-
more?: ReactNode;
|
|
17
|
-
};
|
|
18
|
-
export type LoadingBoxPropsTyped = LoadingBoxProps & {
|
|
19
|
-
type: 'loading';
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* LoadingBox viewer that displays a loading message or other messages.
|
|
23
|
-
* @param props - Component props containing optional content.
|
|
24
|
-
* @returns The LoadingBox viewer or null if no content is provided.
|
|
25
|
-
*/
|
|
26
|
-
export declare function LoadingBox(props: {
|
|
27
|
-
content: LoadingBoxProps;
|
|
28
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export declare function UltraSuggestion(): import("react/jsx-runtime").JSX.Element;
|