@realsee/dnalogel 3.57.1 → 3.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -3
- package/dist/index.cjs.js +29 -29
- package/dist/index.js +624 -605
- package/dist/index.umd.js +29 -29
- 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 +23 -23
- 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 +28 -32
- 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/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +143 -125
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +74 -64
- package/libs/PanoTagPlugin/controller/index.js +74 -77
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/tag.config.js +1 -5
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -3
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -78,8 +78,9 @@ import "../../../shared-utils/url/getUrl.js";
|
|
|
78
78
|
import "../../../shared-utils/five/getFloorIndex.js";
|
|
79
79
|
import "../../../shared-utils/safeObj.js";
|
|
80
80
|
import "../../utils/Cache.js";
|
|
81
|
+
import "../../../shared-utils/promise/withResolvers.js";
|
|
81
82
|
const v = new l.Vector2();
|
|
82
|
-
class
|
|
83
|
+
class zt extends g {
|
|
83
84
|
constructor(t, i) {
|
|
84
85
|
super(t, i);
|
|
85
86
|
p(this, "__Object__");
|
|
@@ -164,5 +165,5 @@ class wt extends g {
|
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
export {
|
|
167
|
-
|
|
168
|
+
zt as PointTag
|
|
168
169
|
};
|
|
@@ -171,6 +171,7 @@ import "../../shared-utils/url/getUrl.js";
|
|
|
171
171
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
172
172
|
import "../../shared-utils/safeObj.js";
|
|
173
173
|
import "../utils/Cache.js";
|
|
174
|
+
import "../../shared-utils/promise/withResolvers.js";
|
|
174
175
|
import "../tag.config.js";
|
|
175
176
|
import "../utils/normalPositionToPositions.js";
|
|
176
177
|
import "../../vendor/svelte/store/index.js";
|
|
@@ -186,7 +187,7 @@ import "../../shared-utils/url/absoluteUrl.js";
|
|
|
186
187
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
187
188
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
188
189
|
import "../../base/BasePlugin.js";
|
|
189
|
-
class
|
|
190
|
+
class ti extends N {
|
|
190
191
|
constructor(t) {
|
|
191
192
|
super(t);
|
|
192
193
|
c(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -323,5 +324,5 @@ class _r extends N {
|
|
|
323
324
|
}
|
|
324
325
|
}
|
|
325
326
|
export {
|
|
326
|
-
|
|
327
|
+
ti as TagRender
|
|
327
328
|
};
|
|
@@ -72,7 +72,7 @@ export declare abstract class TagUtil extends BasePlugin.Controller<State, Plugi
|
|
|
72
72
|
protected loadVideoFirstFrame: () => void;
|
|
73
73
|
protected getPositions(tag: BaseTag): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [ArrayPosition, ArrayPosition, ArrayPosition, ArrayPosition];
|
|
74
74
|
protected addObjectClickHandler(tag: BaseTag, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
75
|
-
protected tagsDo: (tags: TagInstance[], func: (tag: TagInstance) => any) => void;
|
|
75
|
+
protected tagsDo: (tags: TagInstance[], func: (tag: TagInstance) => any, isUpdateing?: boolean) => void;
|
|
76
76
|
/**
|
|
77
77
|
* @description 检查是否已经销毁
|
|
78
78
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { DefaultConfig as
|
|
2
|
+
var g = (c, a, t) => a in c ? h(c, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[a] = t;
|
|
3
|
+
var o = (c, a, t) => (g(c, typeof a != "symbol" ? a + "" : a, t), t);
|
|
4
|
+
import { DefaultConfig as T } from "../tag.config.js";
|
|
5
5
|
import "three";
|
|
6
|
-
import { anyPositionToVector3 as
|
|
7
|
-
import { isPlaneTag as
|
|
8
|
-
import { normalPositionToPositions as
|
|
9
|
-
import { writable as
|
|
10
|
-
import { isIOSWX as
|
|
11
|
-
import { CSS3DRenderPlugin as
|
|
12
|
-
import { VideoPlane as
|
|
13
|
-
import { FiveDomEvents as
|
|
14
|
-
import { Cache as
|
|
15
|
-
import { Controller as
|
|
6
|
+
import { anyPositionToVector3 as u } from "../../shared-utils/positionToVector3.js";
|
|
7
|
+
import { isPlaneTag as D, isMediaModelTag as P, isPoint3DTag as _ } from "../utils/tag/tagCheck.js";
|
|
8
|
+
import { normalPositionToPositions as y } from "../utils/normalPositionToPositions.js";
|
|
9
|
+
import { writable as v } from "../../vendor/svelte/store/index.js";
|
|
10
|
+
import { isIOSWX as E } from "../../shared-utils/device.js";
|
|
11
|
+
import { CSS3DRenderPlugin as S } from "../../CSS3DRenderPlugin/index.js";
|
|
12
|
+
import { VideoPlane as k } from "../utils/model/mediaPlane.js";
|
|
13
|
+
import { FiveDomEvents as I } from "../../shared-utils/five/FiveDomEvents.js";
|
|
14
|
+
import { Cache as C } from "../utils/Cache.js";
|
|
15
|
+
import { Controller as M } from "../../base/BasePlugin.js";
|
|
16
16
|
import "../../vendor/svelte/internal/index.js";
|
|
17
17
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
18
18
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -86,57 +86,67 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
86
86
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
87
87
|
import "../../shared-utils/three/getNormal.js";
|
|
88
88
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
89
|
-
class
|
|
89
|
+
class me extends M {
|
|
90
90
|
constructor(t) {
|
|
91
91
|
super(t);
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
o(this, "tags", []);
|
|
93
|
+
o(this, "cache", new C());
|
|
94
|
+
o(this, "config", T);
|
|
95
|
+
o(this, "renderQueue", /* @__PURE__ */ new Map());
|
|
96
96
|
/** 插件参数 */
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
o(this, "params");
|
|
98
|
+
o(this, "mediaStore", v({
|
|
99
99
|
currentMediaElement: null
|
|
100
100
|
}));
|
|
101
|
-
|
|
101
|
+
o(this, "store", {
|
|
102
102
|
disposers: [],
|
|
103
103
|
disposed: !1,
|
|
104
104
|
resizeObserverDisposerAdding: !1,
|
|
105
105
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
106
106
|
});
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
o(this, "domEvents", new I(this.five));
|
|
108
|
+
o(this, "_cache_pointTag");
|
|
109
|
+
o(this, "_cache_2DPointTag");
|
|
110
|
+
o(this, "_cache_css3DTag");
|
|
111
|
+
o(this, "_container", null);
|
|
112
|
+
o(this, "_css3DRenderPlugin");
|
|
113
|
+
o(this, "timeoutIds", []);
|
|
114
|
+
o(this, "whyHide", (t) => {
|
|
115
115
|
const e = this.getTagById(t);
|
|
116
116
|
return e ? e.whyHide() : { reason: `tag ${t} not found` };
|
|
117
117
|
});
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
o(this, "loadVideoFirstFrame", () => {
|
|
119
|
+
E && this.hooks.emit("loadVideoFirstFrame");
|
|
120
120
|
});
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
this.timeoutIds.forEach((
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
121
|
+
o(this, "tagsDo", (t, e, i = !0) => {
|
|
122
|
+
let r = [...t != null ? t : this.tags].sort((s, m) => s.getSquaredDistance() - m.getSquaredDistance());
|
|
123
|
+
this.timeoutIds.forEach((s) => clearTimeout(s)), this.timeoutIds.length = 0;
|
|
124
|
+
for (let s = 0; s < 20; s++) {
|
|
125
|
+
const m = r[s];
|
|
126
|
+
m && (e(m), i && (m._updating = !1));
|
|
127
|
+
}
|
|
128
|
+
r = r.slice(20);
|
|
129
|
+
const d = r.length > 1e3, n = d ? 30 : 17, l = d ? 1 : 3;
|
|
130
|
+
for (let s = 0; s < r.length; s += l) {
|
|
131
|
+
const m = [];
|
|
132
|
+
for (let p = 0; p < l; p++)
|
|
133
|
+
r[s + p] && m.push(r[s + p]);
|
|
134
|
+
m.forEach((p) => {
|
|
135
|
+
i && (p._updating = !0);
|
|
136
|
+
});
|
|
137
|
+
const f = setTimeout(() => {
|
|
138
|
+
m.forEach((p) => {
|
|
139
|
+
e(p), i && (p._updating = !1);
|
|
140
|
+
});
|
|
141
|
+
}, s * n);
|
|
142
|
+
this.timeoutIds.push(f);
|
|
133
143
|
}
|
|
134
144
|
});
|
|
135
145
|
this.mediaStore.subscribe(({ currentMediaElement: e }) => {
|
|
136
146
|
this.tags.forEach((i) => {
|
|
137
|
-
var
|
|
138
|
-
if (i.mediaPlane instanceof
|
|
139
|
-
if (!((
|
|
147
|
+
var r;
|
|
148
|
+
if (i.mediaPlane instanceof k && e !== i.mediaPlane.videoInstance) {
|
|
149
|
+
if (!((r = i.mediaPlane.videoInstance) != null && r.src) || e === i.mediaPlane.videoInstance)
|
|
140
150
|
return;
|
|
141
151
|
i.mediaPlane.pause();
|
|
142
152
|
}
|
|
@@ -163,8 +173,8 @@ class ne extends C {
|
|
|
163
173
|
get css3DRenderPlugin() {
|
|
164
174
|
var t, e, i;
|
|
165
175
|
if (!this._css3DRenderPlugin) {
|
|
166
|
-
const
|
|
167
|
-
this._css3DRenderPlugin =
|
|
176
|
+
const r = S(this.five);
|
|
177
|
+
this._css3DRenderPlugin = r, (t = r.frontModeCSS3DRenderer) != null && t.domElementWrapper && (r.frontModeCSS3DRenderer.domElementWrapper.style.zIndex = (i = (e = this.params.containerZIndex) == null ? void 0 : e.toString()) != null ? i : "");
|
|
168
178
|
}
|
|
169
179
|
return this._css3DRenderPlugin;
|
|
170
180
|
}
|
|
@@ -181,12 +191,12 @@ class ne extends C {
|
|
|
181
191
|
return (t = this._cache_css3DTag) != null ? t : [];
|
|
182
192
|
}
|
|
183
193
|
addRenderQueue(t) {
|
|
184
|
-
var
|
|
185
|
-
const { type: e, keys: i = [], tags:
|
|
194
|
+
var d, n;
|
|
195
|
+
const { type: e, keys: i = [], tags: r = [] } = t;
|
|
186
196
|
this.renderQueue.has(e) ? this.renderQueue.set(e, {
|
|
187
|
-
keys: Array.from(/* @__PURE__ */ new Set([...(
|
|
188
|
-
tags: Array.from(/* @__PURE__ */ new Set([...(
|
|
189
|
-
}) : this.renderQueue.set(e, { keys: i, tags:
|
|
197
|
+
keys: Array.from(/* @__PURE__ */ new Set([...(d = this.renderQueue.get(e).keys) != null ? d : [], ...i])),
|
|
198
|
+
tags: Array.from(/* @__PURE__ */ new Set([...(n = this.renderQueue.get(e).tags) != null ? n : [], ...r]))
|
|
199
|
+
}) : this.renderQueue.set(e, { keys: i, tags: r });
|
|
190
200
|
}
|
|
191
201
|
getTagById(t) {
|
|
192
202
|
const e = this.tags.find((i) => i.id === t);
|
|
@@ -201,25 +211,25 @@ class ne extends C {
|
|
|
201
211
|
this.mediaStore.set({ currentMediaElement: null });
|
|
202
212
|
}
|
|
203
213
|
getPositions(t) {
|
|
204
|
-
if (T(t))
|
|
205
|
-
return t.position;
|
|
206
214
|
if (D(t))
|
|
207
|
-
return t.
|
|
215
|
+
return t.position;
|
|
208
216
|
if (P(t))
|
|
209
|
-
return
|
|
217
|
+
return t.data.mediaPosition;
|
|
218
|
+
if (_(t))
|
|
219
|
+
return y(this.five.camera.position, u(t.position), u(t.normal));
|
|
210
220
|
}
|
|
211
221
|
addObjectClickHandler(t, e, i) {
|
|
212
222
|
if (!e || !this.domEvents)
|
|
213
223
|
return () => {
|
|
214
224
|
};
|
|
215
|
-
const
|
|
216
|
-
if (!
|
|
225
|
+
const r = () => !(!t.currentVisible || t.loading), d = (n) => {
|
|
226
|
+
if (!r())
|
|
217
227
|
return !1;
|
|
218
|
-
i(
|
|
228
|
+
i(n.origDomEvent);
|
|
219
229
|
};
|
|
220
|
-
return this.domEvents.addEventListener(e, "click",
|
|
221
|
-
var
|
|
222
|
-
(
|
|
230
|
+
return this.domEvents.addEventListener(e, "click", d), () => {
|
|
231
|
+
var n;
|
|
232
|
+
(n = this.domEvents) == null || n.removeEventListener(e, "click", d);
|
|
223
233
|
};
|
|
224
234
|
}
|
|
225
235
|
/**
|
|
@@ -231,5 +241,5 @@ class ne extends C {
|
|
|
231
241
|
}
|
|
232
242
|
}
|
|
233
243
|
export {
|
|
234
|
-
|
|
244
|
+
me as TagUtil
|
|
235
245
|
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
1
|
+
var D = Object.defineProperty, S = Object.defineProperties;
|
|
2
2
|
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var y = Object.getOwnPropertySymbols;
|
|
4
4
|
var U = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var c = (d, a, e) => a in d ? D(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, g = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
U.call(a, e) &&
|
|
7
|
+
U.call(a, e) && c(d, e, a[e]);
|
|
8
8
|
if (y)
|
|
9
9
|
for (var e of y(a))
|
|
10
|
-
A.call(a, e) &&
|
|
10
|
+
A.call(a, e) && c(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
13
|
-
var p = (d, a, e) => (
|
|
12
|
+
}, u = (d, a) => S(d, P(a));
|
|
13
|
+
var p = (d, a, e) => (c(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var l = (d, a, e) => new Promise((t, i) => {
|
|
15
|
-
var o = (
|
|
15
|
+
var o = (r) => {
|
|
16
16
|
try {
|
|
17
|
-
n(e.next(
|
|
17
|
+
n(e.next(r));
|
|
18
18
|
} catch (h) {
|
|
19
19
|
i(h);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (r) => {
|
|
22
22
|
try {
|
|
23
|
-
n(e.throw(
|
|
23
|
+
n(e.throw(r));
|
|
24
24
|
} catch (h) {
|
|
25
25
|
i(h);
|
|
26
26
|
}
|
|
27
|
-
}, n = (
|
|
27
|
+
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(o, s);
|
|
28
28
|
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as v from "three";
|
|
31
|
-
import { objectAssignDeepExports as
|
|
31
|
+
import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
32
|
import { arrayPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
|
|
33
33
|
import { isModelTag as k, isMediaModelTag as F } from "../utils/tag/tagCheck.js";
|
|
34
34
|
import { debounce as w } from "../utils/debounce.js";
|
|
35
|
-
import { throttle as
|
|
36
|
-
import
|
|
35
|
+
import { throttle as _ } from "../utils/throttle.js";
|
|
36
|
+
import M, { getTagStickType as L } from "../utils/tag/format.js";
|
|
37
37
|
import { generateBlankAudio as I, AudioNamespace as R } from "../../shared-utils/audio.js";
|
|
38
|
-
import { resizeObserver as
|
|
38
|
+
import { resizeObserver as T } from "../../shared-utils/dom/resizeObserver.js";
|
|
39
39
|
import { TagRender as B } from "./TagRender.js";
|
|
40
40
|
import "../../shared-utils/tag.js";
|
|
41
41
|
import { isModelLike as O } from "../../shared-utils/five/mode.js";
|
|
@@ -50,7 +50,7 @@ import { waitFiveModelLoaded as G } from "../../shared-utils/five/fiveModelLoad.
|
|
|
50
50
|
import { nextFrame as N } from "../../shared-utils/animationFrame/index.js";
|
|
51
51
|
import "../../shared-utils/five/FivePuppet.js";
|
|
52
52
|
import { DebugUtil as V } from "../utils/DebugUtil.js";
|
|
53
|
-
import { safeObj as
|
|
53
|
+
import { safeObj as b } from "../../shared-utils/safeObj.js";
|
|
54
54
|
import { PointTag as z } from "./Tag/PointTag.js";
|
|
55
55
|
import { ModelTag as Q } from "./Tag/ModelTag.js";
|
|
56
56
|
import { PlaneTag as $ } from "./Tag/PlaneTag.js";
|
|
@@ -197,6 +197,7 @@ import "../utils/checkRange.js";
|
|
|
197
197
|
import "../../shared-utils/url/getUrl.js";
|
|
198
198
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
199
199
|
import "../utils/Cache.js";
|
|
200
|
+
import "../../shared-utils/promise/withResolvers.js";
|
|
200
201
|
import "./TagUtil.js";
|
|
201
202
|
import "../tag.config.js";
|
|
202
203
|
import "../utils/normalPositionToPositions.js";
|
|
@@ -215,8 +216,8 @@ import "../../base/BasePlugin.js";
|
|
|
215
216
|
import "../utils/addDebugPoints.js";
|
|
216
217
|
import "../Components/TagItem.js";
|
|
217
218
|
import "../Components/Common/TagPoint.js";
|
|
218
|
-
const C = "Dnalogel-PanoTagPlugin",
|
|
219
|
-
class
|
|
219
|
+
const C = "Dnalogel-PanoTagPlugin", Co = (d) => `${C}--${d}`;
|
|
220
|
+
class Do extends B {
|
|
220
221
|
constructor(e, t) {
|
|
221
222
|
super(e);
|
|
222
223
|
/** state */
|
|
@@ -227,11 +228,11 @@ class Co extends B {
|
|
|
227
228
|
/** 更改 tag 模型 */
|
|
228
229
|
p(this, "changeTagModel", (e, t) => l(this, null, function* () {
|
|
229
230
|
var i;
|
|
230
|
-
e.data =
|
|
231
|
+
e.data = m({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
|
|
231
232
|
}));
|
|
232
233
|
p(this, "handleFiveModeChange", (e) => {
|
|
233
234
|
const t = () => {
|
|
234
|
-
this.
|
|
235
|
+
this.filter2DPointTag.forEach((i) => {
|
|
235
236
|
i.state.visible = !1, i.applyVisible();
|
|
236
237
|
}), this.five.ready().then(() => {
|
|
237
238
|
this.tagsDo(this.tags, (i) => {
|
|
@@ -246,10 +247,8 @@ class Co extends B {
|
|
|
246
247
|
this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
|
|
247
248
|
return;
|
|
248
249
|
} else
|
|
249
|
-
this.tags.forEach((t) => {
|
|
250
|
-
t.
|
|
251
|
-
const o = t.getConfig();
|
|
252
|
-
typeof o.visibleConfig == "object" && t.temporaryState && (o.visibleConfig.keep ? t.temporaryState.visible = o.visibleConfig.keep === "visible" : t.temporaryState.visible = !!o.visibleConfig.alwaysShowWhenMovePano);
|
|
250
|
+
this.temporaryState.visible = !0, this.tags.forEach((t) => {
|
|
251
|
+
t.temporaryState.visible = !0;
|
|
253
252
|
}), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((t) => t.applyVisible());
|
|
254
253
|
});
|
|
255
254
|
p(this, "clickhandler", (e) => {
|
|
@@ -264,8 +263,8 @@ class Co extends B {
|
|
|
264
263
|
}, 1e3);
|
|
265
264
|
});
|
|
266
265
|
p(this, "handleFivePanoArrived", () => l(this, null, function* () {
|
|
267
|
-
this.
|
|
268
|
-
e.state.visible = !1, e.
|
|
266
|
+
this.filter2DPointTag.forEach((e) => {
|
|
267
|
+
e.state.visible = !1, e.applyVisible();
|
|
269
268
|
}), this.tagsDo(this.tags, (e) => {
|
|
270
269
|
e.updateVisible();
|
|
271
270
|
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
|
|
@@ -279,10 +278,10 @@ class Co extends B {
|
|
|
279
278
|
t.position.copy(i.position), t.quaternion.copy(i.quaternion);
|
|
280
279
|
const o = this.five.camera.position;
|
|
281
280
|
t.lookAt(o.clone().setY(t.position.y));
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
i.quaternion.copy(
|
|
285
|
-
}),
|
|
281
|
+
const s = i.quaternion.clone(), n = t.quaternion.clone(), r = W();
|
|
282
|
+
r.onUpdate(({ progress: f }) => {
|
|
283
|
+
i.quaternion.copy(s.clone().slerp(n, f));
|
|
284
|
+
}), r.play();
|
|
286
285
|
});
|
|
287
286
|
}));
|
|
288
287
|
/** 楼层切换时,需要更新标签可见性 */
|
|
@@ -296,9 +295,9 @@ class Co extends B {
|
|
|
296
295
|
this.renderQueue.forEach((e, t) => {
|
|
297
296
|
const { keys: i } = e;
|
|
298
297
|
if (t === "TagContainerSvelte") {
|
|
299
|
-
const
|
|
298
|
+
const s = this.filterPointTag.filter((r) => r.screenPosition), n = {
|
|
300
299
|
hooks: this.hooks,
|
|
301
|
-
tags:
|
|
300
|
+
tags: s,
|
|
302
301
|
state: this.state,
|
|
303
302
|
temporaryState: this.temporaryState,
|
|
304
303
|
mediaStore: this.mediaStore,
|
|
@@ -307,28 +306,28 @@ class Co extends B {
|
|
|
307
306
|
zIndex: this.params.containerZIndex
|
|
308
307
|
};
|
|
309
308
|
if (this.TagContainerSvelte) {
|
|
310
|
-
let
|
|
309
|
+
let r = {};
|
|
311
310
|
if (i.length === 0)
|
|
312
|
-
|
|
311
|
+
r = n;
|
|
313
312
|
else
|
|
314
313
|
for (const h of i)
|
|
315
|
-
|
|
316
|
-
this.TagContainerSvelte.$set(
|
|
314
|
+
r[h] = n[h];
|
|
315
|
+
this.TagContainerSvelte.$set(r);
|
|
317
316
|
} else {
|
|
318
317
|
if (!this.container)
|
|
319
318
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
320
319
|
this.TagContainerSvelte = new x({
|
|
321
320
|
target: this.container,
|
|
322
|
-
props:
|
|
321
|
+
props: u(g({}, n), { state: u(g({}, this.state), { enabled: !1 }) })
|
|
323
322
|
}), N(() => {
|
|
324
|
-
var
|
|
325
|
-
(
|
|
323
|
+
var r;
|
|
324
|
+
(r = this.TagContainerSvelte) == null || r.$set({ state: this.state });
|
|
326
325
|
});
|
|
327
326
|
}
|
|
328
327
|
}
|
|
329
328
|
}), this.renderQueue.clear();
|
|
330
329
|
});
|
|
331
|
-
this.params =
|
|
330
|
+
this.params = m({}, { debug: !1, config: this.config }, g({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), I(1, { namespace: R.PlayAudio });
|
|
332
331
|
try {
|
|
333
332
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = C + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
334
333
|
get: function() {
|
|
@@ -339,9 +338,9 @@ class Co extends B {
|
|
|
339
338
|
}
|
|
340
339
|
}
|
|
341
340
|
appendTo(e) {
|
|
342
|
-
var i, o,
|
|
341
|
+
var i, o, s, n;
|
|
343
342
|
this.debugUtil.addLog("appendTo"), this.container = e, (i = this.css3DRenderPlugin) == null || i.appendToFrontFiveContainer(this.container);
|
|
344
|
-
const t = (
|
|
343
|
+
const t = (s = (o = this.TagContainerSvelte) == null ? void 0 : o.$$) == null ? void 0 : s.root;
|
|
345
344
|
t && t !== this.container && ((n = this.TagContainerSvelte) == null || n.$destroy(), this.TagContainerSvelte = void 0);
|
|
346
345
|
}
|
|
347
346
|
/**
|
|
@@ -353,9 +352,9 @@ class Co extends B {
|
|
|
353
352
|
this.clearTags();
|
|
354
353
|
try {
|
|
355
354
|
console.debug(this.NAME, " load:", { data: JSON.parse(JSON.stringify(e)) });
|
|
356
|
-
} catch (
|
|
355
|
+
} catch (s) {
|
|
357
356
|
}
|
|
358
|
-
this.config =
|
|
357
|
+
this.config = m({}, this.config, {
|
|
359
358
|
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
360
359
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
361
360
|
});
|
|
@@ -369,17 +368,17 @@ class Co extends B {
|
|
|
369
368
|
addTag(e) {
|
|
370
369
|
return l(this, null, function* () {
|
|
371
370
|
const i = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
372
|
-
const
|
|
373
|
-
if (
|
|
371
|
+
const s = L(o);
|
|
372
|
+
if (s === "2DPoint" || s === "3DPoint")
|
|
374
373
|
return new z(this, o);
|
|
375
|
-
if (
|
|
374
|
+
if (s === "Model")
|
|
376
375
|
return new Q(this, o);
|
|
377
|
-
if (
|
|
376
|
+
if (s === "Plane")
|
|
378
377
|
return new $(this, o);
|
|
379
378
|
});
|
|
380
|
-
return i.forEach(
|
|
381
|
-
var o,
|
|
382
|
-
this.store.eventListenerDisposer && ((
|
|
379
|
+
return i.forEach(M), this.tags.push(...i), this.tagsLengthWillUpdate = !0, G(this.five).then(() => l(this, null, function* () {
|
|
380
|
+
var o, s;
|
|
381
|
+
this.store.eventListenerDisposer && ((s = (o = this.store).eventListenerDisposer) == null || s.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.tagsDo(i, (n) => {
|
|
383
382
|
this.tags.includes(n) && (n.stickType === "Model" && n.loadModel().then(() => {
|
|
384
383
|
this.tags.includes(n) && n.updateVisible();
|
|
385
384
|
}), n.updateVisible(), n.updateZIndex());
|
|
@@ -391,17 +390,15 @@ class Co extends B {
|
|
|
391
390
|
* @description 改变配置
|
|
392
391
|
*/
|
|
393
392
|
changeConfig(e, t = !0) {
|
|
394
|
-
t ? this.config =
|
|
393
|
+
t ? this.config = m({}, this.config, e) : this.config = e, this.tags.forEach((i) => {
|
|
395
394
|
i.updateConfig();
|
|
396
|
-
}), this.tagsDo(this.tags, (i) =>
|
|
397
|
-
i.updateVisible();
|
|
398
|
-
});
|
|
395
|
+
}), this.tagsDo(this.tags, (i) => i.updateVisible());
|
|
399
396
|
}
|
|
400
397
|
/**
|
|
401
398
|
* @description 改变全局配置
|
|
402
399
|
*/
|
|
403
400
|
changeGlobalConfig(e, t = !0) {
|
|
404
|
-
t ? this.config.globalConfig =
|
|
401
|
+
t ? this.config.globalConfig = m({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.tags.forEach((i) => {
|
|
405
402
|
i.updateConfig();
|
|
406
403
|
}), this.tagsDo(this.tags, (i) => {
|
|
407
404
|
i.updateVisible();
|
|
@@ -411,7 +408,7 @@ class Co extends B {
|
|
|
411
408
|
* @description 改变类型配置
|
|
412
409
|
*/
|
|
413
410
|
changeContentTypeConfig(e, t, i = !0) {
|
|
414
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
411
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = m({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.tags.forEach((o) => {
|
|
415
412
|
o.updateConfig();
|
|
416
413
|
}), this.tagsDo(this.tags, (o) => {
|
|
417
414
|
o.updateVisible();
|
|
@@ -448,18 +445,18 @@ class Co extends B {
|
|
|
448
445
|
setState(e, t) {
|
|
449
446
|
if (this.checkDisposed())
|
|
450
447
|
return;
|
|
451
|
-
const { userAction: i = !0 } = t != null ? t : {}, o =
|
|
448
|
+
const { userAction: i = !0 } = t != null ? t : {}, o = g({}, this.state);
|
|
452
449
|
this.state = Object.assign(this.state, e), o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
453
450
|
}
|
|
454
451
|
/**
|
|
455
452
|
* @description 销毁
|
|
456
453
|
*/
|
|
457
454
|
dispose() {
|
|
458
|
-
var e, t, i, o,
|
|
459
|
-
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((
|
|
455
|
+
var e, t, i, o, s, n;
|
|
456
|
+
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
|
|
460
457
|
var h;
|
|
461
|
-
return (h =
|
|
462
|
-
}), this.tags.forEach((
|
|
458
|
+
return (h = r.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
|
|
459
|
+
}), this.tags.forEach((r) => r.cache.clear()), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], (o = (i = this.store).eventListenerDisposer) == null || o.call(i), this.store.eventListenerDisposer = void 0, (n = (s = this.store).resizeObserverDisposer) == null || n.call(s), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.imagePlaneGroup.remove(...this.imagePlaneGroup.children), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
463
460
|
}
|
|
464
461
|
/**
|
|
465
462
|
* @description 闪烁标签
|
|
@@ -548,8 +545,8 @@ class Co extends B {
|
|
|
548
545
|
clearTags() {
|
|
549
546
|
var e;
|
|
550
547
|
this.tags.length && (this.tags.forEach((t) => {
|
|
551
|
-
var i, o,
|
|
552
|
-
(o = (i = t.mediaPlane) == null ? void 0 : i.parent) == null || o.remove(t.mediaPlane), (
|
|
548
|
+
var i, o, s, n, r;
|
|
549
|
+
(o = (i = t.mediaPlane) == null ? void 0 : i.parent) == null || o.remove(t.mediaPlane), (r = (n = (s = t.model) == null ? void 0 : s.object) == null ? void 0 : n.parent) == null || r.remove(t.model.object);
|
|
553
550
|
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
|
|
554
551
|
}
|
|
555
552
|
/**
|
|
@@ -579,8 +576,8 @@ class Co extends B {
|
|
|
579
576
|
handleDisable() {
|
|
580
577
|
var e, t, i;
|
|
581
578
|
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filterCSS3DTag.forEach((o) => {
|
|
582
|
-
var
|
|
583
|
-
(
|
|
579
|
+
var s;
|
|
580
|
+
(s = o.tag3DContentSvelte) == null || s.dispose(), o.tag3DContentSvelte = void 0;
|
|
584
581
|
}), this.five.needsRender = !0;
|
|
585
582
|
}
|
|
586
583
|
addResizeListener() {
|
|
@@ -598,17 +595,17 @@ class Co extends B {
|
|
|
598
595
|
this.state.enabled && (this.filterPointTag.forEach((h) => h.updateScreenPosition({ force: !0 })), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
|
|
599
596
|
}, i = () => {
|
|
600
597
|
this.state.enabled && (this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
|
|
601
|
-
}, { observe: o, unobserve:
|
|
602
|
-
|
|
598
|
+
}, { observe: o, unobserve: s } = T(
|
|
599
|
+
_(() => {
|
|
603
600
|
this.store.resizeObserverDisposer && i();
|
|
604
601
|
}, 500),
|
|
605
602
|
e
|
|
606
|
-
), { observe: n, unobserve:
|
|
603
|
+
), { observe: n, unobserve: r } = T(
|
|
607
604
|
w(() => t(), 400),
|
|
608
605
|
e
|
|
609
606
|
);
|
|
610
607
|
return o(), n(), () => {
|
|
611
|
-
|
|
608
|
+
s(), r();
|
|
612
609
|
};
|
|
613
610
|
}
|
|
614
611
|
setUnfoldedByCamera() {
|
|
@@ -618,18 +615,18 @@ class Co extends B {
|
|
|
618
615
|
if (t.state && i !== void 0) {
|
|
619
616
|
if (i === !0 && t.screenPosition) {
|
|
620
617
|
const o = t.getConfig().unfoldedConfig;
|
|
621
|
-
|
|
618
|
+
b(o).keep !== "unfolded" && (e = !0);
|
|
622
619
|
}
|
|
623
620
|
t.state.unfolded = i;
|
|
624
621
|
}
|
|
625
622
|
}), e && this.filterPointTag.forEach((t) => {
|
|
626
623
|
const i = t.getConfig().unfoldedConfig;
|
|
627
|
-
typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 ||
|
|
624
|
+
typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || b(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
|
|
628
625
|
});
|
|
629
626
|
}
|
|
630
627
|
changeTagMode(e, t) {
|
|
631
|
-
var i, o,
|
|
632
|
-
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (
|
|
628
|
+
var i, o, s, n, r, h;
|
|
629
|
+
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (s = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : s.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((f) => f == null ? void 0 : f()), e.tag3DContentSvelte = void 0);
|
|
633
630
|
}
|
|
634
631
|
/**
|
|
635
632
|
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
@@ -642,7 +639,7 @@ class Co extends B {
|
|
|
642
639
|
}
|
|
643
640
|
}
|
|
644
641
|
export {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
642
|
+
Do as PanoTagPluginController,
|
|
643
|
+
Do as default,
|
|
644
|
+
Co as pluginFlag
|
|
648
645
|
};
|