vim-web 0.3.25 → 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/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 -0
- 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/bimSearch.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/contextMenu.d.ts +1 -1
- 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/vimWebIndex.d.ts +0 -4
- package/dist/types/webgl-viewer/index.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/subsetRequest.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/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/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.mjs
CHANGED
|
@@ -204,9 +204,9 @@ class EventDispatcher {
|
|
|
204
204
|
const listeners = this._listeners;
|
|
205
205
|
const listenerArray = listeners[type];
|
|
206
206
|
if (listenerArray !== void 0) {
|
|
207
|
-
const
|
|
208
|
-
if (
|
|
209
|
-
listenerArray.splice(
|
|
207
|
+
const index2 = listenerArray.indexOf(listener2);
|
|
208
|
+
if (index2 !== -1) {
|
|
209
|
+
listenerArray.splice(index2, 1);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
}
|
|
@@ -433,8 +433,8 @@ let Vector2$1 = class Vector2 {
|
|
|
433
433
|
this.y = y;
|
|
434
434
|
return this;
|
|
435
435
|
}
|
|
436
|
-
setComponent(
|
|
437
|
-
switch (
|
|
436
|
+
setComponent(index2, value) {
|
|
437
|
+
switch (index2) {
|
|
438
438
|
case 0:
|
|
439
439
|
this.x = value;
|
|
440
440
|
break;
|
|
@@ -442,18 +442,18 @@ let Vector2$1 = class Vector2 {
|
|
|
442
442
|
this.y = value;
|
|
443
443
|
break;
|
|
444
444
|
default:
|
|
445
|
-
throw new Error("index is out of range: " +
|
|
445
|
+
throw new Error("index is out of range: " + index2);
|
|
446
446
|
}
|
|
447
447
|
return this;
|
|
448
448
|
}
|
|
449
|
-
getComponent(
|
|
450
|
-
switch (
|
|
449
|
+
getComponent(index2) {
|
|
450
|
+
switch (index2) {
|
|
451
451
|
case 0:
|
|
452
452
|
return this.x;
|
|
453
453
|
case 1:
|
|
454
454
|
return this.y;
|
|
455
455
|
default:
|
|
456
|
-
throw new Error("index is out of range: " +
|
|
456
|
+
throw new Error("index is out of range: " + index2);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
clone() {
|
|
@@ -631,9 +631,9 @@ let Vector2$1 = class Vector2 {
|
|
|
631
631
|
array[offset + 1] = this.y;
|
|
632
632
|
return array;
|
|
633
633
|
}
|
|
634
|
-
fromBufferAttribute(attribute,
|
|
635
|
-
this.x = attribute.getX(
|
|
636
|
-
this.y = attribute.getY(
|
|
634
|
+
fromBufferAttribute(attribute, index2) {
|
|
635
|
+
this.x = attribute.getX(index2);
|
|
636
|
+
this.y = attribute.getY(index2);
|
|
637
637
|
return this;
|
|
638
638
|
}
|
|
639
639
|
rotateAround(center, angle) {
|
|
@@ -1423,10 +1423,10 @@ class Color {
|
|
|
1423
1423
|
array[offset + 2] = this.b;
|
|
1424
1424
|
return array;
|
|
1425
1425
|
}
|
|
1426
|
-
fromBufferAttribute(attribute,
|
|
1427
|
-
this.r = attribute.getX(
|
|
1428
|
-
this.g = attribute.getY(
|
|
1429
|
-
this.b = attribute.getZ(
|
|
1426
|
+
fromBufferAttribute(attribute, index2) {
|
|
1427
|
+
this.r = attribute.getX(index2);
|
|
1428
|
+
this.g = attribute.getY(index2);
|
|
1429
|
+
this.b = attribute.getZ(index2);
|
|
1430
1430
|
if (attribute.normalized === true) {
|
|
1431
1431
|
this.r /= 255;
|
|
1432
1432
|
this.g /= 255;
|
|
@@ -1784,8 +1784,8 @@ class Vector4 {
|
|
|
1784
1784
|
this.w = w;
|
|
1785
1785
|
return this;
|
|
1786
1786
|
}
|
|
1787
|
-
setComponent(
|
|
1788
|
-
switch (
|
|
1787
|
+
setComponent(index2, value) {
|
|
1788
|
+
switch (index2) {
|
|
1789
1789
|
case 0:
|
|
1790
1790
|
this.x = value;
|
|
1791
1791
|
break;
|
|
@@ -1799,12 +1799,12 @@ class Vector4 {
|
|
|
1799
1799
|
this.w = value;
|
|
1800
1800
|
break;
|
|
1801
1801
|
default:
|
|
1802
|
-
throw new Error("index is out of range: " +
|
|
1802
|
+
throw new Error("index is out of range: " + index2);
|
|
1803
1803
|
}
|
|
1804
1804
|
return this;
|
|
1805
1805
|
}
|
|
1806
|
-
getComponent(
|
|
1807
|
-
switch (
|
|
1806
|
+
getComponent(index2) {
|
|
1807
|
+
switch (index2) {
|
|
1808
1808
|
case 0:
|
|
1809
1809
|
return this.x;
|
|
1810
1810
|
case 1:
|
|
@@ -1814,7 +1814,7 @@ class Vector4 {
|
|
|
1814
1814
|
case 3:
|
|
1815
1815
|
return this.w;
|
|
1816
1816
|
default:
|
|
1817
|
-
throw new Error("index is out of range: " +
|
|
1817
|
+
throw new Error("index is out of range: " + index2);
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
1820
|
clone() {
|
|
@@ -2089,11 +2089,11 @@ class Vector4 {
|
|
|
2089
2089
|
array[offset + 3] = this.w;
|
|
2090
2090
|
return array;
|
|
2091
2091
|
}
|
|
2092
|
-
fromBufferAttribute(attribute,
|
|
2093
|
-
this.x = attribute.getX(
|
|
2094
|
-
this.y = attribute.getY(
|
|
2095
|
-
this.z = attribute.getZ(
|
|
2096
|
-
this.w = attribute.getW(
|
|
2092
|
+
fromBufferAttribute(attribute, index2) {
|
|
2093
|
+
this.x = attribute.getX(index2);
|
|
2094
|
+
this.y = attribute.getY(index2);
|
|
2095
|
+
this.z = attribute.getZ(index2);
|
|
2096
|
+
this.w = attribute.getW(index2);
|
|
2097
2097
|
return this;
|
|
2098
2098
|
}
|
|
2099
2099
|
random() {
|
|
@@ -2628,11 +2628,11 @@ class Quaternion {
|
|
|
2628
2628
|
array[offset + 3] = this._w;
|
|
2629
2629
|
return array;
|
|
2630
2630
|
}
|
|
2631
|
-
fromBufferAttribute(attribute,
|
|
2632
|
-
this._x = attribute.getX(
|
|
2633
|
-
this._y = attribute.getY(
|
|
2634
|
-
this._z = attribute.getZ(
|
|
2635
|
-
this._w = attribute.getW(
|
|
2631
|
+
fromBufferAttribute(attribute, index2) {
|
|
2632
|
+
this._x = attribute.getX(index2);
|
|
2633
|
+
this._y = attribute.getY(index2);
|
|
2634
|
+
this._z = attribute.getZ(index2);
|
|
2635
|
+
this._w = attribute.getW(index2);
|
|
2636
2636
|
return this;
|
|
2637
2637
|
}
|
|
2638
2638
|
_onChange(callback) {
|
|
@@ -2680,8 +2680,8 @@ let Vector3$1 = class Vector3 {
|
|
|
2680
2680
|
this.z = z;
|
|
2681
2681
|
return this;
|
|
2682
2682
|
}
|
|
2683
|
-
setComponent(
|
|
2684
|
-
switch (
|
|
2683
|
+
setComponent(index2, value) {
|
|
2684
|
+
switch (index2) {
|
|
2685
2685
|
case 0:
|
|
2686
2686
|
this.x = value;
|
|
2687
2687
|
break;
|
|
@@ -2692,12 +2692,12 @@ let Vector3$1 = class Vector3 {
|
|
|
2692
2692
|
this.z = value;
|
|
2693
2693
|
break;
|
|
2694
2694
|
default:
|
|
2695
|
-
throw new Error("index is out of range: " +
|
|
2695
|
+
throw new Error("index is out of range: " + index2);
|
|
2696
2696
|
}
|
|
2697
2697
|
return this;
|
|
2698
2698
|
}
|
|
2699
|
-
getComponent(
|
|
2700
|
-
switch (
|
|
2699
|
+
getComponent(index2) {
|
|
2700
|
+
switch (index2) {
|
|
2701
2701
|
case 0:
|
|
2702
2702
|
return this.x;
|
|
2703
2703
|
case 1:
|
|
@@ -2705,7 +2705,7 @@ let Vector3$1 = class Vector3 {
|
|
|
2705
2705
|
case 2:
|
|
2706
2706
|
return this.z;
|
|
2707
2707
|
default:
|
|
2708
|
-
throw new Error("index is out of range: " +
|
|
2708
|
+
throw new Error("index is out of range: " + index2);
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
2711
|
clone() {
|
|
@@ -3002,11 +3002,11 @@ let Vector3$1 = class Vector3 {
|
|
|
3002
3002
|
this.z = sz;
|
|
3003
3003
|
return this;
|
|
3004
3004
|
}
|
|
3005
|
-
setFromMatrixColumn(m,
|
|
3006
|
-
return this.fromArray(m.elements,
|
|
3005
|
+
setFromMatrixColumn(m, index2) {
|
|
3006
|
+
return this.fromArray(m.elements, index2 * 4);
|
|
3007
3007
|
}
|
|
3008
|
-
setFromMatrix3Column(m,
|
|
3009
|
-
return this.fromArray(m.elements,
|
|
3008
|
+
setFromMatrix3Column(m, index2) {
|
|
3009
|
+
return this.fromArray(m.elements, index2 * 3);
|
|
3010
3010
|
}
|
|
3011
3011
|
setFromEuler(e) {
|
|
3012
3012
|
this.x = e._x;
|
|
@@ -3029,10 +3029,10 @@ let Vector3$1 = class Vector3 {
|
|
|
3029
3029
|
array[offset + 2] = this.z;
|
|
3030
3030
|
return array;
|
|
3031
3031
|
}
|
|
3032
|
-
fromBufferAttribute(attribute,
|
|
3033
|
-
this.x = attribute.getX(
|
|
3034
|
-
this.y = attribute.getY(
|
|
3035
|
-
this.z = attribute.getZ(
|
|
3032
|
+
fromBufferAttribute(attribute, index2) {
|
|
3033
|
+
this.x = attribute.getX(index2);
|
|
3034
|
+
this.y = attribute.getY(index2);
|
|
3035
|
+
this.z = attribute.getZ(index2);
|
|
3036
3036
|
return this;
|
|
3037
3037
|
}
|
|
3038
3038
|
random() {
|
|
@@ -4852,10 +4852,10 @@ let Object3D$1 = class Object3D extends EventDispatcher {
|
|
|
4852
4852
|
}
|
|
4853
4853
|
return this;
|
|
4854
4854
|
}
|
|
4855
|
-
const
|
|
4856
|
-
if (
|
|
4855
|
+
const index2 = this.children.indexOf(object);
|
|
4856
|
+
if (index2 !== -1) {
|
|
4857
4857
|
object.parent = null;
|
|
4858
|
-
this.children.splice(
|
|
4858
|
+
this.children.splice(index2, 1);
|
|
4859
4859
|
object.dispatchEvent(_removedEvent);
|
|
4860
4860
|
}
|
|
4861
4861
|
return this;
|
|
@@ -5826,53 +5826,53 @@ class BufferAttribute {
|
|
|
5826
5826
|
this.array.set(value, offset);
|
|
5827
5827
|
return this;
|
|
5828
5828
|
}
|
|
5829
|
-
getX(
|
|
5830
|
-
return this.array[
|
|
5829
|
+
getX(index2) {
|
|
5830
|
+
return this.array[index2 * this.itemSize];
|
|
5831
5831
|
}
|
|
5832
|
-
setX(
|
|
5833
|
-
this.array[
|
|
5832
|
+
setX(index2, x) {
|
|
5833
|
+
this.array[index2 * this.itemSize] = x;
|
|
5834
5834
|
return this;
|
|
5835
5835
|
}
|
|
5836
|
-
getY(
|
|
5837
|
-
return this.array[
|
|
5836
|
+
getY(index2) {
|
|
5837
|
+
return this.array[index2 * this.itemSize + 1];
|
|
5838
5838
|
}
|
|
5839
|
-
setY(
|
|
5840
|
-
this.array[
|
|
5839
|
+
setY(index2, y) {
|
|
5840
|
+
this.array[index2 * this.itemSize + 1] = y;
|
|
5841
5841
|
return this;
|
|
5842
5842
|
}
|
|
5843
|
-
getZ(
|
|
5844
|
-
return this.array[
|
|
5843
|
+
getZ(index2) {
|
|
5844
|
+
return this.array[index2 * this.itemSize + 2];
|
|
5845
5845
|
}
|
|
5846
|
-
setZ(
|
|
5847
|
-
this.array[
|
|
5846
|
+
setZ(index2, z) {
|
|
5847
|
+
this.array[index2 * this.itemSize + 2] = z;
|
|
5848
5848
|
return this;
|
|
5849
5849
|
}
|
|
5850
|
-
getW(
|
|
5851
|
-
return this.array[
|
|
5850
|
+
getW(index2) {
|
|
5851
|
+
return this.array[index2 * this.itemSize + 3];
|
|
5852
5852
|
}
|
|
5853
|
-
setW(
|
|
5854
|
-
this.array[
|
|
5853
|
+
setW(index2, w) {
|
|
5854
|
+
this.array[index2 * this.itemSize + 3] = w;
|
|
5855
5855
|
return this;
|
|
5856
5856
|
}
|
|
5857
|
-
setXY(
|
|
5858
|
-
|
|
5859
|
-
this.array[
|
|
5860
|
-
this.array[
|
|
5857
|
+
setXY(index2, x, y) {
|
|
5858
|
+
index2 *= this.itemSize;
|
|
5859
|
+
this.array[index2 + 0] = x;
|
|
5860
|
+
this.array[index2 + 1] = y;
|
|
5861
5861
|
return this;
|
|
5862
5862
|
}
|
|
5863
|
-
setXYZ(
|
|
5864
|
-
|
|
5865
|
-
this.array[
|
|
5866
|
-
this.array[
|
|
5867
|
-
this.array[
|
|
5863
|
+
setXYZ(index2, x, y, z) {
|
|
5864
|
+
index2 *= this.itemSize;
|
|
5865
|
+
this.array[index2 + 0] = x;
|
|
5866
|
+
this.array[index2 + 1] = y;
|
|
5867
|
+
this.array[index2 + 2] = z;
|
|
5868
5868
|
return this;
|
|
5869
5869
|
}
|
|
5870
|
-
setXYZW(
|
|
5871
|
-
|
|
5872
|
-
this.array[
|
|
5873
|
-
this.array[
|
|
5874
|
-
this.array[
|
|
5875
|
-
this.array[
|
|
5870
|
+
setXYZW(index2, x, y, z, w) {
|
|
5871
|
+
index2 *= this.itemSize;
|
|
5872
|
+
this.array[index2 + 0] = x;
|
|
5873
|
+
this.array[index2 + 1] = y;
|
|
5874
|
+
this.array[index2 + 2] = z;
|
|
5875
|
+
this.array[index2 + 3] = w;
|
|
5876
5876
|
return this;
|
|
5877
5877
|
}
|
|
5878
5878
|
onUpload(callback) {
|
|
@@ -5974,11 +5974,11 @@ class BufferGeometry extends EventDispatcher {
|
|
|
5974
5974
|
getIndex() {
|
|
5975
5975
|
return this.index;
|
|
5976
5976
|
}
|
|
5977
|
-
setIndex(
|
|
5978
|
-
if (Array.isArray(
|
|
5979
|
-
this.index = new (arrayNeedsUint32(
|
|
5977
|
+
setIndex(index2) {
|
|
5978
|
+
if (Array.isArray(index2)) {
|
|
5979
|
+
this.index = new (arrayNeedsUint32(index2) ? Uint32BufferAttribute : Uint16BufferAttribute)(index2, 1);
|
|
5980
5980
|
} else {
|
|
5981
|
-
this.index =
|
|
5981
|
+
this.index = index2;
|
|
5982
5982
|
}
|
|
5983
5983
|
return this;
|
|
5984
5984
|
}
|
|
@@ -6180,13 +6180,13 @@ class BufferGeometry extends EventDispatcher {
|
|
|
6180
6180
|
}
|
|
6181
6181
|
}
|
|
6182
6182
|
computeTangents() {
|
|
6183
|
-
const
|
|
6183
|
+
const index2 = this.index;
|
|
6184
6184
|
const attributes = this.attributes;
|
|
6185
|
-
if (
|
|
6185
|
+
if (index2 === null || attributes.position === void 0 || attributes.normal === void 0 || attributes.uv === void 0) {
|
|
6186
6186
|
console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");
|
|
6187
6187
|
return;
|
|
6188
6188
|
}
|
|
6189
|
-
const indices =
|
|
6189
|
+
const indices = index2.array;
|
|
6190
6190
|
const positions = attributes.position.array;
|
|
6191
6191
|
const normals = attributes.normal.array;
|
|
6192
6192
|
const uvs = attributes.uv.array;
|
|
@@ -6270,7 +6270,7 @@ class BufferGeometry extends EventDispatcher {
|
|
|
6270
6270
|
}
|
|
6271
6271
|
}
|
|
6272
6272
|
computeVertexNormals() {
|
|
6273
|
-
const
|
|
6273
|
+
const index2 = this.index;
|
|
6274
6274
|
const positionAttribute = this.getAttribute("position");
|
|
6275
6275
|
if (positionAttribute !== void 0) {
|
|
6276
6276
|
let normalAttribute = this.getAttribute("normal");
|
|
@@ -6285,11 +6285,11 @@ class BufferGeometry extends EventDispatcher {
|
|
|
6285
6285
|
const pA = new Vector3$1(), pB = new Vector3$1(), pC = new Vector3$1();
|
|
6286
6286
|
const nA = new Vector3$1(), nB = new Vector3$1(), nC = new Vector3$1();
|
|
6287
6287
|
const cb = new Vector3$1(), ab = new Vector3$1();
|
|
6288
|
-
if (
|
|
6289
|
-
for (let i = 0, il =
|
|
6290
|
-
const vA =
|
|
6291
|
-
const vB =
|
|
6292
|
-
const vC =
|
|
6288
|
+
if (index2) {
|
|
6289
|
+
for (let i = 0, il = index2.count; i < il; i += 3) {
|
|
6290
|
+
const vA = index2.getX(i + 0);
|
|
6291
|
+
const vB = index2.getX(i + 1);
|
|
6292
|
+
const vC = index2.getX(i + 2);
|
|
6293
6293
|
pA.fromBufferAttribute(positionAttribute, vA);
|
|
6294
6294
|
pB.fromBufferAttribute(positionAttribute, vB);
|
|
6295
6295
|
pC.fromBufferAttribute(positionAttribute, vC);
|
|
@@ -6363,15 +6363,15 @@ class BufferGeometry extends EventDispatcher {
|
|
|
6363
6363
|
const itemSize = attribute.itemSize;
|
|
6364
6364
|
const normalized = attribute.normalized;
|
|
6365
6365
|
const array2 = new array.constructor(indices2.length * itemSize);
|
|
6366
|
-
let
|
|
6366
|
+
let index2 = 0, index22 = 0;
|
|
6367
6367
|
for (let i = 0, l = indices2.length; i < l; i++) {
|
|
6368
6368
|
if (attribute.isInterleavedBufferAttribute) {
|
|
6369
|
-
|
|
6369
|
+
index2 = indices2[i] * attribute.data.stride + attribute.offset;
|
|
6370
6370
|
} else {
|
|
6371
|
-
|
|
6371
|
+
index2 = indices2[i] * itemSize;
|
|
6372
6372
|
}
|
|
6373
6373
|
for (let j = 0; j < itemSize; j++) {
|
|
6374
|
-
array2[
|
|
6374
|
+
array2[index22++] = array[index2++];
|
|
6375
6375
|
}
|
|
6376
6376
|
}
|
|
6377
6377
|
return new BufferAttribute(array2, itemSize, normalized);
|
|
@@ -6427,11 +6427,11 @@ class BufferGeometry extends EventDispatcher {
|
|
|
6427
6427
|
return data2;
|
|
6428
6428
|
}
|
|
6429
6429
|
data2.data = { attributes: {} };
|
|
6430
|
-
const
|
|
6431
|
-
if (
|
|
6430
|
+
const index2 = this.index;
|
|
6431
|
+
if (index2 !== null) {
|
|
6432
6432
|
data2.data.index = {
|
|
6433
|
-
type:
|
|
6434
|
-
array: Array.prototype.slice.call(
|
|
6433
|
+
type: index2.array.constructor.name,
|
|
6434
|
+
array: Array.prototype.slice.call(index2.array)
|
|
6435
6435
|
};
|
|
6436
6436
|
}
|
|
6437
6437
|
const attributes = this.attributes;
|
|
@@ -6482,9 +6482,9 @@ class BufferGeometry extends EventDispatcher {
|
|
|
6482
6482
|
this.boundingSphere = null;
|
|
6483
6483
|
const data2 = {};
|
|
6484
6484
|
this.name = source.name;
|
|
6485
|
-
const
|
|
6486
|
-
if (
|
|
6487
|
-
this.setIndex(
|
|
6485
|
+
const index2 = source.index;
|
|
6486
|
+
if (index2 !== null) {
|
|
6487
|
+
this.setIndex(index2.clone(data2));
|
|
6488
6488
|
}
|
|
6489
6489
|
const attributes = source.attributes;
|
|
6490
6490
|
for (const name in attributes) {
|
|
@@ -6594,7 +6594,7 @@ class Mesh extends Object3D$1 {
|
|
|
6594
6594
|
if (_ray$2.intersectsBox(geometry.boundingBox) === false) return;
|
|
6595
6595
|
}
|
|
6596
6596
|
let intersection;
|
|
6597
|
-
const
|
|
6597
|
+
const index2 = geometry.index;
|
|
6598
6598
|
const position = geometry.attributes.position;
|
|
6599
6599
|
const morphPosition = geometry.morphAttributes.position;
|
|
6600
6600
|
const morphTargetsRelative = geometry.morphTargetsRelative;
|
|
@@ -6602,17 +6602,17 @@ class Mesh extends Object3D$1 {
|
|
|
6602
6602
|
const uv2 = geometry.attributes.uv2;
|
|
6603
6603
|
const groups = geometry.groups;
|
|
6604
6604
|
const drawRange = geometry.drawRange;
|
|
6605
|
-
if (
|
|
6605
|
+
if (index2 !== null) {
|
|
6606
6606
|
if (Array.isArray(material)) {
|
|
6607
6607
|
for (let i = 0, il = groups.length; i < il; i++) {
|
|
6608
6608
|
const group = groups[i];
|
|
6609
6609
|
const groupMaterial = material[group.materialIndex];
|
|
6610
6610
|
const start = Math.max(group.start, drawRange.start);
|
|
6611
|
-
const end = Math.min(
|
|
6611
|
+
const end = Math.min(index2.count, Math.min(group.start + group.count, drawRange.start + drawRange.count));
|
|
6612
6612
|
for (let j = start, jl = end; j < jl; j += 3) {
|
|
6613
|
-
const a =
|
|
6614
|
-
const b =
|
|
6615
|
-
const c =
|
|
6613
|
+
const a = index2.getX(j);
|
|
6614
|
+
const b = index2.getX(j + 1);
|
|
6615
|
+
const c = index2.getX(j + 2);
|
|
6616
6616
|
intersection = checkBufferGeometryIntersection(this, groupMaterial, raycaster, _ray$2, position, morphPosition, morphTargetsRelative, uv, uv2, a, b, c);
|
|
6617
6617
|
if (intersection) {
|
|
6618
6618
|
intersection.faceIndex = Math.floor(j / 3);
|
|
@@ -6623,11 +6623,11 @@ class Mesh extends Object3D$1 {
|
|
|
6623
6623
|
}
|
|
6624
6624
|
} else {
|
|
6625
6625
|
const start = Math.max(0, drawRange.start);
|
|
6626
|
-
const end = Math.min(
|
|
6626
|
+
const end = Math.min(index2.count, drawRange.start + drawRange.count);
|
|
6627
6627
|
for (let i = start, il = end; i < il; i += 3) {
|
|
6628
|
-
const a =
|
|
6629
|
-
const b =
|
|
6630
|
-
const c =
|
|
6628
|
+
const a = index2.getX(i);
|
|
6629
|
+
const b = index2.getX(i + 1);
|
|
6630
|
+
const c = index2.getX(i + 2);
|
|
6631
6631
|
intersection = checkBufferGeometryIntersection(this, material, raycaster, _ray$2, position, morphPosition, morphTargetsRelative, uv, uv2, a, b, c);
|
|
6632
6632
|
if (intersection) {
|
|
6633
6633
|
intersection.faceIndex = Math.floor(i / 3);
|
|
@@ -8534,7 +8534,7 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
|
|
|
8534
8534
|
const defaultState = createBindingState(null);
|
|
8535
8535
|
let currentState = defaultState;
|
|
8536
8536
|
let forceUpdate = false;
|
|
8537
|
-
function setup(object, material, program, geometry,
|
|
8537
|
+
function setup(object, material, program, geometry, index2) {
|
|
8538
8538
|
let updateBuffers = false;
|
|
8539
8539
|
if (vaoAvailable) {
|
|
8540
8540
|
const state = getBindingState(geometry, program, material);
|
|
@@ -8542,8 +8542,8 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
|
|
|
8542
8542
|
currentState = state;
|
|
8543
8543
|
bindVertexArrayObject(currentState.object);
|
|
8544
8544
|
}
|
|
8545
|
-
updateBuffers = needsUpdate(object, geometry, program,
|
|
8546
|
-
if (updateBuffers) saveCache(object, geometry, program,
|
|
8545
|
+
updateBuffers = needsUpdate(object, geometry, program, index2);
|
|
8546
|
+
if (updateBuffers) saveCache(object, geometry, program, index2);
|
|
8547
8547
|
} else {
|
|
8548
8548
|
const wireframe = material.wireframe === true;
|
|
8549
8549
|
if (currentState.geometry !== geometry.id || currentState.program !== program.id || currentState.wireframe !== wireframe) {
|
|
@@ -8553,14 +8553,14 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
|
|
|
8553
8553
|
updateBuffers = true;
|
|
8554
8554
|
}
|
|
8555
8555
|
}
|
|
8556
|
-
if (
|
|
8557
|
-
attributes.update(
|
|
8556
|
+
if (index2 !== null) {
|
|
8557
|
+
attributes.update(index2, 34963);
|
|
8558
8558
|
}
|
|
8559
8559
|
if (updateBuffers || forceUpdate) {
|
|
8560
8560
|
forceUpdate = false;
|
|
8561
8561
|
setupVertexAttributes(object, material, program, geometry);
|
|
8562
|
-
if (
|
|
8563
|
-
gl.bindBuffer(34963, attributes.get(
|
|
8562
|
+
if (index2 !== null) {
|
|
8563
|
+
gl.bindBuffer(34963, attributes.get(index2).buffer);
|
|
8564
8564
|
}
|
|
8565
8565
|
}
|
|
8566
8566
|
}
|
|
@@ -8617,7 +8617,7 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
|
|
|
8617
8617
|
index: null
|
|
8618
8618
|
};
|
|
8619
8619
|
}
|
|
8620
|
-
function needsUpdate(object, geometry, program,
|
|
8620
|
+
function needsUpdate(object, geometry, program, index2) {
|
|
8621
8621
|
const cachedAttributes = currentState.attributes;
|
|
8622
8622
|
const geometryAttributes = geometry.attributes;
|
|
8623
8623
|
let attributesNum = 0;
|
|
@@ -8638,10 +8638,10 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
|
|
|
8638
8638
|
}
|
|
8639
8639
|
}
|
|
8640
8640
|
if (currentState.attributesNum !== attributesNum) return true;
|
|
8641
|
-
if (currentState.index !==
|
|
8641
|
+
if (currentState.index !== index2) return true;
|
|
8642
8642
|
return false;
|
|
8643
8643
|
}
|
|
8644
|
-
function saveCache(object, geometry, program,
|
|
8644
|
+
function saveCache(object, geometry, program, index2) {
|
|
8645
8645
|
const cache = {};
|
|
8646
8646
|
const attributes2 = geometry.attributes;
|
|
8647
8647
|
let attributesNum = 0;
|
|
@@ -8665,7 +8665,7 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
|
|
|
8665
8665
|
}
|
|
8666
8666
|
currentState.attributes = cache;
|
|
8667
8667
|
currentState.attributesNum = attributesNum;
|
|
8668
|
-
currentState.index =
|
|
8668
|
+
currentState.index = index2;
|
|
8669
8669
|
}
|
|
8670
8670
|
function initAttributes() {
|
|
8671
8671
|
const newAttributes = currentState.newAttributes;
|
|
@@ -8701,11 +8701,11 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
|
|
|
8701
8701
|
}
|
|
8702
8702
|
}
|
|
8703
8703
|
}
|
|
8704
|
-
function vertexAttribPointer(
|
|
8704
|
+
function vertexAttribPointer(index2, size, type, normalized, stride, offset) {
|
|
8705
8705
|
if (capabilities.isWebGL2 === true && (type === 5124 || type === 5125)) {
|
|
8706
|
-
gl.vertexAttribIPointer(
|
|
8706
|
+
gl.vertexAttribIPointer(index2, size, type, stride, offset);
|
|
8707
8707
|
} else {
|
|
8708
|
-
gl.vertexAttribPointer(
|
|
8708
|
+
gl.vertexAttribPointer(index2, size, type, normalized, stride, offset);
|
|
8709
8709
|
}
|
|
8710
8710
|
}
|
|
8711
8711
|
function setupVertexAttributes(object, material, program, geometry) {
|
|
@@ -10254,14 +10254,14 @@ function WebGLMorphtargets(gl, capabilities, textures) {
|
|
|
10254
10254
|
let morphInfluencesSum = 0;
|
|
10255
10255
|
for (let i = 0; i < 8; i++) {
|
|
10256
10256
|
const influence = workInfluences[i];
|
|
10257
|
-
const
|
|
10257
|
+
const index2 = influence[0];
|
|
10258
10258
|
const value = influence[1];
|
|
10259
|
-
if (
|
|
10260
|
-
if (morphTargets && geometry.getAttribute("morphTarget" + i) !== morphTargets[
|
|
10261
|
-
geometry.setAttribute("morphTarget" + i, morphTargets[
|
|
10259
|
+
if (index2 !== Number.MAX_SAFE_INTEGER && value) {
|
|
10260
|
+
if (morphTargets && geometry.getAttribute("morphTarget" + i) !== morphTargets[index2]) {
|
|
10261
|
+
geometry.setAttribute("morphTarget" + i, morphTargets[index2]);
|
|
10262
10262
|
}
|
|
10263
|
-
if (morphNormals && geometry.getAttribute("morphNormal" + i) !== morphNormals[
|
|
10264
|
-
geometry.setAttribute("morphNormal" + i, morphNormals[
|
|
10263
|
+
if (morphNormals && geometry.getAttribute("morphNormal" + i) !== morphNormals[index2]) {
|
|
10264
|
+
geometry.setAttribute("morphNormal" + i, morphNormals[index2]);
|
|
10265
10265
|
}
|
|
10266
10266
|
morphInfluences[i] = value;
|
|
10267
10267
|
morphInfluencesSum += value;
|
|
@@ -14761,27 +14761,27 @@ class WebXRManager extends EventDispatcher {
|
|
|
14761
14761
|
this.cameraAutoUpdate = true;
|
|
14762
14762
|
this.enabled = false;
|
|
14763
14763
|
this.isPresenting = false;
|
|
14764
|
-
this.getController = function(
|
|
14765
|
-
let controller = controllers[
|
|
14764
|
+
this.getController = function(index2) {
|
|
14765
|
+
let controller = controllers[index2];
|
|
14766
14766
|
if (controller === void 0) {
|
|
14767
14767
|
controller = new WebXRController();
|
|
14768
|
-
controllers[
|
|
14768
|
+
controllers[index2] = controller;
|
|
14769
14769
|
}
|
|
14770
14770
|
return controller.getTargetRaySpace();
|
|
14771
14771
|
};
|
|
14772
|
-
this.getControllerGrip = function(
|
|
14773
|
-
let controller = controllers[
|
|
14772
|
+
this.getControllerGrip = function(index2) {
|
|
14773
|
+
let controller = controllers[index2];
|
|
14774
14774
|
if (controller === void 0) {
|
|
14775
14775
|
controller = new WebXRController();
|
|
14776
|
-
controllers[
|
|
14776
|
+
controllers[index2] = controller;
|
|
14777
14777
|
}
|
|
14778
14778
|
return controller.getGripSpace();
|
|
14779
14779
|
};
|
|
14780
|
-
this.getHand = function(
|
|
14781
|
-
let controller = controllers[
|
|
14780
|
+
this.getHand = 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.getHandSpace();
|
|
14787
14787
|
};
|
|
@@ -14931,10 +14931,10 @@ class WebXRManager extends EventDispatcher {
|
|
|
14931
14931
|
function onInputSourcesChange(event) {
|
|
14932
14932
|
for (let i = 0; i < event.removed.length; i++) {
|
|
14933
14933
|
const inputSource = event.removed[i];
|
|
14934
|
-
const
|
|
14935
|
-
if (
|
|
14936
|
-
controllerInputSources[
|
|
14937
|
-
controllers[
|
|
14934
|
+
const index2 = controllerInputSources.indexOf(inputSource);
|
|
14935
|
+
if (index2 >= 0) {
|
|
14936
|
+
controllerInputSources[index2] = null;
|
|
14937
|
+
controllers[index2].dispatchEvent({ type: "disconnected", data: inputSource });
|
|
14938
14938
|
}
|
|
14939
14939
|
}
|
|
14940
14940
|
for (let i = 0; i < event.added.length; i++) {
|
|
@@ -15544,23 +15544,23 @@ function WebGLUniformsGroups(gl, info, capabilities, state) {
|
|
|
15544
15544
|
}
|
|
15545
15545
|
gl.bindBuffer(35345, null);
|
|
15546
15546
|
}
|
|
15547
|
-
function hasUniformChanged(uniform,
|
|
15547
|
+
function hasUniformChanged(uniform, index2, cache) {
|
|
15548
15548
|
const value = uniform.value;
|
|
15549
|
-
if (cache[
|
|
15549
|
+
if (cache[index2] === void 0) {
|
|
15550
15550
|
if (typeof value === "number") {
|
|
15551
|
-
cache[
|
|
15551
|
+
cache[index2] = value;
|
|
15552
15552
|
} else {
|
|
15553
|
-
cache[
|
|
15553
|
+
cache[index2] = value.clone();
|
|
15554
15554
|
}
|
|
15555
15555
|
return true;
|
|
15556
15556
|
} else {
|
|
15557
15557
|
if (typeof value === "number") {
|
|
15558
|
-
if (cache[
|
|
15559
|
-
cache[
|
|
15558
|
+
if (cache[index2] !== value) {
|
|
15559
|
+
cache[index2] = value;
|
|
15560
15560
|
return true;
|
|
15561
15561
|
}
|
|
15562
15562
|
} else {
|
|
15563
|
-
const cachedObject = cache[
|
|
15563
|
+
const cachedObject = cache[index2];
|
|
15564
15564
|
if (cachedObject.equals(value) === false) {
|
|
15565
15565
|
cachedObject.copy(value);
|
|
15566
15566
|
return true;
|
|
@@ -15631,8 +15631,8 @@ function WebGLUniformsGroups(gl, info, capabilities, state) {
|
|
|
15631
15631
|
function onUniformsGroupsDispose(event) {
|
|
15632
15632
|
const uniformsGroup = event.target;
|
|
15633
15633
|
uniformsGroup.removeEventListener("dispose", onUniformsGroupsDispose);
|
|
15634
|
-
const
|
|
15635
|
-
allocatedBindingPoints.splice(
|
|
15634
|
+
const index2 = allocatedBindingPoints.indexOf(uniformsGroup.__bindingPointIndex);
|
|
15635
|
+
allocatedBindingPoints.splice(index2, 1);
|
|
15636
15636
|
gl.deleteBuffer(buffers[uniformsGroup.id]);
|
|
15637
15637
|
delete buffers[uniformsGroup.id];
|
|
15638
15638
|
delete updateList[uniformsGroup.id];
|
|
@@ -16005,27 +16005,27 @@ function WebGLRenderer$1(parameters = {}) {
|
|
|
16005
16005
|
const frontFaceCW = object.isMesh && object.matrixWorld.determinant() < 0;
|
|
16006
16006
|
const program = setProgram(camera2, scene, geometry, material, object);
|
|
16007
16007
|
state.setMaterial(material, frontFaceCW);
|
|
16008
|
-
let
|
|
16008
|
+
let index2 = geometry.index;
|
|
16009
16009
|
const position = geometry.attributes.position;
|
|
16010
|
-
if (
|
|
16010
|
+
if (index2 === null) {
|
|
16011
16011
|
if (position === void 0 || position.count === 0) return;
|
|
16012
|
-
} else if (
|
|
16012
|
+
} else if (index2.count === 0) {
|
|
16013
16013
|
return;
|
|
16014
16014
|
}
|
|
16015
16015
|
let rangeFactor = 1;
|
|
16016
16016
|
if (material.wireframe === true) {
|
|
16017
|
-
|
|
16017
|
+
index2 = geometries.getWireframeAttribute(geometry);
|
|
16018
16018
|
rangeFactor = 2;
|
|
16019
16019
|
}
|
|
16020
|
-
bindingStates.setup(object, material, program, geometry,
|
|
16020
|
+
bindingStates.setup(object, material, program, geometry, index2);
|
|
16021
16021
|
let attribute;
|
|
16022
16022
|
let renderer = bufferRenderer;
|
|
16023
|
-
if (
|
|
16024
|
-
attribute = attributes.get(
|
|
16023
|
+
if (index2 !== null) {
|
|
16024
|
+
attribute = attributes.get(index2);
|
|
16025
16025
|
renderer = indexedBufferRenderer;
|
|
16026
16026
|
renderer.setIndex(attribute);
|
|
16027
16027
|
}
|
|
16028
|
-
const dataCount =
|
|
16028
|
+
const dataCount = index2 !== null ? index2.count : position.count;
|
|
16029
16029
|
const rangeStart = geometry.drawRange.start * rangeFactor;
|
|
16030
16030
|
const rangeCount = geometry.drawRange.count * rangeFactor;
|
|
16031
16031
|
const groupStart = group !== null ? group.start * rangeFactor : 0;
|
|
@@ -16987,53 +16987,53 @@ class InterleavedBufferAttribute {
|
|
|
16987
16987
|
}
|
|
16988
16988
|
return this;
|
|
16989
16989
|
}
|
|
16990
|
-
setX(
|
|
16991
|
-
this.data.array[
|
|
16990
|
+
setX(index2, x) {
|
|
16991
|
+
this.data.array[index2 * this.data.stride + this.offset] = x;
|
|
16992
16992
|
return this;
|
|
16993
16993
|
}
|
|
16994
|
-
setY(
|
|
16995
|
-
this.data.array[
|
|
16994
|
+
setY(index2, y) {
|
|
16995
|
+
this.data.array[index2 * this.data.stride + this.offset + 1] = y;
|
|
16996
16996
|
return this;
|
|
16997
16997
|
}
|
|
16998
|
-
setZ(
|
|
16999
|
-
this.data.array[
|
|
16998
|
+
setZ(index2, z) {
|
|
16999
|
+
this.data.array[index2 * this.data.stride + this.offset + 2] = z;
|
|
17000
17000
|
return this;
|
|
17001
17001
|
}
|
|
17002
|
-
setW(
|
|
17003
|
-
this.data.array[
|
|
17002
|
+
setW(index2, w) {
|
|
17003
|
+
this.data.array[index2 * this.data.stride + this.offset + 3] = w;
|
|
17004
17004
|
return this;
|
|
17005
17005
|
}
|
|
17006
|
-
getX(
|
|
17007
|
-
return this.data.array[
|
|
17006
|
+
getX(index2) {
|
|
17007
|
+
return this.data.array[index2 * this.data.stride + this.offset];
|
|
17008
17008
|
}
|
|
17009
|
-
getY(
|
|
17010
|
-
return this.data.array[
|
|
17009
|
+
getY(index2) {
|
|
17010
|
+
return this.data.array[index2 * this.data.stride + this.offset + 1];
|
|
17011
17011
|
}
|
|
17012
|
-
getZ(
|
|
17013
|
-
return this.data.array[
|
|
17012
|
+
getZ(index2) {
|
|
17013
|
+
return this.data.array[index2 * this.data.stride + this.offset + 2];
|
|
17014
17014
|
}
|
|
17015
|
-
getW(
|
|
17016
|
-
return this.data.array[
|
|
17015
|
+
getW(index2) {
|
|
17016
|
+
return this.data.array[index2 * this.data.stride + this.offset + 3];
|
|
17017
17017
|
}
|
|
17018
|
-
setXY(
|
|
17019
|
-
|
|
17020
|
-
this.data.array[
|
|
17021
|
-
this.data.array[
|
|
17018
|
+
setXY(index2, x, y) {
|
|
17019
|
+
index2 = index2 * this.data.stride + this.offset;
|
|
17020
|
+
this.data.array[index2 + 0] = x;
|
|
17021
|
+
this.data.array[index2 + 1] = y;
|
|
17022
17022
|
return this;
|
|
17023
17023
|
}
|
|
17024
|
-
setXYZ(
|
|
17025
|
-
|
|
17026
|
-
this.data.array[
|
|
17027
|
-
this.data.array[
|
|
17028
|
-
this.data.array[
|
|
17024
|
+
setXYZ(index2, x, y, z) {
|
|
17025
|
+
index2 = index2 * this.data.stride + this.offset;
|
|
17026
|
+
this.data.array[index2 + 0] = x;
|
|
17027
|
+
this.data.array[index2 + 1] = y;
|
|
17028
|
+
this.data.array[index2 + 2] = z;
|
|
17029
17029
|
return this;
|
|
17030
17030
|
}
|
|
17031
|
-
setXYZW(
|
|
17032
|
-
|
|
17033
|
-
this.data.array[
|
|
17034
|
-
this.data.array[
|
|
17035
|
-
this.data.array[
|
|
17036
|
-
this.data.array[
|
|
17031
|
+
setXYZW(index2, x, y, z, w) {
|
|
17032
|
+
index2 = index2 * this.data.stride + this.offset;
|
|
17033
|
+
this.data.array[index2 + 0] = x;
|
|
17034
|
+
this.data.array[index2 + 1] = y;
|
|
17035
|
+
this.data.array[index2 + 2] = z;
|
|
17036
|
+
this.data.array[index2 + 3] = w;
|
|
17037
17037
|
return this;
|
|
17038
17038
|
}
|
|
17039
17039
|
clone(data2) {
|
|
@@ -17041,9 +17041,9 @@ class InterleavedBufferAttribute {
|
|
|
17041
17041
|
console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will deinterleave buffer data.");
|
|
17042
17042
|
const array = [];
|
|
17043
17043
|
for (let i = 0; i < this.count; i++) {
|
|
17044
|
-
const
|
|
17044
|
+
const index2 = i * this.data.stride + this.offset;
|
|
17045
17045
|
for (let j = 0; j < this.itemSize; j++) {
|
|
17046
|
-
array.push(this.data.array[
|
|
17046
|
+
array.push(this.data.array[index2 + j]);
|
|
17047
17047
|
}
|
|
17048
17048
|
}
|
|
17049
17049
|
return new BufferAttribute(new this.array.constructor(array), this.itemSize, this.normalized);
|
|
@@ -17062,9 +17062,9 @@ class InterleavedBufferAttribute {
|
|
|
17062
17062
|
console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will deinterleave buffer data.");
|
|
17063
17063
|
const array = [];
|
|
17064
17064
|
for (let i = 0; i < this.count; i++) {
|
|
17065
|
-
const
|
|
17065
|
+
const index2 = i * this.data.stride + this.offset;
|
|
17066
17066
|
for (let j = 0; j < this.itemSize; j++) {
|
|
17067
|
-
array.push(this.data.array[
|
|
17067
|
+
array.push(this.data.array[index2 + j]);
|
|
17068
17068
|
}
|
|
17069
17069
|
}
|
|
17070
17070
|
return {
|
|
@@ -17390,11 +17390,11 @@ class SkinnedMesh extends Mesh {
|
|
|
17390
17390
|
console.warn("THREE.SkinnedMesh: Unrecognized bindMode: " + this.bindMode);
|
|
17391
17391
|
}
|
|
17392
17392
|
}
|
|
17393
|
-
boneTransform(
|
|
17393
|
+
boneTransform(index2, target) {
|
|
17394
17394
|
const skeleton = this.skeleton;
|
|
17395
17395
|
const geometry = this.geometry;
|
|
17396
|
-
_skinIndex.fromBufferAttribute(geometry.attributes.skinIndex,
|
|
17397
|
-
_skinWeight.fromBufferAttribute(geometry.attributes.skinWeight,
|
|
17396
|
+
_skinIndex.fromBufferAttribute(geometry.attributes.skinIndex, index2);
|
|
17397
|
+
_skinWeight.fromBufferAttribute(geometry.attributes.skinWeight, index2);
|
|
17398
17398
|
_basePosition.copy(target).applyMatrix4(this.bindMatrix);
|
|
17399
17399
|
target.set(0, 0, 0);
|
|
17400
17400
|
for (let i = 0; i < 4; i++) {
|
|
@@ -17609,11 +17609,11 @@ let InstancedMesh$1 = class InstancedMesh extends Mesh {
|
|
|
17609
17609
|
this.count = source.count;
|
|
17610
17610
|
return this;
|
|
17611
17611
|
}
|
|
17612
|
-
getColorAt(
|
|
17613
|
-
color.fromArray(this.instanceColor.array,
|
|
17612
|
+
getColorAt(index2, color) {
|
|
17613
|
+
color.fromArray(this.instanceColor.array, index2 * 3);
|
|
17614
17614
|
}
|
|
17615
|
-
getMatrixAt(
|
|
17616
|
-
matrix.fromArray(this.instanceMatrix.array,
|
|
17615
|
+
getMatrixAt(index2, matrix) {
|
|
17616
|
+
matrix.fromArray(this.instanceMatrix.array, index2 * 16);
|
|
17617
17617
|
}
|
|
17618
17618
|
raycast(raycaster, intersects2) {
|
|
17619
17619
|
const matrixWorld = this.matrixWorld;
|
|
@@ -17635,14 +17635,14 @@ let InstancedMesh$1 = class InstancedMesh extends Mesh {
|
|
|
17635
17635
|
_instanceIntersects.length = 0;
|
|
17636
17636
|
}
|
|
17637
17637
|
}
|
|
17638
|
-
setColorAt(
|
|
17638
|
+
setColorAt(index2, color) {
|
|
17639
17639
|
if (this.instanceColor === null) {
|
|
17640
17640
|
this.instanceColor = new InstancedBufferAttribute(new Float32Array(this.instanceMatrix.count * 3), 3);
|
|
17641
17641
|
}
|
|
17642
|
-
color.toArray(this.instanceColor.array,
|
|
17642
|
+
color.toArray(this.instanceColor.array, index2 * 3);
|
|
17643
17643
|
}
|
|
17644
|
-
setMatrixAt(
|
|
17645
|
-
matrix.toArray(this.instanceMatrix.array,
|
|
17644
|
+
setMatrixAt(index2, matrix) {
|
|
17645
|
+
matrix.toArray(this.instanceMatrix.array, index2 * 16);
|
|
17646
17646
|
}
|
|
17647
17647
|
updateMorphTargets() {
|
|
17648
17648
|
}
|
|
@@ -17728,15 +17728,15 @@ class Line extends Object3D$1 {
|
|
|
17728
17728
|
const interSegment = new Vector3$1();
|
|
17729
17729
|
const interRay = new Vector3$1();
|
|
17730
17730
|
const step = this.isLineSegments ? 2 : 1;
|
|
17731
|
-
const
|
|
17731
|
+
const index2 = geometry.index;
|
|
17732
17732
|
const attributes = geometry.attributes;
|
|
17733
17733
|
const positionAttribute = attributes.position;
|
|
17734
|
-
if (
|
|
17734
|
+
if (index2 !== null) {
|
|
17735
17735
|
const start = Math.max(0, drawRange.start);
|
|
17736
|
-
const end = Math.min(
|
|
17736
|
+
const end = Math.min(index2.count, drawRange.start + drawRange.count);
|
|
17737
17737
|
for (let i = start, l = end - 1; i < l; i += step) {
|
|
17738
|
-
const a =
|
|
17739
|
-
const b =
|
|
17738
|
+
const a = index2.getX(i);
|
|
17739
|
+
const b = index2.getX(i + 1);
|
|
17740
17740
|
vStart.fromBufferAttribute(positionAttribute, a);
|
|
17741
17741
|
vEnd.fromBufferAttribute(positionAttribute, b);
|
|
17742
17742
|
const distSq = _ray$1.distanceSqToSegment(vStart, vEnd, interRay, interSegment);
|
|
@@ -17887,14 +17887,14 @@ class Points extends Object3D$1 {
|
|
|
17887
17887
|
_ray.copy(raycaster.ray).applyMatrix4(_inverseMatrix);
|
|
17888
17888
|
const localThreshold = threshold / ((this.scale.x + this.scale.y + this.scale.z) / 3);
|
|
17889
17889
|
const localThresholdSq = localThreshold * localThreshold;
|
|
17890
|
-
const
|
|
17890
|
+
const index2 = geometry.index;
|
|
17891
17891
|
const attributes = geometry.attributes;
|
|
17892
17892
|
const positionAttribute = attributes.position;
|
|
17893
|
-
if (
|
|
17893
|
+
if (index2 !== null) {
|
|
17894
17894
|
const start = Math.max(0, drawRange.start);
|
|
17895
|
-
const end = Math.min(
|
|
17895
|
+
const end = Math.min(index2.count, drawRange.start + drawRange.count);
|
|
17896
17896
|
for (let i = start, il = end; i < il; i++) {
|
|
17897
|
-
const a =
|
|
17897
|
+
const a = index2.getX(i);
|
|
17898
17898
|
_position$2.fromBufferAttribute(positionAttribute, a);
|
|
17899
17899
|
testPoint(_position$2, a, localThresholdSq, matrixWorld, raycaster, intersects2, this);
|
|
17900
17900
|
}
|
|
@@ -17925,7 +17925,7 @@ class Points extends Object3D$1 {
|
|
|
17925
17925
|
}
|
|
17926
17926
|
}
|
|
17927
17927
|
}
|
|
17928
|
-
function testPoint(point,
|
|
17928
|
+
function testPoint(point, index2, localThresholdSq, matrixWorld, raycaster, intersects2, object) {
|
|
17929
17929
|
const rayPointDistanceSq = _ray.distanceSqToPoint(point);
|
|
17930
17930
|
if (rayPointDistanceSq < localThresholdSq) {
|
|
17931
17931
|
const intersectPoint = new Vector3$1();
|
|
@@ -17937,7 +17937,7 @@ function testPoint(point, index, localThresholdSq, matrixWorld, raycaster, inter
|
|
|
17937
17937
|
distance,
|
|
17938
17938
|
distanceToRay: Math.sqrt(rayPointDistanceSq),
|
|
17939
17939
|
point: intersectPoint,
|
|
17940
|
-
index,
|
|
17940
|
+
index: index2,
|
|
17941
17941
|
face: null,
|
|
17942
17942
|
object
|
|
17943
17943
|
});
|
|
@@ -19183,7 +19183,7 @@ class CylinderGeometry extends BufferGeometry {
|
|
|
19183
19183
|
const vertices = [];
|
|
19184
19184
|
const normals = [];
|
|
19185
19185
|
const uvs = [];
|
|
19186
|
-
let
|
|
19186
|
+
let index2 = 0;
|
|
19187
19187
|
const indexArray = [];
|
|
19188
19188
|
const halfHeight = height / 2;
|
|
19189
19189
|
let groupStart = 0;
|
|
@@ -19217,7 +19217,7 @@ class CylinderGeometry extends BufferGeometry {
|
|
|
19217
19217
|
normal.set(sinTheta, slope, cosTheta).normalize();
|
|
19218
19218
|
normals.push(normal.x, normal.y, normal.z);
|
|
19219
19219
|
uvs.push(u, 1 - v);
|
|
19220
|
-
indexRow.push(
|
|
19220
|
+
indexRow.push(index2++);
|
|
19221
19221
|
}
|
|
19222
19222
|
indexArray.push(indexRow);
|
|
19223
19223
|
}
|
|
@@ -19236,7 +19236,7 @@ class CylinderGeometry extends BufferGeometry {
|
|
|
19236
19236
|
groupStart += groupCount;
|
|
19237
19237
|
}
|
|
19238
19238
|
function generateCap(top) {
|
|
19239
|
-
const centerIndexStart =
|
|
19239
|
+
const centerIndexStart = index2;
|
|
19240
19240
|
const uv = new Vector2$1();
|
|
19241
19241
|
const vertex2 = new Vector3$1();
|
|
19242
19242
|
let groupCount = 0;
|
|
@@ -19246,9 +19246,9 @@ class CylinderGeometry extends BufferGeometry {
|
|
|
19246
19246
|
vertices.push(0, halfHeight * sign2, 0);
|
|
19247
19247
|
normals.push(0, sign2, 0);
|
|
19248
19248
|
uvs.push(0.5, 0.5);
|
|
19249
|
-
|
|
19249
|
+
index2++;
|
|
19250
19250
|
}
|
|
19251
|
-
const centerIndexEnd =
|
|
19251
|
+
const centerIndexEnd = index2;
|
|
19252
19252
|
for (let x = 0; x <= radialSegments; x++) {
|
|
19253
19253
|
const u = x / radialSegments;
|
|
19254
19254
|
const theta = u * thetaLength + thetaStart;
|
|
@@ -19262,7 +19262,7 @@ class CylinderGeometry extends BufferGeometry {
|
|
|
19262
19262
|
uv.x = cosTheta * 0.5 + 0.5;
|
|
19263
19263
|
uv.y = sinTheta * 0.5 * sign2 + 0.5;
|
|
19264
19264
|
uvs.push(uv.x, uv.y);
|
|
19265
|
-
|
|
19265
|
+
index2++;
|
|
19266
19266
|
}
|
|
19267
19267
|
for (let x = 0; x < radialSegments; x++) {
|
|
19268
19268
|
const c = centerIndexStart + x;
|
|
@@ -19407,8 +19407,8 @@ class PolyhedronGeometry extends BufferGeometry {
|
|
|
19407
19407
|
function pushVertex(vertex2) {
|
|
19408
19408
|
vertexBuffer.push(vertex2.x, vertex2.y, vertex2.z);
|
|
19409
19409
|
}
|
|
19410
|
-
function getVertexByIndex(
|
|
19411
|
-
const stride =
|
|
19410
|
+
function getVertexByIndex(index2, vertex2) {
|
|
19411
|
+
const stride = index2 * 3;
|
|
19412
19412
|
vertex2.x = vertices[stride + 0];
|
|
19413
19413
|
vertex2.y = vertices[stride + 1];
|
|
19414
19414
|
vertex2.z = vertices[stride + 2];
|
|
@@ -20509,10 +20509,10 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
20509
20509
|
addUV(uvs[2]);
|
|
20510
20510
|
addUV(uvs[3]);
|
|
20511
20511
|
}
|
|
20512
|
-
function addVertex(
|
|
20513
|
-
verticesArray.push(placeholder[
|
|
20514
|
-
verticesArray.push(placeholder[
|
|
20515
|
-
verticesArray.push(placeholder[
|
|
20512
|
+
function addVertex(index2) {
|
|
20513
|
+
verticesArray.push(placeholder[index2 * 3 + 0]);
|
|
20514
|
+
verticesArray.push(placeholder[index2 * 3 + 1]);
|
|
20515
|
+
verticesArray.push(placeholder[index2 * 3 + 2]);
|
|
20516
20516
|
}
|
|
20517
20517
|
function addUV(vector2) {
|
|
20518
20518
|
uvArray.push(vector2.x);
|
|
@@ -20931,7 +20931,7 @@ class SphereGeometry extends BufferGeometry {
|
|
|
20931
20931
|
widthSegments = Math.max(3, Math.floor(widthSegments));
|
|
20932
20932
|
heightSegments = Math.max(2, Math.floor(heightSegments));
|
|
20933
20933
|
const thetaEnd = Math.min(thetaStart + thetaLength, Math.PI);
|
|
20934
|
-
let
|
|
20934
|
+
let index2 = 0;
|
|
20935
20935
|
const grid = [];
|
|
20936
20936
|
const vertex2 = new Vector3$1();
|
|
20937
20937
|
const normal = new Vector3$1();
|
|
@@ -20957,7 +20957,7 @@ class SphereGeometry extends BufferGeometry {
|
|
|
20957
20957
|
normal.copy(vertex2).normalize();
|
|
20958
20958
|
normals.push(normal.x, normal.y, normal.z);
|
|
20959
20959
|
uvs.push(u + uOffset, 1 - v);
|
|
20960
|
-
verticesRow.push(
|
|
20960
|
+
verticesRow.push(index2++);
|
|
20961
20961
|
}
|
|
20962
20962
|
grid.push(verticesRow);
|
|
20963
20963
|
}
|
|
@@ -22125,8 +22125,8 @@ class Interpolant {
|
|
|
22125
22125
|
getSettings_() {
|
|
22126
22126
|
return this.settings || this.DefaultSettings_;
|
|
22127
22127
|
}
|
|
22128
|
-
copySampleValue_(
|
|
22129
|
-
const result = this.resultBuffer, values = this.sampleValues, stride = this.valueSize, offset =
|
|
22128
|
+
copySampleValue_(index2) {
|
|
22129
|
+
const result = this.resultBuffer, values = this.sampleValues, stride = this.valueSize, offset = index2 * stride;
|
|
22130
22130
|
for (let i = 0; i !== stride; ++i) {
|
|
22131
22131
|
result[i] = values[offset + i];
|
|
22132
22132
|
}
|
|
@@ -22820,9 +22820,9 @@ class LoadingManager {
|
|
|
22820
22820
|
return this;
|
|
22821
22821
|
};
|
|
22822
22822
|
this.removeHandler = function(regex) {
|
|
22823
|
-
const
|
|
22824
|
-
if (
|
|
22825
|
-
handlers.splice(
|
|
22823
|
+
const index2 = handlers.indexOf(regex);
|
|
22824
|
+
if (index2 !== -1) {
|
|
22825
|
+
handlers.splice(index2, 2);
|
|
22826
22826
|
}
|
|
22827
22827
|
return this;
|
|
22828
22828
|
};
|
|
@@ -23995,9 +23995,9 @@ class LoaderUtils {
|
|
|
23995
23995
|
}
|
|
23996
23996
|
}
|
|
23997
23997
|
static extractUrlBase(url) {
|
|
23998
|
-
const
|
|
23999
|
-
if (
|
|
24000
|
-
return url.slice(0,
|
|
23998
|
+
const index2 = url.lastIndexOf("/");
|
|
23999
|
+
if (index2 === -1) return "./";
|
|
24000
|
+
return url.slice(0, index2 + 1);
|
|
24001
24001
|
}
|
|
24002
24002
|
static resolveURL(url, path) {
|
|
24003
24003
|
if (typeof url !== "string" || url === "") return "";
|
|
@@ -24078,9 +24078,9 @@ class BufferGeometryLoader extends Loader {
|
|
|
24078
24078
|
return ab;
|
|
24079
24079
|
}
|
|
24080
24080
|
const geometry = json.isInstancedBufferGeometry ? new InstancedBufferGeometry() : new BufferGeometry();
|
|
24081
|
-
const
|
|
24082
|
-
if (
|
|
24083
|
-
const typedArray = getTypedArray(
|
|
24081
|
+
const index2 = json.data.index;
|
|
24082
|
+
if (index2 !== void 0) {
|
|
24083
|
+
const typedArray = getTypedArray(index2.type, index2.array);
|
|
24084
24084
|
geometry.setIndex(new BufferAttribute(typedArray, 1));
|
|
24085
24085
|
}
|
|
24086
24086
|
const attributes = json.data.attributes;
|
|
@@ -25850,31 +25850,31 @@ class AnimationObjectGroup {
|
|
|
25850
25850
|
let knownObject = void 0, nObjects = objects.length, nCachedObjects = this.nCachedObjects_;
|
|
25851
25851
|
for (let i = 0, n = arguments.length; i !== n; ++i) {
|
|
25852
25852
|
const object = arguments[i], uuid = object.uuid;
|
|
25853
|
-
let
|
|
25854
|
-
if (
|
|
25855
|
-
|
|
25856
|
-
indicesByUUID[uuid] =
|
|
25853
|
+
let index2 = indicesByUUID[uuid];
|
|
25854
|
+
if (index2 === void 0) {
|
|
25855
|
+
index2 = nObjects++;
|
|
25856
|
+
indicesByUUID[uuid] = index2;
|
|
25857
25857
|
objects.push(object);
|
|
25858
25858
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25859
25859
|
bindings[j].push(new PropertyBinding(object, paths[j], parsedPaths[j]));
|
|
25860
25860
|
}
|
|
25861
|
-
} else if (
|
|
25862
|
-
knownObject = objects[
|
|
25861
|
+
} else if (index2 < nCachedObjects) {
|
|
25862
|
+
knownObject = objects[index2];
|
|
25863
25863
|
const firstActiveIndex = --nCachedObjects, lastCachedObject = objects[firstActiveIndex];
|
|
25864
|
-
indicesByUUID[lastCachedObject.uuid] =
|
|
25865
|
-
objects[
|
|
25864
|
+
indicesByUUID[lastCachedObject.uuid] = index2;
|
|
25865
|
+
objects[index2] = lastCachedObject;
|
|
25866
25866
|
indicesByUUID[uuid] = firstActiveIndex;
|
|
25867
25867
|
objects[firstActiveIndex] = object;
|
|
25868
25868
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25869
25869
|
const bindingsForPath = bindings[j], lastCached = bindingsForPath[firstActiveIndex];
|
|
25870
|
-
let binding = bindingsForPath[
|
|
25871
|
-
bindingsForPath[
|
|
25870
|
+
let binding = bindingsForPath[index2];
|
|
25871
|
+
bindingsForPath[index2] = lastCached;
|
|
25872
25872
|
if (binding === void 0) {
|
|
25873
25873
|
binding = new PropertyBinding(object, paths[j], parsedPaths[j]);
|
|
25874
25874
|
}
|
|
25875
25875
|
bindingsForPath[firstActiveIndex] = binding;
|
|
25876
25876
|
}
|
|
25877
|
-
} else if (objects[
|
|
25877
|
+
} else if (objects[index2] !== knownObject) {
|
|
25878
25878
|
console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.");
|
|
25879
25879
|
}
|
|
25880
25880
|
}
|
|
@@ -25884,16 +25884,16 @@ class AnimationObjectGroup {
|
|
|
25884
25884
|
const objects = this._objects, indicesByUUID = this._indicesByUUID, bindings = this._bindings, nBindings = bindings.length;
|
|
25885
25885
|
let nCachedObjects = this.nCachedObjects_;
|
|
25886
25886
|
for (let i = 0, n = arguments.length; i !== n; ++i) {
|
|
25887
|
-
const object = arguments[i], uuid = object.uuid,
|
|
25888
|
-
if (
|
|
25887
|
+
const object = arguments[i], uuid = object.uuid, index2 = indicesByUUID[uuid];
|
|
25888
|
+
if (index2 !== void 0 && index2 >= nCachedObjects) {
|
|
25889
25889
|
const lastCachedIndex = nCachedObjects++, firstActiveObject = objects[lastCachedIndex];
|
|
25890
|
-
indicesByUUID[firstActiveObject.uuid] =
|
|
25891
|
-
objects[
|
|
25890
|
+
indicesByUUID[firstActiveObject.uuid] = index2;
|
|
25891
|
+
objects[index2] = firstActiveObject;
|
|
25892
25892
|
indicesByUUID[uuid] = lastCachedIndex;
|
|
25893
25893
|
objects[lastCachedIndex] = object;
|
|
25894
25894
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25895
|
-
const bindingsForPath = bindings[j], firstActive = bindingsForPath[lastCachedIndex], binding = bindingsForPath[
|
|
25896
|
-
bindingsForPath[
|
|
25895
|
+
const bindingsForPath = bindings[j], firstActive = bindingsForPath[lastCachedIndex], binding = bindingsForPath[index2];
|
|
25896
|
+
bindingsForPath[index2] = firstActive;
|
|
25897
25897
|
bindingsForPath[lastCachedIndex] = binding;
|
|
25898
25898
|
}
|
|
25899
25899
|
}
|
|
@@ -25905,32 +25905,32 @@ class AnimationObjectGroup {
|
|
|
25905
25905
|
const objects = this._objects, indicesByUUID = this._indicesByUUID, bindings = this._bindings, nBindings = bindings.length;
|
|
25906
25906
|
let nCachedObjects = this.nCachedObjects_, nObjects = objects.length;
|
|
25907
25907
|
for (let i = 0, n = arguments.length; i !== n; ++i) {
|
|
25908
|
-
const object = arguments[i], uuid = object.uuid,
|
|
25909
|
-
if (
|
|
25908
|
+
const object = arguments[i], uuid = object.uuid, index2 = indicesByUUID[uuid];
|
|
25909
|
+
if (index2 !== void 0) {
|
|
25910
25910
|
delete indicesByUUID[uuid];
|
|
25911
|
-
if (
|
|
25911
|
+
if (index2 < nCachedObjects) {
|
|
25912
25912
|
const firstActiveIndex = --nCachedObjects, lastCachedObject = objects[firstActiveIndex], lastIndex = --nObjects, lastObject = objects[lastIndex];
|
|
25913
|
-
indicesByUUID[lastCachedObject.uuid] =
|
|
25914
|
-
objects[
|
|
25913
|
+
indicesByUUID[lastCachedObject.uuid] = index2;
|
|
25914
|
+
objects[index2] = lastCachedObject;
|
|
25915
25915
|
indicesByUUID[lastObject.uuid] = firstActiveIndex;
|
|
25916
25916
|
objects[firstActiveIndex] = lastObject;
|
|
25917
25917
|
objects.pop();
|
|
25918
25918
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25919
25919
|
const bindingsForPath = bindings[j], lastCached = bindingsForPath[firstActiveIndex], last = bindingsForPath[lastIndex];
|
|
25920
|
-
bindingsForPath[
|
|
25920
|
+
bindingsForPath[index2] = lastCached;
|
|
25921
25921
|
bindingsForPath[firstActiveIndex] = last;
|
|
25922
25922
|
bindingsForPath.pop();
|
|
25923
25923
|
}
|
|
25924
25924
|
} else {
|
|
25925
25925
|
const lastIndex = --nObjects, lastObject = objects[lastIndex];
|
|
25926
25926
|
if (lastIndex > 0) {
|
|
25927
|
-
indicesByUUID[lastObject.uuid] =
|
|
25927
|
+
indicesByUUID[lastObject.uuid] = index2;
|
|
25928
25928
|
}
|
|
25929
|
-
objects[
|
|
25929
|
+
objects[index2] = lastObject;
|
|
25930
25930
|
objects.pop();
|
|
25931
25931
|
for (let j = 0, m = nBindings; j !== m; ++j) {
|
|
25932
25932
|
const bindingsForPath = bindings[j];
|
|
25933
|
-
bindingsForPath[
|
|
25933
|
+
bindingsForPath[index2] = bindingsForPath[lastIndex];
|
|
25934
25934
|
bindingsForPath.pop();
|
|
25935
25935
|
}
|
|
25936
25936
|
}
|
|
@@ -25941,12 +25941,12 @@ class AnimationObjectGroup {
|
|
|
25941
25941
|
// Internal interface used by befriended PropertyBinding.Composite:
|
|
25942
25942
|
subscribe_(path, parsedPath) {
|
|
25943
25943
|
const indicesByPath = this._bindingsIndicesByPath;
|
|
25944
|
-
let
|
|
25944
|
+
let index2 = indicesByPath[path];
|
|
25945
25945
|
const bindings = this._bindings;
|
|
25946
|
-
if (
|
|
25946
|
+
if (index2 !== void 0) return bindings[index2];
|
|
25947
25947
|
const paths = this._paths, parsedPaths = this._parsedPaths, objects = this._objects, nObjects = objects.length, nCachedObjects = this.nCachedObjects_, bindingsForPath = new Array(nObjects);
|
|
25948
|
-
|
|
25949
|
-
indicesByPath[path] =
|
|
25948
|
+
index2 = bindings.length;
|
|
25949
|
+
indicesByPath[path] = index2;
|
|
25950
25950
|
paths.push(path);
|
|
25951
25951
|
parsedPaths.push(parsedPath);
|
|
25952
25952
|
bindings.push(bindingsForPath);
|
|
@@ -25957,15 +25957,15 @@ class AnimationObjectGroup {
|
|
|
25957
25957
|
return bindingsForPath;
|
|
25958
25958
|
}
|
|
25959
25959
|
unsubscribe_(path) {
|
|
25960
|
-
const indicesByPath = this._bindingsIndicesByPath,
|
|
25961
|
-
if (
|
|
25960
|
+
const indicesByPath = this._bindingsIndicesByPath, index2 = indicesByPath[path];
|
|
25961
|
+
if (index2 !== void 0) {
|
|
25962
25962
|
const paths = this._paths, parsedPaths = this._parsedPaths, bindings = this._bindings, lastBindingsIndex = bindings.length - 1, lastBindings = bindings[lastBindingsIndex], lastBindingsPath = path[lastBindingsIndex];
|
|
25963
|
-
indicesByPath[lastBindingsPath] =
|
|
25964
|
-
bindings[
|
|
25963
|
+
indicesByPath[lastBindingsPath] = index2;
|
|
25964
|
+
bindings[index2] = lastBindings;
|
|
25965
25965
|
bindings.pop();
|
|
25966
|
-
parsedPaths[
|
|
25966
|
+
parsedPaths[index2] = parsedPaths[lastBindingsIndex];
|
|
25967
25967
|
parsedPaths.pop();
|
|
25968
|
-
paths[
|
|
25968
|
+
paths[index2] = paths[lastBindingsIndex];
|
|
25969
25969
|
paths.pop();
|
|
25970
25970
|
}
|
|
25971
25971
|
}
|
|
@@ -26448,8 +26448,8 @@ class AnimationMixer extends EventDispatcher {
|
|
|
26448
26448
|
}
|
|
26449
26449
|
// Memory management for AnimationAction objects
|
|
26450
26450
|
_isActiveAction(action) {
|
|
26451
|
-
const
|
|
26452
|
-
return
|
|
26451
|
+
const index2 = action._cacheIndex;
|
|
26452
|
+
return index2 !== null && index2 < this._nActiveActions;
|
|
26453
26453
|
}
|
|
26454
26454
|
_addInactiveAction(action, clipUuid, rootUuid) {
|
|
26455
26455
|
const actions = this._actions, actionsByClip = this._actionsByClip;
|
|
@@ -26717,8 +26717,8 @@ class UniformsGroup extends EventDispatcher {
|
|
|
26717
26717
|
return this;
|
|
26718
26718
|
}
|
|
26719
26719
|
remove(uniform) {
|
|
26720
|
-
const
|
|
26721
|
-
if (
|
|
26720
|
+
const index2 = this.uniforms.indexOf(uniform);
|
|
26721
|
+
if (index2 !== -1) this.uniforms.splice(index2, 1);
|
|
26722
26722
|
return this;
|
|
26723
26723
|
}
|
|
26724
26724
|
setName(name) {
|
|
@@ -33370,8 +33370,8 @@ function requireBfast() {
|
|
|
33370
33370
|
* @param name buffer name
|
|
33371
33371
|
* @param index row index
|
|
33372
33372
|
*/
|
|
33373
|
-
async getValue(name,
|
|
33374
|
-
const array = await this.getValues(name,
|
|
33373
|
+
async getValue(name, index2) {
|
|
33374
|
+
const array = await this.getValues(name, index2, 1);
|
|
33375
33375
|
return array == null ? void 0 : array[0];
|
|
33376
33376
|
}
|
|
33377
33377
|
async getRange(name) {
|
|
@@ -33384,8 +33384,8 @@ function requireBfast() {
|
|
|
33384
33384
|
* @param index row index
|
|
33385
33385
|
* @param count count of values to return
|
|
33386
33386
|
*/
|
|
33387
|
-
async getValues(name,
|
|
33388
|
-
if (
|
|
33387
|
+
async getValues(name, index2, count) {
|
|
33388
|
+
if (index2 < 0 || count < 1)
|
|
33389
33389
|
return void 0;
|
|
33390
33390
|
const range2 = await this.getRange(name);
|
|
33391
33391
|
if (!range2)
|
|
@@ -33393,12 +33393,12 @@ function requireBfast() {
|
|
|
33393
33393
|
const [size, ctor] = parseName(name);
|
|
33394
33394
|
if (size < 0)
|
|
33395
33395
|
return void 0;
|
|
33396
|
-
const start = Math.min(range2.start +
|
|
33396
|
+
const start = Math.min(range2.start + index2 * size, range2.end);
|
|
33397
33397
|
const end = Math.min(start + size * count, range2.end);
|
|
33398
33398
|
const dataRange = new Range(start, end);
|
|
33399
33399
|
if (dataRange.length <= 0)
|
|
33400
33400
|
return void 0;
|
|
33401
|
-
const buffer = await this.request(dataRange, `${name}[${
|
|
33401
|
+
const buffer = await this.request(dataRange, `${name}[${index2.toString()}]`);
|
|
33402
33402
|
if (!buffer)
|
|
33403
33403
|
return void 0;
|
|
33404
33404
|
const array = new ctor(buffer);
|
|
@@ -33420,14 +33420,14 @@ function requireBfast() {
|
|
|
33420
33420
|
* Returns a map of name-values with the same index from all buffers.
|
|
33421
33421
|
* @param name buffer name
|
|
33422
33422
|
*/
|
|
33423
|
-
async getRow(
|
|
33423
|
+
async getRow(index2) {
|
|
33424
33424
|
const ranges = await this.getRanges();
|
|
33425
33425
|
if (!ranges)
|
|
33426
33426
|
return void 0;
|
|
33427
33427
|
const result = /* @__PURE__ */ new Map();
|
|
33428
33428
|
const promises = [];
|
|
33429
33429
|
for (const name of ranges.keys()) {
|
|
33430
|
-
const p = this.getValue(name,
|
|
33430
|
+
const p = this.getValue(name, index2).then((v) => result.set(name, v));
|
|
33431
33431
|
promises.push(p);
|
|
33432
33432
|
}
|
|
33433
33433
|
await Promise.all(promises);
|
|
@@ -33633,9 +33633,9 @@ function requireG3d() {
|
|
|
33633
33633
|
const subStart = this.getSubmeshIndexStart(sub);
|
|
33634
33634
|
const subEnd = this.getSubmeshIndexEnd(sub);
|
|
33635
33635
|
for (let i = subStart; i < subEnd; i++) {
|
|
33636
|
-
const
|
|
33637
|
-
min2 = Math.min(min2,
|
|
33638
|
-
max2 = Math.max(min2,
|
|
33636
|
+
const index2 = this.indices[i];
|
|
33637
|
+
min2 = Math.min(min2, index2);
|
|
33638
|
+
max2 = Math.max(min2, index2);
|
|
33639
33639
|
}
|
|
33640
33640
|
start[sub] = min2;
|
|
33641
33641
|
end[sub] = max2;
|
|
@@ -33791,16 +33791,16 @@ function requireG3d() {
|
|
|
33791
33791
|
const meshOffset = meshIndexOffsets[m];
|
|
33792
33792
|
const subStart = this.getMeshSubmeshStart(m, "all");
|
|
33793
33793
|
const subEnd = this.getMeshSubmeshEnd(m, "all");
|
|
33794
|
-
let
|
|
33794
|
+
let index2 = 0;
|
|
33795
33795
|
for (let s = subStart; s < subEnd; s++) {
|
|
33796
33796
|
const start = this.submeshIndexOffset[s];
|
|
33797
33797
|
const end = submeshEnd[s];
|
|
33798
|
-
this.submeshIndexOffset[s] = meshOffset +
|
|
33798
|
+
this.submeshIndexOffset[s] = meshOffset + index2;
|
|
33799
33799
|
for (let i = start; i < end; i++) {
|
|
33800
|
-
buffer[
|
|
33800
|
+
buffer[index2++] = this.indices[i];
|
|
33801
33801
|
}
|
|
33802
33802
|
}
|
|
33803
|
-
for (let i = 0; i <
|
|
33803
|
+
for (let i = 0; i < index2; i++) {
|
|
33804
33804
|
this.indices[meshOffset + i] = buffer[i];
|
|
33805
33805
|
}
|
|
33806
33806
|
}
|
|
@@ -33982,8 +33982,8 @@ function requireG3d() {
|
|
|
33982
33982
|
getMaterialAlpha(material) {
|
|
33983
33983
|
if (material < 0)
|
|
33984
33984
|
return 1;
|
|
33985
|
-
const
|
|
33986
|
-
const result = this.materialColors[
|
|
33985
|
+
const index2 = material * G3d.COLOR_SIZE + G3d.COLOR_SIZE - 1;
|
|
33986
|
+
const result = this.materialColors[index2];
|
|
33987
33987
|
return result;
|
|
33988
33988
|
}
|
|
33989
33989
|
/**
|
|
@@ -34146,8 +34146,8 @@ function requireG3dMaterials() {
|
|
|
34146
34146
|
getMaterialAlpha(material) {
|
|
34147
34147
|
if (material < 0)
|
|
34148
34148
|
return 1;
|
|
34149
|
-
const
|
|
34150
|
-
const result = this.materialColors[
|
|
34149
|
+
const index2 = material * G3dMaterial.COLOR_SIZE + G3dMaterial.COLOR_SIZE - 1;
|
|
34150
|
+
const result = this.materialColors[index2];
|
|
34151
34151
|
return result;
|
|
34152
34152
|
}
|
|
34153
34153
|
}
|
|
@@ -34333,10 +34333,10 @@ function requireG3dMesh() {
|
|
|
34333
34333
|
g3dMesh.G3dMesh = void 0;
|
|
34334
34334
|
const g3d_1 = requireG3d();
|
|
34335
34335
|
class G3dMesh {
|
|
34336
|
-
constructor(scene, chunk,
|
|
34336
|
+
constructor(scene, chunk, index2) {
|
|
34337
34337
|
this.scene = scene;
|
|
34338
34338
|
this.chunk = chunk;
|
|
34339
|
-
this.index =
|
|
34339
|
+
this.index = index2;
|
|
34340
34340
|
}
|
|
34341
34341
|
// ------------- Mesh -----------------
|
|
34342
34342
|
getVertexStart(section = "all") {
|
|
@@ -34438,8 +34438,8 @@ function requireRemoteVimx() {
|
|
|
34438
34438
|
this.bfast.forceDownload();
|
|
34439
34439
|
}
|
|
34440
34440
|
async requestScene() {
|
|
34441
|
-
const
|
|
34442
|
-
return g3dScene_1.G3dScene.createFromBfast(
|
|
34441
|
+
const index2 = await this.bfast.getLocalBfast("scene", true);
|
|
34442
|
+
return g3dScene_1.G3dScene.createFromBfast(index2);
|
|
34443
34443
|
}
|
|
34444
34444
|
async getHeader() {
|
|
34445
34445
|
return (0, vimHeader_1.requestHeader)(this.bfast);
|
|
@@ -34734,11 +34734,11 @@ function requireObjectModel() {
|
|
|
34734
34734
|
const entityTable_1 = requireEntityTable();
|
|
34735
34735
|
const vimLoader_1 = requireVimLoader();
|
|
34736
34736
|
class Asset {
|
|
34737
|
-
static async createFromTable(table,
|
|
34737
|
+
static async createFromTable(table, index2) {
|
|
34738
34738
|
let result = new Asset();
|
|
34739
|
-
result.index =
|
|
34739
|
+
result.index = index2;
|
|
34740
34740
|
await Promise.all([
|
|
34741
|
-
table.getBufferName(
|
|
34741
|
+
table.getBufferName(index2).then((v) => result.bufferName = v)
|
|
34742
34742
|
]);
|
|
34743
34743
|
return result;
|
|
34744
34744
|
}
|
|
@@ -34787,13 +34787,13 @@ function requireObjectModel() {
|
|
|
34787
34787
|
}
|
|
34788
34788
|
objectModel.AssetTable = AssetTable;
|
|
34789
34789
|
class DisplayUnit {
|
|
34790
|
-
static async createFromTable(table,
|
|
34790
|
+
static async createFromTable(table, index2) {
|
|
34791
34791
|
let result = new DisplayUnit();
|
|
34792
|
-
result.index =
|
|
34792
|
+
result.index = index2;
|
|
34793
34793
|
await Promise.all([
|
|
34794
|
-
table.getSpec(
|
|
34795
|
-
table.getType(
|
|
34796
|
-
table.getLabel(
|
|
34794
|
+
table.getSpec(index2).then((v) => result.spec = v),
|
|
34795
|
+
table.getType(index2).then((v) => result.type = v),
|
|
34796
|
+
table.getLabel(index2).then((v) => result.label = v)
|
|
34797
34797
|
]);
|
|
34798
34798
|
return result;
|
|
34799
34799
|
}
|
|
@@ -34864,20 +34864,20 @@ function requireObjectModel() {
|
|
|
34864
34864
|
}
|
|
34865
34865
|
objectModel.DisplayUnitTable = DisplayUnitTable;
|
|
34866
34866
|
class ParameterDescriptor {
|
|
34867
|
-
static async createFromTable(table,
|
|
34867
|
+
static async createFromTable(table, index2) {
|
|
34868
34868
|
let result = new ParameterDescriptor();
|
|
34869
|
-
result.index =
|
|
34869
|
+
result.index = index2;
|
|
34870
34870
|
await Promise.all([
|
|
34871
|
-
table.getName(
|
|
34872
|
-
table.getGroup(
|
|
34873
|
-
table.getParameterType(
|
|
34874
|
-
table.getIsInstance(
|
|
34875
|
-
table.getIsShared(
|
|
34876
|
-
table.getIsReadOnly(
|
|
34877
|
-
table.getFlags(
|
|
34878
|
-
table.getGuid(
|
|
34879
|
-
table.getStorageType(
|
|
34880
|
-
table.getDisplayUnitIndex(
|
|
34871
|
+
table.getName(index2).then((v) => result.name = v),
|
|
34872
|
+
table.getGroup(index2).then((v) => result.group = v),
|
|
34873
|
+
table.getParameterType(index2).then((v) => result.parameterType = v),
|
|
34874
|
+
table.getIsInstance(index2).then((v) => result.isInstance = v),
|
|
34875
|
+
table.getIsShared(index2).then((v) => result.isShared = v),
|
|
34876
|
+
table.getIsReadOnly(index2).then((v) => result.isReadOnly = v),
|
|
34877
|
+
table.getFlags(index2).then((v) => result.flags = v),
|
|
34878
|
+
table.getGuid(index2).then((v) => result.guid = v),
|
|
34879
|
+
table.getStorageType(index2).then((v) => result.storageType = v),
|
|
34880
|
+
table.getDisplayUnitIndex(index2).then((v) => result.displayUnitIndex = v)
|
|
34881
34881
|
]);
|
|
34882
34882
|
return result;
|
|
34883
34883
|
}
|
|
@@ -35025,22 +35025,22 @@ function requireObjectModel() {
|
|
|
35025
35025
|
}
|
|
35026
35026
|
async getDisplayUnit(parameterDescriptorIndex) {
|
|
35027
35027
|
var _a2;
|
|
35028
|
-
const
|
|
35029
|
-
if (
|
|
35028
|
+
const index2 = await this.getDisplayUnitIndex(parameterDescriptorIndex);
|
|
35029
|
+
if (index2 === void 0) {
|
|
35030
35030
|
return void 0;
|
|
35031
35031
|
}
|
|
35032
|
-
return await ((_a2 = this.document.displayUnit) == null ? void 0 : _a2.get(
|
|
35032
|
+
return await ((_a2 = this.document.displayUnit) == null ? void 0 : _a2.get(index2));
|
|
35033
35033
|
}
|
|
35034
35034
|
}
|
|
35035
35035
|
objectModel.ParameterDescriptorTable = ParameterDescriptorTable;
|
|
35036
35036
|
class Parameter {
|
|
35037
|
-
static async createFromTable(table,
|
|
35037
|
+
static async createFromTable(table, index2) {
|
|
35038
35038
|
let result = new Parameter();
|
|
35039
|
-
result.index =
|
|
35039
|
+
result.index = index2;
|
|
35040
35040
|
await Promise.all([
|
|
35041
|
-
table.getValue(
|
|
35042
|
-
table.getParameterDescriptorIndex(
|
|
35043
|
-
table.getElementIndex(
|
|
35041
|
+
table.getValue(index2).then((v) => result.value = v),
|
|
35042
|
+
table.getParameterDescriptorIndex(index2).then((v) => result.parameterDescriptorIndex = v),
|
|
35043
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35044
35044
|
]);
|
|
35045
35045
|
return result;
|
|
35046
35046
|
}
|
|
@@ -35105,11 +35105,11 @@ function requireObjectModel() {
|
|
|
35105
35105
|
}
|
|
35106
35106
|
async getParameterDescriptor(parameterIndex) {
|
|
35107
35107
|
var _a2;
|
|
35108
|
-
const
|
|
35109
|
-
if (
|
|
35108
|
+
const index2 = await this.getParameterDescriptorIndex(parameterIndex);
|
|
35109
|
+
if (index2 === void 0) {
|
|
35110
35110
|
return void 0;
|
|
35111
35111
|
}
|
|
35112
|
-
return await ((_a2 = this.document.parameterDescriptor) == null ? void 0 : _a2.get(
|
|
35112
|
+
return await ((_a2 = this.document.parameterDescriptor) == null ? void 0 : _a2.get(index2));
|
|
35113
35113
|
}
|
|
35114
35114
|
async getElementIndex(parameterIndex) {
|
|
35115
35115
|
return await this.entityTable.getNumber(parameterIndex, "index:Vim.Element:Element");
|
|
@@ -35119,39 +35119,39 @@ function requireObjectModel() {
|
|
|
35119
35119
|
}
|
|
35120
35120
|
async getElement(parameterIndex) {
|
|
35121
35121
|
var _a2;
|
|
35122
|
-
const
|
|
35123
|
-
if (
|
|
35122
|
+
const index2 = await this.getElementIndex(parameterIndex);
|
|
35123
|
+
if (index2 === void 0) {
|
|
35124
35124
|
return void 0;
|
|
35125
35125
|
}
|
|
35126
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
35126
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
35127
35127
|
}
|
|
35128
35128
|
}
|
|
35129
35129
|
objectModel.ParameterTable = ParameterTable;
|
|
35130
35130
|
class Element2 {
|
|
35131
|
-
static async createFromTable(table,
|
|
35131
|
+
static async createFromTable(table, index2) {
|
|
35132
35132
|
let result = new Element2();
|
|
35133
|
-
result.index =
|
|
35133
|
+
result.index = index2;
|
|
35134
35134
|
await Promise.all([
|
|
35135
|
-
table.getId(
|
|
35136
|
-
table.getType(
|
|
35137
|
-
table.getName(
|
|
35138
|
-
table.getUniqueId(
|
|
35139
|
-
table.getLocation_X(
|
|
35140
|
-
table.getLocation_Y(
|
|
35141
|
-
table.getLocation_Z(
|
|
35142
|
-
table.getFamilyName(
|
|
35143
|
-
table.getIsPinned(
|
|
35144
|
-
table.getLevelIndex(
|
|
35145
|
-
table.getPhaseCreatedIndex(
|
|
35146
|
-
table.getPhaseDemolishedIndex(
|
|
35147
|
-
table.getCategoryIndex(
|
|
35148
|
-
table.getWorksetIndex(
|
|
35149
|
-
table.getDesignOptionIndex(
|
|
35150
|
-
table.getOwnerViewIndex(
|
|
35151
|
-
table.getGroupIndex(
|
|
35152
|
-
table.getAssemblyInstanceIndex(
|
|
35153
|
-
table.getBimDocumentIndex(
|
|
35154
|
-
table.getRoomIndex(
|
|
35135
|
+
table.getId(index2).then((v) => result.id = v),
|
|
35136
|
+
table.getType(index2).then((v) => result.type = v),
|
|
35137
|
+
table.getName(index2).then((v) => result.name = v),
|
|
35138
|
+
table.getUniqueId(index2).then((v) => result.uniqueId = v),
|
|
35139
|
+
table.getLocation_X(index2).then((v) => result.location_X = v),
|
|
35140
|
+
table.getLocation_Y(index2).then((v) => result.location_Y = v),
|
|
35141
|
+
table.getLocation_Z(index2).then((v) => result.location_Z = v),
|
|
35142
|
+
table.getFamilyName(index2).then((v) => result.familyName = v),
|
|
35143
|
+
table.getIsPinned(index2).then((v) => result.isPinned = v),
|
|
35144
|
+
table.getLevelIndex(index2).then((v) => result.levelIndex = v),
|
|
35145
|
+
table.getPhaseCreatedIndex(index2).then((v) => result.phaseCreatedIndex = v),
|
|
35146
|
+
table.getPhaseDemolishedIndex(index2).then((v) => result.phaseDemolishedIndex = v),
|
|
35147
|
+
table.getCategoryIndex(index2).then((v) => result.categoryIndex = v),
|
|
35148
|
+
table.getWorksetIndex(index2).then((v) => result.worksetIndex = v),
|
|
35149
|
+
table.getDesignOptionIndex(index2).then((v) => result.designOptionIndex = v),
|
|
35150
|
+
table.getOwnerViewIndex(index2).then((v) => result.ownerViewIndex = v),
|
|
35151
|
+
table.getGroupIndex(index2).then((v) => result.groupIndex = v),
|
|
35152
|
+
table.getAssemblyInstanceIndex(index2).then((v) => result.assemblyInstanceIndex = v),
|
|
35153
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v),
|
|
35154
|
+
table.getRoomIndex(index2).then((v) => result.roomIndex = v)
|
|
35155
35155
|
]);
|
|
35156
35156
|
return result;
|
|
35157
35157
|
}
|
|
@@ -35349,11 +35349,11 @@ function requireObjectModel() {
|
|
|
35349
35349
|
}
|
|
35350
35350
|
async getLevel(elementIndex) {
|
|
35351
35351
|
var _a2;
|
|
35352
|
-
const
|
|
35353
|
-
if (
|
|
35352
|
+
const index2 = await this.getLevelIndex(elementIndex);
|
|
35353
|
+
if (index2 === void 0) {
|
|
35354
35354
|
return void 0;
|
|
35355
35355
|
}
|
|
35356
|
-
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(
|
|
35356
|
+
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(index2));
|
|
35357
35357
|
}
|
|
35358
35358
|
async getPhaseCreatedIndex(elementIndex) {
|
|
35359
35359
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Phase:PhaseCreated");
|
|
@@ -35363,11 +35363,11 @@ function requireObjectModel() {
|
|
|
35363
35363
|
}
|
|
35364
35364
|
async getPhaseCreated(elementIndex) {
|
|
35365
35365
|
var _a2;
|
|
35366
|
-
const
|
|
35367
|
-
if (
|
|
35366
|
+
const index2 = await this.getPhaseCreatedIndex(elementIndex);
|
|
35367
|
+
if (index2 === void 0) {
|
|
35368
35368
|
return void 0;
|
|
35369
35369
|
}
|
|
35370
|
-
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(
|
|
35370
|
+
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(index2));
|
|
35371
35371
|
}
|
|
35372
35372
|
async getPhaseDemolishedIndex(elementIndex) {
|
|
35373
35373
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Phase:PhaseDemolished");
|
|
@@ -35377,11 +35377,11 @@ function requireObjectModel() {
|
|
|
35377
35377
|
}
|
|
35378
35378
|
async getPhaseDemolished(elementIndex) {
|
|
35379
35379
|
var _a2;
|
|
35380
|
-
const
|
|
35381
|
-
if (
|
|
35380
|
+
const index2 = await this.getPhaseDemolishedIndex(elementIndex);
|
|
35381
|
+
if (index2 === void 0) {
|
|
35382
35382
|
return void 0;
|
|
35383
35383
|
}
|
|
35384
|
-
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(
|
|
35384
|
+
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(index2));
|
|
35385
35385
|
}
|
|
35386
35386
|
async getCategoryIndex(elementIndex) {
|
|
35387
35387
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Category:Category");
|
|
@@ -35391,11 +35391,11 @@ function requireObjectModel() {
|
|
|
35391
35391
|
}
|
|
35392
35392
|
async getCategory(elementIndex) {
|
|
35393
35393
|
var _a2;
|
|
35394
|
-
const
|
|
35395
|
-
if (
|
|
35394
|
+
const index2 = await this.getCategoryIndex(elementIndex);
|
|
35395
|
+
if (index2 === void 0) {
|
|
35396
35396
|
return void 0;
|
|
35397
35397
|
}
|
|
35398
|
-
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(
|
|
35398
|
+
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(index2));
|
|
35399
35399
|
}
|
|
35400
35400
|
async getWorksetIndex(elementIndex) {
|
|
35401
35401
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Workset:Workset");
|
|
@@ -35405,11 +35405,11 @@ function requireObjectModel() {
|
|
|
35405
35405
|
}
|
|
35406
35406
|
async getWorkset(elementIndex) {
|
|
35407
35407
|
var _a2;
|
|
35408
|
-
const
|
|
35409
|
-
if (
|
|
35408
|
+
const index2 = await this.getWorksetIndex(elementIndex);
|
|
35409
|
+
if (index2 === void 0) {
|
|
35410
35410
|
return void 0;
|
|
35411
35411
|
}
|
|
35412
|
-
return await ((_a2 = this.document.workset) == null ? void 0 : _a2.get(
|
|
35412
|
+
return await ((_a2 = this.document.workset) == null ? void 0 : _a2.get(index2));
|
|
35413
35413
|
}
|
|
35414
35414
|
async getDesignOptionIndex(elementIndex) {
|
|
35415
35415
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.DesignOption:DesignOption");
|
|
@@ -35419,11 +35419,11 @@ function requireObjectModel() {
|
|
|
35419
35419
|
}
|
|
35420
35420
|
async getDesignOption(elementIndex) {
|
|
35421
35421
|
var _a2;
|
|
35422
|
-
const
|
|
35423
|
-
if (
|
|
35422
|
+
const index2 = await this.getDesignOptionIndex(elementIndex);
|
|
35423
|
+
if (index2 === void 0) {
|
|
35424
35424
|
return void 0;
|
|
35425
35425
|
}
|
|
35426
|
-
return await ((_a2 = this.document.designOption) == null ? void 0 : _a2.get(
|
|
35426
|
+
return await ((_a2 = this.document.designOption) == null ? void 0 : _a2.get(index2));
|
|
35427
35427
|
}
|
|
35428
35428
|
async getOwnerViewIndex(elementIndex) {
|
|
35429
35429
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.View:OwnerView");
|
|
@@ -35433,11 +35433,11 @@ function requireObjectModel() {
|
|
|
35433
35433
|
}
|
|
35434
35434
|
async getOwnerView(elementIndex) {
|
|
35435
35435
|
var _a2;
|
|
35436
|
-
const
|
|
35437
|
-
if (
|
|
35436
|
+
const index2 = await this.getOwnerViewIndex(elementIndex);
|
|
35437
|
+
if (index2 === void 0) {
|
|
35438
35438
|
return void 0;
|
|
35439
35439
|
}
|
|
35440
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
35440
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
35441
35441
|
}
|
|
35442
35442
|
async getGroupIndex(elementIndex) {
|
|
35443
35443
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Group:Group");
|
|
@@ -35447,11 +35447,11 @@ function requireObjectModel() {
|
|
|
35447
35447
|
}
|
|
35448
35448
|
async getGroup(elementIndex) {
|
|
35449
35449
|
var _a2;
|
|
35450
|
-
const
|
|
35451
|
-
if (
|
|
35450
|
+
const index2 = await this.getGroupIndex(elementIndex);
|
|
35451
|
+
if (index2 === void 0) {
|
|
35452
35452
|
return void 0;
|
|
35453
35453
|
}
|
|
35454
|
-
return await ((_a2 = this.document.group) == null ? void 0 : _a2.get(
|
|
35454
|
+
return await ((_a2 = this.document.group) == null ? void 0 : _a2.get(index2));
|
|
35455
35455
|
}
|
|
35456
35456
|
async getAssemblyInstanceIndex(elementIndex) {
|
|
35457
35457
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.AssemblyInstance:AssemblyInstance");
|
|
@@ -35461,11 +35461,11 @@ function requireObjectModel() {
|
|
|
35461
35461
|
}
|
|
35462
35462
|
async getAssemblyInstance(elementIndex) {
|
|
35463
35463
|
var _a2;
|
|
35464
|
-
const
|
|
35465
|
-
if (
|
|
35464
|
+
const index2 = await this.getAssemblyInstanceIndex(elementIndex);
|
|
35465
|
+
if (index2 === void 0) {
|
|
35466
35466
|
return void 0;
|
|
35467
35467
|
}
|
|
35468
|
-
return await ((_a2 = this.document.assemblyInstance) == null ? void 0 : _a2.get(
|
|
35468
|
+
return await ((_a2 = this.document.assemblyInstance) == null ? void 0 : _a2.get(index2));
|
|
35469
35469
|
}
|
|
35470
35470
|
async getBimDocumentIndex(elementIndex) {
|
|
35471
35471
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.BimDocument:BimDocument");
|
|
@@ -35475,11 +35475,11 @@ function requireObjectModel() {
|
|
|
35475
35475
|
}
|
|
35476
35476
|
async getBimDocument(elementIndex) {
|
|
35477
35477
|
var _a2;
|
|
35478
|
-
const
|
|
35479
|
-
if (
|
|
35478
|
+
const index2 = await this.getBimDocumentIndex(elementIndex);
|
|
35479
|
+
if (index2 === void 0) {
|
|
35480
35480
|
return void 0;
|
|
35481
35481
|
}
|
|
35482
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
35482
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
35483
35483
|
}
|
|
35484
35484
|
async getRoomIndex(elementIndex) {
|
|
35485
35485
|
return await this.entityTable.getNumber(elementIndex, "index:Vim.Room:Room");
|
|
@@ -35489,27 +35489,27 @@ function requireObjectModel() {
|
|
|
35489
35489
|
}
|
|
35490
35490
|
async getRoom(elementIndex) {
|
|
35491
35491
|
var _a2;
|
|
35492
|
-
const
|
|
35493
|
-
if (
|
|
35492
|
+
const index2 = await this.getRoomIndex(elementIndex);
|
|
35493
|
+
if (index2 === void 0) {
|
|
35494
35494
|
return void 0;
|
|
35495
35495
|
}
|
|
35496
|
-
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(
|
|
35496
|
+
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(index2));
|
|
35497
35497
|
}
|
|
35498
35498
|
}
|
|
35499
35499
|
objectModel.ElementTable = ElementTable;
|
|
35500
35500
|
class Workset {
|
|
35501
|
-
static async createFromTable(table,
|
|
35501
|
+
static async createFromTable(table, index2) {
|
|
35502
35502
|
let result = new Workset();
|
|
35503
|
-
result.index =
|
|
35503
|
+
result.index = index2;
|
|
35504
35504
|
await Promise.all([
|
|
35505
|
-
table.getId(
|
|
35506
|
-
table.getName(
|
|
35507
|
-
table.getKind(
|
|
35508
|
-
table.getIsOpen(
|
|
35509
|
-
table.getIsEditable(
|
|
35510
|
-
table.getOwner(
|
|
35511
|
-
table.getUniqueId(
|
|
35512
|
-
table.getBimDocumentIndex(
|
|
35505
|
+
table.getId(index2).then((v) => result.id = v),
|
|
35506
|
+
table.getName(index2).then((v) => result.name = v),
|
|
35507
|
+
table.getKind(index2).then((v) => result.kind = v),
|
|
35508
|
+
table.getIsOpen(index2).then((v) => result.isOpen = v),
|
|
35509
|
+
table.getIsEditable(index2).then((v) => result.isEditable = v),
|
|
35510
|
+
table.getOwner(index2).then((v) => result.owner = v),
|
|
35511
|
+
table.getUniqueId(index2).then((v) => result.uniqueId = v),
|
|
35512
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v)
|
|
35513
35513
|
]);
|
|
35514
35514
|
return result;
|
|
35515
35515
|
}
|
|
@@ -35635,24 +35635,24 @@ function requireObjectModel() {
|
|
|
35635
35635
|
}
|
|
35636
35636
|
async getBimDocument(worksetIndex) {
|
|
35637
35637
|
var _a2;
|
|
35638
|
-
const
|
|
35639
|
-
if (
|
|
35638
|
+
const index2 = await this.getBimDocumentIndex(worksetIndex);
|
|
35639
|
+
if (index2 === void 0) {
|
|
35640
35640
|
return void 0;
|
|
35641
35641
|
}
|
|
35642
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
35642
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
35643
35643
|
}
|
|
35644
35644
|
}
|
|
35645
35645
|
objectModel.WorksetTable = WorksetTable;
|
|
35646
35646
|
class AssemblyInstance {
|
|
35647
|
-
static async createFromTable(table,
|
|
35647
|
+
static async createFromTable(table, index2) {
|
|
35648
35648
|
let result = new AssemblyInstance();
|
|
35649
|
-
result.index =
|
|
35649
|
+
result.index = index2;
|
|
35650
35650
|
await Promise.all([
|
|
35651
|
-
table.getAssemblyTypeName(
|
|
35652
|
-
table.getPosition_X(
|
|
35653
|
-
table.getPosition_Y(
|
|
35654
|
-
table.getPosition_Z(
|
|
35655
|
-
table.getElementIndex(
|
|
35651
|
+
table.getAssemblyTypeName(index2).then((v) => result.assemblyTypeName = v),
|
|
35652
|
+
table.getPosition_X(index2).then((v) => result.position_X = v),
|
|
35653
|
+
table.getPosition_Y(index2).then((v) => result.position_Y = v),
|
|
35654
|
+
table.getPosition_Z(index2).then((v) => result.position_Z = v),
|
|
35655
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35656
35656
|
]);
|
|
35657
35657
|
return result;
|
|
35658
35658
|
}
|
|
@@ -35745,24 +35745,24 @@ function requireObjectModel() {
|
|
|
35745
35745
|
}
|
|
35746
35746
|
async getElement(assemblyInstanceIndex) {
|
|
35747
35747
|
var _a2;
|
|
35748
|
-
const
|
|
35749
|
-
if (
|
|
35748
|
+
const index2 = await this.getElementIndex(assemblyInstanceIndex);
|
|
35749
|
+
if (index2 === void 0) {
|
|
35750
35750
|
return void 0;
|
|
35751
35751
|
}
|
|
35752
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
35752
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
35753
35753
|
}
|
|
35754
35754
|
}
|
|
35755
35755
|
objectModel.AssemblyInstanceTable = AssemblyInstanceTable;
|
|
35756
35756
|
class Group2 {
|
|
35757
|
-
static async createFromTable(table,
|
|
35757
|
+
static async createFromTable(table, index2) {
|
|
35758
35758
|
let result = new Group2();
|
|
35759
|
-
result.index =
|
|
35759
|
+
result.index = index2;
|
|
35760
35760
|
await Promise.all([
|
|
35761
|
-
table.getGroupType(
|
|
35762
|
-
table.getPosition_X(
|
|
35763
|
-
table.getPosition_Y(
|
|
35764
|
-
table.getPosition_Z(
|
|
35765
|
-
table.getElementIndex(
|
|
35761
|
+
table.getGroupType(index2).then((v) => result.groupType = v),
|
|
35762
|
+
table.getPosition_X(index2).then((v) => result.position_X = v),
|
|
35763
|
+
table.getPosition_Y(index2).then((v) => result.position_Y = v),
|
|
35764
|
+
table.getPosition_Z(index2).then((v) => result.position_Z = v),
|
|
35765
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35766
35766
|
]);
|
|
35767
35767
|
return result;
|
|
35768
35768
|
}
|
|
@@ -35855,21 +35855,21 @@ function requireObjectModel() {
|
|
|
35855
35855
|
}
|
|
35856
35856
|
async getElement(groupIndex) {
|
|
35857
35857
|
var _a2;
|
|
35858
|
-
const
|
|
35859
|
-
if (
|
|
35858
|
+
const index2 = await this.getElementIndex(groupIndex);
|
|
35859
|
+
if (index2 === void 0) {
|
|
35860
35860
|
return void 0;
|
|
35861
35861
|
}
|
|
35862
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
35862
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
35863
35863
|
}
|
|
35864
35864
|
}
|
|
35865
35865
|
objectModel.GroupTable = GroupTable;
|
|
35866
35866
|
class DesignOption {
|
|
35867
|
-
static async createFromTable(table,
|
|
35867
|
+
static async createFromTable(table, index2) {
|
|
35868
35868
|
let result = new DesignOption();
|
|
35869
|
-
result.index =
|
|
35869
|
+
result.index = index2;
|
|
35870
35870
|
await Promise.all([
|
|
35871
|
-
table.getIsPrimary(
|
|
35872
|
-
table.getElementIndex(
|
|
35871
|
+
table.getIsPrimary(index2).then((v) => result.isPrimary = v),
|
|
35872
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35873
35873
|
]);
|
|
35874
35874
|
return result;
|
|
35875
35875
|
}
|
|
@@ -35929,23 +35929,23 @@ function requireObjectModel() {
|
|
|
35929
35929
|
}
|
|
35930
35930
|
async getElement(designOptionIndex) {
|
|
35931
35931
|
var _a2;
|
|
35932
|
-
const
|
|
35933
|
-
if (
|
|
35932
|
+
const index2 = await this.getElementIndex(designOptionIndex);
|
|
35933
|
+
if (index2 === void 0) {
|
|
35934
35934
|
return void 0;
|
|
35935
35935
|
}
|
|
35936
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
35936
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
35937
35937
|
}
|
|
35938
35938
|
}
|
|
35939
35939
|
objectModel.DesignOptionTable = DesignOptionTable;
|
|
35940
35940
|
class Level {
|
|
35941
|
-
static async createFromTable(table,
|
|
35941
|
+
static async createFromTable(table, index2) {
|
|
35942
35942
|
let result = new Level();
|
|
35943
|
-
result.index =
|
|
35943
|
+
result.index = index2;
|
|
35944
35944
|
await Promise.all([
|
|
35945
|
-
table.getElevation(
|
|
35946
|
-
table.getFamilyTypeIndex(
|
|
35947
|
-
table.getBuildingIndex(
|
|
35948
|
-
table.getElementIndex(
|
|
35945
|
+
table.getElevation(index2).then((v) => result.elevation = v),
|
|
35946
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
35947
|
+
table.getBuildingIndex(index2).then((v) => result.buildingIndex = v),
|
|
35948
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
35949
35949
|
]);
|
|
35950
35950
|
return result;
|
|
35951
35951
|
}
|
|
@@ -36015,11 +36015,11 @@ function requireObjectModel() {
|
|
|
36015
36015
|
}
|
|
36016
36016
|
async getFamilyType(levelIndex) {
|
|
36017
36017
|
var _a2;
|
|
36018
|
-
const
|
|
36019
|
-
if (
|
|
36018
|
+
const index2 = await this.getFamilyTypeIndex(levelIndex);
|
|
36019
|
+
if (index2 === void 0) {
|
|
36020
36020
|
return void 0;
|
|
36021
36021
|
}
|
|
36022
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
36022
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
36023
36023
|
}
|
|
36024
36024
|
async getBuildingIndex(levelIndex) {
|
|
36025
36025
|
return await this.entityTable.getNumber(levelIndex, "index:Vim.Building:Building");
|
|
@@ -36029,11 +36029,11 @@ function requireObjectModel() {
|
|
|
36029
36029
|
}
|
|
36030
36030
|
async getBuilding(levelIndex) {
|
|
36031
36031
|
var _a2;
|
|
36032
|
-
const
|
|
36033
|
-
if (
|
|
36032
|
+
const index2 = await this.getBuildingIndex(levelIndex);
|
|
36033
|
+
if (index2 === void 0) {
|
|
36034
36034
|
return void 0;
|
|
36035
36035
|
}
|
|
36036
|
-
return await ((_a2 = this.document.building) == null ? void 0 : _a2.get(
|
|
36036
|
+
return await ((_a2 = this.document.building) == null ? void 0 : _a2.get(index2));
|
|
36037
36037
|
}
|
|
36038
36038
|
async getElementIndex(levelIndex) {
|
|
36039
36039
|
return await this.entityTable.getNumber(levelIndex, "index:Vim.Element:Element");
|
|
@@ -36043,20 +36043,20 @@ function requireObjectModel() {
|
|
|
36043
36043
|
}
|
|
36044
36044
|
async getElement(levelIndex) {
|
|
36045
36045
|
var _a2;
|
|
36046
|
-
const
|
|
36047
|
-
if (
|
|
36046
|
+
const index2 = await this.getElementIndex(levelIndex);
|
|
36047
|
+
if (index2 === void 0) {
|
|
36048
36048
|
return void 0;
|
|
36049
36049
|
}
|
|
36050
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
36050
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
36051
36051
|
}
|
|
36052
36052
|
}
|
|
36053
36053
|
objectModel.LevelTable = LevelTable;
|
|
36054
36054
|
class Phase {
|
|
36055
|
-
static async createFromTable(table,
|
|
36055
|
+
static async createFromTable(table, index2) {
|
|
36056
36056
|
let result = new Phase();
|
|
36057
|
-
result.index =
|
|
36057
|
+
result.index = index2;
|
|
36058
36058
|
await Promise.all([
|
|
36059
|
-
table.getElementIndex(
|
|
36059
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
36060
36060
|
]);
|
|
36061
36061
|
return result;
|
|
36062
36062
|
}
|
|
@@ -36105,28 +36105,28 @@ function requireObjectModel() {
|
|
|
36105
36105
|
}
|
|
36106
36106
|
async getElement(phaseIndex) {
|
|
36107
36107
|
var _a2;
|
|
36108
|
-
const
|
|
36109
|
-
if (
|
|
36108
|
+
const index2 = await this.getElementIndex(phaseIndex);
|
|
36109
|
+
if (index2 === void 0) {
|
|
36110
36110
|
return void 0;
|
|
36111
36111
|
}
|
|
36112
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
36112
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
36113
36113
|
}
|
|
36114
36114
|
}
|
|
36115
36115
|
objectModel.PhaseTable = PhaseTable;
|
|
36116
36116
|
class Room {
|
|
36117
|
-
static async createFromTable(table,
|
|
36117
|
+
static async createFromTable(table, index2) {
|
|
36118
36118
|
let result = new Room();
|
|
36119
|
-
result.index =
|
|
36119
|
+
result.index = index2;
|
|
36120
36120
|
await Promise.all([
|
|
36121
|
-
table.getBaseOffset(
|
|
36122
|
-
table.getLimitOffset(
|
|
36123
|
-
table.getUnboundedHeight(
|
|
36124
|
-
table.getVolume(
|
|
36125
|
-
table.getPerimeter(
|
|
36126
|
-
table.getArea(
|
|
36127
|
-
table.getNumber(
|
|
36128
|
-
table.getUpperLimitIndex(
|
|
36129
|
-
table.getElementIndex(
|
|
36121
|
+
table.getBaseOffset(index2).then((v) => result.baseOffset = v),
|
|
36122
|
+
table.getLimitOffset(index2).then((v) => result.limitOffset = v),
|
|
36123
|
+
table.getUnboundedHeight(index2).then((v) => result.unboundedHeight = v),
|
|
36124
|
+
table.getVolume(index2).then((v) => result.volume = v),
|
|
36125
|
+
table.getPerimeter(index2).then((v) => result.perimeter = v),
|
|
36126
|
+
table.getArea(index2).then((v) => result.area = v),
|
|
36127
|
+
table.getNumber(index2).then((v) => result.number = v),
|
|
36128
|
+
table.getUpperLimitIndex(index2).then((v) => result.upperLimitIndex = v),
|
|
36129
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
36130
36130
|
]);
|
|
36131
36131
|
return result;
|
|
36132
36132
|
}
|
|
@@ -36257,11 +36257,11 @@ function requireObjectModel() {
|
|
|
36257
36257
|
}
|
|
36258
36258
|
async getUpperLimit(roomIndex) {
|
|
36259
36259
|
var _a2;
|
|
36260
|
-
const
|
|
36261
|
-
if (
|
|
36260
|
+
const index2 = await this.getUpperLimitIndex(roomIndex);
|
|
36261
|
+
if (index2 === void 0) {
|
|
36262
36262
|
return void 0;
|
|
36263
36263
|
}
|
|
36264
|
-
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(
|
|
36264
|
+
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(index2));
|
|
36265
36265
|
}
|
|
36266
36266
|
async getElementIndex(roomIndex) {
|
|
36267
36267
|
return await this.entityTable.getNumber(roomIndex, "index:Vim.Element:Element");
|
|
@@ -36271,51 +36271,51 @@ function requireObjectModel() {
|
|
|
36271
36271
|
}
|
|
36272
36272
|
async getElement(roomIndex) {
|
|
36273
36273
|
var _a2;
|
|
36274
|
-
const
|
|
36275
|
-
if (
|
|
36274
|
+
const index2 = await this.getElementIndex(roomIndex);
|
|
36275
|
+
if (index2 === void 0) {
|
|
36276
36276
|
return void 0;
|
|
36277
36277
|
}
|
|
36278
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
36278
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
36279
36279
|
}
|
|
36280
36280
|
}
|
|
36281
36281
|
objectModel.RoomTable = RoomTable;
|
|
36282
36282
|
class BimDocument {
|
|
36283
|
-
static async createFromTable(table,
|
|
36283
|
+
static async createFromTable(table, index2) {
|
|
36284
36284
|
let result = new BimDocument();
|
|
36285
|
-
result.index =
|
|
36285
|
+
result.index = index2;
|
|
36286
36286
|
await Promise.all([
|
|
36287
|
-
table.getTitle(
|
|
36288
|
-
table.getIsMetric(
|
|
36289
|
-
table.getGuid(
|
|
36290
|
-
table.getNumSaves(
|
|
36291
|
-
table.getIsLinked(
|
|
36292
|
-
table.getIsDetached(
|
|
36293
|
-
table.getIsWorkshared(
|
|
36294
|
-
table.getPathName(
|
|
36295
|
-
table.getLatitude(
|
|
36296
|
-
table.getLongitude(
|
|
36297
|
-
table.getTimeZone(
|
|
36298
|
-
table.getPlaceName(
|
|
36299
|
-
table.getWeatherStationName(
|
|
36300
|
-
table.getElevation(
|
|
36301
|
-
table.getProjectLocation(
|
|
36302
|
-
table.getIssueDate(
|
|
36303
|
-
table.getStatus(
|
|
36304
|
-
table.getClientName(
|
|
36305
|
-
table.getAddress(
|
|
36306
|
-
table.getName(
|
|
36307
|
-
table.getNumber(
|
|
36308
|
-
table.getAuthor(
|
|
36309
|
-
table.getBuildingName(
|
|
36310
|
-
table.getOrganizationName(
|
|
36311
|
-
table.getOrganizationDescription(
|
|
36312
|
-
table.getProduct(
|
|
36313
|
-
table.getVersion(
|
|
36314
|
-
table.getUser(
|
|
36315
|
-
table.getActiveViewIndex(
|
|
36316
|
-
table.getOwnerFamilyIndex(
|
|
36317
|
-
table.getParentIndex(
|
|
36318
|
-
table.getElementIndex(
|
|
36287
|
+
table.getTitle(index2).then((v) => result.title = v),
|
|
36288
|
+
table.getIsMetric(index2).then((v) => result.isMetric = v),
|
|
36289
|
+
table.getGuid(index2).then((v) => result.guid = v),
|
|
36290
|
+
table.getNumSaves(index2).then((v) => result.numSaves = v),
|
|
36291
|
+
table.getIsLinked(index2).then((v) => result.isLinked = v),
|
|
36292
|
+
table.getIsDetached(index2).then((v) => result.isDetached = v),
|
|
36293
|
+
table.getIsWorkshared(index2).then((v) => result.isWorkshared = v),
|
|
36294
|
+
table.getPathName(index2).then((v) => result.pathName = v),
|
|
36295
|
+
table.getLatitude(index2).then((v) => result.latitude = v),
|
|
36296
|
+
table.getLongitude(index2).then((v) => result.longitude = v),
|
|
36297
|
+
table.getTimeZone(index2).then((v) => result.timeZone = v),
|
|
36298
|
+
table.getPlaceName(index2).then((v) => result.placeName = v),
|
|
36299
|
+
table.getWeatherStationName(index2).then((v) => result.weatherStationName = v),
|
|
36300
|
+
table.getElevation(index2).then((v) => result.elevation = v),
|
|
36301
|
+
table.getProjectLocation(index2).then((v) => result.projectLocation = v),
|
|
36302
|
+
table.getIssueDate(index2).then((v) => result.issueDate = v),
|
|
36303
|
+
table.getStatus(index2).then((v) => result.status = v),
|
|
36304
|
+
table.getClientName(index2).then((v) => result.clientName = v),
|
|
36305
|
+
table.getAddress(index2).then((v) => result.address = v),
|
|
36306
|
+
table.getName(index2).then((v) => result.name = v),
|
|
36307
|
+
table.getNumber(index2).then((v) => result.number = v),
|
|
36308
|
+
table.getAuthor(index2).then((v) => result.author = v),
|
|
36309
|
+
table.getBuildingName(index2).then((v) => result.buildingName = v),
|
|
36310
|
+
table.getOrganizationName(index2).then((v) => result.organizationName = v),
|
|
36311
|
+
table.getOrganizationDescription(index2).then((v) => result.organizationDescription = v),
|
|
36312
|
+
table.getProduct(index2).then((v) => result.product = v),
|
|
36313
|
+
table.getVersion(index2).then((v) => result.version = v),
|
|
36314
|
+
table.getUser(index2).then((v) => result.user = v),
|
|
36315
|
+
table.getActiveViewIndex(index2).then((v) => result.activeViewIndex = v),
|
|
36316
|
+
table.getOwnerFamilyIndex(index2).then((v) => result.ownerFamilyIndex = v),
|
|
36317
|
+
table.getParentIndex(index2).then((v) => result.parentIndex = v),
|
|
36318
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
36319
36319
|
]);
|
|
36320
36320
|
return result;
|
|
36321
36321
|
}
|
|
@@ -36687,11 +36687,11 @@ function requireObjectModel() {
|
|
|
36687
36687
|
}
|
|
36688
36688
|
async getActiveView(bimDocumentIndex) {
|
|
36689
36689
|
var _a2;
|
|
36690
|
-
const
|
|
36691
|
-
if (
|
|
36690
|
+
const index2 = await this.getActiveViewIndex(bimDocumentIndex);
|
|
36691
|
+
if (index2 === void 0) {
|
|
36692
36692
|
return void 0;
|
|
36693
36693
|
}
|
|
36694
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
36694
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
36695
36695
|
}
|
|
36696
36696
|
async getOwnerFamilyIndex(bimDocumentIndex) {
|
|
36697
36697
|
return await this.entityTable.getNumber(bimDocumentIndex, "index:Vim.Family:OwnerFamily");
|
|
@@ -36701,11 +36701,11 @@ function requireObjectModel() {
|
|
|
36701
36701
|
}
|
|
36702
36702
|
async getOwnerFamily(bimDocumentIndex) {
|
|
36703
36703
|
var _a2;
|
|
36704
|
-
const
|
|
36705
|
-
if (
|
|
36704
|
+
const index2 = await this.getOwnerFamilyIndex(bimDocumentIndex);
|
|
36705
|
+
if (index2 === void 0) {
|
|
36706
36706
|
return void 0;
|
|
36707
36707
|
}
|
|
36708
|
-
return await ((_a2 = this.document.family) == null ? void 0 : _a2.get(
|
|
36708
|
+
return await ((_a2 = this.document.family) == null ? void 0 : _a2.get(index2));
|
|
36709
36709
|
}
|
|
36710
36710
|
async getParentIndex(bimDocumentIndex) {
|
|
36711
36711
|
return await this.entityTable.getNumber(bimDocumentIndex, "index:Vim.BimDocument:Parent");
|
|
@@ -36715,11 +36715,11 @@ function requireObjectModel() {
|
|
|
36715
36715
|
}
|
|
36716
36716
|
async getParent(bimDocumentIndex) {
|
|
36717
36717
|
var _a2;
|
|
36718
|
-
const
|
|
36719
|
-
if (
|
|
36718
|
+
const index2 = await this.getParentIndex(bimDocumentIndex);
|
|
36719
|
+
if (index2 === void 0) {
|
|
36720
36720
|
return void 0;
|
|
36721
36721
|
}
|
|
36722
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
36722
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
36723
36723
|
}
|
|
36724
36724
|
async getElementIndex(bimDocumentIndex) {
|
|
36725
36725
|
return await this.entityTable.getNumber(bimDocumentIndex, "index:Vim.Element:Element");
|
|
@@ -36729,21 +36729,21 @@ function requireObjectModel() {
|
|
|
36729
36729
|
}
|
|
36730
36730
|
async getElement(bimDocumentIndex) {
|
|
36731
36731
|
var _a2;
|
|
36732
|
-
const
|
|
36733
|
-
if (
|
|
36732
|
+
const index2 = await this.getElementIndex(bimDocumentIndex);
|
|
36733
|
+
if (index2 === void 0) {
|
|
36734
36734
|
return void 0;
|
|
36735
36735
|
}
|
|
36736
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
36736
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
36737
36737
|
}
|
|
36738
36738
|
}
|
|
36739
36739
|
objectModel.BimDocumentTable = BimDocumentTable;
|
|
36740
36740
|
class DisplayUnitInBimDocument {
|
|
36741
|
-
static async createFromTable(table,
|
|
36741
|
+
static async createFromTable(table, index2) {
|
|
36742
36742
|
let result = new DisplayUnitInBimDocument();
|
|
36743
|
-
result.index =
|
|
36743
|
+
result.index = index2;
|
|
36744
36744
|
await Promise.all([
|
|
36745
|
-
table.getDisplayUnitIndex(
|
|
36746
|
-
table.getBimDocumentIndex(
|
|
36745
|
+
table.getDisplayUnitIndex(index2).then((v) => result.displayUnitIndex = v),
|
|
36746
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v)
|
|
36747
36747
|
]);
|
|
36748
36748
|
return result;
|
|
36749
36749
|
}
|
|
@@ -36797,11 +36797,11 @@ function requireObjectModel() {
|
|
|
36797
36797
|
}
|
|
36798
36798
|
async getDisplayUnit(displayUnitInBimDocumentIndex) {
|
|
36799
36799
|
var _a2;
|
|
36800
|
-
const
|
|
36801
|
-
if (
|
|
36800
|
+
const index2 = await this.getDisplayUnitIndex(displayUnitInBimDocumentIndex);
|
|
36801
|
+
if (index2 === void 0) {
|
|
36802
36802
|
return void 0;
|
|
36803
36803
|
}
|
|
36804
|
-
return await ((_a2 = this.document.displayUnit) == null ? void 0 : _a2.get(
|
|
36804
|
+
return await ((_a2 = this.document.displayUnit) == null ? void 0 : _a2.get(index2));
|
|
36805
36805
|
}
|
|
36806
36806
|
async getBimDocumentIndex(displayUnitInBimDocumentIndex) {
|
|
36807
36807
|
return await this.entityTable.getNumber(displayUnitInBimDocumentIndex, "index:Vim.BimDocument:BimDocument");
|
|
@@ -36811,22 +36811,22 @@ function requireObjectModel() {
|
|
|
36811
36811
|
}
|
|
36812
36812
|
async getBimDocument(displayUnitInBimDocumentIndex) {
|
|
36813
36813
|
var _a2;
|
|
36814
|
-
const
|
|
36815
|
-
if (
|
|
36814
|
+
const index2 = await this.getBimDocumentIndex(displayUnitInBimDocumentIndex);
|
|
36815
|
+
if (index2 === void 0) {
|
|
36816
36816
|
return void 0;
|
|
36817
36817
|
}
|
|
36818
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
36818
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
36819
36819
|
}
|
|
36820
36820
|
}
|
|
36821
36821
|
objectModel.DisplayUnitInBimDocumentTable = DisplayUnitInBimDocumentTable;
|
|
36822
36822
|
class PhaseOrderInBimDocument {
|
|
36823
|
-
static async createFromTable(table,
|
|
36823
|
+
static async createFromTable(table, index2) {
|
|
36824
36824
|
let result = new PhaseOrderInBimDocument();
|
|
36825
|
-
result.index =
|
|
36825
|
+
result.index = index2;
|
|
36826
36826
|
await Promise.all([
|
|
36827
|
-
table.getOrderIndex(
|
|
36828
|
-
table.getPhaseIndex(
|
|
36829
|
-
table.getBimDocumentIndex(
|
|
36827
|
+
table.getOrderIndex(index2).then((v) => result.orderIndex = v),
|
|
36828
|
+
table.getPhaseIndex(index2).then((v) => result.phaseIndex = v),
|
|
36829
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v)
|
|
36830
36830
|
]);
|
|
36831
36831
|
return result;
|
|
36832
36832
|
}
|
|
@@ -36891,11 +36891,11 @@ function requireObjectModel() {
|
|
|
36891
36891
|
}
|
|
36892
36892
|
async getPhase(phaseOrderInBimDocumentIndex) {
|
|
36893
36893
|
var _a2;
|
|
36894
|
-
const
|
|
36895
|
-
if (
|
|
36894
|
+
const index2 = await this.getPhaseIndex(phaseOrderInBimDocumentIndex);
|
|
36895
|
+
if (index2 === void 0) {
|
|
36896
36896
|
return void 0;
|
|
36897
36897
|
}
|
|
36898
|
-
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(
|
|
36898
|
+
return await ((_a2 = this.document.phase) == null ? void 0 : _a2.get(index2));
|
|
36899
36899
|
}
|
|
36900
36900
|
async getBimDocumentIndex(phaseOrderInBimDocumentIndex) {
|
|
36901
36901
|
return await this.entityTable.getNumber(phaseOrderInBimDocumentIndex, "index:Vim.BimDocument:BimDocument");
|
|
@@ -36905,28 +36905,28 @@ function requireObjectModel() {
|
|
|
36905
36905
|
}
|
|
36906
36906
|
async getBimDocument(phaseOrderInBimDocumentIndex) {
|
|
36907
36907
|
var _a2;
|
|
36908
|
-
const
|
|
36909
|
-
if (
|
|
36908
|
+
const index2 = await this.getBimDocumentIndex(phaseOrderInBimDocumentIndex);
|
|
36909
|
+
if (index2 === void 0) {
|
|
36910
36910
|
return void 0;
|
|
36911
36911
|
}
|
|
36912
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
36912
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
36913
36913
|
}
|
|
36914
36914
|
}
|
|
36915
36915
|
objectModel.PhaseOrderInBimDocumentTable = PhaseOrderInBimDocumentTable;
|
|
36916
36916
|
class Category {
|
|
36917
|
-
static async createFromTable(table,
|
|
36917
|
+
static async createFromTable(table, index2) {
|
|
36918
36918
|
let result = new Category();
|
|
36919
|
-
result.index =
|
|
36919
|
+
result.index = index2;
|
|
36920
36920
|
await Promise.all([
|
|
36921
|
-
table.getName(
|
|
36922
|
-
table.getId(
|
|
36923
|
-
table.getCategoryType(
|
|
36924
|
-
table.getLineColor_X(
|
|
36925
|
-
table.getLineColor_Y(
|
|
36926
|
-
table.getLineColor_Z(
|
|
36927
|
-
table.getBuiltInCategory(
|
|
36928
|
-
table.getParentIndex(
|
|
36929
|
-
table.getMaterialIndex(
|
|
36921
|
+
table.getName(index2).then((v) => result.name = v),
|
|
36922
|
+
table.getId(index2).then((v) => result.id = v),
|
|
36923
|
+
table.getCategoryType(index2).then((v) => result.categoryType = v),
|
|
36924
|
+
table.getLineColor_X(index2).then((v) => result.lineColor_X = v),
|
|
36925
|
+
table.getLineColor_Y(index2).then((v) => result.lineColor_Y = v),
|
|
36926
|
+
table.getLineColor_Z(index2).then((v) => result.lineColor_Z = v),
|
|
36927
|
+
table.getBuiltInCategory(index2).then((v) => result.builtInCategory = v),
|
|
36928
|
+
table.getParentIndex(index2).then((v) => result.parentIndex = v),
|
|
36929
|
+
table.getMaterialIndex(index2).then((v) => result.materialIndex = v)
|
|
36930
36930
|
]);
|
|
36931
36931
|
return result;
|
|
36932
36932
|
}
|
|
@@ -37057,11 +37057,11 @@ function requireObjectModel() {
|
|
|
37057
37057
|
}
|
|
37058
37058
|
async getParent(categoryIndex) {
|
|
37059
37059
|
var _a2;
|
|
37060
|
-
const
|
|
37061
|
-
if (
|
|
37060
|
+
const index2 = await this.getParentIndex(categoryIndex);
|
|
37061
|
+
if (index2 === void 0) {
|
|
37062
37062
|
return void 0;
|
|
37063
37063
|
}
|
|
37064
|
-
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(
|
|
37064
|
+
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(index2));
|
|
37065
37065
|
}
|
|
37066
37066
|
async getMaterialIndex(categoryIndex) {
|
|
37067
37067
|
return await this.entityTable.getNumber(categoryIndex, "index:Vim.Material:Material");
|
|
@@ -37071,25 +37071,25 @@ function requireObjectModel() {
|
|
|
37071
37071
|
}
|
|
37072
37072
|
async getMaterial(categoryIndex) {
|
|
37073
37073
|
var _a2;
|
|
37074
|
-
const
|
|
37075
|
-
if (
|
|
37074
|
+
const index2 = await this.getMaterialIndex(categoryIndex);
|
|
37075
|
+
if (index2 === void 0) {
|
|
37076
37076
|
return void 0;
|
|
37077
37077
|
}
|
|
37078
|
-
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(
|
|
37078
|
+
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(index2));
|
|
37079
37079
|
}
|
|
37080
37080
|
}
|
|
37081
37081
|
objectModel.CategoryTable = CategoryTable;
|
|
37082
37082
|
class Family {
|
|
37083
|
-
static async createFromTable(table,
|
|
37083
|
+
static async createFromTable(table, index2) {
|
|
37084
37084
|
let result = new Family();
|
|
37085
|
-
result.index =
|
|
37085
|
+
result.index = index2;
|
|
37086
37086
|
await Promise.all([
|
|
37087
|
-
table.getStructuralMaterialType(
|
|
37088
|
-
table.getStructuralSectionShape(
|
|
37089
|
-
table.getIsSystemFamily(
|
|
37090
|
-
table.getIsInPlace(
|
|
37091
|
-
table.getFamilyCategoryIndex(
|
|
37092
|
-
table.getElementIndex(
|
|
37087
|
+
table.getStructuralMaterialType(index2).then((v) => result.structuralMaterialType = v),
|
|
37088
|
+
table.getStructuralSectionShape(index2).then((v) => result.structuralSectionShape = v),
|
|
37089
|
+
table.getIsSystemFamily(index2).then((v) => result.isSystemFamily = v),
|
|
37090
|
+
table.getIsInPlace(index2).then((v) => result.isInPlace = v),
|
|
37091
|
+
table.getFamilyCategoryIndex(index2).then((v) => result.familyCategoryIndex = v),
|
|
37092
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
37093
37093
|
]);
|
|
37094
37094
|
return result;
|
|
37095
37095
|
}
|
|
@@ -37187,11 +37187,11 @@ function requireObjectModel() {
|
|
|
37187
37187
|
}
|
|
37188
37188
|
async getFamilyCategory(familyIndex) {
|
|
37189
37189
|
var _a2;
|
|
37190
|
-
const
|
|
37191
|
-
if (
|
|
37190
|
+
const index2 = await this.getFamilyCategoryIndex(familyIndex);
|
|
37191
|
+
if (index2 === void 0) {
|
|
37192
37192
|
return void 0;
|
|
37193
37193
|
}
|
|
37194
|
-
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(
|
|
37194
|
+
return await ((_a2 = this.document.category) == null ? void 0 : _a2.get(index2));
|
|
37195
37195
|
}
|
|
37196
37196
|
async getElementIndex(familyIndex) {
|
|
37197
37197
|
return await this.entityTable.getNumber(familyIndex, "index:Vim.Element:Element");
|
|
@@ -37201,23 +37201,23 @@ function requireObjectModel() {
|
|
|
37201
37201
|
}
|
|
37202
37202
|
async getElement(familyIndex) {
|
|
37203
37203
|
var _a2;
|
|
37204
|
-
const
|
|
37205
|
-
if (
|
|
37204
|
+
const index2 = await this.getElementIndex(familyIndex);
|
|
37205
|
+
if (index2 === void 0) {
|
|
37206
37206
|
return void 0;
|
|
37207
37207
|
}
|
|
37208
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
37208
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
37209
37209
|
}
|
|
37210
37210
|
}
|
|
37211
37211
|
objectModel.FamilyTable = FamilyTable;
|
|
37212
37212
|
class FamilyType {
|
|
37213
|
-
static async createFromTable(table,
|
|
37213
|
+
static async createFromTable(table, index2) {
|
|
37214
37214
|
let result = new FamilyType();
|
|
37215
|
-
result.index =
|
|
37215
|
+
result.index = index2;
|
|
37216
37216
|
await Promise.all([
|
|
37217
|
-
table.getIsSystemFamilyType(
|
|
37218
|
-
table.getFamilyIndex(
|
|
37219
|
-
table.getCompoundStructureIndex(
|
|
37220
|
-
table.getElementIndex(
|
|
37217
|
+
table.getIsSystemFamilyType(index2).then((v) => result.isSystemFamilyType = v),
|
|
37218
|
+
table.getFamilyIndex(index2).then((v) => result.familyIndex = v),
|
|
37219
|
+
table.getCompoundStructureIndex(index2).then((v) => result.compoundStructureIndex = v),
|
|
37220
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
37221
37221
|
]);
|
|
37222
37222
|
return result;
|
|
37223
37223
|
}
|
|
@@ -37287,11 +37287,11 @@ function requireObjectModel() {
|
|
|
37287
37287
|
}
|
|
37288
37288
|
async getFamily(familyTypeIndex) {
|
|
37289
37289
|
var _a2;
|
|
37290
|
-
const
|
|
37291
|
-
if (
|
|
37290
|
+
const index2 = await this.getFamilyIndex(familyTypeIndex);
|
|
37291
|
+
if (index2 === void 0) {
|
|
37292
37292
|
return void 0;
|
|
37293
37293
|
}
|
|
37294
|
-
return await ((_a2 = this.document.family) == null ? void 0 : _a2.get(
|
|
37294
|
+
return await ((_a2 = this.document.family) == null ? void 0 : _a2.get(index2));
|
|
37295
37295
|
}
|
|
37296
37296
|
async getCompoundStructureIndex(familyTypeIndex) {
|
|
37297
37297
|
return await this.entityTable.getNumber(familyTypeIndex, "index:Vim.CompoundStructure:CompoundStructure");
|
|
@@ -37301,11 +37301,11 @@ function requireObjectModel() {
|
|
|
37301
37301
|
}
|
|
37302
37302
|
async getCompoundStructure(familyTypeIndex) {
|
|
37303
37303
|
var _a2;
|
|
37304
|
-
const
|
|
37305
|
-
if (
|
|
37304
|
+
const index2 = await this.getCompoundStructureIndex(familyTypeIndex);
|
|
37305
|
+
if (index2 === void 0) {
|
|
37306
37306
|
return void 0;
|
|
37307
37307
|
}
|
|
37308
|
-
return await ((_a2 = this.document.compoundStructure) == null ? void 0 : _a2.get(
|
|
37308
|
+
return await ((_a2 = this.document.compoundStructure) == null ? void 0 : _a2.get(index2));
|
|
37309
37309
|
}
|
|
37310
37310
|
async getElementIndex(familyTypeIndex) {
|
|
37311
37311
|
return await this.entityTable.getNumber(familyTypeIndex, "index:Vim.Element:Element");
|
|
@@ -37315,47 +37315,47 @@ function requireObjectModel() {
|
|
|
37315
37315
|
}
|
|
37316
37316
|
async getElement(familyTypeIndex) {
|
|
37317
37317
|
var _a2;
|
|
37318
|
-
const
|
|
37319
|
-
if (
|
|
37318
|
+
const index2 = await this.getElementIndex(familyTypeIndex);
|
|
37319
|
+
if (index2 === void 0) {
|
|
37320
37320
|
return void 0;
|
|
37321
37321
|
}
|
|
37322
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
37322
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
37323
37323
|
}
|
|
37324
37324
|
}
|
|
37325
37325
|
objectModel.FamilyTypeTable = FamilyTypeTable;
|
|
37326
37326
|
class FamilyInstance {
|
|
37327
|
-
static async createFromTable(table,
|
|
37327
|
+
static async createFromTable(table, index2) {
|
|
37328
37328
|
let result = new FamilyInstance();
|
|
37329
|
-
result.index =
|
|
37329
|
+
result.index = index2;
|
|
37330
37330
|
await Promise.all([
|
|
37331
|
-
table.getFacingFlipped(
|
|
37332
|
-
table.getFacingOrientation_X(
|
|
37333
|
-
table.getFacingOrientation_Y(
|
|
37334
|
-
table.getFacingOrientation_Z(
|
|
37335
|
-
table.getHandFlipped(
|
|
37336
|
-
table.getMirrored(
|
|
37337
|
-
table.getHasModifiedGeometry(
|
|
37338
|
-
table.getScale(
|
|
37339
|
-
table.getBasisX_X(
|
|
37340
|
-
table.getBasisX_Y(
|
|
37341
|
-
table.getBasisX_Z(
|
|
37342
|
-
table.getBasisY_X(
|
|
37343
|
-
table.getBasisY_Y(
|
|
37344
|
-
table.getBasisY_Z(
|
|
37345
|
-
table.getBasisZ_X(
|
|
37346
|
-
table.getBasisZ_Y(
|
|
37347
|
-
table.getBasisZ_Z(
|
|
37348
|
-
table.getTranslation_X(
|
|
37349
|
-
table.getTranslation_Y(
|
|
37350
|
-
table.getTranslation_Z(
|
|
37351
|
-
table.getHandOrientation_X(
|
|
37352
|
-
table.getHandOrientation_Y(
|
|
37353
|
-
table.getHandOrientation_Z(
|
|
37354
|
-
table.getFamilyTypeIndex(
|
|
37355
|
-
table.getHostIndex(
|
|
37356
|
-
table.getFromRoomIndex(
|
|
37357
|
-
table.getToRoomIndex(
|
|
37358
|
-
table.getElementIndex(
|
|
37331
|
+
table.getFacingFlipped(index2).then((v) => result.facingFlipped = v),
|
|
37332
|
+
table.getFacingOrientation_X(index2).then((v) => result.facingOrientation_X = v),
|
|
37333
|
+
table.getFacingOrientation_Y(index2).then((v) => result.facingOrientation_Y = v),
|
|
37334
|
+
table.getFacingOrientation_Z(index2).then((v) => result.facingOrientation_Z = v),
|
|
37335
|
+
table.getHandFlipped(index2).then((v) => result.handFlipped = v),
|
|
37336
|
+
table.getMirrored(index2).then((v) => result.mirrored = v),
|
|
37337
|
+
table.getHasModifiedGeometry(index2).then((v) => result.hasModifiedGeometry = v),
|
|
37338
|
+
table.getScale(index2).then((v) => result.scale = v),
|
|
37339
|
+
table.getBasisX_X(index2).then((v) => result.basisX_X = v),
|
|
37340
|
+
table.getBasisX_Y(index2).then((v) => result.basisX_Y = v),
|
|
37341
|
+
table.getBasisX_Z(index2).then((v) => result.basisX_Z = v),
|
|
37342
|
+
table.getBasisY_X(index2).then((v) => result.basisY_X = v),
|
|
37343
|
+
table.getBasisY_Y(index2).then((v) => result.basisY_Y = v),
|
|
37344
|
+
table.getBasisY_Z(index2).then((v) => result.basisY_Z = v),
|
|
37345
|
+
table.getBasisZ_X(index2).then((v) => result.basisZ_X = v),
|
|
37346
|
+
table.getBasisZ_Y(index2).then((v) => result.basisZ_Y = v),
|
|
37347
|
+
table.getBasisZ_Z(index2).then((v) => result.basisZ_Z = v),
|
|
37348
|
+
table.getTranslation_X(index2).then((v) => result.translation_X = v),
|
|
37349
|
+
table.getTranslation_Y(index2).then((v) => result.translation_Y = v),
|
|
37350
|
+
table.getTranslation_Z(index2).then((v) => result.translation_Z = v),
|
|
37351
|
+
table.getHandOrientation_X(index2).then((v) => result.handOrientation_X = v),
|
|
37352
|
+
table.getHandOrientation_Y(index2).then((v) => result.handOrientation_Y = v),
|
|
37353
|
+
table.getHandOrientation_Z(index2).then((v) => result.handOrientation_Z = v),
|
|
37354
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
37355
|
+
table.getHostIndex(index2).then((v) => result.hostIndex = v),
|
|
37356
|
+
table.getFromRoomIndex(index2).then((v) => result.fromRoomIndex = v),
|
|
37357
|
+
table.getToRoomIndex(index2).then((v) => result.toRoomIndex = v),
|
|
37358
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
37359
37359
|
]);
|
|
37360
37360
|
return result;
|
|
37361
37361
|
}
|
|
@@ -37677,11 +37677,11 @@ function requireObjectModel() {
|
|
|
37677
37677
|
}
|
|
37678
37678
|
async getFamilyType(familyInstanceIndex) {
|
|
37679
37679
|
var _a2;
|
|
37680
|
-
const
|
|
37681
|
-
if (
|
|
37680
|
+
const index2 = await this.getFamilyTypeIndex(familyInstanceIndex);
|
|
37681
|
+
if (index2 === void 0) {
|
|
37682
37682
|
return void 0;
|
|
37683
37683
|
}
|
|
37684
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
37684
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
37685
37685
|
}
|
|
37686
37686
|
async getHostIndex(familyInstanceIndex) {
|
|
37687
37687
|
return await this.entityTable.getNumber(familyInstanceIndex, "index:Vim.Element:Host");
|
|
@@ -37691,11 +37691,11 @@ function requireObjectModel() {
|
|
|
37691
37691
|
}
|
|
37692
37692
|
async getHost(familyInstanceIndex) {
|
|
37693
37693
|
var _a2;
|
|
37694
|
-
const
|
|
37695
|
-
if (
|
|
37694
|
+
const index2 = await this.getHostIndex(familyInstanceIndex);
|
|
37695
|
+
if (index2 === void 0) {
|
|
37696
37696
|
return void 0;
|
|
37697
37697
|
}
|
|
37698
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
37698
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
37699
37699
|
}
|
|
37700
37700
|
async getFromRoomIndex(familyInstanceIndex) {
|
|
37701
37701
|
return await this.entityTable.getNumber(familyInstanceIndex, "index:Vim.Room:FromRoom");
|
|
@@ -37705,11 +37705,11 @@ function requireObjectModel() {
|
|
|
37705
37705
|
}
|
|
37706
37706
|
async getFromRoom(familyInstanceIndex) {
|
|
37707
37707
|
var _a2;
|
|
37708
|
-
const
|
|
37709
|
-
if (
|
|
37708
|
+
const index2 = await this.getFromRoomIndex(familyInstanceIndex);
|
|
37709
|
+
if (index2 === void 0) {
|
|
37710
37710
|
return void 0;
|
|
37711
37711
|
}
|
|
37712
|
-
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(
|
|
37712
|
+
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(index2));
|
|
37713
37713
|
}
|
|
37714
37714
|
async getToRoomIndex(familyInstanceIndex) {
|
|
37715
37715
|
return await this.entityTable.getNumber(familyInstanceIndex, "index:Vim.Room:ToRoom");
|
|
@@ -37719,11 +37719,11 @@ function requireObjectModel() {
|
|
|
37719
37719
|
}
|
|
37720
37720
|
async getToRoom(familyInstanceIndex) {
|
|
37721
37721
|
var _a2;
|
|
37722
|
-
const
|
|
37723
|
-
if (
|
|
37722
|
+
const index2 = await this.getToRoomIndex(familyInstanceIndex);
|
|
37723
|
+
if (index2 === void 0) {
|
|
37724
37724
|
return void 0;
|
|
37725
37725
|
}
|
|
37726
|
-
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(
|
|
37726
|
+
return await ((_a2 = this.document.room) == null ? void 0 : _a2.get(index2));
|
|
37727
37727
|
}
|
|
37728
37728
|
async getElementIndex(familyInstanceIndex) {
|
|
37729
37729
|
return await this.entityTable.getNumber(familyInstanceIndex, "index:Vim.Element:Element");
|
|
@@ -37733,45 +37733,45 @@ function requireObjectModel() {
|
|
|
37733
37733
|
}
|
|
37734
37734
|
async getElement(familyInstanceIndex) {
|
|
37735
37735
|
var _a2;
|
|
37736
|
-
const
|
|
37737
|
-
if (
|
|
37736
|
+
const index2 = await this.getElementIndex(familyInstanceIndex);
|
|
37737
|
+
if (index2 === void 0) {
|
|
37738
37738
|
return void 0;
|
|
37739
37739
|
}
|
|
37740
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
37740
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
37741
37741
|
}
|
|
37742
37742
|
}
|
|
37743
37743
|
objectModel.FamilyInstanceTable = FamilyInstanceTable;
|
|
37744
37744
|
class View {
|
|
37745
|
-
static async createFromTable(table,
|
|
37745
|
+
static async createFromTable(table, index2) {
|
|
37746
37746
|
let result = new View();
|
|
37747
|
-
result.index =
|
|
37747
|
+
result.index = index2;
|
|
37748
37748
|
await Promise.all([
|
|
37749
|
-
table.getTitle(
|
|
37750
|
-
table.getViewType(
|
|
37751
|
-
table.getUp_X(
|
|
37752
|
-
table.getUp_Y(
|
|
37753
|
-
table.getUp_Z(
|
|
37754
|
-
table.getRight_X(
|
|
37755
|
-
table.getRight_Y(
|
|
37756
|
-
table.getRight_Z(
|
|
37757
|
-
table.getOrigin_X(
|
|
37758
|
-
table.getOrigin_Y(
|
|
37759
|
-
table.getOrigin_Z(
|
|
37760
|
-
table.getViewDirection_X(
|
|
37761
|
-
table.getViewDirection_Y(
|
|
37762
|
-
table.getViewDirection_Z(
|
|
37763
|
-
table.getViewPosition_X(
|
|
37764
|
-
table.getViewPosition_Y(
|
|
37765
|
-
table.getViewPosition_Z(
|
|
37766
|
-
table.getScale(
|
|
37767
|
-
table.getOutline_Min_X(
|
|
37768
|
-
table.getOutline_Min_Y(
|
|
37769
|
-
table.getOutline_Max_X(
|
|
37770
|
-
table.getOutline_Max_Y(
|
|
37771
|
-
table.getDetailLevel(
|
|
37772
|
-
table.getCameraIndex(
|
|
37773
|
-
table.getFamilyTypeIndex(
|
|
37774
|
-
table.getElementIndex(
|
|
37749
|
+
table.getTitle(index2).then((v) => result.title = v),
|
|
37750
|
+
table.getViewType(index2).then((v) => result.viewType = v),
|
|
37751
|
+
table.getUp_X(index2).then((v) => result.up_X = v),
|
|
37752
|
+
table.getUp_Y(index2).then((v) => result.up_Y = v),
|
|
37753
|
+
table.getUp_Z(index2).then((v) => result.up_Z = v),
|
|
37754
|
+
table.getRight_X(index2).then((v) => result.right_X = v),
|
|
37755
|
+
table.getRight_Y(index2).then((v) => result.right_Y = v),
|
|
37756
|
+
table.getRight_Z(index2).then((v) => result.right_Z = v),
|
|
37757
|
+
table.getOrigin_X(index2).then((v) => result.origin_X = v),
|
|
37758
|
+
table.getOrigin_Y(index2).then((v) => result.origin_Y = v),
|
|
37759
|
+
table.getOrigin_Z(index2).then((v) => result.origin_Z = v),
|
|
37760
|
+
table.getViewDirection_X(index2).then((v) => result.viewDirection_X = v),
|
|
37761
|
+
table.getViewDirection_Y(index2).then((v) => result.viewDirection_Y = v),
|
|
37762
|
+
table.getViewDirection_Z(index2).then((v) => result.viewDirection_Z = v),
|
|
37763
|
+
table.getViewPosition_X(index2).then((v) => result.viewPosition_X = v),
|
|
37764
|
+
table.getViewPosition_Y(index2).then((v) => result.viewPosition_Y = v),
|
|
37765
|
+
table.getViewPosition_Z(index2).then((v) => result.viewPosition_Z = v),
|
|
37766
|
+
table.getScale(index2).then((v) => result.scale = v),
|
|
37767
|
+
table.getOutline_Min_X(index2).then((v) => result.outline_Min_X = v),
|
|
37768
|
+
table.getOutline_Min_Y(index2).then((v) => result.outline_Min_Y = v),
|
|
37769
|
+
table.getOutline_Max_X(index2).then((v) => result.outline_Max_X = v),
|
|
37770
|
+
table.getOutline_Max_Y(index2).then((v) => result.outline_Max_Y = v),
|
|
37771
|
+
table.getDetailLevel(index2).then((v) => result.detailLevel = v),
|
|
37772
|
+
table.getCameraIndex(index2).then((v) => result.cameraIndex = v),
|
|
37773
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
37774
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
37775
37775
|
]);
|
|
37776
37776
|
return result;
|
|
37777
37777
|
}
|
|
@@ -38083,11 +38083,11 @@ function requireObjectModel() {
|
|
|
38083
38083
|
}
|
|
38084
38084
|
async getCamera(viewIndex) {
|
|
38085
38085
|
var _a2;
|
|
38086
|
-
const
|
|
38087
|
-
if (
|
|
38086
|
+
const index2 = await this.getCameraIndex(viewIndex);
|
|
38087
|
+
if (index2 === void 0) {
|
|
38088
38088
|
return void 0;
|
|
38089
38089
|
}
|
|
38090
|
-
return await ((_a2 = this.document.camera) == null ? void 0 : _a2.get(
|
|
38090
|
+
return await ((_a2 = this.document.camera) == null ? void 0 : _a2.get(index2));
|
|
38091
38091
|
}
|
|
38092
38092
|
async getFamilyTypeIndex(viewIndex) {
|
|
38093
38093
|
return await this.entityTable.getNumber(viewIndex, "index:Vim.FamilyType:FamilyType");
|
|
@@ -38097,11 +38097,11 @@ function requireObjectModel() {
|
|
|
38097
38097
|
}
|
|
38098
38098
|
async getFamilyType(viewIndex) {
|
|
38099
38099
|
var _a2;
|
|
38100
|
-
const
|
|
38101
|
-
if (
|
|
38100
|
+
const index2 = await this.getFamilyTypeIndex(viewIndex);
|
|
38101
|
+
if (index2 === void 0) {
|
|
38102
38102
|
return void 0;
|
|
38103
38103
|
}
|
|
38104
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
38104
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
38105
38105
|
}
|
|
38106
38106
|
async getElementIndex(viewIndex) {
|
|
38107
38107
|
return await this.entityTable.getNumber(viewIndex, "index:Vim.Element:Element");
|
|
@@ -38111,21 +38111,21 @@ function requireObjectModel() {
|
|
|
38111
38111
|
}
|
|
38112
38112
|
async getElement(viewIndex) {
|
|
38113
38113
|
var _a2;
|
|
38114
|
-
const
|
|
38115
|
-
if (
|
|
38114
|
+
const index2 = await this.getElementIndex(viewIndex);
|
|
38115
|
+
if (index2 === void 0) {
|
|
38116
38116
|
return void 0;
|
|
38117
38117
|
}
|
|
38118
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
38118
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
38119
38119
|
}
|
|
38120
38120
|
}
|
|
38121
38121
|
objectModel.ViewTable = ViewTable;
|
|
38122
38122
|
class ElementInView {
|
|
38123
|
-
static async createFromTable(table,
|
|
38123
|
+
static async createFromTable(table, index2) {
|
|
38124
38124
|
let result = new ElementInView();
|
|
38125
|
-
result.index =
|
|
38125
|
+
result.index = index2;
|
|
38126
38126
|
await Promise.all([
|
|
38127
|
-
table.getViewIndex(
|
|
38128
|
-
table.getElementIndex(
|
|
38127
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v),
|
|
38128
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
38129
38129
|
]);
|
|
38130
38130
|
return result;
|
|
38131
38131
|
}
|
|
@@ -38179,11 +38179,11 @@ function requireObjectModel() {
|
|
|
38179
38179
|
}
|
|
38180
38180
|
async getView(elementInViewIndex) {
|
|
38181
38181
|
var _a2;
|
|
38182
|
-
const
|
|
38183
|
-
if (
|
|
38182
|
+
const index2 = await this.getViewIndex(elementInViewIndex);
|
|
38183
|
+
if (index2 === void 0) {
|
|
38184
38184
|
return void 0;
|
|
38185
38185
|
}
|
|
38186
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
38186
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
38187
38187
|
}
|
|
38188
38188
|
async getElementIndex(elementInViewIndex) {
|
|
38189
38189
|
return await this.entityTable.getNumber(elementInViewIndex, "index:Vim.Element:Element");
|
|
@@ -38193,21 +38193,21 @@ function requireObjectModel() {
|
|
|
38193
38193
|
}
|
|
38194
38194
|
async getElement(elementInViewIndex) {
|
|
38195
38195
|
var _a2;
|
|
38196
|
-
const
|
|
38197
|
-
if (
|
|
38196
|
+
const index2 = await this.getElementIndex(elementInViewIndex);
|
|
38197
|
+
if (index2 === void 0) {
|
|
38198
38198
|
return void 0;
|
|
38199
38199
|
}
|
|
38200
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
38200
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
38201
38201
|
}
|
|
38202
38202
|
}
|
|
38203
38203
|
objectModel.ElementInViewTable = ElementInViewTable;
|
|
38204
38204
|
class ShapeInView {
|
|
38205
|
-
static async createFromTable(table,
|
|
38205
|
+
static async createFromTable(table, index2) {
|
|
38206
38206
|
let result = new ShapeInView();
|
|
38207
|
-
result.index =
|
|
38207
|
+
result.index = index2;
|
|
38208
38208
|
await Promise.all([
|
|
38209
|
-
table.getShapeIndex(
|
|
38210
|
-
table.getViewIndex(
|
|
38209
|
+
table.getShapeIndex(index2).then((v) => result.shapeIndex = v),
|
|
38210
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v)
|
|
38211
38211
|
]);
|
|
38212
38212
|
return result;
|
|
38213
38213
|
}
|
|
@@ -38261,11 +38261,11 @@ function requireObjectModel() {
|
|
|
38261
38261
|
}
|
|
38262
38262
|
async getShape(shapeInViewIndex) {
|
|
38263
38263
|
var _a2;
|
|
38264
|
-
const
|
|
38265
|
-
if (
|
|
38264
|
+
const index2 = await this.getShapeIndex(shapeInViewIndex);
|
|
38265
|
+
if (index2 === void 0) {
|
|
38266
38266
|
return void 0;
|
|
38267
38267
|
}
|
|
38268
|
-
return await ((_a2 = this.document.shape) == null ? void 0 : _a2.get(
|
|
38268
|
+
return await ((_a2 = this.document.shape) == null ? void 0 : _a2.get(index2));
|
|
38269
38269
|
}
|
|
38270
38270
|
async getViewIndex(shapeInViewIndex) {
|
|
38271
38271
|
return await this.entityTable.getNumber(shapeInViewIndex, "index:Vim.View:View");
|
|
@@ -38275,21 +38275,21 @@ function requireObjectModel() {
|
|
|
38275
38275
|
}
|
|
38276
38276
|
async getView(shapeInViewIndex) {
|
|
38277
38277
|
var _a2;
|
|
38278
|
-
const
|
|
38279
|
-
if (
|
|
38278
|
+
const index2 = await this.getViewIndex(shapeInViewIndex);
|
|
38279
|
+
if (index2 === void 0) {
|
|
38280
38280
|
return void 0;
|
|
38281
38281
|
}
|
|
38282
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
38282
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
38283
38283
|
}
|
|
38284
38284
|
}
|
|
38285
38285
|
objectModel.ShapeInViewTable = ShapeInViewTable;
|
|
38286
38286
|
class AssetInView {
|
|
38287
|
-
static async createFromTable(table,
|
|
38287
|
+
static async createFromTable(table, index2) {
|
|
38288
38288
|
let result = new AssetInView();
|
|
38289
|
-
result.index =
|
|
38289
|
+
result.index = index2;
|
|
38290
38290
|
await Promise.all([
|
|
38291
|
-
table.getAssetIndex(
|
|
38292
|
-
table.getViewIndex(
|
|
38291
|
+
table.getAssetIndex(index2).then((v) => result.assetIndex = v),
|
|
38292
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v)
|
|
38293
38293
|
]);
|
|
38294
38294
|
return result;
|
|
38295
38295
|
}
|
|
@@ -38343,11 +38343,11 @@ function requireObjectModel() {
|
|
|
38343
38343
|
}
|
|
38344
38344
|
async getAsset(assetInViewIndex) {
|
|
38345
38345
|
var _a2;
|
|
38346
|
-
const
|
|
38347
|
-
if (
|
|
38346
|
+
const index2 = await this.getAssetIndex(assetInViewIndex);
|
|
38347
|
+
if (index2 === void 0) {
|
|
38348
38348
|
return void 0;
|
|
38349
38349
|
}
|
|
38350
|
-
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(
|
|
38350
|
+
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(index2));
|
|
38351
38351
|
}
|
|
38352
38352
|
async getViewIndex(assetInViewIndex) {
|
|
38353
38353
|
return await this.entityTable.getNumber(assetInViewIndex, "index:Vim.View:View");
|
|
@@ -38357,21 +38357,21 @@ function requireObjectModel() {
|
|
|
38357
38357
|
}
|
|
38358
38358
|
async getView(assetInViewIndex) {
|
|
38359
38359
|
var _a2;
|
|
38360
|
-
const
|
|
38361
|
-
if (
|
|
38360
|
+
const index2 = await this.getViewIndex(assetInViewIndex);
|
|
38361
|
+
if (index2 === void 0) {
|
|
38362
38362
|
return void 0;
|
|
38363
38363
|
}
|
|
38364
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
38364
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
38365
38365
|
}
|
|
38366
38366
|
}
|
|
38367
38367
|
objectModel.AssetInViewTable = AssetInViewTable;
|
|
38368
38368
|
class AssetInViewSheet {
|
|
38369
|
-
static async createFromTable(table,
|
|
38369
|
+
static async createFromTable(table, index2) {
|
|
38370
38370
|
let result = new AssetInViewSheet();
|
|
38371
|
-
result.index =
|
|
38371
|
+
result.index = index2;
|
|
38372
38372
|
await Promise.all([
|
|
38373
|
-
table.getAssetIndex(
|
|
38374
|
-
table.getViewSheetIndex(
|
|
38373
|
+
table.getAssetIndex(index2).then((v) => result.assetIndex = v),
|
|
38374
|
+
table.getViewSheetIndex(index2).then((v) => result.viewSheetIndex = v)
|
|
38375
38375
|
]);
|
|
38376
38376
|
return result;
|
|
38377
38377
|
}
|
|
@@ -38425,11 +38425,11 @@ function requireObjectModel() {
|
|
|
38425
38425
|
}
|
|
38426
38426
|
async getAsset(assetInViewSheetIndex) {
|
|
38427
38427
|
var _a2;
|
|
38428
|
-
const
|
|
38429
|
-
if (
|
|
38428
|
+
const index2 = await this.getAssetIndex(assetInViewSheetIndex);
|
|
38429
|
+
if (index2 === void 0) {
|
|
38430
38430
|
return void 0;
|
|
38431
38431
|
}
|
|
38432
|
-
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(
|
|
38432
|
+
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(index2));
|
|
38433
38433
|
}
|
|
38434
38434
|
async getViewSheetIndex(assetInViewSheetIndex) {
|
|
38435
38435
|
return await this.entityTable.getNumber(assetInViewSheetIndex, "index:Vim.ViewSheet:ViewSheet");
|
|
@@ -38439,27 +38439,27 @@ function requireObjectModel() {
|
|
|
38439
38439
|
}
|
|
38440
38440
|
async getViewSheet(assetInViewSheetIndex) {
|
|
38441
38441
|
var _a2;
|
|
38442
|
-
const
|
|
38443
|
-
if (
|
|
38442
|
+
const index2 = await this.getViewSheetIndex(assetInViewSheetIndex);
|
|
38443
|
+
if (index2 === void 0) {
|
|
38444
38444
|
return void 0;
|
|
38445
38445
|
}
|
|
38446
|
-
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(
|
|
38446
|
+
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(index2));
|
|
38447
38447
|
}
|
|
38448
38448
|
}
|
|
38449
38449
|
objectModel.AssetInViewSheetTable = AssetInViewSheetTable;
|
|
38450
38450
|
class LevelInView {
|
|
38451
|
-
static async createFromTable(table,
|
|
38451
|
+
static async createFromTable(table, index2) {
|
|
38452
38452
|
let result = new LevelInView();
|
|
38453
|
-
result.index =
|
|
38453
|
+
result.index = index2;
|
|
38454
38454
|
await Promise.all([
|
|
38455
|
-
table.getExtents_Min_X(
|
|
38456
|
-
table.getExtents_Min_Y(
|
|
38457
|
-
table.getExtents_Min_Z(
|
|
38458
|
-
table.getExtents_Max_X(
|
|
38459
|
-
table.getExtents_Max_Y(
|
|
38460
|
-
table.getExtents_Max_Z(
|
|
38461
|
-
table.getLevelIndex(
|
|
38462
|
-
table.getViewIndex(
|
|
38455
|
+
table.getExtents_Min_X(index2).then((v) => result.extents_Min_X = v),
|
|
38456
|
+
table.getExtents_Min_Y(index2).then((v) => result.extents_Min_Y = v),
|
|
38457
|
+
table.getExtents_Min_Z(index2).then((v) => result.extents_Min_Z = v),
|
|
38458
|
+
table.getExtents_Max_X(index2).then((v) => result.extents_Max_X = v),
|
|
38459
|
+
table.getExtents_Max_Y(index2).then((v) => result.extents_Max_Y = v),
|
|
38460
|
+
table.getExtents_Max_Z(index2).then((v) => result.extents_Max_Z = v),
|
|
38461
|
+
table.getLevelIndex(index2).then((v) => result.levelIndex = v),
|
|
38462
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v)
|
|
38463
38463
|
]);
|
|
38464
38464
|
return result;
|
|
38465
38465
|
}
|
|
@@ -38579,11 +38579,11 @@ function requireObjectModel() {
|
|
|
38579
38579
|
}
|
|
38580
38580
|
async getLevel(levelInViewIndex) {
|
|
38581
38581
|
var _a2;
|
|
38582
|
-
const
|
|
38583
|
-
if (
|
|
38582
|
+
const index2 = await this.getLevelIndex(levelInViewIndex);
|
|
38583
|
+
if (index2 === void 0) {
|
|
38584
38584
|
return void 0;
|
|
38585
38585
|
}
|
|
38586
|
-
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(
|
|
38586
|
+
return await ((_a2 = this.document.level) == null ? void 0 : _a2.get(index2));
|
|
38587
38587
|
}
|
|
38588
38588
|
async getViewIndex(levelInViewIndex) {
|
|
38589
38589
|
return await this.entityTable.getNumber(levelInViewIndex, "index:Vim.View:View");
|
|
@@ -38593,28 +38593,28 @@ function requireObjectModel() {
|
|
|
38593
38593
|
}
|
|
38594
38594
|
async getView(levelInViewIndex) {
|
|
38595
38595
|
var _a2;
|
|
38596
|
-
const
|
|
38597
|
-
if (
|
|
38596
|
+
const index2 = await this.getViewIndex(levelInViewIndex);
|
|
38597
|
+
if (index2 === void 0) {
|
|
38598
38598
|
return void 0;
|
|
38599
38599
|
}
|
|
38600
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
38600
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
38601
38601
|
}
|
|
38602
38602
|
}
|
|
38603
38603
|
objectModel.LevelInViewTable = LevelInViewTable;
|
|
38604
38604
|
class Camera4 {
|
|
38605
|
-
static async createFromTable(table,
|
|
38605
|
+
static async createFromTable(table, index2) {
|
|
38606
38606
|
let result = new Camera4();
|
|
38607
|
-
result.index =
|
|
38607
|
+
result.index = index2;
|
|
38608
38608
|
await Promise.all([
|
|
38609
|
-
table.getId(
|
|
38610
|
-
table.getIsPerspective(
|
|
38611
|
-
table.getVerticalExtent(
|
|
38612
|
-
table.getHorizontalExtent(
|
|
38613
|
-
table.getFarDistance(
|
|
38614
|
-
table.getNearDistance(
|
|
38615
|
-
table.getTargetDistance(
|
|
38616
|
-
table.getRightOffset(
|
|
38617
|
-
table.getUpOffset(
|
|
38609
|
+
table.getId(index2).then((v) => result.id = v),
|
|
38610
|
+
table.getIsPerspective(index2).then((v) => result.isPerspective = v),
|
|
38611
|
+
table.getVerticalExtent(index2).then((v) => result.verticalExtent = v),
|
|
38612
|
+
table.getHorizontalExtent(index2).then((v) => result.horizontalExtent = v),
|
|
38613
|
+
table.getFarDistance(index2).then((v) => result.farDistance = v),
|
|
38614
|
+
table.getNearDistance(index2).then((v) => result.nearDistance = v),
|
|
38615
|
+
table.getTargetDistance(index2).then((v) => result.targetDistance = v),
|
|
38616
|
+
table.getRightOffset(index2).then((v) => result.rightOffset = v),
|
|
38617
|
+
table.getUpOffset(index2).then((v) => result.upOffset = v)
|
|
38618
38618
|
]);
|
|
38619
38619
|
return result;
|
|
38620
38620
|
}
|
|
@@ -38751,30 +38751,30 @@ function requireObjectModel() {
|
|
|
38751
38751
|
}
|
|
38752
38752
|
objectModel.CameraTable = CameraTable;
|
|
38753
38753
|
class Material2 {
|
|
38754
|
-
static async createFromTable(table,
|
|
38754
|
+
static async createFromTable(table, index2) {
|
|
38755
38755
|
let result = new Material2();
|
|
38756
|
-
result.index =
|
|
38756
|
+
result.index = index2;
|
|
38757
38757
|
await Promise.all([
|
|
38758
|
-
table.getName(
|
|
38759
|
-
table.getMaterialCategory(
|
|
38760
|
-
table.getColor_X(
|
|
38761
|
-
table.getColor_Y(
|
|
38762
|
-
table.getColor_Z(
|
|
38763
|
-
table.getColorUvScaling_X(
|
|
38764
|
-
table.getColorUvScaling_Y(
|
|
38765
|
-
table.getColorUvOffset_X(
|
|
38766
|
-
table.getColorUvOffset_Y(
|
|
38767
|
-
table.getNormalUvScaling_X(
|
|
38768
|
-
table.getNormalUvScaling_Y(
|
|
38769
|
-
table.getNormalUvOffset_X(
|
|
38770
|
-
table.getNormalUvOffset_Y(
|
|
38771
|
-
table.getNormalAmount(
|
|
38772
|
-
table.getGlossiness(
|
|
38773
|
-
table.getSmoothness(
|
|
38774
|
-
table.getTransparency(
|
|
38775
|
-
table.getColorTextureFileIndex(
|
|
38776
|
-
table.getNormalTextureFileIndex(
|
|
38777
|
-
table.getElementIndex(
|
|
38758
|
+
table.getName(index2).then((v) => result.name = v),
|
|
38759
|
+
table.getMaterialCategory(index2).then((v) => result.materialCategory = v),
|
|
38760
|
+
table.getColor_X(index2).then((v) => result.color_X = v),
|
|
38761
|
+
table.getColor_Y(index2).then((v) => result.color_Y = v),
|
|
38762
|
+
table.getColor_Z(index2).then((v) => result.color_Z = v),
|
|
38763
|
+
table.getColorUvScaling_X(index2).then((v) => result.colorUvScaling_X = v),
|
|
38764
|
+
table.getColorUvScaling_Y(index2).then((v) => result.colorUvScaling_Y = v),
|
|
38765
|
+
table.getColorUvOffset_X(index2).then((v) => result.colorUvOffset_X = v),
|
|
38766
|
+
table.getColorUvOffset_Y(index2).then((v) => result.colorUvOffset_Y = v),
|
|
38767
|
+
table.getNormalUvScaling_X(index2).then((v) => result.normalUvScaling_X = v),
|
|
38768
|
+
table.getNormalUvScaling_Y(index2).then((v) => result.normalUvScaling_Y = v),
|
|
38769
|
+
table.getNormalUvOffset_X(index2).then((v) => result.normalUvOffset_X = v),
|
|
38770
|
+
table.getNormalUvOffset_Y(index2).then((v) => result.normalUvOffset_Y = v),
|
|
38771
|
+
table.getNormalAmount(index2).then((v) => result.normalAmount = v),
|
|
38772
|
+
table.getGlossiness(index2).then((v) => result.glossiness = v),
|
|
38773
|
+
table.getSmoothness(index2).then((v) => result.smoothness = v),
|
|
38774
|
+
table.getTransparency(index2).then((v) => result.transparency = v),
|
|
38775
|
+
table.getColorTextureFileIndex(index2).then((v) => result.colorTextureFileIndex = v),
|
|
38776
|
+
table.getNormalTextureFileIndex(index2).then((v) => result.normalTextureFileIndex = v),
|
|
38777
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
38778
38778
|
]);
|
|
38779
38779
|
return result;
|
|
38780
38780
|
}
|
|
@@ -39020,11 +39020,11 @@ function requireObjectModel() {
|
|
|
39020
39020
|
}
|
|
39021
39021
|
async getColorTextureFile(materialIndex) {
|
|
39022
39022
|
var _a2;
|
|
39023
|
-
const
|
|
39024
|
-
if (
|
|
39023
|
+
const index2 = await this.getColorTextureFileIndex(materialIndex);
|
|
39024
|
+
if (index2 === void 0) {
|
|
39025
39025
|
return void 0;
|
|
39026
39026
|
}
|
|
39027
|
-
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(
|
|
39027
|
+
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(index2));
|
|
39028
39028
|
}
|
|
39029
39029
|
async getNormalTextureFileIndex(materialIndex) {
|
|
39030
39030
|
return await this.entityTable.getNumber(materialIndex, "index:Vim.Asset:NormalTextureFile");
|
|
@@ -39034,11 +39034,11 @@ function requireObjectModel() {
|
|
|
39034
39034
|
}
|
|
39035
39035
|
async getNormalTextureFile(materialIndex) {
|
|
39036
39036
|
var _a2;
|
|
39037
|
-
const
|
|
39038
|
-
if (
|
|
39037
|
+
const index2 = await this.getNormalTextureFileIndex(materialIndex);
|
|
39038
|
+
if (index2 === void 0) {
|
|
39039
39039
|
return void 0;
|
|
39040
39040
|
}
|
|
39041
|
-
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(
|
|
39041
|
+
return await ((_a2 = this.document.asset) == null ? void 0 : _a2.get(index2));
|
|
39042
39042
|
}
|
|
39043
39043
|
async getElementIndex(materialIndex) {
|
|
39044
39044
|
return await this.entityTable.getNumber(materialIndex, "index:Vim.Element:Element");
|
|
@@ -39048,24 +39048,24 @@ function requireObjectModel() {
|
|
|
39048
39048
|
}
|
|
39049
39049
|
async getElement(materialIndex) {
|
|
39050
39050
|
var _a2;
|
|
39051
|
-
const
|
|
39052
|
-
if (
|
|
39051
|
+
const index2 = await this.getElementIndex(materialIndex);
|
|
39052
|
+
if (index2 === void 0) {
|
|
39053
39053
|
return void 0;
|
|
39054
39054
|
}
|
|
39055
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39055
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39056
39056
|
}
|
|
39057
39057
|
}
|
|
39058
39058
|
objectModel.MaterialTable = MaterialTable;
|
|
39059
39059
|
class MaterialInElement {
|
|
39060
|
-
static async createFromTable(table,
|
|
39060
|
+
static async createFromTable(table, index2) {
|
|
39061
39061
|
let result = new MaterialInElement();
|
|
39062
|
-
result.index =
|
|
39062
|
+
result.index = index2;
|
|
39063
39063
|
await Promise.all([
|
|
39064
|
-
table.getArea(
|
|
39065
|
-
table.getVolume(
|
|
39066
|
-
table.getIsPaint(
|
|
39067
|
-
table.getMaterialIndex(
|
|
39068
|
-
table.getElementIndex(
|
|
39064
|
+
table.getArea(index2).then((v) => result.area = v),
|
|
39065
|
+
table.getVolume(index2).then((v) => result.volume = v),
|
|
39066
|
+
table.getIsPaint(index2).then((v) => result.isPaint = v),
|
|
39067
|
+
table.getMaterialIndex(index2).then((v) => result.materialIndex = v),
|
|
39068
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39069
39069
|
]);
|
|
39070
39070
|
return result;
|
|
39071
39071
|
}
|
|
@@ -39152,11 +39152,11 @@ function requireObjectModel() {
|
|
|
39152
39152
|
}
|
|
39153
39153
|
async getMaterial(materialInElementIndex) {
|
|
39154
39154
|
var _a2;
|
|
39155
|
-
const
|
|
39156
|
-
if (
|
|
39155
|
+
const index2 = await this.getMaterialIndex(materialInElementIndex);
|
|
39156
|
+
if (index2 === void 0) {
|
|
39157
39157
|
return void 0;
|
|
39158
39158
|
}
|
|
39159
|
-
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(
|
|
39159
|
+
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(index2));
|
|
39160
39160
|
}
|
|
39161
39161
|
async getElementIndex(materialInElementIndex) {
|
|
39162
39162
|
return await this.entityTable.getNumber(materialInElementIndex, "index:Vim.Element:Element");
|
|
@@ -39166,24 +39166,24 @@ function requireObjectModel() {
|
|
|
39166
39166
|
}
|
|
39167
39167
|
async getElement(materialInElementIndex) {
|
|
39168
39168
|
var _a2;
|
|
39169
|
-
const
|
|
39170
|
-
if (
|
|
39169
|
+
const index2 = await this.getElementIndex(materialInElementIndex);
|
|
39170
|
+
if (index2 === void 0) {
|
|
39171
39171
|
return void 0;
|
|
39172
39172
|
}
|
|
39173
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39173
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39174
39174
|
}
|
|
39175
39175
|
}
|
|
39176
39176
|
objectModel.MaterialInElementTable = MaterialInElementTable;
|
|
39177
39177
|
class CompoundStructureLayer {
|
|
39178
|
-
static async createFromTable(table,
|
|
39178
|
+
static async createFromTable(table, index2) {
|
|
39179
39179
|
let result = new CompoundStructureLayer();
|
|
39180
|
-
result.index =
|
|
39180
|
+
result.index = index2;
|
|
39181
39181
|
await Promise.all([
|
|
39182
|
-
table.getOrderIndex(
|
|
39183
|
-
table.getWidth(
|
|
39184
|
-
table.getMaterialFunctionAssignment(
|
|
39185
|
-
table.getMaterialIndex(
|
|
39186
|
-
table.getCompoundStructureIndex(
|
|
39182
|
+
table.getOrderIndex(index2).then((v) => result.orderIndex = v),
|
|
39183
|
+
table.getWidth(index2).then((v) => result.width = v),
|
|
39184
|
+
table.getMaterialFunctionAssignment(index2).then((v) => result.materialFunctionAssignment = v),
|
|
39185
|
+
table.getMaterialIndex(index2).then((v) => result.materialIndex = v),
|
|
39186
|
+
table.getCompoundStructureIndex(index2).then((v) => result.compoundStructureIndex = v)
|
|
39187
39187
|
]);
|
|
39188
39188
|
return result;
|
|
39189
39189
|
}
|
|
@@ -39270,11 +39270,11 @@ function requireObjectModel() {
|
|
|
39270
39270
|
}
|
|
39271
39271
|
async getMaterial(compoundStructureLayerIndex) {
|
|
39272
39272
|
var _a2;
|
|
39273
|
-
const
|
|
39274
|
-
if (
|
|
39273
|
+
const index2 = await this.getMaterialIndex(compoundStructureLayerIndex);
|
|
39274
|
+
if (index2 === void 0) {
|
|
39275
39275
|
return void 0;
|
|
39276
39276
|
}
|
|
39277
|
-
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(
|
|
39277
|
+
return await ((_a2 = this.document.material) == null ? void 0 : _a2.get(index2));
|
|
39278
39278
|
}
|
|
39279
39279
|
async getCompoundStructureIndex(compoundStructureLayerIndex) {
|
|
39280
39280
|
return await this.entityTable.getNumber(compoundStructureLayerIndex, "index:Vim.CompoundStructure:CompoundStructure");
|
|
@@ -39284,21 +39284,21 @@ function requireObjectModel() {
|
|
|
39284
39284
|
}
|
|
39285
39285
|
async getCompoundStructure(compoundStructureLayerIndex) {
|
|
39286
39286
|
var _a2;
|
|
39287
|
-
const
|
|
39288
|
-
if (
|
|
39287
|
+
const index2 = await this.getCompoundStructureIndex(compoundStructureLayerIndex);
|
|
39288
|
+
if (index2 === void 0) {
|
|
39289
39289
|
return void 0;
|
|
39290
39290
|
}
|
|
39291
|
-
return await ((_a2 = this.document.compoundStructure) == null ? void 0 : _a2.get(
|
|
39291
|
+
return await ((_a2 = this.document.compoundStructure) == null ? void 0 : _a2.get(index2));
|
|
39292
39292
|
}
|
|
39293
39293
|
}
|
|
39294
39294
|
objectModel.CompoundStructureLayerTable = CompoundStructureLayerTable;
|
|
39295
39295
|
class CompoundStructure {
|
|
39296
|
-
static async createFromTable(table,
|
|
39296
|
+
static async createFromTable(table, index2) {
|
|
39297
39297
|
let result = new CompoundStructure();
|
|
39298
|
-
result.index =
|
|
39298
|
+
result.index = index2;
|
|
39299
39299
|
await Promise.all([
|
|
39300
|
-
table.getWidth(
|
|
39301
|
-
table.getStructuralLayerIndex(
|
|
39300
|
+
table.getWidth(index2).then((v) => result.width = v),
|
|
39301
|
+
table.getStructuralLayerIndex(index2).then((v) => result.structuralLayerIndex = v)
|
|
39302
39302
|
]);
|
|
39303
39303
|
return result;
|
|
39304
39304
|
}
|
|
@@ -39358,20 +39358,20 @@ function requireObjectModel() {
|
|
|
39358
39358
|
}
|
|
39359
39359
|
async getStructuralLayer(compoundStructureIndex) {
|
|
39360
39360
|
var _a2;
|
|
39361
|
-
const
|
|
39362
|
-
if (
|
|
39361
|
+
const index2 = await this.getStructuralLayerIndex(compoundStructureIndex);
|
|
39362
|
+
if (index2 === void 0) {
|
|
39363
39363
|
return void 0;
|
|
39364
39364
|
}
|
|
39365
|
-
return await ((_a2 = this.document.compoundStructureLayer) == null ? void 0 : _a2.get(
|
|
39365
|
+
return await ((_a2 = this.document.compoundStructureLayer) == null ? void 0 : _a2.get(index2));
|
|
39366
39366
|
}
|
|
39367
39367
|
}
|
|
39368
39368
|
objectModel.CompoundStructureTable = CompoundStructureTable;
|
|
39369
39369
|
class Node2 {
|
|
39370
|
-
static async createFromTable(table,
|
|
39370
|
+
static async createFromTable(table, index2) {
|
|
39371
39371
|
let result = new Node2();
|
|
39372
|
-
result.index =
|
|
39372
|
+
result.index = index2;
|
|
39373
39373
|
await Promise.all([
|
|
39374
|
-
table.getElementIndex(
|
|
39374
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39375
39375
|
]);
|
|
39376
39376
|
return result;
|
|
39377
39377
|
}
|
|
@@ -39420,27 +39420,27 @@ function requireObjectModel() {
|
|
|
39420
39420
|
}
|
|
39421
39421
|
async getElement(nodeIndex) {
|
|
39422
39422
|
var _a2;
|
|
39423
|
-
const
|
|
39424
|
-
if (
|
|
39423
|
+
const index2 = await this.getElementIndex(nodeIndex);
|
|
39424
|
+
if (index2 === void 0) {
|
|
39425
39425
|
return void 0;
|
|
39426
39426
|
}
|
|
39427
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39427
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39428
39428
|
}
|
|
39429
39429
|
}
|
|
39430
39430
|
objectModel.NodeTable = NodeTable;
|
|
39431
39431
|
class Geometry2 {
|
|
39432
|
-
static async createFromTable(table,
|
|
39432
|
+
static async createFromTable(table, index2) {
|
|
39433
39433
|
let result = new Geometry2();
|
|
39434
|
-
result.index =
|
|
39434
|
+
result.index = index2;
|
|
39435
39435
|
await Promise.all([
|
|
39436
|
-
table.getBox_Min_X(
|
|
39437
|
-
table.getBox_Min_Y(
|
|
39438
|
-
table.getBox_Min_Z(
|
|
39439
|
-
table.getBox_Max_X(
|
|
39440
|
-
table.getBox_Max_Y(
|
|
39441
|
-
table.getBox_Max_Z(
|
|
39442
|
-
table.getVertexCount(
|
|
39443
|
-
table.getFaceCount(
|
|
39436
|
+
table.getBox_Min_X(index2).then((v) => result.box_Min_X = v),
|
|
39437
|
+
table.getBox_Min_Y(index2).then((v) => result.box_Min_Y = v),
|
|
39438
|
+
table.getBox_Min_Z(index2).then((v) => result.box_Min_Z = v),
|
|
39439
|
+
table.getBox_Max_X(index2).then((v) => result.box_Max_X = v),
|
|
39440
|
+
table.getBox_Max_Y(index2).then((v) => result.box_Max_Y = v),
|
|
39441
|
+
table.getBox_Max_Z(index2).then((v) => result.box_Max_Z = v),
|
|
39442
|
+
table.getVertexCount(index2).then((v) => result.vertexCount = v),
|
|
39443
|
+
table.getFaceCount(index2).then((v) => result.faceCount = v)
|
|
39444
39444
|
]);
|
|
39445
39445
|
return result;
|
|
39446
39446
|
}
|
|
@@ -39566,11 +39566,11 @@ function requireObjectModel() {
|
|
|
39566
39566
|
}
|
|
39567
39567
|
objectModel.GeometryTable = GeometryTable;
|
|
39568
39568
|
class Shape2 {
|
|
39569
|
-
static async createFromTable(table,
|
|
39569
|
+
static async createFromTable(table, index2) {
|
|
39570
39570
|
let result = new Shape2();
|
|
39571
|
-
result.index =
|
|
39571
|
+
result.index = index2;
|
|
39572
39572
|
await Promise.all([
|
|
39573
|
-
table.getElementIndex(
|
|
39573
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39574
39574
|
]);
|
|
39575
39575
|
return result;
|
|
39576
39576
|
}
|
|
@@ -39619,20 +39619,20 @@ function requireObjectModel() {
|
|
|
39619
39619
|
}
|
|
39620
39620
|
async getElement(shapeIndex) {
|
|
39621
39621
|
var _a2;
|
|
39622
|
-
const
|
|
39623
|
-
if (
|
|
39622
|
+
const index2 = await this.getElementIndex(shapeIndex);
|
|
39623
|
+
if (index2 === void 0) {
|
|
39624
39624
|
return void 0;
|
|
39625
39625
|
}
|
|
39626
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39626
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39627
39627
|
}
|
|
39628
39628
|
}
|
|
39629
39629
|
objectModel.ShapeTable = ShapeTable;
|
|
39630
39630
|
class ShapeCollection {
|
|
39631
|
-
static async createFromTable(table,
|
|
39631
|
+
static async createFromTable(table, index2) {
|
|
39632
39632
|
let result = new ShapeCollection();
|
|
39633
|
-
result.index =
|
|
39633
|
+
result.index = index2;
|
|
39634
39634
|
await Promise.all([
|
|
39635
|
-
table.getElementIndex(
|
|
39635
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39636
39636
|
]);
|
|
39637
39637
|
return result;
|
|
39638
39638
|
}
|
|
@@ -39681,21 +39681,21 @@ function requireObjectModel() {
|
|
|
39681
39681
|
}
|
|
39682
39682
|
async getElement(shapeCollectionIndex) {
|
|
39683
39683
|
var _a2;
|
|
39684
|
-
const
|
|
39685
|
-
if (
|
|
39684
|
+
const index2 = await this.getElementIndex(shapeCollectionIndex);
|
|
39685
|
+
if (index2 === void 0) {
|
|
39686
39686
|
return void 0;
|
|
39687
39687
|
}
|
|
39688
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39688
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39689
39689
|
}
|
|
39690
39690
|
}
|
|
39691
39691
|
objectModel.ShapeCollectionTable = ShapeCollectionTable;
|
|
39692
39692
|
class ShapeInShapeCollection {
|
|
39693
|
-
static async createFromTable(table,
|
|
39693
|
+
static async createFromTable(table, index2) {
|
|
39694
39694
|
let result = new ShapeInShapeCollection();
|
|
39695
|
-
result.index =
|
|
39695
|
+
result.index = index2;
|
|
39696
39696
|
await Promise.all([
|
|
39697
|
-
table.getShapeIndex(
|
|
39698
|
-
table.getShapeCollectionIndex(
|
|
39697
|
+
table.getShapeIndex(index2).then((v) => result.shapeIndex = v),
|
|
39698
|
+
table.getShapeCollectionIndex(index2).then((v) => result.shapeCollectionIndex = v)
|
|
39699
39699
|
]);
|
|
39700
39700
|
return result;
|
|
39701
39701
|
}
|
|
@@ -39749,11 +39749,11 @@ function requireObjectModel() {
|
|
|
39749
39749
|
}
|
|
39750
39750
|
async getShape(shapeInShapeCollectionIndex) {
|
|
39751
39751
|
var _a2;
|
|
39752
|
-
const
|
|
39753
|
-
if (
|
|
39752
|
+
const index2 = await this.getShapeIndex(shapeInShapeCollectionIndex);
|
|
39753
|
+
if (index2 === void 0) {
|
|
39754
39754
|
return void 0;
|
|
39755
39755
|
}
|
|
39756
|
-
return await ((_a2 = this.document.shape) == null ? void 0 : _a2.get(
|
|
39756
|
+
return await ((_a2 = this.document.shape) == null ? void 0 : _a2.get(index2));
|
|
39757
39757
|
}
|
|
39758
39758
|
async getShapeCollectionIndex(shapeInShapeCollectionIndex) {
|
|
39759
39759
|
return await this.entityTable.getNumber(shapeInShapeCollectionIndex, "index:Vim.ShapeCollection:ShapeCollection");
|
|
@@ -39763,22 +39763,22 @@ function requireObjectModel() {
|
|
|
39763
39763
|
}
|
|
39764
39764
|
async getShapeCollection(shapeInShapeCollectionIndex) {
|
|
39765
39765
|
var _a2;
|
|
39766
|
-
const
|
|
39767
|
-
if (
|
|
39766
|
+
const index2 = await this.getShapeCollectionIndex(shapeInShapeCollectionIndex);
|
|
39767
|
+
if (index2 === void 0) {
|
|
39768
39768
|
return void 0;
|
|
39769
39769
|
}
|
|
39770
|
-
return await ((_a2 = this.document.shapeCollection) == null ? void 0 : _a2.get(
|
|
39770
|
+
return await ((_a2 = this.document.shapeCollection) == null ? void 0 : _a2.get(index2));
|
|
39771
39771
|
}
|
|
39772
39772
|
}
|
|
39773
39773
|
objectModel.ShapeInShapeCollectionTable = ShapeInShapeCollectionTable;
|
|
39774
39774
|
class System {
|
|
39775
|
-
static async createFromTable(table,
|
|
39775
|
+
static async createFromTable(table, index2) {
|
|
39776
39776
|
let result = new System();
|
|
39777
|
-
result.index =
|
|
39777
|
+
result.index = index2;
|
|
39778
39778
|
await Promise.all([
|
|
39779
|
-
table.getSystemType(
|
|
39780
|
-
table.getFamilyTypeIndex(
|
|
39781
|
-
table.getElementIndex(
|
|
39779
|
+
table.getSystemType(index2).then((v) => result.systemType = v),
|
|
39780
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
39781
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39782
39782
|
]);
|
|
39783
39783
|
return result;
|
|
39784
39784
|
}
|
|
@@ -39843,11 +39843,11 @@ function requireObjectModel() {
|
|
|
39843
39843
|
}
|
|
39844
39844
|
async getFamilyType(systemIndex) {
|
|
39845
39845
|
var _a2;
|
|
39846
|
-
const
|
|
39847
|
-
if (
|
|
39846
|
+
const index2 = await this.getFamilyTypeIndex(systemIndex);
|
|
39847
|
+
if (index2 === void 0) {
|
|
39848
39848
|
return void 0;
|
|
39849
39849
|
}
|
|
39850
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
39850
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
39851
39851
|
}
|
|
39852
39852
|
async getElementIndex(systemIndex) {
|
|
39853
39853
|
return await this.entityTable.getNumber(systemIndex, "index:Vim.Element:Element");
|
|
@@ -39857,22 +39857,22 @@ function requireObjectModel() {
|
|
|
39857
39857
|
}
|
|
39858
39858
|
async getElement(systemIndex) {
|
|
39859
39859
|
var _a2;
|
|
39860
|
-
const
|
|
39861
|
-
if (
|
|
39860
|
+
const index2 = await this.getElementIndex(systemIndex);
|
|
39861
|
+
if (index2 === void 0) {
|
|
39862
39862
|
return void 0;
|
|
39863
39863
|
}
|
|
39864
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39864
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39865
39865
|
}
|
|
39866
39866
|
}
|
|
39867
39867
|
objectModel.SystemTable = SystemTable;
|
|
39868
39868
|
class ElementInSystem {
|
|
39869
|
-
static async createFromTable(table,
|
|
39869
|
+
static async createFromTable(table, index2) {
|
|
39870
39870
|
let result = new ElementInSystem();
|
|
39871
|
-
result.index =
|
|
39871
|
+
result.index = index2;
|
|
39872
39872
|
await Promise.all([
|
|
39873
|
-
table.getRoles(
|
|
39874
|
-
table.getSystemIndex(
|
|
39875
|
-
table.getElementIndex(
|
|
39873
|
+
table.getRoles(index2).then((v) => result.roles = v),
|
|
39874
|
+
table.getSystemIndex(index2).then((v) => result.systemIndex = v),
|
|
39875
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
39876
39876
|
]);
|
|
39877
39877
|
return result;
|
|
39878
39878
|
}
|
|
@@ -39937,11 +39937,11 @@ function requireObjectModel() {
|
|
|
39937
39937
|
}
|
|
39938
39938
|
async getSystem(elementInSystemIndex) {
|
|
39939
39939
|
var _a2;
|
|
39940
|
-
const
|
|
39941
|
-
if (
|
|
39940
|
+
const index2 = await this.getSystemIndex(elementInSystemIndex);
|
|
39941
|
+
if (index2 === void 0) {
|
|
39942
39942
|
return void 0;
|
|
39943
39943
|
}
|
|
39944
|
-
return await ((_a2 = this.document.system) == null ? void 0 : _a2.get(
|
|
39944
|
+
return await ((_a2 = this.document.system) == null ? void 0 : _a2.get(index2));
|
|
39945
39945
|
}
|
|
39946
39946
|
async getElementIndex(elementInSystemIndex) {
|
|
39947
39947
|
return await this.entityTable.getNumber(elementInSystemIndex, "index:Vim.Element:Element");
|
|
@@ -39951,23 +39951,23 @@ function requireObjectModel() {
|
|
|
39951
39951
|
}
|
|
39952
39952
|
async getElement(elementInSystemIndex) {
|
|
39953
39953
|
var _a2;
|
|
39954
|
-
const
|
|
39955
|
-
if (
|
|
39954
|
+
const index2 = await this.getElementIndex(elementInSystemIndex);
|
|
39955
|
+
if (index2 === void 0) {
|
|
39956
39956
|
return void 0;
|
|
39957
39957
|
}
|
|
39958
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
39958
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
39959
39959
|
}
|
|
39960
39960
|
}
|
|
39961
39961
|
objectModel.ElementInSystemTable = ElementInSystemTable;
|
|
39962
39962
|
class Warning {
|
|
39963
|
-
static async createFromTable(table,
|
|
39963
|
+
static async createFromTable(table, index2) {
|
|
39964
39964
|
let result = new Warning();
|
|
39965
|
-
result.index =
|
|
39965
|
+
result.index = index2;
|
|
39966
39966
|
await Promise.all([
|
|
39967
|
-
table.getGuid(
|
|
39968
|
-
table.getSeverity(
|
|
39969
|
-
table.getDescription(
|
|
39970
|
-
table.getBimDocumentIndex(
|
|
39967
|
+
table.getGuid(index2).then((v) => result.guid = v),
|
|
39968
|
+
table.getSeverity(index2).then((v) => result.severity = v),
|
|
39969
|
+
table.getDescription(index2).then((v) => result.description = v),
|
|
39970
|
+
table.getBimDocumentIndex(index2).then((v) => result.bimDocumentIndex = v)
|
|
39971
39971
|
]);
|
|
39972
39972
|
return result;
|
|
39973
39973
|
}
|
|
@@ -40049,21 +40049,21 @@ function requireObjectModel() {
|
|
|
40049
40049
|
}
|
|
40050
40050
|
async getBimDocument(warningIndex) {
|
|
40051
40051
|
var _a2;
|
|
40052
|
-
const
|
|
40053
|
-
if (
|
|
40052
|
+
const index2 = await this.getBimDocumentIndex(warningIndex);
|
|
40053
|
+
if (index2 === void 0) {
|
|
40054
40054
|
return void 0;
|
|
40055
40055
|
}
|
|
40056
|
-
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(
|
|
40056
|
+
return await ((_a2 = this.document.bimDocument) == null ? void 0 : _a2.get(index2));
|
|
40057
40057
|
}
|
|
40058
40058
|
}
|
|
40059
40059
|
objectModel.WarningTable = WarningTable;
|
|
40060
40060
|
class ElementInWarning {
|
|
40061
|
-
static async createFromTable(table,
|
|
40061
|
+
static async createFromTable(table, index2) {
|
|
40062
40062
|
let result = new ElementInWarning();
|
|
40063
|
-
result.index =
|
|
40063
|
+
result.index = index2;
|
|
40064
40064
|
await Promise.all([
|
|
40065
|
-
table.getWarningIndex(
|
|
40066
|
-
table.getElementIndex(
|
|
40065
|
+
table.getWarningIndex(index2).then((v) => result.warningIndex = v),
|
|
40066
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40067
40067
|
]);
|
|
40068
40068
|
return result;
|
|
40069
40069
|
}
|
|
@@ -40117,11 +40117,11 @@ function requireObjectModel() {
|
|
|
40117
40117
|
}
|
|
40118
40118
|
async getWarning(elementInWarningIndex) {
|
|
40119
40119
|
var _a2;
|
|
40120
|
-
const
|
|
40121
|
-
if (
|
|
40120
|
+
const index2 = await this.getWarningIndex(elementInWarningIndex);
|
|
40121
|
+
if (index2 === void 0) {
|
|
40122
40122
|
return void 0;
|
|
40123
40123
|
}
|
|
40124
|
-
return await ((_a2 = this.document.warning) == null ? void 0 : _a2.get(
|
|
40124
|
+
return await ((_a2 = this.document.warning) == null ? void 0 : _a2.get(index2));
|
|
40125
40125
|
}
|
|
40126
40126
|
async getElementIndex(elementInWarningIndex) {
|
|
40127
40127
|
return await this.entityTable.getNumber(elementInWarningIndex, "index:Vim.Element:Element");
|
|
@@ -40131,27 +40131,27 @@ function requireObjectModel() {
|
|
|
40131
40131
|
}
|
|
40132
40132
|
async getElement(elementInWarningIndex) {
|
|
40133
40133
|
var _a2;
|
|
40134
|
-
const
|
|
40135
|
-
if (
|
|
40134
|
+
const index2 = await this.getElementIndex(elementInWarningIndex);
|
|
40135
|
+
if (index2 === void 0) {
|
|
40136
40136
|
return void 0;
|
|
40137
40137
|
}
|
|
40138
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40138
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40139
40139
|
}
|
|
40140
40140
|
}
|
|
40141
40141
|
objectModel.ElementInWarningTable = ElementInWarningTable;
|
|
40142
40142
|
class BasePoint {
|
|
40143
|
-
static async createFromTable(table,
|
|
40143
|
+
static async createFromTable(table, index2) {
|
|
40144
40144
|
let result = new BasePoint();
|
|
40145
|
-
result.index =
|
|
40145
|
+
result.index = index2;
|
|
40146
40146
|
await Promise.all([
|
|
40147
|
-
table.getIsSurveyPoint(
|
|
40148
|
-
table.getPosition_X(
|
|
40149
|
-
table.getPosition_Y(
|
|
40150
|
-
table.getPosition_Z(
|
|
40151
|
-
table.getSharedPosition_X(
|
|
40152
|
-
table.getSharedPosition_Y(
|
|
40153
|
-
table.getSharedPosition_Z(
|
|
40154
|
-
table.getElementIndex(
|
|
40147
|
+
table.getIsSurveyPoint(index2).then((v) => result.isSurveyPoint = v),
|
|
40148
|
+
table.getPosition_X(index2).then((v) => result.position_X = v),
|
|
40149
|
+
table.getPosition_Y(index2).then((v) => result.position_Y = v),
|
|
40150
|
+
table.getPosition_Z(index2).then((v) => result.position_Z = v),
|
|
40151
|
+
table.getSharedPosition_X(index2).then((v) => result.sharedPosition_X = v),
|
|
40152
|
+
table.getSharedPosition_Y(index2).then((v) => result.sharedPosition_Y = v),
|
|
40153
|
+
table.getSharedPosition_Z(index2).then((v) => result.sharedPosition_Z = v),
|
|
40154
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40155
40155
|
]);
|
|
40156
40156
|
return result;
|
|
40157
40157
|
}
|
|
@@ -40277,24 +40277,24 @@ function requireObjectModel() {
|
|
|
40277
40277
|
}
|
|
40278
40278
|
async getElement(basePointIndex) {
|
|
40279
40279
|
var _a2;
|
|
40280
|
-
const
|
|
40281
|
-
if (
|
|
40280
|
+
const index2 = await this.getElementIndex(basePointIndex);
|
|
40281
|
+
if (index2 === void 0) {
|
|
40282
40282
|
return void 0;
|
|
40283
40283
|
}
|
|
40284
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40284
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40285
40285
|
}
|
|
40286
40286
|
}
|
|
40287
40287
|
objectModel.BasePointTable = BasePointTable;
|
|
40288
40288
|
class PhaseFilter {
|
|
40289
|
-
static async createFromTable(table,
|
|
40289
|
+
static async createFromTable(table, index2) {
|
|
40290
40290
|
let result = new PhaseFilter();
|
|
40291
|
-
result.index =
|
|
40291
|
+
result.index = index2;
|
|
40292
40292
|
await Promise.all([
|
|
40293
|
-
table.getNew(
|
|
40294
|
-
table.getExisting(
|
|
40295
|
-
table.getDemolished(
|
|
40296
|
-
table.getTemporary(
|
|
40297
|
-
table.getElementIndex(
|
|
40293
|
+
table.getNew(index2).then((v) => result._new = v),
|
|
40294
|
+
table.getExisting(index2).then((v) => result.existing = v),
|
|
40295
|
+
table.getDemolished(index2).then((v) => result.demolished = v),
|
|
40296
|
+
table.getTemporary(index2).then((v) => result.temporary = v),
|
|
40297
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40298
40298
|
]);
|
|
40299
40299
|
return result;
|
|
40300
40300
|
}
|
|
@@ -40387,34 +40387,34 @@ function requireObjectModel() {
|
|
|
40387
40387
|
}
|
|
40388
40388
|
async getElement(phaseFilterIndex) {
|
|
40389
40389
|
var _a2;
|
|
40390
|
-
const
|
|
40391
|
-
if (
|
|
40390
|
+
const index2 = await this.getElementIndex(phaseFilterIndex);
|
|
40391
|
+
if (index2 === void 0) {
|
|
40392
40392
|
return void 0;
|
|
40393
40393
|
}
|
|
40394
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40394
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40395
40395
|
}
|
|
40396
40396
|
}
|
|
40397
40397
|
objectModel.PhaseFilterTable = PhaseFilterTable;
|
|
40398
40398
|
class Grid {
|
|
40399
|
-
static async createFromTable(table,
|
|
40399
|
+
static async createFromTable(table, index2) {
|
|
40400
40400
|
let result = new Grid();
|
|
40401
|
-
result.index =
|
|
40401
|
+
result.index = index2;
|
|
40402
40402
|
await Promise.all([
|
|
40403
|
-
table.getStartPoint_X(
|
|
40404
|
-
table.getStartPoint_Y(
|
|
40405
|
-
table.getStartPoint_Z(
|
|
40406
|
-
table.getEndPoint_X(
|
|
40407
|
-
table.getEndPoint_Y(
|
|
40408
|
-
table.getEndPoint_Z(
|
|
40409
|
-
table.getIsCurved(
|
|
40410
|
-
table.getExtents_Min_X(
|
|
40411
|
-
table.getExtents_Min_Y(
|
|
40412
|
-
table.getExtents_Min_Z(
|
|
40413
|
-
table.getExtents_Max_X(
|
|
40414
|
-
table.getExtents_Max_Y(
|
|
40415
|
-
table.getExtents_Max_Z(
|
|
40416
|
-
table.getFamilyTypeIndex(
|
|
40417
|
-
table.getElementIndex(
|
|
40403
|
+
table.getStartPoint_X(index2).then((v) => result.startPoint_X = v),
|
|
40404
|
+
table.getStartPoint_Y(index2).then((v) => result.startPoint_Y = v),
|
|
40405
|
+
table.getStartPoint_Z(index2).then((v) => result.startPoint_Z = v),
|
|
40406
|
+
table.getEndPoint_X(index2).then((v) => result.endPoint_X = v),
|
|
40407
|
+
table.getEndPoint_Y(index2).then((v) => result.endPoint_Y = v),
|
|
40408
|
+
table.getEndPoint_Z(index2).then((v) => result.endPoint_Z = v),
|
|
40409
|
+
table.getIsCurved(index2).then((v) => result.isCurved = v),
|
|
40410
|
+
table.getExtents_Min_X(index2).then((v) => result.extents_Min_X = v),
|
|
40411
|
+
table.getExtents_Min_Y(index2).then((v) => result.extents_Min_Y = v),
|
|
40412
|
+
table.getExtents_Min_Z(index2).then((v) => result.extents_Min_Z = v),
|
|
40413
|
+
table.getExtents_Max_X(index2).then((v) => result.extents_Max_X = v),
|
|
40414
|
+
table.getExtents_Max_Y(index2).then((v) => result.extents_Max_Y = v),
|
|
40415
|
+
table.getExtents_Max_Z(index2).then((v) => result.extents_Max_Z = v),
|
|
40416
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
40417
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40418
40418
|
]);
|
|
40419
40419
|
return result;
|
|
40420
40420
|
}
|
|
@@ -40611,11 +40611,11 @@ function requireObjectModel() {
|
|
|
40611
40611
|
}
|
|
40612
40612
|
async getFamilyType(gridIndex) {
|
|
40613
40613
|
var _a2;
|
|
40614
|
-
const
|
|
40615
|
-
if (
|
|
40614
|
+
const index2 = await this.getFamilyTypeIndex(gridIndex);
|
|
40615
|
+
if (index2 === void 0) {
|
|
40616
40616
|
return void 0;
|
|
40617
40617
|
}
|
|
40618
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
40618
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
40619
40619
|
}
|
|
40620
40620
|
async getElementIndex(gridIndex) {
|
|
40621
40621
|
return await this.entityTable.getNumber(gridIndex, "index:Vim.Element:Element");
|
|
@@ -40625,25 +40625,25 @@ function requireObjectModel() {
|
|
|
40625
40625
|
}
|
|
40626
40626
|
async getElement(gridIndex) {
|
|
40627
40627
|
var _a2;
|
|
40628
|
-
const
|
|
40629
|
-
if (
|
|
40628
|
+
const index2 = await this.getElementIndex(gridIndex);
|
|
40629
|
+
if (index2 === void 0) {
|
|
40630
40630
|
return void 0;
|
|
40631
40631
|
}
|
|
40632
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40632
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40633
40633
|
}
|
|
40634
40634
|
}
|
|
40635
40635
|
objectModel.GridTable = GridTable;
|
|
40636
40636
|
class Area {
|
|
40637
|
-
static async createFromTable(table,
|
|
40637
|
+
static async createFromTable(table, index2) {
|
|
40638
40638
|
let result = new Area();
|
|
40639
|
-
result.index =
|
|
40639
|
+
result.index = index2;
|
|
40640
40640
|
await Promise.all([
|
|
40641
|
-
table.getValue(
|
|
40642
|
-
table.getPerimeter(
|
|
40643
|
-
table.getNumber(
|
|
40644
|
-
table.getIsGrossInterior(
|
|
40645
|
-
table.getAreaSchemeIndex(
|
|
40646
|
-
table.getElementIndex(
|
|
40641
|
+
table.getValue(index2).then((v) => result.value = v),
|
|
40642
|
+
table.getPerimeter(index2).then((v) => result.perimeter = v),
|
|
40643
|
+
table.getNumber(index2).then((v) => result.number = v),
|
|
40644
|
+
table.getIsGrossInterior(index2).then((v) => result.isGrossInterior = v),
|
|
40645
|
+
table.getAreaSchemeIndex(index2).then((v) => result.areaSchemeIndex = v),
|
|
40646
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40647
40647
|
]);
|
|
40648
40648
|
return result;
|
|
40649
40649
|
}
|
|
@@ -40741,11 +40741,11 @@ function requireObjectModel() {
|
|
|
40741
40741
|
}
|
|
40742
40742
|
async getAreaScheme(areaIndex) {
|
|
40743
40743
|
var _a2;
|
|
40744
|
-
const
|
|
40745
|
-
if (
|
|
40744
|
+
const index2 = await this.getAreaSchemeIndex(areaIndex);
|
|
40745
|
+
if (index2 === void 0) {
|
|
40746
40746
|
return void 0;
|
|
40747
40747
|
}
|
|
40748
|
-
return await ((_a2 = this.document.areaScheme) == null ? void 0 : _a2.get(
|
|
40748
|
+
return await ((_a2 = this.document.areaScheme) == null ? void 0 : _a2.get(index2));
|
|
40749
40749
|
}
|
|
40750
40750
|
async getElementIndex(areaIndex) {
|
|
40751
40751
|
return await this.entityTable.getNumber(areaIndex, "index:Vim.Element:Element");
|
|
@@ -40755,21 +40755,21 @@ function requireObjectModel() {
|
|
|
40755
40755
|
}
|
|
40756
40756
|
async getElement(areaIndex) {
|
|
40757
40757
|
var _a2;
|
|
40758
|
-
const
|
|
40759
|
-
if (
|
|
40758
|
+
const index2 = await this.getElementIndex(areaIndex);
|
|
40759
|
+
if (index2 === void 0) {
|
|
40760
40760
|
return void 0;
|
|
40761
40761
|
}
|
|
40762
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40762
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40763
40763
|
}
|
|
40764
40764
|
}
|
|
40765
40765
|
objectModel.AreaTable = AreaTable;
|
|
40766
40766
|
class AreaScheme {
|
|
40767
|
-
static async createFromTable(table,
|
|
40767
|
+
static async createFromTable(table, index2) {
|
|
40768
40768
|
let result = new AreaScheme();
|
|
40769
|
-
result.index =
|
|
40769
|
+
result.index = index2;
|
|
40770
40770
|
await Promise.all([
|
|
40771
|
-
table.getIsGrossBuildingArea(
|
|
40772
|
-
table.getElementIndex(
|
|
40771
|
+
table.getIsGrossBuildingArea(index2).then((v) => result.isGrossBuildingArea = v),
|
|
40772
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40773
40773
|
]);
|
|
40774
40774
|
return result;
|
|
40775
40775
|
}
|
|
@@ -40829,20 +40829,20 @@ function requireObjectModel() {
|
|
|
40829
40829
|
}
|
|
40830
40830
|
async getElement(areaSchemeIndex) {
|
|
40831
40831
|
var _a2;
|
|
40832
|
-
const
|
|
40833
|
-
if (
|
|
40832
|
+
const index2 = await this.getElementIndex(areaSchemeIndex);
|
|
40833
|
+
if (index2 === void 0) {
|
|
40834
40834
|
return void 0;
|
|
40835
40835
|
}
|
|
40836
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40836
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40837
40837
|
}
|
|
40838
40838
|
}
|
|
40839
40839
|
objectModel.AreaSchemeTable = AreaSchemeTable;
|
|
40840
40840
|
class Schedule {
|
|
40841
|
-
static async createFromTable(table,
|
|
40841
|
+
static async createFromTable(table, index2) {
|
|
40842
40842
|
let result = new Schedule();
|
|
40843
|
-
result.index =
|
|
40843
|
+
result.index = index2;
|
|
40844
40844
|
await Promise.all([
|
|
40845
|
-
table.getElementIndex(
|
|
40845
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
40846
40846
|
]);
|
|
40847
40847
|
return result;
|
|
40848
40848
|
}
|
|
@@ -40891,22 +40891,22 @@ function requireObjectModel() {
|
|
|
40891
40891
|
}
|
|
40892
40892
|
async getElement(scheduleIndex) {
|
|
40893
40893
|
var _a2;
|
|
40894
|
-
const
|
|
40895
|
-
if (
|
|
40894
|
+
const index2 = await this.getElementIndex(scheduleIndex);
|
|
40895
|
+
if (index2 === void 0) {
|
|
40896
40896
|
return void 0;
|
|
40897
40897
|
}
|
|
40898
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
40898
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
40899
40899
|
}
|
|
40900
40900
|
}
|
|
40901
40901
|
objectModel.ScheduleTable = ScheduleTable;
|
|
40902
40902
|
class ScheduleColumn {
|
|
40903
|
-
static async createFromTable(table,
|
|
40903
|
+
static async createFromTable(table, index2) {
|
|
40904
40904
|
let result = new ScheduleColumn();
|
|
40905
|
-
result.index =
|
|
40905
|
+
result.index = index2;
|
|
40906
40906
|
await Promise.all([
|
|
40907
|
-
table.getName(
|
|
40908
|
-
table.getColumnIndex(
|
|
40909
|
-
table.getScheduleIndex(
|
|
40907
|
+
table.getName(index2).then((v) => result.name = v),
|
|
40908
|
+
table.getColumnIndex(index2).then((v) => result.columnIndex = v),
|
|
40909
|
+
table.getScheduleIndex(index2).then((v) => result.scheduleIndex = v)
|
|
40910
40910
|
]);
|
|
40911
40911
|
return result;
|
|
40912
40912
|
}
|
|
@@ -40977,22 +40977,22 @@ function requireObjectModel() {
|
|
|
40977
40977
|
}
|
|
40978
40978
|
async getSchedule(scheduleColumnIndex) {
|
|
40979
40979
|
var _a2;
|
|
40980
|
-
const
|
|
40981
|
-
if (
|
|
40980
|
+
const index2 = await this.getScheduleIndex(scheduleColumnIndex);
|
|
40981
|
+
if (index2 === void 0) {
|
|
40982
40982
|
return void 0;
|
|
40983
40983
|
}
|
|
40984
|
-
return await ((_a2 = this.document.schedule) == null ? void 0 : _a2.get(
|
|
40984
|
+
return await ((_a2 = this.document.schedule) == null ? void 0 : _a2.get(index2));
|
|
40985
40985
|
}
|
|
40986
40986
|
}
|
|
40987
40987
|
objectModel.ScheduleColumnTable = ScheduleColumnTable;
|
|
40988
40988
|
class ScheduleCell {
|
|
40989
|
-
static async createFromTable(table,
|
|
40989
|
+
static async createFromTable(table, index2) {
|
|
40990
40990
|
let result = new ScheduleCell();
|
|
40991
|
-
result.index =
|
|
40991
|
+
result.index = index2;
|
|
40992
40992
|
await Promise.all([
|
|
40993
|
-
table.getValue(
|
|
40994
|
-
table.getRowIndex(
|
|
40995
|
-
table.getScheduleColumnIndex(
|
|
40993
|
+
table.getValue(index2).then((v) => result.value = v),
|
|
40994
|
+
table.getRowIndex(index2).then((v) => result.rowIndex = v),
|
|
40995
|
+
table.getScheduleColumnIndex(index2).then((v) => result.scheduleColumnIndex = v)
|
|
40996
40996
|
]);
|
|
40997
40997
|
return result;
|
|
40998
40998
|
}
|
|
@@ -41063,20 +41063,20 @@ function requireObjectModel() {
|
|
|
41063
41063
|
}
|
|
41064
41064
|
async getScheduleColumn(scheduleCellIndex) {
|
|
41065
41065
|
var _a2;
|
|
41066
|
-
const
|
|
41067
|
-
if (
|
|
41066
|
+
const index2 = await this.getScheduleColumnIndex(scheduleCellIndex);
|
|
41067
|
+
if (index2 === void 0) {
|
|
41068
41068
|
return void 0;
|
|
41069
41069
|
}
|
|
41070
|
-
return await ((_a2 = this.document.scheduleColumn) == null ? void 0 : _a2.get(
|
|
41070
|
+
return await ((_a2 = this.document.scheduleColumn) == null ? void 0 : _a2.get(index2));
|
|
41071
41071
|
}
|
|
41072
41072
|
}
|
|
41073
41073
|
objectModel.ScheduleCellTable = ScheduleCellTable;
|
|
41074
41074
|
class ViewSheetSet {
|
|
41075
|
-
static async createFromTable(table,
|
|
41075
|
+
static async createFromTable(table, index2) {
|
|
41076
41076
|
let result = new ViewSheetSet();
|
|
41077
|
-
result.index =
|
|
41077
|
+
result.index = index2;
|
|
41078
41078
|
await Promise.all([
|
|
41079
|
-
table.getElementIndex(
|
|
41079
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
41080
41080
|
]);
|
|
41081
41081
|
return result;
|
|
41082
41082
|
}
|
|
@@ -41125,21 +41125,21 @@ function requireObjectModel() {
|
|
|
41125
41125
|
}
|
|
41126
41126
|
async getElement(viewSheetSetIndex) {
|
|
41127
41127
|
var _a2;
|
|
41128
|
-
const
|
|
41129
|
-
if (
|
|
41128
|
+
const index2 = await this.getElementIndex(viewSheetSetIndex);
|
|
41129
|
+
if (index2 === void 0) {
|
|
41130
41130
|
return void 0;
|
|
41131
41131
|
}
|
|
41132
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
41132
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
41133
41133
|
}
|
|
41134
41134
|
}
|
|
41135
41135
|
objectModel.ViewSheetSetTable = ViewSheetSetTable;
|
|
41136
41136
|
class ViewSheet {
|
|
41137
|
-
static async createFromTable(table,
|
|
41137
|
+
static async createFromTable(table, index2) {
|
|
41138
41138
|
let result = new ViewSheet();
|
|
41139
|
-
result.index =
|
|
41139
|
+
result.index = index2;
|
|
41140
41140
|
await Promise.all([
|
|
41141
|
-
table.getFamilyTypeIndex(
|
|
41142
|
-
table.getElementIndex(
|
|
41141
|
+
table.getFamilyTypeIndex(index2).then((v) => result.familyTypeIndex = v),
|
|
41142
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
41143
41143
|
]);
|
|
41144
41144
|
return result;
|
|
41145
41145
|
}
|
|
@@ -41193,11 +41193,11 @@ function requireObjectModel() {
|
|
|
41193
41193
|
}
|
|
41194
41194
|
async getFamilyType(viewSheetIndex) {
|
|
41195
41195
|
var _a2;
|
|
41196
|
-
const
|
|
41197
|
-
if (
|
|
41196
|
+
const index2 = await this.getFamilyTypeIndex(viewSheetIndex);
|
|
41197
|
+
if (index2 === void 0) {
|
|
41198
41198
|
return void 0;
|
|
41199
41199
|
}
|
|
41200
|
-
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(
|
|
41200
|
+
return await ((_a2 = this.document.familyType) == null ? void 0 : _a2.get(index2));
|
|
41201
41201
|
}
|
|
41202
41202
|
async getElementIndex(viewSheetIndex) {
|
|
41203
41203
|
return await this.entityTable.getNumber(viewSheetIndex, "index:Vim.Element:Element");
|
|
@@ -41207,21 +41207,21 @@ function requireObjectModel() {
|
|
|
41207
41207
|
}
|
|
41208
41208
|
async getElement(viewSheetIndex) {
|
|
41209
41209
|
var _a2;
|
|
41210
|
-
const
|
|
41211
|
-
if (
|
|
41210
|
+
const index2 = await this.getElementIndex(viewSheetIndex);
|
|
41211
|
+
if (index2 === void 0) {
|
|
41212
41212
|
return void 0;
|
|
41213
41213
|
}
|
|
41214
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
41214
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
41215
41215
|
}
|
|
41216
41216
|
}
|
|
41217
41217
|
objectModel.ViewSheetTable = ViewSheetTable;
|
|
41218
41218
|
class ViewSheetInViewSheetSet {
|
|
41219
|
-
static async createFromTable(table,
|
|
41219
|
+
static async createFromTable(table, index2) {
|
|
41220
41220
|
let result = new ViewSheetInViewSheetSet();
|
|
41221
|
-
result.index =
|
|
41221
|
+
result.index = index2;
|
|
41222
41222
|
await Promise.all([
|
|
41223
|
-
table.getViewSheetIndex(
|
|
41224
|
-
table.getViewSheetSetIndex(
|
|
41223
|
+
table.getViewSheetIndex(index2).then((v) => result.viewSheetIndex = v),
|
|
41224
|
+
table.getViewSheetSetIndex(index2).then((v) => result.viewSheetSetIndex = v)
|
|
41225
41225
|
]);
|
|
41226
41226
|
return result;
|
|
41227
41227
|
}
|
|
@@ -41275,11 +41275,11 @@ function requireObjectModel() {
|
|
|
41275
41275
|
}
|
|
41276
41276
|
async getViewSheet(viewSheetInViewSheetSetIndex) {
|
|
41277
41277
|
var _a2;
|
|
41278
|
-
const
|
|
41279
|
-
if (
|
|
41278
|
+
const index2 = await this.getViewSheetIndex(viewSheetInViewSheetSetIndex);
|
|
41279
|
+
if (index2 === void 0) {
|
|
41280
41280
|
return void 0;
|
|
41281
41281
|
}
|
|
41282
|
-
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(
|
|
41282
|
+
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(index2));
|
|
41283
41283
|
}
|
|
41284
41284
|
async getViewSheetSetIndex(viewSheetInViewSheetSetIndex) {
|
|
41285
41285
|
return await this.entityTable.getNumber(viewSheetInViewSheetSetIndex, "index:Vim.ViewSheetSet:ViewSheetSet");
|
|
@@ -41289,21 +41289,21 @@ function requireObjectModel() {
|
|
|
41289
41289
|
}
|
|
41290
41290
|
async getViewSheetSet(viewSheetInViewSheetSetIndex) {
|
|
41291
41291
|
var _a2;
|
|
41292
|
-
const
|
|
41293
|
-
if (
|
|
41292
|
+
const index2 = await this.getViewSheetSetIndex(viewSheetInViewSheetSetIndex);
|
|
41293
|
+
if (index2 === void 0) {
|
|
41294
41294
|
return void 0;
|
|
41295
41295
|
}
|
|
41296
|
-
return await ((_a2 = this.document.viewSheetSet) == null ? void 0 : _a2.get(
|
|
41296
|
+
return await ((_a2 = this.document.viewSheetSet) == null ? void 0 : _a2.get(index2));
|
|
41297
41297
|
}
|
|
41298
41298
|
}
|
|
41299
41299
|
objectModel.ViewSheetInViewSheetSetTable = ViewSheetInViewSheetSetTable;
|
|
41300
41300
|
class ViewInViewSheetSet {
|
|
41301
|
-
static async createFromTable(table,
|
|
41301
|
+
static async createFromTable(table, index2) {
|
|
41302
41302
|
let result = new ViewInViewSheetSet();
|
|
41303
|
-
result.index =
|
|
41303
|
+
result.index = index2;
|
|
41304
41304
|
await Promise.all([
|
|
41305
|
-
table.getViewIndex(
|
|
41306
|
-
table.getViewSheetSetIndex(
|
|
41305
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v),
|
|
41306
|
+
table.getViewSheetSetIndex(index2).then((v) => result.viewSheetSetIndex = v)
|
|
41307
41307
|
]);
|
|
41308
41308
|
return result;
|
|
41309
41309
|
}
|
|
@@ -41357,11 +41357,11 @@ function requireObjectModel() {
|
|
|
41357
41357
|
}
|
|
41358
41358
|
async getView(viewInViewSheetSetIndex) {
|
|
41359
41359
|
var _a2;
|
|
41360
|
-
const
|
|
41361
|
-
if (
|
|
41360
|
+
const index2 = await this.getViewIndex(viewInViewSheetSetIndex);
|
|
41361
|
+
if (index2 === void 0) {
|
|
41362
41362
|
return void 0;
|
|
41363
41363
|
}
|
|
41364
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
41364
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
41365
41365
|
}
|
|
41366
41366
|
async getViewSheetSetIndex(viewInViewSheetSetIndex) {
|
|
41367
41367
|
return await this.entityTable.getNumber(viewInViewSheetSetIndex, "index:Vim.ViewSheetSet:ViewSheetSet");
|
|
@@ -41371,21 +41371,21 @@ function requireObjectModel() {
|
|
|
41371
41371
|
}
|
|
41372
41372
|
async getViewSheetSet(viewInViewSheetSetIndex) {
|
|
41373
41373
|
var _a2;
|
|
41374
|
-
const
|
|
41375
|
-
if (
|
|
41374
|
+
const index2 = await this.getViewSheetSetIndex(viewInViewSheetSetIndex);
|
|
41375
|
+
if (index2 === void 0) {
|
|
41376
41376
|
return void 0;
|
|
41377
41377
|
}
|
|
41378
|
-
return await ((_a2 = this.document.viewSheetSet) == null ? void 0 : _a2.get(
|
|
41378
|
+
return await ((_a2 = this.document.viewSheetSet) == null ? void 0 : _a2.get(index2));
|
|
41379
41379
|
}
|
|
41380
41380
|
}
|
|
41381
41381
|
objectModel.ViewInViewSheetSetTable = ViewInViewSheetSetTable;
|
|
41382
41382
|
class ViewInViewSheet {
|
|
41383
|
-
static async createFromTable(table,
|
|
41383
|
+
static async createFromTable(table, index2) {
|
|
41384
41384
|
let result = new ViewInViewSheet();
|
|
41385
|
-
result.index =
|
|
41385
|
+
result.index = index2;
|
|
41386
41386
|
await Promise.all([
|
|
41387
|
-
table.getViewIndex(
|
|
41388
|
-
table.getViewSheetIndex(
|
|
41387
|
+
table.getViewIndex(index2).then((v) => result.viewIndex = v),
|
|
41388
|
+
table.getViewSheetIndex(index2).then((v) => result.viewSheetIndex = v)
|
|
41389
41389
|
]);
|
|
41390
41390
|
return result;
|
|
41391
41391
|
}
|
|
@@ -41439,11 +41439,11 @@ function requireObjectModel() {
|
|
|
41439
41439
|
}
|
|
41440
41440
|
async getView(viewInViewSheetIndex) {
|
|
41441
41441
|
var _a2;
|
|
41442
|
-
const
|
|
41443
|
-
if (
|
|
41442
|
+
const index2 = await this.getViewIndex(viewInViewSheetIndex);
|
|
41443
|
+
if (index2 === void 0) {
|
|
41444
41444
|
return void 0;
|
|
41445
41445
|
}
|
|
41446
|
-
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(
|
|
41446
|
+
return await ((_a2 = this.document.view) == null ? void 0 : _a2.get(index2));
|
|
41447
41447
|
}
|
|
41448
41448
|
async getViewSheetIndex(viewInViewSheetIndex) {
|
|
41449
41449
|
return await this.entityTable.getNumber(viewInViewSheetIndex, "index:Vim.ViewSheet:ViewSheet");
|
|
@@ -41453,25 +41453,25 @@ function requireObjectModel() {
|
|
|
41453
41453
|
}
|
|
41454
41454
|
async getViewSheet(viewInViewSheetIndex) {
|
|
41455
41455
|
var _a2;
|
|
41456
|
-
const
|
|
41457
|
-
if (
|
|
41456
|
+
const index2 = await this.getViewSheetIndex(viewInViewSheetIndex);
|
|
41457
|
+
if (index2 === void 0) {
|
|
41458
41458
|
return void 0;
|
|
41459
41459
|
}
|
|
41460
|
-
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(
|
|
41460
|
+
return await ((_a2 = this.document.viewSheet) == null ? void 0 : _a2.get(index2));
|
|
41461
41461
|
}
|
|
41462
41462
|
}
|
|
41463
41463
|
objectModel.ViewInViewSheetTable = ViewInViewSheetTable;
|
|
41464
41464
|
class Site {
|
|
41465
|
-
static async createFromTable(table,
|
|
41465
|
+
static async createFromTable(table, index2) {
|
|
41466
41466
|
let result = new Site();
|
|
41467
|
-
result.index =
|
|
41467
|
+
result.index = index2;
|
|
41468
41468
|
await Promise.all([
|
|
41469
|
-
table.getLatitude(
|
|
41470
|
-
table.getLongitude(
|
|
41471
|
-
table.getAddress(
|
|
41472
|
-
table.getElevation(
|
|
41473
|
-
table.getNumber(
|
|
41474
|
-
table.getElementIndex(
|
|
41469
|
+
table.getLatitude(index2).then((v) => result.latitude = v),
|
|
41470
|
+
table.getLongitude(index2).then((v) => result.longitude = v),
|
|
41471
|
+
table.getAddress(index2).then((v) => result.address = v),
|
|
41472
|
+
table.getElevation(index2).then((v) => result.elevation = v),
|
|
41473
|
+
table.getNumber(index2).then((v) => result.number = v),
|
|
41474
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
41475
41475
|
]);
|
|
41476
41476
|
return result;
|
|
41477
41477
|
}
|
|
@@ -41575,24 +41575,24 @@ function requireObjectModel() {
|
|
|
41575
41575
|
}
|
|
41576
41576
|
async getElement(siteIndex) {
|
|
41577
41577
|
var _a2;
|
|
41578
|
-
const
|
|
41579
|
-
if (
|
|
41578
|
+
const index2 = await this.getElementIndex(siteIndex);
|
|
41579
|
+
if (index2 === void 0) {
|
|
41580
41580
|
return void 0;
|
|
41581
41581
|
}
|
|
41582
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
41582
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
41583
41583
|
}
|
|
41584
41584
|
}
|
|
41585
41585
|
objectModel.SiteTable = SiteTable;
|
|
41586
41586
|
class Building {
|
|
41587
|
-
static async createFromTable(table,
|
|
41587
|
+
static async createFromTable(table, index2) {
|
|
41588
41588
|
let result = new Building();
|
|
41589
|
-
result.index =
|
|
41589
|
+
result.index = index2;
|
|
41590
41590
|
await Promise.all([
|
|
41591
|
-
table.getElevation(
|
|
41592
|
-
table.getTerrainElevation(
|
|
41593
|
-
table.getAddress(
|
|
41594
|
-
table.getSiteIndex(
|
|
41595
|
-
table.getElementIndex(
|
|
41591
|
+
table.getElevation(index2).then((v) => result.elevation = v),
|
|
41592
|
+
table.getTerrainElevation(index2).then((v) => result.terrainElevation = v),
|
|
41593
|
+
table.getAddress(index2).then((v) => result.address = v),
|
|
41594
|
+
table.getSiteIndex(index2).then((v) => result.siteIndex = v),
|
|
41595
|
+
table.getElementIndex(index2).then((v) => result.elementIndex = v)
|
|
41596
41596
|
]);
|
|
41597
41597
|
return result;
|
|
41598
41598
|
}
|
|
@@ -41679,11 +41679,11 @@ function requireObjectModel() {
|
|
|
41679
41679
|
}
|
|
41680
41680
|
async getSite(buildingIndex) {
|
|
41681
41681
|
var _a2;
|
|
41682
|
-
const
|
|
41683
|
-
if (
|
|
41682
|
+
const index2 = await this.getSiteIndex(buildingIndex);
|
|
41683
|
+
if (index2 === void 0) {
|
|
41684
41684
|
return void 0;
|
|
41685
41685
|
}
|
|
41686
|
-
return await ((_a2 = this.document.site) == null ? void 0 : _a2.get(
|
|
41686
|
+
return await ((_a2 = this.document.site) == null ? void 0 : _a2.get(index2));
|
|
41687
41687
|
}
|
|
41688
41688
|
async getElementIndex(buildingIndex) {
|
|
41689
41689
|
return await this.entityTable.getNumber(buildingIndex, "index:Vim.Element:Element");
|
|
@@ -41693,11 +41693,11 @@ function requireObjectModel() {
|
|
|
41693
41693
|
}
|
|
41694
41694
|
async getElement(buildingIndex) {
|
|
41695
41695
|
var _a2;
|
|
41696
|
-
const
|
|
41697
|
-
if (
|
|
41696
|
+
const index2 = await this.getElementIndex(buildingIndex);
|
|
41697
|
+
if (index2 === void 0) {
|
|
41698
41698
|
return void 0;
|
|
41699
41699
|
}
|
|
41700
|
-
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(
|
|
41700
|
+
return await ((_a2 = this.document.element) == null ? void 0 : _a2.get(index2));
|
|
41701
41701
|
}
|
|
41702
41702
|
}
|
|
41703
41703
|
objectModel.BuildingTable = BuildingTable;
|
|
@@ -41821,8 +41821,8 @@ function requireVimHelpers() {
|
|
|
41821
41821
|
return void 0;
|
|
41822
41822
|
if (!getParameterDescriptorIndices)
|
|
41823
41823
|
return void 0;
|
|
41824
|
-
const getParameterDisplayValue = (
|
|
41825
|
-
const value = parameterValues[
|
|
41824
|
+
const getParameterDisplayValue = (index2) => {
|
|
41825
|
+
const value = parameterValues[index2];
|
|
41826
41826
|
const split2 = value.indexOf("|");
|
|
41827
41827
|
if (split2 >= 0) {
|
|
41828
41828
|
return value.substring(split2 + 1, value.length);
|
|
@@ -42162,7 +42162,7 @@ var Geometry;
|
|
|
42162
42162
|
);
|
|
42163
42163
|
}
|
|
42164
42164
|
function fillBuffers(g3d2, buffer, info) {
|
|
42165
|
-
let
|
|
42165
|
+
let index2 = 0;
|
|
42166
42166
|
let vertex2 = 0;
|
|
42167
42167
|
let offset = 0;
|
|
42168
42168
|
const matrix = new Matrix4();
|
|
@@ -42170,7 +42170,7 @@ var Geometry;
|
|
|
42170
42170
|
for (let i = 0; i < info.instances.length; i++) {
|
|
42171
42171
|
const instance = info.instances[i];
|
|
42172
42172
|
const mesh = g3d2.getInstanceMesh(instance);
|
|
42173
|
-
buffer.groups[i] =
|
|
42173
|
+
buffer.groups[i] = index2;
|
|
42174
42174
|
const subStart = g3d2.getMeshSubmeshStart(mesh, info.section);
|
|
42175
42175
|
const subEnd = g3d2.getMeshSubmeshEnd(mesh, info.section);
|
|
42176
42176
|
for (let sub = subStart; sub < subEnd; sub++) {
|
|
@@ -42179,7 +42179,7 @@ var Geometry;
|
|
|
42179
42179
|
const end = g3d2.getSubmeshIndexEnd(sub);
|
|
42180
42180
|
for (let s = start; s < end; s++) {
|
|
42181
42181
|
const newIndex = g3d2.indices[s] + offset;
|
|
42182
|
-
buffer.indices[
|
|
42182
|
+
buffer.indices[index2++] = newIndex;
|
|
42183
42183
|
const v = newIndex * buffer.colorSize;
|
|
42184
42184
|
buffer.colors[v] = subColor[0];
|
|
42185
42185
|
buffer.colors[v + 1] = subColor[1];
|
|
@@ -42376,12 +42376,12 @@ class ObjectAttribute {
|
|
|
42376
42376
|
}
|
|
42377
42377
|
}
|
|
42378
42378
|
class InsertableSubmesh {
|
|
42379
|
-
constructor(mesh,
|
|
42379
|
+
constructor(mesh, index2) {
|
|
42380
42380
|
__publicField(this, "mesh");
|
|
42381
42381
|
__publicField(this, "index");
|
|
42382
42382
|
__publicField(this, "_colors");
|
|
42383
42383
|
this.mesh = mesh;
|
|
42384
|
-
this.index =
|
|
42384
|
+
this.index = index2;
|
|
42385
42385
|
}
|
|
42386
42386
|
equals(other) {
|
|
42387
42387
|
return this.mesh === other.mesh && this.index === other.index;
|
|
@@ -44492,10 +44492,10 @@ class InsertableGeometry {
|
|
|
44492
44492
|
submesh.instance = mesh.scene.instanceNodes[instance];
|
|
44493
44493
|
submesh.start = indexOffset + indexOut;
|
|
44494
44494
|
const vertexMergeOffset = vertexCount * instanceIndex;
|
|
44495
|
-
for (let
|
|
44495
|
+
for (let index2 = indexStart; index2 < indexEnd; index2++) {
|
|
44496
44496
|
this.setIndex(
|
|
44497
44497
|
indexOffset + indexOut,
|
|
44498
|
-
vertexOffset + vertexMergeOffset + mesh.chunk.indices[
|
|
44498
|
+
vertexOffset + vertexMergeOffset + mesh.chunk.indices[index2] - sectionOffset
|
|
44499
44499
|
);
|
|
44500
44500
|
indexOut++;
|
|
44501
44501
|
}
|
|
@@ -44565,8 +44565,8 @@ class InsertableGeometry {
|
|
|
44565
44565
|
const color = g3d2.getSubmeshColor(sub);
|
|
44566
44566
|
const indexStart = g3d2.getSubmeshIndexStart(sub);
|
|
44567
44567
|
const indexEnd = g3d2.getSubmeshIndexEnd(sub);
|
|
44568
|
-
for (let
|
|
44569
|
-
const v = vertexOffset + mergeOffset + g3d2.indices[
|
|
44568
|
+
for (let index2 = indexStart; index2 < indexEnd; index2++) {
|
|
44569
|
+
const v = vertexOffset + mergeOffset + g3d2.indices[index2];
|
|
44570
44570
|
this.setIndex(indexOffset + indexOut, v);
|
|
44571
44571
|
this.setColor(v, color, 0.25);
|
|
44572
44572
|
indexOut++;
|
|
@@ -44587,16 +44587,16 @@ class InsertableGeometry {
|
|
|
44587
44587
|
this._meshToUpdate.add(mesh);
|
|
44588
44588
|
return added;
|
|
44589
44589
|
}
|
|
44590
|
-
setIndex(
|
|
44591
|
-
this._indexAttribute.setX(
|
|
44590
|
+
setIndex(index2, value) {
|
|
44591
|
+
this._indexAttribute.setX(index2, value);
|
|
44592
44592
|
}
|
|
44593
|
-
setVertex(
|
|
44594
|
-
this._vertexAttribute.setXYZ(
|
|
44593
|
+
setVertex(index2, vector) {
|
|
44594
|
+
this._vertexAttribute.setXYZ(index2, vector.x, vector.y, vector.z);
|
|
44595
44595
|
}
|
|
44596
|
-
setColor(
|
|
44597
|
-
this._colorAttribute.setXYZ(
|
|
44596
|
+
setColor(index2, color, alpha) {
|
|
44597
|
+
this._colorAttribute.setXYZ(index2, color[0], color[1], color[2]);
|
|
44598
44598
|
if (this._colorAttribute.itemSize === 4) {
|
|
44599
|
-
this._colorAttribute.setW(
|
|
44599
|
+
this._colorAttribute.setW(index2, alpha);
|
|
44600
44600
|
}
|
|
44601
44601
|
}
|
|
44602
44602
|
expandBox(box) {
|
|
@@ -45823,8 +45823,8 @@ class InsertableMesh {
|
|
|
45823
45823
|
*
|
|
45824
45824
|
* @returns Returns submesh for given index.
|
|
45825
45825
|
*/
|
|
45826
|
-
getSubmesh(
|
|
45827
|
-
return new InsertableSubmesh(this,
|
|
45826
|
+
getSubmesh(index2) {
|
|
45827
|
+
return new InsertableSubmesh(this, index2);
|
|
45828
45828
|
}
|
|
45829
45829
|
/**
|
|
45830
45830
|
* Overrides mesh material, set to undefine to restore initial material.
|
|
@@ -45846,11 +45846,11 @@ class InsertableMesh {
|
|
|
45846
45846
|
}
|
|
45847
45847
|
}
|
|
45848
45848
|
class InstancedSubmesh {
|
|
45849
|
-
constructor(mesh,
|
|
45849
|
+
constructor(mesh, index2) {
|
|
45850
45850
|
__publicField(this, "mesh");
|
|
45851
45851
|
__publicField(this, "index");
|
|
45852
45852
|
this.mesh = mesh;
|
|
45853
|
-
this.index =
|
|
45853
|
+
this.index = index2;
|
|
45854
45854
|
}
|
|
45855
45855
|
equals(other) {
|
|
45856
45856
|
return this.mesh === other.mesh && this.index === other.index;
|
|
@@ -45913,8 +45913,8 @@ class InstancedMesh2 {
|
|
|
45913
45913
|
/**
|
|
45914
45914
|
* Returns submesh for given index.
|
|
45915
45915
|
*/
|
|
45916
|
-
getSubMesh(
|
|
45917
|
-
return new InstancedSubmesh(this,
|
|
45916
|
+
getSubMesh(index2) {
|
|
45917
|
+
return new InstancedSubmesh(this, index2);
|
|
45918
45918
|
}
|
|
45919
45919
|
/**
|
|
45920
45920
|
* Returns all submeshes for given index.
|
|
@@ -46146,13 +46146,13 @@ class LoadingSynchronizer {
|
|
|
46146
46146
|
}
|
|
46147
46147
|
return promises;
|
|
46148
46148
|
}
|
|
46149
|
-
async merge(mesh,
|
|
46149
|
+
async merge(mesh, index2) {
|
|
46150
46150
|
const m = await this.getMesh(mesh);
|
|
46151
|
-
this.mergeQueue.push(() => this.mergeAction(m,
|
|
46151
|
+
this.mergeQueue.push(() => this.mergeAction(m, index2));
|
|
46152
46152
|
}
|
|
46153
|
-
async instance(mesh,
|
|
46153
|
+
async instance(mesh, index2) {
|
|
46154
46154
|
const m = await this.getMesh(mesh);
|
|
46155
|
-
this.instanceQueue.push(() => this.instanceAction(m,
|
|
46155
|
+
this.instanceQueue.push(() => this.instanceAction(m, index2));
|
|
46156
46156
|
}
|
|
46157
46157
|
}
|
|
46158
46158
|
function getFullSettings(option) {
|
|
@@ -46200,8 +46200,8 @@ class SubsetRequest {
|
|
|
46200
46200
|
this._uniques,
|
|
46201
46201
|
this._nonUniques,
|
|
46202
46202
|
(mesh) => localVimx.getMesh(mesh),
|
|
46203
|
-
(mesh,
|
|
46204
|
-
(mesh,
|
|
46203
|
+
(mesh, index2) => this.mergeMesh(mesh, index2),
|
|
46204
|
+
(mesh, index2) => this.instanceMesh(mesh, this._nonUniques.getMeshInstances(index2))
|
|
46205
46205
|
);
|
|
46206
46206
|
return this;
|
|
46207
46207
|
}
|
|
@@ -46220,7 +46220,7 @@ class SubsetRequest {
|
|
|
46220
46220
|
}
|
|
46221
46221
|
this._started = true;
|
|
46222
46222
|
const fullSettings = getFullSettings(settings2);
|
|
46223
|
-
this._synchronizer.loadAll();
|
|
46223
|
+
void this._synchronizer.loadAll();
|
|
46224
46224
|
let lastUpdate = Date.now();
|
|
46225
46225
|
while (true) {
|
|
46226
46226
|
await this.nextFrame();
|
|
@@ -46240,9 +46240,9 @@ class SubsetRequest {
|
|
|
46240
46240
|
async nextFrame() {
|
|
46241
46241
|
return new Promise((resolve) => setTimeout(resolve, 0));
|
|
46242
46242
|
}
|
|
46243
|
-
mergeMesh(g3dMesh2,
|
|
46244
|
-
this._transparentMesh.insert(g3dMesh2,
|
|
46245
|
-
this._opaqueMesh.insert(g3dMesh2,
|
|
46243
|
+
mergeMesh(g3dMesh2, index2) {
|
|
46244
|
+
this._transparentMesh.insert(g3dMesh2, index2);
|
|
46245
|
+
this._opaqueMesh.insert(g3dMesh2, index2);
|
|
46246
46246
|
}
|
|
46247
46247
|
instanceMesh(g3dMesh2, instances) {
|
|
46248
46248
|
const opaque = this._meshFactory.createOpaque(g3dMesh2, instances);
|
|
@@ -46332,14 +46332,14 @@ class G3dMeshOffsets {
|
|
|
46332
46332
|
* @mesh subset-based mesh index
|
|
46333
46333
|
* @index mesh-based instance index
|
|
46334
46334
|
*/
|
|
46335
|
-
getMeshInstance(mesh,
|
|
46336
|
-
return this.subset.getMeshInstance(mesh,
|
|
46335
|
+
getMeshInstance(mesh, index2) {
|
|
46336
|
+
return this.subset.getMeshInstance(mesh, index2);
|
|
46337
46337
|
}
|
|
46338
46338
|
/**
|
|
46339
46339
|
* Returns the source-based mesh index at given index
|
|
46340
46340
|
*/
|
|
46341
|
-
getSourceMesh(
|
|
46342
|
-
return this.subset.getSourceMesh(
|
|
46341
|
+
getSourceMesh(index2) {
|
|
46342
|
+
return this.subset.getSourceMesh(index2);
|
|
46343
46343
|
}
|
|
46344
46344
|
}
|
|
46345
46345
|
class G3dSubset {
|
|
@@ -46409,8 +46409,8 @@ class G3dSubset {
|
|
|
46409
46409
|
* Returns source-based mesh index.
|
|
46410
46410
|
* @param index subset-based mesh index
|
|
46411
46411
|
*/
|
|
46412
|
-
getSourceMesh(
|
|
46413
|
-
return this._meshes[
|
|
46412
|
+
getSourceMesh(index2) {
|
|
46413
|
+
return this._meshes[index2];
|
|
46414
46414
|
}
|
|
46415
46415
|
/**
|
|
46416
46416
|
* Returns total mesh count in subset.
|
|
@@ -46463,8 +46463,8 @@ class G3dSubset {
|
|
|
46463
46463
|
* @param mesh subset-based mesh index.
|
|
46464
46464
|
* @param index mesh-based instance index
|
|
46465
46465
|
*/
|
|
46466
|
-
getMeshInstance(mesh,
|
|
46467
|
-
return this._meshInstances[mesh][
|
|
46466
|
+
getMeshInstance(mesh, index2) {
|
|
46467
|
+
return this._meshInstances[mesh][index2];
|
|
46468
46468
|
}
|
|
46469
46469
|
/**
|
|
46470
46470
|
* Returns a new subset that only contains unique meshes.
|
|
@@ -46633,6 +46633,7 @@ class VimSubsetBuilder {
|
|
|
46633
46633
|
getFullSet() {
|
|
46634
46634
|
return new G3dSubset(this.factory.g3d);
|
|
46635
46635
|
}
|
|
46636
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46636
46637
|
loadSubset(subset, settings2) {
|
|
46637
46638
|
this.factory.add(subset);
|
|
46638
46639
|
this._onUpdate.dispatch();
|
|
@@ -47124,11 +47125,11 @@ function getViewerSettings(settings2) {
|
|
|
47124
47125
|
}
|
|
47125
47126
|
const combineMerge = (target, source, options) => {
|
|
47126
47127
|
const destination = target.slice();
|
|
47127
|
-
source.forEach((item,
|
|
47128
|
-
if (typeof destination[
|
|
47129
|
-
destination[
|
|
47128
|
+
source.forEach((item, index2) => {
|
|
47129
|
+
if (typeof destination[index2] === "undefined") {
|
|
47130
|
+
destination[index2] = options.cloneUnlessOtherwiseSpecified(item, options);
|
|
47130
47131
|
} else if (options.isMergeableObject(item)) {
|
|
47131
|
-
destination[
|
|
47132
|
+
destination[index2] = deepmerge(target[index2], item, options);
|
|
47132
47133
|
} else if (target.indexOf(item) === -1) {
|
|
47133
47134
|
destination.push(item);
|
|
47134
47135
|
}
|
|
@@ -48165,12 +48166,12 @@ class KeyboardHandler extends InputHandler$1 {
|
|
|
48165
48166
|
}
|
|
48166
48167
|
}
|
|
48167
48168
|
class SimpleInstanceSubmesh {
|
|
48168
|
-
constructor(mesh,
|
|
48169
|
+
constructor(mesh, index2) {
|
|
48169
48170
|
__publicField(this, "mesh");
|
|
48170
48171
|
__publicField(this, "index");
|
|
48171
48172
|
__publicField(this, "merged", false);
|
|
48172
48173
|
this.mesh = mesh;
|
|
48173
|
-
this.index =
|
|
48174
|
+
this.index = index2;
|
|
48174
48175
|
}
|
|
48175
48176
|
get three() {
|
|
48176
48177
|
return this.mesh;
|
|
@@ -48185,8 +48186,8 @@ class GizmoMarkers {
|
|
|
48185
48186
|
this._mesh = this.createMesh(void 0, 1, 0);
|
|
48186
48187
|
this._mesh.count = 0;
|
|
48187
48188
|
}
|
|
48188
|
-
getMarkerFromIndex(
|
|
48189
|
-
return this._markers[
|
|
48189
|
+
getMarkerFromIndex(index2) {
|
|
48190
|
+
return this._markers[index2];
|
|
48190
48191
|
}
|
|
48191
48192
|
createMesh(previous, capacity, count) {
|
|
48192
48193
|
const geometry = (previous == null ? void 0 : previous.geometry) ?? new SphereGeometry(1, 8, 8);
|
|
@@ -48237,14 +48238,14 @@ class GizmoMarkers {
|
|
|
48237
48238
|
* @param {GizmoMarker} marker - The marker to remove.
|
|
48238
48239
|
*/
|
|
48239
48240
|
remove(marker) {
|
|
48240
|
-
const
|
|
48241
|
-
if (
|
|
48242
|
-
this._markers[
|
|
48241
|
+
const index2 = this._markers.findIndex((m) => m === marker);
|
|
48242
|
+
if (index2 < 0) return;
|
|
48243
|
+
this._markers[index2] = this._markers[this._markers.length - 1];
|
|
48243
48244
|
this._markers.length -= 1;
|
|
48244
48245
|
this._mesh.count -= 1;
|
|
48245
|
-
const replacement2 = this._markers[
|
|
48246
|
+
const replacement2 = this._markers[index2];
|
|
48246
48247
|
if (replacement2) {
|
|
48247
|
-
const sub = new SimpleInstanceSubmesh(this._mesh,
|
|
48248
|
+
const sub = new SimpleInstanceSubmesh(this._mesh, index2);
|
|
48248
48249
|
replacement2.updateMesh(sub);
|
|
48249
48250
|
}
|
|
48250
48251
|
this._viewer.renderer.needsUpdate = true;
|
|
@@ -50924,10 +50925,10 @@ function MeshLineRaycast(raycaster, intersects2) {
|
|
|
50924
50925
|
const vEnd = new Vector3$1();
|
|
50925
50926
|
const interSegment = new Vector3$1();
|
|
50926
50927
|
const step = this instanceof LineSegments ? 2 : 1;
|
|
50927
|
-
const
|
|
50928
|
+
const index2 = geometry.index;
|
|
50928
50929
|
const attributes = geometry.attributes;
|
|
50929
|
-
if (
|
|
50930
|
-
const indices =
|
|
50930
|
+
if (index2 !== null) {
|
|
50931
|
+
const indices = index2.array;
|
|
50931
50932
|
const positions = attributes.position.array;
|
|
50932
50933
|
const widths = attributes.width.array;
|
|
50933
50934
|
for (let i = 0, l = indices.length - 1; i < l; i += step) {
|
|
@@ -52703,14 +52704,14 @@ class EffectComposer {
|
|
|
52703
52704
|
this.passes.push(pass);
|
|
52704
52705
|
pass.setSize(this._width * this._pixelRatio, this._height * this._pixelRatio);
|
|
52705
52706
|
}
|
|
52706
|
-
insertPass(pass,
|
|
52707
|
-
this.passes.splice(
|
|
52707
|
+
insertPass(pass, index2) {
|
|
52708
|
+
this.passes.splice(index2, 0, pass);
|
|
52708
52709
|
pass.setSize(this._width * this._pixelRatio, this._height * this._pixelRatio);
|
|
52709
52710
|
}
|
|
52710
52711
|
removePass(pass) {
|
|
52711
|
-
const
|
|
52712
|
-
if (
|
|
52713
|
-
this.passes.splice(
|
|
52712
|
+
const index2 = this.passes.indexOf(pass);
|
|
52713
|
+
if (index2 !== -1) {
|
|
52714
|
+
this.passes.splice(index2, 1);
|
|
52714
52715
|
}
|
|
52715
52716
|
}
|
|
52716
52717
|
isLastEnabledPass(passIndex) {
|
|
@@ -56889,8 +56890,8 @@ var toIntegerOrInfinity$2 = function(argument) {
|
|
|
56889
56890
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
56890
56891
|
var max = Math.max;
|
|
56891
56892
|
var min$1 = Math.min;
|
|
56892
|
-
var toAbsoluteIndex$1 = function(
|
|
56893
|
-
var integer = toIntegerOrInfinity$1(
|
|
56893
|
+
var toAbsoluteIndex$1 = function(index2, length) {
|
|
56894
|
+
var integer = toIntegerOrInfinity$1(index2);
|
|
56894
56895
|
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
56895
56896
|
};
|
|
56896
56897
|
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
@@ -56909,14 +56910,14 @@ var createMethod$1 = function(IS_INCLUDES) {
|
|
|
56909
56910
|
return function($this, el, fromIndex) {
|
|
56910
56911
|
var O = toIndexedObject$2($this);
|
|
56911
56912
|
var length = lengthOfArrayLike$1(O);
|
|
56912
|
-
var
|
|
56913
|
+
var index2 = toAbsoluteIndex(fromIndex, length);
|
|
56913
56914
|
var value;
|
|
56914
|
-
if (IS_INCLUDES && el != el) while (length >
|
|
56915
|
-
value = O[
|
|
56915
|
+
if (IS_INCLUDES && el != el) while (length > index2) {
|
|
56916
|
+
value = O[index2++];
|
|
56916
56917
|
if (value != value) return true;
|
|
56917
56918
|
}
|
|
56918
|
-
else for (; length >
|
|
56919
|
-
if ((IS_INCLUDES ||
|
|
56919
|
+
else for (; length > index2; index2++) {
|
|
56920
|
+
if ((IS_INCLUDES || index2 in O) && O[index2] === el) return IS_INCLUDES || index2 || 0;
|
|
56920
56921
|
}
|
|
56921
56922
|
return !IS_INCLUDES && -1;
|
|
56922
56923
|
};
|
|
@@ -57162,15 +57163,15 @@ var createMethod = function(TYPE) {
|
|
|
57162
57163
|
var self2 = IndexedObject(O);
|
|
57163
57164
|
var boundFunction = bind(callbackfn, that);
|
|
57164
57165
|
var length = lengthOfArrayLike(self2);
|
|
57165
|
-
var
|
|
57166
|
+
var index2 = 0;
|
|
57166
57167
|
var create3 = specificCreate || arraySpeciesCreate;
|
|
57167
57168
|
var target = IS_MAP ? create3($this, length) : IS_FILTER || IS_FILTER_REJECT ? create3($this, 0) : void 0;
|
|
57168
57169
|
var value, result;
|
|
57169
|
-
for (; length >
|
|
57170
|
-
value = self2[
|
|
57171
|
-
result = boundFunction(value,
|
|
57170
|
+
for (; length > index2; index2++) if (NO_HOLES || index2 in self2) {
|
|
57171
|
+
value = self2[index2];
|
|
57172
|
+
result = boundFunction(value, index2, O);
|
|
57172
57173
|
if (TYPE) {
|
|
57173
|
-
if (IS_MAP) target[
|
|
57174
|
+
if (IS_MAP) target[index2] = result;
|
|
57174
57175
|
else if (result) switch (TYPE) {
|
|
57175
57176
|
case 3:
|
|
57176
57177
|
return true;
|
|
@@ -57179,7 +57180,7 @@ var createMethod = function(TYPE) {
|
|
|
57179
57180
|
return value;
|
|
57180
57181
|
// find
|
|
57181
57182
|
case 6:
|
|
57182
|
-
return
|
|
57183
|
+
return index2;
|
|
57183
57184
|
// findIndex
|
|
57184
57185
|
case 2:
|
|
57185
57186
|
push(target, value);
|
|
@@ -57239,9 +57240,9 @@ objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defi
|
|
|
57239
57240
|
var props = toIndexedObject(Properties);
|
|
57240
57241
|
var keys3 = objectKeys(Properties);
|
|
57241
57242
|
var length = keys3.length;
|
|
57242
|
-
var
|
|
57243
|
+
var index2 = 0;
|
|
57243
57244
|
var key;
|
|
57244
|
-
while (length >
|
|
57245
|
+
while (length > index2) definePropertyModule.f(O, key = keys3[index2++], props[key]);
|
|
57245
57246
|
return O;
|
|
57246
57247
|
};
|
|
57247
57248
|
var getBuiltIn = getBuiltIn$5;
|
|
@@ -57872,8 +57873,8 @@ function nodeListToArray(nodeList) {
|
|
|
57872
57873
|
if (nodeList.hasOwnProperty) {
|
|
57873
57874
|
return Array.prototype.slice.call(nodeList);
|
|
57874
57875
|
}
|
|
57875
|
-
return new Array(length).fill().map(function(
|
|
57876
|
-
return nodeList[
|
|
57876
|
+
return new Array(length).fill().map(function(index2) {
|
|
57877
|
+
return nodeList[index2];
|
|
57877
57878
|
});
|
|
57878
57879
|
}
|
|
57879
57880
|
function generateUUID() {
|
|
@@ -62175,8 +62176,8 @@ var defaultLiveDescriptors = {
|
|
|
62175
62176
|
programmaticallyDraggingTarget: "\n <p>Drop target is {dropTarget}.</p>\n "
|
|
62176
62177
|
};
|
|
62177
62178
|
var resolveLiveDescriptor = function(descriptor, environment, dnd, tree, keyboardBindings) {
|
|
62178
|
-
var getItemTitle = function(
|
|
62179
|
-
return environment.getItemTitle(environment.items[
|
|
62179
|
+
var getItemTitle = function(index2) {
|
|
62180
|
+
return environment.getItemTitle(environment.items[index2]);
|
|
62180
62181
|
};
|
|
62181
62182
|
return descriptor.replace(/({[^\s}]+)}/g, function(variableNameWithBrackets) {
|
|
62182
62183
|
var _a2, _b2, _c;
|
|
@@ -63141,7 +63142,7 @@ class AbstractMenu extends Component {
|
|
|
63141
63142
|
const children = [];
|
|
63142
63143
|
let disabledChildrenCount = 0;
|
|
63143
63144
|
let disabledChildIndexes = {};
|
|
63144
|
-
const childCollector = (child,
|
|
63145
|
+
const childCollector = (child, index2) => {
|
|
63145
63146
|
if (!child) {
|
|
63146
63147
|
return;
|
|
63147
63148
|
}
|
|
@@ -63150,7 +63151,7 @@ class AbstractMenu extends Component {
|
|
|
63150
63151
|
} else if (!child.props.divider) {
|
|
63151
63152
|
if (child.props.disabled) {
|
|
63152
63153
|
++disabledChildrenCount;
|
|
63153
|
-
disabledChildIndexes[
|
|
63154
|
+
disabledChildIndexes[index2] = true;
|
|
63154
63155
|
}
|
|
63155
63156
|
children.push(child);
|
|
63156
63157
|
}
|
|
@@ -64397,9 +64398,9 @@ function BimTree(props) {
|
|
|
64397
64398
|
}
|
|
64398
64399
|
},
|
|
64399
64400
|
onFocusItem: (item) => {
|
|
64400
|
-
const
|
|
64401
|
-
setFocusedItem(
|
|
64402
|
-
updateViewerFocus(props.viewer, props.treeData,
|
|
64401
|
+
const index2 = item.index;
|
|
64402
|
+
setFocusedItem(index2);
|
|
64403
|
+
updateViewerFocus(props.viewer, props.treeData, index2);
|
|
64403
64404
|
},
|
|
64404
64405
|
onExpandItem: (item) => {
|
|
64405
64406
|
setExpandedItems([...expandedItems, item.index]);
|
|
@@ -64417,23 +64418,23 @@ function BimTree(props) {
|
|
|
64417
64418
|
}
|
|
64418
64419
|
);
|
|
64419
64420
|
}
|
|
64420
|
-
function toggleVisibility(viewer, isolation, tree,
|
|
64421
|
-
const objs = tree.getLeafs(
|
|
64421
|
+
function toggleVisibility(viewer, isolation, tree, index2) {
|
|
64422
|
+
const objs = tree.getLeafs(index2).map(
|
|
64422
64423
|
(n) => {
|
|
64423
64424
|
var _a2, _b2;
|
|
64424
64425
|
return (_b2 = viewer.vims[0]) == null ? void 0 : _b2.getObjectFromElement((_a2 = tree.nodes[n]) == null ? void 0 : _a2.data.index);
|
|
64425
64426
|
}
|
|
64426
64427
|
);
|
|
64427
|
-
const visibility = tree.nodes[
|
|
64428
|
+
const visibility = tree.nodes[index2].visible;
|
|
64428
64429
|
if (visibility !== "vim-visible") {
|
|
64429
64430
|
isolation.show(objs, "tree");
|
|
64430
64431
|
} else {
|
|
64431
64432
|
isolation.hide(objs, "tree");
|
|
64432
64433
|
}
|
|
64433
64434
|
}
|
|
64434
|
-
function updateViewerFocus(viewer, tree,
|
|
64435
|
+
function updateViewerFocus(viewer, tree, index2) {
|
|
64435
64436
|
var _a2;
|
|
64436
|
-
const node = tree.nodes[
|
|
64437
|
+
const node = tree.nodes[index2];
|
|
64437
64438
|
const obj = viewer.vims[0].getObjectFromElement((_a2 = node.data) == null ? void 0 : _a2.index);
|
|
64438
64439
|
viewer.selection.focus(obj);
|
|
64439
64440
|
}
|
|
@@ -64623,8 +64624,8 @@ class BimTreeData {
|
|
|
64623
64624
|
const max2 = Math.max(start, end);
|
|
64624
64625
|
const result = [];
|
|
64625
64626
|
for (const node of Object.values(this.nodes)) {
|
|
64626
|
-
const
|
|
64627
|
-
if (
|
|
64627
|
+
const index2 = node.index;
|
|
64628
|
+
if (index2 >= min2 && index2 <= max2) result.push(index2);
|
|
64628
64629
|
}
|
|
64629
64630
|
return result;
|
|
64630
64631
|
}
|
|
@@ -65034,9 +65035,9 @@ function toGroups(entries) {
|
|
|
65034
65035
|
key: `g.title-${i}`
|
|
65035
65036
|
}));
|
|
65036
65037
|
}
|
|
65037
|
-
function parameterToEntry(element,
|
|
65038
|
+
function parameterToEntry(element, index2) {
|
|
65038
65039
|
return {
|
|
65039
|
-
key: `${element.name ?? ""}-${
|
|
65040
|
+
key: `${element.name ?? ""}-${index2}`,
|
|
65040
65041
|
label: element.name ?? "",
|
|
65041
65042
|
value: element.value ?? ""
|
|
65042
65043
|
};
|
|
@@ -65461,8 +65462,8 @@ var findClosestSnap = function(n, snapArray, snapGap) {
|
|
|
65461
65462
|
if (snapGap === void 0) {
|
|
65462
65463
|
snapGap = 0;
|
|
65463
65464
|
}
|
|
65464
|
-
var closestGapIndex = snapArray.reduce(function(prev, curr,
|
|
65465
|
-
return Math.abs(curr - n) < Math.abs(snapArray[prev] - n) ?
|
|
65465
|
+
var closestGapIndex = snapArray.reduce(function(prev, curr, index2) {
|
|
65466
|
+
return Math.abs(curr - n) < Math.abs(snapArray[prev] - n) ? index2 : prev;
|
|
65466
65467
|
}, 0);
|
|
65467
65468
|
var gap = Math.abs(snapArray[closestGapIndex] - n);
|
|
65468
65469
|
return snapGap === 0 || gap < snapGap ? snapArray[closestGapIndex] : n;
|
|
@@ -69494,7 +69495,7 @@ class RpcSafeClient {
|
|
|
69494
69495
|
const batches = batchArray(colors, this.batchSize);
|
|
69495
69496
|
const promises = batches.map(async (batch) => {
|
|
69496
69497
|
const id2 = await this.rpc.RPCCreateMaterialInstances(materialHandle, smoothness, batch);
|
|
69497
|
-
return Array.from({ length: batch.length }, (_,
|
|
69498
|
+
return Array.from({ length: batch.length }, (_, index2) => id2 + index2);
|
|
69498
69499
|
});
|
|
69499
69500
|
const handles = await Promise.all(promises);
|
|
69500
69501
|
const result = handles.flat();
|
|
@@ -71068,8 +71069,8 @@ class ColorManager {
|
|
|
71068
71069
|
for (let i = 0; i < colors.length; i++) {
|
|
71069
71070
|
const color = toCreate[i];
|
|
71070
71071
|
const indices = hexToIndices.get(color.hex);
|
|
71071
|
-
for (const
|
|
71072
|
-
result[
|
|
71072
|
+
for (const index2 of indices) {
|
|
71073
|
+
result[index2] = colors[i];
|
|
71073
71074
|
}
|
|
71074
71075
|
}
|
|
71075
71076
|
return result;
|
|
@@ -71454,8 +71455,8 @@ class VimCollection {
|
|
|
71454
71455
|
* @param index - The index of the Vim instance.
|
|
71455
71456
|
* @returns The Vim instance or undefined if the index is out of bounds.
|
|
71456
71457
|
*/
|
|
71457
|
-
getAt(
|
|
71458
|
-
return this._vims[
|
|
71458
|
+
getAt(index2) {
|
|
71459
|
+
return this._vims[index2];
|
|
71459
71460
|
}
|
|
71460
71461
|
/**
|
|
71461
71462
|
* Gets all Vim instances.
|
|
@@ -71903,7 +71904,7 @@ class Viewer2 {
|
|
|
71903
71904
|
window.onbeforeunload = null;
|
|
71904
71905
|
}
|
|
71905
71906
|
}
|
|
71906
|
-
const
|
|
71907
|
+
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71907
71908
|
__proto__: null,
|
|
71908
71909
|
Box3: Box32,
|
|
71909
71910
|
ColorHandle,
|
|
@@ -72055,9 +72056,9 @@ function linkButtons() {
|
|
|
72055
72056
|
function useModal(canFollowLinks) {
|
|
72056
72057
|
const [modal, setModal] = useState([]);
|
|
72057
72058
|
const refModal = useRef(modal);
|
|
72058
|
-
const update = (value,
|
|
72059
|
+
const update = (value, index2) => {
|
|
72059
72060
|
refModal.current = [...refModal.current];
|
|
72060
|
-
refModal.current[
|
|
72061
|
+
refModal.current[index2] = value;
|
|
72061
72062
|
setModal(refModal.current);
|
|
72062
72063
|
};
|
|
72063
72064
|
return {
|
|
@@ -72175,10 +72176,10 @@ function subTitle(title2) {
|
|
|
72175
72176
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `vc-text-base vc-font-bold ${vcColorPrimary}`, children: title2 });
|
|
72176
72177
|
}
|
|
72177
72178
|
function dotList(elements) {
|
|
72178
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: `vc-space-y-1 vc-ml-5 ${vcColorPrimary} vc-mb-4`, children: elements.filter((v) => v).map((element,
|
|
72179
|
+
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)) });
|
|
72179
72180
|
}
|
|
72180
72181
|
function numList(elements) {
|
|
72181
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: `vc-space-y-1 vc-ml-5 ${vcColorPrimary} vc-mb-4`, children: elements.filter((v) => v).map((element,
|
|
72182
|
+
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)) });
|
|
72182
72183
|
}
|
|
72183
72184
|
function bullet(label, value) {
|
|
72184
72185
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -72419,8 +72420,8 @@ function updateModal(modal, state) {
|
|
|
72419
72420
|
function ToRef(viewer, modal) {
|
|
72420
72421
|
function load(url) {
|
|
72421
72422
|
const request2 = viewer.loadVim(url);
|
|
72422
|
-
updateProgress(request2, modal);
|
|
72423
|
-
request2.getResult().then(
|
|
72423
|
+
void updateProgress(request2, modal);
|
|
72424
|
+
void request2.getResult().then(
|
|
72424
72425
|
(result) => {
|
|
72425
72426
|
if (result.isError) {
|
|
72426
72427
|
modal.message(getRequestErrorMessage(url, result.error));
|
|
@@ -72447,11 +72448,6 @@ async function updateProgress(request2, modal) {
|
|
|
72447
72448
|
modal.loading({ message: "Loading File...", progress });
|
|
72448
72449
|
}
|
|
72449
72450
|
}
|
|
72450
|
-
const ultraComponent = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72451
|
-
__proto__: null,
|
|
72452
|
-
UltraComponent,
|
|
72453
|
-
createUltraComponent
|
|
72454
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
72455
72451
|
class ComponentLoader {
|
|
72456
72452
|
constructor(viewer, modal) {
|
|
72457
72453
|
__publicField(this, "_viewer");
|
|
@@ -72488,12 +72484,12 @@ class ComponentLoader {
|
|
|
72488
72484
|
* Receives progress logs as input.
|
|
72489
72485
|
*/
|
|
72490
72486
|
async open(source, settings2, onProgress) {
|
|
72491
|
-
const
|
|
72492
|
-
for await (const progress of
|
|
72487
|
+
const request2 = this.request(source, settings2);
|
|
72488
|
+
for await (const progress of request2.getProgress()) {
|
|
72493
72489
|
onProgress == null ? void 0 : onProgress(progress);
|
|
72494
72490
|
this.onProgress(progress);
|
|
72495
72491
|
}
|
|
72496
|
-
const result = await
|
|
72492
|
+
const result = await request2.getResult();
|
|
72497
72493
|
if (result.isError()) {
|
|
72498
72494
|
console.log("Error loading vim", result.error);
|
|
72499
72495
|
this.onError({
|
|
@@ -72545,7 +72541,7 @@ class ComponentLoader {
|
|
|
72545
72541
|
}
|
|
72546
72542
|
});
|
|
72547
72543
|
if (settings2.loadEmpty !== true) {
|
|
72548
|
-
vim.loadAll();
|
|
72544
|
+
void vim.loadAll();
|
|
72549
72545
|
}
|
|
72550
72546
|
}
|
|
72551
72547
|
}
|
|
@@ -72722,7 +72718,7 @@ function VimComponent(props) {
|
|
|
72722
72718
|
)
|
|
72723
72719
|
] });
|
|
72724
72720
|
}
|
|
72725
|
-
const
|
|
72721
|
+
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72726
72722
|
__proto__: null,
|
|
72727
72723
|
BimInfo: bimInfoData,
|
|
72728
72724
|
ContextMenu: contextMenu,
|
|
@@ -72737,10 +72733,15 @@ const webglComponent = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
72737
72733
|
defaultSettings,
|
|
72738
72734
|
getLocalSettings: getLocalComponentSettings
|
|
72739
72735
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72736
|
+
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72737
|
+
__proto__: null,
|
|
72738
|
+
UltraComponent,
|
|
72739
|
+
createUltraComponent
|
|
72740
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
72740
72741
|
export {
|
|
72741
|
-
|
|
72742
|
-
|
|
72743
|
-
|
|
72742
|
+
index as UltraReact,
|
|
72743
|
+
index$2 as UltraViewer,
|
|
72744
|
+
index$1 as WebglReact,
|
|
72744
72745
|
VIM as WebglViewer
|
|
72745
72746
|
};
|
|
72746
72747
|
//# sourceMappingURL=vim-web.mjs.map
|