@realsee/dnalogel 3.61.3 → 3.61.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +2 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +5 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +192 -182
- package/dist/index.umd.js +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +84 -75
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +45 -43
- package/libs/PanoMeasurePlugin/typings/data.d.ts +5 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var Uo = Math.pow, yl = (n, t, e) => t in n ? j0(n, t, { enumerable: !0, configu
|
|
|
9
9
|
for (var e of Qo(t))
|
|
10
10
|
du.call(t, e) && yl(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
|
-
},
|
|
12
|
+
}, he = (n, t) => R0(n, B0(t));
|
|
13
13
|
var Dn = (n, t) => {
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var i in n)
|
|
@@ -38,12 +38,12 @@ var $ = (n, t, e) => new Promise((i, s) => {
|
|
|
38
38
|
});
|
|
39
39
|
import { InternalWebGLRenderer as V0, Camera as _0, loadAt3d as F0, Five as _t, Subscribe as Pr } from "@realsee/five";
|
|
40
40
|
import * as y from "three";
|
|
41
|
-
import { Vector3 as
|
|
41
|
+
import { Vector3 as ue, Object3D as tr, Matrix4 as tt, LineSegments as H0, Group as jn, Raycaster as Ir, MeshBasicMaterial as uo, Vector4 as as, Curve as xm, Loader as fu, LoaderUtils as wl, FileLoader as N0, TextureLoader as Uc, RepeatWrapping as pu, ClampToEdgeWrapping as mu, Texture as gu, MeshPhongMaterial as Cl, MeshLambertMaterial as G0, Color as Kt, sRGBEncoding as Kr, EquirectangularReflectionMapping as W0, Bone as vu, PropertyBinding as Yo, OrthographicCamera as Q0, PerspectiveCamera as U0, PointLight as Au, MathUtils as Hi, SpotLight as Y0, DirectionalLight as X0, SkinnedMesh as Z0, Mesh as ir, LineBasicMaterial as J0, Line as q0, Skeleton as K0, AmbientLight as $0, BufferGeometry as Xo, Float32BufferAttribute as _s, Uint16BufferAttribute as eA, Matrix3 as tA, BufferAttribute as iA, AnimationClip as nA, Quaternion as Ys, Euler as rs, VectorKeyframeTrack as sA, QuaternionKeyframeTrack as rA, NumberKeyframeTrack as oA, CanvasTexture as aA, AnimationMixer as lA, Vector2 as Ht, PlaneGeometry as cA, LinearFilter as oc, CurvePath as hA, LineCurve3 as uA, TubeGeometry as dA, ShaderMaterial as km, SphereGeometry as fA, DoubleSide as Dm, RingGeometry as pA, VideoTexture as mA, SphereBufferGeometry as gA } from "three";
|
|
42
42
|
import { LineGeometry as vA, LineMaterial as AA, THREE_Line2 as bA, Line as yA } from "@realsee/five/line";
|
|
43
43
|
import { GLTFLoader as wA } from "@realsee/five/gltf-loader";
|
|
44
44
|
function CA() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.61.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.61.5",
|
|
47
47
|
[
|
|
48
48
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
49
49
|
"background-repeat: no-repeat",
|
|
@@ -1206,9 +1206,9 @@ function Pu(n, t) {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
return s;
|
|
1208
1208
|
}
|
|
1209
|
-
const GA = ({ x: n, y: t, z: e }) => new
|
|
1209
|
+
const GA = ({ x: n, y: t, z: e }) => new ue(n, t, e), Vn = (n) => new ue().fromArray(n), He = (n) => {
|
|
1210
1210
|
if (n)
|
|
1211
|
-
return n instanceof
|
|
1211
|
+
return n instanceof ue ? n : Array.isArray(n) ? Vn(n) : GA(n);
|
|
1212
1212
|
};
|
|
1213
1213
|
function WA(n) {
|
|
1214
1214
|
if (n)
|
|
@@ -3147,7 +3147,7 @@ class gi extends tr {
|
|
|
3147
3147
|
}
|
|
3148
3148
|
}
|
|
3149
3149
|
function ci(...n) {
|
|
3150
|
-
const t = new
|
|
3150
|
+
const t = new ue();
|
|
3151
3151
|
return n.forEach((e) => t.add(e)), t.divideScalar(n.length), t;
|
|
3152
3152
|
}
|
|
3153
3153
|
function Ja(n) {
|
|
@@ -3628,7 +3628,7 @@ class Di extends gi {
|
|
|
3628
3628
|
opacity: (l = e == null ? void 0 : e.lineOpacity) != null ? l : 1,
|
|
3629
3629
|
depthWrite: !1,
|
|
3630
3630
|
transparent: !0
|
|
3631
|
-
}, s = new sb(
|
|
3631
|
+
}, s = new sb(he(B({}, i), { dashed: !1, depthTest: !0 })), r = new rb(he(B({}, i), { dashed: !0, depthTest: !1 }));
|
|
3632
3632
|
if (this.line1 = new xu(this.geometry, s), this.line2 = new xu(this.geometry, r), this.line1.renderOrder = 2, this.line2.renderOrder = 2, this.line1.name = "line1", this.line2.name = "line2", this.add(this.line1), this.five) {
|
|
3633
3633
|
const h = (c = this.five.renderer) == null ? void 0 : c.getSize(new y.Vector2());
|
|
3634
3634
|
h && this.setResolution(h.width, h.height);
|
|
@@ -3838,7 +3838,7 @@ function hb() {
|
|
|
3838
3838
|
lineColor: 3407837,
|
|
3839
3839
|
lineOpacity: 0.7,
|
|
3840
3840
|
occlusionVisibility: !0
|
|
3841
|
-
}, i = new Di(
|
|
3841
|
+
}, i = new Di(he(B({ points: [{ x: -0.5 }, { x: 0.5 }] }, e), { lineColor: 3407837 })), s = new Di(he(B({ points: [{ y: -0.5 }, { y: 0.5 }] }, e), { lineColor: 3407837 }));
|
|
3842
3842
|
return t.add(i, s), t;
|
|
3843
3843
|
}
|
|
3844
3844
|
function ub(n) {
|
|
@@ -3979,7 +3979,7 @@ function _m(n, t = 3) {
|
|
|
3979
3979
|
function vb(n, t) {
|
|
3980
3980
|
const s = ki(n).intersectRaycaster(t)[0];
|
|
3981
3981
|
if (s)
|
|
3982
|
-
return
|
|
3982
|
+
return he(B({}, s), { raycaster: t, isVirtual: !1 });
|
|
3983
3983
|
}
|
|
3984
3984
|
const ku = `url("data:image/svg+xml,%3Csvg width='12px' height='12px' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6,12 C9.3137085,12 12,9.3137085 12,6 C12,2.6862915 9.3137085,0 6,0 C2.6862915,0 0,2.6862915 0,6 C0,9.3137085 2.6862915,12 6,12 Z' fill='%23FF5959'%3E%3C/path%3E%3Cg transform='translate(2, 2)' stroke='%23FFFFFF'%3E%3Ccircle cx='4' cy='4' r='4'%3E%3C/circle%3E%3Cline x1='1.07141075' y1='1.23997894' x2='6.64700843' y2='6.81557662'%3E%3C/line%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 6 6, auto`, Ab = new y.Vector3(), Fs = () => !1;
|
|
3985
3985
|
class $c extends wt {
|
|
@@ -4167,7 +4167,7 @@ class $c extends wt {
|
|
|
4167
4167
|
autoFixPCPosition: this.mode === "cursor",
|
|
4168
4168
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
4169
4169
|
};
|
|
4170
|
-
this.pointSelectorHelper = new Bm(this.five,
|
|
4170
|
+
this.pointSelectorHelper = new Bm(this.five, he(B({}, i == null ? void 0 : i.helper), {
|
|
4171
4171
|
magnifierParams: B(B({}, r), (c = i == null ? void 0 : i.helper) == null ? void 0 : c.magnifierParams)
|
|
4172
4172
|
})), this.pointSelectorHelper.hide();
|
|
4173
4173
|
}
|
|
@@ -4242,10 +4242,10 @@ let Nm = class extends dn {
|
|
|
4242
4242
|
const i = (T = e.container) != null ? T : document.createElement("div"), s = (S = e.cornerPoints) != null ? S : (() => {
|
|
4243
4243
|
const A = e.width / 2;
|
|
4244
4244
|
return [
|
|
4245
|
-
new
|
|
4246
|
-
new
|
|
4247
|
-
new
|
|
4248
|
-
new
|
|
4245
|
+
new ue(-A, A, 0),
|
|
4246
|
+
new ue(-A, -A, 0),
|
|
4247
|
+
new ue(A, -A, 0),
|
|
4248
|
+
new ue(A, A, 0)
|
|
4249
4249
|
];
|
|
4250
4250
|
})(), r = (_ = e.ratio) != null ? _ : wb, o = (H = e.dpr) != null ? H : 1, a = (Z = e.pointerEvents) != null ? Z : "auto", l = Math.max(yb, r), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]), u = lr(c / r * o), f = lr(h / r * o), p = ci(...s);
|
|
4251
4251
|
let g;
|
|
@@ -4291,12 +4291,12 @@ let Nm = class extends dn {
|
|
|
4291
4291
|
this.width = c, this.height = h, this.domWidthPx = u, this.domHeightPx = f, this.centerPosition = p;
|
|
4292
4292
|
else {
|
|
4293
4293
|
const A = r / l;
|
|
4294
|
-
this.width = A * c, this.height = A * h, this.domWidthPx = A * u, this.domHeightPx = A * f, this.centerPosition = new
|
|
4294
|
+
this.width = A * c, this.height = A * h, this.domWidthPx = A * u, this.domHeightPx = A * f, this.centerPosition = new ue().subVectors(p, s[0]).multiplyScalar(A).add(s[0]);
|
|
4295
4295
|
}
|
|
4296
4296
|
i.classList.add(`${Du}__container`);
|
|
4297
|
-
const v = new
|
|
4297
|
+
const v = new ue().subVectors(s[1], s[0]), m = new ue().subVectors(s[3], s[0]), b = new ue().crossVectors(v, m).normalize();
|
|
4298
4298
|
this.lookAt(b);
|
|
4299
|
-
const C = this.up.clone().applyQuaternion(this.quaternion), M = m.clone(), E = new
|
|
4299
|
+
const C = this.up.clone().applyQuaternion(this.quaternion), M = m.clone(), E = new ue().crossVectors(C, M).normalize();
|
|
4300
4300
|
this.rotateOnWorldAxis(E, C.angleTo(M)), this.position.copy(p), this.addEventListener("added", () => {
|
|
4301
4301
|
var A;
|
|
4302
4302
|
this.mode === "front" && ((A = this.opacityMesh) == null || A.removeFromParent());
|
|
@@ -5767,7 +5767,7 @@ class vo {
|
|
|
5767
5767
|
let a = !1, l = [];
|
|
5768
5768
|
const c = [], h = () => {
|
|
5769
5769
|
const b = o.slice(1);
|
|
5770
|
-
return b[0] ? this.notify(
|
|
5770
|
+
return b[0] ? this.notify(he(B({}, t), { object: b[0].object, intersects: b })) : !1;
|
|
5771
5771
|
};
|
|
5772
5772
|
let u = i;
|
|
5773
5773
|
for (c.push(u); u.parent; )
|
|
@@ -6333,7 +6333,7 @@ class bo {
|
|
|
6333
6333
|
s && (e ? s.add(i) : s.remove(i));
|
|
6334
6334
|
});
|
|
6335
6335
|
d(this, "createObject", (t, e) => {
|
|
6336
|
-
const i = new Nm(
|
|
6336
|
+
const i = new Nm(he(B({ cornerPoints: t }, e), { style: e.wrapperStyle }));
|
|
6337
6337
|
return i.element.classList.add(`${pc}__container`), i.element.id = `${pc}__container--${i.uuid}`, i;
|
|
6338
6338
|
});
|
|
6339
6339
|
t && this.setScene(t);
|
|
@@ -6565,7 +6565,7 @@ let k1 = class extends bo {
|
|
|
6565
6565
|
return Object.assign(h, i, (i == null ? void 0 : i.mode) === "behind" ? { scene: this.five.scene } : void 0);
|
|
6566
6566
|
})(), { autoRender: r } = s;
|
|
6567
6567
|
s.mode === "behind" && s.behindFiveContainer && (this.behindFiveContainer = s.behindFiveContainer);
|
|
6568
|
-
const o = this.create3DElement(this.five.camera, e,
|
|
6568
|
+
const o = this.create3DElement(this.five.camera, e, he(B({}, s), { autoRender: !1 }));
|
|
6569
6569
|
if (!o)
|
|
6570
6570
|
return;
|
|
6571
6571
|
const a = o.dispose;
|
|
@@ -6579,7 +6579,7 @@ let k1 = class extends bo {
|
|
|
6579
6579
|
}, c = () => {
|
|
6580
6580
|
o.css3DObject.mode === "front" && l(), o.css3DObject.mode === "behind" && ai(this.five).then(() => l());
|
|
6581
6581
|
};
|
|
6582
|
-
return r && c(),
|
|
6582
|
+
return r && c(), he(B({}, o), { render: r ? void 0 : c });
|
|
6583
6583
|
});
|
|
6584
6584
|
this.five = e;
|
|
6585
6585
|
}
|
|
@@ -6628,7 +6628,7 @@ class bg extends yA {
|
|
|
6628
6628
|
};
|
|
6629
6629
|
}
|
|
6630
6630
|
}
|
|
6631
|
-
function Tl(n, t, e = new
|
|
6631
|
+
function Tl(n, t, e = new ue(1, 1, 1), i = !1) {
|
|
6632
6632
|
const s = new bg(n, t);
|
|
6633
6633
|
return s.setMaterial({ dashed: i, color: e, linewidth: 1 }), s.remove(s.points), s;
|
|
6634
6634
|
}
|
|
@@ -6650,19 +6650,19 @@ const I5 = (n) => {
|
|
|
6650
6650
|
const p = u / 2, v = c(h, f), m = new jn();
|
|
6651
6651
|
m.add(
|
|
6652
6652
|
Tl(
|
|
6653
|
-
new
|
|
6654
|
-
new
|
|
6655
|
-
new
|
|
6653
|
+
new ue(v.x + p, v.y, v.z),
|
|
6654
|
+
new ue(v.x - p, v.y, v.z),
|
|
6655
|
+
new ue(1, 0, 0)
|
|
6656
6656
|
),
|
|
6657
6657
|
Tl(
|
|
6658
|
-
new
|
|
6659
|
-
new
|
|
6660
|
-
new
|
|
6658
|
+
new ue(v.x, v.y + p, v.z),
|
|
6659
|
+
new ue(v.x, v.y - p, v.z),
|
|
6660
|
+
new ue(0, 1, 0)
|
|
6661
6661
|
),
|
|
6662
6662
|
Tl(
|
|
6663
|
-
new
|
|
6664
|
-
new
|
|
6665
|
-
new
|
|
6663
|
+
new ue(v.x, v.y, v.z + p),
|
|
6664
|
+
new ue(v.x, v.y, v.z - p),
|
|
6665
|
+
new ue(0, 0, 1)
|
|
6666
6666
|
)
|
|
6667
6667
|
), n.scene.add(m), n.needsRender = !0;
|
|
6668
6668
|
const b = () => {
|
|
@@ -7879,13 +7879,13 @@ function py(n, t, e) {
|
|
|
7879
7879
|
function c(b) {
|
|
7880
7880
|
if (!(l === null || b.floorIndex === l))
|
|
7881
7881
|
return !1;
|
|
7882
|
-
const M = new Ir(), E = s.camera.position.clone(), T = new
|
|
7882
|
+
const M = new Ir(), E = s.camera.position.clone(), T = new ue(b.position.x, b.position.y, b.position.z), S = T.distanceTo(E);
|
|
7883
7883
|
M.set(E.clone(), T.clone().sub(E).normalize());
|
|
7884
7884
|
const [_] = s.model.intersectRaycaster(M);
|
|
7885
7885
|
return !(_ && _.distance + 1 < S);
|
|
7886
7886
|
}
|
|
7887
7887
|
function h(b, C) {
|
|
7888
|
-
const E = new
|
|
7888
|
+
const E = new ue(b.position.x, b.position.y, b.position.z).clone().project(s.camera), T = Math.ceil((E.x + 1) / 2 * C.x), S = Math.ceil((-E.y + 1) / 2 * C.y);
|
|
7889
7889
|
return `translate(${T}px, ${S}px)`;
|
|
7890
7890
|
}
|
|
7891
7891
|
function u(b) {
|
|
@@ -7894,12 +7894,12 @@ function py(n, t, e) {
|
|
|
7894
7894
|
const _ = M.get(S.id);
|
|
7895
7895
|
if (_)
|
|
7896
7896
|
return _;
|
|
7897
|
-
const { x: H, y: Z, z: A } = S.position, I = new
|
|
7897
|
+
const { x: H, y: Z, z: A } = S.position, I = new ue(H, Z, A).clone().distanceTo(s.camera.position);
|
|
7898
7898
|
return M.set(S.id, I), I;
|
|
7899
7899
|
}
|
|
7900
7900
|
return r.map((S) => {
|
|
7901
7901
|
const _ = c(S), H = _ ? h(S, C) : S.transform, Z = E(S), I = r.filter((w) => w.visible && E(w) < Z).length * 10;
|
|
7902
|
-
return
|
|
7902
|
+
return he(B({}, S), { visible: _, transform: H, zIndex: I });
|
|
7903
7903
|
});
|
|
7904
7904
|
}
|
|
7905
7905
|
function f() {
|
|
@@ -9768,7 +9768,7 @@ function fw(n, t, e) {
|
|
|
9768
9768
|
"floorIndex" in l && e(3, s = l.floorIndex), "floorplanData" in l && e(4, r = l.floorplanData);
|
|
9769
9769
|
}, n.$$.update = () => {
|
|
9770
9770
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
9771
|
-
24 && e(0, i = r.floorDatas[s].rooms.map((l) =>
|
|
9771
|
+
24 && e(0, i = r.floorDatas[s].rooms.map((l) => he(B({}, l), {
|
|
9772
9772
|
path: l.path.map((c) => _g(c, r.bounding))
|
|
9773
9773
|
})));
|
|
9774
9774
|
}, [i, o, a, s, r];
|
|
@@ -11471,7 +11471,7 @@ let Yn = class {
|
|
|
11471
11471
|
/**
|
|
11472
11472
|
* @realsee/dnalogel 版本号
|
|
11473
11473
|
*/
|
|
11474
|
-
d(this, "VERSION", "3.61.
|
|
11474
|
+
d(this, "VERSION", "3.61.5");
|
|
11475
11475
|
d(this, "NAME");
|
|
11476
11476
|
d(this, "five");
|
|
11477
11477
|
d(this, "workUtil");
|
|
@@ -11838,7 +11838,7 @@ let rC = class extends mn {
|
|
|
11838
11838
|
getRoomAreaText: (u) => (u / 1e6).toFixed(1) + "㎡",
|
|
11839
11839
|
getRoomDimensionText: (u, f) => (u / 1e3).toFixed(1) + "m × " + (f / 1e3).toFixed(1) + "m",
|
|
11840
11840
|
getRuleDistanceText: (u) => u.toString()
|
|
11841
|
-
}, r = i ? pr(i, ["selector", "scale"]) : {}, o = B(B({}, s.missingFloorConfig), r.missingFloorConfig), a =
|
|
11841
|
+
}, r = i ? pr(i, ["selector", "scale"]) : {}, o = B(B({}, s.missingFloorConfig), r.missingFloorConfig), a = he(B(B({}, s), r), { missingFloorConfig: o });
|
|
11842
11842
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.once("dispose", this.dispose), this.addEventListener();
|
|
11843
11843
|
}
|
|
11844
11844
|
load(e, i, s = !0) {
|
|
@@ -11890,8 +11890,8 @@ let rC = class extends mn {
|
|
|
11890
11890
|
}
|
|
11891
11891
|
updateState(e, i) {
|
|
11892
11892
|
var a;
|
|
11893
|
-
const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ?
|
|
11894
|
-
this.state =
|
|
11893
|
+
const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ? he(B(B({}, s.config), e.config), { missingFloorConfig: r }) : s.config;
|
|
11894
|
+
this.state = he(B(B({}, this.state), e), { config: o }), !Ft(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
11895
11895
|
}
|
|
11896
11896
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
11897
11897
|
*
|
|
@@ -11920,7 +11920,7 @@ let rC = class extends mn {
|
|
|
11920
11920
|
render(e) {
|
|
11921
11921
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
11922
11922
|
return;
|
|
11923
|
-
const i =
|
|
11923
|
+
const i = he(B({}, this.state.config), {
|
|
11924
11924
|
visible: this.state.visible,
|
|
11925
11925
|
duration: e != null ? e : 0,
|
|
11926
11926
|
panoIndex: this.panoIndex,
|
|
@@ -12175,7 +12175,7 @@ let lC = class extends mn {
|
|
|
12175
12175
|
getRoomAreaText: (h) => (h / 1e6).toFixed(1) + "㎡",
|
|
12176
12176
|
getRoomDimensionText: (h, u) => (h / 1e3).toFixed(1) + "m × " + (u / 1e3).toFixed(1) + "m",
|
|
12177
12177
|
getRuleDistanceText: (h) => h.toString()
|
|
12178
|
-
}, r = i ? pr(i, ["selector", "scale"]) : {}, o = B(B({}, s.missingFloorConfig), r.missingFloorConfig), a =
|
|
12178
|
+
}, r = i ? pr(i, ["selector", "scale"]) : {}, o = B(B({}, s.missingFloorConfig), r.missingFloorConfig), a = he(B(B({}, s), r), { missingFloorConfig: o });
|
|
12179
12179
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), ai(e).then(this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
12180
12180
|
}
|
|
12181
12181
|
load(e, i, s = !0) {
|
|
@@ -12235,8 +12235,8 @@ let lC = class extends mn {
|
|
|
12235
12235
|
}
|
|
12236
12236
|
updateState(e, i) {
|
|
12237
12237
|
var a;
|
|
12238
|
-
const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ?
|
|
12239
|
-
this.state =
|
|
12238
|
+
const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ? he(B(B({}, s.config), e.config), { missingFloorConfig: r }) : s.config;
|
|
12239
|
+
this.state = he(B(B({}, this.state), e), { config: o }), !Ft(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
12240
12240
|
}
|
|
12241
12241
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
12242
12242
|
*
|
|
@@ -12265,7 +12265,7 @@ let lC = class extends mn {
|
|
|
12265
12265
|
render(e) {
|
|
12266
12266
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
12267
12267
|
return;
|
|
12268
|
-
const i =
|
|
12268
|
+
const i = he(B({}, this.state.config), {
|
|
12269
12269
|
visible: this.state.visible,
|
|
12270
12270
|
duration: e != null ? e : 0,
|
|
12271
12271
|
panoIndex: this.panoIndex,
|
|
@@ -12405,7 +12405,7 @@ let cC = class extends mn {
|
|
|
12405
12405
|
getRoomAreaText: (h) => (h / 1e6).toFixed(1) + "㎡",
|
|
12406
12406
|
getRoomDimensionText: (h, u) => (h / 1e3).toFixed(1) + "m × " + (u / 1e3).toFixed(1) + "m",
|
|
12407
12407
|
getRuleDistanceText: (h) => h.toString()
|
|
12408
|
-
}, r = i ? pr(i, ["selector", "scale"]) : {}, o = B(B({}, s.missingFloorConfig), r.missingFloorConfig), a =
|
|
12408
|
+
}, r = i ? pr(i, ["selector", "scale"]) : {}, o = B(B({}, s.missingFloorConfig), r.missingFloorConfig), a = he(B(B({}, s), r), { missingFloorConfig: o });
|
|
12409
12409
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
12410
12410
|
}
|
|
12411
12411
|
load(e, i, s = !0) {
|
|
@@ -12508,8 +12508,8 @@ let cC = class extends mn {
|
|
|
12508
12508
|
}
|
|
12509
12509
|
updateState(e, i) {
|
|
12510
12510
|
var a;
|
|
12511
|
-
const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ?
|
|
12512
|
-
this.state =
|
|
12511
|
+
const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ? he(B(B({}, s.config), e.config), { missingFloorConfig: r }) : s.config;
|
|
12512
|
+
this.state = he(B(B({}, this.state), e), { config: o }), !Ft(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
12513
12513
|
}
|
|
12514
12514
|
addEventListener() {
|
|
12515
12515
|
if (!this.state.enabled || this.hasAddedEventListener)
|
|
@@ -12539,7 +12539,7 @@ let cC = class extends mn {
|
|
|
12539
12539
|
render(e) {
|
|
12540
12540
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
12541
12541
|
return;
|
|
12542
|
-
const i =
|
|
12542
|
+
const i = he(B({}, this.state.config), {
|
|
12543
12543
|
visible: this.state.visible,
|
|
12544
12544
|
duration: e != null ? e : 0,
|
|
12545
12545
|
panoIndex: this.panoIndex,
|
|
@@ -13445,7 +13445,7 @@ let DC = class extends mn {
|
|
|
13445
13445
|
}
|
|
13446
13446
|
updateState(e, i) {
|
|
13447
13447
|
const s = this.state, r = e.config ? B(B({}, s.config), e.config) : s.config;
|
|
13448
|
-
this.state =
|
|
13448
|
+
this.state = he(B(B({}, this.state), e), { config: r }), !Ft(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
13449
13449
|
}
|
|
13450
13450
|
render() {
|
|
13451
13451
|
if (this.disposed || !this.state.enabled)
|
|
@@ -13456,7 +13456,7 @@ let DC = class extends mn {
|
|
|
13456
13456
|
}
|
|
13457
13457
|
if (!this.data || !this.wrapper)
|
|
13458
13458
|
return;
|
|
13459
|
-
const e =
|
|
13459
|
+
const e = he(B({}, this.state.config), {
|
|
13460
13460
|
five: this.five,
|
|
13461
13461
|
floorplanData: this.data,
|
|
13462
13462
|
visible: this.state.visible,
|
|
@@ -14023,7 +14023,7 @@ var jd = Qg.Zlib, Xg = {
|
|
|
14023
14023
|
calcRationalCurveDerivatives: function(n) {
|
|
14024
14024
|
for (var t = n.length, e = [], i = [], s = 0; s < t; ++s) {
|
|
14025
14025
|
var r = n[s];
|
|
14026
|
-
e[s] = new
|
|
14026
|
+
e[s] = new ue(r.x, r.y, r.z), i[s] = r.w;
|
|
14027
14027
|
}
|
|
14028
14028
|
for (var o = [], a = 0; a < t; ++a) {
|
|
14029
14029
|
for (var l = e[a].clone(), s = 1; s <= a; ++s)
|
|
@@ -14079,11 +14079,11 @@ var jd = Qg.Zlib, Xg = {
|
|
|
14079
14079
|
vs.prototype = Object.create(xm.prototype);
|
|
14080
14080
|
vs.prototype.constructor = vs;
|
|
14081
14081
|
vs.prototype.getPoint = function(n, t) {
|
|
14082
|
-
var e = t || new
|
|
14082
|
+
var e = t || new ue(), i = this.knots[this.startKnot] + n * (this.knots[this.endKnot] - this.knots[this.startKnot]), s = Xg.calcBSplinePoint(this.degree, this.knots, this.controlPoints, i);
|
|
14083
14083
|
return s.w != 1 && s.divideScalar(s.w), e.set(s.x, s.y, s.z);
|
|
14084
14084
|
};
|
|
14085
14085
|
vs.prototype.getTangent = function(n, t) {
|
|
14086
|
-
var e = t || new
|
|
14086
|
+
var e = t || new ue(), i = this.knots[0] + n * (this.knots[this.knots.length - 1] - this.knots[0]), s = Xg.calcNURBSDerivatives(this.degree, this.knots, this.controlPoints, i, 1);
|
|
14087
14087
|
return e.copy(s[1]).normalize(), e;
|
|
14088
14088
|
};
|
|
14089
14089
|
var Zg = function() {
|
|
@@ -14569,7 +14569,7 @@ var Zg = function() {
|
|
|
14569
14569
|
var k = n.Objects.Model[x.ID];
|
|
14570
14570
|
if ("Lcl_Translation" in k) {
|
|
14571
14571
|
var L = k.Lcl_Translation.value;
|
|
14572
|
-
A.target !== void 0 ? (A.target.position.fromArray(L), e.add(A.target)) : A.lookAt(new
|
|
14572
|
+
A.target !== void 0 ? (A.target.position.fromArray(L), e.add(A.target)) : A.lookAt(new ue().fromArray(L));
|
|
14573
14573
|
}
|
|
14574
14574
|
}
|
|
14575
14575
|
});
|
|
@@ -15033,7 +15033,7 @@ var Zg = function() {
|
|
|
15033
15033
|
}), new nA(A.name, -1, I);
|
|
15034
15034
|
},
|
|
15035
15035
|
generateTracks: function(A) {
|
|
15036
|
-
var I = [], w = new
|
|
15036
|
+
var I = [], w = new ue(), x = new Ys(), k = new ue();
|
|
15037
15037
|
if (A.transform && A.transform.decompose(w, x, k), w = w.toArray(), x = new rs().setFromQuaternion(x, A.eulerOrder).toArray(), k = k.toArray(), A.T !== void 0 && Object.keys(A.T.curves).length > 0) {
|
|
15038
15038
|
var L = this.generateVectorTrack(A.modelName, A.T.curves, w, "position");
|
|
15039
15039
|
L !== void 0 && I.push(L);
|
|
@@ -15495,7 +15495,7 @@ var Zg = function() {
|
|
|
15495
15495
|
var L = k * x.dataSize, R = L + x.dataSize;
|
|
15496
15496
|
return H(v, x.buffer, L, R);
|
|
15497
15497
|
}
|
|
15498
|
-
var b = new rs(), C = new
|
|
15498
|
+
var b = new rs(), C = new ue();
|
|
15499
15499
|
function M(A) {
|
|
15500
15500
|
var I = new tt(), w = new tt(), x = new tt(), k = new tt(), L = new tt(), R = new tt(), V = new tt(), J = new tt(), ee = new tt(), K = new tt(), re = new tt(), ne = A.inheritType ? A.inheritType : 0;
|
|
15501
15501
|
if (A.translation && I.setPosition(C.fromArray(A.translation)), A.preRotation) {
|
|
@@ -15629,7 +15629,7 @@ function zC(n, t) {
|
|
|
15629
15629
|
const l = a.getContext("2d");
|
|
15630
15630
|
return l.fillStyle = s, l.fillRect(0, 0, e, e), l.font = `${i}px "微软雅黑"`, l.textAlign = o, l.fillStyle = r, l.fillText(n, e / 2, e * 0.7), new aA(a);
|
|
15631
15631
|
}
|
|
15632
|
-
const jC = ({ x: n, y: t, z: e }) => new
|
|
15632
|
+
const jC = ({ x: n, y: t, z: e }) => new ue(n, t, e), W5 = (n, t) => {
|
|
15633
15633
|
var v, m, b;
|
|
15634
15634
|
const e = {}, i = (v = t.animationEnabled) != null ? v : !0, s = (m = t.position) != null ? m : void 0, r = (b = t.rad) != null ? b : void 0, o = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (C) => $(void 0, null, function* () {
|
|
15635
15635
|
var A, I, w, x, k, L, R, V;
|
|
@@ -15919,8 +15919,8 @@ const NC = `<style type="text/css">
|
|
|
15919
15919
|
return e;
|
|
15920
15920
|
const r = n.observers;
|
|
15921
15921
|
s.observers.forEach((o, a) => {
|
|
15922
|
-
const { standingPosition: l } = o, c = new
|
|
15923
|
-
i.set(c, new
|
|
15922
|
+
const { standingPosition: l } = o, c = new ue(l.x, l.y, l.z);
|
|
15923
|
+
i.set(c, new ue(0, 1, 0));
|
|
15924
15924
|
const [h] = t.model.intersectRaycaster(i), u = h ? h.point.y : 2.7, f = r[a];
|
|
15925
15925
|
if (!f)
|
|
15926
15926
|
return e;
|
|
@@ -15986,9 +15986,9 @@ const NC = `<style type="text/css">
|
|
|
15986
15986
|
}, ae = GC({ x: H, z: Z }, ne);
|
|
15987
15987
|
w ? ae < x && Math.abs(ne.y - w) < 0.3 && (x = ae, k = ne) : ae < x && (x = ae, k = ne);
|
|
15988
15988
|
});
|
|
15989
|
-
const L = new
|
|
15989
|
+
const L = new ue(H, k.y, Z);
|
|
15990
15990
|
Object.assign(L, { observers: A });
|
|
15991
|
-
const R = b[I] ? b[I].roof : null, V = R ? new
|
|
15991
|
+
const R = b[I] ? b[I].roof : null, V = R ? new ue(H, R, Z) : null;
|
|
15992
15992
|
return V && Object.assign(V, { observers: A }), { origin: L, vertical: V };
|
|
15993
15993
|
});
|
|
15994
15994
|
o[E] = {
|
|
@@ -16057,7 +16057,7 @@ const NC = `<style type="text/css">
|
|
|
16057
16057
|
I.style.display = "none";
|
|
16058
16058
|
return;
|
|
16059
16059
|
}
|
|
16060
|
-
const E = b.position, T = b.getWorldDirection(new
|
|
16060
|
+
const E = b.position, T = b.getWorldDirection(new ue()), S = v.clientWidth, _ = v.clientHeight;
|
|
16061
16061
|
if (C !== _t.Mode.Panorama) {
|
|
16062
16062
|
for (const A in o)
|
|
16063
16063
|
for (const { $element: I } of o[A].rules)
|
|
@@ -16101,7 +16101,7 @@ const NC = `<style type="text/css">
|
|
|
16101
16101
|
}
|
|
16102
16102
|
const J = x.distanceTo(k);
|
|
16103
16103
|
if (k.clone().sub(
|
|
16104
|
-
k.clone().sub(x).divide(new
|
|
16104
|
+
k.clone().sub(x).divide(new ue(2, 2, 2))
|
|
16105
16105
|
).distanceTo(E) / J > 8) {
|
|
16106
16106
|
w.style.display = "none";
|
|
16107
16107
|
continue;
|
|
@@ -16468,7 +16468,7 @@ function KC(n, t, e) {
|
|
|
16468
16468
|
distance: I
|
|
16469
16469
|
};
|
|
16470
16470
|
}, u = (M, E, T) => {
|
|
16471
|
-
const S = i.camera.position, _ = i.camera.getWorldDirection(new
|
|
16471
|
+
const S = i.camera.position, _ = i.camera.getWorldDirection(new ue()), H = M.clone().sub(S).normalize().angleTo(_), Z = E.clone().sub(S).normalize().angleTo(_), A = M.distanceTo(E), w = E.clone().sub(E.clone().sub(M).divide(new ue(2, 2, 2))).distanceTo(S), { startLeft: x, startTop: k, endLeft: L, endTop: R, distance: V } = h(M, E), ee = -((Math.PI / 2 - Math.atan2(L - x, k - R)) / Math.PI) * 180;
|
|
16472
16472
|
let K = !0;
|
|
16473
16473
|
T || (K = !1), !Ft(M, T) && !Ft(E, T) && (K = !1), A < 0.3 && (K = !1), H > Math.PI / 2 && (K = !1), Z > Math.PI / 2 && (K = !1), w / A > 8 && (K = !1);
|
|
16474
16474
|
let re = 50, ne = V;
|
|
@@ -16495,14 +16495,14 @@ function KC(n, t, e) {
|
|
|
16495
16495
|
return e(0, o = []);
|
|
16496
16496
|
if (i.currentMode !== _t.Mode.Panorama)
|
|
16497
16497
|
return e(0, o = []);
|
|
16498
|
-
const T = i.camera.position, S = i.camera.getWorldDirection(new
|
|
16498
|
+
const T = i.camera.position, S = i.camera.getWorldDirection(new ue()), _ = E.lines.map((I) => new ue(I.start[0], -I.start[1], -I.start[2])), H = E.lines.map((I) => new ue(I.end[0], -I.end[1], -I.end[2])), [Z] = _.concat(H).sort((I, w) => {
|
|
16499
16499
|
const x = I.clone().setY(0).sub(T).normalize().angleTo(S.clone().setY(0)), k = w.clone().setY(0).sub(T).normalize().angleTo(S.clone().setY(0));
|
|
16500
16500
|
return x - k;
|
|
16501
16501
|
}), A = E.lines.map((I) => {
|
|
16502
16502
|
var ne, ae;
|
|
16503
|
-
const w = I.start, x = I.end, { startLeft: k, startTop: L, distance: R, deg: V, visible: J, labelOffset: ee, ruleLength: K } = u(new
|
|
16503
|
+
const w = I.start, x = I.end, { startLeft: k, startTop: L, distance: R, deg: V, visible: J, labelOffset: ee, ruleLength: K } = u(new ue(w[0], -w[1], -w[2]), new ue(x[0], -x[1], -x[2]), Z), re = [];
|
|
16504
16504
|
return I.children && ((ne = I.children) == null ? void 0 : ne.length) > 0 && ((ae = I.children) == null || ae.forEach((Se) => {
|
|
16505
|
-
const Ae = Se.start, Re = Se.end, { distance: ie } = h(new
|
|
16505
|
+
const Ae = Se.start, Re = Se.end, { distance: ie } = h(new ue(Ae[0], -Ae[1], -Ae[2]), new ue(Re[0], -Re[1], -Re[2]));
|
|
16506
16506
|
re.push({ width: ie, state: Se.state });
|
|
16507
16507
|
})), {
|
|
16508
16508
|
width: R,
|
|
@@ -16995,7 +16995,7 @@ class tv {
|
|
|
16995
16995
|
class bP extends tv {
|
|
16996
16996
|
constructor(e) {
|
|
16997
16997
|
var i;
|
|
16998
|
-
e.contentStyle =
|
|
16998
|
+
e.contentStyle = he(B({}, e.contentStyle), {
|
|
16999
16999
|
background: "rgba(195,195,195,0.70)",
|
|
17000
17000
|
border: "0.5px solid rgba(255,255,255,0.6)",
|
|
17001
17001
|
borderRadius: "999px"
|
|
@@ -17104,7 +17104,7 @@ let gr = class iv {
|
|
|
17104
17104
|
d(this, "id");
|
|
17105
17105
|
d(this, "position");
|
|
17106
17106
|
d(this, "type", "point");
|
|
17107
|
-
if (this.id = kt(), this.position = new
|
|
17107
|
+
if (this.id = kt(), this.position = new ue(), Array.isArray(t))
|
|
17108
17108
|
this.position.fromArray(t);
|
|
17109
17109
|
else if (typeof t == "object" && t.isVector3)
|
|
17110
17110
|
this.position.copy(t);
|
|
@@ -17150,7 +17150,7 @@ let al = class {
|
|
|
17150
17150
|
});
|
|
17151
17151
|
});
|
|
17152
17152
|
var i, s, r;
|
|
17153
|
-
this.five = t.five, this.hook = t.hook, this.model = t.model, this.getMeasureType = t.getMeasureType, this.config = t.config, this.editParams = t.editParams, this.magnifierParams = t.magnifierParams, this.magnifier = t.magnifier, this.pointSelectorConfig =
|
|
17153
|
+
this.five = t.five, this.hook = t.hook, this.model = t.model, this.getMeasureType = t.getMeasureType, this.config = t.config, this.editParams = t.editParams, this.magnifierParams = t.magnifierParams, this.magnifier = t.magnifier, this.pointSelectorConfig = he(B({}, t.pointSelectorConfig), {
|
|
17154
17154
|
helper: B({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
|
|
17155
17155
|
}), this.container = t.container, this.isMobile = (r = (s = t.openParams) == null ? void 0 : s.isMobile) != null ? r : !1, this.workUtil = t.workUtil, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new gr(new mi([0, 0, 0]), new mi([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new gr(new mi([0, 0, 0]), new mi([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new Kt(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
17156
17156
|
const e = this.five.getElement();
|
|
@@ -17574,7 +17574,7 @@ function Es(n) {
|
|
|
17574
17574
|
return;
|
|
17575
17575
|
}
|
|
17576
17576
|
const [t, e, i] = n;
|
|
17577
|
-
return new
|
|
17577
|
+
return new ue().subVectors(i, e).cross(new ue().subVectors(t, e)).normalize();
|
|
17578
17578
|
}
|
|
17579
17579
|
function av(n) {
|
|
17580
17580
|
if (n.length < 3)
|
|
@@ -17682,7 +17682,7 @@ function hv(n) {
|
|
|
17682
17682
|
console.warn("No geometry triangles found"), console.debug({ geometry: n, triangles: t });
|
|
17683
17683
|
return;
|
|
17684
17684
|
}
|
|
17685
|
-
let e = 0, i = new
|
|
17685
|
+
let e = 0, i = new ue();
|
|
17686
17686
|
for (const [s, r, o] of t) {
|
|
17687
17687
|
const a = jh(s, r, o), l = uv(s, r, o, a);
|
|
17688
17688
|
e += a, i.add(l);
|
|
@@ -17703,16 +17703,16 @@ function NP(n) {
|
|
|
17703
17703
|
return [];
|
|
17704
17704
|
let i = [];
|
|
17705
17705
|
for (let r = 0; r < e.length; r += 3) {
|
|
17706
|
-
const o = e[r], a = e[r + 1], l = e[r + 2], c = new
|
|
17706
|
+
const o = e[r], a = e[r + 1], l = e[r + 2], c = new ue().fromArray([t.getX(o), t.getY(o), t.getZ(o)]), h = new ue().fromArray([t.getX(a), t.getY(a), t.getZ(a)]), u = new ue().fromArray([t.getX(l), t.getY(l), t.getZ(l)]);
|
|
17707
17707
|
i.push([c, h, u]);
|
|
17708
17708
|
}
|
|
17709
17709
|
return i;
|
|
17710
17710
|
}
|
|
17711
17711
|
class GP extends tv {
|
|
17712
17712
|
constructor(e) {
|
|
17713
|
-
e.containerStyle =
|
|
17713
|
+
e.containerStyle = he(B({}, e.containerStyle), {
|
|
17714
17714
|
zIndex: "1"
|
|
17715
|
-
}), e.contentStyle =
|
|
17715
|
+
}), e.contentStyle = he(B({}, e.contentStyle), {
|
|
17716
17716
|
background: "#6386FF",
|
|
17717
17717
|
borderRadius: "2px"
|
|
17718
17718
|
});
|
|
@@ -18157,7 +18157,7 @@ class zn extends al {
|
|
|
18157
18157
|
const s = i.type === "area", r = Array.isArray(i) && ((o = i[0]) == null ? void 0 : o.type) === "line";
|
|
18158
18158
|
s && this.unHighlightArea(i), r && this.unHighlightLines(i);
|
|
18159
18159
|
}
|
|
18160
|
-
}).appendTo(this.container), this.pointSelector = new $c(this.five,
|
|
18160
|
+
}).appendTo(this.container), this.pointSelector = new $c(this.five, he(B({}, this.pointSelectorConfig), {
|
|
18161
18161
|
mode: this.editParams.pointSelectorMode,
|
|
18162
18162
|
helper: B({ magnifierParams: this.magnifierParams, container: this.container }, this.pointSelectorConfig.helper)
|
|
18163
18163
|
})), this.pointSelector.enable(), this.polyline = new vr({ model: this.model }), this.area = new xc(void 0, {
|
|
@@ -18571,7 +18571,7 @@ function fv(n) {
|
|
|
18571
18571
|
transparent: !0,
|
|
18572
18572
|
depthTest: !1
|
|
18573
18573
|
}), c = new ir(r, l), h = new hA();
|
|
18574
|
-
h.add(new uA(new
|
|
18574
|
+
h.add(new uA(new ue(0, 0, 0), new ue(0, 0, 0.1)));
|
|
18575
18575
|
const u = new dA(h, 8, 3e-3), f = new km({
|
|
18576
18576
|
vertexShader: KP,
|
|
18577
18577
|
fragmentShader: $P,
|
|
@@ -20379,12 +20379,14 @@ class VI {
|
|
|
20379
20379
|
constructor(t, e) {
|
|
20380
20380
|
d(this, "revoke");
|
|
20381
20381
|
d(this, "container");
|
|
20382
|
+
d(this, "wrapper");
|
|
20382
20383
|
d(this, "mainController");
|
|
20383
20384
|
d(this, "disposers", []);
|
|
20384
20385
|
d(this, "measureController");
|
|
20385
20386
|
d(this, "mode");
|
|
20386
20387
|
d(this, "svelteDom");
|
|
20387
20388
|
d(this, "_params");
|
|
20389
|
+
d(this, "useNewUI", !1);
|
|
20388
20390
|
d(this, "handleExit", () => {
|
|
20389
20391
|
const t = this.container.querySelector(".fpm__exit-icon"), e = this.container.querySelector(".fpm__exit");
|
|
20390
20392
|
if (!e || !t)
|
|
@@ -20402,16 +20404,16 @@ class VI {
|
|
|
20402
20404
|
};
|
|
20403
20405
|
});
|
|
20404
20406
|
var s, r;
|
|
20405
|
-
this._params = e, this.measureController = t, this.mode = (s = e.mode) != null ? s : "pc", this.
|
|
20407
|
+
this._params = e, this.measureController = t, this.mode = (s = e.mode) != null ? s : "pc", this.wrapper = e.container, this.container = document.createElement("div"), this.wrapper.appendChild(this.container);
|
|
20406
20408
|
const i = (r = e.useNewUI) != null ? r : !1;
|
|
20407
|
-
if (i && (e.pointSelectorMode === "cursor" ? this.svelteDom = new EI({
|
|
20408
|
-
target:
|
|
20409
|
+
if (this.useNewUI = i, i && (this.container.style.position = "absolute", this.container.style.top = "0", this.container.style.left = "0", this.container.style.width = "100%", this.container.style.height = "100%", e.pointSelectorMode === "cursor" ? this.svelteDom = new EI({
|
|
20410
|
+
target: this.container,
|
|
20409
20411
|
props: { measureController: this.measureController, i18n: e.i18n, showExit: e.showExit }
|
|
20410
20412
|
}) : e.pointSelectorMode === "fixed" && (this.svelteDom = new BI({
|
|
20411
|
-
target:
|
|
20413
|
+
target: this.container,
|
|
20412
20414
|
props: { measureController: this.measureController, i18n: e.i18n, showExit: e.showExit }
|
|
20413
20415
|
}))), !i) {
|
|
20414
|
-
|
|
20416
|
+
this.container.innerHTML = this.mode === "mobile" ? iI : rI, this.container.classList.add("fpm__ui-controller", this.mode), this.container.style.background = "rgba(0, 0, 0, 0.15)";
|
|
20415
20417
|
const o = this.container.querySelectorAll(".fpm__text"), a = this.container.querySelector(".fpm_ui-bg"), l = this.container.querySelector(".fpm_operating-space");
|
|
20416
20418
|
Object.assign(a == null ? void 0 : a.style, lI), Object.assign(l == null ? void 0 : l.style, aI), Object.assign(this.container.style, oI), o.forEach((c) => Object.assign(c.style, uI));
|
|
20417
20419
|
}
|
|
@@ -20421,11 +20423,11 @@ class VI {
|
|
|
20421
20423
|
this.hide(), (t = this.svelteDom) == null || t.$destroy(), this.container.remove();
|
|
20422
20424
|
}
|
|
20423
20425
|
show() {
|
|
20424
|
-
return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.mode === "pc" ? (this.revoke = new pI(this.measureController, this.container), this.mainController = new dI(this.measureController, this.container, this._params)) : this.mainController = new fI(this.measureController, this.container, this._params), this.disposers.push(this.handleExit()), this;
|
|
20426
|
+
return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.useNewUI === !1 && (this.mode === "pc" ? (this.revoke = new pI(this.measureController, this.container), this.mainController = new dI(this.measureController, this.container, this._params)) : this.mainController = new fI(this.measureController, this.container, this._params), this.disposers.push(this.handleExit())), this;
|
|
20425
20427
|
}
|
|
20426
20428
|
hide() {
|
|
20427
20429
|
var t, e;
|
|
20428
|
-
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((t = this.revoke) == null || t.dispose()), (e = this.mainController) == null || e.dispose(), this.disposers.forEach((i) => i()), this.disposers = [], this;
|
|
20430
|
+
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.useNewUI === !1 && this.mode === "pc" && ((t = this.revoke) == null || t.dispose()), (e = this.mainController) == null || e.dispose(), this.disposers.forEach((i) => i()), this.disposers = [], this;
|
|
20429
20431
|
}
|
|
20430
20432
|
}
|
|
20431
20433
|
var st = {}, _I = {
|
|
@@ -20722,7 +20724,7 @@ class XI extends Yn {
|
|
|
20722
20724
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
20723
20725
|
*/
|
|
20724
20726
|
d(this, "changeMode", (e) => {
|
|
20725
|
-
var r;
|
|
20727
|
+
var r, o, a, l, c;
|
|
20726
20728
|
if (!this.hasOpen || this.getCurrentMode() === e)
|
|
20727
20729
|
return;
|
|
20728
20730
|
(r = this.controller) == null || r.dispose();
|
|
@@ -20735,7 +20737,7 @@ class XI extends Yn {
|
|
|
20735
20737
|
if (!i[e])
|
|
20736
20738
|
throw new Error("不存在的 Mode");
|
|
20737
20739
|
const s = this.createControllerParams();
|
|
20738
|
-
this.controller = new i[e](s), this.hook.emit("modeChange", e);
|
|
20740
|
+
this.controller = new i[e](s), e === "View" ? ((o = this.useUIController) == null || o.hide(), (a = this.useGuideController) == null || a.hide()) : ((l = this.useUIController) == null || l.show(), (c = this.useGuideController) == null || c.show()), this.hook.emit("modeChange", e);
|
|
20739
20741
|
});
|
|
20740
20742
|
/**
|
|
20741
20743
|
* @description: 切换测量的类型
|
|
@@ -20782,7 +20784,15 @@ class XI extends Yn {
|
|
|
20782
20784
|
* @description 如果当前正在编辑中,会自动退出并保存编辑
|
|
20783
20785
|
*/
|
|
20784
20786
|
load(e) {
|
|
20785
|
-
|
|
20787
|
+
let i = e;
|
|
20788
|
+
e.list && (i = {
|
|
20789
|
+
polylines: e.list.map((r) => r.polyline).map((r) => {
|
|
20790
|
+
var o;
|
|
20791
|
+
return he(B({}, r), {
|
|
20792
|
+
visibleFiveMode: (o = r.visibleFiveMode) != null ? o : ["Panorama"]
|
|
20793
|
+
});
|
|
20794
|
+
})
|
|
20795
|
+
}), this.model.parse(i), this.save();
|
|
20786
20796
|
}
|
|
20787
20797
|
/** 插件功能入口
|
|
20788
20798
|
* @description 会隐藏鼠标的默认聚焦环
|
|
@@ -20790,7 +20800,7 @@ class XI extends Yn {
|
|
|
20790
20800
|
*/
|
|
20791
20801
|
enable(e) {
|
|
20792
20802
|
var i, s;
|
|
20793
|
-
this.hasOpen || (this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (i = this.useUIController) == null || i.show(), (s = this.useGuideController) == null || s.show(), this.shortcutKeyController = new YI(this, this.five), this.hook.emit("enable", !0));
|
|
20803
|
+
this.hasOpen || (this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (e == null ? void 0 : e.mode) !== "View" && ((i = this.useUIController) == null || i.show(), (s = this.useGuideController) == null || s.show()), this.shortcutKeyController = new YI(this, this.five), this.hook.emit("enable", !0));
|
|
20794
20804
|
}
|
|
20795
20805
|
/** 进入编辑模式 */
|
|
20796
20806
|
edit(e) {
|
|
@@ -21860,10 +21870,10 @@ function vE(n, t, e) {
|
|
|
21860
21870
|
const L = k.map((V) => {
|
|
21861
21871
|
const J = b(x, V), ee = V.name.length * gE, K = E(V.modelPosition[1], c), ne = (o ? m(x, V) : !0) && !M([J[0], J[1] + K], ee);
|
|
21862
21872
|
if (!ne)
|
|
21863
|
-
return
|
|
21873
|
+
return he(B({}, V), { visible: ne });
|
|
21864
21874
|
g.push(J);
|
|
21865
21875
|
const ae = C(J);
|
|
21866
|
-
return
|
|
21876
|
+
return he(B({}, V), {
|
|
21867
21877
|
visible: ne,
|
|
21868
21878
|
transform: ae,
|
|
21869
21879
|
strokeLength: K
|
|
@@ -21874,7 +21884,7 @@ function vE(n, t, e) {
|
|
|
21874
21884
|
})).sort((V, J) => V.distance - J.distance);
|
|
21875
21885
|
return L.map((V) => {
|
|
21876
21886
|
const J = R.findIndex((ee) => ee.itemLabelItem.id === V.id);
|
|
21877
|
-
return J !== void 0 ?
|
|
21887
|
+
return J !== void 0 ? he(B({}, V), { zIndex: J * 10 }) : V;
|
|
21878
21888
|
});
|
|
21879
21889
|
}, S = () => {
|
|
21880
21890
|
g = [], e(1, u = T(r, u));
|
|
@@ -22582,15 +22592,15 @@ function jE(n, t, e) {
|
|
|
22582
22592
|
}, E = (k, L) => {
|
|
22583
22593
|
const R = L.map((J) => {
|
|
22584
22594
|
if (k.state.panoIndex !== J.panoIndex)
|
|
22585
|
-
return
|
|
22595
|
+
return he(B({}, J), { visible: !1 });
|
|
22586
22596
|
const ee = M(k, J);
|
|
22587
22597
|
J.name.length * zE;
|
|
22588
22598
|
const K = SE(J.modelPosition[1], l), re = k.currentMode === _t.Mode.Panorama ? C(new i(J.position[0], J.position[1], J.position[2])) : !0, ne = r ? b(k, J) : !1, ae = re && !ne;
|
|
22589
22599
|
if (!ae)
|
|
22590
|
-
return
|
|
22600
|
+
return he(B({}, J), { visible: ae });
|
|
22591
22601
|
v.push(ee);
|
|
22592
22602
|
const Se = TE(ee);
|
|
22593
|
-
return
|
|
22603
|
+
return he(B({}, J), {
|
|
22594
22604
|
visible: ae,
|
|
22595
22605
|
transform: Se,
|
|
22596
22606
|
strokeLength: K
|
|
@@ -22601,7 +22611,7 @@ function jE(n, t, e) {
|
|
|
22601
22611
|
})).sort((J, ee) => J.distance - ee.distance);
|
|
22602
22612
|
return R.map((J) => {
|
|
22603
22613
|
const ee = V.findIndex((K) => K.itemLabelItem.id === J.id);
|
|
22604
|
-
return ee !== void 0 ?
|
|
22614
|
+
return ee !== void 0 ? he(B({}, J), { zIndex: ee * 10 }) : J;
|
|
22605
22615
|
});
|
|
22606
22616
|
}, T = () => {
|
|
22607
22617
|
v = [], e(1, u = E(s, u));
|
|
@@ -22643,14 +22653,14 @@ function jE(n, t, e) {
|
|
|
22643
22653
|
longitude: Math.PI + Math.atan2(ee.x, ee.z),
|
|
22644
22654
|
latitude: Math.acos(ee.y / ee.length()) - Math.PI / 2
|
|
22645
22655
|
};
|
|
22646
|
-
s.setState(
|
|
22656
|
+
s.setState(he(B({}, K), {
|
|
22647
22657
|
mode: _t.Mode.Panorama,
|
|
22648
22658
|
panoIndex: k.observerIndex
|
|
22649
22659
|
})), s.once("initAnimationEnded", () => {
|
|
22650
|
-
e(1, u = u.map((re) =>
|
|
22660
|
+
e(1, u = u.map((re) => he(B({}, re), {
|
|
22651
22661
|
isFold: re.id !== k.id
|
|
22652
22662
|
}))), s.once("cameraUpdate", () => {
|
|
22653
|
-
e(1, u = u.map((re) =>
|
|
22663
|
+
e(1, u = u.map((re) => he(B({}, re), { isFold: !1 })));
|
|
22654
22664
|
});
|
|
22655
22665
|
});
|
|
22656
22666
|
}
|
|
@@ -22705,7 +22715,7 @@ class RE extends Pe {
|
|
|
22705
22715
|
}
|
|
22706
22716
|
}
|
|
22707
22717
|
function BE(n) {
|
|
22708
|
-
return n.item_labels.map((t) =>
|
|
22718
|
+
return n.item_labels.map((t) => he(B({}, t), {
|
|
22709
22719
|
modelPosition: [t.position[0], t.position[1], t.position[2]],
|
|
22710
22720
|
observerIndex: void 0
|
|
22711
22721
|
}));
|
|
@@ -22873,7 +22883,7 @@ function GE(n, t) {
|
|
|
22873
22883
|
return !(e > s && i > r);
|
|
22874
22884
|
}
|
|
22875
22885
|
function WE(n) {
|
|
22876
|
-
const { camera: t } = n, e = t.getWorldDirection(new
|
|
22886
|
+
const { camera: t } = n, e = t.getWorldDirection(new ue());
|
|
22877
22887
|
let i = Math.atan(e.z / e.x) * 180 / Math.PI, s = "";
|
|
22878
22888
|
return e.x < 0 && (i += 180), i < 0 && (i += 360), i > 315 || i <= 45 ? s = "right" : i > 45 && i <= 135 ? s = "back" : i > 135 && i <= 225 ? s = "left" : i > 225 && i <= 315 && (s = "forward"), s;
|
|
22879
22889
|
}
|
|
@@ -22965,11 +22975,11 @@ class XE extends Yn {
|
|
|
22965
22975
|
return;
|
|
22966
22976
|
if (this.five.currentMode !== "Panorama")
|
|
22967
22977
|
return this.hideAllLabels();
|
|
22968
|
-
const s = this.five.getElement(), r = s.clientWidth, o = s.clientHeight, a = i.getWorldDirection(new
|
|
22978
|
+
const s = this.five.getElement(), r = s.clientWidth, o = s.clientHeight, a = i.getWorldDirection(new ue()), l = [];
|
|
22969
22979
|
if (this.labelItems.forEach((T, S) => {
|
|
22970
22980
|
var A;
|
|
22971
22981
|
if (T.visible) {
|
|
22972
|
-
const I = i.position.distanceTo(T.position), w = T.position.clone().add(new
|
|
22982
|
+
const I = i.position.distanceTo(T.position), w = T.position.clone().add(new ue(0, this.OffsetHeight, 0)), k = w.clone().sub(i.position).normalize().angleTo(a), L = w.clone().project(i), R = (L.x + 1) / 2.2 * 100, V = (-L.y + 1) / 2.2 * 100, J = R >= 0 && R <= 100 && V >= 0 && V <= 100 && I > this.MinVisibledistance && I <= this.MaxVisibledistance;
|
|
22973
22983
|
T.left = R, T.top = V, T.inSight = J && k < Math.PI / 2, T.cameraToward = WE(this.five), J ? l.push({ disFromCameraToLabel: I, left: R, top: V, index: S }) : T.transform = "translate(-50%, -50%)";
|
|
22974
22984
|
} else
|
|
22975
22985
|
T.inSight = !1;
|
|
@@ -23010,7 +23020,7 @@ class XE extends Yn {
|
|
|
23010
23020
|
if (o !== null && r !== null) {
|
|
23011
23021
|
const l = {};
|
|
23012
23022
|
if (a > 0) {
|
|
23013
|
-
const h = new
|
|
23023
|
+
const h = new ue(0, 0, -1), u = o.clone(), f = new Ys();
|
|
23014
23024
|
f.setFromUnitVectors(h, u);
|
|
23015
23025
|
const p = new rs();
|
|
23016
23026
|
p.setFromQuaternion(f, "YXZ"), l.longitude = p.y;
|
|
@@ -23036,15 +23046,15 @@ class XE extends Yn {
|
|
|
23036
23046
|
}, C = QE(u, b);
|
|
23037
23047
|
C < f && (f = C, p = b);
|
|
23038
23048
|
}), p && (u.y = p.y + 0.01);
|
|
23039
|
-
const g = new
|
|
23040
|
-
g.add(new
|
|
23049
|
+
const g = new ue(u.x, u.y, u.z);
|
|
23050
|
+
g.add(new ue(-0.2, 1.8, 0).applyEuler(new rs(0, h.rad, 0))), this.doorLabels.push({
|
|
23041
23051
|
roomName: o.name,
|
|
23042
23052
|
name: h.name,
|
|
23043
23053
|
position: g,
|
|
23044
23054
|
toward: UE(h.rad)
|
|
23045
23055
|
});
|
|
23046
23056
|
});
|
|
23047
|
-
}), this.labelItems = this.doorLabels.map((o) =>
|
|
23057
|
+
}), this.labelItems = this.doorLabels.map((o) => he(B({}, o), {
|
|
23048
23058
|
left: 0,
|
|
23049
23059
|
top: 0,
|
|
23050
23060
|
visible: !1,
|
|
@@ -23222,9 +23232,9 @@ function p2(n) {
|
|
|
23222
23232
|
})();
|
|
23223
23233
|
let Z = [];
|
|
23224
23234
|
for (let L = 0; L < l; L++) {
|
|
23225
|
-
const [R, V] = c[L][0], J = a[L], { x: ee, y: K, z: re } = J, ne = new
|
|
23235
|
+
const [R, V] = c[L][0], J = a[L], { x: ee, y: K, z: re } = J, ne = new ue(ee + R * i, K + 0.05, re + V * i);
|
|
23226
23236
|
m[L * 6 + 0] = ne.x, m[L * 6 + 1] = ne.y, m[L * 6 + 2] = ne.z;
|
|
23227
|
-
const ae = new
|
|
23237
|
+
const ae = new ue(ee - R * i, K + 0.05, re - V * i);
|
|
23228
23238
|
m[L * 6 + 3] = ae.x, m[L * 6 + 4] = ae.y, m[L * 6 + 5] = ae.z, M += L > 0 ? a[L - 1].clone().sub(a[L]).length() : 0;
|
|
23229
23239
|
const Se = M / e;
|
|
23230
23240
|
E = Se, b[L * 4 + 0] = 0, b[L * 4 + 1] = Se, b[L * 4 + 2] = 1, b[L * 4 + 3] = Se;
|
|
@@ -23856,7 +23866,7 @@ class Dv extends kv {
|
|
|
23856
23866
|
if (!this.videoCoverSrc)
|
|
23857
23867
|
return;
|
|
23858
23868
|
const { texture: i, transparent: s } = yield this.getImageTexture(this.videoCoverSrc), r = new y.MeshBasicMaterial({ transparent: !1, map: i }), o = io(this.objectFit, this.cornerPoints, i.image.width / i.image.height), a = new _l(o, r);
|
|
23859
|
-
return a.position.copy(new
|
|
23869
|
+
return a.position.copy(new ue(0, 0, 0)), a.name = "videoCoverMesh", a;
|
|
23860
23870
|
}))();
|
|
23861
23871
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
23862
23872
|
});
|
|
@@ -23876,7 +23886,7 @@ class Dv extends kv {
|
|
|
23876
23886
|
() => l(io(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
|
|
23877
23887
|
);
|
|
23878
23888
|
}), a = new _l(o, r);
|
|
23879
|
-
return a.name = "videoMesh", a.position.copy(new
|
|
23889
|
+
return a.name = "videoMesh", a.position.copy(new ue(0, 0, 0)), a;
|
|
23880
23890
|
}))();
|
|
23881
23891
|
if (!e)
|
|
23882
23892
|
return;
|
|
@@ -23905,7 +23915,7 @@ class Dv extends kv {
|
|
|
23905
23915
|
if (this.buttonMesh)
|
|
23906
23916
|
return this.buttonMesh;
|
|
23907
23917
|
const i = (g = (p = this.videoMesh) == null ? void 0 : p.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? g : 1 / 0, s = (m = (v = this.coverMesh) == null ? void 0 : v.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? m : 1 / 0, r = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), a = Math.min(i, s, r) / r * 0.3, { texture: l, transparent: c } = yield this.getImageTexture(this.buttonSrc), h = io("contain", this.cornerPoints, l.image.width / l.image.height), u = new _l(h, new j2(l));
|
|
23908
|
-
u.position.copy(new
|
|
23918
|
+
u.position.copy(new ue(0, 0, 0)), u.name = "buttonMesh", u.scale.set(a, a, a), this.domEvents.addAutoBindEventListener(
|
|
23909
23919
|
u,
|
|
23910
23920
|
"click",
|
|
23911
23921
|
() => {
|
|
@@ -24284,7 +24294,7 @@ function Fl(n, t, e) {
|
|
|
24284
24294
|
const E = h[C];
|
|
24285
24295
|
h[C] = st({}, l, E, ...Object.values(M), a, { _isMerged: !0 });
|
|
24286
24296
|
});
|
|
24287
|
-
const f =
|
|
24297
|
+
const f = he(B({}, c), { configWithFiveMode: h });
|
|
24288
24298
|
return Bf(f), Object.values(h).forEach((C) => Bf(C)), f._isMerged = !0, f;
|
|
24289
24299
|
}
|
|
24290
24300
|
function Vf(n) {
|
|
@@ -24849,7 +24859,7 @@ class Nh {
|
|
|
24849
24859
|
}).map((a) => ({ tag: a, id: a.id, tagConfig: a.getConfig().unfoldedConfig })).filter(({ tagConfig: a }) => {
|
|
24850
24860
|
var l, c;
|
|
24851
24861
|
return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((l = a.autoUnfold) == null ? void 0 : l.enable) === !1 || ((c = a.autoUnfold) == null ? void 0 : c.strategy) !== "MinimumDistance");
|
|
24852
|
-
}).map((a) =>
|
|
24862
|
+
}).map((a) => he(B({}, a), { distance: a.tag.getDistance() })).filter(({ distance: a, tagConfig: l }) => {
|
|
24853
24863
|
const c = l.autoUnfold.distance;
|
|
24854
24864
|
return !(c && ca(a, c) === !1);
|
|
24855
24865
|
}).sort((a, l) => a.distance - l.distance).findIndex((a) => a.id === this.id);
|
|
@@ -24889,7 +24899,7 @@ class Nh {
|
|
|
24889
24899
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
24890
24900
|
if (!this.enabled)
|
|
24891
24901
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
24892
|
-
const t =
|
|
24902
|
+
const t = he(B({}, this.computeVisible()), {
|
|
24893
24903
|
tagInstance: this
|
|
24894
24904
|
});
|
|
24895
24905
|
return t.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: t } : this.state.visible ? { reason: "应该是能看见才对", info: t } : t.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: t } : { reason: (e = t.reason.type) != null ? e : t.reason, info: t };
|
|
@@ -25032,10 +25042,10 @@ class Lv extends dn {
|
|
|
25032
25042
|
const i = (T = e.container) != null ? T : document.createElement("div"), s = (S = e.cornerPoints) != null ? S : (() => {
|
|
25033
25043
|
const A = e.width / 2;
|
|
25034
25044
|
return [
|
|
25035
|
-
new
|
|
25036
|
-
new
|
|
25037
|
-
new
|
|
25038
|
-
new
|
|
25045
|
+
new ue(-A, A, 0),
|
|
25046
|
+
new ue(-A, -A, 0),
|
|
25047
|
+
new ue(A, -A, 0),
|
|
25048
|
+
new ue(A, A, 0)
|
|
25039
25049
|
];
|
|
25040
25050
|
})(), r = (_ = e.ratio) != null ? _ : Y2, o = (H = e.dpr) != null ? H : 1, a = (Z = e.pointerEvents) != null ? Z : "auto", l = Math.max(U2, r), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]);
|
|
25041
25051
|
let u = lr(c / r * o), f = lr(h / r * o);
|
|
@@ -25070,12 +25080,12 @@ class Lv extends dn {
|
|
|
25070
25080
|
this.width = c, this.height = h, this.centerPosition = p;
|
|
25071
25081
|
else {
|
|
25072
25082
|
const A = r / l;
|
|
25073
|
-
this.width = A * c, this.height = A * h, u = A * u, f = A * f, this.centerPosition = new
|
|
25083
|
+
this.width = A * c, this.height = A * h, u = A * u, f = A * f, this.centerPosition = new ue().subVectors(p, s[0]).multiplyScalar(A).add(s[0]);
|
|
25074
25084
|
}
|
|
25075
25085
|
this.domWidthPx = u, this.domHeightPx = f, i.classList.add(`${_f}__container`);
|
|
25076
|
-
const v = new
|
|
25086
|
+
const v = new ue().subVectors(s[1], s[0]), m = new ue().subVectors(s[3], s[0]), b = new ue().crossVectors(v, m).normalize();
|
|
25077
25087
|
this.lookAt(b);
|
|
25078
|
-
const C = this.up.clone().applyQuaternion(this.quaternion), M = m.clone(), E = new
|
|
25088
|
+
const C = this.up.clone().applyQuaternion(this.quaternion), M = m.clone(), E = new ue().crossVectors(C, M).normalize();
|
|
25079
25089
|
this.rotateOnWorldAxis(E, C.angleTo(M)), this.position.copy(p), this._opacityMesh = new Fm(u, f), this._opacityMesh.visible = e.mode === "behind", this.add(this._opacityMesh);
|
|
25080
25090
|
}
|
|
25081
25091
|
get mode() {
|
|
@@ -27594,7 +27604,7 @@ function Sx({
|
|
|
27594
27604
|
head: 0,
|
|
27595
27605
|
tail: 0
|
|
27596
27606
|
};
|
|
27597
|
-
return
|
|
27607
|
+
return he(B({}, i), {
|
|
27598
27608
|
total: i.head + i.tail
|
|
27599
27609
|
});
|
|
27600
27610
|
}
|
|
@@ -32697,7 +32707,7 @@ function Xk(n) {
|
|
|
32697
32707
|
const o = Jv(t);
|
|
32698
32708
|
return Wl.set(t, o), o;
|
|
32699
32709
|
})(), { width: s, height: r } = yield i;
|
|
32700
|
-
return
|
|
32710
|
+
return he(B({}, n), {
|
|
32701
32711
|
width: s / e,
|
|
32702
32712
|
height: r / e
|
|
32703
32713
|
});
|
|
@@ -32709,7 +32719,7 @@ function Zk(n) {
|
|
|
32709
32719
|
if (!t)
|
|
32710
32720
|
throw new Error("KeyframeIcon requires steps");
|
|
32711
32721
|
const { width: r, height: o } = yield Jv(e), a = r / i, l = o / i, c = a / t, h = l, u = 1 / s * t + "s";
|
|
32712
|
-
return
|
|
32722
|
+
return he(B({}, n), {
|
|
32713
32723
|
width: c,
|
|
32714
32724
|
height: h,
|
|
32715
32725
|
duration: u
|
|
@@ -33112,7 +33122,7 @@ function rD(n) {
|
|
|
33112
33122
|
}
|
|
33113
33123
|
function Ks(n) {
|
|
33114
33124
|
const { originWidth: t, originHeight: e, scale: i = 1, wantedWidth: s } = n, r = (s != null ? s : t) * i, o = typeof e == "number" ? r * (e / t) : void 0;
|
|
33115
|
-
return
|
|
33125
|
+
return he(B({}, n), { width: r, height: o });
|
|
33116
33126
|
}
|
|
33117
33127
|
function oD(n, t, e) {
|
|
33118
33128
|
let i, s, r, o, a, l, c, h, u, { width: f = null } = t, { icon: p = null } = t, { shadow: g = !1 } = t;
|
|
@@ -33126,7 +33136,7 @@ function oD(n, t, e) {
|
|
|
33126
33136
|
function b(M) {
|
|
33127
33137
|
return $(this, null, function* () {
|
|
33128
33138
|
if (typeof u == "number")
|
|
33129
|
-
return
|
|
33139
|
+
return he(B({}, M), { width: u });
|
|
33130
33140
|
const E = yield Xk(M);
|
|
33131
33141
|
return v("iconLoaded", E), E;
|
|
33132
33142
|
});
|
|
@@ -34186,7 +34196,7 @@ class Kv extends Nh {
|
|
|
34186
34196
|
c.classList.add("tag-media-container");
|
|
34187
34197
|
const h = "black";
|
|
34188
34198
|
c.style.backgroundColor = h, c.style.border = `3px solid ${h}`;
|
|
34189
|
-
const u = B({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), f = this.computeRenderType() === "BehindDom" || u.mode === "behind" ? "behind" : "front", p = new Lv(
|
|
34199
|
+
const u = B({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), f = this.computeRenderType() === "BehindDom" || u.mode === "behind" ? "behind" : "front", p = new Lv(he(B({}, u), { mode: f })), g = this.computeNormal();
|
|
34190
34200
|
p.position.add(g.clone().setLength(Oo.Z_FIGHTING_OFFSET)), s.add(p);
|
|
34191
34201
|
let v;
|
|
34192
34202
|
p.mode === "behind" && this.config.clickable !== !1 && (v = this.addObjectClickHandler(this, p, (b) => {
|
|
@@ -34267,7 +34277,7 @@ class jD extends Nh {
|
|
|
34267
34277
|
(a = (o = this.tag3DContentSvelte) == null ? void 0 : o.dispose) == null || a.call(o);
|
|
34268
34278
|
const c = document.createElement("div");
|
|
34269
34279
|
c.classList.add("tag-media-container");
|
|
34270
|
-
const h = B({ mode: "front", cornerPoints: l, container: c }, this.config.tag3DConfig), u = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", f = new Lv(
|
|
34280
|
+
const h = B({ mode: "front", cornerPoints: l, container: c }, this.config.tag3DConfig), u = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", f = new Lv(he(B({}, h), { mode: u })), p = this.computeNormal();
|
|
34271
34281
|
f.position.add(p.clone().setLength(Oo.Z_FIGHTING_OFFSET)), this.plugin.group.add(f);
|
|
34272
34282
|
let g;
|
|
34273
34283
|
f.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, f, (m) => {
|
|
@@ -35190,7 +35200,7 @@ class Rc extends B2 {
|
|
|
35190
35200
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
35191
35201
|
this.TagContainerSvelte = new qD({
|
|
35192
35202
|
target: this.container,
|
|
35193
|
-
props:
|
|
35203
|
+
props: he(B({}, a), { state: he(B({}, this.state), { enabled: !1 }) })
|
|
35194
35204
|
}), Lo(() => {
|
|
35195
35205
|
var l;
|
|
35196
35206
|
(l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
|
|
@@ -36172,7 +36182,7 @@ class Bc {
|
|
|
36172
36182
|
s.tag = o, rS(o) && (s.tag.element = (h) => {
|
|
36173
36183
|
var p, g;
|
|
36174
36184
|
(p = s.app) == null || p.$destroy();
|
|
36175
|
-
const u = t === "start" ?
|
|
36185
|
+
const u = t === "start" ? he(B({}, o.data), { name: this.name, distance: Math.round((g = i.getLength()) != null ? g : 0), i18n: this.plugin.config.i18n }) : o.data, f = new tS({ target: h, intro: !0, props: u });
|
|
36176
36186
|
return s.app = f, () => f.$destroy();
|
|
36177
36187
|
}), s.plugin.load({ tagList: [s.tag] });
|
|
36178
36188
|
const a = this.meshStyle.translate;
|
|
@@ -36212,7 +36222,7 @@ class Bc {
|
|
|
36212
36222
|
panoIndex: l
|
|
36213
36223
|
};
|
|
36214
36224
|
}).filter(Fe), o = r.map((l) => l.position.toArray()), a = r.map((l) => l.panoIndex);
|
|
36215
|
-
return [
|
|
36225
|
+
return [he(B({ type: "CatmullRomCurve3", points: o }, i), { panoIndexList: a, panoIndexMap: s })];
|
|
36216
36226
|
}
|
|
36217
36227
|
}
|
|
36218
36228
|
function rS(n) {
|
|
@@ -36414,7 +36424,7 @@ let i0 = class extends t0 {
|
|
|
36414
36424
|
this.state.speed = e, this.hooks.emit("speedChange", e, { userAction: i });
|
|
36415
36425
|
});
|
|
36416
36426
|
d(this, "moveToStart", () => {
|
|
36417
|
-
this.five.setState(
|
|
36427
|
+
this.five.setState(he(B({}, Ul(this.curve, 0, this.curveOffset)), { mode: "Model" }));
|
|
36418
36428
|
});
|
|
36419
36429
|
d(this, "playFromStart", () => {
|
|
36420
36430
|
this.clearPauseData(), this.setState({ playing: !0 });
|
|
@@ -36484,7 +36494,7 @@ let i0 = class extends t0 {
|
|
|
36484
36494
|
let r = (l = s == null ? void 0 : s.playedProgress) != null ? l : 0;
|
|
36485
36495
|
(r < 0 || r >= 1) && (r = 0);
|
|
36486
36496
|
const o = Ul(this.curve, r, this.curveOffset);
|
|
36487
|
-
if (this.hooks.emit("progressChange", r), this.five.setState(
|
|
36497
|
+
if (this.hooks.emit("progressChange", r), this.five.setState(he(B({}, o), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
|
|
36488
36498
|
const c = this.addInterruptListener(() => {
|
|
36489
36499
|
this.state.playing && (this.hooks.emit("broke"), this.handlePause(), c(), i(new Error("broke")));
|
|
36490
36500
|
});
|
|
@@ -36619,7 +36629,7 @@ class Kh extends t0 {
|
|
|
36619
36629
|
* @description Play from first keyframe
|
|
36620
36630
|
*/
|
|
36621
36631
|
playFromStart(e) {
|
|
36622
|
-
return this.playFrom(
|
|
36632
|
+
return this.playFrom(he(B({}, e), { index: 0 }));
|
|
36623
36633
|
}
|
|
36624
36634
|
/**
|
|
36625
36635
|
* @description Format data
|
|
@@ -36637,7 +36647,7 @@ class Kh extends t0 {
|
|
|
36637
36647
|
keyframes: i.keyframes.map((s, r) => {
|
|
36638
36648
|
var l;
|
|
36639
36649
|
const o = i.keyframes[r + 1], a = (() => !o || o.start === void 0 || s.end === void 0 ? 0 : o.start - s.end)();
|
|
36640
|
-
return
|
|
36650
|
+
return he(B({ id: (l = s.uuid) != null ? l : kt(), moveIndex: r, stay: a, index: r }, s), { guildPluginOptions: i.guildPluginOptions });
|
|
36641
36651
|
})
|
|
36642
36652
|
};
|
|
36643
36653
|
if (i.panoIndexList) {
|
|
@@ -36965,9 +36975,9 @@ class s0 {
|
|
|
36965
36975
|
const i = t === "panorama" ? this.panoramaItem : this.modelItem, s = t === "panorama" ? e.panorama_style : e.model_style, r = t === "panorama" && e.panorama_style.use_auto_depthtest, o = e.panorama_style.auto_depth_test_effect_distance, a = e.path, l = s, c = s, h = s;
|
|
36966
36976
|
if (e.pano_group) {
|
|
36967
36977
|
const f = t === "panorama" && e.panorama_style.skip_group === !0;
|
|
36968
|
-
i.setGeometryByPanoGroup(e.pano_group,
|
|
36978
|
+
i.setGeometryByPanoGroup(e.pano_group, he(B({ skipPanoGroup: f }, l), { useAutoDepthTest: r, autoDepthTestEffectDistance: o }));
|
|
36969
36979
|
} else
|
|
36970
|
-
e.path && i.setGeometryByPath(a,
|
|
36980
|
+
e.path && i.setGeometryByPath(a, he(B({}, l), { useAutoDepthTest: r, autoDepthTestEffectDistance: o }));
|
|
36971
36981
|
i.name = e.name, i.setMeshStyle(h), i.setMartial(c), i.setVisibleFloorIndexes((u = e.visible_floor_indexes) != null ? u : null), i.setStartTag(s == null ? void 0 : s.start_tag), i.setEndTag(s == null ? void 0 : s.end_tag);
|
|
36972
36982
|
}
|
|
36973
36983
|
show() {
|
|
@@ -37223,7 +37233,7 @@ class zo extends gi {
|
|
|
37223
37233
|
}
|
|
37224
37234
|
initialPosition(e) {
|
|
37225
37235
|
var i, s;
|
|
37226
|
-
this.positionFrom === "objectPosition" ? this.position.copy(this.originObject3D.position) : this.positionFrom === "boundingBox" ? this.position.copy((i = Is(this.originObject3D)) == null ? void 0 : i.getCenter(new y.Vector3()).applyMatrix4(this.originObject3D.matrixWorld)) : this.positionFrom === "boundingSphere" ? this.position.copy((s = Ym(this.originObject3D)) == null ? void 0 : s.center.clone().applyMatrix4(this.originObject3D.matrixWorld)) : this.positionFrom instanceof
|
|
37236
|
+
this.positionFrom === "objectPosition" ? this.position.copy(this.originObject3D.position) : this.positionFrom === "boundingBox" ? this.position.copy((i = Is(this.originObject3D)) == null ? void 0 : i.getCenter(new y.Vector3()).applyMatrix4(this.originObject3D.matrixWorld)) : this.positionFrom === "boundingSphere" ? this.position.copy((s = Ym(this.originObject3D)) == null ? void 0 : s.center.clone().applyMatrix4(this.originObject3D.matrixWorld)) : this.positionFrom instanceof ue ? this.position.copy(this.positionFrom) : this.positionFrom instanceof Function && this.position.copy(this.positionFrom(this.originObject3D)), e && this.position.add(e);
|
|
37227
37237
|
}
|
|
37228
37238
|
setScaleByCamera(e) {
|
|
37229
37239
|
}
|
|
@@ -37258,7 +37268,7 @@ class zo extends gi {
|
|
|
37258
37268
|
}
|
|
37259
37269
|
applyHelperQuaternion(e, i) {
|
|
37260
37270
|
if (i) {
|
|
37261
|
-
const s = new
|
|
37271
|
+
const s = new ue().subVectors(this.position, i).applyQuaternion(e).add(i);
|
|
37262
37272
|
this.position.copy(s);
|
|
37263
37273
|
}
|
|
37264
37274
|
this.applyQuaternion(e);
|
|
@@ -38499,7 +38509,7 @@ class WS extends jo {
|
|
|
38499
38509
|
getDragPlane() {
|
|
38500
38510
|
const e = new y.Plane(), i = this.helperObject3D.cornerPositions;
|
|
38501
38511
|
if (i.length !== 0)
|
|
38502
|
-
return i.length < 3 ? e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new
|
|
38512
|
+
return i.length < 3 ? e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new ue()), i[0]) : e.setFromCoplanarPoints(i[0], i[1], i[2]), e;
|
|
38503
38513
|
}
|
|
38504
38514
|
dragStart(e, i) {
|
|
38505
38515
|
var r, o;
|
|
@@ -38524,25 +38534,25 @@ class WS extends jo {
|
|
|
38524
38534
|
const i = this.originObject3D, { startPoint: s, plane: r } = this.startInfo, o = this.helperObject3D.cornerPositions;
|
|
38525
38535
|
if (o.length < 4)
|
|
38526
38536
|
return this.dragEnd();
|
|
38527
|
-
const a = e.ray.intersectPlane(r, new
|
|
38537
|
+
const a = e.ray.intersectPlane(r, new ue());
|
|
38528
38538
|
if (!a || yS(a, this.camera.position))
|
|
38529
38539
|
return;
|
|
38530
|
-
const l = new
|
|
38531
|
-
const w = new
|
|
38540
|
+
const l = new ue().addVectors(o[0], o[2]).divideScalar(2), { position: c, direction: h } = s, u = new ue().subVectors(o[1], o[0]), f = new ue().subVectors(o[3], o[0]), p = (I) => {
|
|
38541
|
+
const w = new ue(0, 0, 0);
|
|
38532
38542
|
if (!this.startInfo)
|
|
38533
38543
|
return w;
|
|
38534
38544
|
const x = (I === "ew" ? u : f).clone(), k = c.clone().projectOnVector(x), L = a.clone().projectOnVector(x), R = l.clone().projectOnVector(x);
|
|
38535
38545
|
if (L.equals(k))
|
|
38536
38546
|
return w;
|
|
38537
38547
|
if (I === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
38538
|
-
const ee = new
|
|
38548
|
+
const ee = new ue().subVectors(L, R), K = ee.x < 0 && x.x >= 0, re = ee.y < 0 && x.y >= 0, ne = ee.z < 0 && x.z >= 0;
|
|
38539
38549
|
this.startInfo.dragPointInCenterBottom = K || re || ne;
|
|
38540
38550
|
}
|
|
38541
38551
|
if (I === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
38542
|
-
const ee = new
|
|
38552
|
+
const ee = new ue().subVectors(L, R), K = ee.x < 0 && x.x >= 0, re = ee.y < 0 && x.y >= 0, ne = ee.z < 0 && x.z >= 0;
|
|
38543
38553
|
this.startInfo.dragPointInCenterLeft = K || re || ne;
|
|
38544
38554
|
}
|
|
38545
|
-
const V = new
|
|
38555
|
+
const V = new ue().subVectors(L, k), J = V.length();
|
|
38546
38556
|
return J > 0.3 ? (console.warn("offset.length() > 0.3, skipped", J), w) : V;
|
|
38547
38557
|
}, g = p("ew"), v = p("ns"), m = () => {
|
|
38548
38558
|
const I = g;
|
|
@@ -38568,9 +38578,9 @@ class WS extends jo {
|
|
|
38568
38578
|
case "nwse":
|
|
38569
38579
|
m(), b();
|
|
38570
38580
|
}
|
|
38571
|
-
const C = new
|
|
38581
|
+
const C = new ue().subVectors(o[1], o[0]).length() / u.length(), M = new ue().subVectors(o[3], o[0]).length() / f.length(), E = new ue(C, M, 1), T = new y.Matrix4().scale(E);
|
|
38572
38582
|
i.isCSS3DObjectPlus && i.applyScaleMatrix4 ? i.applyScaleMatrix4(T) : i.scale.applyMatrix4(T), s.position.copy(a);
|
|
38573
|
-
const S = new
|
|
38583
|
+
const S = new ue().addVectors(o[0], o[2]).divideScalar(2), _ = new ue().subVectors(S, l), H = new y.Matrix4().setPosition(_);
|
|
38574
38584
|
i.applyMatrix4(H), (Z = this.helperObject3D.css3DInstance) == null || Z.css3DObject.applyMatrix4(H), (A = this.helperObject3D.plane) == null || A.applyMatrix4(H), this.internalHooks.emit("applyObjectScale", { matrix: T }), this.internalHooks.emit("applyObjectPosition", { matrix: H }), this.render();
|
|
38575
38585
|
}
|
|
38576
38586
|
dragEnd() {
|
|
@@ -39176,7 +39186,7 @@ class lm {
|
|
|
39176
39186
|
/** 把 uv 值转换成位置 */
|
|
39177
39187
|
d(this, "uv2Position", (t, e) => {
|
|
39178
39188
|
var p;
|
|
39179
|
-
const s = Math.PI, r = Math.PI * 2, o = t, a = 1 - e, l = new
|
|
39189
|
+
const s = Math.PI, r = Math.PI * 2, o = t, a = 1 - e, l = new ue(
|
|
39180
39190
|
-1 * Math.cos(r * o) * Math.sin(s * a),
|
|
39181
39191
|
1 * Math.cos(s * a),
|
|
39182
39192
|
1 * Math.sin(r * o) * Math.sin(s * a)
|
|
@@ -39186,7 +39196,7 @@ class lm {
|
|
|
39186
39196
|
if (!c)
|
|
39187
39197
|
return this.logWarning(`点位 ${this.panoIndex} 不存在,请检查 Five 数据是否正常。`);
|
|
39188
39198
|
const h = c.position.clone(), u = c.quaternion.clone(), f = l.clone();
|
|
39189
|
-
return f.applyAxisAngle(new
|
|
39199
|
+
return f.applyAxisAngle(new ue(0, 1, 0), Math.PI / 2), f.applyQuaternion(u), f.add(h), f;
|
|
39190
39200
|
});
|
|
39191
39201
|
/** Five 数据加载后需要根据点位位姿调整点位模型位置 */
|
|
39192
39202
|
d(this, "onFiveDataLoaded", () => {
|
|
@@ -39196,7 +39206,7 @@ class lm {
|
|
|
39196
39206
|
return this.logWarning(`点位 ${this.panoIndex} 不存在,请检查 Five 数据是否正常。`);
|
|
39197
39207
|
this.observer = t;
|
|
39198
39208
|
const { x: e, y: i, z: s, w: r } = t.quaternion, o = new Ys(e, i, s, r), a = t.position;
|
|
39199
|
-
this.videoMesh.position.fromArray([a.x, a.y, a.z]), this.videoMesh.quaternion.set(0, 0, 0, 1), this.videoMesh.rotateOnAxis(new
|
|
39209
|
+
this.videoMesh.position.fromArray([a.x, a.y, a.z]), this.videoMesh.quaternion.set(0, 0, 0, 1), this.videoMesh.rotateOnAxis(new ue(0, 1, 0), Math.PI / 2), this.videoMesh.applyQuaternion(o);
|
|
39200
39210
|
});
|
|
39201
39211
|
/** 兼容视频播放 */
|
|
39202
39212
|
d(this, "onFiveWantsMoveToPano", (t) => {
|
|
@@ -39354,7 +39364,7 @@ class lm {
|
|
|
39354
39364
|
const e = this.uv2Position(t[0], t[1]);
|
|
39355
39365
|
if (!e)
|
|
39356
39366
|
return;
|
|
39357
|
-
const i = new
|
|
39367
|
+
const i = new ue().subVectors(e, this.observer.position).normalize(), { longitude: s, latitude: r } = tT(i);
|
|
39358
39368
|
this.five.setState({ panoIndex: this.panoIndex, longitude: s, latitude: r }), this.onFiveWantsMoveToPano(this.panoIndex);
|
|
39359
39369
|
}
|
|
39360
39370
|
/** 获取视频中心点的 uv */
|
|
@@ -39439,7 +39449,7 @@ class iT extends Yn {
|
|
|
39439
39449
|
r.video_list.forEach((l) => {
|
|
39440
39450
|
this.controllerMap.set(
|
|
39441
39451
|
l.render_id,
|
|
39442
|
-
new lm(this.five,
|
|
39452
|
+
new lm(this.five, he(B({}, l), {
|
|
39443
39453
|
panoIndex: o,
|
|
39444
39454
|
renderID: a,
|
|
39445
39455
|
hooks: this.hooks,
|
|
@@ -39517,7 +39527,7 @@ class iT extends Yn {
|
|
|
39517
39527
|
const r = s.render_id;
|
|
39518
39528
|
this.controllerMap.set(
|
|
39519
39529
|
s.render_id,
|
|
39520
|
-
new lm(this.five,
|
|
39530
|
+
new lm(this.five, he(B({}, s), {
|
|
39521
39531
|
panoIndex: e,
|
|
39522
39532
|
renderID: r,
|
|
39523
39533
|
hooks: this.hooks,
|
|
@@ -40821,9 +40831,9 @@ let MT = class extends mn {
|
|
|
40821
40831
|
return i(e) ? {
|
|
40822
40832
|
list: e.list.filter((s) => s.object_data.points.length >= 3).map((s) => {
|
|
40823
40833
|
const r = new y.Shape(), o = s.object_data.points[0];
|
|
40824
|
-
return r.moveTo(o[0], o[2]), s.object_data.points.slice(1).forEach((l) => r.lineTo(l[0], l[2])), r.lineTo(o[0], o[2]),
|
|
40834
|
+
return r.moveTo(o[0], o[2]), s.object_data.points.slice(1).forEach((l) => r.lineTo(l[0], l[2])), r.lineTo(o[0], o[2]), he(B({}, s), {
|
|
40825
40835
|
floor_index: s.object_data.floorIndex,
|
|
40826
|
-
object_data:
|
|
40836
|
+
object_data: he(B({}, s.object_data), {
|
|
40827
40837
|
bottom_y: o[1] + s.object_data.fixedY,
|
|
40828
40838
|
shape: r.toJSON(),
|
|
40829
40839
|
height: s.object_data.height + s.object_data.fixedHeight
|
|
@@ -41202,11 +41212,11 @@ class wr extends gi {
|
|
|
41202
41212
|
size: (f = e == null ? void 0 : e.size) != null ? f : 8,
|
|
41203
41213
|
map: dm || (dm = new y.TextureLoader().load(TT)),
|
|
41204
41214
|
sizeAttenuation: !1
|
|
41205
|
-
}, a = new y.PointsMaterial(
|
|
41215
|
+
}, a = new y.PointsMaterial(he(B({}, o), {
|
|
41206
41216
|
color: (p = e == null ? void 0 : e.color) != null ? p : 16777215,
|
|
41207
41217
|
depthTest: !0,
|
|
41208
41218
|
opacity: 1
|
|
41209
|
-
})), l = new y.PointsMaterial(
|
|
41219
|
+
})), l = new y.PointsMaterial(he(B({}, o), {
|
|
41210
41220
|
size: a.size,
|
|
41211
41221
|
color: a.color,
|
|
41212
41222
|
depthWrite: !1,
|
|
@@ -41273,7 +41283,7 @@ class Hc extends Di {
|
|
|
41273
41283
|
d(this, "pointGroup", new gi());
|
|
41274
41284
|
d(this, "_paramsStyle");
|
|
41275
41285
|
d(this, "setStyle", (e) => {
|
|
41276
|
-
super.setStyle(e), this._paramsStyle = B(B({}, this._paramsStyle), e), this.pointMeshes.forEach((i) => i.setStyle(
|
|
41286
|
+
super.setStyle(e), this._paramsStyle = B(B({}, this._paramsStyle), e), this.pointMeshes.forEach((i) => i.setStyle(he(B({}, this._paramsStyle), { color: e.lineColor, tip: void 0 }))), this.updateEdgePointsVisibility(), this.needsRender = !0;
|
|
41277
41287
|
});
|
|
41278
41288
|
d(this, "highlight", () => {
|
|
41279
41289
|
super.highlight(), this.pointMeshes.forEach((e) => e.highlight());
|
|
@@ -41304,7 +41314,7 @@ class Hc extends Di {
|
|
|
41304
41314
|
const i = e.map(He).filter(Fe);
|
|
41305
41315
|
this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), i.forEach((s) => {
|
|
41306
41316
|
var o;
|
|
41307
|
-
const r = new wr(
|
|
41317
|
+
const r = new wr(he(B({}, this.style), { color: (o = this._paramsStyle) == null ? void 0 : o.lineColor, tip: void 0 }));
|
|
41308
41318
|
r.position.copy(s), this.pointGroup.add(r);
|
|
41309
41319
|
}), this.updateEdgePointsVisibility(), this.needsRender = !0;
|
|
41310
41320
|
}
|
|
@@ -41376,7 +41386,7 @@ class u0 extends gi {
|
|
|
41376
41386
|
if (o !== 0 && a === void 0)
|
|
41377
41387
|
return;
|
|
41378
41388
|
const l = (c = this.lines[o]) != null ? c : (() => {
|
|
41379
|
-
const h = new Hc(
|
|
41389
|
+
const h = new Hc(he(B({}, this.style), {
|
|
41380
41390
|
pointVisibility: this.withDots ? { startPoint: o === 0, endPoint: !0 } : !1
|
|
41381
41391
|
}));
|
|
41382
41392
|
return this.lines[o] = h, this.add(h), h;
|
|
@@ -41396,13 +41406,13 @@ class u0 extends gi {
|
|
|
41396
41406
|
}
|
|
41397
41407
|
class Ps extends u0 {
|
|
41398
41408
|
constructor(...e) {
|
|
41399
|
-
super(
|
|
41409
|
+
super(he(B({}, e[0]), { withDots: !1 }));
|
|
41400
41410
|
d(this, "name", "PolylineMesh");
|
|
41401
41411
|
}
|
|
41402
41412
|
}
|
|
41403
41413
|
class Bn extends u0 {
|
|
41404
41414
|
constructor(...e) {
|
|
41405
|
-
super(
|
|
41415
|
+
super(he(B({}, e[0]), { withDots: !0 }));
|
|
41406
41416
|
d(this, "name", "PolylineWithDotsMesh");
|
|
41407
41417
|
}
|
|
41408
41418
|
}
|
|
@@ -42026,7 +42036,7 @@ class mm extends Oi {
|
|
|
42026
42036
|
return this._editor || (this._editor = new QT(this)), this._editor;
|
|
42027
42037
|
}
|
|
42028
42038
|
get data() {
|
|
42029
|
-
return
|
|
42039
|
+
return he(B({}, this.baseData), {
|
|
42030
42040
|
points: li(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
|
|
42031
42041
|
style: {
|
|
42032
42042
|
lineColor: new y.Color(this.polyLineMesh.lineColor).getHex(),
|
|
@@ -42077,7 +42087,7 @@ function UT(n, t, e) {
|
|
|
42077
42087
|
return;
|
|
42078
42088
|
const { promise: s, resolve: r, reject: o } = Ms(), a = (T = e == null ? void 0 : e.limit) != null ? T : "none", l = new Ps(n.style);
|
|
42079
42089
|
i.add(l);
|
|
42080
|
-
const c = new Ps(
|
|
42090
|
+
const c = new Ps(he(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
42081
42091
|
i.add(c), t.enable();
|
|
42082
42092
|
const h = [];
|
|
42083
42093
|
let u, f, p;
|
|
@@ -42138,7 +42148,7 @@ class gm extends Oi {
|
|
|
42138
42148
|
return this._editor || (this._editor = new YT(this)), this._editor;
|
|
42139
42149
|
}
|
|
42140
42150
|
get data() {
|
|
42141
|
-
return
|
|
42151
|
+
return he(B({}, this.baseData), {
|
|
42142
42152
|
point: li(this.applyObjectMatrixWorld(this.pointMesh.position)),
|
|
42143
42153
|
style: {
|
|
42144
42154
|
color: this.pointMesh.color.getHex(),
|
|
@@ -42278,7 +42288,7 @@ class ou extends gl {
|
|
|
42278
42288
|
e != null && e.points && this.setPoints(e.points), this._paramsStyle = e != null ? e : {}, this.updateAreaItems();
|
|
42279
42289
|
}
|
|
42280
42290
|
get style() {
|
|
42281
|
-
return
|
|
42291
|
+
return he(B({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
|
|
42282
42292
|
}
|
|
42283
42293
|
get isBlank() {
|
|
42284
42294
|
return !!this.geometry.isBlank;
|
|
@@ -42346,7 +42356,7 @@ class A0 extends ou {
|
|
|
42346
42356
|
i && this.setPoints(i), s && this.setStyle(s);
|
|
42347
42357
|
}
|
|
42348
42358
|
get style() {
|
|
42349
|
-
return
|
|
42359
|
+
return he(B({}, super.style), {
|
|
42350
42360
|
lineWidth: this.lineWidth,
|
|
42351
42361
|
lineColor: this.lineColor
|
|
42352
42362
|
});
|
|
@@ -42408,7 +42418,7 @@ class vm extends Oi {
|
|
|
42408
42418
|
return this._editor || (this._editor = new XT(this)), this._editor;
|
|
42409
42419
|
}
|
|
42410
42420
|
get data() {
|
|
42411
|
-
return this.updateMatrixWorld(),
|
|
42421
|
+
return this.updateMatrixWorld(), he(B({}, this.baseData), {
|
|
42412
42422
|
points: li(this.applyObjectMatrixWorld(this.areaMesh.points)),
|
|
42413
42423
|
style: {
|
|
42414
42424
|
color: this.areaMesh.color.getHex(),
|
|
@@ -42463,7 +42473,7 @@ function au(n, t, e) {
|
|
|
42463
42473
|
}
|
|
42464
42474
|
const a = (H = e == null ? void 0 : e.limit) != null ? H : "none", l = new Ps(n.style);
|
|
42465
42475
|
o == null || o.add(l);
|
|
42466
|
-
const c = new Ps(
|
|
42476
|
+
const c = new Ps(he(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
42467
42477
|
o == null || o.add(c), t.enable();
|
|
42468
42478
|
const h = [];
|
|
42469
42479
|
let u, f, p = !1, g;
|
|
@@ -42710,7 +42720,7 @@ class Am extends Oi {
|
|
|
42710
42720
|
return this._editor || (this._editor = new b0(this.prismMesh)), this._editor;
|
|
42711
42721
|
}
|
|
42712
42722
|
get data() {
|
|
42713
|
-
return
|
|
42723
|
+
return he(B({}, this.baseData), {
|
|
42714
42724
|
points: li(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
|
|
42715
42725
|
heightPoint: li(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
|
|
42716
42726
|
style: {
|
|
@@ -42916,7 +42926,7 @@ class bm extends Oi {
|
|
|
42916
42926
|
return this._editor || (this._editor = new w0(this.rectangleMesh)), this._editor;
|
|
42917
42927
|
}
|
|
42918
42928
|
get data() {
|
|
42919
|
-
return
|
|
42929
|
+
return he(B({}, this.baseData), {
|
|
42920
42930
|
points: li(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
|
|
42921
42931
|
style: {
|
|
42922
42932
|
color: this.rectangleMesh.color.getHex(),
|
|
@@ -42954,7 +42964,7 @@ function $T(n, t, e) {
|
|
|
42954
42964
|
const { promise: i, reject: s, resolve: r } = Ms(), o = n.parent;
|
|
42955
42965
|
if (!o)
|
|
42956
42966
|
return s(new Error("No container"));
|
|
42957
|
-
const a = (M = e == null ? void 0 : e.limit) != null ? M : "none", l = new Bn(
|
|
42967
|
+
const a = (M = e == null ? void 0 : e.limit) != null ? M : "none", l = new Bn(he(B({}, n.style), { dashed: !0 })), c = new Bn(he(B({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new Bn(he(B({}, n.style), { dashed: !1, lengthEnable: !1 }));
|
|
42958
42968
|
o.add(l, h, c), t.enable();
|
|
42959
42969
|
const u = [];
|
|
42960
42970
|
let f = new y.Vector3(), p = new y.Vector3();
|
|
@@ -43003,7 +43013,7 @@ function e5(n, t, e) {
|
|
|
43003
43013
|
const { promise: i, reject: s, resolve: r } = Ms(), o = n.parent;
|
|
43004
43014
|
if (!o)
|
|
43005
43015
|
return s(new Error("No container"));
|
|
43006
|
-
const a = (M = e == null ? void 0 : e.limit) != null ? M : "none", l = new Bn(
|
|
43016
|
+
const a = (M = e == null ? void 0 : e.limit) != null ? M : "none", l = new Bn(he(B({}, n.style), { dashed: !0 })), c = new Bn(he(B({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new Bn(he(B({}, n.style), { dashed: !1, lengthEnable: !1 }));
|
|
43007
43017
|
o.add(l, h, c), t.enable();
|
|
43008
43018
|
const u = [];
|
|
43009
43019
|
let f = new y.Vector3(), p = new y.Vector3();
|
|
@@ -43117,7 +43127,7 @@ class ym extends Oi {
|
|
|
43117
43127
|
return this._editor || (this._editor = new I0(this.circleMesh)), this._editor;
|
|
43118
43128
|
}
|
|
43119
43129
|
get data() {
|
|
43120
|
-
return
|
|
43130
|
+
return he(B({}, this.baseData), {
|
|
43121
43131
|
center: li(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
|
|
43122
43132
|
normal: li(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
|
|
43123
43133
|
radius: this.circleMesh.radius,
|
|
@@ -43302,7 +43312,7 @@ class wm extends Oi {
|
|
|
43302
43312
|
return this._editor || (this._editor = new x0(this.cylinderMesh)), this._editor;
|
|
43303
43313
|
}
|
|
43304
43314
|
get data() {
|
|
43305
|
-
return
|
|
43315
|
+
return he(B({}, this.baseData), {
|
|
43306
43316
|
bottomCenter: li(this.applyObjectMatrixWorld(this.cylinderMesh.bottomCenter, this.cylinderMesh)),
|
|
43307
43317
|
topCenter: li(this.applyObjectMatrixWorld(this.cylinderMesh.topCenter, this.cylinderMesh)),
|
|
43308
43318
|
radius: this.cylinderMesh.radius,
|
|
@@ -43482,7 +43492,7 @@ class Cm extends Oi {
|
|
|
43482
43492
|
return this._editor || (this._editor = new D0(this.boxMesh)), this._editor;
|
|
43483
43493
|
}
|
|
43484
43494
|
get data() {
|
|
43485
|
-
return
|
|
43495
|
+
return he(B({}, this.baseData), {
|
|
43486
43496
|
points: li(this.applyObjectMatrixWorld(this.boxMesh.bottomPositions, this.boxMesh)),
|
|
43487
43497
|
heightPoint: li(this.applyObjectMatrixWorld(this.boxMesh.topPosition, this.boxMesh)),
|
|
43488
43498
|
style: {
|
|
@@ -43564,7 +43574,7 @@ class Pm extends Oi {
|
|
|
43564
43574
|
return this._editor || (this._editor = new WT(this)), this._editor;
|
|
43565
43575
|
}
|
|
43566
43576
|
get data() {
|
|
43567
|
-
return
|
|
43577
|
+
return he(B({}, this.baseData), {
|
|
43568
43578
|
points: li(this.applyObjectMatrixWorld(this.lineMesh.points)),
|
|
43569
43579
|
style: {
|
|
43570
43580
|
lineColor: new y.Color(this.lineMesh.color).getHex(),
|
|
@@ -43615,7 +43625,7 @@ function T0(n, t, e) {
|
|
|
43615
43625
|
return;
|
|
43616
43626
|
const { promise: s, resolve: r, reject: o } = Ms(), a = (_ = e == null ? void 0 : e.limit) != null ? _ : "none", l = new Di(n.style);
|
|
43617
43627
|
i.add(l);
|
|
43618
|
-
const c = new Di(
|
|
43628
|
+
const c = new Di(he(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
43619
43629
|
i.add(c), t.enable();
|
|
43620
43630
|
const h = [];
|
|
43621
43631
|
let u, f, p;
|
|
@@ -43704,7 +43714,7 @@ const er = class extends wt {
|
|
|
43704
43714
|
this.clear();
|
|
43705
43715
|
const s = (r = e == null ? void 0 : e.items) == null ? void 0 : r.map((o) => {
|
|
43706
43716
|
var l;
|
|
43707
|
-
const a =
|
|
43717
|
+
const a = he(B({}, o), {
|
|
43708
43718
|
style: B(B({}, (l = this.theme) == null ? void 0 : l[o.type.toLowerCase()]), o.style)
|
|
43709
43719
|
});
|
|
43710
43720
|
return o.type === "Point" ? new gm(a, i) : o.type === "line" ? new Pm(a, i) : o.type === "Polyline" ? new mm(a, i) : o.type === "Polygon" ? new vm(a, i) : o.type === "Prism" ? new Am(a, i) : o.type === "Rectangle" ? new bm(a, i) : o.type === "Circle" ? new ym(a, i) : o.type === "Cylinder" ? new wm(a, i) : o.type === "Box" ? new Cm(a, i) : null;
|
|
@@ -44011,7 +44021,7 @@ const Em = (n, t) => {
|
|
|
44011
44021
|
class Mm extends O0 {
|
|
44012
44022
|
constructor(...e) {
|
|
44013
44023
|
const i = e[0], s = Is(i.model), r = new y.Vector3().lerpVectors(On(s, 0), On(s, 5), 0.5);
|
|
44014
|
-
super(
|
|
44024
|
+
super(he(B({}, i), { position: r }));
|
|
44015
44025
|
d(this, "onModelShownFloorChange", (e) => {
|
|
44016
44026
|
this.updateFiveCurrentFloorState(e), this.updateVisible();
|
|
44017
44027
|
});
|