vim-web 0.3.26 → 0.3.27-dev.0
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/types/core-viewers/webgl/index.d.ts +26 -0
- package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/materials/viewerMaterials.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/open.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/subsetRequest.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/vimRequest.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/camera/cameraMovement.d.ts +2 -2
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/camera/cameraMovementLerp.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/camera/cameraMovementSnap.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/environment/environment.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/environment/skybox.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/markers/gizmoMarker.d.ts +2 -2
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/raycaster.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/rendering/mergePass.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/rendering/outlinePass.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/rendering/renderScene.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/rendering/renderer.d.ts +2 -2
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/rendering/renderingComposer.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/rendering/renderingSection.d.ts +1 -1
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/selection.d.ts +3 -2
- package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/viewer.d.ts +2 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/{react-viewer → react-viewers}/bim/bimInfoData.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/bim/bimInfoObject.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/bim/bimInfoPanel.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/bim/bimInfoVim.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/bim/bimPanel.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/bim/bimTree.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/bim/bimTreeData.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/controlbar/controlBar.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/controlbar/controlBarCommands.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/controlbar/measureState.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/controlbar/pointerState.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/controlbar/sectionBoxState.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/helpers/camera.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/helpers/cameraObserver.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/helpers/cursor.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/helpers/element.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/helpers/inputs.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/helpers/isolation.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/helpers/loadRequest.d.ts +2 -2
- package/dist/types/{react-viewer → react-viewers}/panels/toast.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/settings/menuSettings.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/settings/settingsState.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/sidePanel/sidePanel.d.ts +1 -1
- package/dist/types/react-viewers/ultra/index.d.ts +1 -0
- package/dist/types/{react-viewer → react-viewers}/ultra/ultraComponent.d.ts +1 -2
- package/dist/types/react-viewers/ultra/ultraErrors.d.ts +3 -0
- package/dist/types/react-viewers/webgl/index.d.ts +1 -0
- package/dist/types/{react-viewer → react-viewers}/webgl/viewerState.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/webgl/webglComponent.d.ts +3 -3
- package/dist/types/{react-viewer → react-viewers}/webgl/webglComponentRef.d.ts +1 -1
- package/dist/types/{react-viewer → react-viewers}/webgl/webglLoading.d.ts +1 -1
- package/dist/vim-web.iife.js +1164 -1163
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.mjs +1164 -1163
- package/dist/vim-web.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/types/react-viewer/ultra/ultraErrors.d.ts +0 -3
- package/dist/types/webgl-viewer/webglViewerIndex.d.ts +0 -26
- /package/dist/types/{ultra-viewer/ultraViewerIndex.d.ts → core-viewers/ultra/index.d.ts} +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/utils/array.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/utils/debounce.d.ts +0 -0
- /package/dist/types/{react-viewer/helpers → core-viewers/ultra/utils}/deferredPromise.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/utils/math3d.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/utils/promise.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/utils/result.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/utils/url.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/utils/validation.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/camera.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/color.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/colorManager.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/decoder.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/decoderWithWorker.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/inputs/InputTouch.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/inputs/inputHandler.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/inputs/inputKeyboard.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/inputs/inputMouse.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/inputs/inputs.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/loadRequest.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/logger.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/marshal.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/protocol.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/renderer.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/rpcClient.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/rpcSafeClient.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/selection.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/socketClient.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/streamLogger.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/streamRenderer.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/viewer.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/viewport.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/vim.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/ultra}/viewer/vimCollection.d.ts +0 -0
- /package/dist/types/{webgl-viewer → core-viewers/webgl}/images.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/averageBoundingBox.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/colorAttributes.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/elementMapping.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/geometry.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/materials/isolationMaterial.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/materials/maskMaterial.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/materials/mergeMaterial.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/materials/outlineMaterial.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/materials/simpleMaterial.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/materials/skyboxMaterial.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/materials/standardMaterial.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/materials/transferMaterial.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/mesh.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/object3D.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/objectAttributes.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/g3dOffsets.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/g3dSubset.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/insertableGeometry.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/insertableMesh.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/insertableSubmesh.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/instancedMesh.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/instancedMeshFactory.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/instancedSubmesh.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/legacyMeshFactory.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/loadingSynchronizer.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/subsetBuilder.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/progressive/vimx.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/scene.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/vim.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-loader → core-viewers/webgl/loader}/vimSettings.d.ts +0 -0
- /package/dist/types/{webgl-viewer → core-viewers/webgl}/utils/boxes.d.ts +0 -0
- /package/dist/types/{ultra-viewer → core-viewers/webgl}/utils/deferredPromise.d.ts +0 -0
- /package/dist/types/{webgl-viewer → core-viewers/webgl}/utils/requestResult.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/camera/camera.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/camera/orthographic.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/camera/perspective.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/environment/cameraLight.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/environment/groundPlane.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/axes/axes.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/axes/axesSettings.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/axes/gizmoAxes.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/gizmoLoading.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/gizmoOrbit.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/gizmoRectangle.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/gizmos.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/markers/gizmoMarkers.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/measure/measure.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/measure/measureFlow.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/measure/measureGizmo.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/measure/measureHtml.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/sectionBox/sectionBox.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/sectionBox/sectionBoxGizmo.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/gizmos/sectionBox/sectionBoxInputs.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/inputs/input.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/inputs/inputHandler.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/inputs/keyboard.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/inputs/mouse.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/inputs/touch.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/rendering/transferPass.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/settings/defaultViewerSettings.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/settings/viewerSettings.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/settings/viewerSettingsParsing.d.ts +0 -0
- /package/dist/types/{webgl-viewer/vim-webgl-viewer → core-viewers/webgl/viewer}/viewport.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/bim/bimInfoBody.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/bim/bimInfoHeader.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/bim/bimSearch.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/bim/bimUtils.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/bim/openState.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/container.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/controlbar/controlBarButton.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/controlbar/controlBarSection.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/controlbar/fullScreenState.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/controlbar/restOfScreen.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/errors/errorStyle.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/errors/errorUtils.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/errors/errors.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/errors/fileDownloadingError.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/errors/fileLoadingError.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/errors/fileOpeningError.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/errors/serverCompatibilityError.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/errors/serverConnectionError.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/helpers/data.d.ts +0 -0
- /package/dist/types/{webgl-viewer/utils → react-viewers/helpers}/deferredPromise.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/helpers/fullScreenObserver.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/helpers/requestResult.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/helpers/utils.d.ts +0 -0
- /package/dist/types/{react-viewer/reactViewerIndex.d.ts → react-viewers/index.d.ts} +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/axesPanel.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/contextMenu.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/help.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/icons.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/loadingBox.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/logo.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/messageBox.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/modal.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/overlay.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/panels/performance.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/settings/settings.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/settings/settingsStorage.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/sidePanel/sideState.d.ts +0 -0
- /package/dist/types/{react-viewer → react-viewers}/urls.d.ts +0 -0
package/dist/vim-web.iife.js
CHANGED
|
@@ -220,9 +220,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
220
220
|
const listeners = this._listeners;
|
|
221
221
|
const listenerArray = listeners[type];
|
|
222
222
|
if (listenerArray !== void 0) {
|
|
223
|
-
const
|
|
224
|
-
if (
|
|
225
|
-
listenerArray.splice(
|
|
223
|
+
const index2 = listenerArray.indexOf(listener2);
|
|
224
|
+
if (index2 !== -1) {
|
|
225
|
+
listenerArray.splice(index2, 1);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
}
|
|
@@ -449,8 +449,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
449
449
|
this.y = y;
|
|
450
450
|
return this;
|
|
451
451
|
}
|
|
452
|
-
setComponent(
|
|
453
|
-
switch (
|
|
452
|
+
setComponent(index2, value) {
|
|
453
|
+
switch (index2) {
|
|
454
454
|
case 0:
|
|
455
455
|
this.x = value;
|
|
456
456
|
break;
|
|
@@ -458,18 +458,18 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
458
458
|
this.y = value;
|
|
459
459
|
break;
|
|
460
460
|
default:
|
|
461
|
-
throw new Error("index is out of range: " +
|
|
461
|
+
throw new Error("index is out of range: " + index2);
|
|
462
462
|
}
|
|
463
463
|
return this;
|
|
464
464
|
}
|
|
465
|
-
getComponent(
|
|
466
|
-
switch (
|
|
465
|
+
getComponent(index2) {
|
|
466
|
+
switch (index2) {
|
|
467
467
|
case 0:
|
|
468
468
|
return this.x;
|
|
469
469
|
case 1:
|
|
470
470
|
return this.y;
|
|
471
471
|
default:
|
|
472
|
-
throw new Error("index is out of range: " +
|
|
472
|
+
throw new Error("index is out of range: " + index2);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
clone() {
|
|
@@ -647,9 +647,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
647
647
|
array[offset + 1] = this.y;
|
|
648
648
|
return array;
|
|
649
649
|
}
|
|
650
|
-
fromBufferAttribute(attribute,
|
|
651
|
-
this.x = attribute.getX(
|
|
652
|
-
this.y = attribute.getY(
|
|
650
|
+
fromBufferAttribute(attribute, index2) {
|
|
651
|
+
this.x = attribute.getX(index2);
|
|
652
|
+
this.y = attribute.getY(index2);
|
|
653
653
|
return this;
|
|
654
654
|
}
|
|
655
655
|
rotateAround(center, angle) {
|
|
@@ -1439,10 +1439,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1439
1439
|
array[offset + 2] = this.b;
|
|
1440
1440
|
return array;
|
|
1441
1441
|
}
|
|
1442
|
-
fromBufferAttribute(attribute,
|
|
1443
|
-
this.r = attribute.getX(
|
|
1444
|
-
this.g = attribute.getY(
|
|
1445
|
-
this.b = attribute.getZ(
|
|
1442
|
+
fromBufferAttribute(attribute, index2) {
|
|
1443
|
+
this.r = attribute.getX(index2);
|
|
1444
|
+
this.g = attribute.getY(index2);
|
|
1445
|
+
this.b = attribute.getZ(index2);
|
|
1446
1446
|
if (attribute.normalized === true) {
|
|
1447
1447
|
this.r /= 255;
|
|
1448
1448
|
this.g /= 255;
|
|
@@ -1800,8 +1800,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1800
1800
|
this.w = w;
|
|
1801
1801
|
return this;
|
|
1802
1802
|
}
|
|
1803
|
-
setComponent(
|
|
1804
|
-
switch (
|
|
1803
|
+
setComponent(index2, value) {
|
|
1804
|
+
switch (index2) {
|
|
1805
1805
|
case 0:
|
|
1806
1806
|
this.x = value;
|
|
1807
1807
|
break;
|
|
@@ -1815,12 +1815,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1815
1815
|
this.w = value;
|
|
1816
1816
|
break;
|
|
1817
1817
|
default:
|
|
1818
|
-
throw new Error("index is out of range: " +
|
|
1818
|
+
throw new Error("index is out of range: " + index2);
|
|
1819
1819
|
}
|
|
1820
1820
|
return this;
|
|
1821
1821
|
}
|
|
1822
|
-
getComponent(
|
|
1823
|
-
switch (
|
|
1822
|
+
getComponent(index2) {
|
|
1823
|
+
switch (index2) {
|
|
1824
1824
|
case 0:
|
|
1825
1825
|
return this.x;
|
|
1826
1826
|
case 1:
|
|
@@ -1830,7 +1830,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1830
1830
|
case 3:
|
|
1831
1831
|
return this.w;
|
|
1832
1832
|
default:
|
|
1833
|
-
throw new Error("index is out of range: " +
|
|
1833
|
+
throw new Error("index is out of range: " + index2);
|
|
1834
1834
|
}
|
|
1835
1835
|
}
|
|
1836
1836
|
clone() {
|
|
@@ -2105,11 +2105,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2105
2105
|
array[offset + 3] = this.w;
|
|
2106
2106
|
return array;
|
|
2107
2107
|
}
|
|
2108
|
-
fromBufferAttribute(attribute,
|
|
2109
|
-
this.x = attribute.getX(
|
|
2110
|
-
this.y = attribute.getY(
|
|
2111
|
-
this.z = attribute.getZ(
|
|
2112
|
-
this.w = attribute.getW(
|
|
2108
|
+
fromBufferAttribute(attribute, index2) {
|
|
2109
|
+
this.x = attribute.getX(index2);
|
|
2110
|
+
this.y = attribute.getY(index2);
|
|
2111
|
+
this.z = attribute.getZ(index2);
|
|
2112
|
+
this.w = attribute.getW(index2);
|
|
2113
2113
|
return this;
|
|
2114
2114
|
}
|
|
2115
2115
|
random() {
|
|
@@ -2644,11 +2644,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2644
2644
|
array[offset + 3] = this._w;
|
|
2645
2645
|
return array;
|
|
2646
2646
|
}
|
|
2647
|
-
fromBufferAttribute(attribute,
|
|
2648
|
-
this._x = attribute.getX(
|
|
2649
|
-
this._y = attribute.getY(
|
|
2650
|
-
this._z = attribute.getZ(
|
|
2651
|
-
this._w = attribute.getW(
|
|
2647
|
+
fromBufferAttribute(attribute, index2) {
|
|
2648
|
+
this._x = attribute.getX(index2);
|
|
2649
|
+
this._y = attribute.getY(index2);
|
|
2650
|
+
this._z = attribute.getZ(index2);
|
|
2651
|
+
this._w = attribute.getW(index2);
|
|
2652
2652
|
return this;
|
|
2653
2653
|
}
|
|
2654
2654
|
_onChange(callback) {
|
|
@@ -2696,8 +2696,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2696
2696
|
this.z = z;
|
|
2697
2697
|
return this;
|
|
2698
2698
|
}
|
|
2699
|
-
setComponent(
|
|
2700
|
-
switch (
|
|
2699
|
+
setComponent(index2, value) {
|
|
2700
|
+
switch (index2) {
|
|
2701
2701
|
case 0:
|
|
2702
2702
|
this.x = value;
|
|
2703
2703
|
break;
|
|
@@ -2708,12 +2708,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2708
2708
|
this.z = value;
|
|
2709
2709
|
break;
|
|
2710
2710
|
default:
|
|
2711
|
-
throw new Error("index is out of range: " +
|
|
2711
|
+
throw new Error("index is out of range: " + index2);
|
|
2712
2712
|
}
|
|
2713
2713
|
return this;
|
|
2714
2714
|
}
|
|
2715
|
-
getComponent(
|
|
2716
|
-
switch (
|
|
2715
|
+
getComponent(index2) {
|
|
2716
|
+
switch (index2) {
|
|
2717
2717
|
case 0:
|
|
2718
2718
|
return this.x;
|
|
2719
2719
|
case 1:
|
|
@@ -2721,7 +2721,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2721
2721
|
case 2:
|
|
2722
2722
|
return this.z;
|
|
2723
2723
|
default:
|
|
2724
|
-
throw new Error("index is out of range: " +
|
|
2724
|
+
throw new Error("index is out of range: " + index2);
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
2727
|
clone() {
|
|
@@ -3018,11 +3018,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
3018
3018
|
this.z = sz;
|
|
3019
3019
|
return this;
|
|
3020
3020
|
}
|
|
3021
|
-
setFromMatrixColumn(m,
|
|
3022
|
-
return this.fromArray(m.elements,
|
|
3021
|
+
setFromMatrixColumn(m, index2) {
|
|
3022
|
+
return this.fromArray(m.elements, index2 * 4);
|
|
3023
3023
|
}
|
|
3024
|
-
setFromMatrix3Column(m,
|
|
3025
|
-
return this.fromArray(m.elements,
|
|
3024
|
+
setFromMatrix3Column(m, index2) {
|
|
3025
|
+
return this.fromArray(m.elements, index2 * 3);
|
|
3026
3026
|
}
|
|
3027
3027
|
setFromEuler(e) {
|
|
3028
3028
|
this.x = e._x;
|
|
@@ -3045,10 +3045,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
3045
3045
|
array[offset + 2] = this.z;
|
|
3046
3046
|
return array;
|
|
3047
3047
|
}
|
|
3048
|
-
fromBufferAttribute(attribute,
|
|
3049
|
-
this.x = attribute.getX(
|
|
3050
|
-
this.y = attribute.getY(
|
|
3051
|
-
this.z = attribute.getZ(
|
|
3048
|
+
fromBufferAttribute(attribute, index2) {
|
|
3049
|
+
this.x = attribute.getX(index2);
|
|
3050
|
+
this.y = attribute.getY(index2);
|
|
3051
|
+
this.z = attribute.getZ(index2);
|
|
3052
3052
|
return this;
|
|
3053
3053
|
}
|
|
3054
3054
|
random() {
|
|
@@ -4868,10 +4868,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4868
4868
|
}
|
|
4869
4869
|
return this;
|
|
4870
4870
|
}
|
|
4871
|
-
const
|
|
4872
|
-
if (
|
|
4871
|
+
const index2 = this.children.indexOf(object);
|
|
4872
|
+
if (index2 !== -1) {
|
|
4873
4873
|
object.parent = null;
|
|
4874
|
-
this.children.splice(
|
|
4874
|
+
this.children.splice(index2, 1);
|
|
4875
4875
|
object.dispatchEvent(_removedEvent);
|
|
4876
4876
|
}
|
|
4877
4877
|
return this;
|
|
@@ -5842,53 +5842,53 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5842
5842
|
this.array.set(value, offset);
|
|
5843
5843
|
return this;
|
|
5844
5844
|
}
|
|
5845
|
-
getX(
|
|
5846
|
-
return this.array[
|
|
5845
|
+
getX(index2) {
|
|
5846
|
+
return this.array[index2 * this.itemSize];
|
|
5847
5847
|
}
|
|
5848
|
-
setX(
|
|
5849
|
-
this.array[
|
|
5848
|
+
setX(index2, x) {
|
|
5849
|
+
this.array[index2 * this.itemSize] = x;
|
|
5850
5850
|
return this;
|
|
5851
5851
|
}
|
|
5852
|
-
getY(
|
|
5853
|
-
return this.array[
|
|
5852
|
+
getY(index2) {
|
|
5853
|
+
return this.array[index2 * this.itemSize + 1];
|
|
5854
5854
|
}
|
|
5855
|
-
setY(
|
|
5856
|
-
this.array[
|
|
5855
|
+
setY(index2, y) {
|
|
5856
|
+
this.array[index2 * this.itemSize + 1] = y;
|
|
5857
5857
|
return this;
|
|
5858
5858
|
}
|
|
5859
|
-
getZ(
|
|
5860
|
-
return this.array[
|
|
5859
|
+
getZ(index2) {
|
|
5860
|
+
return this.array[index2 * this.itemSize + 2];
|
|
5861
5861
|
}
|
|
5862
|
-
setZ(
|
|
5863
|
-
this.array[
|
|
5862
|
+
setZ(index2, z) {
|
|
5863
|
+
this.array[index2 * this.itemSize + 2] = z;
|
|
5864
5864
|
return this;
|
|
5865
5865
|
}
|
|
5866
|
-
getW(
|
|
5867
|
-
return this.array[
|
|
5866
|
+
getW(index2) {
|
|
5867
|
+
return this.array[index2 * this.itemSize + 3];
|
|
5868
5868
|
}
|
|
5869
|
-
setW(
|
|
5870
|
-
this.array[
|
|
5869
|
+
setW(index2, w) {
|
|
5870
|
+
this.array[index2 * this.itemSize + 3] = w;
|
|
5871
5871
|
return this;
|
|
5872
5872
|
}
|
|
5873
|
-
setXY(
|
|
5874
|
-
|
|
5875
|
-
this.array[
|
|
5876
|
-
this.array[
|
|
5873
|
+
setXY(index2, x, y) {
|
|
5874
|
+
index2 *= this.itemSize;
|
|
5875
|
+
this.array[index2 + 0] = x;
|
|
5876
|
+
this.array[index2 + 1] = y;
|
|
5877
5877
|
return this;
|
|
5878
5878
|
}
|
|
5879
|
-
setXYZ(
|
|
5880
|
-
|
|
5881
|
-
this.array[
|
|
5882
|
-
this.array[
|
|
5883
|
-
this.array[
|
|
5879
|
+
setXYZ(index2, x, y, z) {
|
|
5880
|
+
index2 *= this.itemSize;
|
|
5881
|
+
this.array[index2 + 0] = x;
|
|
5882
|
+
this.array[index2 + 1] = y;
|
|
5883
|
+
this.array[index2 + 2] = z;
|
|
5884
5884
|
return this;
|
|
5885
5885
|
}
|
|
5886
|
-
setXYZW(
|
|
5887
|
-
|
|
5888
|
-
this.array[
|
|
5889
|
-
this.array[
|
|
5890
|
-
this.array[
|
|
5891
|
-
this.array[
|
|
5886
|
+
setXYZW(index2, x, y, z, w) {
|
|
5887
|
+
index2 *= this.itemSize;
|
|
5888
|
+
this.array[index2 + 0] = x;
|
|
5889
|
+
this.array[index2 + 1] = y;
|
|
5890
|
+
this.array[index2 + 2] = z;
|
|
5891
|
+
this.array[index2 + 3] = w;
|
|
5892
5892
|
return this;
|
|
5893
5893
|
}
|
|
5894
5894
|
onUpload(callback) {
|
|
@@ -5990,11 +5990,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5990
5990
|
getIndex() {
|
|
5991
5991
|
return this.index;
|
|
5992
5992
|
}
|
|
5993
|
-
setIndex(
|
|
5994
|
-
if (Array.isArray(
|
|
5995
|
-
this.index = new (arrayNeedsUint32(
|
|
5993
|
+
setIndex(index2) {
|
|
5994
|
+
if (Array.isArray(index2)) {
|
|
5995
|
+
this.index = new (arrayNeedsUint32(index2) ? Uint32BufferAttribute : Uint16BufferAttribute)(index2, 1);
|
|
5996
5996
|
} else {
|
|
5997
|
-
this.index =
|
|
5997
|
+
this.index = index2;
|
|
5998
5998
|
}
|
|
5999
5999
|
return this;
|
|
6000
6000
|
}
|
|
@@ -6196,13 +6196,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6196
6196
|
}
|
|
6197
6197
|
}
|
|
6198
6198
|
computeTangents() {
|
|
6199
|
-
const
|
|
6199
|
+
const index2 = this.index;
|
|
6200
6200
|
const attributes = this.attributes;
|
|
6201
|
-
if (
|
|
6201
|
+
if (index2 === null || attributes.position === void 0 || attributes.normal === void 0 || attributes.uv === void 0) {
|
|
6202
6202
|
console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");
|
|
6203
6203
|
return;
|
|
6204
6204
|
}
|
|
6205
|
-
const indices =
|
|
6205
|
+
const indices = index2.array;
|
|
6206
6206
|
const positions = attributes.position.array;
|
|
6207
6207
|
const normals = attributes.normal.array;
|
|
6208
6208
|
const uvs = attributes.uv.array;
|
|
@@ -6286,7 +6286,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6286
6286
|
}
|
|
6287
6287
|
}
|
|
6288
6288
|
computeVertexNormals() {
|
|
6289
|
-
const
|
|
6289
|
+
const index2 = this.index;
|
|
6290
6290
|
const positionAttribute = this.getAttribute("position");
|
|
6291
6291
|
if (positionAttribute !== void 0) {
|
|
6292
6292
|
let normalAttribute = this.getAttribute("normal");
|
|
@@ -6301,11 +6301,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6301
6301
|
const pA = new Vector3$1(), pB = new Vector3$1(), pC = new Vector3$1();
|
|
6302
6302
|
const nA = new Vector3$1(), nB = new Vector3$1(), nC = new Vector3$1();
|
|
6303
6303
|
const cb = new Vector3$1(), ab = new Vector3$1();
|
|
6304
|
-
if (
|
|
6305
|
-
for (let i2 = 0, il =
|
|
6306
|
-
const vA =
|
|
6307
|
-
const vB =
|
|
6308
|
-
const vC =
|
|
6304
|
+
if (index2) {
|
|
6305
|
+
for (let i2 = 0, il = index2.count; i2 < il; i2 += 3) {
|
|
6306
|
+
const vA = index2.getX(i2 + 0);
|
|
6307
|
+
const vB = index2.getX(i2 + 1);
|
|
6308
|
+
const vC = index2.getX(i2 + 2);
|
|
6309
6309
|
pA.fromBufferAttribute(positionAttribute, vA);
|
|
6310
6310
|
pB.fromBufferAttribute(positionAttribute, vB);
|
|
6311
6311
|
pC.fromBufferAttribute(positionAttribute, vC);
|
|
@@ -6379,15 +6379,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6379
6379
|
const itemSize = attribute.itemSize;
|
|
6380
6380
|
const normalized = attribute.normalized;
|
|
6381
6381
|
const array2 = new array.constructor(indices2.length * itemSize);
|
|
6382
|
-
let
|
|
6382
|
+
let index2 = 0, index22 = 0;
|
|
6383
6383
|
for (let i2 = 0, l = indices2.length; i2 < l; i2++) {
|
|
6384
6384
|
if (attribute.isInterleavedBufferAttribute) {
|
|
6385
|
-
|
|
6385
|
+
index2 = indices2[i2] * attribute.data.stride + attribute.offset;
|
|
6386
6386
|
} else {
|
|
6387
|
-
|
|
6387
|
+
index2 = indices2[i2] * itemSize;
|
|
6388
6388
|
}
|
|
6389
6389
|
for (let j = 0; j < itemSize; j++) {
|
|
6390
|
-
array2[
|
|
6390
|
+
array2[index22++] = array[index2++];
|
|
6391
6391
|
}
|
|
6392
6392
|
}
|
|
6393
6393
|
return new BufferAttribute(array2, itemSize, normalized);
|
|
@@ -6443,11 +6443,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6443
6443
|
return data2;
|
|
6444
6444
|
}
|
|
6445
6445
|
data2.data = { attributes: {} };
|
|
6446
|
-
const
|
|
6447
|
-
if (
|
|
6446
|
+
const index2 = this.index;
|
|
6447
|
+
if (index2 !== null) {
|
|
6448
6448
|
data2.data.index = {
|
|
6449
|
-
type:
|
|
6450
|
-
array: Array.prototype.slice.call(
|
|
6449
|
+
type: index2.array.constructor.name,
|
|
6450
|
+
array: Array.prototype.slice.call(index2.array)
|
|
6451
6451
|
};
|
|
6452
6452
|
}
|
|
6453
6453
|
const attributes = this.attributes;
|
|
@@ -6498,9 +6498,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6498
6498
|
this.boundingSphere = null;
|
|
6499
6499
|
const data2 = {};
|
|
6500
6500
|
this.name = source.name;
|
|
6501
|
-
const
|
|
6502
|
-
if (
|
|
6503
|
-
this.setIndex(
|
|
6501
|
+
const index2 = source.index;
|
|
6502
|
+
if (index2 !== null) {
|
|
6503
|
+
this.setIndex(index2.clone(data2));
|
|
6504
6504
|
}
|
|
6505
6505
|
const attributes = source.attributes;
|
|
6506
6506
|
for (const name in attributes) {
|
|
@@ -6610,7 +6610,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6610
6610
|
if (_ray$2.intersectsBox(geometry.boundingBox) === false) return;
|
|
6611
6611
|
}
|
|
6612
6612
|
let intersection;
|
|
6613
|
-
const
|
|
6613
|
+
const index2 = geometry.index;
|
|
6614
6614
|
const position = geometry.attributes.position;
|
|
6615
6615
|
const morphPosition = geometry.morphAttributes.position;
|
|
6616
6616
|
const morphTargetsRelative = geometry.morphTargetsRelative;
|
|
@@ -6618,17 +6618,17 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6618
6618
|
const uv2 = geometry.attributes.uv2;
|
|
6619
6619
|
const groups = geometry.groups;
|
|
6620
6620
|
const drawRange = geometry.drawRange;
|
|
6621
|
-
if (
|
|
6621
|
+
if (index2 !== null) {
|
|
6622
6622
|
if (Array.isArray(material)) {
|
|
6623
6623
|
for (let i2 = 0, il = groups.length; i2 < il; i2++) {
|
|
6624
6624
|
const group = groups[i2];
|
|
6625
6625
|
const groupMaterial = material[group.materialIndex];
|
|
6626
6626
|
const start = Math.max(group.start, drawRange.start);
|
|
6627
|
-
const end = Math.min(
|
|
6627
|
+
const end = Math.min(index2.count, Math.min(group.start + group.count, drawRange.start + drawRange.count));
|
|
6628
6628
|
for (let j = start, jl = end; j < jl; j += 3) {
|
|
6629
|
-
const a =
|
|
6630
|
-
const b =
|
|
6631
|
-
const c =
|
|
6629
|
+
const a = index2.getX(j);
|
|
6630
|
+
const b = index2.getX(j + 1);
|
|
6631
|
+
const c = index2.getX(j + 2);
|
|
6632
6632
|
intersection = checkBufferGeometryIntersection(this, groupMaterial, raycaster, _ray$2, position, morphPosition, morphTargetsRelative, uv, uv2, a, b, c);
|
|
6633
6633
|
if (intersection) {
|
|
6634
6634
|
intersection.faceIndex = Math.floor(j / 3);
|
|
@@ -6639,11 +6639,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6639
6639
|
}
|
|
6640
6640
|
} else {
|
|
6641
6641
|
const start = Math.max(0, drawRange.start);
|
|
6642
|
-
const end = Math.min(
|
|
6642
|
+
const end = Math.min(index2.count, drawRange.start + drawRange.count);
|
|
6643
6643
|
for (let i2 = start, il = end; i2 < il; i2 += 3) {
|
|
6644
|
-
const a =
|
|
6645
|
-
const b =
|
|
6646
|
-
const c =
|
|
6644
|
+
const a = index2.getX(i2);
|
|
6645
|
+
const b = index2.getX(i2 + 1);
|
|
6646
|
+
const c = index2.getX(i2 + 2);
|
|
6647
6647
|
intersection = checkBufferGeometryIntersection(this, material, raycaster, _ray$2, position, morphPosition, morphTargetsRelative, uv, uv2, a, b, c);
|
|
6648
6648
|
if (intersection) {
|
|
6649
6649
|
intersection.faceIndex = Math.floor(i2 / 3);
|
|
@@ -8550,7 +8550,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
8550
8550
|
const defaultState = createBindingState(null);
|
|
8551
8551
|
let currentState = defaultState;
|
|
8552
8552
|
let forceUpdate = false;
|
|
8553
|
-
function setup(object, material, program, geometry,
|
|
8553
|
+
function setup(object, material, program, geometry, index2) {
|
|
8554
8554
|
let updateBuffers = false;
|
|
8555
8555
|
if (vaoAvailable) {
|
|
8556
8556
|
const state = getBindingState(geometry, program, material);
|
|
@@ -8558,8 +8558,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
8558
8558
|
currentState = state;
|
|
8559
8559
|
bindVertexArrayObject(currentState.object);
|
|
8560
8560
|
}
|
|
8561
|
-
updateBuffers = needsUpdate(object, geometry, program,
|
|
8562
|
-
if (updateBuffers) saveCache(object, geometry, program,
|
|
8561
|
+
updateBuffers = needsUpdate(object, geometry, program, index2);
|
|
8562
|
+
if (updateBuffers) saveCache(object, geometry, program, index2);
|
|
8563
8563
|
} else {
|
|
8564
8564
|
const wireframe = material.wireframe === true;
|
|
8565
8565
|
if (currentState.geometry !== geometry.id || currentState.program !== program.id || currentState.wireframe !== wireframe) {
|
|
@@ -8569,14 +8569,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
8569
8569
|
updateBuffers = true;
|
|
8570
8570
|
}
|
|
8571
8571
|
}
|
|
8572
|
-
if (
|
|
8573
|
-
attributes.update(
|
|
8572
|
+
if (index2 !== null) {
|
|
8573
|
+
attributes.update(index2, 34963);
|
|
8574
8574
|
}
|
|
8575
8575
|
if (updateBuffers || forceUpdate) {
|
|
8576
8576
|
forceUpdate = false;
|
|
8577
8577
|
setupVertexAttributes(object, material, program, geometry);
|
|
8578
|
-
if (
|
|
8579
|
-
gl.bindBuffer(34963, attributes.get(
|
|
8578
|
+
if (index2 !== null) {
|
|
8579
|
+
gl.bindBuffer(34963, attributes.get(index2).buffer);
|
|
8580
8580
|
}
|
|
8581
8581
|
}
|
|
8582
8582
|
}
|
|
@@ -8633,7 +8633,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
8633
8633
|
index: null
|
|
8634
8634
|
};
|
|
8635
8635
|
}
|
|
8636
|
-
function needsUpdate(object, geometry, program,
|
|
8636
|
+
function needsUpdate(object, geometry, program, index2) {
|
|
8637
8637
|
const cachedAttributes = currentState.attributes;
|
|
8638
8638
|
const geometryAttributes = geometry.attributes;
|
|
8639
8639
|
let attributesNum = 0;
|
|
@@ -8654,10 +8654,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
8654
8654
|
}
|
|
8655
8655
|
}
|
|
8656
8656
|
if (currentState.attributesNum !== attributesNum) return true;
|
|
8657
|
-
if (currentState.index !==
|
|
8657
|
+
if (currentState.index !== index2) return true;
|
|
8658
8658
|
return false;
|
|
8659
8659
|
}
|
|
8660
|
-
function saveCache(object, geometry, program,
|
|
8660
|
+
function saveCache(object, geometry, program, index2) {
|
|
8661
8661
|
const cache = {};
|
|
8662
8662
|
const attributes2 = geometry.attributes;
|
|
8663
8663
|
let attributesNum = 0;
|
|
@@ -8681,7 +8681,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
8681
8681
|
}
|
|
8682
8682
|
currentState.attributes = cache;
|
|
8683
8683
|
currentState.attributesNum = attributesNum;
|
|
8684
|
-
currentState.index =
|
|
8684
|
+
currentState.index = index2;
|
|
8685
8685
|
}
|
|
8686
8686
|
function initAttributes() {
|
|
8687
8687
|
const newAttributes = currentState.newAttributes;
|
|
@@ -8717,11 +8717,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
8717
8717
|
}
|
|
8718
8718
|
}
|
|
8719
8719
|
}
|
|
8720
|
-
function vertexAttribPointer(
|
|
8720
|
+
function vertexAttribPointer(index2, size, type, normalized, stride, offset) {
|
|
8721
8721
|
if (capabilities.isWebGL2 === true && (type === 5124 || type === 5125)) {
|
|
8722
|
-
gl.vertexAttribIPointer(
|
|
8722
|
+
gl.vertexAttribIPointer(index2, size, type, stride, offset);
|
|
8723
8723
|
} else {
|
|
8724
|
-
gl.vertexAttribPointer(
|
|
8724
|
+
gl.vertexAttribPointer(index2, size, type, normalized, stride, offset);
|
|
8725
8725
|
}
|
|
8726
8726
|
}
|
|
8727
8727
|
function setupVertexAttributes(object, material, program, geometry) {
|
|
@@ -10270,14 +10270,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
10270
10270
|
let morphInfluencesSum = 0;
|
|
10271
10271
|
for (let i2 = 0; i2 < 8; i2++) {
|
|
10272
10272
|
const influence = workInfluences[i2];
|
|
10273
|
-
const
|
|
10273
|
+
const index2 = influence[0];
|
|
10274
10274
|
const value = influence[1];
|
|
10275
|
-
if (
|
|
10276
|
-
if (morphTargets && geometry.getAttribute("morphTarget" + i2) !== morphTargets[
|
|
10277
|
-
geometry.setAttribute("morphTarget" + i2, morphTargets[
|
|
10275
|
+
if (index2 !== Number.MAX_SAFE_INTEGER && value) {
|
|
10276
|
+
if (morphTargets && geometry.getAttribute("morphTarget" + i2) !== morphTargets[index2]) {
|
|
10277
|
+
geometry.setAttribute("morphTarget" + i2, morphTargets[index2]);
|
|
10278
10278
|
}
|
|
10279
|
-
if (morphNormals && geometry.getAttribute("morphNormal" + i2) !== morphNormals[
|
|
10280
|
-
geometry.setAttribute("morphNormal" + i2, morphNormals[
|
|
10279
|
+
if (morphNormals && geometry.getAttribute("morphNormal" + i2) !== morphNormals[index2]) {
|
|
10280
|
+
geometry.setAttribute("morphNormal" + i2, morphNormals[index2]);
|
|
10281
10281
|
}
|
|
10282
10282
|
morphInfluences[i2] = value;
|
|
10283
10283
|
morphInfluencesSum += value;
|
|
@@ -14777,27 +14777,27 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
14777
14777
|
this.cameraAutoUpdate = true;
|
|
14778
14778
|
this.enabled = false;
|
|
14779
14779
|
this.isPresenting = false;
|
|
14780
|
-
this.getController = function(
|
|
14781
|
-
let controller = controllers[
|
|
14780
|
+
this.getController = function(index2) {
|
|
14781
|
+
let controller = controllers[index2];
|
|
14782
14782
|
if (controller === void 0) {
|
|
14783
14783
|
controller = new WebXRController();
|
|
14784
|
-
controllers[
|
|
14784
|
+
controllers[index2] = controller;
|
|
14785
14785
|
}
|
|
14786
14786
|
return controller.getTargetRaySpace();
|
|
14787
14787
|
};
|
|
14788
|
-
this.getControllerGrip = function(
|
|
14789
|
-
let controller = controllers[
|
|
14788
|
+
this.getControllerGrip = function(index2) {
|
|
14789
|
+
let controller = controllers[index2];
|
|
14790
14790
|
if (controller === void 0) {
|
|
14791
14791
|
controller = new WebXRController();
|
|
14792
|
-
controllers[
|
|
14792
|
+
controllers[index2] = controller;
|
|
14793
14793
|
}
|
|
14794
14794
|
return controller.getGripSpace();
|
|
14795
14795
|
};
|
|
14796
|
-
this.getHand = function(
|
|
14797
|
-
let controller = controllers[
|
|
14796
|
+
this.getHand = function(index2) {
|
|
14797
|
+
let controller = controllers[index2];
|
|
14798
14798
|
if (controller === void 0) {
|
|
14799
14799
|
controller = new WebXRController();
|
|
14800
|
-
controllers[
|
|
14800
|
+
controllers[index2] = controller;
|
|
14801
14801
|
}
|
|
14802
14802
|
return controller.getHandSpace();
|
|
14803
14803
|
};
|
|
@@ -14947,10 +14947,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
14947
14947
|
function onInputSourcesChange(event) {
|
|
14948
14948
|
for (let i2 = 0; i2 < event.removed.length; i2++) {
|
|
14949
14949
|
const inputSource = event.removed[i2];
|
|
14950
|
-
const
|
|
14951
|
-
if (
|
|
14952
|
-
controllerInputSources[
|
|
14953
|
-
controllers[
|
|
14950
|
+
const index2 = controllerInputSources.indexOf(inputSource);
|
|
14951
|
+
if (index2 >= 0) {
|
|
14952
|
+
controllerInputSources[index2] = null;
|
|
14953
|
+
controllers[index2].dispatchEvent({ type: "disconnected", data: inputSource });
|
|
14954
14954
|
}
|
|
14955
14955
|
}
|
|
14956
14956
|
for (let i2 = 0; i2 < event.added.length; i2++) {
|
|
@@ -15560,23 +15560,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15560
15560
|
}
|
|
15561
15561
|
gl.bindBuffer(35345, null);
|
|
15562
15562
|
}
|
|
15563
|
-
function hasUniformChanged(uniform,
|
|
15563
|
+
function hasUniformChanged(uniform, index2, cache) {
|
|
15564
15564
|
const value = uniform.value;
|
|
15565
|
-
if (cache[
|
|
15565
|
+
if (cache[index2] === void 0) {
|
|
15566
15566
|
if (typeof value === "number") {
|
|
15567
|
-
cache[
|
|
15567
|
+
cache[index2] = value;
|
|
15568
15568
|
} else {
|
|
15569
|
-
cache[
|
|
15569
|
+
cache[index2] = value.clone();
|
|
15570
15570
|
}
|
|
15571
15571
|
return true;
|
|
15572
15572
|
} else {
|
|
15573
15573
|
if (typeof value === "number") {
|
|
15574
|
-
if (cache[
|
|
15575
|
-
cache[
|
|
15574
|
+
if (cache[index2] !== value) {
|
|
15575
|
+
cache[index2] = value;
|
|
15576
15576
|
return true;
|
|
15577
15577
|
}
|
|
15578
15578
|
} else {
|
|
15579
|
-
const cachedObject = cache[
|
|
15579
|
+
const cachedObject = cache[index2];
|
|
15580
15580
|
if (cachedObject.equals(value) === false) {
|
|
15581
15581
|
cachedObject.copy(value);
|
|
15582
15582
|
return true;
|
|
@@ -15647,8 +15647,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15647
15647
|
function onUniformsGroupsDispose(event) {
|
|
15648
15648
|
const uniformsGroup = event.target;
|
|
15649
15649
|
uniformsGroup.removeEventListener("dispose", onUniformsGroupsDispose);
|
|
15650
|
-
const
|
|
15651
|
-
allocatedBindingPoints.splice(
|
|
15650
|
+
const index2 = allocatedBindingPoints.indexOf(uniformsGroup.__bindingPointIndex);
|
|
15651
|
+
allocatedBindingPoints.splice(index2, 1);
|
|
15652
15652
|
gl.deleteBuffer(buffers[uniformsGroup.id]);
|
|
15653
15653
|
delete buffers[uniformsGroup.id];
|
|
15654
15654
|
delete updateList[uniformsGroup.id];
|
|
@@ -16021,27 +16021,27 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
16021
16021
|
const frontFaceCW = object.isMesh && object.matrixWorld.determinant() < 0;
|
|
16022
16022
|
const program = setProgram(camera2, scene, geometry, material, object);
|
|
16023
16023
|
state.setMaterial(material, frontFaceCW);
|
|
16024
|
-
let
|
|
16024
|
+
let index2 = geometry.index;
|
|
16025
16025
|
const position = geometry.attributes.position;
|
|
16026
|
-
if (
|
|
16026
|
+
if (index2 === null) {
|
|
16027
16027
|
if (position === void 0 || position.count === 0) return;
|
|
16028
|
-
} else if (
|
|
16028
|
+
} else if (index2.count === 0) {
|
|
16029
16029
|
return;
|
|
16030
16030
|
}
|
|
16031
16031
|
let rangeFactor = 1;
|
|
16032
16032
|
if (material.wireframe === true) {
|
|
16033
|
-
|
|
16033
|
+
index2 = geometries.getWireframeAttribute(geometry);
|
|
16034
16034
|
rangeFactor = 2;
|
|
16035
16035
|
}
|
|
16036
|
-
bindingStates.setup(object, material, program, geometry,
|
|
16036
|
+
bindingStates.setup(object, material, program, geometry, index2);
|
|
16037
16037
|
let attribute;
|
|
16038
16038
|
let renderer = bufferRenderer;
|
|
16039
|
-
if (
|
|
16040
|
-
attribute = attributes.get(
|
|
16039
|
+
if (index2 !== null) {
|
|
16040
|
+
attribute = attributes.get(index2);
|
|
16041
16041
|
renderer = indexedBufferRenderer;
|
|
16042
16042
|
renderer.setIndex(attribute);
|
|
16043
16043
|
}
|
|
16044
|
-
const dataCount =
|
|
16044
|
+
const dataCount = index2 !== null ? index2.count : position.count;
|
|
16045
16045
|
const rangeStart = geometry.drawRange.start * rangeFactor;
|
|
16046
16046
|
const rangeCount = geometry.drawRange.count * rangeFactor;
|
|
16047
16047
|
const groupStart = group !== null ? group.start * rangeFactor : 0;
|
|
@@ -17003,53 +17003,53 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17003
17003
|
}
|
|
17004
17004
|
return this;
|
|
17005
17005
|
}
|
|
17006
|
-
setX(
|
|
17007
|
-
this.data.array[
|
|
17006
|
+
setX(index2, x) {
|
|
17007
|
+
this.data.array[index2 * this.data.stride + this.offset] = x;
|
|
17008
17008
|
return this;
|
|
17009
17009
|
}
|
|
17010
|
-
setY(
|
|
17011
|
-
this.data.array[
|
|
17010
|
+
setY(index2, y) {
|
|
17011
|
+
this.data.array[index2 * this.data.stride + this.offset + 1] = y;
|
|
17012
17012
|
return this;
|
|
17013
17013
|
}
|
|
17014
|
-
setZ(
|
|
17015
|
-
this.data.array[
|
|
17014
|
+
setZ(index2, z) {
|
|
17015
|
+
this.data.array[index2 * this.data.stride + this.offset + 2] = z;
|
|
17016
17016
|
return this;
|
|
17017
17017
|
}
|
|
17018
|
-
setW(
|
|
17019
|
-
this.data.array[
|
|
17018
|
+
setW(index2, w) {
|
|
17019
|
+
this.data.array[index2 * this.data.stride + this.offset + 3] = w;
|
|
17020
17020
|
return this;
|
|
17021
17021
|
}
|
|
17022
|
-
getX(
|
|
17023
|
-
return this.data.array[
|
|
17022
|
+
getX(index2) {
|
|
17023
|
+
return this.data.array[index2 * this.data.stride + this.offset];
|
|
17024
17024
|
}
|
|
17025
|
-
getY(
|
|
17026
|
-
return this.data.array[
|
|
17025
|
+
getY(index2) {
|
|
17026
|
+
return this.data.array[index2 * this.data.stride + this.offset + 1];
|
|
17027
17027
|
}
|
|
17028
|
-
getZ(
|
|
17029
|
-
return this.data.array[
|
|
17028
|
+
getZ(index2) {
|
|
17029
|
+
return this.data.array[index2 * this.data.stride + this.offset + 2];
|
|
17030
17030
|
}
|
|
17031
|
-
getW(
|
|
17032
|
-
return this.data.array[
|
|
17031
|
+
getW(index2) {
|
|
17032
|
+
return this.data.array[index2 * this.data.stride + this.offset + 3];
|
|
17033
17033
|
}
|
|
17034
|
-
setXY(
|
|
17035
|
-
|
|
17036
|
-
this.data.array[
|
|
17037
|
-
this.data.array[
|
|
17034
|
+
setXY(index2, x, y) {
|
|
17035
|
+
index2 = index2 * this.data.stride + this.offset;
|
|
17036
|
+
this.data.array[index2 + 0] = x;
|
|
17037
|
+
this.data.array[index2 + 1] = y;
|
|
17038
17038
|
return this;
|
|
17039
17039
|
}
|
|
17040
|
-
setXYZ(
|
|
17041
|
-
|
|
17042
|
-
this.data.array[
|
|
17043
|
-
this.data.array[
|
|
17044
|
-
this.data.array[
|
|
17040
|
+
setXYZ(index2, x, y, z) {
|
|
17041
|
+
index2 = index2 * this.data.stride + this.offset;
|
|
17042
|
+
this.data.array[index2 + 0] = x;
|
|
17043
|
+
this.data.array[index2 + 1] = y;
|
|
17044
|
+
this.data.array[index2 + 2] = z;
|
|
17045
17045
|
return this;
|
|
17046
17046
|
}
|
|
17047
|
-
setXYZW(
|
|
17048
|
-
|
|
17049
|
-
this.data.array[
|
|
17050
|
-
this.data.array[
|
|
17051
|
-
this.data.array[
|
|
17052
|
-
this.data.array[
|
|
17047
|
+
setXYZW(index2, x, y, z, w) {
|
|
17048
|
+
index2 = index2 * this.data.stride + this.offset;
|
|
17049
|
+
this.data.array[index2 + 0] = x;
|
|
17050
|
+
this.data.array[index2 + 1] = y;
|
|
17051
|
+
this.data.array[index2 + 2] = z;
|
|
17052
|
+
this.data.array[index2 + 3] = w;
|
|
17053
17053
|
return this;
|
|
17054
17054
|
}
|
|
17055
17055
|
clone(data2) {
|
|
@@ -17057,9 +17057,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17057
17057
|
console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will deinterleave buffer data.");
|
|
17058
17058
|
const array = [];
|
|
17059
17059
|
for (let i2 = 0; i2 < this.count; i2++) {
|
|
17060
|
-
const
|
|
17060
|
+
const index2 = i2 * this.data.stride + this.offset;
|
|
17061
17061
|
for (let j = 0; j < this.itemSize; j++) {
|
|
17062
|
-
array.push(this.data.array[
|
|
17062
|
+
array.push(this.data.array[index2 + j]);
|
|
17063
17063
|
}
|
|
17064
17064
|
}
|
|
17065
17065
|
return new BufferAttribute(new this.array.constructor(array), this.itemSize, this.normalized);
|
|
@@ -17078,9 +17078,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17078
17078
|
console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will deinterleave buffer data.");
|
|
17079
17079
|
const array = [];
|
|
17080
17080
|
for (let i2 = 0; i2 < this.count; i2++) {
|
|
17081
|
-
const
|
|
17081
|
+
const index2 = i2 * this.data.stride + this.offset;
|
|
17082
17082
|
for (let j = 0; j < this.itemSize; j++) {
|
|
17083
|
-
array.push(this.data.array[
|
|
17083
|
+
array.push(this.data.array[index2 + j]);
|
|
17084
17084
|
}
|
|
17085
17085
|
}
|
|
17086
17086
|
return {
|
|
@@ -17406,11 +17406,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17406
17406
|
console.warn("THREE.SkinnedMesh: Unrecognized bindMode: " + this.bindMode);
|
|
17407
17407
|
}
|
|
17408
17408
|
}
|
|
17409
|
-
boneTransform(
|
|
17409
|
+
boneTransform(index2, target) {
|
|
17410
17410
|
const skeleton = this.skeleton;
|
|
17411
17411
|
const geometry = this.geometry;
|
|
17412
|
-
_skinIndex.fromBufferAttribute(geometry.attributes.skinIndex,
|
|
17413
|
-
_skinWeight.fromBufferAttribute(geometry.attributes.skinWeight,
|
|
17412
|
+
_skinIndex.fromBufferAttribute(geometry.attributes.skinIndex, index2);
|
|
17413
|
+
_skinWeight.fromBufferAttribute(geometry.attributes.skinWeight, index2);
|
|
17414
17414
|
_basePosition.copy(target).applyMatrix4(this.bindMatrix);
|
|
17415
17415
|
target.set(0, 0, 0);
|
|
17416
17416
|
for (let i2 = 0; i2 < 4; i2++) {
|
|
@@ -17625,11 +17625,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17625
17625
|
this.count = source.count;
|
|
17626
17626
|
return this;
|
|
17627
17627
|
}
|
|
17628
|
-
getColorAt(
|
|
17629
|
-
color.fromArray(this.instanceColor.array,
|
|
17628
|
+
getColorAt(index2, color) {
|
|
17629
|
+
color.fromArray(this.instanceColor.array, index2 * 3);
|
|
17630
17630
|
}
|
|
17631
|
-
getMatrixAt(
|
|
17632
|
-
matrix.fromArray(this.instanceMatrix.array,
|
|
17631
|
+
getMatrixAt(index2, matrix) {
|
|
17632
|
+
matrix.fromArray(this.instanceMatrix.array, index2 * 16);
|
|
17633
17633
|
}
|
|
17634
17634
|
raycast(raycaster, intersects2) {
|
|
17635
17635
|
const matrixWorld = this.matrixWorld;
|
|
@@ -17651,14 +17651,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17651
17651
|
_instanceIntersects.length = 0;
|
|
17652
17652
|
}
|
|
17653
17653
|
}
|
|
17654
|
-
setColorAt(
|
|
17654
|
+
setColorAt(index2, color) {
|
|
17655
17655
|
if (this.instanceColor === null) {
|
|
17656
17656
|
this.instanceColor = new InstancedBufferAttribute(new Float32Array(this.instanceMatrix.count * 3), 3);
|
|
17657
17657
|
}
|
|
17658
|
-
color.toArray(this.instanceColor.array,
|
|
17658
|
+
color.toArray(this.instanceColor.array, index2 * 3);
|
|
17659
17659
|
}
|
|
17660
|
-
setMatrixAt(
|
|
17661
|
-
matrix.toArray(this.instanceMatrix.array,
|
|
17660
|
+
setMatrixAt(index2, matrix) {
|
|
17661
|
+
matrix.toArray(this.instanceMatrix.array, index2 * 16);
|
|
17662
17662
|
}
|
|
17663
17663
|
updateMorphTargets() {
|
|
17664
17664
|
}
|
|
@@ -17744,15 +17744,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17744
17744
|
const interSegment = new Vector3$1();
|
|
17745
17745
|
const interRay = new Vector3$1();
|
|
17746
17746
|
const step = this.isLineSegments ? 2 : 1;
|
|
17747
|
-
const
|
|
17747
|
+
const index2 = geometry.index;
|
|
17748
17748
|
const attributes = geometry.attributes;
|
|
17749
17749
|
const positionAttribute = attributes.position;
|
|
17750
|
-
if (
|
|
17750
|
+
if (index2 !== null) {
|
|
17751
17751
|
const start = Math.max(0, drawRange.start);
|
|
17752
|
-
const end = Math.min(
|
|
17752
|
+
const end = Math.min(index2.count, drawRange.start + drawRange.count);
|
|
17753
17753
|
for (let i2 = start, l = end - 1; i2 < l; i2 += step) {
|
|
17754
|
-
const a =
|
|
17755
|
-
const b =
|
|
17754
|
+
const a = index2.getX(i2);
|
|
17755
|
+
const b = index2.getX(i2 + 1);
|
|
17756
17756
|
vStart.fromBufferAttribute(positionAttribute, a);
|
|
17757
17757
|
vEnd.fromBufferAttribute(positionAttribute, b);
|
|
17758
17758
|
const distSq = _ray$1.distanceSqToSegment(vStart, vEnd, interRay, interSegment);
|
|
@@ -17903,14 +17903,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17903
17903
|
_ray.copy(raycaster.ray).applyMatrix4(_inverseMatrix);
|
|
17904
17904
|
const localThreshold = threshold / ((this.scale.x + this.scale.y + this.scale.z) / 3);
|
|
17905
17905
|
const localThresholdSq = localThreshold * localThreshold;
|
|
17906
|
-
const
|
|
17906
|
+
const index2 = geometry.index;
|
|
17907
17907
|
const attributes = geometry.attributes;
|
|
17908
17908
|
const positionAttribute = attributes.position;
|
|
17909
|
-
if (
|
|
17909
|
+
if (index2 !== null) {
|
|
17910
17910
|
const start = Math.max(0, drawRange.start);
|
|
17911
|
-
const end = Math.min(
|
|
17911
|
+
const end = Math.min(index2.count, drawRange.start + drawRange.count);
|
|
17912
17912
|
for (let i2 = start, il = end; i2 < il; i2++) {
|
|
17913
|
-
const a =
|
|
17913
|
+
const a = index2.getX(i2);
|
|
17914
17914
|
_position$2.fromBufferAttribute(positionAttribute, a);
|
|
17915
17915
|
testPoint(_position$2, a, localThresholdSq, matrixWorld, raycaster, intersects2, this);
|
|
17916
17916
|
}
|
|
@@ -17941,7 +17941,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17941
17941
|
}
|
|
17942
17942
|
}
|
|
17943
17943
|
}
|
|
17944
|
-
function testPoint(point,
|
|
17944
|
+
function testPoint(point, index2, localThresholdSq, matrixWorld, raycaster, intersects2, object) {
|
|
17945
17945
|
const rayPointDistanceSq = _ray.distanceSqToPoint(point);
|
|
17946
17946
|
if (rayPointDistanceSq < localThresholdSq) {
|
|
17947
17947
|
const intersectPoint = new Vector3$1();
|
|
@@ -17953,7 +17953,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
17953
17953
|
distance,
|
|
17954
17954
|
distanceToRay: Math.sqrt(rayPointDistanceSq),
|
|
17955
17955
|
point: intersectPoint,
|
|
17956
|
-
index,
|
|
17956
|
+
index: index2,
|
|
17957
17957
|
face: null,
|
|
17958
17958
|
object
|
|
17959
17959
|
});
|
|
@@ -19199,7 +19199,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
19199
19199
|
const vertices = [];
|
|
19200
19200
|
const normals = [];
|
|
19201
19201
|
const uvs = [];
|
|
19202
|
-
let
|
|
19202
|
+
let index2 = 0;
|
|
19203
19203
|
const indexArray = [];
|
|
19204
19204
|
const halfHeight = height / 2;
|
|
19205
19205
|
let groupStart = 0;
|
|
@@ -19233,7 +19233,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
19233
19233
|
normal.set(sinTheta, slope, cosTheta).normalize();
|
|
19234
19234
|
normals.push(normal.x, normal.y, normal.z);
|
|
19235
19235
|
uvs.push(u, 1 - v);
|
|
19236
|
-
indexRow.push(
|
|
19236
|
+
indexRow.push(index2++);
|
|
19237
19237
|
}
|
|
19238
19238
|
indexArray.push(indexRow);
|
|
19239
19239
|
}
|
|
@@ -19252,7 +19252,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
19252
19252
|
groupStart += groupCount;
|
|
19253
19253
|
}
|
|
19254
19254
|
function generateCap(top) {
|
|
19255
|
-
const centerIndexStart =
|
|
19255
|
+
const centerIndexStart = index2;
|
|
19256
19256
|
const uv = new Vector2$1();
|
|
19257
19257
|
const vertex2 = new Vector3$1();
|
|
19258
19258
|
let groupCount = 0;
|
|
@@ -19262,9 +19262,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
19262
19262
|
vertices.push(0, halfHeight * sign2, 0);
|
|
19263
19263
|
normals.push(0, sign2, 0);
|
|
19264
19264
|
uvs.push(0.5, 0.5);
|
|
19265
|
-
|
|
19265
|
+
index2++;
|
|
19266
19266
|
}
|
|
19267
|
-
const centerIndexEnd =
|
|
19267
|
+
const centerIndexEnd = index2;
|
|
19268
19268
|
for (let x = 0; x <= radialSegments; x++) {
|
|
19269
19269
|
const u = x / radialSegments;
|
|
19270
19270
|
const theta = u * thetaLength + thetaStart;
|
|
@@ -19278,7 +19278,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
19278
19278
|
uv.x = cosTheta * 0.5 + 0.5;
|
|
19279
19279
|
uv.y = sinTheta * 0.5 * sign2 + 0.5;
|
|
19280
19280
|
uvs.push(uv.x, uv.y);
|
|
19281
|
-
|
|
19281
|
+
index2++;
|
|
19282
19282
|
}
|
|
19283
19283
|
for (let x = 0; x < radialSegments; x++) {
|
|
19284
19284
|
const c = centerIndexStart + x;
|
|
@@ -19423,8 +19423,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
19423
19423
|
function pushVertex(vertex2) {
|
|
19424
19424
|
vertexBuffer.push(vertex2.x, vertex2.y, vertex2.z);
|
|
19425
19425
|
}
|
|
19426
|
-
function getVertexByIndex(
|
|
19427
|
-
const stride =
|
|
19426
|
+
function getVertexByIndex(index2, vertex2) {
|
|
19427
|
+
const stride = index2 * 3;
|
|
19428
19428
|
vertex2.x = vertices[stride + 0];
|
|
19429
19429
|
vertex2.y = vertices[stride + 1];
|
|
19430
19430
|
vertex2.z = vertices[stride + 2];
|
|
@@ -20525,10 +20525,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
20525
20525
|
addUV(uvs[2]);
|
|
20526
20526
|
addUV(uvs[3]);
|
|
20527
20527
|
}
|
|
20528
|
-
function addVertex(
|
|
20529
|
-
verticesArray.push(placeholder[
|
|
20530
|
-
verticesArray.push(placeholder[
|
|
20531
|
-
verticesArray.push(placeholder[
|
|
20528
|
+
function addVertex(index2) {
|
|
20529
|
+
verticesArray.push(placeholder[index2 * 3 + 0]);
|
|
20530
|
+
verticesArray.push(placeholder[index2 * 3 + 1]);
|
|
20531
|
+
verticesArray.push(placeholder[index2 * 3 + 2]);
|
|
20532
20532
|
}
|
|
20533
20533
|
function addUV(vector2) {
|
|
20534
20534
|
uvArray.push(vector2.x);
|
|
@@ -20947,7 +20947,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
20947
20947
|
widthSegments = Math.max(3, Math.floor(widthSegments));
|
|
20948
20948
|
heightSegments = Math.max(2, Math.floor(heightSegments));
|
|
20949
20949
|
const thetaEnd = Math.min(thetaStart + thetaLength, Math.PI);
|
|
20950
|
-
let
|
|
20950
|
+
let index2 = 0;
|
|
20951
20951
|
const grid = [];
|
|
20952
20952
|
const vertex2 = new Vector3$1();
|
|
20953
20953
|
const normal = new Vector3$1();
|
|
@@ -20973,7 +20973,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
20973
20973
|
normal.copy(vertex2).normalize();
|
|
20974
20974
|
normals.push(normal.x, normal.y, normal.z);
|
|
20975
20975
|
uvs.push(u + uOffset, 1 - v);
|
|
20976
|
-
verticesRow.push(
|
|
20976
|
+
verticesRow.push(index2++);
|
|
20977
20977
|
}
|
|
20978
20978
|
grid.push(verticesRow);
|
|
20979
20979
|
}
|
|
@@ -22141,8 +22141,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
22141
22141
|
getSettings_() {
|
|
22142
22142
|
return this.settings || this.DefaultSettings_;
|
|
22143
22143
|
}
|
|
22144
|
-
copySampleValue_(
|
|
22145
|
-
const result = this.resultBuffer, values = this.sampleValues, stride = this.valueSize, offset =
|
|
22144
|
+
copySampleValue_(index2) {
|
|
22145
|
+
const result = this.resultBuffer, values = this.sampleValues, stride = this.valueSize, offset = index2 * stride;
|
|
22146
22146
|
for (let i2 = 0; i2 !== stride; ++i2) {
|
|
22147
22147
|
result[i2] = values[offset + i2];
|
|
22148
22148
|
}
|
|
@@ -22836,9 +22836,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
22836
22836
|
return this;
|
|
22837
22837
|
};
|
|
22838
22838
|
this.removeHandler = function(regex) {
|
|
22839
|
-
const
|
|
22840
|
-
if (
|
|
22841
|
-
handlers.splice(
|
|
22839
|
+
const index2 = handlers.indexOf(regex);
|
|
22840
|
+
if (index2 !== -1) {
|
|
22841
|
+
handlers.splice(index2, 2);
|
|
22842
22842
|
}
|
|
22843
22843
|
return this;
|
|
22844
22844
|
};
|
|
@@ -24011,9 +24011,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
24011
24011
|
}
|
|
24012
24012
|
}
|
|
24013
24013
|
static extractUrlBase(url) {
|
|
24014
|
-
const
|
|
24015
|
-
if (
|
|
24016
|
-
return url.slice(0,
|
|
24014
|
+
const index2 = url.lastIndexOf("/");
|
|
24015
|
+
if (index2 === -1) return "./";
|
|
24016
|
+
return url.slice(0, index2 + 1);
|
|
24017
24017
|
}
|
|
24018
24018
|
static resolveURL(url, path) {
|
|
24019
24019
|
if (typeof url !== "string" || url === "") return "";
|
|
@@ -24094,9 +24094,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
24094
24094
|
return ab;
|
|
24095
24095
|
}
|
|
24096
24096
|
const geometry = json.isInstancedBufferGeometry ? new InstancedBufferGeometry() : new BufferGeometry();
|
|
24097
|
-
const
|
|
24098
|
-
if (
|
|
24099
|
-
const typedArray = getTypedArray(
|
|
24097
|
+
const index2 = json.data.index;
|
|
24098
|
+
if (index2 !== void 0) {
|
|
24099
|
+
const typedArray = getTypedArray(index2.type, index2.array);
|
|
24100
24100
|
geometry.setIndex(new BufferAttribute(typedArray, 1));
|
|
24101
24101
|
}
|
|
24102
24102
|
const attributes = json.data.attributes;
|
|
@@ -25866,31 +25866,31 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
25866
25866
|
let knownObject = void 0, nObjects = objects.length, nCachedObjects = this.nCachedObjects_;
|
|
25867
25867
|
for (let i2 = 0, n = arguments.length; i2 !== n; ++i2) {
|
|
25868
25868
|
const object = arguments[i2], uuid = object.uuid;
|
|
25869
|
-
let
|
|
25870
|
-
if (
|
|
25871
|
-
|
|
25872
|
-
indicesByUUID[uuid] =
|
|
25869
|
+
let index2 = indicesByUUID[uuid];
|
|
25870
|
+
if (index2 === void 0) {
|
|
25871
|
+
index2 = nObjects++;
|
|
25872
|
+
indicesByUUID[uuid] = index2;
|
|
25873
25873
|
objects.push(object);
|
|
25874
25874
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25875
25875
|
bindings[j].push(new PropertyBinding(object, paths[j], parsedPaths[j]));
|
|
25876
25876
|
}
|
|
25877
|
-
} else if (
|
|
25878
|
-
knownObject = objects[
|
|
25877
|
+
} else if (index2 < nCachedObjects) {
|
|
25878
|
+
knownObject = objects[index2];
|
|
25879
25879
|
const firstActiveIndex = --nCachedObjects, lastCachedObject = objects[firstActiveIndex];
|
|
25880
|
-
indicesByUUID[lastCachedObject.uuid] =
|
|
25881
|
-
objects[
|
|
25880
|
+
indicesByUUID[lastCachedObject.uuid] = index2;
|
|
25881
|
+
objects[index2] = lastCachedObject;
|
|
25882
25882
|
indicesByUUID[uuid] = firstActiveIndex;
|
|
25883
25883
|
objects[firstActiveIndex] = object;
|
|
25884
25884
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25885
25885
|
const bindingsForPath = bindings[j], lastCached = bindingsForPath[firstActiveIndex];
|
|
25886
|
-
let binding = bindingsForPath[
|
|
25887
|
-
bindingsForPath[
|
|
25886
|
+
let binding = bindingsForPath[index2];
|
|
25887
|
+
bindingsForPath[index2] = lastCached;
|
|
25888
25888
|
if (binding === void 0) {
|
|
25889
25889
|
binding = new PropertyBinding(object, paths[j], parsedPaths[j]);
|
|
25890
25890
|
}
|
|
25891
25891
|
bindingsForPath[firstActiveIndex] = binding;
|
|
25892
25892
|
}
|
|
25893
|
-
} else if (objects[
|
|
25893
|
+
} else if (objects[index2] !== knownObject) {
|
|
25894
25894
|
console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.");
|
|
25895
25895
|
}
|
|
25896
25896
|
}
|
|
@@ -25900,16 +25900,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
25900
25900
|
const objects = this._objects, indicesByUUID = this._indicesByUUID, bindings = this._bindings, nBindings = bindings.length;
|
|
25901
25901
|
let nCachedObjects = this.nCachedObjects_;
|
|
25902
25902
|
for (let i2 = 0, n = arguments.length; i2 !== n; ++i2) {
|
|
25903
|
-
const object = arguments[i2], uuid = object.uuid,
|
|
25904
|
-
if (
|
|
25903
|
+
const object = arguments[i2], uuid = object.uuid, index2 = indicesByUUID[uuid];
|
|
25904
|
+
if (index2 !== void 0 && index2 >= nCachedObjects) {
|
|
25905
25905
|
const lastCachedIndex = nCachedObjects++, firstActiveObject = objects[lastCachedIndex];
|
|
25906
|
-
indicesByUUID[firstActiveObject.uuid] =
|
|
25907
|
-
objects[
|
|
25906
|
+
indicesByUUID[firstActiveObject.uuid] = index2;
|
|
25907
|
+
objects[index2] = firstActiveObject;
|
|
25908
25908
|
indicesByUUID[uuid] = lastCachedIndex;
|
|
25909
25909
|
objects[lastCachedIndex] = object;
|
|
25910
25910
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25911
|
-
const bindingsForPath = bindings[j], firstActive = bindingsForPath[lastCachedIndex], binding = bindingsForPath[
|
|
25912
|
-
bindingsForPath[
|
|
25911
|
+
const bindingsForPath = bindings[j], firstActive = bindingsForPath[lastCachedIndex], binding = bindingsForPath[index2];
|
|
25912
|
+
bindingsForPath[index2] = firstActive;
|
|
25913
25913
|
bindingsForPath[lastCachedIndex] = binding;
|
|
25914
25914
|
}
|
|
25915
25915
|
}
|
|
@@ -25921,32 +25921,32 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
25921
25921
|
const objects = this._objects, indicesByUUID = this._indicesByUUID, bindings = this._bindings, nBindings = bindings.length;
|
|
25922
25922
|
let nCachedObjects = this.nCachedObjects_, nObjects = objects.length;
|
|
25923
25923
|
for (let i2 = 0, n = arguments.length; i2 !== n; ++i2) {
|
|
25924
|
-
const object = arguments[i2], uuid = object.uuid,
|
|
25925
|
-
if (
|
|
25924
|
+
const object = arguments[i2], uuid = object.uuid, index2 = indicesByUUID[uuid];
|
|
25925
|
+
if (index2 !== void 0) {
|
|
25926
25926
|
delete indicesByUUID[uuid];
|
|
25927
|
-
if (
|
|
25927
|
+
if (index2 < nCachedObjects) {
|
|
25928
25928
|
const firstActiveIndex = --nCachedObjects, lastCachedObject = objects[firstActiveIndex], lastIndex = --nObjects, lastObject = objects[lastIndex];
|
|
25929
|
-
indicesByUUID[lastCachedObject.uuid] =
|
|
25930
|
-
objects[
|
|
25929
|
+
indicesByUUID[lastCachedObject.uuid] = index2;
|
|
25930
|
+
objects[index2] = lastCachedObject;
|
|
25931
25931
|
indicesByUUID[lastObject.uuid] = firstActiveIndex;
|
|
25932
25932
|
objects[firstActiveIndex] = lastObject;
|
|
25933
25933
|
objects.pop();
|
|
25934
25934
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25935
25935
|
const bindingsForPath = bindings[j], lastCached = bindingsForPath[firstActiveIndex], last = bindingsForPath[lastIndex];
|
|
25936
|
-
bindingsForPath[
|
|
25936
|
+
bindingsForPath[index2] = lastCached;
|
|
25937
25937
|
bindingsForPath[firstActiveIndex] = last;
|
|
25938
25938
|
bindingsForPath.pop();
|
|
25939
25939
|
}
|
|
25940
25940
|
} else {
|
|
25941
25941
|
const lastIndex = --nObjects, lastObject = objects[lastIndex];
|
|
25942
25942
|
if (lastIndex > 0) {
|
|
25943
|
-
indicesByUUID[lastObject.uuid] =
|
|
25943
|
+
indicesByUUID[lastObject.uuid] = index2;
|
|
25944
25944
|
}
|
|
25945
|
-
objects[
|
|
25945
|
+
objects[index2] = lastObject;
|
|
25946
25946
|
objects.pop();
|
|
25947
25947
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25948
25948
|
const bindingsForPath = bindings[j];
|
|
25949
|
-
bindingsForPath[
|
|
25949
|
+
bindingsForPath[index2] = bindingsForPath[lastIndex];
|
|
25950
25950
|
bindingsForPath.pop();
|
|
25951
25951
|
}
|
|
25952
25952
|
}
|
|
@@ -25957,12 +25957,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
25957
25957
|
// Internal interface used by befriended PropertyBinding.Composite:
|
|
25958
25958
|
subscribe_(path, parsedPath) {
|
|
25959
25959
|
const indicesByPath = this._bindingsIndicesByPath;
|
|
25960
|
-
let
|
|
25960
|
+
let index2 = indicesByPath[path];
|
|
25961
25961
|
const bindings = this._bindings;
|
|
25962
|
-
if (
|
|
25962
|
+
if (index2 !== void 0) return bindings[index2];
|
|
25963
25963
|
const paths = this._paths, parsedPaths = this._parsedPaths, objects = this._objects, nObjects = objects.length, nCachedObjects = this.nCachedObjects_, bindingsForPath = new Array(nObjects);
|
|
25964
|
-
|
|
25965
|
-
indicesByPath[path] =
|
|
25964
|
+
index2 = bindings.length;
|
|
25965
|
+
indicesByPath[path] = index2;
|
|
25966
25966
|
paths.push(path);
|
|
25967
25967
|
parsedPaths.push(parsedPath);
|
|
25968
25968
|
bindings.push(bindingsForPath);
|
|
@@ -25973,15 +25973,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
25973
25973
|
return bindingsForPath;
|
|
25974
25974
|
}
|
|
25975
25975
|
unsubscribe_(path) {
|
|
25976
|
-
const indicesByPath = this._bindingsIndicesByPath,
|
|
25977
|
-
if (
|
|
25976
|
+
const indicesByPath = this._bindingsIndicesByPath, index2 = indicesByPath[path];
|
|
25977
|
+
if (index2 !== void 0) {
|
|
25978
25978
|
const paths = this._paths, parsedPaths = this._parsedPaths, bindings = this._bindings, lastBindingsIndex = bindings.length - 1, lastBindings = bindings[lastBindingsIndex], lastBindingsPath = path[lastBindingsIndex];
|
|
25979
|
-
indicesByPath[lastBindingsPath] =
|
|
25980
|
-
bindings[
|
|
25979
|
+
indicesByPath[lastBindingsPath] = index2;
|
|
25980
|
+
bindings[index2] = lastBindings;
|
|
25981
25981
|
bindings.pop();
|
|
25982
|
-
parsedPaths[
|
|
25982
|
+
parsedPaths[index2] = parsedPaths[lastBindingsIndex];
|
|
25983
25983
|
parsedPaths.pop();
|
|
25984
|
-
paths[
|
|
25984
|
+
paths[index2] = paths[lastBindingsIndex];
|
|
25985
25985
|
paths.pop();
|
|
25986
25986
|
}
|
|
25987
25987
|
}
|
|
@@ -26464,8 +26464,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
26464
26464
|
}
|
|
26465
26465
|
// Memory management for AnimationAction objects
|
|
26466
26466
|
_isActiveAction(action) {
|
|
26467
|
-
const
|
|
26468
|
-
return
|
|
26467
|
+
const index2 = action._cacheIndex;
|
|
26468
|
+
return index2 !== null && index2 < this._nActiveActions;
|
|
26469
26469
|
}
|
|
26470
26470
|
_addInactiveAction(action, clipUuid, rootUuid) {
|
|
26471
26471
|
const actions = this._actions, actionsByClip = this._actionsByClip;
|
|
@@ -26733,8 +26733,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
26733
26733
|
return this;
|
|
26734
26734
|
}
|
|
26735
26735
|
remove(uniform) {
|
|
26736
|
-
const
|
|
26737
|
-
if (
|
|
26736
|
+
const index2 = this.uniforms.indexOf(uniform);
|
|
26737
|
+
if (index2 !== -1) this.uniforms.splice(index2, 1);
|
|
26738
26738
|
return this;
|
|
26739
26739
|
}
|
|
26740
26740
|
setName(name) {
|
|
@@ -33386,8 +33386,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
33386
33386
|
* @param name buffer name
|
|
33387
33387
|
* @param index row index
|
|
33388
33388
|
*/
|
|
33389
|
-
async getValue(name,
|
|
33390
|
-
const array = await this.getValues(name,
|
|
33389
|
+
async getValue(name, index2) {
|
|
33390
|
+
const array = await this.getValues(name, index2, 1);
|
|
33391
33391
|
return array == null ? void 0 : array[0];
|
|
33392
33392
|
}
|
|
33393
33393
|
async getRange(name) {
|
|
@@ -33400,8 +33400,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
33400
33400
|
* @param index row index
|
|
33401
33401
|
* @param count count of values to return
|
|
33402
33402
|
*/
|
|
33403
|
-
async getValues(name,
|
|
33404
|
-
if (
|
|
33403
|
+
async getValues(name, index2, count) {
|
|
33404
|
+
if (index2 < 0 || count < 1)
|
|
33405
33405
|
return void 0;
|
|
33406
33406
|
const range2 = await this.getRange(name);
|
|
33407
33407
|
if (!range2)
|
|
@@ -33409,12 +33409,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
33409
33409
|
const [size, ctor] = parseName(name);
|
|
33410
33410
|
if (size < 0)
|
|
33411
33411
|
return void 0;
|
|
33412
|
-
const start = Math.min(range2.start +
|
|
33412
|
+
const start = Math.min(range2.start + index2 * size, range2.end);
|
|
33413
33413
|
const end = Math.min(start + size * count, range2.end);
|
|
33414
33414
|
const dataRange = new Range(start, end);
|
|
33415
33415
|
if (dataRange.length <= 0)
|
|
33416
33416
|
return void 0;
|
|
33417
|
-
const buffer = await this.request(dataRange, `${name}[${
|
|
33417
|
+
const buffer = await this.request(dataRange, `${name}[${index2.toString()}]`);
|
|
33418
33418
|
if (!buffer)
|
|
33419
33419
|
return void 0;
|
|
33420
33420
|
const array = new ctor(buffer);
|
|
@@ -33436,14 +33436,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
33436
33436
|
* Returns a map of name-values with the same index from all buffers.
|
|
33437
33437
|
* @param name buffer name
|
|
33438
33438
|
*/
|
|
33439
|
-
async getRow(
|
|
33439
|
+
async getRow(index2) {
|
|
33440
33440
|
const ranges = await this.getRanges();
|
|
33441
33441
|
if (!ranges)
|
|
33442
33442
|
return void 0;
|
|
33443
33443
|
const result = /* @__PURE__ */ new Map();
|
|
33444
33444
|
const promises = [];
|
|
33445
33445
|
for (const name of ranges.keys()) {
|
|
33446
|
-
const p = this.getValue(name,
|
|
33446
|
+
const p = this.getValue(name, index2).then((v) => result.set(name, v));
|
|
33447
33447
|
promises.push(p);
|
|
33448
33448
|
}
|
|
33449
33449
|
await Promise.all(promises);
|
|
@@ -33649,9 +33649,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
33649
33649
|
const subStart = this.getSubmeshIndexStart(sub);
|
|
33650
33650
|
const subEnd = this.getSubmeshIndexEnd(sub);
|
|
33651
33651
|
for (let i2 = subStart; i2 < subEnd; i2++) {
|
|
33652
|
-
const
|
|
33653
|
-
min2 = Math.min(min2,
|
|
33654
|
-
max2 = Math.max(min2,
|
|
33652
|
+
const index2 = this.indices[i2];
|
|
33653
|
+
min2 = Math.min(min2, index2);
|
|
33654
|
+
max2 = Math.max(min2, index2);
|
|
33655
33655
|
}
|
|
33656
33656
|
start[sub] = min2;
|
|
33657
33657
|
end[sub] = max2;
|
|
@@ -33807,16 +33807,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
33807
33807
|
const meshOffset = meshIndexOffsets[m];
|
|
33808
33808
|
const subStart = this.getMeshSubmeshStart(m, "all");
|
|
33809
33809
|
const subEnd = this.getMeshSubmeshEnd(m, "all");
|
|
33810
|
-
let
|
|
33810
|
+
let index2 = 0;
|
|
33811
33811
|
for (let s = subStart; s < subEnd; s++) {
|
|
33812
33812
|
const start = this.submeshIndexOffset[s];
|
|
33813
33813
|
const end = submeshEnd[s];
|
|
33814
|
-
this.submeshIndexOffset[s] = meshOffset +
|
|
33814
|
+
this.submeshIndexOffset[s] = meshOffset + index2;
|
|
33815
33815
|
for (let i2 = start; i2 < end; i2++) {
|
|
33816
|
-
buffer[
|
|
33816
|
+
buffer[index2++] = this.indices[i2];
|
|
33817
33817
|
}
|
|
33818
33818
|
}
|
|
33819
|
-
for (let i2 = 0; i2 <
|
|
33819
|
+
for (let i2 = 0; i2 < index2; i2++) {
|
|
33820
33820
|
this.indices[meshOffset + i2] = buffer[i2];
|
|
33821
33821
|
}
|
|
33822
33822
|
}
|
|
@@ -33998,8 +33998,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
33998
33998
|
getMaterialAlpha(material) {
|
|
33999
33999
|
if (material < 0)
|
|
34000
34000
|
return 1;
|
|
34001
|
-
const
|
|
34002
|
-
const result = this.materialColors[
|
|
34001
|
+
const index2 = material * G3d.COLOR_SIZE + G3d.COLOR_SIZE - 1;
|
|
34002
|
+
const result = this.materialColors[index2];
|
|
34003
34003
|
return result;
|
|
34004
34004
|
}
|
|
34005
34005
|
/**
|
|
@@ -34162,8 +34162,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
34162
34162
|
getMaterialAlpha(material) {
|
|
34163
34163
|
if (material < 0)
|
|
34164
34164
|
return 1;
|
|
34165
|
-
const
|
|
34166
|
-
const result = this.materialColors[
|
|
34165
|
+
const index2 = material * G3dMaterial.COLOR_SIZE + G3dMaterial.COLOR_SIZE - 1;
|
|
34166
|
+
const result = this.materialColors[index2];
|
|
34167
34167
|
return result;
|
|
34168
34168
|
}
|
|
34169
34169
|
}
|
|
@@ -34349,10 +34349,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
34349
34349
|
g3dMesh.G3dMesh = void 0;
|
|
34350
34350
|
const g3d_1 = requireG3d();
|
|
34351
34351
|
class G3dMesh {
|
|
34352
|
-
constructor(scene, chunk,
|
|
34352
|
+
constructor(scene, chunk, index2) {
|
|
34353
34353
|
this.scene = scene;
|
|
34354
34354
|
this.chunk = chunk;
|
|
34355
|
-
this.index =
|
|
34355
|
+
this.index = index2;
|
|
34356
34356
|
}
|
|
34357
34357
|
// ------------- Mesh -----------------
|
|
34358
34358
|
getVertexStart(section = "all") {
|
|
@@ -34454,8 +34454,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
34454
34454
|
this.bfast.forceDownload();
|
|
34455
34455
|
}
|
|
34456
34456
|
async requestScene() {
|
|
34457
|
-
const
|
|
34458
|
-
return g3dScene_1.G3dScene.createFromBfast(
|
|
34457
|
+
const index2 = await this.bfast.getLocalBfast("scene", true);
|
|
34458
|
+
return g3dScene_1.G3dScene.createFromBfast(index2);
|
|
34459
34459
|
}
|
|
34460
34460
|
async getHeader() {
|
|
34461
34461
|
return (0, vimHeader_1.requestHeader)(this.bfast);
|
|
@@ -34750,11 +34750,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
34750
34750
|
const entityTable_1 = requireEntityTable();
|
|
34751
34751
|
const vimLoader_1 = requireVimLoader();
|
|
34752
34752
|
class Asset {
|
|
34753
|
-
static async createFromTable(table,
|
|
34753
|
+
static async createFromTable(table, index2) {
|
|
34754
34754
|
let result = new Asset();
|
|
34755
|
-
result.index =
|
|
34755
|
+
result.index = index2;
|
|
34756
34756
|
await Promise.all([
|
|
34757
|
-
table.getBufferName(
|
|
34757
|
+
table.getBufferName(index2).then((v) => result.bufferName = v)
|
|
34758
34758
|
]);
|
|
34759
34759
|
return result;
|
|
34760
34760
|
}
|
|
@@ -34803,13 +34803,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
34803
34803
|
}
|
|
34804
34804
|
objectModel.AssetTable = AssetTable;
|
|
34805
34805
|
class DisplayUnit {
|
|
34806
|
-
static async createFromTable(table,
|
|
34806
|
+
static async createFromTable(table, index2) {
|
|
34807
34807
|
let result = new DisplayUnit();
|
|
34808
|
-
result.index =
|
|
34808
|
+
result.index = index2;
|
|
34809
34809
|
await Promise.all([
|
|
34810
|
-
table.getSpec(
|
|
34811
|
-
table.getType(
|
|
34812
|
-
table.getLabel(
|
|
34810
|
+
table.getSpec(index2).then((v) => result.spec = v),
|
|
34811
|
+
table.getType(index2).then((v) => result.type = v),
|
|
34812
|
+
table.getLabel(index2).then((v) => result.label = v)
|
|
34813
34813
|
]);
|
|
34814
34814
|
return result;
|
|
34815
34815
|
}
|
|
@@ -34880,20 +34880,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
34880
34880
|
}
|
|
34881
34881
|
objectModel.DisplayUnitTable = DisplayUnitTable;
|
|
34882
34882
|
class ParameterDescriptor {
|
|
34883
|
-
static async createFromTable(table,
|
|
34883
|
+
static async createFromTable(table, index2) {
|
|
34884
34884
|
let result = new ParameterDescriptor();
|
|
34885
|
-
result.index =
|
|
34885
|
+
result.index = index2;
|
|
34886
34886
|
await Promise.all([
|
|
34887
|
-
table.getName(
|
|
34888
|
-
table.getGroup(
|
|
34889
|
-
table.getParameterType(
|
|
34890
|
-
table.getIsInstance(
|
|
34891
|
-
table.getIsShared(
|
|
34892
|
-
table.getIsReadOnly(
|
|
34893
|
-
table.getFlags(
|
|
34894
|
-
table.getGuid(
|
|
34895
|
-
table.getStorageType(
|
|
34896
|
-
table.getDisplayUnitIndex(
|
|
34887
|
+
table.getName(index2).then((v) => result.name = v),
|
|
34888
|
+
table.getGroup(index2).then((v) => result.group = v),
|
|
34889
|
+
table.getParameterType(index2).then((v) => result.parameterType = v),
|
|
34890
|
+
table.getIsInstance(index2).then((v) => result.isInstance = v),
|
|
34891
|
+
table.getIsShared(index2).then((v) => result.isShared = v),
|
|
34892
|
+
table.getIsReadOnly(index2).then((v) => result.isReadOnly = v),
|
|
34893
|
+
table.getFlags(index2).then((v) => result.flags = v),
|
|
34894
|
+
table.getGuid(index2).then((v) => result.guid = v),
|
|
34895
|
+
table.getStorageType(index2).then((v) => result.storageType = v),
|
|
34896
|
+
table.getDisplayUnitIndex(index2).then((v) => result.displayUnitIndex = v)
|
|
34897
34897
|
]);
|
|
34898
34898
|
return result;
|
|
34899
34899
|
}
|
|
@@ -35041,22 +35041,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35041
35041
|
}
|
|
35042
35042
|
async getDisplayUnit(parameterDescriptorIndex) {
|
|
35043
35043
|
var _a2;
|
|
35044
|
-
const
|
|
35045
|
-
if (
|
|
35044
|
+
const index2 = await this.getDisplayUnitIndex(parameterDescriptorIndex);
|
|
35045
|
+
if (index2 === void 0) {
|
|
35046
35046
|
return void 0;
|
|
35047
35047
|
}
|
|
35048
|
-
return await ((_a2 = this.document.displayUnit) == null ? void 0 : _a2.get(
|
|
35048
|
+
return await ((_a2 = this.document.displayUnit) == null ? void 0 : _a2.get(index2));
|
|
35049
35049
|
}
|
|
35050
35050
|
}
|
|
35051
35051
|
objectModel.ParameterDescriptorTable = ParameterDescriptorTable;
|
|
35052
35052
|
class Parameter {
|
|
35053
|
-
static async createFromTable(table,
|
|
35053
|
+
static async createFromTable(table, index2) {
|
|
35054
35054
|
let result = new Parameter();
|
|
35055
|
-
result.index =
|
|
35055
|
+
result.index = index2;
|
|
35056
35056
|
await Promise.all([
|
|
35057
|
-
table.getValue(
|
|
35058
|
-
table.getParameterDescriptorIndex(
|
|
35059
|
-
table.getElementIndex(
|
|
35057
|
+
table.getValue(index2).then((v) => result.value = v),
|
|
35058
|
+
table.getParameterDescriptorIndex(index2).then((v) => result.parameterDescriptorIndex = v),
|
|
35059
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35060
35060
|
]);
|
|
35061
35061
|
return result;
|
|
35062
35062
|
}
|
|
@@ -35121,11 +35121,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35121
35121
|
}
|
|
35122
35122
|
async getParameterDescriptor(parameterIndex) {
|
|
35123
35123
|
var _a2;
|
|
35124
|
-
const
|
|
35125
|
-
if (
|
|
35124
|
+
const index2 = await this.getParameterDescriptorIndex(parameterIndex);
|
|
35125
|
+
if (index2 === void 0) {
|
|
35126
35126
|
return void 0;
|
|
35127
35127
|
}
|
|
35128
|
-
return await ((_a2 = this.document.parameterDescriptor) == null ? void 0 : _a2.get(
|
|
35128
|
+
return await ((_a2 = this.document.parameterDescriptor) == null ? void 0 : _a2.get(index2));
|
|
35129
35129
|
}
|
|
35130
35130
|
async getElementIndex(parameterIndex) {
|
|
35131
35131
|
return await this.entityTable.getNumber(parameterIndex, "index:Vim.Element:Element");
|
|
@@ -35135,39 +35135,39 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35135
35135
|
}
|
|
35136
35136
|
async getElement(parameterIndex) {
|
|
35137
35137
|
var _a2;
|
|
35138
|
-
const
|
|
35139
|
-
if (
|
|
35138
|
+
const index2 = await this.getElementIndex(parameterIndex);
|
|
35139
|
+
if (index2 === void 0) {
|
|
35140
35140
|
return void 0;
|
|
35141
35141
|
}
|
|
35142
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
35142
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
35143
35143
|
}
|
|
35144
35144
|
}
|
|
35145
35145
|
objectModel.ParameterTable = ParameterTable;
|
|
35146
35146
|
class Element2 {
|
|
35147
|
-
static async createFromTable(table,
|
|
35147
|
+
static async createFromTable(table, index2) {
|
|
35148
35148
|
let result = new Element2();
|
|
35149
|
-
result.index =
|
|
35149
|
+
result.index = index2;
|
|
35150
35150
|
await Promise.all([
|
|
35151
|
-
table.getId(
|
|
35152
|
-
table.getType(
|
|
35153
|
-
table.getName(
|
|
35154
|
-
table.getUniqueId(
|
|
35155
|
-
table.getLocation_X(
|
|
35156
|
-
table.getLocation_Y(
|
|
35157
|
-
table.getLocation_Z(
|
|
35158
|
-
table.getFamilyName(
|
|
35159
|
-
table.getIsPinned(
|
|
35160
|
-
table.getLevelIndex(
|
|
35161
|
-
table.getPhaseCreatedIndex(
|
|
35162
|
-
table.getPhaseDemolishedIndex(
|
|
35163
|
-
table.getCategoryIndex(
|
|
35164
|
-
table.getWorksetIndex(
|
|
35165
|
-
table.getDesignOptionIndex(
|
|
35166
|
-
table.getOwnerViewIndex(
|
|
35167
|
-
table.getGroupIndex(
|
|
35168
|
-
table.getAssemblyInstanceIndex(
|
|
35169
|
-
table.getBimDocumentIndex(
|
|
35170
|
-
table.getRoomIndex(
|
|
35151
|
+
table.getId(index2).then((v) => result.id = v),
|
|
35152
|
+
table.getType(index2).then((v) => result.type = v),
|
|
35153
|
+
table.getName(index2).then((v) => result.name = v),
|
|
35154
|
+
table.getUniqueId(index2).then((v) => result.uniqueId = v),
|
|
35155
|
+
table.getLocation_X(index2).then((v) => result.location_X = v),
|
|
35156
|
+
table.getLocation_Y(index2).then((v) => result.location_Y = v),
|
|
35157
|
+
table.getLocation_Z(index2).then((v) => result.location_Z = v),
|
|
35158
|
+
table.getFamilyName(index2).then((v) => result.familyName = v),
|
|
35159
|
+
table.getIsPinned(index2).then((v) => result.isPinned = v),
|
|
35160
|
+
table.getLevelIndex(index2).then((v) => result.levelIndex = v),
|
|
35161
|
+
table.getPhaseCreatedIndex(index2).then((v) => result.phaseCreatedIndex = v),
|
|
35162
|
+
table.getPhaseDemolishedIndex(index2).then((v) => result.phaseDemolishedIndex = v),
|
|
35163
|
+
table.getCategoryIndex(index2).then((v) => result.categoryIndex = v),
|
|
35164
|
+
table.getWorksetIndex(index2).then((v) => result.worksetIndex = v),
|
|
35165
|
+
table.getDesignOptionIndex(index2).then((v) => result.designOptionIndex = v),
|
|
35166
|
+
table.getOwnerViewIndex(index2).then((v) => result.ownerViewIndex = v),
|
|
35167
|
+
table.getGroupIndex(index2).then((v) => result.groupIndex = v),
|
|
35168
|
+
table.getAssemblyInstanceIndex(index2).then((v) => result.assemblyInstanceIndex = v),
|
|
35169
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v),
|
|
35170
|
+
table.getRoomIndex(index2).then((v) => result.roomIndex = v)
|
|
35171
35171
|
]);
|
|
35172
35172
|
return result;
|
|
35173
35173
|
}
|
|
@@ -35365,11 +35365,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35365
35365
|
}
|
|
35366
35366
|
async getLevel(elementIndex) {
|
|
35367
35367
|
var _a2;
|
|
35368
|
-
const
|
|
35369
|
-
if (
|
|
35368
|
+
const index2 = await this.getLevelIndex(elementIndex);
|
|
35369
|
+
if (index2 === void 0) {
|
|
35370
35370
|
return void 0;
|
|
35371
35371
|
}
|
|
35372
|
-
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(
|
|
35372
|
+
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(index2));
|
|
35373
35373
|
}
|
|
35374
35374
|
async getPhaseCreatedIndex(elementIndex) {
|
|
35375
35375
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Phase:PhaseCreated");
|
|
@@ -35379,11 +35379,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35379
35379
|
}
|
|
35380
35380
|
async getPhaseCreated(elementIndex) {
|
|
35381
35381
|
var _a2;
|
|
35382
|
-
const
|
|
35383
|
-
if (
|
|
35382
|
+
const index2 = await this.getPhaseCreatedIndex(elementIndex);
|
|
35383
|
+
if (index2 === void 0) {
|
|
35384
35384
|
return void 0;
|
|
35385
35385
|
}
|
|
35386
|
-
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(
|
|
35386
|
+
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(index2));
|
|
35387
35387
|
}
|
|
35388
35388
|
async getPhaseDemolishedIndex(elementIndex) {
|
|
35389
35389
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Phase:PhaseDemolished");
|
|
@@ -35393,11 +35393,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35393
35393
|
}
|
|
35394
35394
|
async getPhaseDemolished(elementIndex) {
|
|
35395
35395
|
var _a2;
|
|
35396
|
-
const
|
|
35397
|
-
if (
|
|
35396
|
+
const index2 = await this.getPhaseDemolishedIndex(elementIndex);
|
|
35397
|
+
if (index2 === void 0) {
|
|
35398
35398
|
return void 0;
|
|
35399
35399
|
}
|
|
35400
|
-
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(
|
|
35400
|
+
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(index2));
|
|
35401
35401
|
}
|
|
35402
35402
|
async getCategoryIndex(elementIndex) {
|
|
35403
35403
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Category:Category");
|
|
@@ -35407,11 +35407,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35407
35407
|
}
|
|
35408
35408
|
async getCategory(elementIndex) {
|
|
35409
35409
|
var _a2;
|
|
35410
|
-
const
|
|
35411
|
-
if (
|
|
35410
|
+
const index2 = await this.getCategoryIndex(elementIndex);
|
|
35411
|
+
if (index2 === void 0) {
|
|
35412
35412
|
return void 0;
|
|
35413
35413
|
}
|
|
35414
|
-
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(
|
|
35414
|
+
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(index2));
|
|
35415
35415
|
}
|
|
35416
35416
|
async getWorksetIndex(elementIndex) {
|
|
35417
35417
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Workset:Workset");
|
|
@@ -35421,11 +35421,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35421
35421
|
}
|
|
35422
35422
|
async getWorkset(elementIndex) {
|
|
35423
35423
|
var _a2;
|
|
35424
|
-
const
|
|
35425
|
-
if (
|
|
35424
|
+
const index2 = await this.getWorksetIndex(elementIndex);
|
|
35425
|
+
if (index2 === void 0) {
|
|
35426
35426
|
return void 0;
|
|
35427
35427
|
}
|
|
35428
|
-
return await ((_a2 = this.document.workset) == null ? void 0 : _a2.get(
|
|
35428
|
+
return await ((_a2 = this.document.workset) == null ? void 0 : _a2.get(index2));
|
|
35429
35429
|
}
|
|
35430
35430
|
async getDesignOptionIndex(elementIndex) {
|
|
35431
35431
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.DesignOption:DesignOption");
|
|
@@ -35435,11 +35435,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35435
35435
|
}
|
|
35436
35436
|
async getDesignOption(elementIndex) {
|
|
35437
35437
|
var _a2;
|
|
35438
|
-
const
|
|
35439
|
-
if (
|
|
35438
|
+
const index2 = await this.getDesignOptionIndex(elementIndex);
|
|
35439
|
+
if (index2 === void 0) {
|
|
35440
35440
|
return void 0;
|
|
35441
35441
|
}
|
|
35442
|
-
return await ((_a2 = this.document.designOption) == null ? void 0 : _a2.get(
|
|
35442
|
+
return await ((_a2 = this.document.designOption) == null ? void 0 : _a2.get(index2));
|
|
35443
35443
|
}
|
|
35444
35444
|
async getOwnerViewIndex(elementIndex) {
|
|
35445
35445
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.View:OwnerView");
|
|
@@ -35449,11 +35449,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35449
35449
|
}
|
|
35450
35450
|
async getOwnerView(elementIndex) {
|
|
35451
35451
|
var _a2;
|
|
35452
|
-
const
|
|
35453
|
-
if (
|
|
35452
|
+
const index2 = await this.getOwnerViewIndex(elementIndex);
|
|
35453
|
+
if (index2 === void 0) {
|
|
35454
35454
|
return void 0;
|
|
35455
35455
|
}
|
|
35456
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
35456
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
35457
35457
|
}
|
|
35458
35458
|
async getGroupIndex(elementIndex) {
|
|
35459
35459
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Group:Group");
|
|
@@ -35463,11 +35463,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35463
35463
|
}
|
|
35464
35464
|
async getGroup(elementIndex) {
|
|
35465
35465
|
var _a2;
|
|
35466
|
-
const
|
|
35467
|
-
if (
|
|
35466
|
+
const index2 = await this.getGroupIndex(elementIndex);
|
|
35467
|
+
if (index2 === void 0) {
|
|
35468
35468
|
return void 0;
|
|
35469
35469
|
}
|
|
35470
|
-
return await ((_a2 = this.document.group) == null ? void 0 : _a2.get(
|
|
35470
|
+
return await ((_a2 = this.document.group) == null ? void 0 : _a2.get(index2));
|
|
35471
35471
|
}
|
|
35472
35472
|
async getAssemblyInstanceIndex(elementIndex) {
|
|
35473
35473
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.AssemblyInstance:AssemblyInstance");
|
|
@@ -35477,11 +35477,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35477
35477
|
}
|
|
35478
35478
|
async getAssemblyInstance(elementIndex) {
|
|
35479
35479
|
var _a2;
|
|
35480
|
-
const
|
|
35481
|
-
if (
|
|
35480
|
+
const index2 = await this.getAssemblyInstanceIndex(elementIndex);
|
|
35481
|
+
if (index2 === void 0) {
|
|
35482
35482
|
return void 0;
|
|
35483
35483
|
}
|
|
35484
|
-
return await ((_a2 = this.document.assemblyInstance) == null ? void 0 : _a2.get(
|
|
35484
|
+
return await ((_a2 = this.document.assemblyInstance) == null ? void 0 : _a2.get(index2));
|
|
35485
35485
|
}
|
|
35486
35486
|
async getBimDocumentIndex(elementIndex) {
|
|
35487
35487
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.BimDocument:BimDocument");
|
|
@@ -35491,11 +35491,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35491
35491
|
}
|
|
35492
35492
|
async getBimDocument(elementIndex) {
|
|
35493
35493
|
var _a2;
|
|
35494
|
-
const
|
|
35495
|
-
if (
|
|
35494
|
+
const index2 = await this.getBimDocumentIndex(elementIndex);
|
|
35495
|
+
if (index2 === void 0) {
|
|
35496
35496
|
return void 0;
|
|
35497
35497
|
}
|
|
35498
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
35498
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
35499
35499
|
}
|
|
35500
35500
|
async getRoomIndex(elementIndex) {
|
|
35501
35501
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Room:Room");
|
|
@@ -35505,27 +35505,27 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35505
35505
|
}
|
|
35506
35506
|
async getRoom(elementIndex) {
|
|
35507
35507
|
var _a2;
|
|
35508
|
-
const
|
|
35509
|
-
if (
|
|
35508
|
+
const index2 = await this.getRoomIndex(elementIndex);
|
|
35509
|
+
if (index2 === void 0) {
|
|
35510
35510
|
return void 0;
|
|
35511
35511
|
}
|
|
35512
|
-
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(
|
|
35512
|
+
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(index2));
|
|
35513
35513
|
}
|
|
35514
35514
|
}
|
|
35515
35515
|
objectModel.ElementTable = ElementTable;
|
|
35516
35516
|
class Workset {
|
|
35517
|
-
static async createFromTable(table,
|
|
35517
|
+
static async createFromTable(table, index2) {
|
|
35518
35518
|
let result = new Workset();
|
|
35519
|
-
result.index =
|
|
35519
|
+
result.index = index2;
|
|
35520
35520
|
await Promise.all([
|
|
35521
|
-
table.getId(
|
|
35522
|
-
table.getName(
|
|
35523
|
-
table.getKind(
|
|
35524
|
-
table.getIsOpen(
|
|
35525
|
-
table.getIsEditable(
|
|
35526
|
-
table.getOwner(
|
|
35527
|
-
table.getUniqueId(
|
|
35528
|
-
table.getBimDocumentIndex(
|
|
35521
|
+
table.getId(index2).then((v) => result.id = v),
|
|
35522
|
+
table.getName(index2).then((v) => result.name = v),
|
|
35523
|
+
table.getKind(index2).then((v) => result.kind = v),
|
|
35524
|
+
table.getIsOpen(index2).then((v) => result.isOpen = v),
|
|
35525
|
+
table.getIsEditable(index2).then((v) => result.isEditable = v),
|
|
35526
|
+
table.getOwner(index2).then((v) => result.owner = v),
|
|
35527
|
+
table.getUniqueId(index2).then((v) => result.uniqueId = v),
|
|
35528
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v)
|
|
35529
35529
|
]);
|
|
35530
35530
|
return result;
|
|
35531
35531
|
}
|
|
@@ -35651,24 +35651,24 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35651
35651
|
}
|
|
35652
35652
|
async getBimDocument(worksetIndex) {
|
|
35653
35653
|
var _a2;
|
|
35654
|
-
const
|
|
35655
|
-
if (
|
|
35654
|
+
const index2 = await this.getBimDocumentIndex(worksetIndex);
|
|
35655
|
+
if (index2 === void 0) {
|
|
35656
35656
|
return void 0;
|
|
35657
35657
|
}
|
|
35658
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
35658
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
35659
35659
|
}
|
|
35660
35660
|
}
|
|
35661
35661
|
objectModel.WorksetTable = WorksetTable;
|
|
35662
35662
|
class AssemblyInstance {
|
|
35663
|
-
static async createFromTable(table,
|
|
35663
|
+
static async createFromTable(table, index2) {
|
|
35664
35664
|
let result = new AssemblyInstance();
|
|
35665
|
-
result.index =
|
|
35665
|
+
result.index = index2;
|
|
35666
35666
|
await Promise.all([
|
|
35667
|
-
table.getAssemblyTypeName(
|
|
35668
|
-
table.getPosition_X(
|
|
35669
|
-
table.getPosition_Y(
|
|
35670
|
-
table.getPosition_Z(
|
|
35671
|
-
table.getElementIndex(
|
|
35667
|
+
table.getAssemblyTypeName(index2).then((v) => result.assemblyTypeName = v),
|
|
35668
|
+
table.getPosition_X(index2).then((v) => result.position_X = v),
|
|
35669
|
+
table.getPosition_Y(index2).then((v) => result.position_Y = v),
|
|
35670
|
+
table.getPosition_Z(index2).then((v) => result.position_Z = v),
|
|
35671
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35672
35672
|
]);
|
|
35673
35673
|
return result;
|
|
35674
35674
|
}
|
|
@@ -35761,24 +35761,24 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35761
35761
|
}
|
|
35762
35762
|
async getElement(assemblyInstanceIndex) {
|
|
35763
35763
|
var _a2;
|
|
35764
|
-
const
|
|
35765
|
-
if (
|
|
35764
|
+
const index2 = await this.getElementIndex(assemblyInstanceIndex);
|
|
35765
|
+
if (index2 === void 0) {
|
|
35766
35766
|
return void 0;
|
|
35767
35767
|
}
|
|
35768
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
35768
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
35769
35769
|
}
|
|
35770
35770
|
}
|
|
35771
35771
|
objectModel.AssemblyInstanceTable = AssemblyInstanceTable;
|
|
35772
35772
|
class Group2 {
|
|
35773
|
-
static async createFromTable(table,
|
|
35773
|
+
static async createFromTable(table, index2) {
|
|
35774
35774
|
let result = new Group2();
|
|
35775
|
-
result.index =
|
|
35775
|
+
result.index = index2;
|
|
35776
35776
|
await Promise.all([
|
|
35777
|
-
table.getGroupType(
|
|
35778
|
-
table.getPosition_X(
|
|
35779
|
-
table.getPosition_Y(
|
|
35780
|
-
table.getPosition_Z(
|
|
35781
|
-
table.getElementIndex(
|
|
35777
|
+
table.getGroupType(index2).then((v) => result.groupType = v),
|
|
35778
|
+
table.getPosition_X(index2).then((v) => result.position_X = v),
|
|
35779
|
+
table.getPosition_Y(index2).then((v) => result.position_Y = v),
|
|
35780
|
+
table.getPosition_Z(index2).then((v) => result.position_Z = v),
|
|
35781
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35782
35782
|
]);
|
|
35783
35783
|
return result;
|
|
35784
35784
|
}
|
|
@@ -35871,21 +35871,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35871
35871
|
}
|
|
35872
35872
|
async getElement(groupIndex) {
|
|
35873
35873
|
var _a2;
|
|
35874
|
-
const
|
|
35875
|
-
if (
|
|
35874
|
+
const index2 = await this.getElementIndex(groupIndex);
|
|
35875
|
+
if (index2 === void 0) {
|
|
35876
35876
|
return void 0;
|
|
35877
35877
|
}
|
|
35878
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
35878
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
35879
35879
|
}
|
|
35880
35880
|
}
|
|
35881
35881
|
objectModel.GroupTable = GroupTable;
|
|
35882
35882
|
class DesignOption {
|
|
35883
|
-
static async createFromTable(table,
|
|
35883
|
+
static async createFromTable(table, index2) {
|
|
35884
35884
|
let result = new DesignOption();
|
|
35885
|
-
result.index =
|
|
35885
|
+
result.index = index2;
|
|
35886
35886
|
await Promise.all([
|
|
35887
|
-
table.getIsPrimary(
|
|
35888
|
-
table.getElementIndex(
|
|
35887
|
+
table.getIsPrimary(index2).then((v) => result.isPrimary = v),
|
|
35888
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35889
35889
|
]);
|
|
35890
35890
|
return result;
|
|
35891
35891
|
}
|
|
@@ -35945,23 +35945,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35945
35945
|
}
|
|
35946
35946
|
async getElement(designOptionIndex) {
|
|
35947
35947
|
var _a2;
|
|
35948
|
-
const
|
|
35949
|
-
if (
|
|
35948
|
+
const index2 = await this.getElementIndex(designOptionIndex);
|
|
35949
|
+
if (index2 === void 0) {
|
|
35950
35950
|
return void 0;
|
|
35951
35951
|
}
|
|
35952
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
35952
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
35953
35953
|
}
|
|
35954
35954
|
}
|
|
35955
35955
|
objectModel.DesignOptionTable = DesignOptionTable;
|
|
35956
35956
|
class Level {
|
|
35957
|
-
static async createFromTable(table,
|
|
35957
|
+
static async createFromTable(table, index2) {
|
|
35958
35958
|
let result = new Level();
|
|
35959
|
-
result.index =
|
|
35959
|
+
result.index = index2;
|
|
35960
35960
|
await Promise.all([
|
|
35961
|
-
table.getElevation(
|
|
35962
|
-
table.getFamilyTypeIndex(
|
|
35963
|
-
table.getBuildingIndex(
|
|
35964
|
-
table.getElementIndex(
|
|
35961
|
+
table.getElevation(index2).then((v) => result.elevation = v),
|
|
35962
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
35963
|
+
table.getBuildingIndex(index2).then((v) => result.buildingIndex = v),
|
|
35964
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35965
35965
|
]);
|
|
35966
35966
|
return result;
|
|
35967
35967
|
}
|
|
@@ -36031,11 +36031,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36031
36031
|
}
|
|
36032
36032
|
async getFamilyType(levelIndex) {
|
|
36033
36033
|
var _a2;
|
|
36034
|
-
const
|
|
36035
|
-
if (
|
|
36034
|
+
const index2 = await this.getFamilyTypeIndex(levelIndex);
|
|
36035
|
+
if (index2 === void 0) {
|
|
36036
36036
|
return void 0;
|
|
36037
36037
|
}
|
|
36038
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
36038
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
36039
36039
|
}
|
|
36040
36040
|
async getBuildingIndex(levelIndex) {
|
|
36041
36041
|
return await this.entityTable.getNumber(levelIndex, "index:Vim.Building:Building");
|
|
@@ -36045,11 +36045,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36045
36045
|
}
|
|
36046
36046
|
async getBuilding(levelIndex) {
|
|
36047
36047
|
var _a2;
|
|
36048
|
-
const
|
|
36049
|
-
if (
|
|
36048
|
+
const index2 = await this.getBuildingIndex(levelIndex);
|
|
36049
|
+
if (index2 === void 0) {
|
|
36050
36050
|
return void 0;
|
|
36051
36051
|
}
|
|
36052
|
-
return await ((_a2 = this.document.building) == null ? void 0 : _a2.get(
|
|
36052
|
+
return await ((_a2 = this.document.building) == null ? void 0 : _a2.get(index2));
|
|
36053
36053
|
}
|
|
36054
36054
|
async getElementIndex(levelIndex) {
|
|
36055
36055
|
return await this.entityTable.getNumber(levelIndex, "index:Vim.Element:Element");
|
|
@@ -36059,20 +36059,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36059
36059
|
}
|
|
36060
36060
|
async getElement(levelIndex) {
|
|
36061
36061
|
var _a2;
|
|
36062
|
-
const
|
|
36063
|
-
if (
|
|
36062
|
+
const index2 = await this.getElementIndex(levelIndex);
|
|
36063
|
+
if (index2 === void 0) {
|
|
36064
36064
|
return void 0;
|
|
36065
36065
|
}
|
|
36066
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
36066
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
36067
36067
|
}
|
|
36068
36068
|
}
|
|
36069
36069
|
objectModel.LevelTable = LevelTable;
|
|
36070
36070
|
class Phase {
|
|
36071
|
-
static async createFromTable(table,
|
|
36071
|
+
static async createFromTable(table, index2) {
|
|
36072
36072
|
let result = new Phase();
|
|
36073
|
-
result.index =
|
|
36073
|
+
result.index = index2;
|
|
36074
36074
|
await Promise.all([
|
|
36075
|
-
table.getElementIndex(
|
|
36075
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
36076
36076
|
]);
|
|
36077
36077
|
return result;
|
|
36078
36078
|
}
|
|
@@ -36121,28 +36121,28 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36121
36121
|
}
|
|
36122
36122
|
async getElement(phaseIndex) {
|
|
36123
36123
|
var _a2;
|
|
36124
|
-
const
|
|
36125
|
-
if (
|
|
36124
|
+
const index2 = await this.getElementIndex(phaseIndex);
|
|
36125
|
+
if (index2 === void 0) {
|
|
36126
36126
|
return void 0;
|
|
36127
36127
|
}
|
|
36128
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
36128
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
36129
36129
|
}
|
|
36130
36130
|
}
|
|
36131
36131
|
objectModel.PhaseTable = PhaseTable;
|
|
36132
36132
|
class Room {
|
|
36133
|
-
static async createFromTable(table,
|
|
36133
|
+
static async createFromTable(table, index2) {
|
|
36134
36134
|
let result = new Room();
|
|
36135
|
-
result.index =
|
|
36135
|
+
result.index = index2;
|
|
36136
36136
|
await Promise.all([
|
|
36137
|
-
table.getBaseOffset(
|
|
36138
|
-
table.getLimitOffset(
|
|
36139
|
-
table.getUnboundedHeight(
|
|
36140
|
-
table.getVolume(
|
|
36141
|
-
table.getPerimeter(
|
|
36142
|
-
table.getArea(
|
|
36143
|
-
table.getNumber(
|
|
36144
|
-
table.getUpperLimitIndex(
|
|
36145
|
-
table.getElementIndex(
|
|
36137
|
+
table.getBaseOffset(index2).then((v) => result.baseOffset = v),
|
|
36138
|
+
table.getLimitOffset(index2).then((v) => result.limitOffset = v),
|
|
36139
|
+
table.getUnboundedHeight(index2).then((v) => result.unboundedHeight = v),
|
|
36140
|
+
table.getVolume(index2).then((v) => result.volume = v),
|
|
36141
|
+
table.getPerimeter(index2).then((v) => result.perimeter = v),
|
|
36142
|
+
table.getArea(index2).then((v) => result.area = v),
|
|
36143
|
+
table.getNumber(index2).then((v) => result.number = v),
|
|
36144
|
+
table.getUpperLimitIndex(index2).then((v) => result.upperLimitIndex = v),
|
|
36145
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
36146
36146
|
]);
|
|
36147
36147
|
return result;
|
|
36148
36148
|
}
|
|
@@ -36273,11 +36273,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36273
36273
|
}
|
|
36274
36274
|
async getUpperLimit(roomIndex) {
|
|
36275
36275
|
var _a2;
|
|
36276
|
-
const
|
|
36277
|
-
if (
|
|
36276
|
+
const index2 = await this.getUpperLimitIndex(roomIndex);
|
|
36277
|
+
if (index2 === void 0) {
|
|
36278
36278
|
return void 0;
|
|
36279
36279
|
}
|
|
36280
|
-
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(
|
|
36280
|
+
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(index2));
|
|
36281
36281
|
}
|
|
36282
36282
|
async getElementIndex(roomIndex) {
|
|
36283
36283
|
return await this.entityTable.getNumber(roomIndex, "index:Vim.Element:Element");
|
|
@@ -36287,51 +36287,51 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36287
36287
|
}
|
|
36288
36288
|
async getElement(roomIndex) {
|
|
36289
36289
|
var _a2;
|
|
36290
|
-
const
|
|
36291
|
-
if (
|
|
36290
|
+
const index2 = await this.getElementIndex(roomIndex);
|
|
36291
|
+
if (index2 === void 0) {
|
|
36292
36292
|
return void 0;
|
|
36293
36293
|
}
|
|
36294
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
36294
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
36295
36295
|
}
|
|
36296
36296
|
}
|
|
36297
36297
|
objectModel.RoomTable = RoomTable;
|
|
36298
36298
|
class BimDocument {
|
|
36299
|
-
static async createFromTable(table,
|
|
36299
|
+
static async createFromTable(table, index2) {
|
|
36300
36300
|
let result = new BimDocument();
|
|
36301
|
-
result.index =
|
|
36301
|
+
result.index = index2;
|
|
36302
36302
|
await Promise.all([
|
|
36303
|
-
table.getTitle(
|
|
36304
|
-
table.getIsMetric(
|
|
36305
|
-
table.getGuid(
|
|
36306
|
-
table.getNumSaves(
|
|
36307
|
-
table.getIsLinked(
|
|
36308
|
-
table.getIsDetached(
|
|
36309
|
-
table.getIsWorkshared(
|
|
36310
|
-
table.getPathName(
|
|
36311
|
-
table.getLatitude(
|
|
36312
|
-
table.getLongitude(
|
|
36313
|
-
table.getTimeZone(
|
|
36314
|
-
table.getPlaceName(
|
|
36315
|
-
table.getWeatherStationName(
|
|
36316
|
-
table.getElevation(
|
|
36317
|
-
table.getProjectLocation(
|
|
36318
|
-
table.getIssueDate(
|
|
36319
|
-
table.getStatus(
|
|
36320
|
-
table.getClientName(
|
|
36321
|
-
table.getAddress(
|
|
36322
|
-
table.getName(
|
|
36323
|
-
table.getNumber(
|
|
36324
|
-
table.getAuthor(
|
|
36325
|
-
table.getBuildingName(
|
|
36326
|
-
table.getOrganizationName(
|
|
36327
|
-
table.getOrganizationDescription(
|
|
36328
|
-
table.getProduct(
|
|
36329
|
-
table.getVersion(
|
|
36330
|
-
table.getUser(
|
|
36331
|
-
table.getActiveViewIndex(
|
|
36332
|
-
table.getOwnerFamilyIndex(
|
|
36333
|
-
table.getParentIndex(
|
|
36334
|
-
table.getElementIndex(
|
|
36303
|
+
table.getTitle(index2).then((v) => result.title = v),
|
|
36304
|
+
table.getIsMetric(index2).then((v) => result.isMetric = v),
|
|
36305
|
+
table.getGuid(index2).then((v) => result.guid = v),
|
|
36306
|
+
table.getNumSaves(index2).then((v) => result.numSaves = v),
|
|
36307
|
+
table.getIsLinked(index2).then((v) => result.isLinked = v),
|
|
36308
|
+
table.getIsDetached(index2).then((v) => result.isDetached = v),
|
|
36309
|
+
table.getIsWorkshared(index2).then((v) => result.isWorkshared = v),
|
|
36310
|
+
table.getPathName(index2).then((v) => result.pathName = v),
|
|
36311
|
+
table.getLatitude(index2).then((v) => result.latitude = v),
|
|
36312
|
+
table.getLongitude(index2).then((v) => result.longitude = v),
|
|
36313
|
+
table.getTimeZone(index2).then((v) => result.timeZone = v),
|
|
36314
|
+
table.getPlaceName(index2).then((v) => result.placeName = v),
|
|
36315
|
+
table.getWeatherStationName(index2).then((v) => result.weatherStationName = v),
|
|
36316
|
+
table.getElevation(index2).then((v) => result.elevation = v),
|
|
36317
|
+
table.getProjectLocation(index2).then((v) => result.projectLocation = v),
|
|
36318
|
+
table.getIssueDate(index2).then((v) => result.issueDate = v),
|
|
36319
|
+
table.getStatus(index2).then((v) => result.status = v),
|
|
36320
|
+
table.getClientName(index2).then((v) => result.clientName = v),
|
|
36321
|
+
table.getAddress(index2).then((v) => result.address = v),
|
|
36322
|
+
table.getName(index2).then((v) => result.name = v),
|
|
36323
|
+
table.getNumber(index2).then((v) => result.number = v),
|
|
36324
|
+
table.getAuthor(index2).then((v) => result.author = v),
|
|
36325
|
+
table.getBuildingName(index2).then((v) => result.buildingName = v),
|
|
36326
|
+
table.getOrganizationName(index2).then((v) => result.organizationName = v),
|
|
36327
|
+
table.getOrganizationDescription(index2).then((v) => result.organizationDescription = v),
|
|
36328
|
+
table.getProduct(index2).then((v) => result.product = v),
|
|
36329
|
+
table.getVersion(index2).then((v) => result.version = v),
|
|
36330
|
+
table.getUser(index2).then((v) => result.user = v),
|
|
36331
|
+
table.getActiveViewIndex(index2).then((v) => result.activeViewIndex = v),
|
|
36332
|
+
table.getOwnerFamilyIndex(index2).then((v) => result.ownerFamilyIndex = v),
|
|
36333
|
+
table.getParentIndex(index2).then((v) => result.parentIndex = v),
|
|
36334
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
36335
36335
|
]);
|
|
36336
36336
|
return result;
|
|
36337
36337
|
}
|
|
@@ -36703,11 +36703,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36703
36703
|
}
|
|
36704
36704
|
async getActiveView(bimDocumentIndex) {
|
|
36705
36705
|
var _a2;
|
|
36706
|
-
const
|
|
36707
|
-
if (
|
|
36706
|
+
const index2 = await this.getActiveViewIndex(bimDocumentIndex);
|
|
36707
|
+
if (index2 === void 0) {
|
|
36708
36708
|
return void 0;
|
|
36709
36709
|
}
|
|
36710
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
36710
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
36711
36711
|
}
|
|
36712
36712
|
async getOwnerFamilyIndex(bimDocumentIndex) {
|
|
36713
36713
|
return await this.entityTable.getNumber(bimDocumentIndex, "index:Vim.Family:OwnerFamily");
|
|
@@ -36717,11 +36717,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36717
36717
|
}
|
|
36718
36718
|
async getOwnerFamily(bimDocumentIndex) {
|
|
36719
36719
|
var _a2;
|
|
36720
|
-
const
|
|
36721
|
-
if (
|
|
36720
|
+
const index2 = await this.getOwnerFamilyIndex(bimDocumentIndex);
|
|
36721
|
+
if (index2 === void 0) {
|
|
36722
36722
|
return void 0;
|
|
36723
36723
|
}
|
|
36724
|
-
return await ((_a2 = this.document.family) == null ? void 0 : _a2.get(
|
|
36724
|
+
return await ((_a2 = this.document.family) == null ? void 0 : _a2.get(index2));
|
|
36725
36725
|
}
|
|
36726
36726
|
async getParentIndex(bimDocumentIndex) {
|
|
36727
36727
|
return await this.entityTable.getNumber(bimDocumentIndex, "index:Vim.BimDocument:Parent");
|
|
@@ -36731,11 +36731,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36731
36731
|
}
|
|
36732
36732
|
async getParent(bimDocumentIndex) {
|
|
36733
36733
|
var _a2;
|
|
36734
|
-
const
|
|
36735
|
-
if (
|
|
36734
|
+
const index2 = await this.getParentIndex(bimDocumentIndex);
|
|
36735
|
+
if (index2 === void 0) {
|
|
36736
36736
|
return void 0;
|
|
36737
36737
|
}
|
|
36738
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
36738
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
36739
36739
|
}
|
|
36740
36740
|
async getElementIndex(bimDocumentIndex) {
|
|
36741
36741
|
return await this.entityTable.getNumber(bimDocumentIndex, "index:Vim.Element:Element");
|
|
@@ -36745,21 +36745,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36745
36745
|
}
|
|
36746
36746
|
async getElement(bimDocumentIndex) {
|
|
36747
36747
|
var _a2;
|
|
36748
|
-
const
|
|
36749
|
-
if (
|
|
36748
|
+
const index2 = await this.getElementIndex(bimDocumentIndex);
|
|
36749
|
+
if (index2 === void 0) {
|
|
36750
36750
|
return void 0;
|
|
36751
36751
|
}
|
|
36752
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
36752
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
36753
36753
|
}
|
|
36754
36754
|
}
|
|
36755
36755
|
objectModel.BimDocumentTable = BimDocumentTable;
|
|
36756
36756
|
class DisplayUnitInBimDocument {
|
|
36757
|
-
static async createFromTable(table,
|
|
36757
|
+
static async createFromTable(table, index2) {
|
|
36758
36758
|
let result = new DisplayUnitInBimDocument();
|
|
36759
|
-
result.index =
|
|
36759
|
+
result.index = index2;
|
|
36760
36760
|
await Promise.all([
|
|
36761
|
-
table.getDisplayUnitIndex(
|
|
36762
|
-
table.getBimDocumentIndex(
|
|
36761
|
+
table.getDisplayUnitIndex(index2).then((v) => result.displayUnitIndex = v),
|
|
36762
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v)
|
|
36763
36763
|
]);
|
|
36764
36764
|
return result;
|
|
36765
36765
|
}
|
|
@@ -36813,11 +36813,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36813
36813
|
}
|
|
36814
36814
|
async getDisplayUnit(displayUnitInBimDocumentIndex) {
|
|
36815
36815
|
var _a2;
|
|
36816
|
-
const
|
|
36817
|
-
if (
|
|
36816
|
+
const index2 = await this.getDisplayUnitIndex(displayUnitInBimDocumentIndex);
|
|
36817
|
+
if (index2 === void 0) {
|
|
36818
36818
|
return void 0;
|
|
36819
36819
|
}
|
|
36820
|
-
return await ((_a2 = this.document.displayUnit) == null ? void 0 : _a2.get(
|
|
36820
|
+
return await ((_a2 = this.document.displayUnit) == null ? void 0 : _a2.get(index2));
|
|
36821
36821
|
}
|
|
36822
36822
|
async getBimDocumentIndex(displayUnitInBimDocumentIndex) {
|
|
36823
36823
|
return await this.entityTable.getNumber(displayUnitInBimDocumentIndex, "index:Vim.BimDocument:BimDocument");
|
|
@@ -36827,22 +36827,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36827
36827
|
}
|
|
36828
36828
|
async getBimDocument(displayUnitInBimDocumentIndex) {
|
|
36829
36829
|
var _a2;
|
|
36830
|
-
const
|
|
36831
|
-
if (
|
|
36830
|
+
const index2 = await this.getBimDocumentIndex(displayUnitInBimDocumentIndex);
|
|
36831
|
+
if (index2 === void 0) {
|
|
36832
36832
|
return void 0;
|
|
36833
36833
|
}
|
|
36834
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
36834
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
36835
36835
|
}
|
|
36836
36836
|
}
|
|
36837
36837
|
objectModel.DisplayUnitInBimDocumentTable = DisplayUnitInBimDocumentTable;
|
|
36838
36838
|
class PhaseOrderInBimDocument {
|
|
36839
|
-
static async createFromTable(table,
|
|
36839
|
+
static async createFromTable(table, index2) {
|
|
36840
36840
|
let result = new PhaseOrderInBimDocument();
|
|
36841
|
-
result.index =
|
|
36841
|
+
result.index = index2;
|
|
36842
36842
|
await Promise.all([
|
|
36843
|
-
table.getOrderIndex(
|
|
36844
|
-
table.getPhaseIndex(
|
|
36845
|
-
table.getBimDocumentIndex(
|
|
36843
|
+
table.getOrderIndex(index2).then((v) => result.orderIndex = v),
|
|
36844
|
+
table.getPhaseIndex(index2).then((v) => result.phaseIndex = v),
|
|
36845
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v)
|
|
36846
36846
|
]);
|
|
36847
36847
|
return result;
|
|
36848
36848
|
}
|
|
@@ -36907,11 +36907,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36907
36907
|
}
|
|
36908
36908
|
async getPhase(phaseOrderInBimDocumentIndex) {
|
|
36909
36909
|
var _a2;
|
|
36910
|
-
const
|
|
36911
|
-
if (
|
|
36910
|
+
const index2 = await this.getPhaseIndex(phaseOrderInBimDocumentIndex);
|
|
36911
|
+
if (index2 === void 0) {
|
|
36912
36912
|
return void 0;
|
|
36913
36913
|
}
|
|
36914
|
-
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(
|
|
36914
|
+
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(index2));
|
|
36915
36915
|
}
|
|
36916
36916
|
async getBimDocumentIndex(phaseOrderInBimDocumentIndex) {
|
|
36917
36917
|
return await this.entityTable.getNumber(phaseOrderInBimDocumentIndex, "index:Vim.BimDocument:BimDocument");
|
|
@@ -36921,28 +36921,28 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36921
36921
|
}
|
|
36922
36922
|
async getBimDocument(phaseOrderInBimDocumentIndex) {
|
|
36923
36923
|
var _a2;
|
|
36924
|
-
const
|
|
36925
|
-
if (
|
|
36924
|
+
const index2 = await this.getBimDocumentIndex(phaseOrderInBimDocumentIndex);
|
|
36925
|
+
if (index2 === void 0) {
|
|
36926
36926
|
return void 0;
|
|
36927
36927
|
}
|
|
36928
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
36928
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
36929
36929
|
}
|
|
36930
36930
|
}
|
|
36931
36931
|
objectModel.PhaseOrderInBimDocumentTable = PhaseOrderInBimDocumentTable;
|
|
36932
36932
|
class Category {
|
|
36933
|
-
static async createFromTable(table,
|
|
36933
|
+
static async createFromTable(table, index2) {
|
|
36934
36934
|
let result = new Category();
|
|
36935
|
-
result.index =
|
|
36935
|
+
result.index = index2;
|
|
36936
36936
|
await Promise.all([
|
|
36937
|
-
table.getName(
|
|
36938
|
-
table.getId(
|
|
36939
|
-
table.getCategoryType(
|
|
36940
|
-
table.getLineColor_X(
|
|
36941
|
-
table.getLineColor_Y(
|
|
36942
|
-
table.getLineColor_Z(
|
|
36943
|
-
table.getBuiltInCategory(
|
|
36944
|
-
table.getParentIndex(
|
|
36945
|
-
table.getMaterialIndex(
|
|
36937
|
+
table.getName(index2).then((v) => result.name = v),
|
|
36938
|
+
table.getId(index2).then((v) => result.id = v),
|
|
36939
|
+
table.getCategoryType(index2).then((v) => result.categoryType = v),
|
|
36940
|
+
table.getLineColor_X(index2).then((v) => result.lineColor_X = v),
|
|
36941
|
+
table.getLineColor_Y(index2).then((v) => result.lineColor_Y = v),
|
|
36942
|
+
table.getLineColor_Z(index2).then((v) => result.lineColor_Z = v),
|
|
36943
|
+
table.getBuiltInCategory(index2).then((v) => result.builtInCategory = v),
|
|
36944
|
+
table.getParentIndex(index2).then((v) => result.parentIndex = v),
|
|
36945
|
+
table.getMaterialIndex(index2).then((v) => result.materialIndex = v)
|
|
36946
36946
|
]);
|
|
36947
36947
|
return result;
|
|
36948
36948
|
}
|
|
@@ -37073,11 +37073,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37073
37073
|
}
|
|
37074
37074
|
async getParent(categoryIndex) {
|
|
37075
37075
|
var _a2;
|
|
37076
|
-
const
|
|
37077
|
-
if (
|
|
37076
|
+
const index2 = await this.getParentIndex(categoryIndex);
|
|
37077
|
+
if (index2 === void 0) {
|
|
37078
37078
|
return void 0;
|
|
37079
37079
|
}
|
|
37080
|
-
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(
|
|
37080
|
+
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(index2));
|
|
37081
37081
|
}
|
|
37082
37082
|
async getMaterialIndex(categoryIndex) {
|
|
37083
37083
|
return await this.entityTable.getNumber(categoryIndex, "index:Vim.Material:Material");
|
|
@@ -37087,25 +37087,25 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37087
37087
|
}
|
|
37088
37088
|
async getMaterial(categoryIndex) {
|
|
37089
37089
|
var _a2;
|
|
37090
|
-
const
|
|
37091
|
-
if (
|
|
37090
|
+
const index2 = await this.getMaterialIndex(categoryIndex);
|
|
37091
|
+
if (index2 === void 0) {
|
|
37092
37092
|
return void 0;
|
|
37093
37093
|
}
|
|
37094
|
-
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(
|
|
37094
|
+
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(index2));
|
|
37095
37095
|
}
|
|
37096
37096
|
}
|
|
37097
37097
|
objectModel.CategoryTable = CategoryTable;
|
|
37098
37098
|
class Family {
|
|
37099
|
-
static async createFromTable(table,
|
|
37099
|
+
static async createFromTable(table, index2) {
|
|
37100
37100
|
let result = new Family();
|
|
37101
|
-
result.index =
|
|
37101
|
+
result.index = index2;
|
|
37102
37102
|
await Promise.all([
|
|
37103
|
-
table.getStructuralMaterialType(
|
|
37104
|
-
table.getStructuralSectionShape(
|
|
37105
|
-
table.getIsSystemFamily(
|
|
37106
|
-
table.getIsInPlace(
|
|
37107
|
-
table.getFamilyCategoryIndex(
|
|
37108
|
-
table.getElementIndex(
|
|
37103
|
+
table.getStructuralMaterialType(index2).then((v) => result.structuralMaterialType = v),
|
|
37104
|
+
table.getStructuralSectionShape(index2).then((v) => result.structuralSectionShape = v),
|
|
37105
|
+
table.getIsSystemFamily(index2).then((v) => result.isSystemFamily = v),
|
|
37106
|
+
table.getIsInPlace(index2).then((v) => result.isInPlace = v),
|
|
37107
|
+
table.getFamilyCategoryIndex(index2).then((v) => result.familyCategoryIndex = v),
|
|
37108
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
37109
37109
|
]);
|
|
37110
37110
|
return result;
|
|
37111
37111
|
}
|
|
@@ -37203,11 +37203,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37203
37203
|
}
|
|
37204
37204
|
async getFamilyCategory(familyIndex) {
|
|
37205
37205
|
var _a2;
|
|
37206
|
-
const
|
|
37207
|
-
if (
|
|
37206
|
+
const index2 = await this.getFamilyCategoryIndex(familyIndex);
|
|
37207
|
+
if (index2 === void 0) {
|
|
37208
37208
|
return void 0;
|
|
37209
37209
|
}
|
|
37210
|
-
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(
|
|
37210
|
+
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(index2));
|
|
37211
37211
|
}
|
|
37212
37212
|
async getElementIndex(familyIndex) {
|
|
37213
37213
|
return await this.entityTable.getNumber(familyIndex, "index:Vim.Element:Element");
|
|
@@ -37217,23 +37217,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37217
37217
|
}
|
|
37218
37218
|
async getElement(familyIndex) {
|
|
37219
37219
|
var _a2;
|
|
37220
|
-
const
|
|
37221
|
-
if (
|
|
37220
|
+
const index2 = await this.getElementIndex(familyIndex);
|
|
37221
|
+
if (index2 === void 0) {
|
|
37222
37222
|
return void 0;
|
|
37223
37223
|
}
|
|
37224
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
37224
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
37225
37225
|
}
|
|
37226
37226
|
}
|
|
37227
37227
|
objectModel.FamilyTable = FamilyTable;
|
|
37228
37228
|
class FamilyType {
|
|
37229
|
-
static async createFromTable(table,
|
|
37229
|
+
static async createFromTable(table, index2) {
|
|
37230
37230
|
let result = new FamilyType();
|
|
37231
|
-
result.index =
|
|
37231
|
+
result.index = index2;
|
|
37232
37232
|
await Promise.all([
|
|
37233
|
-
table.getIsSystemFamilyType(
|
|
37234
|
-
table.getFamilyIndex(
|
|
37235
|
-
table.getCompoundStructureIndex(
|
|
37236
|
-
table.getElementIndex(
|
|
37233
|
+
table.getIsSystemFamilyType(index2).then((v) => result.isSystemFamilyType = v),
|
|
37234
|
+
table.getFamilyIndex(index2).then((v) => result.familyIndex = v),
|
|
37235
|
+
table.getCompoundStructureIndex(index2).then((v) => result.compoundStructureIndex = v),
|
|
37236
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
37237
37237
|
]);
|
|
37238
37238
|
return result;
|
|
37239
37239
|
}
|
|
@@ -37303,11 +37303,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37303
37303
|
}
|
|
37304
37304
|
async getFamily(familyTypeIndex) {
|
|
37305
37305
|
var _a2;
|
|
37306
|
-
const
|
|
37307
|
-
if (
|
|
37306
|
+
const index2 = await this.getFamilyIndex(familyTypeIndex);
|
|
37307
|
+
if (index2 === void 0) {
|
|
37308
37308
|
return void 0;
|
|
37309
37309
|
}
|
|
37310
|
-
return await ((_a2 = this.document.family) == null ? void 0 : _a2.get(
|
|
37310
|
+
return await ((_a2 = this.document.family) == null ? void 0 : _a2.get(index2));
|
|
37311
37311
|
}
|
|
37312
37312
|
async getCompoundStructureIndex(familyTypeIndex) {
|
|
37313
37313
|
return await this.entityTable.getNumber(familyTypeIndex, "index:Vim.CompoundStructure:CompoundStructure");
|
|
@@ -37317,11 +37317,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37317
37317
|
}
|
|
37318
37318
|
async getCompoundStructure(familyTypeIndex) {
|
|
37319
37319
|
var _a2;
|
|
37320
|
-
const
|
|
37321
|
-
if (
|
|
37320
|
+
const index2 = await this.getCompoundStructureIndex(familyTypeIndex);
|
|
37321
|
+
if (index2 === void 0) {
|
|
37322
37322
|
return void 0;
|
|
37323
37323
|
}
|
|
37324
|
-
return await ((_a2 = this.document.compoundStructure) == null ? void 0 : _a2.get(
|
|
37324
|
+
return await ((_a2 = this.document.compoundStructure) == null ? void 0 : _a2.get(index2));
|
|
37325
37325
|
}
|
|
37326
37326
|
async getElementIndex(familyTypeIndex) {
|
|
37327
37327
|
return await this.entityTable.getNumber(familyTypeIndex, "index:Vim.Element:Element");
|
|
@@ -37331,47 +37331,47 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37331
37331
|
}
|
|
37332
37332
|
async getElement(familyTypeIndex) {
|
|
37333
37333
|
var _a2;
|
|
37334
|
-
const
|
|
37335
|
-
if (
|
|
37334
|
+
const index2 = await this.getElementIndex(familyTypeIndex);
|
|
37335
|
+
if (index2 === void 0) {
|
|
37336
37336
|
return void 0;
|
|
37337
37337
|
}
|
|
37338
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
37338
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
37339
37339
|
}
|
|
37340
37340
|
}
|
|
37341
37341
|
objectModel.FamilyTypeTable = FamilyTypeTable;
|
|
37342
37342
|
class FamilyInstance {
|
|
37343
|
-
static async createFromTable(table,
|
|
37343
|
+
static async createFromTable(table, index2) {
|
|
37344
37344
|
let result = new FamilyInstance();
|
|
37345
|
-
result.index =
|
|
37345
|
+
result.index = index2;
|
|
37346
37346
|
await Promise.all([
|
|
37347
|
-
table.getFacingFlipped(
|
|
37348
|
-
table.getFacingOrientation_X(
|
|
37349
|
-
table.getFacingOrientation_Y(
|
|
37350
|
-
table.getFacingOrientation_Z(
|
|
37351
|
-
table.getHandFlipped(
|
|
37352
|
-
table.getMirrored(
|
|
37353
|
-
table.getHasModifiedGeometry(
|
|
37354
|
-
table.getScale(
|
|
37355
|
-
table.getBasisX_X(
|
|
37356
|
-
table.getBasisX_Y(
|
|
37357
|
-
table.getBasisX_Z(
|
|
37358
|
-
table.getBasisY_X(
|
|
37359
|
-
table.getBasisY_Y(
|
|
37360
|
-
table.getBasisY_Z(
|
|
37361
|
-
table.getBasisZ_X(
|
|
37362
|
-
table.getBasisZ_Y(
|
|
37363
|
-
table.getBasisZ_Z(
|
|
37364
|
-
table.getTranslation_X(
|
|
37365
|
-
table.getTranslation_Y(
|
|
37366
|
-
table.getTranslation_Z(
|
|
37367
|
-
table.getHandOrientation_X(
|
|
37368
|
-
table.getHandOrientation_Y(
|
|
37369
|
-
table.getHandOrientation_Z(
|
|
37370
|
-
table.getFamilyTypeIndex(
|
|
37371
|
-
table.getHostIndex(
|
|
37372
|
-
table.getFromRoomIndex(
|
|
37373
|
-
table.getToRoomIndex(
|
|
37374
|
-
table.getElementIndex(
|
|
37347
|
+
table.getFacingFlipped(index2).then((v) => result.facingFlipped = v),
|
|
37348
|
+
table.getFacingOrientation_X(index2).then((v) => result.facingOrientation_X = v),
|
|
37349
|
+
table.getFacingOrientation_Y(index2).then((v) => result.facingOrientation_Y = v),
|
|
37350
|
+
table.getFacingOrientation_Z(index2).then((v) => result.facingOrientation_Z = v),
|
|
37351
|
+
table.getHandFlipped(index2).then((v) => result.handFlipped = v),
|
|
37352
|
+
table.getMirrored(index2).then((v) => result.mirrored = v),
|
|
37353
|
+
table.getHasModifiedGeometry(index2).then((v) => result.hasModifiedGeometry = v),
|
|
37354
|
+
table.getScale(index2).then((v) => result.scale = v),
|
|
37355
|
+
table.getBasisX_X(index2).then((v) => result.basisX_X = v),
|
|
37356
|
+
table.getBasisX_Y(index2).then((v) => result.basisX_Y = v),
|
|
37357
|
+
table.getBasisX_Z(index2).then((v) => result.basisX_Z = v),
|
|
37358
|
+
table.getBasisY_X(index2).then((v) => result.basisY_X = v),
|
|
37359
|
+
table.getBasisY_Y(index2).then((v) => result.basisY_Y = v),
|
|
37360
|
+
table.getBasisY_Z(index2).then((v) => result.basisY_Z = v),
|
|
37361
|
+
table.getBasisZ_X(index2).then((v) => result.basisZ_X = v),
|
|
37362
|
+
table.getBasisZ_Y(index2).then((v) => result.basisZ_Y = v),
|
|
37363
|
+
table.getBasisZ_Z(index2).then((v) => result.basisZ_Z = v),
|
|
37364
|
+
table.getTranslation_X(index2).then((v) => result.translation_X = v),
|
|
37365
|
+
table.getTranslation_Y(index2).then((v) => result.translation_Y = v),
|
|
37366
|
+
table.getTranslation_Z(index2).then((v) => result.translation_Z = v),
|
|
37367
|
+
table.getHandOrientation_X(index2).then((v) => result.handOrientation_X = v),
|
|
37368
|
+
table.getHandOrientation_Y(index2).then((v) => result.handOrientation_Y = v),
|
|
37369
|
+
table.getHandOrientation_Z(index2).then((v) => result.handOrientation_Z = v),
|
|
37370
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
37371
|
+
table.getHostIndex(index2).then((v) => result.hostIndex = v),
|
|
37372
|
+
table.getFromRoomIndex(index2).then((v) => result.fromRoomIndex = v),
|
|
37373
|
+
table.getToRoomIndex(index2).then((v) => result.toRoomIndex = v),
|
|
37374
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
37375
37375
|
]);
|
|
37376
37376
|
return result;
|
|
37377
37377
|
}
|
|
@@ -37693,11 +37693,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37693
37693
|
}
|
|
37694
37694
|
async getFamilyType(familyInstanceIndex) {
|
|
37695
37695
|
var _a2;
|
|
37696
|
-
const
|
|
37697
|
-
if (
|
|
37696
|
+
const index2 = await this.getFamilyTypeIndex(familyInstanceIndex);
|
|
37697
|
+
if (index2 === void 0) {
|
|
37698
37698
|
return void 0;
|
|
37699
37699
|
}
|
|
37700
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
37700
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
37701
37701
|
}
|
|
37702
37702
|
async getHostIndex(familyInstanceIndex) {
|
|
37703
37703
|
return await this.entityTable.getNumber(familyInstanceIndex, "index:Vim.Element:Host");
|
|
@@ -37707,11 +37707,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37707
37707
|
}
|
|
37708
37708
|
async getHost(familyInstanceIndex) {
|
|
37709
37709
|
var _a2;
|
|
37710
|
-
const
|
|
37711
|
-
if (
|
|
37710
|
+
const index2 = await this.getHostIndex(familyInstanceIndex);
|
|
37711
|
+
if (index2 === void 0) {
|
|
37712
37712
|
return void 0;
|
|
37713
37713
|
}
|
|
37714
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
37714
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
37715
37715
|
}
|
|
37716
37716
|
async getFromRoomIndex(familyInstanceIndex) {
|
|
37717
37717
|
return await this.entityTable.getNumber(familyInstanceIndex, "index:Vim.Room:FromRoom");
|
|
@@ -37721,11 +37721,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37721
37721
|
}
|
|
37722
37722
|
async getFromRoom(familyInstanceIndex) {
|
|
37723
37723
|
var _a2;
|
|
37724
|
-
const
|
|
37725
|
-
if (
|
|
37724
|
+
const index2 = await this.getFromRoomIndex(familyInstanceIndex);
|
|
37725
|
+
if (index2 === void 0) {
|
|
37726
37726
|
return void 0;
|
|
37727
37727
|
}
|
|
37728
|
-
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(
|
|
37728
|
+
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(index2));
|
|
37729
37729
|
}
|
|
37730
37730
|
async getToRoomIndex(familyInstanceIndex) {
|
|
37731
37731
|
return await this.entityTable.getNumber(familyInstanceIndex, "index:Vim.Room:ToRoom");
|
|
@@ -37735,11 +37735,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37735
37735
|
}
|
|
37736
37736
|
async getToRoom(familyInstanceIndex) {
|
|
37737
37737
|
var _a2;
|
|
37738
|
-
const
|
|
37739
|
-
if (
|
|
37738
|
+
const index2 = await this.getToRoomIndex(familyInstanceIndex);
|
|
37739
|
+
if (index2 === void 0) {
|
|
37740
37740
|
return void 0;
|
|
37741
37741
|
}
|
|
37742
|
-
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(
|
|
37742
|
+
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(index2));
|
|
37743
37743
|
}
|
|
37744
37744
|
async getElementIndex(familyInstanceIndex) {
|
|
37745
37745
|
return await this.entityTable.getNumber(familyInstanceIndex, "index:Vim.Element:Element");
|
|
@@ -37749,45 +37749,45 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
37749
37749
|
}
|
|
37750
37750
|
async getElement(familyInstanceIndex) {
|
|
37751
37751
|
var _a2;
|
|
37752
|
-
const
|
|
37753
|
-
if (
|
|
37752
|
+
const index2 = await this.getElementIndex(familyInstanceIndex);
|
|
37753
|
+
if (index2 === void 0) {
|
|
37754
37754
|
return void 0;
|
|
37755
37755
|
}
|
|
37756
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
37756
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
37757
37757
|
}
|
|
37758
37758
|
}
|
|
37759
37759
|
objectModel.FamilyInstanceTable = FamilyInstanceTable;
|
|
37760
37760
|
class View {
|
|
37761
|
-
static async createFromTable(table,
|
|
37761
|
+
static async createFromTable(table, index2) {
|
|
37762
37762
|
let result = new View();
|
|
37763
|
-
result.index =
|
|
37763
|
+
result.index = index2;
|
|
37764
37764
|
await Promise.all([
|
|
37765
|
-
table.getTitle(
|
|
37766
|
-
table.getViewType(
|
|
37767
|
-
table.getUp_X(
|
|
37768
|
-
table.getUp_Y(
|
|
37769
|
-
table.getUp_Z(
|
|
37770
|
-
table.getRight_X(
|
|
37771
|
-
table.getRight_Y(
|
|
37772
|
-
table.getRight_Z(
|
|
37773
|
-
table.getOrigin_X(
|
|
37774
|
-
table.getOrigin_Y(
|
|
37775
|
-
table.getOrigin_Z(
|
|
37776
|
-
table.getViewDirection_X(
|
|
37777
|
-
table.getViewDirection_Y(
|
|
37778
|
-
table.getViewDirection_Z(
|
|
37779
|
-
table.getViewPosition_X(
|
|
37780
|
-
table.getViewPosition_Y(
|
|
37781
|
-
table.getViewPosition_Z(
|
|
37782
|
-
table.getScale(
|
|
37783
|
-
table.getOutline_Min_X(
|
|
37784
|
-
table.getOutline_Min_Y(
|
|
37785
|
-
table.getOutline_Max_X(
|
|
37786
|
-
table.getOutline_Max_Y(
|
|
37787
|
-
table.getDetailLevel(
|
|
37788
|
-
table.getCameraIndex(
|
|
37789
|
-
table.getFamilyTypeIndex(
|
|
37790
|
-
table.getElementIndex(
|
|
37765
|
+
table.getTitle(index2).then((v) => result.title = v),
|
|
37766
|
+
table.getViewType(index2).then((v) => result.viewType = v),
|
|
37767
|
+
table.getUp_X(index2).then((v) => result.up_X = v),
|
|
37768
|
+
table.getUp_Y(index2).then((v) => result.up_Y = v),
|
|
37769
|
+
table.getUp_Z(index2).then((v) => result.up_Z = v),
|
|
37770
|
+
table.getRight_X(index2).then((v) => result.right_X = v),
|
|
37771
|
+
table.getRight_Y(index2).then((v) => result.right_Y = v),
|
|
37772
|
+
table.getRight_Z(index2).then((v) => result.right_Z = v),
|
|
37773
|
+
table.getOrigin_X(index2).then((v) => result.origin_X = v),
|
|
37774
|
+
table.getOrigin_Y(index2).then((v) => result.origin_Y = v),
|
|
37775
|
+
table.getOrigin_Z(index2).then((v) => result.origin_Z = v),
|
|
37776
|
+
table.getViewDirection_X(index2).then((v) => result.viewDirection_X = v),
|
|
37777
|
+
table.getViewDirection_Y(index2).then((v) => result.viewDirection_Y = v),
|
|
37778
|
+
table.getViewDirection_Z(index2).then((v) => result.viewDirection_Z = v),
|
|
37779
|
+
table.getViewPosition_X(index2).then((v) => result.viewPosition_X = v),
|
|
37780
|
+
table.getViewPosition_Y(index2).then((v) => result.viewPosition_Y = v),
|
|
37781
|
+
table.getViewPosition_Z(index2).then((v) => result.viewPosition_Z = v),
|
|
37782
|
+
table.getScale(index2).then((v) => result.scale = v),
|
|
37783
|
+
table.getOutline_Min_X(index2).then((v) => result.outline_Min_X = v),
|
|
37784
|
+
table.getOutline_Min_Y(index2).then((v) => result.outline_Min_Y = v),
|
|
37785
|
+
table.getOutline_Max_X(index2).then((v) => result.outline_Max_X = v),
|
|
37786
|
+
table.getOutline_Max_Y(index2).then((v) => result.outline_Max_Y = v),
|
|
37787
|
+
table.getDetailLevel(index2).then((v) => result.detailLevel = v),
|
|
37788
|
+
table.getCameraIndex(index2).then((v) => result.cameraIndex = v),
|
|
37789
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
37790
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
37791
37791
|
]);
|
|
37792
37792
|
return result;
|
|
37793
37793
|
}
|
|
@@ -38099,11 +38099,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38099
38099
|
}
|
|
38100
38100
|
async getCamera(viewIndex) {
|
|
38101
38101
|
var _a2;
|
|
38102
|
-
const
|
|
38103
|
-
if (
|
|
38102
|
+
const index2 = await this.getCameraIndex(viewIndex);
|
|
38103
|
+
if (index2 === void 0) {
|
|
38104
38104
|
return void 0;
|
|
38105
38105
|
}
|
|
38106
|
-
return await ((_a2 = this.document.camera) == null ? void 0 : _a2.get(
|
|
38106
|
+
return await ((_a2 = this.document.camera) == null ? void 0 : _a2.get(index2));
|
|
38107
38107
|
}
|
|
38108
38108
|
async getFamilyTypeIndex(viewIndex) {
|
|
38109
38109
|
return await this.entityTable.getNumber(viewIndex, "index:Vim.FamilyType:FamilyType");
|
|
@@ -38113,11 +38113,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38113
38113
|
}
|
|
38114
38114
|
async getFamilyType(viewIndex) {
|
|
38115
38115
|
var _a2;
|
|
38116
|
-
const
|
|
38117
|
-
if (
|
|
38116
|
+
const index2 = await this.getFamilyTypeIndex(viewIndex);
|
|
38117
|
+
if (index2 === void 0) {
|
|
38118
38118
|
return void 0;
|
|
38119
38119
|
}
|
|
38120
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
38120
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
38121
38121
|
}
|
|
38122
38122
|
async getElementIndex(viewIndex) {
|
|
38123
38123
|
return await this.entityTable.getNumber(viewIndex, "index:Vim.Element:Element");
|
|
@@ -38127,21 +38127,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38127
38127
|
}
|
|
38128
38128
|
async getElement(viewIndex) {
|
|
38129
38129
|
var _a2;
|
|
38130
|
-
const
|
|
38131
|
-
if (
|
|
38130
|
+
const index2 = await this.getElementIndex(viewIndex);
|
|
38131
|
+
if (index2 === void 0) {
|
|
38132
38132
|
return void 0;
|
|
38133
38133
|
}
|
|
38134
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
38134
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
38135
38135
|
}
|
|
38136
38136
|
}
|
|
38137
38137
|
objectModel.ViewTable = ViewTable;
|
|
38138
38138
|
class ElementInView {
|
|
38139
|
-
static async createFromTable(table,
|
|
38139
|
+
static async createFromTable(table, index2) {
|
|
38140
38140
|
let result = new ElementInView();
|
|
38141
|
-
result.index =
|
|
38141
|
+
result.index = index2;
|
|
38142
38142
|
await Promise.all([
|
|
38143
|
-
table.getViewIndex(
|
|
38144
|
-
table.getElementIndex(
|
|
38143
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v),
|
|
38144
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
38145
38145
|
]);
|
|
38146
38146
|
return result;
|
|
38147
38147
|
}
|
|
@@ -38195,11 +38195,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38195
38195
|
}
|
|
38196
38196
|
async getView(elementInViewIndex) {
|
|
38197
38197
|
var _a2;
|
|
38198
|
-
const
|
|
38199
|
-
if (
|
|
38198
|
+
const index2 = await this.getViewIndex(elementInViewIndex);
|
|
38199
|
+
if (index2 === void 0) {
|
|
38200
38200
|
return void 0;
|
|
38201
38201
|
}
|
|
38202
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
38202
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
38203
38203
|
}
|
|
38204
38204
|
async getElementIndex(elementInViewIndex) {
|
|
38205
38205
|
return await this.entityTable.getNumber(elementInViewIndex, "index:Vim.Element:Element");
|
|
@@ -38209,21 +38209,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38209
38209
|
}
|
|
38210
38210
|
async getElement(elementInViewIndex) {
|
|
38211
38211
|
var _a2;
|
|
38212
|
-
const
|
|
38213
|
-
if (
|
|
38212
|
+
const index2 = await this.getElementIndex(elementInViewIndex);
|
|
38213
|
+
if (index2 === void 0) {
|
|
38214
38214
|
return void 0;
|
|
38215
38215
|
}
|
|
38216
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
38216
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
38217
38217
|
}
|
|
38218
38218
|
}
|
|
38219
38219
|
objectModel.ElementInViewTable = ElementInViewTable;
|
|
38220
38220
|
class ShapeInView {
|
|
38221
|
-
static async createFromTable(table,
|
|
38221
|
+
static async createFromTable(table, index2) {
|
|
38222
38222
|
let result = new ShapeInView();
|
|
38223
|
-
result.index =
|
|
38223
|
+
result.index = index2;
|
|
38224
38224
|
await Promise.all([
|
|
38225
|
-
table.getShapeIndex(
|
|
38226
|
-
table.getViewIndex(
|
|
38225
|
+
table.getShapeIndex(index2).then((v) => result.shapeIndex = v),
|
|
38226
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v)
|
|
38227
38227
|
]);
|
|
38228
38228
|
return result;
|
|
38229
38229
|
}
|
|
@@ -38277,11 +38277,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38277
38277
|
}
|
|
38278
38278
|
async getShape(shapeInViewIndex) {
|
|
38279
38279
|
var _a2;
|
|
38280
|
-
const
|
|
38281
|
-
if (
|
|
38280
|
+
const index2 = await this.getShapeIndex(shapeInViewIndex);
|
|
38281
|
+
if (index2 === void 0) {
|
|
38282
38282
|
return void 0;
|
|
38283
38283
|
}
|
|
38284
|
-
return await ((_a2 = this.document.shape) == null ? void 0 : _a2.get(
|
|
38284
|
+
return await ((_a2 = this.document.shape) == null ? void 0 : _a2.get(index2));
|
|
38285
38285
|
}
|
|
38286
38286
|
async getViewIndex(shapeInViewIndex) {
|
|
38287
38287
|
return await this.entityTable.getNumber(shapeInViewIndex, "index:Vim.View:View");
|
|
@@ -38291,21 +38291,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38291
38291
|
}
|
|
38292
38292
|
async getView(shapeInViewIndex) {
|
|
38293
38293
|
var _a2;
|
|
38294
|
-
const
|
|
38295
|
-
if (
|
|
38294
|
+
const index2 = await this.getViewIndex(shapeInViewIndex);
|
|
38295
|
+
if (index2 === void 0) {
|
|
38296
38296
|
return void 0;
|
|
38297
38297
|
}
|
|
38298
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
38298
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
38299
38299
|
}
|
|
38300
38300
|
}
|
|
38301
38301
|
objectModel.ShapeInViewTable = ShapeInViewTable;
|
|
38302
38302
|
class AssetInView {
|
|
38303
|
-
static async createFromTable(table,
|
|
38303
|
+
static async createFromTable(table, index2) {
|
|
38304
38304
|
let result = new AssetInView();
|
|
38305
|
-
result.index =
|
|
38305
|
+
result.index = index2;
|
|
38306
38306
|
await Promise.all([
|
|
38307
|
-
table.getAssetIndex(
|
|
38308
|
-
table.getViewIndex(
|
|
38307
|
+
table.getAssetIndex(index2).then((v) => result.assetIndex = v),
|
|
38308
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v)
|
|
38309
38309
|
]);
|
|
38310
38310
|
return result;
|
|
38311
38311
|
}
|
|
@@ -38359,11 +38359,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38359
38359
|
}
|
|
38360
38360
|
async getAsset(assetInViewIndex) {
|
|
38361
38361
|
var _a2;
|
|
38362
|
-
const
|
|
38363
|
-
if (
|
|
38362
|
+
const index2 = await this.getAssetIndex(assetInViewIndex);
|
|
38363
|
+
if (index2 === void 0) {
|
|
38364
38364
|
return void 0;
|
|
38365
38365
|
}
|
|
38366
|
-
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(
|
|
38366
|
+
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(index2));
|
|
38367
38367
|
}
|
|
38368
38368
|
async getViewIndex(assetInViewIndex) {
|
|
38369
38369
|
return await this.entityTable.getNumber(assetInViewIndex, "index:Vim.View:View");
|
|
@@ -38373,21 +38373,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38373
38373
|
}
|
|
38374
38374
|
async getView(assetInViewIndex) {
|
|
38375
38375
|
var _a2;
|
|
38376
|
-
const
|
|
38377
|
-
if (
|
|
38376
|
+
const index2 = await this.getViewIndex(assetInViewIndex);
|
|
38377
|
+
if (index2 === void 0) {
|
|
38378
38378
|
return void 0;
|
|
38379
38379
|
}
|
|
38380
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
38380
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
38381
38381
|
}
|
|
38382
38382
|
}
|
|
38383
38383
|
objectModel.AssetInViewTable = AssetInViewTable;
|
|
38384
38384
|
class AssetInViewSheet {
|
|
38385
|
-
static async createFromTable(table,
|
|
38385
|
+
static async createFromTable(table, index2) {
|
|
38386
38386
|
let result = new AssetInViewSheet();
|
|
38387
|
-
result.index =
|
|
38387
|
+
result.index = index2;
|
|
38388
38388
|
await Promise.all([
|
|
38389
|
-
table.getAssetIndex(
|
|
38390
|
-
table.getViewSheetIndex(
|
|
38389
|
+
table.getAssetIndex(index2).then((v) => result.assetIndex = v),
|
|
38390
|
+
table.getViewSheetIndex(index2).then((v) => result.viewSheetIndex = v)
|
|
38391
38391
|
]);
|
|
38392
38392
|
return result;
|
|
38393
38393
|
}
|
|
@@ -38441,11 +38441,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38441
38441
|
}
|
|
38442
38442
|
async getAsset(assetInViewSheetIndex) {
|
|
38443
38443
|
var _a2;
|
|
38444
|
-
const
|
|
38445
|
-
if (
|
|
38444
|
+
const index2 = await this.getAssetIndex(assetInViewSheetIndex);
|
|
38445
|
+
if (index2 === void 0) {
|
|
38446
38446
|
return void 0;
|
|
38447
38447
|
}
|
|
38448
|
-
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(
|
|
38448
|
+
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(index2));
|
|
38449
38449
|
}
|
|
38450
38450
|
async getViewSheetIndex(assetInViewSheetIndex) {
|
|
38451
38451
|
return await this.entityTable.getNumber(assetInViewSheetIndex, "index:Vim.ViewSheet:ViewSheet");
|
|
@@ -38455,27 +38455,27 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38455
38455
|
}
|
|
38456
38456
|
async getViewSheet(assetInViewSheetIndex) {
|
|
38457
38457
|
var _a2;
|
|
38458
|
-
const
|
|
38459
|
-
if (
|
|
38458
|
+
const index2 = await this.getViewSheetIndex(assetInViewSheetIndex);
|
|
38459
|
+
if (index2 === void 0) {
|
|
38460
38460
|
return void 0;
|
|
38461
38461
|
}
|
|
38462
|
-
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(
|
|
38462
|
+
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(index2));
|
|
38463
38463
|
}
|
|
38464
38464
|
}
|
|
38465
38465
|
objectModel.AssetInViewSheetTable = AssetInViewSheetTable;
|
|
38466
38466
|
class LevelInView {
|
|
38467
|
-
static async createFromTable(table,
|
|
38467
|
+
static async createFromTable(table, index2) {
|
|
38468
38468
|
let result = new LevelInView();
|
|
38469
|
-
result.index =
|
|
38469
|
+
result.index = index2;
|
|
38470
38470
|
await Promise.all([
|
|
38471
|
-
table.getExtents_Min_X(
|
|
38472
|
-
table.getExtents_Min_Y(
|
|
38473
|
-
table.getExtents_Min_Z(
|
|
38474
|
-
table.getExtents_Max_X(
|
|
38475
|
-
table.getExtents_Max_Y(
|
|
38476
|
-
table.getExtents_Max_Z(
|
|
38477
|
-
table.getLevelIndex(
|
|
38478
|
-
table.getViewIndex(
|
|
38471
|
+
table.getExtents_Min_X(index2).then((v) => result.extents_Min_X = v),
|
|
38472
|
+
table.getExtents_Min_Y(index2).then((v) => result.extents_Min_Y = v),
|
|
38473
|
+
table.getExtents_Min_Z(index2).then((v) => result.extents_Min_Z = v),
|
|
38474
|
+
table.getExtents_Max_X(index2).then((v) => result.extents_Max_X = v),
|
|
38475
|
+
table.getExtents_Max_Y(index2).then((v) => result.extents_Max_Y = v),
|
|
38476
|
+
table.getExtents_Max_Z(index2).then((v) => result.extents_Max_Z = v),
|
|
38477
|
+
table.getLevelIndex(index2).then((v) => result.levelIndex = v),
|
|
38478
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v)
|
|
38479
38479
|
]);
|
|
38480
38480
|
return result;
|
|
38481
38481
|
}
|
|
@@ -38595,11 +38595,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38595
38595
|
}
|
|
38596
38596
|
async getLevel(levelInViewIndex) {
|
|
38597
38597
|
var _a2;
|
|
38598
|
-
const
|
|
38599
|
-
if (
|
|
38598
|
+
const index2 = await this.getLevelIndex(levelInViewIndex);
|
|
38599
|
+
if (index2 === void 0) {
|
|
38600
38600
|
return void 0;
|
|
38601
38601
|
}
|
|
38602
|
-
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(
|
|
38602
|
+
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(index2));
|
|
38603
38603
|
}
|
|
38604
38604
|
async getViewIndex(levelInViewIndex) {
|
|
38605
38605
|
return await this.entityTable.getNumber(levelInViewIndex, "index:Vim.View:View");
|
|
@@ -38609,28 +38609,28 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38609
38609
|
}
|
|
38610
38610
|
async getView(levelInViewIndex) {
|
|
38611
38611
|
var _a2;
|
|
38612
|
-
const
|
|
38613
|
-
if (
|
|
38612
|
+
const index2 = await this.getViewIndex(levelInViewIndex);
|
|
38613
|
+
if (index2 === void 0) {
|
|
38614
38614
|
return void 0;
|
|
38615
38615
|
}
|
|
38616
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
38616
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
38617
38617
|
}
|
|
38618
38618
|
}
|
|
38619
38619
|
objectModel.LevelInViewTable = LevelInViewTable;
|
|
38620
38620
|
class Camera2 {
|
|
38621
|
-
static async createFromTable(table,
|
|
38621
|
+
static async createFromTable(table, index2) {
|
|
38622
38622
|
let result = new Camera2();
|
|
38623
|
-
result.index =
|
|
38623
|
+
result.index = index2;
|
|
38624
38624
|
await Promise.all([
|
|
38625
|
-
table.getId(
|
|
38626
|
-
table.getIsPerspective(
|
|
38627
|
-
table.getVerticalExtent(
|
|
38628
|
-
table.getHorizontalExtent(
|
|
38629
|
-
table.getFarDistance(
|
|
38630
|
-
table.getNearDistance(
|
|
38631
|
-
table.getTargetDistance(
|
|
38632
|
-
table.getRightOffset(
|
|
38633
|
-
table.getUpOffset(
|
|
38625
|
+
table.getId(index2).then((v) => result.id = v),
|
|
38626
|
+
table.getIsPerspective(index2).then((v) => result.isPerspective = v),
|
|
38627
|
+
table.getVerticalExtent(index2).then((v) => result.verticalExtent = v),
|
|
38628
|
+
table.getHorizontalExtent(index2).then((v) => result.horizontalExtent = v),
|
|
38629
|
+
table.getFarDistance(index2).then((v) => result.farDistance = v),
|
|
38630
|
+
table.getNearDistance(index2).then((v) => result.nearDistance = v),
|
|
38631
|
+
table.getTargetDistance(index2).then((v) => result.targetDistance = v),
|
|
38632
|
+
table.getRightOffset(index2).then((v) => result.rightOffset = v),
|
|
38633
|
+
table.getUpOffset(index2).then((v) => result.upOffset = v)
|
|
38634
38634
|
]);
|
|
38635
38635
|
return result;
|
|
38636
38636
|
}
|
|
@@ -38767,30 +38767,30 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
38767
38767
|
}
|
|
38768
38768
|
objectModel.CameraTable = CameraTable;
|
|
38769
38769
|
class Material2 {
|
|
38770
|
-
static async createFromTable(table,
|
|
38770
|
+
static async createFromTable(table, index2) {
|
|
38771
38771
|
let result = new Material2();
|
|
38772
|
-
result.index =
|
|
38772
|
+
result.index = index2;
|
|
38773
38773
|
await Promise.all([
|
|
38774
|
-
table.getName(
|
|
38775
|
-
table.getMaterialCategory(
|
|
38776
|
-
table.getColor_X(
|
|
38777
|
-
table.getColor_Y(
|
|
38778
|
-
table.getColor_Z(
|
|
38779
|
-
table.getColorUvScaling_X(
|
|
38780
|
-
table.getColorUvScaling_Y(
|
|
38781
|
-
table.getColorUvOffset_X(
|
|
38782
|
-
table.getColorUvOffset_Y(
|
|
38783
|
-
table.getNormalUvScaling_X(
|
|
38784
|
-
table.getNormalUvScaling_Y(
|
|
38785
|
-
table.getNormalUvOffset_X(
|
|
38786
|
-
table.getNormalUvOffset_Y(
|
|
38787
|
-
table.getNormalAmount(
|
|
38788
|
-
table.getGlossiness(
|
|
38789
|
-
table.getSmoothness(
|
|
38790
|
-
table.getTransparency(
|
|
38791
|
-
table.getColorTextureFileIndex(
|
|
38792
|
-
table.getNormalTextureFileIndex(
|
|
38793
|
-
table.getElementIndex(
|
|
38774
|
+
table.getName(index2).then((v) => result.name = v),
|
|
38775
|
+
table.getMaterialCategory(index2).then((v) => result.materialCategory = v),
|
|
38776
|
+
table.getColor_X(index2).then((v) => result.color_X = v),
|
|
38777
|
+
table.getColor_Y(index2).then((v) => result.color_Y = v),
|
|
38778
|
+
table.getColor_Z(index2).then((v) => result.color_Z = v),
|
|
38779
|
+
table.getColorUvScaling_X(index2).then((v) => result.colorUvScaling_X = v),
|
|
38780
|
+
table.getColorUvScaling_Y(index2).then((v) => result.colorUvScaling_Y = v),
|
|
38781
|
+
table.getColorUvOffset_X(index2).then((v) => result.colorUvOffset_X = v),
|
|
38782
|
+
table.getColorUvOffset_Y(index2).then((v) => result.colorUvOffset_Y = v),
|
|
38783
|
+
table.getNormalUvScaling_X(index2).then((v) => result.normalUvScaling_X = v),
|
|
38784
|
+
table.getNormalUvScaling_Y(index2).then((v) => result.normalUvScaling_Y = v),
|
|
38785
|
+
table.getNormalUvOffset_X(index2).then((v) => result.normalUvOffset_X = v),
|
|
38786
|
+
table.getNormalUvOffset_Y(index2).then((v) => result.normalUvOffset_Y = v),
|
|
38787
|
+
table.getNormalAmount(index2).then((v) => result.normalAmount = v),
|
|
38788
|
+
table.getGlossiness(index2).then((v) => result.glossiness = v),
|
|
38789
|
+
table.getSmoothness(index2).then((v) => result.smoothness = v),
|
|
38790
|
+
table.getTransparency(index2).then((v) => result.transparency = v),
|
|
38791
|
+
table.getColorTextureFileIndex(index2).then((v) => result.colorTextureFileIndex = v),
|
|
38792
|
+
table.getNormalTextureFileIndex(index2).then((v) => result.normalTextureFileIndex = v),
|
|
38793
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
38794
38794
|
]);
|
|
38795
38795
|
return result;
|
|
38796
38796
|
}
|
|
@@ -39036,11 +39036,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39036
39036
|
}
|
|
39037
39037
|
async getColorTextureFile(materialIndex) {
|
|
39038
39038
|
var _a2;
|
|
39039
|
-
const
|
|
39040
|
-
if (
|
|
39039
|
+
const index2 = await this.getColorTextureFileIndex(materialIndex);
|
|
39040
|
+
if (index2 === void 0) {
|
|
39041
39041
|
return void 0;
|
|
39042
39042
|
}
|
|
39043
|
-
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(
|
|
39043
|
+
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(index2));
|
|
39044
39044
|
}
|
|
39045
39045
|
async getNormalTextureFileIndex(materialIndex) {
|
|
39046
39046
|
return await this.entityTable.getNumber(materialIndex, "index:Vim.Asset:NormalTextureFile");
|
|
@@ -39050,11 +39050,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39050
39050
|
}
|
|
39051
39051
|
async getNormalTextureFile(materialIndex) {
|
|
39052
39052
|
var _a2;
|
|
39053
|
-
const
|
|
39054
|
-
if (
|
|
39053
|
+
const index2 = await this.getNormalTextureFileIndex(materialIndex);
|
|
39054
|
+
if (index2 === void 0) {
|
|
39055
39055
|
return void 0;
|
|
39056
39056
|
}
|
|
39057
|
-
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(
|
|
39057
|
+
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(index2));
|
|
39058
39058
|
}
|
|
39059
39059
|
async getElementIndex(materialIndex) {
|
|
39060
39060
|
return await this.entityTable.getNumber(materialIndex, "index:Vim.Element:Element");
|
|
@@ -39064,24 +39064,24 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39064
39064
|
}
|
|
39065
39065
|
async getElement(materialIndex) {
|
|
39066
39066
|
var _a2;
|
|
39067
|
-
const
|
|
39068
|
-
if (
|
|
39067
|
+
const index2 = await this.getElementIndex(materialIndex);
|
|
39068
|
+
if (index2 === void 0) {
|
|
39069
39069
|
return void 0;
|
|
39070
39070
|
}
|
|
39071
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39071
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39072
39072
|
}
|
|
39073
39073
|
}
|
|
39074
39074
|
objectModel.MaterialTable = MaterialTable;
|
|
39075
39075
|
class MaterialInElement {
|
|
39076
|
-
static async createFromTable(table,
|
|
39076
|
+
static async createFromTable(table, index2) {
|
|
39077
39077
|
let result = new MaterialInElement();
|
|
39078
|
-
result.index =
|
|
39078
|
+
result.index = index2;
|
|
39079
39079
|
await Promise.all([
|
|
39080
|
-
table.getArea(
|
|
39081
|
-
table.getVolume(
|
|
39082
|
-
table.getIsPaint(
|
|
39083
|
-
table.getMaterialIndex(
|
|
39084
|
-
table.getElementIndex(
|
|
39080
|
+
table.getArea(index2).then((v) => result.area = v),
|
|
39081
|
+
table.getVolume(index2).then((v) => result.volume = v),
|
|
39082
|
+
table.getIsPaint(index2).then((v) => result.isPaint = v),
|
|
39083
|
+
table.getMaterialIndex(index2).then((v) => result.materialIndex = v),
|
|
39084
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39085
39085
|
]);
|
|
39086
39086
|
return result;
|
|
39087
39087
|
}
|
|
@@ -39168,11 +39168,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39168
39168
|
}
|
|
39169
39169
|
async getMaterial(materialInElementIndex) {
|
|
39170
39170
|
var _a2;
|
|
39171
|
-
const
|
|
39172
|
-
if (
|
|
39171
|
+
const index2 = await this.getMaterialIndex(materialInElementIndex);
|
|
39172
|
+
if (index2 === void 0) {
|
|
39173
39173
|
return void 0;
|
|
39174
39174
|
}
|
|
39175
|
-
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(
|
|
39175
|
+
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(index2));
|
|
39176
39176
|
}
|
|
39177
39177
|
async getElementIndex(materialInElementIndex) {
|
|
39178
39178
|
return await this.entityTable.getNumber(materialInElementIndex, "index:Vim.Element:Element");
|
|
@@ -39182,24 +39182,24 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39182
39182
|
}
|
|
39183
39183
|
async getElement(materialInElementIndex) {
|
|
39184
39184
|
var _a2;
|
|
39185
|
-
const
|
|
39186
|
-
if (
|
|
39185
|
+
const index2 = await this.getElementIndex(materialInElementIndex);
|
|
39186
|
+
if (index2 === void 0) {
|
|
39187
39187
|
return void 0;
|
|
39188
39188
|
}
|
|
39189
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39189
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39190
39190
|
}
|
|
39191
39191
|
}
|
|
39192
39192
|
objectModel.MaterialInElementTable = MaterialInElementTable;
|
|
39193
39193
|
class CompoundStructureLayer {
|
|
39194
|
-
static async createFromTable(table,
|
|
39194
|
+
static async createFromTable(table, index2) {
|
|
39195
39195
|
let result = new CompoundStructureLayer();
|
|
39196
|
-
result.index =
|
|
39196
|
+
result.index = index2;
|
|
39197
39197
|
await Promise.all([
|
|
39198
|
-
table.getOrderIndex(
|
|
39199
|
-
table.getWidth(
|
|
39200
|
-
table.getMaterialFunctionAssignment(
|
|
39201
|
-
table.getMaterialIndex(
|
|
39202
|
-
table.getCompoundStructureIndex(
|
|
39198
|
+
table.getOrderIndex(index2).then((v) => result.orderIndex = v),
|
|
39199
|
+
table.getWidth(index2).then((v) => result.width = v),
|
|
39200
|
+
table.getMaterialFunctionAssignment(index2).then((v) => result.materialFunctionAssignment = v),
|
|
39201
|
+
table.getMaterialIndex(index2).then((v) => result.materialIndex = v),
|
|
39202
|
+
table.getCompoundStructureIndex(index2).then((v) => result.compoundStructureIndex = v)
|
|
39203
39203
|
]);
|
|
39204
39204
|
return result;
|
|
39205
39205
|
}
|
|
@@ -39286,11 +39286,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39286
39286
|
}
|
|
39287
39287
|
async getMaterial(compoundStructureLayerIndex) {
|
|
39288
39288
|
var _a2;
|
|
39289
|
-
const
|
|
39290
|
-
if (
|
|
39289
|
+
const index2 = await this.getMaterialIndex(compoundStructureLayerIndex);
|
|
39290
|
+
if (index2 === void 0) {
|
|
39291
39291
|
return void 0;
|
|
39292
39292
|
}
|
|
39293
|
-
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(
|
|
39293
|
+
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(index2));
|
|
39294
39294
|
}
|
|
39295
39295
|
async getCompoundStructureIndex(compoundStructureLayerIndex) {
|
|
39296
39296
|
return await this.entityTable.getNumber(compoundStructureLayerIndex, "index:Vim.CompoundStructure:CompoundStructure");
|
|
@@ -39300,21 +39300,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39300
39300
|
}
|
|
39301
39301
|
async getCompoundStructure(compoundStructureLayerIndex) {
|
|
39302
39302
|
var _a2;
|
|
39303
|
-
const
|
|
39304
|
-
if (
|
|
39303
|
+
const index2 = await this.getCompoundStructureIndex(compoundStructureLayerIndex);
|
|
39304
|
+
if (index2 === void 0) {
|
|
39305
39305
|
return void 0;
|
|
39306
39306
|
}
|
|
39307
|
-
return await ((_a2 = this.document.compoundStructure) == null ? void 0 : _a2.get(
|
|
39307
|
+
return await ((_a2 = this.document.compoundStructure) == null ? void 0 : _a2.get(index2));
|
|
39308
39308
|
}
|
|
39309
39309
|
}
|
|
39310
39310
|
objectModel.CompoundStructureLayerTable = CompoundStructureLayerTable;
|
|
39311
39311
|
class CompoundStructure {
|
|
39312
|
-
static async createFromTable(table,
|
|
39312
|
+
static async createFromTable(table, index2) {
|
|
39313
39313
|
let result = new CompoundStructure();
|
|
39314
|
-
result.index =
|
|
39314
|
+
result.index = index2;
|
|
39315
39315
|
await Promise.all([
|
|
39316
|
-
table.getWidth(
|
|
39317
|
-
table.getStructuralLayerIndex(
|
|
39316
|
+
table.getWidth(index2).then((v) => result.width = v),
|
|
39317
|
+
table.getStructuralLayerIndex(index2).then((v) => result.structuralLayerIndex = v)
|
|
39318
39318
|
]);
|
|
39319
39319
|
return result;
|
|
39320
39320
|
}
|
|
@@ -39374,20 +39374,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39374
39374
|
}
|
|
39375
39375
|
async getStructuralLayer(compoundStructureIndex) {
|
|
39376
39376
|
var _a2;
|
|
39377
|
-
const
|
|
39378
|
-
if (
|
|
39377
|
+
const index2 = await this.getStructuralLayerIndex(compoundStructureIndex);
|
|
39378
|
+
if (index2 === void 0) {
|
|
39379
39379
|
return void 0;
|
|
39380
39380
|
}
|
|
39381
|
-
return await ((_a2 = this.document.compoundStructureLayer) == null ? void 0 : _a2.get(
|
|
39381
|
+
return await ((_a2 = this.document.compoundStructureLayer) == null ? void 0 : _a2.get(index2));
|
|
39382
39382
|
}
|
|
39383
39383
|
}
|
|
39384
39384
|
objectModel.CompoundStructureTable = CompoundStructureTable;
|
|
39385
39385
|
class Node2 {
|
|
39386
|
-
static async createFromTable(table,
|
|
39386
|
+
static async createFromTable(table, index2) {
|
|
39387
39387
|
let result = new Node2();
|
|
39388
|
-
result.index =
|
|
39388
|
+
result.index = index2;
|
|
39389
39389
|
await Promise.all([
|
|
39390
|
-
table.getElementIndex(
|
|
39390
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39391
39391
|
]);
|
|
39392
39392
|
return result;
|
|
39393
39393
|
}
|
|
@@ -39436,27 +39436,27 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39436
39436
|
}
|
|
39437
39437
|
async getElement(nodeIndex) {
|
|
39438
39438
|
var _a2;
|
|
39439
|
-
const
|
|
39440
|
-
if (
|
|
39439
|
+
const index2 = await this.getElementIndex(nodeIndex);
|
|
39440
|
+
if (index2 === void 0) {
|
|
39441
39441
|
return void 0;
|
|
39442
39442
|
}
|
|
39443
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39443
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39444
39444
|
}
|
|
39445
39445
|
}
|
|
39446
39446
|
objectModel.NodeTable = NodeTable;
|
|
39447
39447
|
class Geometry2 {
|
|
39448
|
-
static async createFromTable(table,
|
|
39448
|
+
static async createFromTable(table, index2) {
|
|
39449
39449
|
let result = new Geometry2();
|
|
39450
|
-
result.index =
|
|
39450
|
+
result.index = index2;
|
|
39451
39451
|
await Promise.all([
|
|
39452
|
-
table.getBox_Min_X(
|
|
39453
|
-
table.getBox_Min_Y(
|
|
39454
|
-
table.getBox_Min_Z(
|
|
39455
|
-
table.getBox_Max_X(
|
|
39456
|
-
table.getBox_Max_Y(
|
|
39457
|
-
table.getBox_Max_Z(
|
|
39458
|
-
table.getVertexCount(
|
|
39459
|
-
table.getFaceCount(
|
|
39452
|
+
table.getBox_Min_X(index2).then((v) => result.box_Min_X = v),
|
|
39453
|
+
table.getBox_Min_Y(index2).then((v) => result.box_Min_Y = v),
|
|
39454
|
+
table.getBox_Min_Z(index2).then((v) => result.box_Min_Z = v),
|
|
39455
|
+
table.getBox_Max_X(index2).then((v) => result.box_Max_X = v),
|
|
39456
|
+
table.getBox_Max_Y(index2).then((v) => result.box_Max_Y = v),
|
|
39457
|
+
table.getBox_Max_Z(index2).then((v) => result.box_Max_Z = v),
|
|
39458
|
+
table.getVertexCount(index2).then((v) => result.vertexCount = v),
|
|
39459
|
+
table.getFaceCount(index2).then((v) => result.faceCount = v)
|
|
39460
39460
|
]);
|
|
39461
39461
|
return result;
|
|
39462
39462
|
}
|
|
@@ -39582,11 +39582,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39582
39582
|
}
|
|
39583
39583
|
objectModel.GeometryTable = GeometryTable;
|
|
39584
39584
|
class Shape2 {
|
|
39585
|
-
static async createFromTable(table,
|
|
39585
|
+
static async createFromTable(table, index2) {
|
|
39586
39586
|
let result = new Shape2();
|
|
39587
|
-
result.index =
|
|
39587
|
+
result.index = index2;
|
|
39588
39588
|
await Promise.all([
|
|
39589
|
-
table.getElementIndex(
|
|
39589
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39590
39590
|
]);
|
|
39591
39591
|
return result;
|
|
39592
39592
|
}
|
|
@@ -39635,20 +39635,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39635
39635
|
}
|
|
39636
39636
|
async getElement(shapeIndex) {
|
|
39637
39637
|
var _a2;
|
|
39638
|
-
const
|
|
39639
|
-
if (
|
|
39638
|
+
const index2 = await this.getElementIndex(shapeIndex);
|
|
39639
|
+
if (index2 === void 0) {
|
|
39640
39640
|
return void 0;
|
|
39641
39641
|
}
|
|
39642
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39642
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39643
39643
|
}
|
|
39644
39644
|
}
|
|
39645
39645
|
objectModel.ShapeTable = ShapeTable;
|
|
39646
39646
|
class ShapeCollection {
|
|
39647
|
-
static async createFromTable(table,
|
|
39647
|
+
static async createFromTable(table, index2) {
|
|
39648
39648
|
let result = new ShapeCollection();
|
|
39649
|
-
result.index =
|
|
39649
|
+
result.index = index2;
|
|
39650
39650
|
await Promise.all([
|
|
39651
|
-
table.getElementIndex(
|
|
39651
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39652
39652
|
]);
|
|
39653
39653
|
return result;
|
|
39654
39654
|
}
|
|
@@ -39697,21 +39697,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39697
39697
|
}
|
|
39698
39698
|
async getElement(shapeCollectionIndex) {
|
|
39699
39699
|
var _a2;
|
|
39700
|
-
const
|
|
39701
|
-
if (
|
|
39700
|
+
const index2 = await this.getElementIndex(shapeCollectionIndex);
|
|
39701
|
+
if (index2 === void 0) {
|
|
39702
39702
|
return void 0;
|
|
39703
39703
|
}
|
|
39704
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39704
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39705
39705
|
}
|
|
39706
39706
|
}
|
|
39707
39707
|
objectModel.ShapeCollectionTable = ShapeCollectionTable;
|
|
39708
39708
|
class ShapeInShapeCollection {
|
|
39709
|
-
static async createFromTable(table,
|
|
39709
|
+
static async createFromTable(table, index2) {
|
|
39710
39710
|
let result = new ShapeInShapeCollection();
|
|
39711
|
-
result.index =
|
|
39711
|
+
result.index = index2;
|
|
39712
39712
|
await Promise.all([
|
|
39713
|
-
table.getShapeIndex(
|
|
39714
|
-
table.getShapeCollectionIndex(
|
|
39713
|
+
table.getShapeIndex(index2).then((v) => result.shapeIndex = v),
|
|
39714
|
+
table.getShapeCollectionIndex(index2).then((v) => result.shapeCollectionIndex = v)
|
|
39715
39715
|
]);
|
|
39716
39716
|
return result;
|
|
39717
39717
|
}
|
|
@@ -39765,11 +39765,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39765
39765
|
}
|
|
39766
39766
|
async getShape(shapeInShapeCollectionIndex) {
|
|
39767
39767
|
var _a2;
|
|
39768
|
-
const
|
|
39769
|
-
if (
|
|
39768
|
+
const index2 = await this.getShapeIndex(shapeInShapeCollectionIndex);
|
|
39769
|
+
if (index2 === void 0) {
|
|
39770
39770
|
return void 0;
|
|
39771
39771
|
}
|
|
39772
|
-
return await ((_a2 = this.document.shape) == null ? void 0 : _a2.get(
|
|
39772
|
+
return await ((_a2 = this.document.shape) == null ? void 0 : _a2.get(index2));
|
|
39773
39773
|
}
|
|
39774
39774
|
async getShapeCollectionIndex(shapeInShapeCollectionIndex) {
|
|
39775
39775
|
return await this.entityTable.getNumber(shapeInShapeCollectionIndex, "index:Vim.ShapeCollection:ShapeCollection");
|
|
@@ -39779,22 +39779,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39779
39779
|
}
|
|
39780
39780
|
async getShapeCollection(shapeInShapeCollectionIndex) {
|
|
39781
39781
|
var _a2;
|
|
39782
|
-
const
|
|
39783
|
-
if (
|
|
39782
|
+
const index2 = await this.getShapeCollectionIndex(shapeInShapeCollectionIndex);
|
|
39783
|
+
if (index2 === void 0) {
|
|
39784
39784
|
return void 0;
|
|
39785
39785
|
}
|
|
39786
|
-
return await ((_a2 = this.document.shapeCollection) == null ? void 0 : _a2.get(
|
|
39786
|
+
return await ((_a2 = this.document.shapeCollection) == null ? void 0 : _a2.get(index2));
|
|
39787
39787
|
}
|
|
39788
39788
|
}
|
|
39789
39789
|
objectModel.ShapeInShapeCollectionTable = ShapeInShapeCollectionTable;
|
|
39790
39790
|
class System {
|
|
39791
|
-
static async createFromTable(table,
|
|
39791
|
+
static async createFromTable(table, index2) {
|
|
39792
39792
|
let result = new System();
|
|
39793
|
-
result.index =
|
|
39793
|
+
result.index = index2;
|
|
39794
39794
|
await Promise.all([
|
|
39795
|
-
table.getSystemType(
|
|
39796
|
-
table.getFamilyTypeIndex(
|
|
39797
|
-
table.getElementIndex(
|
|
39795
|
+
table.getSystemType(index2).then((v) => result.systemType = v),
|
|
39796
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
39797
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39798
39798
|
]);
|
|
39799
39799
|
return result;
|
|
39800
39800
|
}
|
|
@@ -39859,11 +39859,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39859
39859
|
}
|
|
39860
39860
|
async getFamilyType(systemIndex) {
|
|
39861
39861
|
var _a2;
|
|
39862
|
-
const
|
|
39863
|
-
if (
|
|
39862
|
+
const index2 = await this.getFamilyTypeIndex(systemIndex);
|
|
39863
|
+
if (index2 === void 0) {
|
|
39864
39864
|
return void 0;
|
|
39865
39865
|
}
|
|
39866
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
39866
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
39867
39867
|
}
|
|
39868
39868
|
async getElementIndex(systemIndex) {
|
|
39869
39869
|
return await this.entityTable.getNumber(systemIndex, "index:Vim.Element:Element");
|
|
@@ -39873,22 +39873,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39873
39873
|
}
|
|
39874
39874
|
async getElement(systemIndex) {
|
|
39875
39875
|
var _a2;
|
|
39876
|
-
const
|
|
39877
|
-
if (
|
|
39876
|
+
const index2 = await this.getElementIndex(systemIndex);
|
|
39877
|
+
if (index2 === void 0) {
|
|
39878
39878
|
return void 0;
|
|
39879
39879
|
}
|
|
39880
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39880
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39881
39881
|
}
|
|
39882
39882
|
}
|
|
39883
39883
|
objectModel.SystemTable = SystemTable;
|
|
39884
39884
|
class ElementInSystem {
|
|
39885
|
-
static async createFromTable(table,
|
|
39885
|
+
static async createFromTable(table, index2) {
|
|
39886
39886
|
let result = new ElementInSystem();
|
|
39887
|
-
result.index =
|
|
39887
|
+
result.index = index2;
|
|
39888
39888
|
await Promise.all([
|
|
39889
|
-
table.getRoles(
|
|
39890
|
-
table.getSystemIndex(
|
|
39891
|
-
table.getElementIndex(
|
|
39889
|
+
table.getRoles(index2).then((v) => result.roles = v),
|
|
39890
|
+
table.getSystemIndex(index2).then((v) => result.systemIndex = v),
|
|
39891
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39892
39892
|
]);
|
|
39893
39893
|
return result;
|
|
39894
39894
|
}
|
|
@@ -39953,11 +39953,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39953
39953
|
}
|
|
39954
39954
|
async getSystem(elementInSystemIndex) {
|
|
39955
39955
|
var _a2;
|
|
39956
|
-
const
|
|
39957
|
-
if (
|
|
39956
|
+
const index2 = await this.getSystemIndex(elementInSystemIndex);
|
|
39957
|
+
if (index2 === void 0) {
|
|
39958
39958
|
return void 0;
|
|
39959
39959
|
}
|
|
39960
|
-
return await ((_a2 = this.document.system) == null ? void 0 : _a2.get(
|
|
39960
|
+
return await ((_a2 = this.document.system) == null ? void 0 : _a2.get(index2));
|
|
39961
39961
|
}
|
|
39962
39962
|
async getElementIndex(elementInSystemIndex) {
|
|
39963
39963
|
return await this.entityTable.getNumber(elementInSystemIndex, "index:Vim.Element:Element");
|
|
@@ -39967,23 +39967,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
39967
39967
|
}
|
|
39968
39968
|
async getElement(elementInSystemIndex) {
|
|
39969
39969
|
var _a2;
|
|
39970
|
-
const
|
|
39971
|
-
if (
|
|
39970
|
+
const index2 = await this.getElementIndex(elementInSystemIndex);
|
|
39971
|
+
if (index2 === void 0) {
|
|
39972
39972
|
return void 0;
|
|
39973
39973
|
}
|
|
39974
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39974
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39975
39975
|
}
|
|
39976
39976
|
}
|
|
39977
39977
|
objectModel.ElementInSystemTable = ElementInSystemTable;
|
|
39978
39978
|
class Warning {
|
|
39979
|
-
static async createFromTable(table,
|
|
39979
|
+
static async createFromTable(table, index2) {
|
|
39980
39980
|
let result = new Warning();
|
|
39981
|
-
result.index =
|
|
39981
|
+
result.index = index2;
|
|
39982
39982
|
await Promise.all([
|
|
39983
|
-
table.getGuid(
|
|
39984
|
-
table.getSeverity(
|
|
39985
|
-
table.getDescription(
|
|
39986
|
-
table.getBimDocumentIndex(
|
|
39983
|
+
table.getGuid(index2).then((v) => result.guid = v),
|
|
39984
|
+
table.getSeverity(index2).then((v) => result.severity = v),
|
|
39985
|
+
table.getDescription(index2).then((v) => result.description = v),
|
|
39986
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v)
|
|
39987
39987
|
]);
|
|
39988
39988
|
return result;
|
|
39989
39989
|
}
|
|
@@ -40065,21 +40065,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40065
40065
|
}
|
|
40066
40066
|
async getBimDocument(warningIndex) {
|
|
40067
40067
|
var _a2;
|
|
40068
|
-
const
|
|
40069
|
-
if (
|
|
40068
|
+
const index2 = await this.getBimDocumentIndex(warningIndex);
|
|
40069
|
+
if (index2 === void 0) {
|
|
40070
40070
|
return void 0;
|
|
40071
40071
|
}
|
|
40072
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
40072
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
40073
40073
|
}
|
|
40074
40074
|
}
|
|
40075
40075
|
objectModel.WarningTable = WarningTable;
|
|
40076
40076
|
class ElementInWarning {
|
|
40077
|
-
static async createFromTable(table,
|
|
40077
|
+
static async createFromTable(table, index2) {
|
|
40078
40078
|
let result = new ElementInWarning();
|
|
40079
|
-
result.index =
|
|
40079
|
+
result.index = index2;
|
|
40080
40080
|
await Promise.all([
|
|
40081
|
-
table.getWarningIndex(
|
|
40082
|
-
table.getElementIndex(
|
|
40081
|
+
table.getWarningIndex(index2).then((v) => result.warningIndex = v),
|
|
40082
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40083
40083
|
]);
|
|
40084
40084
|
return result;
|
|
40085
40085
|
}
|
|
@@ -40133,11 +40133,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40133
40133
|
}
|
|
40134
40134
|
async getWarning(elementInWarningIndex) {
|
|
40135
40135
|
var _a2;
|
|
40136
|
-
const
|
|
40137
|
-
if (
|
|
40136
|
+
const index2 = await this.getWarningIndex(elementInWarningIndex);
|
|
40137
|
+
if (index2 === void 0) {
|
|
40138
40138
|
return void 0;
|
|
40139
40139
|
}
|
|
40140
|
-
return await ((_a2 = this.document.warning) == null ? void 0 : _a2.get(
|
|
40140
|
+
return await ((_a2 = this.document.warning) == null ? void 0 : _a2.get(index2));
|
|
40141
40141
|
}
|
|
40142
40142
|
async getElementIndex(elementInWarningIndex) {
|
|
40143
40143
|
return await this.entityTable.getNumber(elementInWarningIndex, "index:Vim.Element:Element");
|
|
@@ -40147,27 +40147,27 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40147
40147
|
}
|
|
40148
40148
|
async getElement(elementInWarningIndex) {
|
|
40149
40149
|
var _a2;
|
|
40150
|
-
const
|
|
40151
|
-
if (
|
|
40150
|
+
const index2 = await this.getElementIndex(elementInWarningIndex);
|
|
40151
|
+
if (index2 === void 0) {
|
|
40152
40152
|
return void 0;
|
|
40153
40153
|
}
|
|
40154
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40154
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40155
40155
|
}
|
|
40156
40156
|
}
|
|
40157
40157
|
objectModel.ElementInWarningTable = ElementInWarningTable;
|
|
40158
40158
|
class BasePoint {
|
|
40159
|
-
static async createFromTable(table,
|
|
40159
|
+
static async createFromTable(table, index2) {
|
|
40160
40160
|
let result = new BasePoint();
|
|
40161
|
-
result.index =
|
|
40161
|
+
result.index = index2;
|
|
40162
40162
|
await Promise.all([
|
|
40163
|
-
table.getIsSurveyPoint(
|
|
40164
|
-
table.getPosition_X(
|
|
40165
|
-
table.getPosition_Y(
|
|
40166
|
-
table.getPosition_Z(
|
|
40167
|
-
table.getSharedPosition_X(
|
|
40168
|
-
table.getSharedPosition_Y(
|
|
40169
|
-
table.getSharedPosition_Z(
|
|
40170
|
-
table.getElementIndex(
|
|
40163
|
+
table.getIsSurveyPoint(index2).then((v) => result.isSurveyPoint = v),
|
|
40164
|
+
table.getPosition_X(index2).then((v) => result.position_X = v),
|
|
40165
|
+
table.getPosition_Y(index2).then((v) => result.position_Y = v),
|
|
40166
|
+
table.getPosition_Z(index2).then((v) => result.position_Z = v),
|
|
40167
|
+
table.getSharedPosition_X(index2).then((v) => result.sharedPosition_X = v),
|
|
40168
|
+
table.getSharedPosition_Y(index2).then((v) => result.sharedPosition_Y = v),
|
|
40169
|
+
table.getSharedPosition_Z(index2).then((v) => result.sharedPosition_Z = v),
|
|
40170
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40171
40171
|
]);
|
|
40172
40172
|
return result;
|
|
40173
40173
|
}
|
|
@@ -40293,24 +40293,24 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40293
40293
|
}
|
|
40294
40294
|
async getElement(basePointIndex) {
|
|
40295
40295
|
var _a2;
|
|
40296
|
-
const
|
|
40297
|
-
if (
|
|
40296
|
+
const index2 = await this.getElementIndex(basePointIndex);
|
|
40297
|
+
if (index2 === void 0) {
|
|
40298
40298
|
return void 0;
|
|
40299
40299
|
}
|
|
40300
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40300
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40301
40301
|
}
|
|
40302
40302
|
}
|
|
40303
40303
|
objectModel.BasePointTable = BasePointTable;
|
|
40304
40304
|
class PhaseFilter {
|
|
40305
|
-
static async createFromTable(table,
|
|
40305
|
+
static async createFromTable(table, index2) {
|
|
40306
40306
|
let result = new PhaseFilter();
|
|
40307
|
-
result.index =
|
|
40307
|
+
result.index = index2;
|
|
40308
40308
|
await Promise.all([
|
|
40309
|
-
table.getNew(
|
|
40310
|
-
table.getExisting(
|
|
40311
|
-
table.getDemolished(
|
|
40312
|
-
table.getTemporary(
|
|
40313
|
-
table.getElementIndex(
|
|
40309
|
+
table.getNew(index2).then((v) => result._new = v),
|
|
40310
|
+
table.getExisting(index2).then((v) => result.existing = v),
|
|
40311
|
+
table.getDemolished(index2).then((v) => result.demolished = v),
|
|
40312
|
+
table.getTemporary(index2).then((v) => result.temporary = v),
|
|
40313
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40314
40314
|
]);
|
|
40315
40315
|
return result;
|
|
40316
40316
|
}
|
|
@@ -40403,34 +40403,34 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40403
40403
|
}
|
|
40404
40404
|
async getElement(phaseFilterIndex) {
|
|
40405
40405
|
var _a2;
|
|
40406
|
-
const
|
|
40407
|
-
if (
|
|
40406
|
+
const index2 = await this.getElementIndex(phaseFilterIndex);
|
|
40407
|
+
if (index2 === void 0) {
|
|
40408
40408
|
return void 0;
|
|
40409
40409
|
}
|
|
40410
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40410
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40411
40411
|
}
|
|
40412
40412
|
}
|
|
40413
40413
|
objectModel.PhaseFilterTable = PhaseFilterTable;
|
|
40414
40414
|
class Grid {
|
|
40415
|
-
static async createFromTable(table,
|
|
40415
|
+
static async createFromTable(table, index2) {
|
|
40416
40416
|
let result = new Grid();
|
|
40417
|
-
result.index =
|
|
40417
|
+
result.index = index2;
|
|
40418
40418
|
await Promise.all([
|
|
40419
|
-
table.getStartPoint_X(
|
|
40420
|
-
table.getStartPoint_Y(
|
|
40421
|
-
table.getStartPoint_Z(
|
|
40422
|
-
table.getEndPoint_X(
|
|
40423
|
-
table.getEndPoint_Y(
|
|
40424
|
-
table.getEndPoint_Z(
|
|
40425
|
-
table.getIsCurved(
|
|
40426
|
-
table.getExtents_Min_X(
|
|
40427
|
-
table.getExtents_Min_Y(
|
|
40428
|
-
table.getExtents_Min_Z(
|
|
40429
|
-
table.getExtents_Max_X(
|
|
40430
|
-
table.getExtents_Max_Y(
|
|
40431
|
-
table.getExtents_Max_Z(
|
|
40432
|
-
table.getFamilyTypeIndex(
|
|
40433
|
-
table.getElementIndex(
|
|
40419
|
+
table.getStartPoint_X(index2).then((v) => result.startPoint_X = v),
|
|
40420
|
+
table.getStartPoint_Y(index2).then((v) => result.startPoint_Y = v),
|
|
40421
|
+
table.getStartPoint_Z(index2).then((v) => result.startPoint_Z = v),
|
|
40422
|
+
table.getEndPoint_X(index2).then((v) => result.endPoint_X = v),
|
|
40423
|
+
table.getEndPoint_Y(index2).then((v) => result.endPoint_Y = v),
|
|
40424
|
+
table.getEndPoint_Z(index2).then((v) => result.endPoint_Z = v),
|
|
40425
|
+
table.getIsCurved(index2).then((v) => result.isCurved = v),
|
|
40426
|
+
table.getExtents_Min_X(index2).then((v) => result.extents_Min_X = v),
|
|
40427
|
+
table.getExtents_Min_Y(index2).then((v) => result.extents_Min_Y = v),
|
|
40428
|
+
table.getExtents_Min_Z(index2).then((v) => result.extents_Min_Z = v),
|
|
40429
|
+
table.getExtents_Max_X(index2).then((v) => result.extents_Max_X = v),
|
|
40430
|
+
table.getExtents_Max_Y(index2).then((v) => result.extents_Max_Y = v),
|
|
40431
|
+
table.getExtents_Max_Z(index2).then((v) => result.extents_Max_Z = v),
|
|
40432
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
40433
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40434
40434
|
]);
|
|
40435
40435
|
return result;
|
|
40436
40436
|
}
|
|
@@ -40627,11 +40627,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40627
40627
|
}
|
|
40628
40628
|
async getFamilyType(gridIndex) {
|
|
40629
40629
|
var _a2;
|
|
40630
|
-
const
|
|
40631
|
-
if (
|
|
40630
|
+
const index2 = await this.getFamilyTypeIndex(gridIndex);
|
|
40631
|
+
if (index2 === void 0) {
|
|
40632
40632
|
return void 0;
|
|
40633
40633
|
}
|
|
40634
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
40634
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
40635
40635
|
}
|
|
40636
40636
|
async getElementIndex(gridIndex) {
|
|
40637
40637
|
return await this.entityTable.getNumber(gridIndex, "index:Vim.Element:Element");
|
|
@@ -40641,25 +40641,25 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40641
40641
|
}
|
|
40642
40642
|
async getElement(gridIndex) {
|
|
40643
40643
|
var _a2;
|
|
40644
|
-
const
|
|
40645
|
-
if (
|
|
40644
|
+
const index2 = await this.getElementIndex(gridIndex);
|
|
40645
|
+
if (index2 === void 0) {
|
|
40646
40646
|
return void 0;
|
|
40647
40647
|
}
|
|
40648
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40648
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40649
40649
|
}
|
|
40650
40650
|
}
|
|
40651
40651
|
objectModel.GridTable = GridTable;
|
|
40652
40652
|
class Area {
|
|
40653
|
-
static async createFromTable(table,
|
|
40653
|
+
static async createFromTable(table, index2) {
|
|
40654
40654
|
let result = new Area();
|
|
40655
|
-
result.index =
|
|
40655
|
+
result.index = index2;
|
|
40656
40656
|
await Promise.all([
|
|
40657
|
-
table.getValue(
|
|
40658
|
-
table.getPerimeter(
|
|
40659
|
-
table.getNumber(
|
|
40660
|
-
table.getIsGrossInterior(
|
|
40661
|
-
table.getAreaSchemeIndex(
|
|
40662
|
-
table.getElementIndex(
|
|
40657
|
+
table.getValue(index2).then((v) => result.value = v),
|
|
40658
|
+
table.getPerimeter(index2).then((v) => result.perimeter = v),
|
|
40659
|
+
table.getNumber(index2).then((v) => result.number = v),
|
|
40660
|
+
table.getIsGrossInterior(index2).then((v) => result.isGrossInterior = v),
|
|
40661
|
+
table.getAreaSchemeIndex(index2).then((v) => result.areaSchemeIndex = v),
|
|
40662
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40663
40663
|
]);
|
|
40664
40664
|
return result;
|
|
40665
40665
|
}
|
|
@@ -40757,11 +40757,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40757
40757
|
}
|
|
40758
40758
|
async getAreaScheme(areaIndex) {
|
|
40759
40759
|
var _a2;
|
|
40760
|
-
const
|
|
40761
|
-
if (
|
|
40760
|
+
const index2 = await this.getAreaSchemeIndex(areaIndex);
|
|
40761
|
+
if (index2 === void 0) {
|
|
40762
40762
|
return void 0;
|
|
40763
40763
|
}
|
|
40764
|
-
return await ((_a2 = this.document.areaScheme) == null ? void 0 : _a2.get(
|
|
40764
|
+
return await ((_a2 = this.document.areaScheme) == null ? void 0 : _a2.get(index2));
|
|
40765
40765
|
}
|
|
40766
40766
|
async getElementIndex(areaIndex) {
|
|
40767
40767
|
return await this.entityTable.getNumber(areaIndex, "index:Vim.Element:Element");
|
|
@@ -40771,21 +40771,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40771
40771
|
}
|
|
40772
40772
|
async getElement(areaIndex) {
|
|
40773
40773
|
var _a2;
|
|
40774
|
-
const
|
|
40775
|
-
if (
|
|
40774
|
+
const index2 = await this.getElementIndex(areaIndex);
|
|
40775
|
+
if (index2 === void 0) {
|
|
40776
40776
|
return void 0;
|
|
40777
40777
|
}
|
|
40778
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40778
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40779
40779
|
}
|
|
40780
40780
|
}
|
|
40781
40781
|
objectModel.AreaTable = AreaTable;
|
|
40782
40782
|
class AreaScheme {
|
|
40783
|
-
static async createFromTable(table,
|
|
40783
|
+
static async createFromTable(table, index2) {
|
|
40784
40784
|
let result = new AreaScheme();
|
|
40785
|
-
result.index =
|
|
40785
|
+
result.index = index2;
|
|
40786
40786
|
await Promise.all([
|
|
40787
|
-
table.getIsGrossBuildingArea(
|
|
40788
|
-
table.getElementIndex(
|
|
40787
|
+
table.getIsGrossBuildingArea(index2).then((v) => result.isGrossBuildingArea = v),
|
|
40788
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40789
40789
|
]);
|
|
40790
40790
|
return result;
|
|
40791
40791
|
}
|
|
@@ -40845,20 +40845,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40845
40845
|
}
|
|
40846
40846
|
async getElement(areaSchemeIndex) {
|
|
40847
40847
|
var _a2;
|
|
40848
|
-
const
|
|
40849
|
-
if (
|
|
40848
|
+
const index2 = await this.getElementIndex(areaSchemeIndex);
|
|
40849
|
+
if (index2 === void 0) {
|
|
40850
40850
|
return void 0;
|
|
40851
40851
|
}
|
|
40852
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40852
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40853
40853
|
}
|
|
40854
40854
|
}
|
|
40855
40855
|
objectModel.AreaSchemeTable = AreaSchemeTable;
|
|
40856
40856
|
class Schedule {
|
|
40857
|
-
static async createFromTable(table,
|
|
40857
|
+
static async createFromTable(table, index2) {
|
|
40858
40858
|
let result = new Schedule();
|
|
40859
|
-
result.index =
|
|
40859
|
+
result.index = index2;
|
|
40860
40860
|
await Promise.all([
|
|
40861
|
-
table.getElementIndex(
|
|
40861
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40862
40862
|
]);
|
|
40863
40863
|
return result;
|
|
40864
40864
|
}
|
|
@@ -40907,22 +40907,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40907
40907
|
}
|
|
40908
40908
|
async getElement(scheduleIndex) {
|
|
40909
40909
|
var _a2;
|
|
40910
|
-
const
|
|
40911
|
-
if (
|
|
40910
|
+
const index2 = await this.getElementIndex(scheduleIndex);
|
|
40911
|
+
if (index2 === void 0) {
|
|
40912
40912
|
return void 0;
|
|
40913
40913
|
}
|
|
40914
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40914
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40915
40915
|
}
|
|
40916
40916
|
}
|
|
40917
40917
|
objectModel.ScheduleTable = ScheduleTable;
|
|
40918
40918
|
class ScheduleColumn {
|
|
40919
|
-
static async createFromTable(table,
|
|
40919
|
+
static async createFromTable(table, index2) {
|
|
40920
40920
|
let result = new ScheduleColumn();
|
|
40921
|
-
result.index =
|
|
40921
|
+
result.index = index2;
|
|
40922
40922
|
await Promise.all([
|
|
40923
|
-
table.getName(
|
|
40924
|
-
table.getColumnIndex(
|
|
40925
|
-
table.getScheduleIndex(
|
|
40923
|
+
table.getName(index2).then((v) => result.name = v),
|
|
40924
|
+
table.getColumnIndex(index2).then((v) => result.columnIndex = v),
|
|
40925
|
+
table.getScheduleIndex(index2).then((v) => result.scheduleIndex = v)
|
|
40926
40926
|
]);
|
|
40927
40927
|
return result;
|
|
40928
40928
|
}
|
|
@@ -40993,22 +40993,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
40993
40993
|
}
|
|
40994
40994
|
async getSchedule(scheduleColumnIndex) {
|
|
40995
40995
|
var _a2;
|
|
40996
|
-
const
|
|
40997
|
-
if (
|
|
40996
|
+
const index2 = await this.getScheduleIndex(scheduleColumnIndex);
|
|
40997
|
+
if (index2 === void 0) {
|
|
40998
40998
|
return void 0;
|
|
40999
40999
|
}
|
|
41000
|
-
return await ((_a2 = this.document.schedule) == null ? void 0 : _a2.get(
|
|
41000
|
+
return await ((_a2 = this.document.schedule) == null ? void 0 : _a2.get(index2));
|
|
41001
41001
|
}
|
|
41002
41002
|
}
|
|
41003
41003
|
objectModel.ScheduleColumnTable = ScheduleColumnTable;
|
|
41004
41004
|
class ScheduleCell {
|
|
41005
|
-
static async createFromTable(table,
|
|
41005
|
+
static async createFromTable(table, index2) {
|
|
41006
41006
|
let result = new ScheduleCell();
|
|
41007
|
-
result.index =
|
|
41007
|
+
result.index = index2;
|
|
41008
41008
|
await Promise.all([
|
|
41009
|
-
table.getValue(
|
|
41010
|
-
table.getRowIndex(
|
|
41011
|
-
table.getScheduleColumnIndex(
|
|
41009
|
+
table.getValue(index2).then((v) => result.value = v),
|
|
41010
|
+
table.getRowIndex(index2).then((v) => result.rowIndex = v),
|
|
41011
|
+
table.getScheduleColumnIndex(index2).then((v) => result.scheduleColumnIndex = v)
|
|
41012
41012
|
]);
|
|
41013
41013
|
return result;
|
|
41014
41014
|
}
|
|
@@ -41079,20 +41079,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41079
41079
|
}
|
|
41080
41080
|
async getScheduleColumn(scheduleCellIndex) {
|
|
41081
41081
|
var _a2;
|
|
41082
|
-
const
|
|
41083
|
-
if (
|
|
41082
|
+
const index2 = await this.getScheduleColumnIndex(scheduleCellIndex);
|
|
41083
|
+
if (index2 === void 0) {
|
|
41084
41084
|
return void 0;
|
|
41085
41085
|
}
|
|
41086
|
-
return await ((_a2 = this.document.scheduleColumn) == null ? void 0 : _a2.get(
|
|
41086
|
+
return await ((_a2 = this.document.scheduleColumn) == null ? void 0 : _a2.get(index2));
|
|
41087
41087
|
}
|
|
41088
41088
|
}
|
|
41089
41089
|
objectModel.ScheduleCellTable = ScheduleCellTable;
|
|
41090
41090
|
class ViewSheetSet {
|
|
41091
|
-
static async createFromTable(table,
|
|
41091
|
+
static async createFromTable(table, index2) {
|
|
41092
41092
|
let result = new ViewSheetSet();
|
|
41093
|
-
result.index =
|
|
41093
|
+
result.index = index2;
|
|
41094
41094
|
await Promise.all([
|
|
41095
|
-
table.getElementIndex(
|
|
41095
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
41096
41096
|
]);
|
|
41097
41097
|
return result;
|
|
41098
41098
|
}
|
|
@@ -41141,21 +41141,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41141
41141
|
}
|
|
41142
41142
|
async getElement(viewSheetSetIndex) {
|
|
41143
41143
|
var _a2;
|
|
41144
|
-
const
|
|
41145
|
-
if (
|
|
41144
|
+
const index2 = await this.getElementIndex(viewSheetSetIndex);
|
|
41145
|
+
if (index2 === void 0) {
|
|
41146
41146
|
return void 0;
|
|
41147
41147
|
}
|
|
41148
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
41148
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
41149
41149
|
}
|
|
41150
41150
|
}
|
|
41151
41151
|
objectModel.ViewSheetSetTable = ViewSheetSetTable;
|
|
41152
41152
|
class ViewSheet {
|
|
41153
|
-
static async createFromTable(table,
|
|
41153
|
+
static async createFromTable(table, index2) {
|
|
41154
41154
|
let result = new ViewSheet();
|
|
41155
|
-
result.index =
|
|
41155
|
+
result.index = index2;
|
|
41156
41156
|
await Promise.all([
|
|
41157
|
-
table.getFamilyTypeIndex(
|
|
41158
|
-
table.getElementIndex(
|
|
41157
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
41158
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
41159
41159
|
]);
|
|
41160
41160
|
return result;
|
|
41161
41161
|
}
|
|
@@ -41209,11 +41209,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41209
41209
|
}
|
|
41210
41210
|
async getFamilyType(viewSheetIndex) {
|
|
41211
41211
|
var _a2;
|
|
41212
|
-
const
|
|
41213
|
-
if (
|
|
41212
|
+
const index2 = await this.getFamilyTypeIndex(viewSheetIndex);
|
|
41213
|
+
if (index2 === void 0) {
|
|
41214
41214
|
return void 0;
|
|
41215
41215
|
}
|
|
41216
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
41216
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
41217
41217
|
}
|
|
41218
41218
|
async getElementIndex(viewSheetIndex) {
|
|
41219
41219
|
return await this.entityTable.getNumber(viewSheetIndex, "index:Vim.Element:Element");
|
|
@@ -41223,21 +41223,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41223
41223
|
}
|
|
41224
41224
|
async getElement(viewSheetIndex) {
|
|
41225
41225
|
var _a2;
|
|
41226
|
-
const
|
|
41227
|
-
if (
|
|
41226
|
+
const index2 = await this.getElementIndex(viewSheetIndex);
|
|
41227
|
+
if (index2 === void 0) {
|
|
41228
41228
|
return void 0;
|
|
41229
41229
|
}
|
|
41230
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
41230
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
41231
41231
|
}
|
|
41232
41232
|
}
|
|
41233
41233
|
objectModel.ViewSheetTable = ViewSheetTable;
|
|
41234
41234
|
class ViewSheetInViewSheetSet {
|
|
41235
|
-
static async createFromTable(table,
|
|
41235
|
+
static async createFromTable(table, index2) {
|
|
41236
41236
|
let result = new ViewSheetInViewSheetSet();
|
|
41237
|
-
result.index =
|
|
41237
|
+
result.index = index2;
|
|
41238
41238
|
await Promise.all([
|
|
41239
|
-
table.getViewSheetIndex(
|
|
41240
|
-
table.getViewSheetSetIndex(
|
|
41239
|
+
table.getViewSheetIndex(index2).then((v) => result.viewSheetIndex = v),
|
|
41240
|
+
table.getViewSheetSetIndex(index2).then((v) => result.viewSheetSetIndex = v)
|
|
41241
41241
|
]);
|
|
41242
41242
|
return result;
|
|
41243
41243
|
}
|
|
@@ -41291,11 +41291,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41291
41291
|
}
|
|
41292
41292
|
async getViewSheet(viewSheetInViewSheetSetIndex) {
|
|
41293
41293
|
var _a2;
|
|
41294
|
-
const
|
|
41295
|
-
if (
|
|
41294
|
+
const index2 = await this.getViewSheetIndex(viewSheetInViewSheetSetIndex);
|
|
41295
|
+
if (index2 === void 0) {
|
|
41296
41296
|
return void 0;
|
|
41297
41297
|
}
|
|
41298
|
-
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(
|
|
41298
|
+
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(index2));
|
|
41299
41299
|
}
|
|
41300
41300
|
async getViewSheetSetIndex(viewSheetInViewSheetSetIndex) {
|
|
41301
41301
|
return await this.entityTable.getNumber(viewSheetInViewSheetSetIndex, "index:Vim.ViewSheetSet:ViewSheetSet");
|
|
@@ -41305,21 +41305,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41305
41305
|
}
|
|
41306
41306
|
async getViewSheetSet(viewSheetInViewSheetSetIndex) {
|
|
41307
41307
|
var _a2;
|
|
41308
|
-
const
|
|
41309
|
-
if (
|
|
41308
|
+
const index2 = await this.getViewSheetSetIndex(viewSheetInViewSheetSetIndex);
|
|
41309
|
+
if (index2 === void 0) {
|
|
41310
41310
|
return void 0;
|
|
41311
41311
|
}
|
|
41312
|
-
return await ((_a2 = this.document.viewSheetSet) == null ? void 0 : _a2.get(
|
|
41312
|
+
return await ((_a2 = this.document.viewSheetSet) == null ? void 0 : _a2.get(index2));
|
|
41313
41313
|
}
|
|
41314
41314
|
}
|
|
41315
41315
|
objectModel.ViewSheetInViewSheetSetTable = ViewSheetInViewSheetSetTable;
|
|
41316
41316
|
class ViewInViewSheetSet {
|
|
41317
|
-
static async createFromTable(table,
|
|
41317
|
+
static async createFromTable(table, index2) {
|
|
41318
41318
|
let result = new ViewInViewSheetSet();
|
|
41319
|
-
result.index =
|
|
41319
|
+
result.index = index2;
|
|
41320
41320
|
await Promise.all([
|
|
41321
|
-
table.getViewIndex(
|
|
41322
|
-
table.getViewSheetSetIndex(
|
|
41321
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v),
|
|
41322
|
+
table.getViewSheetSetIndex(index2).then((v) => result.viewSheetSetIndex = v)
|
|
41323
41323
|
]);
|
|
41324
41324
|
return result;
|
|
41325
41325
|
}
|
|
@@ -41373,11 +41373,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41373
41373
|
}
|
|
41374
41374
|
async getView(viewInViewSheetSetIndex) {
|
|
41375
41375
|
var _a2;
|
|
41376
|
-
const
|
|
41377
|
-
if (
|
|
41376
|
+
const index2 = await this.getViewIndex(viewInViewSheetSetIndex);
|
|
41377
|
+
if (index2 === void 0) {
|
|
41378
41378
|
return void 0;
|
|
41379
41379
|
}
|
|
41380
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
41380
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
41381
41381
|
}
|
|
41382
41382
|
async getViewSheetSetIndex(viewInViewSheetSetIndex) {
|
|
41383
41383
|
return await this.entityTable.getNumber(viewInViewSheetSetIndex, "index:Vim.ViewSheetSet:ViewSheetSet");
|
|
@@ -41387,21 +41387,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41387
41387
|
}
|
|
41388
41388
|
async getViewSheetSet(viewInViewSheetSetIndex) {
|
|
41389
41389
|
var _a2;
|
|
41390
|
-
const
|
|
41391
|
-
if (
|
|
41390
|
+
const index2 = await this.getViewSheetSetIndex(viewInViewSheetSetIndex);
|
|
41391
|
+
if (index2 === void 0) {
|
|
41392
41392
|
return void 0;
|
|
41393
41393
|
}
|
|
41394
|
-
return await ((_a2 = this.document.viewSheetSet) == null ? void 0 : _a2.get(
|
|
41394
|
+
return await ((_a2 = this.document.viewSheetSet) == null ? void 0 : _a2.get(index2));
|
|
41395
41395
|
}
|
|
41396
41396
|
}
|
|
41397
41397
|
objectModel.ViewInViewSheetSetTable = ViewInViewSheetSetTable;
|
|
41398
41398
|
class ViewInViewSheet {
|
|
41399
|
-
static async createFromTable(table,
|
|
41399
|
+
static async createFromTable(table, index2) {
|
|
41400
41400
|
let result = new ViewInViewSheet();
|
|
41401
|
-
result.index =
|
|
41401
|
+
result.index = index2;
|
|
41402
41402
|
await Promise.all([
|
|
41403
|
-
table.getViewIndex(
|
|
41404
|
-
table.getViewSheetIndex(
|
|
41403
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v),
|
|
41404
|
+
table.getViewSheetIndex(index2).then((v) => result.viewSheetIndex = v)
|
|
41405
41405
|
]);
|
|
41406
41406
|
return result;
|
|
41407
41407
|
}
|
|
@@ -41455,11 +41455,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41455
41455
|
}
|
|
41456
41456
|
async getView(viewInViewSheetIndex) {
|
|
41457
41457
|
var _a2;
|
|
41458
|
-
const
|
|
41459
|
-
if (
|
|
41458
|
+
const index2 = await this.getViewIndex(viewInViewSheetIndex);
|
|
41459
|
+
if (index2 === void 0) {
|
|
41460
41460
|
return void 0;
|
|
41461
41461
|
}
|
|
41462
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
41462
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
41463
41463
|
}
|
|
41464
41464
|
async getViewSheetIndex(viewInViewSheetIndex) {
|
|
41465
41465
|
return await this.entityTable.getNumber(viewInViewSheetIndex, "index:Vim.ViewSheet:ViewSheet");
|
|
@@ -41469,25 +41469,25 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41469
41469
|
}
|
|
41470
41470
|
async getViewSheet(viewInViewSheetIndex) {
|
|
41471
41471
|
var _a2;
|
|
41472
|
-
const
|
|
41473
|
-
if (
|
|
41472
|
+
const index2 = await this.getViewSheetIndex(viewInViewSheetIndex);
|
|
41473
|
+
if (index2 === void 0) {
|
|
41474
41474
|
return void 0;
|
|
41475
41475
|
}
|
|
41476
|
-
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(
|
|
41476
|
+
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(index2));
|
|
41477
41477
|
}
|
|
41478
41478
|
}
|
|
41479
41479
|
objectModel.ViewInViewSheetTable = ViewInViewSheetTable;
|
|
41480
41480
|
class Site {
|
|
41481
|
-
static async createFromTable(table,
|
|
41481
|
+
static async createFromTable(table, index2) {
|
|
41482
41482
|
let result = new Site();
|
|
41483
|
-
result.index =
|
|
41483
|
+
result.index = index2;
|
|
41484
41484
|
await Promise.all([
|
|
41485
|
-
table.getLatitude(
|
|
41486
|
-
table.getLongitude(
|
|
41487
|
-
table.getAddress(
|
|
41488
|
-
table.getElevation(
|
|
41489
|
-
table.getNumber(
|
|
41490
|
-
table.getElementIndex(
|
|
41485
|
+
table.getLatitude(index2).then((v) => result.latitude = v),
|
|
41486
|
+
table.getLongitude(index2).then((v) => result.longitude = v),
|
|
41487
|
+
table.getAddress(index2).then((v) => result.address = v),
|
|
41488
|
+
table.getElevation(index2).then((v) => result.elevation = v),
|
|
41489
|
+
table.getNumber(index2).then((v) => result.number = v),
|
|
41490
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
41491
41491
|
]);
|
|
41492
41492
|
return result;
|
|
41493
41493
|
}
|
|
@@ -41591,24 +41591,24 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41591
41591
|
}
|
|
41592
41592
|
async getElement(siteIndex) {
|
|
41593
41593
|
var _a2;
|
|
41594
|
-
const
|
|
41595
|
-
if (
|
|
41594
|
+
const index2 = await this.getElementIndex(siteIndex);
|
|
41595
|
+
if (index2 === void 0) {
|
|
41596
41596
|
return void 0;
|
|
41597
41597
|
}
|
|
41598
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
41598
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
41599
41599
|
}
|
|
41600
41600
|
}
|
|
41601
41601
|
objectModel.SiteTable = SiteTable;
|
|
41602
41602
|
class Building {
|
|
41603
|
-
static async createFromTable(table,
|
|
41603
|
+
static async createFromTable(table, index2) {
|
|
41604
41604
|
let result = new Building();
|
|
41605
|
-
result.index =
|
|
41605
|
+
result.index = index2;
|
|
41606
41606
|
await Promise.all([
|
|
41607
|
-
table.getElevation(
|
|
41608
|
-
table.getTerrainElevation(
|
|
41609
|
-
table.getAddress(
|
|
41610
|
-
table.getSiteIndex(
|
|
41611
|
-
table.getElementIndex(
|
|
41607
|
+
table.getElevation(index2).then((v) => result.elevation = v),
|
|
41608
|
+
table.getTerrainElevation(index2).then((v) => result.terrainElevation = v),
|
|
41609
|
+
table.getAddress(index2).then((v) => result.address = v),
|
|
41610
|
+
table.getSiteIndex(index2).then((v) => result.siteIndex = v),
|
|
41611
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
41612
41612
|
]);
|
|
41613
41613
|
return result;
|
|
41614
41614
|
}
|
|
@@ -41695,11 +41695,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41695
41695
|
}
|
|
41696
41696
|
async getSite(buildingIndex) {
|
|
41697
41697
|
var _a2;
|
|
41698
|
-
const
|
|
41699
|
-
if (
|
|
41698
|
+
const index2 = await this.getSiteIndex(buildingIndex);
|
|
41699
|
+
if (index2 === void 0) {
|
|
41700
41700
|
return void 0;
|
|
41701
41701
|
}
|
|
41702
|
-
return await ((_a2 = this.document.site) == null ? void 0 : _a2.get(
|
|
41702
|
+
return await ((_a2 = this.document.site) == null ? void 0 : _a2.get(index2));
|
|
41703
41703
|
}
|
|
41704
41704
|
async getElementIndex(buildingIndex) {
|
|
41705
41705
|
return await this.entityTable.getNumber(buildingIndex, "index:Vim.Element:Element");
|
|
@@ -41709,11 +41709,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41709
41709
|
}
|
|
41710
41710
|
async getElement(buildingIndex) {
|
|
41711
41711
|
var _a2;
|
|
41712
|
-
const
|
|
41713
|
-
if (
|
|
41712
|
+
const index2 = await this.getElementIndex(buildingIndex);
|
|
41713
|
+
if (index2 === void 0) {
|
|
41714
41714
|
return void 0;
|
|
41715
41715
|
}
|
|
41716
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
41716
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
41717
41717
|
}
|
|
41718
41718
|
}
|
|
41719
41719
|
objectModel.BuildingTable = BuildingTable;
|
|
@@ -41837,8 +41837,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
41837
41837
|
return void 0;
|
|
41838
41838
|
if (!getParameterDescriptorIndices)
|
|
41839
41839
|
return void 0;
|
|
41840
|
-
const getParameterDisplayValue = (
|
|
41841
|
-
const value = parameterValues[
|
|
41840
|
+
const getParameterDisplayValue = (index2) => {
|
|
41841
|
+
const value = parameterValues[index2];
|
|
41842
41842
|
const split2 = value.indexOf("|");
|
|
41843
41843
|
if (split2 >= 0) {
|
|
41844
41844
|
return value.substring(split2 + 1, value.length);
|
|
@@ -42178,7 +42178,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
42178
42178
|
);
|
|
42179
42179
|
}
|
|
42180
42180
|
function fillBuffers(g3d2, buffer, info) {
|
|
42181
|
-
let
|
|
42181
|
+
let index2 = 0;
|
|
42182
42182
|
let vertex2 = 0;
|
|
42183
42183
|
let offset = 0;
|
|
42184
42184
|
const matrix = new Matrix4();
|
|
@@ -42186,7 +42186,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
42186
42186
|
for (let i2 = 0; i2 < info.instances.length; i2++) {
|
|
42187
42187
|
const instance = info.instances[i2];
|
|
42188
42188
|
const mesh = g3d2.getInstanceMesh(instance);
|
|
42189
|
-
buffer.groups[i2] =
|
|
42189
|
+
buffer.groups[i2] = index2;
|
|
42190
42190
|
const subStart = g3d2.getMeshSubmeshStart(mesh, info.section);
|
|
42191
42191
|
const subEnd = g3d2.getMeshSubmeshEnd(mesh, info.section);
|
|
42192
42192
|
for (let sub = subStart; sub < subEnd; sub++) {
|
|
@@ -42195,7 +42195,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
42195
42195
|
const end = g3d2.getSubmeshIndexEnd(sub);
|
|
42196
42196
|
for (let s = start; s < end; s++) {
|
|
42197
42197
|
const newIndex = g3d2.indices[s] + offset;
|
|
42198
|
-
buffer.indices[
|
|
42198
|
+
buffer.indices[index2++] = newIndex;
|
|
42199
42199
|
const v = newIndex * buffer.colorSize;
|
|
42200
42200
|
buffer.colors[v] = subColor[0];
|
|
42201
42201
|
buffer.colors[v + 1] = subColor[1];
|
|
@@ -42392,12 +42392,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
42392
42392
|
}
|
|
42393
42393
|
}
|
|
42394
42394
|
class InsertableSubmesh {
|
|
42395
|
-
constructor(mesh,
|
|
42395
|
+
constructor(mesh, index2) {
|
|
42396
42396
|
__publicField(this, "mesh");
|
|
42397
42397
|
__publicField(this, "index");
|
|
42398
42398
|
__publicField(this, "_colors");
|
|
42399
42399
|
this.mesh = mesh;
|
|
42400
|
-
this.index =
|
|
42400
|
+
this.index = index2;
|
|
42401
42401
|
}
|
|
42402
42402
|
equals(other) {
|
|
42403
42403
|
return this.mesh === other.mesh && this.index === other.index;
|
|
@@ -44508,10 +44508,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
44508
44508
|
submesh.instance = mesh.scene.instanceNodes[instance];
|
|
44509
44509
|
submesh.start = indexOffset + indexOut;
|
|
44510
44510
|
const vertexMergeOffset = vertexCount * instanceIndex;
|
|
44511
|
-
for (let
|
|
44511
|
+
for (let index2 = indexStart; index2 < indexEnd; index2++) {
|
|
44512
44512
|
this.setIndex(
|
|
44513
44513
|
indexOffset + indexOut,
|
|
44514
|
-
vertexOffset + vertexMergeOffset + mesh.chunk.indices[
|
|
44514
|
+
vertexOffset + vertexMergeOffset + mesh.chunk.indices[index2] - sectionOffset
|
|
44515
44515
|
);
|
|
44516
44516
|
indexOut++;
|
|
44517
44517
|
}
|
|
@@ -44581,8 +44581,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
44581
44581
|
const color = g3d2.getSubmeshColor(sub);
|
|
44582
44582
|
const indexStart = g3d2.getSubmeshIndexStart(sub);
|
|
44583
44583
|
const indexEnd = g3d2.getSubmeshIndexEnd(sub);
|
|
44584
|
-
for (let
|
|
44585
|
-
const v = vertexOffset + mergeOffset + g3d2.indices[
|
|
44584
|
+
for (let index2 = indexStart; index2 < indexEnd; index2++) {
|
|
44585
|
+
const v = vertexOffset + mergeOffset + g3d2.indices[index2];
|
|
44586
44586
|
this.setIndex(indexOffset + indexOut, v);
|
|
44587
44587
|
this.setColor(v, color, 0.25);
|
|
44588
44588
|
indexOut++;
|
|
@@ -44603,16 +44603,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
44603
44603
|
this._meshToUpdate.add(mesh);
|
|
44604
44604
|
return added;
|
|
44605
44605
|
}
|
|
44606
|
-
setIndex(
|
|
44607
|
-
this._indexAttribute.setX(
|
|
44606
|
+
setIndex(index2, value) {
|
|
44607
|
+
this._indexAttribute.setX(index2, value);
|
|
44608
44608
|
}
|
|
44609
|
-
setVertex(
|
|
44610
|
-
this._vertexAttribute.setXYZ(
|
|
44609
|
+
setVertex(index2, vector) {
|
|
44610
|
+
this._vertexAttribute.setXYZ(index2, vector.x, vector.y, vector.z);
|
|
44611
44611
|
}
|
|
44612
|
-
setColor(
|
|
44613
|
-
this._colorAttribute.setXYZ(
|
|
44612
|
+
setColor(index2, color, alpha) {
|
|
44613
|
+
this._colorAttribute.setXYZ(index2, color[0], color[1], color[2]);
|
|
44614
44614
|
if (this._colorAttribute.itemSize === 4) {
|
|
44615
|
-
this._colorAttribute.setW(
|
|
44615
|
+
this._colorAttribute.setW(index2, alpha);
|
|
44616
44616
|
}
|
|
44617
44617
|
}
|
|
44618
44618
|
expandBox(box) {
|
|
@@ -45839,8 +45839,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
45839
45839
|
*
|
|
45840
45840
|
* @returns Returns submesh for given index.
|
|
45841
45841
|
*/
|
|
45842
|
-
getSubmesh(
|
|
45843
|
-
return new InsertableSubmesh(this,
|
|
45842
|
+
getSubmesh(index2) {
|
|
45843
|
+
return new InsertableSubmesh(this, index2);
|
|
45844
45844
|
}
|
|
45845
45845
|
/**
|
|
45846
45846
|
* Overrides mesh material, set to undefine to restore initial material.
|
|
@@ -45862,11 +45862,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
45862
45862
|
}
|
|
45863
45863
|
}
|
|
45864
45864
|
class InstancedSubmesh {
|
|
45865
|
-
constructor(mesh,
|
|
45865
|
+
constructor(mesh, index2) {
|
|
45866
45866
|
__publicField(this, "mesh");
|
|
45867
45867
|
__publicField(this, "index");
|
|
45868
45868
|
this.mesh = mesh;
|
|
45869
|
-
this.index =
|
|
45869
|
+
this.index = index2;
|
|
45870
45870
|
}
|
|
45871
45871
|
equals(other) {
|
|
45872
45872
|
return this.mesh === other.mesh && this.index === other.index;
|
|
@@ -45929,8 +45929,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
45929
45929
|
/**
|
|
45930
45930
|
* Returns submesh for given index.
|
|
45931
45931
|
*/
|
|
45932
|
-
getSubMesh(
|
|
45933
|
-
return new InstancedSubmesh(this,
|
|
45932
|
+
getSubMesh(index2) {
|
|
45933
|
+
return new InstancedSubmesh(this, index2);
|
|
45934
45934
|
}
|
|
45935
45935
|
/**
|
|
45936
45936
|
* Returns all submeshes for given index.
|
|
@@ -46162,13 +46162,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
46162
46162
|
}
|
|
46163
46163
|
return promises;
|
|
46164
46164
|
}
|
|
46165
|
-
async merge(mesh,
|
|
46165
|
+
async merge(mesh, index2) {
|
|
46166
46166
|
const m = await this.getMesh(mesh);
|
|
46167
|
-
this.mergeQueue.push(() => this.mergeAction(m,
|
|
46167
|
+
this.mergeQueue.push(() => this.mergeAction(m, index2));
|
|
46168
46168
|
}
|
|
46169
|
-
async instance(mesh,
|
|
46169
|
+
async instance(mesh, index2) {
|
|
46170
46170
|
const m = await this.getMesh(mesh);
|
|
46171
|
-
this.instanceQueue.push(() => this.instanceAction(m,
|
|
46171
|
+
this.instanceQueue.push(() => this.instanceAction(m, index2));
|
|
46172
46172
|
}
|
|
46173
46173
|
}
|
|
46174
46174
|
function getFullSettings(option) {
|
|
@@ -46216,8 +46216,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
46216
46216
|
this._uniques,
|
|
46217
46217
|
this._nonUniques,
|
|
46218
46218
|
(mesh) => localVimx.getMesh(mesh),
|
|
46219
|
-
(mesh,
|
|
46220
|
-
(mesh,
|
|
46219
|
+
(mesh, index2) => this.mergeMesh(mesh, index2),
|
|
46220
|
+
(mesh, index2) => this.instanceMesh(mesh, this._nonUniques.getMeshInstances(index2))
|
|
46221
46221
|
);
|
|
46222
46222
|
return this;
|
|
46223
46223
|
}
|
|
@@ -46236,7 +46236,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
46236
46236
|
}
|
|
46237
46237
|
this._started = true;
|
|
46238
46238
|
const fullSettings = getFullSettings(settings2);
|
|
46239
|
-
this._synchronizer.loadAll();
|
|
46239
|
+
void this._synchronizer.loadAll();
|
|
46240
46240
|
let lastUpdate = Date.now();
|
|
46241
46241
|
while (true) {
|
|
46242
46242
|
await this.nextFrame();
|
|
@@ -46256,9 +46256,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
46256
46256
|
async nextFrame() {
|
|
46257
46257
|
return new Promise((resolve) => setTimeout(resolve, 0));
|
|
46258
46258
|
}
|
|
46259
|
-
mergeMesh(g3dMesh2,
|
|
46260
|
-
this._transparentMesh.insert(g3dMesh2,
|
|
46261
|
-
this._opaqueMesh.insert(g3dMesh2,
|
|
46259
|
+
mergeMesh(g3dMesh2, index2) {
|
|
46260
|
+
this._transparentMesh.insert(g3dMesh2, index2);
|
|
46261
|
+
this._opaqueMesh.insert(g3dMesh2, index2);
|
|
46262
46262
|
}
|
|
46263
46263
|
instanceMesh(g3dMesh2, instances) {
|
|
46264
46264
|
const opaque = this._meshFactory.createOpaque(g3dMesh2, instances);
|
|
@@ -46348,14 +46348,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
46348
46348
|
* @mesh subset-based mesh index
|
|
46349
46349
|
* @index mesh-based instance index
|
|
46350
46350
|
*/
|
|
46351
|
-
getMeshInstance(mesh,
|
|
46352
|
-
return this.subset.getMeshInstance(mesh,
|
|
46351
|
+
getMeshInstance(mesh, index2) {
|
|
46352
|
+
return this.subset.getMeshInstance(mesh, index2);
|
|
46353
46353
|
}
|
|
46354
46354
|
/**
|
|
46355
46355
|
* Returns the source-based mesh index at given index
|
|
46356
46356
|
*/
|
|
46357
|
-
getSourceMesh(
|
|
46358
|
-
return this.subset.getSourceMesh(
|
|
46357
|
+
getSourceMesh(index2) {
|
|
46358
|
+
return this.subset.getSourceMesh(index2);
|
|
46359
46359
|
}
|
|
46360
46360
|
}
|
|
46361
46361
|
class G3dSubset {
|
|
@@ -46425,8 +46425,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
46425
46425
|
* Returns source-based mesh index.
|
|
46426
46426
|
* @param index subset-based mesh index
|
|
46427
46427
|
*/
|
|
46428
|
-
getSourceMesh(
|
|
46429
|
-
return this._meshes[
|
|
46428
|
+
getSourceMesh(index2) {
|
|
46429
|
+
return this._meshes[index2];
|
|
46430
46430
|
}
|
|
46431
46431
|
/**
|
|
46432
46432
|
* Returns total mesh count in subset.
|
|
@@ -46479,8 +46479,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
46479
46479
|
* @param mesh subset-based mesh index.
|
|
46480
46480
|
* @param index mesh-based instance index
|
|
46481
46481
|
*/
|
|
46482
|
-
getMeshInstance(mesh,
|
|
46483
|
-
return this._meshInstances[mesh][
|
|
46482
|
+
getMeshInstance(mesh, index2) {
|
|
46483
|
+
return this._meshInstances[mesh][index2];
|
|
46484
46484
|
}
|
|
46485
46485
|
/**
|
|
46486
46486
|
* Returns a new subset that only contains unique meshes.
|
|
@@ -46649,6 +46649,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
46649
46649
|
getFullSet() {
|
|
46650
46650
|
return new G3dSubset(this.factory.g3d);
|
|
46651
46651
|
}
|
|
46652
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46652
46653
|
loadSubset(subset, settings2) {
|
|
46653
46654
|
this.factory.add(subset);
|
|
46654
46655
|
this._onUpdate.dispatch();
|
|
@@ -47140,11 +47141,11 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
47140
47141
|
}
|
|
47141
47142
|
const combineMerge = (target, source, options) => {
|
|
47142
47143
|
const destination = target.slice();
|
|
47143
|
-
source.forEach((item,
|
|
47144
|
-
if (typeof destination[
|
|
47145
|
-
destination[
|
|
47144
|
+
source.forEach((item, index2) => {
|
|
47145
|
+
if (typeof destination[index2] === "undefined") {
|
|
47146
|
+
destination[index2] = options.cloneUnlessOtherwiseSpecified(item, options);
|
|
47146
47147
|
} else if (options.isMergeableObject(item)) {
|
|
47147
|
-
destination[
|
|
47148
|
+
destination[index2] = deepmerge(target[index2], item, options);
|
|
47148
47149
|
} else if (target.indexOf(item) === -1) {
|
|
47149
47150
|
destination.push(item);
|
|
47150
47151
|
}
|
|
@@ -48181,12 +48182,12 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
48181
48182
|
}
|
|
48182
48183
|
}
|
|
48183
48184
|
class SimpleInstanceSubmesh {
|
|
48184
|
-
constructor(mesh,
|
|
48185
|
+
constructor(mesh, index2) {
|
|
48185
48186
|
__publicField(this, "mesh");
|
|
48186
48187
|
__publicField(this, "index");
|
|
48187
48188
|
__publicField(this, "merged", false);
|
|
48188
48189
|
this.mesh = mesh;
|
|
48189
|
-
this.index =
|
|
48190
|
+
this.index = index2;
|
|
48190
48191
|
}
|
|
48191
48192
|
get three() {
|
|
48192
48193
|
return this.mesh;
|
|
@@ -48201,8 +48202,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
48201
48202
|
this._mesh = this.createMesh(void 0, 1, 0);
|
|
48202
48203
|
this._mesh.count = 0;
|
|
48203
48204
|
}
|
|
48204
|
-
getMarkerFromIndex(
|
|
48205
|
-
return this._markers[
|
|
48205
|
+
getMarkerFromIndex(index2) {
|
|
48206
|
+
return this._markers[index2];
|
|
48206
48207
|
}
|
|
48207
48208
|
createMesh(previous, capacity, count) {
|
|
48208
48209
|
const geometry = (previous == null ? void 0 : previous.geometry) ?? new SphereGeometry(1, 8, 8);
|
|
@@ -48253,14 +48254,14 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
48253
48254
|
* @param {GizmoMarker} marker - The marker to remove.
|
|
48254
48255
|
*/
|
|
48255
48256
|
remove(marker) {
|
|
48256
|
-
const
|
|
48257
|
-
if (
|
|
48258
|
-
this._markers[
|
|
48257
|
+
const index2 = this._markers.findIndex((m) => m === marker);
|
|
48258
|
+
if (index2 < 0) return;
|
|
48259
|
+
this._markers[index2] = this._markers[this._markers.length - 1];
|
|
48259
48260
|
this._markers.length -= 1;
|
|
48260
48261
|
this._mesh.count -= 1;
|
|
48261
|
-
const replacement2 = this._markers[
|
|
48262
|
+
const replacement2 = this._markers[index2];
|
|
48262
48263
|
if (replacement2) {
|
|
48263
|
-
const sub = new SimpleInstanceSubmesh(this._mesh,
|
|
48264
|
+
const sub = new SimpleInstanceSubmesh(this._mesh, index2);
|
|
48264
48265
|
replacement2.updateMesh(sub);
|
|
48265
48266
|
}
|
|
48266
48267
|
this._viewer.renderer.needsUpdate = true;
|
|
@@ -50940,10 +50941,10 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
50940
50941
|
const vEnd = new Vector3$1();
|
|
50941
50942
|
const interSegment = new Vector3$1();
|
|
50942
50943
|
const step = this instanceof LineSegments ? 2 : 1;
|
|
50943
|
-
const
|
|
50944
|
+
const index2 = geometry.index;
|
|
50944
50945
|
const attributes = geometry.attributes;
|
|
50945
|
-
if (
|
|
50946
|
-
const indices =
|
|
50946
|
+
if (index2 !== null) {
|
|
50947
|
+
const indices = index2.array;
|
|
50947
50948
|
const positions = attributes.position.array;
|
|
50948
50949
|
const widths = attributes.width.array;
|
|
50949
50950
|
for (let i2 = 0, l = indices.length - 1; i2 < l; i2 += step) {
|
|
@@ -52719,14 +52720,14 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
52719
52720
|
this.passes.push(pass);
|
|
52720
52721
|
pass.setSize(this._width * this._pixelRatio, this._height * this._pixelRatio);
|
|
52721
52722
|
}
|
|
52722
|
-
insertPass(pass,
|
|
52723
|
-
this.passes.splice(
|
|
52723
|
+
insertPass(pass, index2) {
|
|
52724
|
+
this.passes.splice(index2, 0, pass);
|
|
52724
52725
|
pass.setSize(this._width * this._pixelRatio, this._height * this._pixelRatio);
|
|
52725
52726
|
}
|
|
52726
52727
|
removePass(pass) {
|
|
52727
|
-
const
|
|
52728
|
-
if (
|
|
52729
|
-
this.passes.splice(
|
|
52728
|
+
const index2 = this.passes.indexOf(pass);
|
|
52729
|
+
if (index2 !== -1) {
|
|
52730
|
+
this.passes.splice(index2, 1);
|
|
52730
52731
|
}
|
|
52731
52732
|
}
|
|
52732
52733
|
isLastEnabledPass(passIndex) {
|
|
@@ -56905,8 +56906,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
56905
56906
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
56906
56907
|
var max = Math.max;
|
|
56907
56908
|
var min$1 = Math.min;
|
|
56908
|
-
var toAbsoluteIndex$1 = function(
|
|
56909
|
-
var integer = toIntegerOrInfinity$1(
|
|
56909
|
+
var toAbsoluteIndex$1 = function(index2, length) {
|
|
56910
|
+
var integer = toIntegerOrInfinity$1(index2);
|
|
56910
56911
|
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
56911
56912
|
};
|
|
56912
56913
|
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
@@ -56925,14 +56926,14 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
56925
56926
|
return function($this, el, fromIndex) {
|
|
56926
56927
|
var O = toIndexedObject$2($this);
|
|
56927
56928
|
var length = lengthOfArrayLike$1(O);
|
|
56928
|
-
var
|
|
56929
|
+
var index2 = toAbsoluteIndex(fromIndex, length);
|
|
56929
56930
|
var value;
|
|
56930
|
-
if (IS_INCLUDES && el != el) while (length >
|
|
56931
|
-
value = O[
|
|
56931
|
+
if (IS_INCLUDES && el != el) while (length > index2) {
|
|
56932
|
+
value = O[index2++];
|
|
56932
56933
|
if (value != value) return true;
|
|
56933
56934
|
}
|
|
56934
|
-
else for (; length >
|
|
56935
|
-
if ((IS_INCLUDES ||
|
|
56935
|
+
else for (; length > index2; index2++) {
|
|
56936
|
+
if ((IS_INCLUDES || index2 in O) && O[index2] === el) return IS_INCLUDES || index2 || 0;
|
|
56936
56937
|
}
|
|
56937
56938
|
return !IS_INCLUDES && -1;
|
|
56938
56939
|
};
|
|
@@ -57178,15 +57179,15 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
57178
57179
|
var self2 = IndexedObject(O);
|
|
57179
57180
|
var boundFunction = bind(callbackfn, that);
|
|
57180
57181
|
var length = lengthOfArrayLike(self2);
|
|
57181
|
-
var
|
|
57182
|
+
var index2 = 0;
|
|
57182
57183
|
var create2 = specificCreate || arraySpeciesCreate;
|
|
57183
57184
|
var target = IS_MAP ? create2($this, length) : IS_FILTER || IS_FILTER_REJECT ? create2($this, 0) : void 0;
|
|
57184
57185
|
var value, result;
|
|
57185
|
-
for (; length >
|
|
57186
|
-
value = self2[
|
|
57187
|
-
result = boundFunction(value,
|
|
57186
|
+
for (; length > index2; index2++) if (NO_HOLES || index2 in self2) {
|
|
57187
|
+
value = self2[index2];
|
|
57188
|
+
result = boundFunction(value, index2, O);
|
|
57188
57189
|
if (TYPE) {
|
|
57189
|
-
if (IS_MAP) target[
|
|
57190
|
+
if (IS_MAP) target[index2] = result;
|
|
57190
57191
|
else if (result) switch (TYPE) {
|
|
57191
57192
|
case 3:
|
|
57192
57193
|
return true;
|
|
@@ -57195,7 +57196,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
57195
57196
|
return value;
|
|
57196
57197
|
// find
|
|
57197
57198
|
case 6:
|
|
57198
|
-
return
|
|
57199
|
+
return index2;
|
|
57199
57200
|
// findIndex
|
|
57200
57201
|
case 2:
|
|
57201
57202
|
push(target, value);
|
|
@@ -57255,9 +57256,9 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
57255
57256
|
var props = toIndexedObject(Properties);
|
|
57256
57257
|
var keys2 = objectKeys(Properties);
|
|
57257
57258
|
var length = keys2.length;
|
|
57258
|
-
var
|
|
57259
|
+
var index2 = 0;
|
|
57259
57260
|
var key;
|
|
57260
|
-
while (length >
|
|
57261
|
+
while (length > index2) definePropertyModule.f(O, key = keys2[index2++], props[key]);
|
|
57261
57262
|
return O;
|
|
57262
57263
|
};
|
|
57263
57264
|
var getBuiltIn = getBuiltIn$5;
|
|
@@ -57888,8 +57889,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
57888
57889
|
if (nodeList.hasOwnProperty) {
|
|
57889
57890
|
return Array.prototype.slice.call(nodeList);
|
|
57890
57891
|
}
|
|
57891
|
-
return new Array(length).fill().map(function(
|
|
57892
|
-
return nodeList[
|
|
57892
|
+
return new Array(length).fill().map(function(index2) {
|
|
57893
|
+
return nodeList[index2];
|
|
57893
57894
|
});
|
|
57894
57895
|
}
|
|
57895
57896
|
function generateUUID() {
|
|
@@ -62191,8 +62192,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
62191
62192
|
programmaticallyDraggingTarget: "\n <p>Drop target is {dropTarget}.</p>\n "
|
|
62192
62193
|
};
|
|
62193
62194
|
var resolveLiveDescriptor = function(descriptor, environment, dnd, tree, keyboardBindings) {
|
|
62194
|
-
var getItemTitle = function(
|
|
62195
|
-
return environment.getItemTitle(environment.items[
|
|
62195
|
+
var getItemTitle = function(index2) {
|
|
62196
|
+
return environment.getItemTitle(environment.items[index2]);
|
|
62196
62197
|
};
|
|
62197
62198
|
return descriptor.replace(/({[^\s}]+)}/g, function(variableNameWithBrackets) {
|
|
62198
62199
|
var _a2, _b2, _c;
|
|
@@ -63157,7 +63158,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
63157
63158
|
const children = [];
|
|
63158
63159
|
let disabledChildrenCount = 0;
|
|
63159
63160
|
let disabledChildIndexes = {};
|
|
63160
|
-
const childCollector = (child,
|
|
63161
|
+
const childCollector = (child, index2) => {
|
|
63161
63162
|
if (!child) {
|
|
63162
63163
|
return;
|
|
63163
63164
|
}
|
|
@@ -63166,7 +63167,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
63166
63167
|
} else if (!child.props.divider) {
|
|
63167
63168
|
if (child.props.disabled) {
|
|
63168
63169
|
++disabledChildrenCount;
|
|
63169
|
-
disabledChildIndexes[
|
|
63170
|
+
disabledChildIndexes[index2] = true;
|
|
63170
63171
|
}
|
|
63171
63172
|
children.push(child);
|
|
63172
63173
|
}
|
|
@@ -64413,9 +64414,9 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
64413
64414
|
}
|
|
64414
64415
|
},
|
|
64415
64416
|
onFocusItem: (item) => {
|
|
64416
|
-
const
|
|
64417
|
-
setFocusedItem(
|
|
64418
|
-
updateViewerFocus(props.viewer, props.treeData,
|
|
64417
|
+
const index2 = item.index;
|
|
64418
|
+
setFocusedItem(index2);
|
|
64419
|
+
updateViewerFocus(props.viewer, props.treeData, index2);
|
|
64419
64420
|
},
|
|
64420
64421
|
onExpandItem: (item) => {
|
|
64421
64422
|
setExpandedItems([...expandedItems, item.index]);
|
|
@@ -64433,23 +64434,23 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
64433
64434
|
}
|
|
64434
64435
|
);
|
|
64435
64436
|
}
|
|
64436
|
-
function toggleVisibility(viewer, isolation, tree,
|
|
64437
|
-
const objs = tree.getLeafs(
|
|
64437
|
+
function toggleVisibility(viewer, isolation, tree, index2) {
|
|
64438
|
+
const objs = tree.getLeafs(index2).map(
|
|
64438
64439
|
(n) => {
|
|
64439
64440
|
var _a2, _b2;
|
|
64440
64441
|
return (_b2 = viewer.vims[0]) == null ? void 0 : _b2.getObjectFromElement((_a2 = tree.nodes[n]) == null ? void 0 : _a2.data.index);
|
|
64441
64442
|
}
|
|
64442
64443
|
);
|
|
64443
|
-
const visibility = tree.nodes[
|
|
64444
|
+
const visibility = tree.nodes[index2].visible;
|
|
64444
64445
|
if (visibility !== "vim-visible") {
|
|
64445
64446
|
isolation.show(objs, "tree");
|
|
64446
64447
|
} else {
|
|
64447
64448
|
isolation.hide(objs, "tree");
|
|
64448
64449
|
}
|
|
64449
64450
|
}
|
|
64450
|
-
function updateViewerFocus(viewer, tree,
|
|
64451
|
+
function updateViewerFocus(viewer, tree, index2) {
|
|
64451
64452
|
var _a2;
|
|
64452
|
-
const node = tree.nodes[
|
|
64453
|
+
const node = tree.nodes[index2];
|
|
64453
64454
|
const obj = viewer.vims[0].getObjectFromElement((_a2 = node.data) == null ? void 0 : _a2.index);
|
|
64454
64455
|
viewer.selection.focus(obj);
|
|
64455
64456
|
}
|
|
@@ -64639,8 +64640,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
64639
64640
|
const max2 = Math.max(start, end);
|
|
64640
64641
|
const result = [];
|
|
64641
64642
|
for (const node of Object.values(this.nodes)) {
|
|
64642
|
-
const
|
|
64643
|
-
if (
|
|
64643
|
+
const index2 = node.index;
|
|
64644
|
+
if (index2 >= min2 && index2 <= max2) result.push(index2);
|
|
64644
64645
|
}
|
|
64645
64646
|
return result;
|
|
64646
64647
|
}
|
|
@@ -65050,9 +65051,9 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
65050
65051
|
key: `g.title-${i2}`
|
|
65051
65052
|
}));
|
|
65052
65053
|
}
|
|
65053
|
-
function parameterToEntry(element,
|
|
65054
|
+
function parameterToEntry(element, index2) {
|
|
65054
65055
|
return {
|
|
65055
|
-
key: `${element.name ?? ""}-${
|
|
65056
|
+
key: `${element.name ?? ""}-${index2}`,
|
|
65056
65057
|
label: element.name ?? "",
|
|
65057
65058
|
value: element.value ?? ""
|
|
65058
65059
|
};
|
|
@@ -65477,8 +65478,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
65477
65478
|
if (snapGap === void 0) {
|
|
65478
65479
|
snapGap = 0;
|
|
65479
65480
|
}
|
|
65480
|
-
var closestGapIndex = snapArray.reduce(function(prev, curr,
|
|
65481
|
-
return Math.abs(curr - n) < Math.abs(snapArray[prev] - n) ?
|
|
65481
|
+
var closestGapIndex = snapArray.reduce(function(prev, curr, index2) {
|
|
65482
|
+
return Math.abs(curr - n) < Math.abs(snapArray[prev] - n) ? index2 : prev;
|
|
65482
65483
|
}, 0);
|
|
65483
65484
|
var gap = Math.abs(snapArray[closestGapIndex] - n);
|
|
65484
65485
|
return snapGap === 0 || gap < snapGap ? snapArray[closestGapIndex] : n;
|
|
@@ -69510,7 +69511,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
69510
69511
|
const batches = batchArray(colors, this.batchSize);
|
|
69511
69512
|
const promises = batches.map(async (batch) => {
|
|
69512
69513
|
const id2 = await this.rpc.RPCCreateMaterialInstances(materialHandle, smoothness, batch);
|
|
69513
|
-
return Array.from({ length: batch.length }, (_,
|
|
69514
|
+
return Array.from({ length: batch.length }, (_, index2) => id2 + index2);
|
|
69514
69515
|
});
|
|
69515
69516
|
const handles = await Promise.all(promises);
|
|
69516
69517
|
const result = handles.flat();
|
|
@@ -71084,8 +71085,8 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
71084
71085
|
for (let i2 = 0; i2 < colors.length; i2++) {
|
|
71085
71086
|
const color = toCreate[i2];
|
|
71086
71087
|
const indices = hexToIndices.get(color.hex);
|
|
71087
|
-
for (const
|
|
71088
|
-
result[
|
|
71088
|
+
for (const index2 of indices) {
|
|
71089
|
+
result[index2] = colors[i2];
|
|
71089
71090
|
}
|
|
71090
71091
|
}
|
|
71091
71092
|
return result;
|
|
@@ -71470,8 +71471,8 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
71470
71471
|
* @param index - The index of the Vim instance.
|
|
71471
71472
|
* @returns The Vim instance or undefined if the index is out of bounds.
|
|
71472
71473
|
*/
|
|
71473
|
-
getAt(
|
|
71474
|
-
return this._vims[
|
|
71474
|
+
getAt(index2) {
|
|
71475
|
+
return this._vims[index2];
|
|
71475
71476
|
}
|
|
71476
71477
|
/**
|
|
71477
71478
|
* Gets all Vim instances.
|
|
@@ -71919,7 +71920,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
71919
71920
|
window.onbeforeunload = null;
|
|
71920
71921
|
}
|
|
71921
71922
|
}
|
|
71922
|
-
const
|
|
71923
|
+
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71923
71924
|
__proto__: null,
|
|
71924
71925
|
Box3,
|
|
71925
71926
|
ColorHandle,
|
|
@@ -72071,9 +72072,9 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
72071
72072
|
function useModal(canFollowLinks) {
|
|
72072
72073
|
const [modal, setModal] = React2.useState([]);
|
|
72073
72074
|
const refModal = React2.useRef(modal);
|
|
72074
|
-
const update = (value,
|
|
72075
|
+
const update = (value, index2) => {
|
|
72075
72076
|
refModal.current = [...refModal.current];
|
|
72076
|
-
refModal.current[
|
|
72077
|
+
refModal.current[index2] = value;
|
|
72077
72078
|
setModal(refModal.current);
|
|
72078
72079
|
};
|
|
72079
72080
|
return {
|
|
@@ -72191,10 +72192,10 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
72191
72192
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `vc-text-base vc-font-bold ${vcColorPrimary}`, children: title2 });
|
|
72192
72193
|
}
|
|
72193
72194
|
function dotList(elements) {
|
|
72194
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: `vc-space-y-1 vc-ml-5 ${vcColorPrimary} vc-mb-4`, children: elements.filter((v) => v).map((element,
|
|
72195
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: `vc-space-y-1 vc-ml-5 ${vcColorPrimary} vc-mb-4`, children: elements.filter((v) => v).map((element, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: "vc-list-disc vc-text-base vc-font-normal", children: element }, index2)) });
|
|
72195
72196
|
}
|
|
72196
72197
|
function numList(elements) {
|
|
72197
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: `vc-space-y-1 vc-ml-5 ${vcColorPrimary} vc-mb-4`, children: elements.filter((v) => v).map((element,
|
|
72198
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: `vc-space-y-1 vc-ml-5 ${vcColorPrimary} vc-mb-4`, children: elements.filter((v) => v).map((element, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: "vc-list-decimal vc-text-base vc-font-normal", children: element }, index2)) });
|
|
72198
72199
|
}
|
|
72199
72200
|
function bullet(label, value) {
|
|
72200
72201
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -72435,8 +72436,8 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
72435
72436
|
function ToRef(viewer, modal) {
|
|
72436
72437
|
function load(url) {
|
|
72437
72438
|
const request2 = viewer.loadVim(url);
|
|
72438
|
-
updateProgress(request2, modal);
|
|
72439
|
-
request2.getResult().then(
|
|
72439
|
+
void updateProgress(request2, modal);
|
|
72440
|
+
void request2.getResult().then(
|
|
72440
72441
|
(result) => {
|
|
72441
72442
|
if (result.isError) {
|
|
72442
72443
|
modal.message(getRequestErrorMessage(url, result.error));
|
|
@@ -72463,11 +72464,6 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
72463
72464
|
modal.loading({ message: "Loading File...", progress });
|
|
72464
72465
|
}
|
|
72465
72466
|
}
|
|
72466
|
-
const ultraComponent = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72467
|
-
__proto__: null,
|
|
72468
|
-
UltraComponent,
|
|
72469
|
-
createUltraComponent
|
|
72470
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
72471
72467
|
class ComponentLoader {
|
|
72472
72468
|
constructor(viewer, modal) {
|
|
72473
72469
|
__publicField(this, "_viewer");
|
|
@@ -72504,12 +72500,12 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
72504
72500
|
* Receives progress logs as input.
|
|
72505
72501
|
*/
|
|
72506
72502
|
async open(source, settings2, onProgress) {
|
|
72507
|
-
const
|
|
72508
|
-
for await (const progress of
|
|
72503
|
+
const request2 = this.request(source, settings2);
|
|
72504
|
+
for await (const progress of request2.getProgress()) {
|
|
72509
72505
|
onProgress == null ? void 0 : onProgress(progress);
|
|
72510
72506
|
this.onProgress(progress);
|
|
72511
72507
|
}
|
|
72512
|
-
const result = await
|
|
72508
|
+
const result = await request2.getResult();
|
|
72513
72509
|
if (result.isError()) {
|
|
72514
72510
|
console.log("Error loading vim", result.error);
|
|
72515
72511
|
this.onError({
|
|
@@ -72561,7 +72557,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
72561
72557
|
}
|
|
72562
72558
|
});
|
|
72563
72559
|
if (settings2.loadEmpty !== true) {
|
|
72564
|
-
vim.loadAll();
|
|
72560
|
+
void vim.loadAll();
|
|
72565
72561
|
}
|
|
72566
72562
|
}
|
|
72567
72563
|
}
|
|
@@ -72738,7 +72734,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
72738
72734
|
)
|
|
72739
72735
|
] });
|
|
72740
72736
|
}
|
|
72741
|
-
const
|
|
72737
|
+
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72742
72738
|
__proto__: null,
|
|
72743
72739
|
BimInfo: bimInfoData,
|
|
72744
72740
|
ContextMenu: contextMenu,
|
|
@@ -72753,9 +72749,14 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
72753
72749
|
defaultSettings,
|
|
72754
72750
|
getLocalSettings: getLocalComponentSettings
|
|
72755
72751
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72756
|
-
|
|
72757
|
-
|
|
72758
|
-
|
|
72752
|
+
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72753
|
+
__proto__: null,
|
|
72754
|
+
UltraComponent,
|
|
72755
|
+
createUltraComponent
|
|
72756
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
72757
|
+
exports.UltraReact = index;
|
|
72758
|
+
exports.UltraViewer = index$2;
|
|
72759
|
+
exports.WebglReact = index$1;
|
|
72759
72760
|
exports.WebglViewer = VIM;
|
|
72760
72761
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
72761
72762
|
return exports;
|