@realsee/dnalogel 3.23.1 → 3.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ModelMakerPlugin/Controller.d.ts +3 -0
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +2 -2
- package/dist/ModelMakerPlugin/utils/getFiveDomEvent.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +11 -4
- package/dist/index.cjs.js +43 -43
- package/dist/index.js +1447 -1448
- package/dist/index.umd.js +36 -36
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/ModelMakerPluginType.ModelMakerController.html +30 -15
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +28 -28
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelMakerPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/MovePlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/ModelMakerPluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AddObject3DHelperConfig.html +3 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/AudioTagTypeConfigKey.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
- package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/PositionFrom.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/ScaleCallback.html +3 -3
- package/docs/types/ScalePosition.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +14 -7
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/ModelMakerPlugin/Controller.d.ts +3 -0
- package/libs/ModelMakerPlugin/Controller.js +70 -65
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +2 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +16 -17
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.d.ts +3 -0
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +9 -0
- package/libs/PanoTagPlugin/controller/TagRender.js +2 -2
- package/libs/PanoTagPlugin/controller/index.js +115 -115
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +11 -4
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +125 -124
- package/libs/shared-utils/Utils/WorkUtil.js +9 -9
- package/libs/shared-utils/five/FiveDomEvents.js +36 -41
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -18,15 +18,16 @@ import "../../shared-utils/Subscribe.js";
|
|
|
18
18
|
import "../../shared-utils/tag.js";
|
|
19
19
|
import "../../shared-utils/positionToVector3.js";
|
|
20
20
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
21
|
+
import "../utils/getFiveDomEvent.js";
|
|
21
22
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
22
23
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
23
24
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
24
|
-
class
|
|
25
|
+
class T extends f {
|
|
25
26
|
constructor(...o) {
|
|
26
27
|
const r = o[0], e = M(r.model), a = new u.Vector3().lerpVectors(n(e, 0), n(e, 5), 0.5);
|
|
27
28
|
super(s(i({}, r), { position: a })), this.enable();
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
T as ModelMakerPrismItem
|
|
32
33
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FiveDomEvents as o } from "../../shared-utils/five/FiveDomEvents.js";
|
|
2
|
+
import "three";
|
|
3
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
4
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
5
|
+
let t;
|
|
6
|
+
const v = (e) => t || (t = new o(e), t);
|
|
7
|
+
export {
|
|
8
|
+
v as getFiveDomEvent
|
|
9
|
+
};
|
|
@@ -233,10 +233,10 @@ class Ti extends I {
|
|
|
233
233
|
this.contentTypeMap.set(t, e);
|
|
234
234
|
}
|
|
235
235
|
clearTags() {
|
|
236
|
-
this.tags.forEach((t) => {
|
|
236
|
+
this.tags.length && (this.tags.forEach((t) => {
|
|
237
237
|
var e, o;
|
|
238
238
|
(o = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || o.remove(t.mediaPlane);
|
|
239
|
-
}), this.tags = [], this.
|
|
239
|
+
}), this.tags = [], this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache();
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
242
|
* @description: 更新所有标签
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var u = (d, a, e) => a in d ?
|
|
1
|
+
var R = Object.defineProperty, k = Object.defineProperties;
|
|
2
|
+
var B = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var P = Object.getOwnPropertySymbols;
|
|
4
|
+
var F = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var u = (d, a, e) => a in d ? R(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, m = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
7
|
+
F.call(a, e) && u(d, e, a[e]);
|
|
8
|
+
if (P)
|
|
9
|
+
for (var e of P(a))
|
|
10
|
+
M.call(a, e) && u(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
12
|
+
}, v = (d, a) => k(d, B(a));
|
|
13
13
|
var l = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var c = (d, a, e) => new Promise((t, i) => {
|
|
15
|
-
var
|
|
15
|
+
var o = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
18
18
|
} catch (h) {
|
|
19
19
|
i(h);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (r) => {
|
|
22
22
|
try {
|
|
23
23
|
n(e.throw(r));
|
|
24
24
|
} catch (h) {
|
|
25
25
|
i(h);
|
|
26
26
|
}
|
|
27
|
-
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(
|
|
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
|
-
import * as
|
|
31
|
-
import { Subscribe as
|
|
30
|
+
import * as b from "three";
|
|
31
|
+
import { Subscribe as O } from "@realsee/five";
|
|
32
32
|
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
-
import { addDebugPoints as
|
|
34
|
-
import { arrayPositionToVector3 as
|
|
35
|
-
import { isMediaModelTag as
|
|
36
|
-
import { debounce as
|
|
37
|
-
import { throttle as
|
|
38
|
-
import
|
|
39
|
-
import { generateBlankAudio as
|
|
40
|
-
import { resizeObserver as
|
|
41
|
-
import { TagRender as
|
|
42
|
-
import { uuid as
|
|
43
|
-
import { isModelLike as
|
|
33
|
+
import { addDebugPoints as V } from "../utils/addDebugPoints.js";
|
|
34
|
+
import { arrayPositionToVector3 as S } from "../../shared-utils/positionToVector3.js";
|
|
35
|
+
import { isMediaModelTag as _, isModelTag as L } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { debounce as N } from "../utils/debounce.js";
|
|
37
|
+
import { throttle as w } from "../utils/throttle.js";
|
|
38
|
+
import G from "../utils/tag/format.js";
|
|
39
|
+
import { generateBlankAudio as z, AudioNamespace as x } from "../../shared-utils/audio.js";
|
|
40
|
+
import { resizeObserver as U } from "../../shared-utils/dom/resizeObserver.js";
|
|
41
|
+
import { TagRender as $ } from "./TagRender.js";
|
|
42
|
+
import { uuid as W } from "../../shared-utils/uuid.js";
|
|
43
|
+
import { isModelLike as J } from "../../shared-utils/five/mode.js";
|
|
44
44
|
import "hammerjs";
|
|
45
45
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
46
46
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
47
47
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
|
-
import { tweenProgress as
|
|
49
|
-
import { waitFiveModelLoaded as
|
|
50
|
-
import { DebugUtil as
|
|
48
|
+
import { tweenProgress as j } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
49
|
+
import { waitFiveModelLoaded as q } from "../../shared-utils/five/fiveModelLoad.js";
|
|
50
|
+
import { DebugUtil as H } from "../utils/DebugUtil.js";
|
|
51
51
|
import "./TagComputer.js";
|
|
52
52
|
import "../utils/tagPosition.js";
|
|
53
53
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -172,8 +172,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
172
172
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
173
173
|
import "@realsee/five/gltf-loader";
|
|
174
174
|
import "../../shared-utils/animationFrame/index.js";
|
|
175
|
-
const
|
|
176
|
-
class
|
|
175
|
+
const E = "Dnalogel-PanoTagPlugin", Mi = (d) => `${E}--${d}`;
|
|
176
|
+
class Oi extends $ {
|
|
177
177
|
constructor(e, t) {
|
|
178
178
|
super(e);
|
|
179
179
|
/** state */
|
|
@@ -182,13 +182,13 @@ class Mi extends z {
|
|
|
182
182
|
l(this, "params");
|
|
183
183
|
/** debug */
|
|
184
184
|
l(this, "debug");
|
|
185
|
-
l(this, "debugUtil", new
|
|
185
|
+
l(this, "debugUtil", new H(this));
|
|
186
186
|
/** 更改 tag 模型 */
|
|
187
187
|
l(this, "changeTagModel", (e, t) => c(this, null, function* () {
|
|
188
188
|
e.data = f({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
189
189
|
}));
|
|
190
190
|
l(this, "whyHide", (e) => {
|
|
191
|
-
var i,
|
|
191
|
+
var i, o, s;
|
|
192
192
|
if (!this.state.enabled)
|
|
193
193
|
return { reason: `plugin.state.enabled is ${this.state.enabled}` };
|
|
194
194
|
if (!this.state.visible)
|
|
@@ -201,29 +201,28 @@ class Mi extends z {
|
|
|
201
201
|
if (t.stickType === "Model" || t.stickType === "Plane")
|
|
202
202
|
return { reason: "maybe blocked by the five model" };
|
|
203
203
|
if (!t.state.visible) {
|
|
204
|
-
const n = (
|
|
205
|
-
return { reason: (
|
|
204
|
+
const n = (o = (i = this.getPanoIndexCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : i.__debug_visible_reason__) == null ? void 0 : o.reason;
|
|
205
|
+
return { reason: (s = n == null ? void 0 : n.type) != null ? s : n, reasonObj: n };
|
|
206
206
|
}
|
|
207
207
|
return { reason: "check your eyes" };
|
|
208
208
|
});
|
|
209
209
|
l(this, "updateVisible", () => {
|
|
210
210
|
const e = this.five.getCurrentState().mode;
|
|
211
211
|
this.tags.forEach((t) => {
|
|
212
|
-
|
|
212
|
+
_(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
213
213
|
}), this.setVisible(), this.updateRenderAllTags();
|
|
214
214
|
});
|
|
215
215
|
l(this, "handleFiveWantsMoveToPano", (e) => {
|
|
216
216
|
this.tags.forEach((t) => {
|
|
217
217
|
this.getVisible(t, { panoIndex: e }) && (t.state.visible = !0);
|
|
218
|
-
const
|
|
219
|
-
typeof
|
|
218
|
+
const o = this.getTagConfig(t);
|
|
219
|
+
typeof o.visibleConfig == "object" && t.temporaryState && (o.visibleConfig.keep ? t.temporaryState.visible = o.visibleConfig.keep === "visible" : t.temporaryState.visible = !!o.visibleConfig.alwaysShowWhenMovePano);
|
|
220
220
|
}), this.updateTagContainerVisible(), this.updateRenderImagePlane(), this.updateRenderVideoPlane();
|
|
221
221
|
});
|
|
222
222
|
/**
|
|
223
223
|
* @description: 走点/切换模型后显示
|
|
224
224
|
*/
|
|
225
225
|
// private temporaryShow({ withAnimation }: { withAnimation?: boolean } = { withAnimation: false }) {
|
|
226
|
-
// this.store.visibleWithAnimation = withAnimation
|
|
227
226
|
// this.temporaryState.visible = true
|
|
228
227
|
// this.updateTagContainerVisible()
|
|
229
228
|
// }
|
|
@@ -231,7 +230,6 @@ class Mi extends z {
|
|
|
231
230
|
* @description: 走点/切换模型时临时隐藏
|
|
232
231
|
*/
|
|
233
232
|
// private temporaryHide({ withAnimation }: { withAnimation?: boolean } = { withAnimation: false }) {
|
|
234
|
-
// this.store.visibleWithAnimation = withAnimation
|
|
235
233
|
// this.temporaryState.visible = false
|
|
236
234
|
// this.updateTagContainerVisible()
|
|
237
235
|
// }
|
|
@@ -241,8 +239,8 @@ class Mi extends z {
|
|
|
241
239
|
if (!e.tag.state)
|
|
242
240
|
return console.warn("Clickhandler: params.tag.state is undefined");
|
|
243
241
|
const t = this.can("fold", e.tag), i = this.can("unfold", e.tag);
|
|
244
|
-
t && i && (e.tag.state.unfolded = !e.tag.state.unfolded, e.tag.state.unfolded && this.tags.forEach((
|
|
245
|
-
|
|
242
|
+
t && i && (e.tag.state.unfolded = !e.tag.state.unfolded, e.tag.state.unfolded && this.tags.forEach((o) => {
|
|
243
|
+
o.id !== e.tag.id && o.state && this.can("fold", o) && (o.state.unfolded = !1);
|
|
246
244
|
}), this.updateRenderAllTags());
|
|
247
245
|
});
|
|
248
246
|
l(this, "handleFiveCameraUpdate", () => {
|
|
@@ -250,21 +248,21 @@ class Mi extends z {
|
|
|
250
248
|
});
|
|
251
249
|
l(this, "handleFivePanoArrived", () => c(this, null, function* () {
|
|
252
250
|
this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
253
|
-
e.temporaryState =
|
|
254
|
-
}), this.tags.filter(
|
|
251
|
+
e.temporaryState = v(m({}, e.temporaryState), { visible: !0 });
|
|
252
|
+
}), this.tags.filter(L).filter((e) => {
|
|
255
253
|
var t;
|
|
256
254
|
return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
257
255
|
}).forEach((e) => {
|
|
258
256
|
var h;
|
|
259
|
-
const t = new
|
|
257
|
+
const t = new b.Mesh(new b.BoxGeometry(), new b.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
|
|
260
258
|
if (!i)
|
|
261
259
|
return;
|
|
262
260
|
t.position.copy(i.position), t.quaternion.copy(i.quaternion);
|
|
263
|
-
const
|
|
264
|
-
t.lookAt(
|
|
265
|
-
const
|
|
261
|
+
const o = this.five.camera.position;
|
|
262
|
+
t.lookAt(o.clone().setY(t.position.y));
|
|
263
|
+
const s = i.quaternion.clone(), n = t.quaternion.clone(), r = j();
|
|
266
264
|
r.onUpdate(({ progress: p }) => {
|
|
267
|
-
i.quaternion.copy(
|
|
265
|
+
i.quaternion.copy(s.clone().slerp(n, p));
|
|
268
266
|
}), r.play();
|
|
269
267
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
270
268
|
}));
|
|
@@ -273,9 +271,9 @@ class Mi extends z {
|
|
|
273
271
|
this.setVisible(), this.updateRenderAllTags();
|
|
274
272
|
});
|
|
275
273
|
l(this, "onFiveEveryReady", () => {
|
|
276
|
-
this.setUnfoldedByCamera(),
|
|
274
|
+
this.setUnfoldedByCamera(), J(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 }), this.updateRenderVideoPlane(), this.updateRenderImagePlane(), this.updateTagModelVisible();
|
|
277
275
|
});
|
|
278
|
-
this.params = f({}, { debug: !1, config: this.config },
|
|
276
|
+
this.params = f({}, { debug: !1, config: this.config }, m({}, t)), this.debug = this.params.debug, this.config = this.params.config, z(1, { namespace: x.PlayAudio });
|
|
279
277
|
try {
|
|
280
278
|
const i = window;
|
|
281
279
|
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
@@ -287,15 +285,15 @@ class Mi extends z {
|
|
|
287
285
|
*/
|
|
288
286
|
load(e, t) {
|
|
289
287
|
return c(this, null, function* () {
|
|
290
|
-
var
|
|
291
|
-
this.clearTags(), console.debug(
|
|
292
|
-
globalConfig: (
|
|
293
|
-
contentTypeConfig: (
|
|
294
|
-
});
|
|
288
|
+
var o, s;
|
|
289
|
+
this.clearTags(), console.debug(E, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = f({}, this.config, {
|
|
290
|
+
globalConfig: (o = e.globalConfig) != null ? o : {},
|
|
291
|
+
contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
|
|
292
|
+
}), this.store.visibleWithAnimation = !0;
|
|
295
293
|
const i = yield this.addTag(e.tagList, t);
|
|
296
|
-
if (this.debug)
|
|
294
|
+
if (this.store.visibleWithAnimation = void 0, this.debug)
|
|
297
295
|
try {
|
|
298
|
-
|
|
296
|
+
V(this.five, this.tags);
|
|
299
297
|
} catch (n) {
|
|
300
298
|
console.error(n);
|
|
301
299
|
}
|
|
@@ -307,39 +305,41 @@ class Mi extends z {
|
|
|
307
305
|
*/
|
|
308
306
|
addTag(e, t) {
|
|
309
307
|
return c(this, null, function* () {
|
|
310
|
-
const
|
|
311
|
-
var T, y, C;
|
|
312
|
-
const n = JSON.parse(JSON.stringify(
|
|
313
|
-
|
|
314
|
-
const h = this.calculateTagConfig(
|
|
315
|
-
return
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
308
|
+
const o = (Array.isArray(e) ? e : [e]).filter((s) => s.position).map((s) => {
|
|
309
|
+
var T, y, C, A, D;
|
|
310
|
+
const n = JSON.parse(JSON.stringify(s.data)), r = s.config ? JSON.parse(JSON.stringify(s.config)) : {};
|
|
311
|
+
s.initialConfig = r;
|
|
312
|
+
const h = this.calculateTagConfig(s), p = this.getTagConfig(s);
|
|
313
|
+
return s.config = p, v(m({}, s), {
|
|
314
|
+
contentType: (T = s.contentType) != null ? T : s.type,
|
|
315
|
+
stickType: (y = s.stickType) != null ? y : "2DPoint",
|
|
316
|
+
enabled: (C = s.enabled) != null ? C : !0,
|
|
317
|
+
id: (A = s.id) != null ? A : W(),
|
|
318
|
+
data: (D = p.initialData) != null && D.important ? f(s.data, n, p.initialData) : f(s.data, p.initialData, n),
|
|
319
|
+
state: m({
|
|
320
320
|
visible: void 0,
|
|
321
|
-
unfolded: !this.can("fold",
|
|
321
|
+
unfolded: !this.can("fold", s)
|
|
322
322
|
}, p.initialState),
|
|
323
|
-
hooks: new
|
|
324
|
-
originPosition:
|
|
323
|
+
hooks: new O(),
|
|
324
|
+
originPosition: s.position,
|
|
325
325
|
position: (() => {
|
|
326
|
-
const
|
|
327
|
-
return Array.isArray(
|
|
326
|
+
const g = this.getTransformedPostion(s.position);
|
|
327
|
+
return Array.isArray(g) ? g.map((I) => I.toArray()) : g.toArray();
|
|
328
328
|
})(),
|
|
329
329
|
initialConfig: r,
|
|
330
330
|
computedConfig: h,
|
|
331
331
|
config: p,
|
|
332
|
-
unfold: () => this.changeUnfoldedById(
|
|
333
|
-
fold: () => this.changeUnfoldedById(
|
|
334
|
-
enable: () => this.changeEnabledById(
|
|
335
|
-
disable: () => this.changeEnabledById(
|
|
336
|
-
destroy: () => this.destroyTagById(
|
|
337
|
-
changeData: (
|
|
332
|
+
unfold: () => this.changeUnfoldedById(s.id, !0),
|
|
333
|
+
fold: () => this.changeUnfoldedById(s.id, !1),
|
|
334
|
+
enable: () => this.changeEnabledById(s.id, !0),
|
|
335
|
+
disable: () => this.changeEnabledById(s.id, !1),
|
|
336
|
+
destroy: () => this.destroyTagById(s.id),
|
|
337
|
+
changeData: (g) => this.changeDataById(s.id, g)
|
|
338
338
|
});
|
|
339
339
|
});
|
|
340
|
-
return
|
|
341
|
-
var
|
|
342
|
-
this.store.eventListenerDisposer && ((n = (
|
|
340
|
+
return o.forEach(G), this.tags.push(...o), q(this.five).then(() => c(this, null, function* () {
|
|
341
|
+
var s, n, r;
|
|
342
|
+
this.store.eventListenerDisposer && ((n = (s = this.store).eventListenerDisposer) == null || n.call(s)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(o), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }), this.updatePointTagPosition(), this.updateRenderAllTags();
|
|
343
343
|
}));
|
|
344
344
|
});
|
|
345
345
|
}
|
|
@@ -392,26 +392,26 @@ class Mi extends z {
|
|
|
392
392
|
setState(e, t) {
|
|
393
393
|
if (this.checkDisposed())
|
|
394
394
|
return;
|
|
395
|
-
const { userAction: i = !0, visibleWithAnimation:
|
|
396
|
-
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation =
|
|
395
|
+
const { userAction: i = !0, visibleWithAnimation: o = !1 } = t != null ? t : {}, s = m({}, this.state);
|
|
396
|
+
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = o, s.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), s.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
399
399
|
* @description: 销毁
|
|
400
400
|
*/
|
|
401
401
|
dispose() {
|
|
402
|
-
var e, t, i,
|
|
402
|
+
var e, t, i, o, s, n;
|
|
403
403
|
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
|
|
404
404
|
var h;
|
|
405
405
|
return (h = r.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
|
|
406
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], (
|
|
406
|
+
}), this.tags = [], (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.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
407
407
|
}
|
|
408
408
|
changeUnfoldedById(e, t) {
|
|
409
409
|
var n;
|
|
410
410
|
const i = this.getTagById(e);
|
|
411
411
|
if (!i)
|
|
412
412
|
return;
|
|
413
|
-
const
|
|
414
|
-
if (
|
|
413
|
+
const o = this.can("fold", i), s = this.can("unfold", i);
|
|
414
|
+
if (o && s) {
|
|
415
415
|
i.state.unfolded = t;
|
|
416
416
|
const r = this.filterPointTag;
|
|
417
417
|
(n = this.TagContainerSvelte) == null || n.$set({ tags: r });
|
|
@@ -427,15 +427,15 @@ class Mi extends z {
|
|
|
427
427
|
*/
|
|
428
428
|
changeTagNormalById(e, t) {
|
|
429
429
|
const i = this.getTagById(e);
|
|
430
|
-
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal =
|
|
430
|
+
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = S(t));
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
433
|
* @description: 改变data
|
|
434
434
|
*/
|
|
435
435
|
changeDataById(e, t, i = !0) {
|
|
436
|
-
const
|
|
437
|
-
let
|
|
438
|
-
|
|
436
|
+
const o = this.getTagById(e);
|
|
437
|
+
let s = !1;
|
|
438
|
+
o && (o.data && (s = !0), i ? o.data = f(o.data, t) : o.data = m(m({}, o.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), s && o.hooks.emit("dataChanged", o.data));
|
|
439
439
|
}
|
|
440
440
|
/**
|
|
441
441
|
* @description: 改变tag的stickType
|
|
@@ -447,17 +447,17 @@ class Mi extends z {
|
|
|
447
447
|
* @description: 改变tag任意属性
|
|
448
448
|
*/
|
|
449
449
|
changeTagById(e, t, i = !0) {
|
|
450
|
-
const
|
|
451
|
-
let
|
|
452
|
-
t && (t.data && (
|
|
450
|
+
const o = this.getTagById(e);
|
|
451
|
+
let s = !1;
|
|
452
|
+
t && (t.data && (s = !0), i ? f(o, t) : Object.assign(o, t), o != null && o.tag3DContentSvelte && (t != null && t.normal) && (o.tag3DContentSvelte.currentNormal = S(t.normal)), this.setVisible(), this.updateRenderAllTags(), this.clearUnusedPanelTag(), s && o.hooks.emit("dataChanged", o.data));
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @description: 销毁tag
|
|
456
456
|
*/
|
|
457
457
|
destroyTagById(e) {
|
|
458
458
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
459
|
-
const
|
|
460
|
-
|
|
459
|
+
const o = this.tags.findIndex((s) => s.id === i);
|
|
460
|
+
o !== -1 && this.tags.splice(o, 1);
|
|
461
461
|
}), this.updateRenderAllTags();
|
|
462
462
|
}
|
|
463
463
|
/**
|
|
@@ -465,7 +465,7 @@ class Mi extends z {
|
|
|
465
465
|
*/
|
|
466
466
|
setVisibleAndUnfolded() {
|
|
467
467
|
return c(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
468
|
-
return this.setVisible(), e ? new Promise((t) => {
|
|
468
|
+
return this.store.visibleWithAnimation = e, this.setVisible(), e ? new Promise((t) => {
|
|
469
469
|
setTimeout(() => {
|
|
470
470
|
this.setUnfoldedByPanoIndex(), t();
|
|
471
471
|
}, 10);
|
|
@@ -486,9 +486,9 @@ class Mi extends z {
|
|
|
486
486
|
}
|
|
487
487
|
handleDisable() {
|
|
488
488
|
var e, t, i;
|
|
489
|
-
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((
|
|
490
|
-
var
|
|
491
|
-
(
|
|
489
|
+
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) => {
|
|
490
|
+
var s;
|
|
491
|
+
(s = o.tag3DContentSvelte) == null || s.dispose(), o.tag3DContentSvelte = void 0;
|
|
492
492
|
}), this.five.needsRender = !0;
|
|
493
493
|
}
|
|
494
494
|
/**
|
|
@@ -497,13 +497,13 @@ class Mi extends z {
|
|
|
497
497
|
addEventListener() {
|
|
498
498
|
const { five: e, hooks: t } = this;
|
|
499
499
|
let i = !1;
|
|
500
|
-
const
|
|
500
|
+
const o = w(() => {
|
|
501
501
|
i || (i = !0, e.ready().then(() => {
|
|
502
502
|
this.onFiveEveryReady(), i = !1;
|
|
503
503
|
}));
|
|
504
504
|
}, 150);
|
|
505
|
-
return e.on("cameraUpdate",
|
|
506
|
-
e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("modeChange", this.updateVisible), e.off("initAnimationEnded", this.updateVisible), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraUpdate",
|
|
505
|
+
return e.on("cameraUpdate", o), this.updateVisible(), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("modeChange", this.updateVisible), e.on("initAnimationEnded", this.updateVisible), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), t.on("click", this.clickhandler), () => {
|
|
506
|
+
e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("modeChange", this.updateVisible), e.off("initAnimationEnded", this.updateVisible), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraUpdate", o), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
509
|
addResizeListener() {
|
|
@@ -521,17 +521,17 @@ class Mi extends z {
|
|
|
521
521
|
this.state.enabled && (this.show(), this.updateRenderAllTags());
|
|
522
522
|
}, i = () => {
|
|
523
523
|
this.state.enabled && this.hide();
|
|
524
|
-
}, { observe:
|
|
525
|
-
|
|
524
|
+
}, { observe: o, unobserve: s } = U(
|
|
525
|
+
w(() => {
|
|
526
526
|
this.store.resizeObserverDisposer && i();
|
|
527
527
|
}, 500),
|
|
528
528
|
e
|
|
529
|
-
), { observe: n, unobserve: r } =
|
|
530
|
-
|
|
529
|
+
), { observe: n, unobserve: r } = U(
|
|
530
|
+
N(() => t(), 400),
|
|
531
531
|
e
|
|
532
532
|
);
|
|
533
|
-
return
|
|
534
|
-
|
|
533
|
+
return o(), n(), () => {
|
|
534
|
+
s(), r();
|
|
535
535
|
};
|
|
536
536
|
}
|
|
537
537
|
setUnfoldedByCamera() {
|
|
@@ -545,12 +545,12 @@ class Mi extends z {
|
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
changeTagMode(e, t) {
|
|
548
|
-
var i,
|
|
549
|
-
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (
|
|
548
|
+
var i, o, s, n, r, h;
|
|
549
|
+
((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((p) => p == null ? void 0 : p()), e.tag3DContentSvelte = void 0);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
export {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
553
|
+
Oi as PanoTagPluginController,
|
|
554
|
+
Oi as default,
|
|
555
|
+
Mi as pluginFlag
|
|
556
556
|
};
|
|
@@ -20,10 +20,17 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
|
|
|
20
20
|
/** 开启/禁用 */
|
|
21
21
|
enabled?: boolean;
|
|
22
22
|
/** 唯一标识 */
|
|
23
|
-
id
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
id?: TagId;
|
|
24
|
+
/**
|
|
25
|
+
* @description: 附着方式
|
|
26
|
+
* @type {StickType}
|
|
27
|
+
* @default '2DPoint'
|
|
28
|
+
*/
|
|
29
|
+
stickType?: S;
|
|
30
|
+
/**
|
|
31
|
+
* @description: 内容类型,根据内容类型展示对应UI
|
|
32
|
+
* @type {TagContentType}
|
|
33
|
+
*/
|
|
27
34
|
contentType: LiteralUnion<C, string>;
|
|
28
35
|
/** 点 */
|
|
29
36
|
position: S extends 'Plane' ? [Position, Position, Position, Position] : S extends '2DPoint' | '3DPoint' | 'Model' ? Position : Position | [Position, Position, Position, Position];
|