@realsee/dnalogel 3.58.3 → 3.58.4
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 +5 -1
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +2 -0
- package/dist/ModelMakerPlugin/item/boxItem.d.ts +9 -3
- package/dist/ModelMakerPlugin/item/polygonItem.d.ts +7 -7
- package/dist/ModelMakerPlugin/item/prismItem.d.ts +0 -3
- package/dist/PanoDoorLabelPlugin/Controller.d.ts +13 -7
- package/dist/index.cjs.js +28 -28
- package/dist/index.js +2548 -2580
- package/dist/index.umd.js +28 -28
- 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 +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- 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.ActionIfNoModelUnderMouse.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/ModelMakerPlugin/Controller.js +48 -48
- package/libs/ModelMakerPlugin/index.js +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +2 -0
- package/libs/ModelMakerPlugin/item/baseItem.js +32 -28
- package/libs/ModelMakerPlugin/item/boxItem.d.ts +9 -3
- package/libs/ModelMakerPlugin/item/boxItem.js +27 -6
- package/libs/ModelMakerPlugin/item/polygonItem.d.ts +7 -7
- package/libs/ModelMakerPlugin/item/polygonItem.js +24 -20
- package/libs/ModelMakerPlugin/item/prismItem.d.ts +0 -3
- package/libs/ModelMakerPlugin/item/prismItem.js +25 -31
- package/libs/PanoDoorLabelPlugin/Controller.d.ts +13 -7
- package/libs/PanoDoorLabelPlugin/Controller.js +203 -177
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +63 -64
- package/libs/PanoDoorLabelPlugin/index.js +2 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +144 -145
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +5 -5
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/PanoDoorLabelPlugin/BaseController.d.ts +0 -61
- package/libs/PanoDoorLabelPlugin/BaseController.d.ts +0 -61
- package/libs/PanoDoorLabelPlugin/BaseController.js +0 -143
|
@@ -1,55 +1,66 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var N = Object.defineProperty, Q = Object.defineProperties;
|
|
2
|
+
var j = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var R = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var H = (l, h, t) => h in l ? N(l, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[h] = t, L = (l, h) => {
|
|
6
|
+
for (var t in h || (h = {}))
|
|
7
|
+
R.call(h, t) && H(l, t, h[t]);
|
|
8
8
|
if (C)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
for (var t of C(h))
|
|
10
|
+
$.call(h, t) && H(l, t, h[t]);
|
|
11
|
+
return l;
|
|
12
|
+
}, U = (l, h) => Q(l, j(h));
|
|
13
|
+
var B = (l, h) => {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var i in l)
|
|
16
|
+
R.call(l, i) && h.indexOf(i) < 0 && (t[i] = l[i]);
|
|
17
|
+
if (l != null && C)
|
|
18
|
+
for (var i of C(l))
|
|
19
|
+
h.indexOf(i) < 0 && $.call(l, i) && (t[i] = l[i]);
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
var c = (l, h, t) => (H(l, typeof h != "symbol" ? h + "" : h, t), t);
|
|
23
|
+
import { Raycaster as q, Vector3 as S, Quaternion as X, Euler as G } from "three";
|
|
24
|
+
import { Controller as Y } from "../base/BasePlugin.js";
|
|
25
|
+
import Z from "./DoorLabelItem.js";
|
|
26
|
+
import { getCameraToward as J, isTwoRectOverlaped as K, getDistance as tt, getToward as it } from "./utils.js";
|
|
21
27
|
import "../shared-utils/tag.js";
|
|
22
|
-
import "
|
|
23
|
-
import "../shared-utils/
|
|
24
|
-
import "
|
|
28
|
+
import "hammerjs";
|
|
29
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
30
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
31
|
+
import "@realsee/five/line";
|
|
32
|
+
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
33
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
34
|
+
import "animejs";
|
|
35
|
+
import { waitFiveModelLoaded as et } from "../shared-utils/five/fiveModelLoad.js";
|
|
36
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
37
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
38
|
+
import "../shared-utils/Subscribe.js";
|
|
25
39
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
26
40
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
27
41
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
28
42
|
import "../shared-utils/five/transformPosition.js";
|
|
43
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
44
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
45
|
+
import "../vendor/svelte/internal/index.js";
|
|
46
|
+
import "../vendor/classnames/index.js";
|
|
47
|
+
import "../shared-utils/positionToVector3.js";
|
|
48
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
29
49
|
import "../shared-utils/three/temp.js";
|
|
30
50
|
import "../shared-utils/three/core/Raycaster.js";
|
|
31
51
|
import "../shared-utils/dom/resizeObserver.js";
|
|
32
52
|
import "../shared-utils/five/fiveEveryReadyListener.js";
|
|
33
53
|
import "../shared-utils/throttle.js";
|
|
34
|
-
import "hammerjs";
|
|
35
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
36
54
|
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
37
55
|
import "../shared-utils/three/Magnifier.js";
|
|
38
56
|
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
39
57
|
import "../shared-utils/three/Assets/index.js";
|
|
40
58
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
41
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
42
59
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
43
60
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
44
61
|
import "../shared-utils/three/centerPoint.js";
|
|
45
62
|
import "../shared-utils/three/getObjectVisible.js";
|
|
46
|
-
import "@realsee/five/line";
|
|
47
63
|
import "../shared-utils/isNil.js";
|
|
48
|
-
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
49
|
-
import "../shared-utils/three/core/Sphere.js";
|
|
50
|
-
import "animejs";
|
|
51
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
52
|
-
import "../shared-utils/five/FivePuppet.js";
|
|
53
64
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
54
65
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
55
66
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -72,213 +83,228 @@ import "../shared-utils/isTouchDevice.js";
|
|
|
72
83
|
import "../shared-utils/five/getPosition.js";
|
|
73
84
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
74
85
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
75
|
-
import "
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
import "@realsee/five";
|
|
87
|
+
const ot = { userAction: !0 };
|
|
88
|
+
class vi extends Y {
|
|
89
|
+
constructor(t) {
|
|
90
|
+
super(t);
|
|
91
|
+
c(this, "state", { enabled: !0, visible: !0 });
|
|
92
|
+
c(this, "container");
|
|
93
|
+
c(this, "MinVisibledistance", 1.8);
|
|
94
|
+
c(this, "MaxVisibledistance", 5);
|
|
95
|
+
c(this, "OffsetHeight", -1.3);
|
|
85
96
|
// 标签页面高度偏移值
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
/** 标签项 */
|
|
89
|
-
n(this, "doorLabelItems");
|
|
97
|
+
c(this, "rooms");
|
|
98
|
+
c(this, "floorplanServerData");
|
|
90
99
|
/** 每个点位 visible 标签的缓存 */
|
|
91
|
-
|
|
100
|
+
c(this, "visibleLabelMap", /* @__PURE__ */ new Map());
|
|
92
101
|
/** 标签项Prop值 */
|
|
93
|
-
|
|
102
|
+
c(this, "labelItems", []);
|
|
94
103
|
/** 数据 */
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = i, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
|
|
101
|
-
this.initData();
|
|
104
|
+
c(this, "doorLabels");
|
|
105
|
+
c(this, "roomObservers");
|
|
106
|
+
c(this, "loadData", (t, i) => {
|
|
107
|
+
i && (this.MaxVisibledistance = i.MaxVisibledistance, this.MinVisibledistance = i.MinVisibledistance, this.OffsetHeight = i.OffsetHeight), this.labelItems = [], this.doorLabels = [], this.floorplanServerData = t, et(this.five).then(() => {
|
|
108
|
+
this.initData(), this.fixDoorVisibleAndPosition(), this.applyState();
|
|
102
109
|
});
|
|
103
110
|
});
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
c(this, "dispose", () => {
|
|
112
|
+
var t, i, f, e, a, o, s;
|
|
113
|
+
(t = this.five) == null || t.off("wantsToMoveToPano", this.hideAllLabels), (i = this.five) == null || i.off("modelLoaded", this.fixDoorVisibleAndPosition), (f = this.five) == null || f.off("panoArrived", this.fixDoorVisibleAndPosition), (e = this.five) == null || e.off("initAnimationEnded", this.fixDoorPosition), (a = this.five) == null || a.off("cameraUpdate", this.fixDoorPosition), (o = this.five) == null || o.off("mouseWheel", this.fixDoorPosition), (s = this.five) == null || s.off("pinchGesture", this.fixDoorPosition), this.applyState({ enabled: !1 });
|
|
114
|
+
});
|
|
115
|
+
c(this, "initRoomObservers", () => {
|
|
116
|
+
var e, a;
|
|
117
|
+
const t = this.floorplanServerData.computed_data.floor_datas || [], f = (((a = (e = this.five) == null ? void 0 : e.work) == null ? void 0 : a.observers) || []).map((o) => {
|
|
118
|
+
const s = o.panoIndex, d = o.floorIndex, n = t == null ? void 0 : t.find((r) => r.floor_index === d);
|
|
119
|
+
if (n) {
|
|
120
|
+
const r = n.rooms.find((p) => p.observer_indexs.includes(s));
|
|
121
|
+
if (r)
|
|
122
|
+
return { panoIndex: s, floorIndex: d, name: r.name };
|
|
112
123
|
}
|
|
113
124
|
}).filter(Boolean);
|
|
114
|
-
this.roomObservers =
|
|
125
|
+
this.roomObservers = f;
|
|
115
126
|
});
|
|
116
|
-
|
|
117
|
-
this.labelItems.forEach((
|
|
118
|
-
|
|
119
|
-
})
|
|
127
|
+
c(this, "hideAllLabels", () => {
|
|
128
|
+
this.labelItems.forEach((t) => {
|
|
129
|
+
t.visible = !1, t.inSight = !1;
|
|
130
|
+
});
|
|
120
131
|
});
|
|
121
|
-
|
|
132
|
+
c(this, "fixDoorVisibleAndPosition", () => {
|
|
122
133
|
this.initRoomObservers();
|
|
123
|
-
const { panoIndex:
|
|
124
|
-
if (!this.visible || this.five.model.empty ||
|
|
134
|
+
const { panoIndex: t } = this.five;
|
|
135
|
+
if (!this.state.visible || this.five.model.empty || t === null || !this.roomObservers.find((o) => o.panoIndex === t))
|
|
125
136
|
return;
|
|
126
|
-
const
|
|
127
|
-
if (this.visibleLabelMap.has(
|
|
128
|
-
return this.visibleLabelMap.get(
|
|
137
|
+
const i = this.roomObservers.find((o) => o.panoIndex === t), e = this.five.work.observers.find((o) => o.panoIndex === t).position.clone(), a = (() => {
|
|
138
|
+
if (this.visibleLabelMap.has(t))
|
|
139
|
+
return this.visibleLabelMap.get(t);
|
|
129
140
|
{
|
|
130
|
-
const
|
|
131
|
-
return this.doorLabels.forEach((s,
|
|
132
|
-
if (s.roomName ===
|
|
141
|
+
const o = [];
|
|
142
|
+
return this.doorLabels.forEach((s, d) => {
|
|
143
|
+
if (s.roomName === i.name)
|
|
133
144
|
return;
|
|
134
|
-
const
|
|
135
|
-
if (
|
|
145
|
+
const n = s.position.clone(), r = n.distanceTo(e);
|
|
146
|
+
if (r < this.MinVisibledistance || r > this.MaxVisibledistance)
|
|
136
147
|
return;
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
const [b] = this.five.model.intersectRaycaster(
|
|
140
|
-
b && b.distance + 0.1 <
|
|
141
|
-
}), this.visibleLabelMap.set(
|
|
148
|
+
const p = new q(), v = n.clone().sub(e).normalize();
|
|
149
|
+
p.set(e, v);
|
|
150
|
+
const [b] = this.five.model.intersectRaycaster(p);
|
|
151
|
+
b && b.distance + 0.1 < r || o.push(d);
|
|
152
|
+
}), this.visibleLabelMap.set(t, o), o;
|
|
142
153
|
}
|
|
143
154
|
})();
|
|
144
|
-
this.labelItems.forEach((
|
|
145
|
-
|
|
155
|
+
this.labelItems.forEach((o, s) => {
|
|
156
|
+
o.visible = a.includes(s);
|
|
146
157
|
}), this.fixDoorPosition();
|
|
147
158
|
});
|
|
148
|
-
|
|
149
|
-
var
|
|
150
|
-
|
|
151
|
-
|
|
159
|
+
c(this, "fixDoorPosition", () => {
|
|
160
|
+
var d, n, r, p, v, b, V, x, P, g, W, z;
|
|
161
|
+
if (!this.state.enabled || !this.state.visible)
|
|
162
|
+
return;
|
|
163
|
+
const { panoIndex: t, camera: i } = this.five;
|
|
164
|
+
if (t === null)
|
|
152
165
|
return;
|
|
153
166
|
if (this.five.currentMode !== "Panorama")
|
|
154
167
|
return this.hideAllLabels();
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
168
|
+
const f = this.five.getElement(), e = f.clientWidth, a = f.clientHeight, o = i.getWorldDirection(new S()), s = [];
|
|
169
|
+
if (this.labelItems.forEach((m, u) => {
|
|
170
|
+
var w;
|
|
171
|
+
if (m.visible) {
|
|
172
|
+
const A = i.position.distanceTo(m.position), y = m.position.clone().add(new S(0, this.OffsetHeight, 0)), M = y.clone().sub(i.position).normalize().angleTo(o), E = y.clone().project(i), D = (E.x + 1) / 2.2 * 100, _ = (-E.y + 1) / 2.2 * 100, F = D >= 0 && D <= 100 && _ >= 0 && _ <= 100 && A > this.MinVisibledistance && A <= this.MaxVisibledistance;
|
|
173
|
+
m.left = D, m.top = _, m.inSight = F && M < Math.PI / 2, m.cameraToward = J(this.five), F ? s.push({ disFromCameraToLabel: A, left: D, top: _, index: u }) : m.transform = "translate(-50%, -50%)";
|
|
160
174
|
} else
|
|
161
|
-
|
|
175
|
+
m.inSight = !1;
|
|
176
|
+
const T = m, { svelteApp: I } = T, k = B(T, ["svelteApp"]);
|
|
177
|
+
(w = m.svelteApp) == null || w.$set({ props: k });
|
|
162
178
|
}), s.length > 1) {
|
|
163
|
-
let
|
|
164
|
-
s.sort((u,
|
|
179
|
+
let m = 0;
|
|
180
|
+
s.sort((u, I) => I.disFromCameraToLabel - u.disFromCameraToLabel);
|
|
165
181
|
for (let u = 1; u < s.length; u++) {
|
|
166
|
-
const { index:
|
|
167
|
-
if (!
|
|
182
|
+
const { index: I, left: k, top: T } = s[u - 1], { index: w, left: A, top: y } = s[u], O = this.container.children[I], M = this.container.children[w];
|
|
183
|
+
if (!O || !M)
|
|
168
184
|
return;
|
|
169
|
-
const
|
|
170
|
-
left:
|
|
171
|
-
top:
|
|
172
|
-
width: (
|
|
173
|
-
height: (
|
|
174
|
-
},
|
|
175
|
-
left:
|
|
176
|
-
top:
|
|
177
|
-
width: (
|
|
178
|
-
height: (
|
|
185
|
+
const E = {
|
|
186
|
+
left: e * k / 100,
|
|
187
|
+
top: a * T / 100,
|
|
188
|
+
width: (r = (n = (d = O.children) == null ? void 0 : d[0]) == null ? void 0 : n.clientWidth) != null ? r : 0,
|
|
189
|
+
height: (b = (v = (p = O.children) == null ? void 0 : p[0]) == null ? void 0 : v.clientHeight) != null ? b : 0
|
|
190
|
+
}, D = {
|
|
191
|
+
left: e * A / 100,
|
|
192
|
+
top: a * y / 100,
|
|
193
|
+
width: (P = (x = (V = M.children) == null ? void 0 : V[0]) == null ? void 0 : x.clientWidth) != null ? P : 0,
|
|
194
|
+
height: (z = (W = (g = M.children) == null ? void 0 : g[0]) == null ? void 0 : W.clientHeight) != null ? z : 0
|
|
179
195
|
};
|
|
180
|
-
|
|
196
|
+
K(E, D) && (m++, this.labelItems[I].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, this.labelItems[w].transform = `translate(-50%, ${m * 100 - 50}%)`);
|
|
181
197
|
}
|
|
182
198
|
}
|
|
183
|
-
this.labelItems = f, this.render();
|
|
184
199
|
});
|
|
185
|
-
|
|
200
|
+
c(this, "onClick", (t, i) => {
|
|
186
201
|
if (!this.roomObservers)
|
|
187
202
|
return;
|
|
188
|
-
const { work:
|
|
189
|
-
let
|
|
190
|
-
for (const s of
|
|
191
|
-
if (this.roomObservers.find((
|
|
192
|
-
const
|
|
193
|
-
|
|
203
|
+
const { work: f } = this.five;
|
|
204
|
+
let e, a, o = 1 / 0;
|
|
205
|
+
for (const s of f.observers)
|
|
206
|
+
if (this.roomObservers.find((n) => n.panoIndex === s.panoIndex && n.name === t)) {
|
|
207
|
+
const n = s.standingPosition, r = i.distanceTo(n);
|
|
208
|
+
r < o && (e = s.panoIndex, a = n.clone().sub(i).normalize(), o = r);
|
|
194
209
|
}
|
|
195
|
-
if (
|
|
210
|
+
if (a !== null && e !== null) {
|
|
196
211
|
const s = {};
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
|
|
200
|
-
const v = new
|
|
201
|
-
v.setFromQuaternion(
|
|
212
|
+
if (o > 0) {
|
|
213
|
+
const n = new S(0, 0, -1), r = a.clone(), p = new X();
|
|
214
|
+
p.setFromUnitVectors(n, r);
|
|
215
|
+
const v = new G();
|
|
216
|
+
v.setFromQuaternion(p, "YXZ"), s.longitude = v.y;
|
|
202
217
|
}
|
|
203
|
-
this.five.emit("wantsToMoveToPano",
|
|
218
|
+
this.five.emit("wantsToMoveToPano", e, {}, !0) || this.five.moveToPano(e, { longitude: s.longitude });
|
|
204
219
|
}
|
|
205
220
|
});
|
|
206
|
-
|
|
207
|
-
var
|
|
221
|
+
c(this, "initData", () => {
|
|
222
|
+
var e;
|
|
208
223
|
this.doorLabels = [];
|
|
209
|
-
const
|
|
210
|
-
this.rooms =
|
|
211
|
-
var
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
const
|
|
215
|
-
let
|
|
216
|
-
s.forEach((
|
|
217
|
-
const
|
|
218
|
-
x:
|
|
219
|
-
y:
|
|
220
|
-
z:
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
}), v && (
|
|
224
|
-
const b = new
|
|
225
|
-
b.add(new
|
|
226
|
-
roomName:
|
|
227
|
-
name:
|
|
224
|
+
const t = this.five.panoIndex, i = this.floorplanServerData.computed_data.observers[t].floor_index, f = i !== void 0 && ((e = this.floorplanServerData.computed_data.floor_datas[i]) == null ? void 0 : e.rooms);
|
|
225
|
+
this.rooms = f, this.rooms && this.rooms.length > 0 && this.rooms.forEach((a) => {
|
|
226
|
+
var d;
|
|
227
|
+
const o = (d = this.floorplanServerData.computed_data.doors) == null ? void 0 : d.filter((n) => !!(n && n.name === a.name)), s = this.five.work.observers.filter((n, r) => !!a.observer_indexs.find((p) => p === r));
|
|
228
|
+
o && o.forEach((n) => {
|
|
229
|
+
const r = n.position;
|
|
230
|
+
let p = 1 / 0, v;
|
|
231
|
+
s.forEach((V) => {
|
|
232
|
+
const x = V.standingPosition, P = {
|
|
233
|
+
x: x.x,
|
|
234
|
+
y: x.y,
|
|
235
|
+
z: x.z
|
|
236
|
+
}, g = tt(r, P);
|
|
237
|
+
g < p && (p = g, v = P);
|
|
238
|
+
}), v && (r.y = v.y + 0.01);
|
|
239
|
+
const b = new S(r.x, r.y, r.z);
|
|
240
|
+
b.add(new S(-0.2, 1.8, 0).applyEuler(new G(0, n.rad, 0))), this.doorLabels.push({
|
|
241
|
+
roomName: a.name,
|
|
242
|
+
name: n.name,
|
|
228
243
|
position: b,
|
|
229
|
-
toward:
|
|
244
|
+
toward: it(n.rad)
|
|
230
245
|
});
|
|
231
246
|
});
|
|
232
|
-
}), this.labelItems = this.doorLabels.map((
|
|
247
|
+
}), this.labelItems = this.doorLabels.map((a) => U(L({}, a), {
|
|
233
248
|
left: 0,
|
|
234
249
|
top: 0,
|
|
235
250
|
visible: !1,
|
|
236
251
|
inSight: !1,
|
|
237
252
|
transform: "",
|
|
238
253
|
cameraToward: ""
|
|
239
|
-
})), this.five.on("wantsToMoveToPano", this.hideAllLabels), this.five.on("
|
|
254
|
+
})), this.five.on("wantsToMoveToPano", this.hideAllLabels), this.five.on("panoArrived", this.fixDoorVisibleAndPosition), this.five.on("initAnimationEnded", this.fixDoorPosition), this.five.on("cameraUpdate", this.fixDoorPosition), this.five.on("mouseWheel", this.fixDoorPosition), this.five.on("pinchGesture", this.fixDoorPosition), this.fixDoorVisibleAndPosition();
|
|
240
255
|
});
|
|
241
256
|
}
|
|
242
|
-
|
|
257
|
+
appendTo(t) {
|
|
258
|
+
this.state.enabled && (this.container = t);
|
|
259
|
+
}
|
|
260
|
+
setState(t, i) {
|
|
261
|
+
const f = this.state;
|
|
262
|
+
this.state = L(L({}, f), t);
|
|
263
|
+
const e = f.enabled && f.visible, a = this.state.enabled && this.state.visible;
|
|
264
|
+
e !== a && this.applyState();
|
|
265
|
+
}
|
|
266
|
+
show() {
|
|
267
|
+
this.setState({ visible: !0 });
|
|
268
|
+
}
|
|
269
|
+
hide() {
|
|
270
|
+
this.setState({ visible: !1 });
|
|
271
|
+
}
|
|
272
|
+
enable() {
|
|
273
|
+
this.setState({ enabled: !0 });
|
|
274
|
+
}
|
|
275
|
+
disable() {
|
|
276
|
+
this.setState({ enabled: !1 });
|
|
277
|
+
}
|
|
278
|
+
stateChangedCallback(t, i) {
|
|
243
279
|
if (this.hooks.hasListener("stateChange")) {
|
|
244
|
-
const
|
|
280
|
+
const f = {
|
|
245
281
|
state: this.state,
|
|
246
|
-
prevState:
|
|
247
|
-
userAction:
|
|
282
|
+
prevState: t,
|
|
283
|
+
userAction: i ? i.userAction : ot.userAction
|
|
248
284
|
};
|
|
249
|
-
this.hooks.emit("stateChange",
|
|
285
|
+
this.hooks.emit("stateChange", f);
|
|
250
286
|
}
|
|
251
287
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}), this.doorLabelItems = [], this.labelItems.forEach((i) => {
|
|
262
|
-
this.doorLabelItems.push(
|
|
263
|
-
new X({
|
|
264
|
-
target: this.container,
|
|
265
|
-
props: {
|
|
266
|
-
props: i,
|
|
267
|
-
onClick: () => {
|
|
268
|
-
this.onClick(i.name, i.position);
|
|
269
|
-
}
|
|
288
|
+
applyState(t) {
|
|
289
|
+
const i = t != null ? t : this.state;
|
|
290
|
+
i.enabled !== !1 && i.visible !== !1 ? (this.labelItems.forEach((e) => {
|
|
291
|
+
e.svelteApp = new Z({
|
|
292
|
+
target: this.container,
|
|
293
|
+
props: {
|
|
294
|
+
props: e,
|
|
295
|
+
onClick: () => {
|
|
296
|
+
this.onClick(e.name, e.position);
|
|
270
297
|
}
|
|
271
|
-
}
|
|
272
|
-
);
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
}), this.fixDoorPosition()) : this.labelItems.forEach((e) => {
|
|
301
|
+
e.svelteApp.$destroy();
|
|
273
302
|
});
|
|
274
303
|
}
|
|
275
304
|
initState() {
|
|
276
305
|
return { enabled: !0, visible: !0 };
|
|
277
306
|
}
|
|
278
|
-
dispose() {
|
|
279
|
-
this && this.five && (this.five.off("wantsToMoveToPano", this.hideAllLabels), this.five.off("modelLoaded", this.fixDoorVisibleAndPosition), this.five.off("panoArrived", this.fixDoorVisibleAndPosition), this.five.off("initAnimationEnded", this.fixDoorPosition), this.five.off("cameraUpdate", this.fixDoorPosition), this.five.off("mouseWheel", this.fixDoorPosition), this.five.off("pinchGesture", this.fixDoorPosition), super.dispose());
|
|
280
|
-
}
|
|
281
307
|
}
|
|
282
308
|
export {
|
|
283
|
-
|
|
309
|
+
vi as PanoDoorLabelPluginController
|
|
284
310
|
};
|