@realsee/dnalogel 3.61.4 → 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 +4 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/typings/data.d.ts +5 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +180 -172
- 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 +86 -77
- 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,
|
|
@@ -20784,7 +20784,15 @@ class XI extends Yn {
|
|
|
20784
20784
|
* @description 如果当前正在编辑中,会自动退出并保存编辑
|
|
20785
20785
|
*/
|
|
20786
20786
|
load(e) {
|
|
20787
|
-
|
|
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();
|
|
20788
20796
|
}
|
|
20789
20797
|
/** 插件功能入口
|
|
20790
20798
|
* @description 会隐藏鼠标的默认聚焦环
|
|
@@ -21862,10 +21870,10 @@ function vE(n, t, e) {
|
|
|
21862
21870
|
const L = k.map((V) => {
|
|
21863
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);
|
|
21864
21872
|
if (!ne)
|
|
21865
|
-
return
|
|
21873
|
+
return he(B({}, V), { visible: ne });
|
|
21866
21874
|
g.push(J);
|
|
21867
21875
|
const ae = C(J);
|
|
21868
|
-
return
|
|
21876
|
+
return he(B({}, V), {
|
|
21869
21877
|
visible: ne,
|
|
21870
21878
|
transform: ae,
|
|
21871
21879
|
strokeLength: K
|
|
@@ -21876,7 +21884,7 @@ function vE(n, t, e) {
|
|
|
21876
21884
|
})).sort((V, J) => V.distance - J.distance);
|
|
21877
21885
|
return L.map((V) => {
|
|
21878
21886
|
const J = R.findIndex((ee) => ee.itemLabelItem.id === V.id);
|
|
21879
|
-
return J !== void 0 ?
|
|
21887
|
+
return J !== void 0 ? he(B({}, V), { zIndex: J * 10 }) : V;
|
|
21880
21888
|
});
|
|
21881
21889
|
}, S = () => {
|
|
21882
21890
|
g = [], e(1, u = T(r, u));
|
|
@@ -22584,15 +22592,15 @@ function jE(n, t, e) {
|
|
|
22584
22592
|
}, E = (k, L) => {
|
|
22585
22593
|
const R = L.map((J) => {
|
|
22586
22594
|
if (k.state.panoIndex !== J.panoIndex)
|
|
22587
|
-
return
|
|
22595
|
+
return he(B({}, J), { visible: !1 });
|
|
22588
22596
|
const ee = M(k, J);
|
|
22589
22597
|
J.name.length * zE;
|
|
22590
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;
|
|
22591
22599
|
if (!ae)
|
|
22592
|
-
return
|
|
22600
|
+
return he(B({}, J), { visible: ae });
|
|
22593
22601
|
v.push(ee);
|
|
22594
22602
|
const Se = TE(ee);
|
|
22595
|
-
return
|
|
22603
|
+
return he(B({}, J), {
|
|
22596
22604
|
visible: ae,
|
|
22597
22605
|
transform: Se,
|
|
22598
22606
|
strokeLength: K
|
|
@@ -22603,7 +22611,7 @@ function jE(n, t, e) {
|
|
|
22603
22611
|
})).sort((J, ee) => J.distance - ee.distance);
|
|
22604
22612
|
return R.map((J) => {
|
|
22605
22613
|
const ee = V.findIndex((K) => K.itemLabelItem.id === J.id);
|
|
22606
|
-
return ee !== void 0 ?
|
|
22614
|
+
return ee !== void 0 ? he(B({}, J), { zIndex: ee * 10 }) : J;
|
|
22607
22615
|
});
|
|
22608
22616
|
}, T = () => {
|
|
22609
22617
|
v = [], e(1, u = E(s, u));
|
|
@@ -22645,14 +22653,14 @@ function jE(n, t, e) {
|
|
|
22645
22653
|
longitude: Math.PI + Math.atan2(ee.x, ee.z),
|
|
22646
22654
|
latitude: Math.acos(ee.y / ee.length()) - Math.PI / 2
|
|
22647
22655
|
};
|
|
22648
|
-
s.setState(
|
|
22656
|
+
s.setState(he(B({}, K), {
|
|
22649
22657
|
mode: _t.Mode.Panorama,
|
|
22650
22658
|
panoIndex: k.observerIndex
|
|
22651
22659
|
})), s.once("initAnimationEnded", () => {
|
|
22652
|
-
e(1, u = u.map((re) =>
|
|
22660
|
+
e(1, u = u.map((re) => he(B({}, re), {
|
|
22653
22661
|
isFold: re.id !== k.id
|
|
22654
22662
|
}))), s.once("cameraUpdate", () => {
|
|
22655
|
-
e(1, u = u.map((re) =>
|
|
22663
|
+
e(1, u = u.map((re) => he(B({}, re), { isFold: !1 })));
|
|
22656
22664
|
});
|
|
22657
22665
|
});
|
|
22658
22666
|
}
|
|
@@ -22707,7 +22715,7 @@ class RE extends Pe {
|
|
|
22707
22715
|
}
|
|
22708
22716
|
}
|
|
22709
22717
|
function BE(n) {
|
|
22710
|
-
return n.item_labels.map((t) =>
|
|
22718
|
+
return n.item_labels.map((t) => he(B({}, t), {
|
|
22711
22719
|
modelPosition: [t.position[0], t.position[1], t.position[2]],
|
|
22712
22720
|
observerIndex: void 0
|
|
22713
22721
|
}));
|
|
@@ -22875,7 +22883,7 @@ function GE(n, t) {
|
|
|
22875
22883
|
return !(e > s && i > r);
|
|
22876
22884
|
}
|
|
22877
22885
|
function WE(n) {
|
|
22878
|
-
const { camera: t } = n, e = t.getWorldDirection(new
|
|
22886
|
+
const { camera: t } = n, e = t.getWorldDirection(new ue());
|
|
22879
22887
|
let i = Math.atan(e.z / e.x) * 180 / Math.PI, s = "";
|
|
22880
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;
|
|
22881
22889
|
}
|
|
@@ -22967,11 +22975,11 @@ class XE extends Yn {
|
|
|
22967
22975
|
return;
|
|
22968
22976
|
if (this.five.currentMode !== "Panorama")
|
|
22969
22977
|
return this.hideAllLabels();
|
|
22970
|
-
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 = [];
|
|
22971
22979
|
if (this.labelItems.forEach((T, S) => {
|
|
22972
22980
|
var A;
|
|
22973
22981
|
if (T.visible) {
|
|
22974
|
-
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;
|
|
22975
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%)";
|
|
22976
22984
|
} else
|
|
22977
22985
|
T.inSight = !1;
|
|
@@ -23012,7 +23020,7 @@ class XE extends Yn {
|
|
|
23012
23020
|
if (o !== null && r !== null) {
|
|
23013
23021
|
const l = {};
|
|
23014
23022
|
if (a > 0) {
|
|
23015
|
-
const h = new
|
|
23023
|
+
const h = new ue(0, 0, -1), u = o.clone(), f = new Ys();
|
|
23016
23024
|
f.setFromUnitVectors(h, u);
|
|
23017
23025
|
const p = new rs();
|
|
23018
23026
|
p.setFromQuaternion(f, "YXZ"), l.longitude = p.y;
|
|
@@ -23038,15 +23046,15 @@ class XE extends Yn {
|
|
|
23038
23046
|
}, C = QE(u, b);
|
|
23039
23047
|
C < f && (f = C, p = b);
|
|
23040
23048
|
}), p && (u.y = p.y + 0.01);
|
|
23041
|
-
const g = new
|
|
23042
|
-
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({
|
|
23043
23051
|
roomName: o.name,
|
|
23044
23052
|
name: h.name,
|
|
23045
23053
|
position: g,
|
|
23046
23054
|
toward: UE(h.rad)
|
|
23047
23055
|
});
|
|
23048
23056
|
});
|
|
23049
|
-
}), this.labelItems = this.doorLabels.map((o) =>
|
|
23057
|
+
}), this.labelItems = this.doorLabels.map((o) => he(B({}, o), {
|
|
23050
23058
|
left: 0,
|
|
23051
23059
|
top: 0,
|
|
23052
23060
|
visible: !1,
|
|
@@ -23224,9 +23232,9 @@ function p2(n) {
|
|
|
23224
23232
|
})();
|
|
23225
23233
|
let Z = [];
|
|
23226
23234
|
for (let L = 0; L < l; L++) {
|
|
23227
|
-
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);
|
|
23228
23236
|
m[L * 6 + 0] = ne.x, m[L * 6 + 1] = ne.y, m[L * 6 + 2] = ne.z;
|
|
23229
|
-
const ae = new
|
|
23237
|
+
const ae = new ue(ee - R * i, K + 0.05, re - V * i);
|
|
23230
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;
|
|
23231
23239
|
const Se = M / e;
|
|
23232
23240
|
E = Se, b[L * 4 + 0] = 0, b[L * 4 + 1] = Se, b[L * 4 + 2] = 1, b[L * 4 + 3] = Se;
|
|
@@ -23858,7 +23866,7 @@ class Dv extends kv {
|
|
|
23858
23866
|
if (!this.videoCoverSrc)
|
|
23859
23867
|
return;
|
|
23860
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);
|
|
23861
|
-
return a.position.copy(new
|
|
23869
|
+
return a.position.copy(new ue(0, 0, 0)), a.name = "videoCoverMesh", a;
|
|
23862
23870
|
}))();
|
|
23863
23871
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
23864
23872
|
});
|
|
@@ -23878,7 +23886,7 @@ class Dv extends kv {
|
|
|
23878
23886
|
() => l(io(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
|
|
23879
23887
|
);
|
|
23880
23888
|
}), a = new _l(o, r);
|
|
23881
|
-
return a.name = "videoMesh", a.position.copy(new
|
|
23889
|
+
return a.name = "videoMesh", a.position.copy(new ue(0, 0, 0)), a;
|
|
23882
23890
|
}))();
|
|
23883
23891
|
if (!e)
|
|
23884
23892
|
return;
|
|
@@ -23907,7 +23915,7 @@ class Dv extends kv {
|
|
|
23907
23915
|
if (this.buttonMesh)
|
|
23908
23916
|
return this.buttonMesh;
|
|
23909
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));
|
|
23910
|
-
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(
|
|
23911
23919
|
u,
|
|
23912
23920
|
"click",
|
|
23913
23921
|
() => {
|
|
@@ -24286,7 +24294,7 @@ function Fl(n, t, e) {
|
|
|
24286
24294
|
const E = h[C];
|
|
24287
24295
|
h[C] = st({}, l, E, ...Object.values(M), a, { _isMerged: !0 });
|
|
24288
24296
|
});
|
|
24289
|
-
const f =
|
|
24297
|
+
const f = he(B({}, c), { configWithFiveMode: h });
|
|
24290
24298
|
return Bf(f), Object.values(h).forEach((C) => Bf(C)), f._isMerged = !0, f;
|
|
24291
24299
|
}
|
|
24292
24300
|
function Vf(n) {
|
|
@@ -24851,7 +24859,7 @@ class Nh {
|
|
|
24851
24859
|
}).map((a) => ({ tag: a, id: a.id, tagConfig: a.getConfig().unfoldedConfig })).filter(({ tagConfig: a }) => {
|
|
24852
24860
|
var l, c;
|
|
24853
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");
|
|
24854
|
-
}).map((a) =>
|
|
24862
|
+
}).map((a) => he(B({}, a), { distance: a.tag.getDistance() })).filter(({ distance: a, tagConfig: l }) => {
|
|
24855
24863
|
const c = l.autoUnfold.distance;
|
|
24856
24864
|
return !(c && ca(a, c) === !1);
|
|
24857
24865
|
}).sort((a, l) => a.distance - l.distance).findIndex((a) => a.id === this.id);
|
|
@@ -24891,7 +24899,7 @@ class Nh {
|
|
|
24891
24899
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
24892
24900
|
if (!this.enabled)
|
|
24893
24901
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
24894
|
-
const t =
|
|
24902
|
+
const t = he(B({}, this.computeVisible()), {
|
|
24895
24903
|
tagInstance: this
|
|
24896
24904
|
});
|
|
24897
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 };
|
|
@@ -25034,10 +25042,10 @@ class Lv extends dn {
|
|
|
25034
25042
|
const i = (T = e.container) != null ? T : document.createElement("div"), s = (S = e.cornerPoints) != null ? S : (() => {
|
|
25035
25043
|
const A = e.width / 2;
|
|
25036
25044
|
return [
|
|
25037
|
-
new
|
|
25038
|
-
new
|
|
25039
|
-
new
|
|
25040
|
-
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)
|
|
25041
25049
|
];
|
|
25042
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]);
|
|
25043
25051
|
let u = lr(c / r * o), f = lr(h / r * o);
|
|
@@ -25072,12 +25080,12 @@ class Lv extends dn {
|
|
|
25072
25080
|
this.width = c, this.height = h, this.centerPosition = p;
|
|
25073
25081
|
else {
|
|
25074
25082
|
const A = r / l;
|
|
25075
|
-
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]);
|
|
25076
25084
|
}
|
|
25077
25085
|
this.domWidthPx = u, this.domHeightPx = f, i.classList.add(`${_f}__container`);
|
|
25078
|
-
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();
|
|
25079
25087
|
this.lookAt(b);
|
|
25080
|
-
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();
|
|
25081
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);
|
|
25082
25090
|
}
|
|
25083
25091
|
get mode() {
|
|
@@ -27596,7 +27604,7 @@ function Sx({
|
|
|
27596
27604
|
head: 0,
|
|
27597
27605
|
tail: 0
|
|
27598
27606
|
};
|
|
27599
|
-
return
|
|
27607
|
+
return he(B({}, i), {
|
|
27600
27608
|
total: i.head + i.tail
|
|
27601
27609
|
});
|
|
27602
27610
|
}
|
|
@@ -32699,7 +32707,7 @@ function Xk(n) {
|
|
|
32699
32707
|
const o = Jv(t);
|
|
32700
32708
|
return Wl.set(t, o), o;
|
|
32701
32709
|
})(), { width: s, height: r } = yield i;
|
|
32702
|
-
return
|
|
32710
|
+
return he(B({}, n), {
|
|
32703
32711
|
width: s / e,
|
|
32704
32712
|
height: r / e
|
|
32705
32713
|
});
|
|
@@ -32711,7 +32719,7 @@ function Zk(n) {
|
|
|
32711
32719
|
if (!t)
|
|
32712
32720
|
throw new Error("KeyframeIcon requires steps");
|
|
32713
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";
|
|
32714
|
-
return
|
|
32722
|
+
return he(B({}, n), {
|
|
32715
32723
|
width: c,
|
|
32716
32724
|
height: h,
|
|
32717
32725
|
duration: u
|
|
@@ -33114,7 +33122,7 @@ function rD(n) {
|
|
|
33114
33122
|
}
|
|
33115
33123
|
function Ks(n) {
|
|
33116
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;
|
|
33117
|
-
return
|
|
33125
|
+
return he(B({}, n), { width: r, height: o });
|
|
33118
33126
|
}
|
|
33119
33127
|
function oD(n, t, e) {
|
|
33120
33128
|
let i, s, r, o, a, l, c, h, u, { width: f = null } = t, { icon: p = null } = t, { shadow: g = !1 } = t;
|
|
@@ -33128,7 +33136,7 @@ function oD(n, t, e) {
|
|
|
33128
33136
|
function b(M) {
|
|
33129
33137
|
return $(this, null, function* () {
|
|
33130
33138
|
if (typeof u == "number")
|
|
33131
|
-
return
|
|
33139
|
+
return he(B({}, M), { width: u });
|
|
33132
33140
|
const E = yield Xk(M);
|
|
33133
33141
|
return v("iconLoaded", E), E;
|
|
33134
33142
|
});
|
|
@@ -34188,7 +34196,7 @@ class Kv extends Nh {
|
|
|
34188
34196
|
c.classList.add("tag-media-container");
|
|
34189
34197
|
const h = "black";
|
|
34190
34198
|
c.style.backgroundColor = h, c.style.border = `3px solid ${h}`;
|
|
34191
|
-
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();
|
|
34192
34200
|
p.position.add(g.clone().setLength(Oo.Z_FIGHTING_OFFSET)), s.add(p);
|
|
34193
34201
|
let v;
|
|
34194
34202
|
p.mode === "behind" && this.config.clickable !== !1 && (v = this.addObjectClickHandler(this, p, (b) => {
|
|
@@ -34269,7 +34277,7 @@ class jD extends Nh {
|
|
|
34269
34277
|
(a = (o = this.tag3DContentSvelte) == null ? void 0 : o.dispose) == null || a.call(o);
|
|
34270
34278
|
const c = document.createElement("div");
|
|
34271
34279
|
c.classList.add("tag-media-container");
|
|
34272
|
-
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();
|
|
34273
34281
|
f.position.add(p.clone().setLength(Oo.Z_FIGHTING_OFFSET)), this.plugin.group.add(f);
|
|
34274
34282
|
let g;
|
|
34275
34283
|
f.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, f, (m) => {
|
|
@@ -35192,7 +35200,7 @@ class Rc extends B2 {
|
|
|
35192
35200
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
35193
35201
|
this.TagContainerSvelte = new qD({
|
|
35194
35202
|
target: this.container,
|
|
35195
|
-
props:
|
|
35203
|
+
props: he(B({}, a), { state: he(B({}, this.state), { enabled: !1 }) })
|
|
35196
35204
|
}), Lo(() => {
|
|
35197
35205
|
var l;
|
|
35198
35206
|
(l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
|
|
@@ -36174,7 +36182,7 @@ class Bc {
|
|
|
36174
36182
|
s.tag = o, rS(o) && (s.tag.element = (h) => {
|
|
36175
36183
|
var p, g;
|
|
36176
36184
|
(p = s.app) == null || p.$destroy();
|
|
36177
|
-
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 });
|
|
36178
36186
|
return s.app = f, () => f.$destroy();
|
|
36179
36187
|
}), s.plugin.load({ tagList: [s.tag] });
|
|
36180
36188
|
const a = this.meshStyle.translate;
|
|
@@ -36214,7 +36222,7 @@ class Bc {
|
|
|
36214
36222
|
panoIndex: l
|
|
36215
36223
|
};
|
|
36216
36224
|
}).filter(Fe), o = r.map((l) => l.position.toArray()), a = r.map((l) => l.panoIndex);
|
|
36217
|
-
return [
|
|
36225
|
+
return [he(B({ type: "CatmullRomCurve3", points: o }, i), { panoIndexList: a, panoIndexMap: s })];
|
|
36218
36226
|
}
|
|
36219
36227
|
}
|
|
36220
36228
|
function rS(n) {
|
|
@@ -36416,7 +36424,7 @@ let i0 = class extends t0 {
|
|
|
36416
36424
|
this.state.speed = e, this.hooks.emit("speedChange", e, { userAction: i });
|
|
36417
36425
|
});
|
|
36418
36426
|
d(this, "moveToStart", () => {
|
|
36419
|
-
this.five.setState(
|
|
36427
|
+
this.five.setState(he(B({}, Ul(this.curve, 0, this.curveOffset)), { mode: "Model" }));
|
|
36420
36428
|
});
|
|
36421
36429
|
d(this, "playFromStart", () => {
|
|
36422
36430
|
this.clearPauseData(), this.setState({ playing: !0 });
|
|
@@ -36486,7 +36494,7 @@ let i0 = class extends t0 {
|
|
|
36486
36494
|
let r = (l = s == null ? void 0 : s.playedProgress) != null ? l : 0;
|
|
36487
36495
|
(r < 0 || r >= 1) && (r = 0);
|
|
36488
36496
|
const o = Ul(this.curve, r, this.curveOffset);
|
|
36489
|
-
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) {
|
|
36490
36498
|
const c = this.addInterruptListener(() => {
|
|
36491
36499
|
this.state.playing && (this.hooks.emit("broke"), this.handlePause(), c(), i(new Error("broke")));
|
|
36492
36500
|
});
|
|
@@ -36621,7 +36629,7 @@ class Kh extends t0 {
|
|
|
36621
36629
|
* @description Play from first keyframe
|
|
36622
36630
|
*/
|
|
36623
36631
|
playFromStart(e) {
|
|
36624
|
-
return this.playFrom(
|
|
36632
|
+
return this.playFrom(he(B({}, e), { index: 0 }));
|
|
36625
36633
|
}
|
|
36626
36634
|
/**
|
|
36627
36635
|
* @description Format data
|
|
@@ -36639,7 +36647,7 @@ class Kh extends t0 {
|
|
|
36639
36647
|
keyframes: i.keyframes.map((s, r) => {
|
|
36640
36648
|
var l;
|
|
36641
36649
|
const o = i.keyframes[r + 1], a = (() => !o || o.start === void 0 || s.end === void 0 ? 0 : o.start - s.end)();
|
|
36642
|
-
return
|
|
36650
|
+
return he(B({ id: (l = s.uuid) != null ? l : kt(), moveIndex: r, stay: a, index: r }, s), { guildPluginOptions: i.guildPluginOptions });
|
|
36643
36651
|
})
|
|
36644
36652
|
};
|
|
36645
36653
|
if (i.panoIndexList) {
|
|
@@ -36967,9 +36975,9 @@ class s0 {
|
|
|
36967
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;
|
|
36968
36976
|
if (e.pano_group) {
|
|
36969
36977
|
const f = t === "panorama" && e.panorama_style.skip_group === !0;
|
|
36970
|
-
i.setGeometryByPanoGroup(e.pano_group,
|
|
36978
|
+
i.setGeometryByPanoGroup(e.pano_group, he(B({ skipPanoGroup: f }, l), { useAutoDepthTest: r, autoDepthTestEffectDistance: o }));
|
|
36971
36979
|
} else
|
|
36972
|
-
e.path && i.setGeometryByPath(a,
|
|
36980
|
+
e.path && i.setGeometryByPath(a, he(B({}, l), { useAutoDepthTest: r, autoDepthTestEffectDistance: o }));
|
|
36973
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);
|
|
36974
36982
|
}
|
|
36975
36983
|
show() {
|
|
@@ -37225,7 +37233,7 @@ class zo extends gi {
|
|
|
37225
37233
|
}
|
|
37226
37234
|
initialPosition(e) {
|
|
37227
37235
|
var i, s;
|
|
37228
|
-
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);
|
|
37229
37237
|
}
|
|
37230
37238
|
setScaleByCamera(e) {
|
|
37231
37239
|
}
|
|
@@ -37260,7 +37268,7 @@ class zo extends gi {
|
|
|
37260
37268
|
}
|
|
37261
37269
|
applyHelperQuaternion(e, i) {
|
|
37262
37270
|
if (i) {
|
|
37263
|
-
const s = new
|
|
37271
|
+
const s = new ue().subVectors(this.position, i).applyQuaternion(e).add(i);
|
|
37264
37272
|
this.position.copy(s);
|
|
37265
37273
|
}
|
|
37266
37274
|
this.applyQuaternion(e);
|
|
@@ -38501,7 +38509,7 @@ class WS extends jo {
|
|
|
38501
38509
|
getDragPlane() {
|
|
38502
38510
|
const e = new y.Plane(), i = this.helperObject3D.cornerPositions;
|
|
38503
38511
|
if (i.length !== 0)
|
|
38504
|
-
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;
|
|
38505
38513
|
}
|
|
38506
38514
|
dragStart(e, i) {
|
|
38507
38515
|
var r, o;
|
|
@@ -38526,25 +38534,25 @@ class WS extends jo {
|
|
|
38526
38534
|
const i = this.originObject3D, { startPoint: s, plane: r } = this.startInfo, o = this.helperObject3D.cornerPositions;
|
|
38527
38535
|
if (o.length < 4)
|
|
38528
38536
|
return this.dragEnd();
|
|
38529
|
-
const a = e.ray.intersectPlane(r, new
|
|
38537
|
+
const a = e.ray.intersectPlane(r, new ue());
|
|
38530
38538
|
if (!a || yS(a, this.camera.position))
|
|
38531
38539
|
return;
|
|
38532
|
-
const l = new
|
|
38533
|
-
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);
|
|
38534
38542
|
if (!this.startInfo)
|
|
38535
38543
|
return w;
|
|
38536
38544
|
const x = (I === "ew" ? u : f).clone(), k = c.clone().projectOnVector(x), L = a.clone().projectOnVector(x), R = l.clone().projectOnVector(x);
|
|
38537
38545
|
if (L.equals(k))
|
|
38538
38546
|
return w;
|
|
38539
38547
|
if (I === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
38540
|
-
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;
|
|
38541
38549
|
this.startInfo.dragPointInCenterBottom = K || re || ne;
|
|
38542
38550
|
}
|
|
38543
38551
|
if (I === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
38544
|
-
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;
|
|
38545
38553
|
this.startInfo.dragPointInCenterLeft = K || re || ne;
|
|
38546
38554
|
}
|
|
38547
|
-
const V = new
|
|
38555
|
+
const V = new ue().subVectors(L, k), J = V.length();
|
|
38548
38556
|
return J > 0.3 ? (console.warn("offset.length() > 0.3, skipped", J), w) : V;
|
|
38549
38557
|
}, g = p("ew"), v = p("ns"), m = () => {
|
|
38550
38558
|
const I = g;
|
|
@@ -38570,9 +38578,9 @@ class WS extends jo {
|
|
|
38570
38578
|
case "nwse":
|
|
38571
38579
|
m(), b();
|
|
38572
38580
|
}
|
|
38573
|
-
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);
|
|
38574
38582
|
i.isCSS3DObjectPlus && i.applyScaleMatrix4 ? i.applyScaleMatrix4(T) : i.scale.applyMatrix4(T), s.position.copy(a);
|
|
38575
|
-
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(_);
|
|
38576
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();
|
|
38577
38585
|
}
|
|
38578
38586
|
dragEnd() {
|
|
@@ -39178,7 +39186,7 @@ class lm {
|
|
|
39178
39186
|
/** 把 uv 值转换成位置 */
|
|
39179
39187
|
d(this, "uv2Position", (t, e) => {
|
|
39180
39188
|
var p;
|
|
39181
|
-
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(
|
|
39182
39190
|
-1 * Math.cos(r * o) * Math.sin(s * a),
|
|
39183
39191
|
1 * Math.cos(s * a),
|
|
39184
39192
|
1 * Math.sin(r * o) * Math.sin(s * a)
|
|
@@ -39188,7 +39196,7 @@ class lm {
|
|
|
39188
39196
|
if (!c)
|
|
39189
39197
|
return this.logWarning(`点位 ${this.panoIndex} 不存在,请检查 Five 数据是否正常。`);
|
|
39190
39198
|
const h = c.position.clone(), u = c.quaternion.clone(), f = l.clone();
|
|
39191
|
-
return f.applyAxisAngle(new
|
|
39199
|
+
return f.applyAxisAngle(new ue(0, 1, 0), Math.PI / 2), f.applyQuaternion(u), f.add(h), f;
|
|
39192
39200
|
});
|
|
39193
39201
|
/** Five 数据加载后需要根据点位位姿调整点位模型位置 */
|
|
39194
39202
|
d(this, "onFiveDataLoaded", () => {
|
|
@@ -39198,7 +39206,7 @@ class lm {
|
|
|
39198
39206
|
return this.logWarning(`点位 ${this.panoIndex} 不存在,请检查 Five 数据是否正常。`);
|
|
39199
39207
|
this.observer = t;
|
|
39200
39208
|
const { x: e, y: i, z: s, w: r } = t.quaternion, o = new Ys(e, i, s, r), a = t.position;
|
|
39201
|
-
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);
|
|
39202
39210
|
});
|
|
39203
39211
|
/** 兼容视频播放 */
|
|
39204
39212
|
d(this, "onFiveWantsMoveToPano", (t) => {
|
|
@@ -39356,7 +39364,7 @@ class lm {
|
|
|
39356
39364
|
const e = this.uv2Position(t[0], t[1]);
|
|
39357
39365
|
if (!e)
|
|
39358
39366
|
return;
|
|
39359
|
-
const i = new
|
|
39367
|
+
const i = new ue().subVectors(e, this.observer.position).normalize(), { longitude: s, latitude: r } = tT(i);
|
|
39360
39368
|
this.five.setState({ panoIndex: this.panoIndex, longitude: s, latitude: r }), this.onFiveWantsMoveToPano(this.panoIndex);
|
|
39361
39369
|
}
|
|
39362
39370
|
/** 获取视频中心点的 uv */
|
|
@@ -39441,7 +39449,7 @@ class iT extends Yn {
|
|
|
39441
39449
|
r.video_list.forEach((l) => {
|
|
39442
39450
|
this.controllerMap.set(
|
|
39443
39451
|
l.render_id,
|
|
39444
|
-
new lm(this.five,
|
|
39452
|
+
new lm(this.five, he(B({}, l), {
|
|
39445
39453
|
panoIndex: o,
|
|
39446
39454
|
renderID: a,
|
|
39447
39455
|
hooks: this.hooks,
|
|
@@ -39519,7 +39527,7 @@ class iT extends Yn {
|
|
|
39519
39527
|
const r = s.render_id;
|
|
39520
39528
|
this.controllerMap.set(
|
|
39521
39529
|
s.render_id,
|
|
39522
|
-
new lm(this.five,
|
|
39530
|
+
new lm(this.five, he(B({}, s), {
|
|
39523
39531
|
panoIndex: e,
|
|
39524
39532
|
renderID: r,
|
|
39525
39533
|
hooks: this.hooks,
|
|
@@ -40823,9 +40831,9 @@ let MT = class extends mn {
|
|
|
40823
40831
|
return i(e) ? {
|
|
40824
40832
|
list: e.list.filter((s) => s.object_data.points.length >= 3).map((s) => {
|
|
40825
40833
|
const r = new y.Shape(), o = s.object_data.points[0];
|
|
40826
|
-
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), {
|
|
40827
40835
|
floor_index: s.object_data.floorIndex,
|
|
40828
|
-
object_data:
|
|
40836
|
+
object_data: he(B({}, s.object_data), {
|
|
40829
40837
|
bottom_y: o[1] + s.object_data.fixedY,
|
|
40830
40838
|
shape: r.toJSON(),
|
|
40831
40839
|
height: s.object_data.height + s.object_data.fixedHeight
|
|
@@ -41204,11 +41212,11 @@ class wr extends gi {
|
|
|
41204
41212
|
size: (f = e == null ? void 0 : e.size) != null ? f : 8,
|
|
41205
41213
|
map: dm || (dm = new y.TextureLoader().load(TT)),
|
|
41206
41214
|
sizeAttenuation: !1
|
|
41207
|
-
}, a = new y.PointsMaterial(
|
|
41215
|
+
}, a = new y.PointsMaterial(he(B({}, o), {
|
|
41208
41216
|
color: (p = e == null ? void 0 : e.color) != null ? p : 16777215,
|
|
41209
41217
|
depthTest: !0,
|
|
41210
41218
|
opacity: 1
|
|
41211
|
-
})), l = new y.PointsMaterial(
|
|
41219
|
+
})), l = new y.PointsMaterial(he(B({}, o), {
|
|
41212
41220
|
size: a.size,
|
|
41213
41221
|
color: a.color,
|
|
41214
41222
|
depthWrite: !1,
|
|
@@ -41275,7 +41283,7 @@ class Hc extends Di {
|
|
|
41275
41283
|
d(this, "pointGroup", new gi());
|
|
41276
41284
|
d(this, "_paramsStyle");
|
|
41277
41285
|
d(this, "setStyle", (e) => {
|
|
41278
|
-
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;
|
|
41279
41287
|
});
|
|
41280
41288
|
d(this, "highlight", () => {
|
|
41281
41289
|
super.highlight(), this.pointMeshes.forEach((e) => e.highlight());
|
|
@@ -41306,7 +41314,7 @@ class Hc extends Di {
|
|
|
41306
41314
|
const i = e.map(He).filter(Fe);
|
|
41307
41315
|
this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), i.forEach((s) => {
|
|
41308
41316
|
var o;
|
|
41309
|
-
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 }));
|
|
41310
41318
|
r.position.copy(s), this.pointGroup.add(r);
|
|
41311
41319
|
}), this.updateEdgePointsVisibility(), this.needsRender = !0;
|
|
41312
41320
|
}
|
|
@@ -41378,7 +41386,7 @@ class u0 extends gi {
|
|
|
41378
41386
|
if (o !== 0 && a === void 0)
|
|
41379
41387
|
return;
|
|
41380
41388
|
const l = (c = this.lines[o]) != null ? c : (() => {
|
|
41381
|
-
const h = new Hc(
|
|
41389
|
+
const h = new Hc(he(B({}, this.style), {
|
|
41382
41390
|
pointVisibility: this.withDots ? { startPoint: o === 0, endPoint: !0 } : !1
|
|
41383
41391
|
}));
|
|
41384
41392
|
return this.lines[o] = h, this.add(h), h;
|
|
@@ -41398,13 +41406,13 @@ class u0 extends gi {
|
|
|
41398
41406
|
}
|
|
41399
41407
|
class Ps extends u0 {
|
|
41400
41408
|
constructor(...e) {
|
|
41401
|
-
super(
|
|
41409
|
+
super(he(B({}, e[0]), { withDots: !1 }));
|
|
41402
41410
|
d(this, "name", "PolylineMesh");
|
|
41403
41411
|
}
|
|
41404
41412
|
}
|
|
41405
41413
|
class Bn extends u0 {
|
|
41406
41414
|
constructor(...e) {
|
|
41407
|
-
super(
|
|
41415
|
+
super(he(B({}, e[0]), { withDots: !0 }));
|
|
41408
41416
|
d(this, "name", "PolylineWithDotsMesh");
|
|
41409
41417
|
}
|
|
41410
41418
|
}
|
|
@@ -42028,7 +42036,7 @@ class mm extends Oi {
|
|
|
42028
42036
|
return this._editor || (this._editor = new QT(this)), this._editor;
|
|
42029
42037
|
}
|
|
42030
42038
|
get data() {
|
|
42031
|
-
return
|
|
42039
|
+
return he(B({}, this.baseData), {
|
|
42032
42040
|
points: li(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
|
|
42033
42041
|
style: {
|
|
42034
42042
|
lineColor: new y.Color(this.polyLineMesh.lineColor).getHex(),
|
|
@@ -42079,7 +42087,7 @@ function UT(n, t, e) {
|
|
|
42079
42087
|
return;
|
|
42080
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);
|
|
42081
42089
|
i.add(l);
|
|
42082
|
-
const c = new Ps(
|
|
42090
|
+
const c = new Ps(he(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
42083
42091
|
i.add(c), t.enable();
|
|
42084
42092
|
const h = [];
|
|
42085
42093
|
let u, f, p;
|
|
@@ -42140,7 +42148,7 @@ class gm extends Oi {
|
|
|
42140
42148
|
return this._editor || (this._editor = new YT(this)), this._editor;
|
|
42141
42149
|
}
|
|
42142
42150
|
get data() {
|
|
42143
|
-
return
|
|
42151
|
+
return he(B({}, this.baseData), {
|
|
42144
42152
|
point: li(this.applyObjectMatrixWorld(this.pointMesh.position)),
|
|
42145
42153
|
style: {
|
|
42146
42154
|
color: this.pointMesh.color.getHex(),
|
|
@@ -42280,7 +42288,7 @@ class ou extends gl {
|
|
|
42280
42288
|
e != null && e.points && this.setPoints(e.points), this._paramsStyle = e != null ? e : {}, this.updateAreaItems();
|
|
42281
42289
|
}
|
|
42282
42290
|
get style() {
|
|
42283
|
-
return
|
|
42291
|
+
return he(B({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
|
|
42284
42292
|
}
|
|
42285
42293
|
get isBlank() {
|
|
42286
42294
|
return !!this.geometry.isBlank;
|
|
@@ -42348,7 +42356,7 @@ class A0 extends ou {
|
|
|
42348
42356
|
i && this.setPoints(i), s && this.setStyle(s);
|
|
42349
42357
|
}
|
|
42350
42358
|
get style() {
|
|
42351
|
-
return
|
|
42359
|
+
return he(B({}, super.style), {
|
|
42352
42360
|
lineWidth: this.lineWidth,
|
|
42353
42361
|
lineColor: this.lineColor
|
|
42354
42362
|
});
|
|
@@ -42410,7 +42418,7 @@ class vm extends Oi {
|
|
|
42410
42418
|
return this._editor || (this._editor = new XT(this)), this._editor;
|
|
42411
42419
|
}
|
|
42412
42420
|
get data() {
|
|
42413
|
-
return this.updateMatrixWorld(),
|
|
42421
|
+
return this.updateMatrixWorld(), he(B({}, this.baseData), {
|
|
42414
42422
|
points: li(this.applyObjectMatrixWorld(this.areaMesh.points)),
|
|
42415
42423
|
style: {
|
|
42416
42424
|
color: this.areaMesh.color.getHex(),
|
|
@@ -42465,7 +42473,7 @@ function au(n, t, e) {
|
|
|
42465
42473
|
}
|
|
42466
42474
|
const a = (H = e == null ? void 0 : e.limit) != null ? H : "none", l = new Ps(n.style);
|
|
42467
42475
|
o == null || o.add(l);
|
|
42468
|
-
const c = new Ps(
|
|
42476
|
+
const c = new Ps(he(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
42469
42477
|
o == null || o.add(c), t.enable();
|
|
42470
42478
|
const h = [];
|
|
42471
42479
|
let u, f, p = !1, g;
|
|
@@ -42712,7 +42720,7 @@ class Am extends Oi {
|
|
|
42712
42720
|
return this._editor || (this._editor = new b0(this.prismMesh)), this._editor;
|
|
42713
42721
|
}
|
|
42714
42722
|
get data() {
|
|
42715
|
-
return
|
|
42723
|
+
return he(B({}, this.baseData), {
|
|
42716
42724
|
points: li(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
|
|
42717
42725
|
heightPoint: li(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
|
|
42718
42726
|
style: {
|
|
@@ -42918,7 +42926,7 @@ class bm extends Oi {
|
|
|
42918
42926
|
return this._editor || (this._editor = new w0(this.rectangleMesh)), this._editor;
|
|
42919
42927
|
}
|
|
42920
42928
|
get data() {
|
|
42921
|
-
return
|
|
42929
|
+
return he(B({}, this.baseData), {
|
|
42922
42930
|
points: li(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
|
|
42923
42931
|
style: {
|
|
42924
42932
|
color: this.rectangleMesh.color.getHex(),
|
|
@@ -42956,7 +42964,7 @@ function $T(n, t, e) {
|
|
|
42956
42964
|
const { promise: i, reject: s, resolve: r } = Ms(), o = n.parent;
|
|
42957
42965
|
if (!o)
|
|
42958
42966
|
return s(new Error("No container"));
|
|
42959
|
-
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 }));
|
|
42960
42968
|
o.add(l, h, c), t.enable();
|
|
42961
42969
|
const u = [];
|
|
42962
42970
|
let f = new y.Vector3(), p = new y.Vector3();
|
|
@@ -43005,7 +43013,7 @@ function e5(n, t, e) {
|
|
|
43005
43013
|
const { promise: i, reject: s, resolve: r } = Ms(), o = n.parent;
|
|
43006
43014
|
if (!o)
|
|
43007
43015
|
return s(new Error("No container"));
|
|
43008
|
-
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 }));
|
|
43009
43017
|
o.add(l, h, c), t.enable();
|
|
43010
43018
|
const u = [];
|
|
43011
43019
|
let f = new y.Vector3(), p = new y.Vector3();
|
|
@@ -43119,7 +43127,7 @@ class ym extends Oi {
|
|
|
43119
43127
|
return this._editor || (this._editor = new I0(this.circleMesh)), this._editor;
|
|
43120
43128
|
}
|
|
43121
43129
|
get data() {
|
|
43122
|
-
return
|
|
43130
|
+
return he(B({}, this.baseData), {
|
|
43123
43131
|
center: li(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
|
|
43124
43132
|
normal: li(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
|
|
43125
43133
|
radius: this.circleMesh.radius,
|
|
@@ -43304,7 +43312,7 @@ class wm extends Oi {
|
|
|
43304
43312
|
return this._editor || (this._editor = new x0(this.cylinderMesh)), this._editor;
|
|
43305
43313
|
}
|
|
43306
43314
|
get data() {
|
|
43307
|
-
return
|
|
43315
|
+
return he(B({}, this.baseData), {
|
|
43308
43316
|
bottomCenter: li(this.applyObjectMatrixWorld(this.cylinderMesh.bottomCenter, this.cylinderMesh)),
|
|
43309
43317
|
topCenter: li(this.applyObjectMatrixWorld(this.cylinderMesh.topCenter, this.cylinderMesh)),
|
|
43310
43318
|
radius: this.cylinderMesh.radius,
|
|
@@ -43484,7 +43492,7 @@ class Cm extends Oi {
|
|
|
43484
43492
|
return this._editor || (this._editor = new D0(this.boxMesh)), this._editor;
|
|
43485
43493
|
}
|
|
43486
43494
|
get data() {
|
|
43487
|
-
return
|
|
43495
|
+
return he(B({}, this.baseData), {
|
|
43488
43496
|
points: li(this.applyObjectMatrixWorld(this.boxMesh.bottomPositions, this.boxMesh)),
|
|
43489
43497
|
heightPoint: li(this.applyObjectMatrixWorld(this.boxMesh.topPosition, this.boxMesh)),
|
|
43490
43498
|
style: {
|
|
@@ -43566,7 +43574,7 @@ class Pm extends Oi {
|
|
|
43566
43574
|
return this._editor || (this._editor = new WT(this)), this._editor;
|
|
43567
43575
|
}
|
|
43568
43576
|
get data() {
|
|
43569
|
-
return
|
|
43577
|
+
return he(B({}, this.baseData), {
|
|
43570
43578
|
points: li(this.applyObjectMatrixWorld(this.lineMesh.points)),
|
|
43571
43579
|
style: {
|
|
43572
43580
|
lineColor: new y.Color(this.lineMesh.color).getHex(),
|
|
@@ -43617,7 +43625,7 @@ function T0(n, t, e) {
|
|
|
43617
43625
|
return;
|
|
43618
43626
|
const { promise: s, resolve: r, reject: o } = Ms(), a = (_ = e == null ? void 0 : e.limit) != null ? _ : "none", l = new Di(n.style);
|
|
43619
43627
|
i.add(l);
|
|
43620
|
-
const c = new Di(
|
|
43628
|
+
const c = new Di(he(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
43621
43629
|
i.add(c), t.enable();
|
|
43622
43630
|
const h = [];
|
|
43623
43631
|
let u, f, p;
|
|
@@ -43706,7 +43714,7 @@ const er = class extends wt {
|
|
|
43706
43714
|
this.clear();
|
|
43707
43715
|
const s = (r = e == null ? void 0 : e.items) == null ? void 0 : r.map((o) => {
|
|
43708
43716
|
var l;
|
|
43709
|
-
const a =
|
|
43717
|
+
const a = he(B({}, o), {
|
|
43710
43718
|
style: B(B({}, (l = this.theme) == null ? void 0 : l[o.type.toLowerCase()]), o.style)
|
|
43711
43719
|
});
|
|
43712
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;
|
|
@@ -44013,7 +44021,7 @@ const Em = (n, t) => {
|
|
|
44013
44021
|
class Mm extends O0 {
|
|
44014
44022
|
constructor(...e) {
|
|
44015
44023
|
const i = e[0], s = Is(i.model), r = new y.Vector3().lerpVectors(On(s, 0), On(s, 5), 0.5);
|
|
44016
|
-
super(
|
|
44024
|
+
super(he(B({}, i), { position: r }));
|
|
44017
44025
|
d(this, "onModelShownFloorChange", (e) => {
|
|
44018
44026
|
this.updateFiveCurrentFloorState(e), this.updateVisible();
|
|
44019
44027
|
});
|