@realsee/dnalogel 3.36.12 → 3.37.1
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 +3 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/dist/index.cjs.js +52 -52
- package/dist/index.js +3788 -3780
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/animationFrame/index.d.ts +1 -0
- 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/ModelMakerPluginInstance.html +4 -4
- 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 +18 -18
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +4 -3
- package/docs/classes/Util.Interval.html +4 -3
- package/docs/classes/Util.LineSegments.html +4 -3
- package/docs/classes/Util.Magnifier.html +4 -3
- package/docs/classes/Util.Object3D.html +4 -3
- package/docs/classes/Util.PointDomHelper.html +4 -3
- package/docs/classes/Util.PointHelper.html +4 -3
- package/docs/classes/Util.PointSelectorHelper.html +4 -3
- package/docs/classes/Util.Rectangle.html +4 -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/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +4 -3
- package/docs/functions/Util.awaitNextFrame.html +336 -0
- package/docs/functions/Util.blink.html +5 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +4 -3
- package/docs/functions/Util.equal.html +4 -3
- package/docs/functions/Util.getCoordsFromClient.html +4 -3
- package/docs/functions/Util.getCoordsFromElement.html +4 -3
- package/docs/functions/Util.getFrameTime.html +5 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -3
- package/docs/functions/Util.isAbsoluteURL.html +4 -3
- package/docs/functions/Util.isModelLike.html +4 -3
- package/docs/functions/Util.isNil.html +4 -3
- package/docs/functions/Util.isPanoramaLike.html +4 -3
- package/docs/functions/Util.nextFrame.html +4 -3
- package/docs/functions/Util.notNil.html +4 -3
- package/docs/functions/Util.reblink.html +5 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -4
- package/docs/functions/Util.tweenProgress.html +4 -3
- package/docs/functions/Util.uuid.html +4 -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/ContentTypeMapInterface.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.GuildLineConfig.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.BlinkAnimeOptions.html +7 -6
- package/docs/interfaces/Util.MagnifierParameter.html +4 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -3
- package/docs/interfaces/Util.PointIntersection.html +4 -3
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +8 -7
- 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/SculptData.html +3 -3
- package/docs/modules/Util.html +5 -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/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/SculptData.BoxData.html +3 -3
- package/docs/types/SculptData.CircleData.html +3 -3
- package/docs/types/SculptData.CylinderData.html +3 -3
- package/docs/types/SculptData.PointData.html +3 -3
- package/docs/types/SculptData.PolygonData.html +3 -3
- package/docs/types/SculptData.PolylineData.html +3 -3
- package/docs/types/SculptData.PrismData.html +3 -3
- package/docs/types/SculptData.RectangleData.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- 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.js +7 -7
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +210 -210
- package/libs/PanoTagPlugin/controller/index.js +64 -64
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/animationFrame/index.d.ts +1 -0
- package/libs/shared-utils/animationFrame/index.js +37 -13
- package/libs/shared-utils/index.js +11 -10
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/blink.js +16 -16
- package/package.json +1 -1
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
var
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
2
|
var j = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
3
|
+
var x = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var C = (u, l, e) => l in u ? I(u, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[l] = e, k = (u, l) => {
|
|
5
|
+
for (var e in l || (l = {}))
|
|
6
|
+
x.call(l, e) && C(u, e, l[e]);
|
|
7
7
|
if (j)
|
|
8
|
-
for (var
|
|
9
|
-
|
|
10
|
-
return
|
|
8
|
+
for (var e of j(l))
|
|
9
|
+
O.call(l, e) && C(u, e, l[e]);
|
|
10
|
+
return u;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var h = (u, l, e) => (C(u, typeof l != "symbol" ? l + "" : l, e), e);
|
|
13
|
+
var M = (u, l, e) => new Promise((o, t) => {
|
|
14
14
|
var i = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
n(e.next(s));
|
|
17
|
+
} catch (a) {
|
|
18
|
+
t(a);
|
|
19
19
|
}
|
|
20
20
|
}, r = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
n(e.throw(s));
|
|
23
|
+
} catch (a) {
|
|
24
|
+
t(a);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, n = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(i, r);
|
|
27
|
+
n((e = e.apply(u, l)).next());
|
|
28
28
|
});
|
|
29
|
-
import { TagComputer as
|
|
30
|
-
import { Group as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { loadGLTF as
|
|
34
|
-
import { isMediaModelTag as
|
|
35
|
-
import { VideoPlane as
|
|
36
|
-
import { centerPoint as
|
|
37
|
-
import { arrayPositionToVector3 as
|
|
38
|
-
import { debounceByKey as
|
|
29
|
+
import { TagComputer as E } from "./TagComputer.js";
|
|
30
|
+
import { Group as R, Quaternion as G, Vector3 as D, Matrix4 as g } from "three";
|
|
31
|
+
import F from "../Components/TagContainer.js";
|
|
32
|
+
import _ from "../Components/Tag/index.js";
|
|
33
|
+
import { loadGLTF as L } from "../../shared-utils/three/GLTFLoader.js";
|
|
34
|
+
import { isMediaModelTag as y, isStickModelTag as W } from "../utils/tag/tagCheck.js";
|
|
35
|
+
import { VideoPlane as q, ImagePlane as w } from "../utils/model/mediaPlane.js";
|
|
36
|
+
import { centerPoint as $ } from "../../shared-utils/three/centerPoint.js";
|
|
37
|
+
import { arrayPositionToVector3 as S } from "../../shared-utils/positionToVector3.js";
|
|
38
|
+
import { debounceByKey as B } from "../utils/debounce.js";
|
|
39
|
+
import { toArray as v } from "../../shared-utils/util.js";
|
|
39
40
|
import "../utils/tagPosition.js";
|
|
40
41
|
import "../utils/checkRange.js";
|
|
41
42
|
import "../../shared-utils/five/mode.js";
|
|
@@ -45,7 +46,6 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
|
45
46
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
46
47
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
47
48
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
48
|
-
import "../../shared-utils/util.js";
|
|
49
49
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
50
50
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
51
51
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -162,67 +162,67 @@ import "../Components/Tag/LinkTag.js";
|
|
|
162
162
|
import "../Components/Tag/PanoramaTag.js";
|
|
163
163
|
import "../Components/Tag/CustomTag.js";
|
|
164
164
|
import "@realsee/five/gltf-loader";
|
|
165
|
-
const
|
|
166
|
-
class
|
|
167
|
-
constructor(
|
|
168
|
-
super(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
165
|
+
const N = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
166
|
+
class gi extends E {
|
|
167
|
+
constructor(e) {
|
|
168
|
+
super(e);
|
|
169
|
+
h(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
170
|
+
h(this, "contentTypeMap", /* @__PURE__ */ new Map());
|
|
171
|
+
h(this, "group", new R());
|
|
172
|
+
h(this, "imagePlaneGroup", new R());
|
|
173
|
+
h(this, "gltfObjectGroup", new R());
|
|
174
174
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
175
|
-
|
|
175
|
+
h(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
176
176
|
/** 临时状态 */
|
|
177
|
-
|
|
177
|
+
h(this, "temporaryState", { visible: !0 });
|
|
178
178
|
/** 点标签 */
|
|
179
|
-
|
|
179
|
+
h(this, "TagContainerSvelte");
|
|
180
180
|
/**
|
|
181
181
|
* @description 渲染3D贴片
|
|
182
182
|
*/
|
|
183
|
-
|
|
184
|
-
this.filterCSS3DTag.forEach((
|
|
185
|
-
var
|
|
186
|
-
if (
|
|
187
|
-
const { svelteApp:
|
|
188
|
-
if (
|
|
189
|
-
const
|
|
190
|
-
|
|
183
|
+
h(this, "updateRender3DDomTag", (e) => {
|
|
184
|
+
(e ? v(e) : this.filterCSS3DTag).forEach((t) => {
|
|
185
|
+
var i, r, n, s, a;
|
|
186
|
+
if (t.tag3DContentSvelte) {
|
|
187
|
+
const { svelteApp: c, css3DInstance: m, initialNormal: f, currentNormal: d } = t.tag3DContentSvelte;
|
|
188
|
+
if ((r = m == null ? void 0 : m.css3DObject) == null || r.setVisible((this.state.visible && ((i = t.state) == null ? void 0 : i.visible)) !== !1), c.$set({ tag: t, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !f.equals(d)) {
|
|
189
|
+
const p = new G().setFromUnitVectors(f, d);
|
|
190
|
+
m.css3DObject.setRotationFromQuaternion(p);
|
|
191
191
|
}
|
|
192
192
|
return;
|
|
193
193
|
} else {
|
|
194
|
-
if (
|
|
194
|
+
if (y(t) && !((n = t.model) != null && n.object) || ((s = t.state) == null ? void 0 : s.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
|
|
195
195
|
return;
|
|
196
|
-
if (
|
|
196
|
+
if (t.stickType === "3DPoint" && !t.normal)
|
|
197
197
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
198
|
-
const
|
|
199
|
-
if (!
|
|
198
|
+
const c = this.getPositions(t);
|
|
199
|
+
if (!c)
|
|
200
200
|
return;
|
|
201
|
-
const
|
|
202
|
-
if (!
|
|
201
|
+
const m = this.getTagNormal(t);
|
|
202
|
+
if (!m)
|
|
203
203
|
return;
|
|
204
|
-
const
|
|
205
|
-
if (this.getRenderType(
|
|
206
|
-
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
var
|
|
210
|
-
if (
|
|
211
|
-
const
|
|
212
|
-
this.hooks.emit("click", { event:
|
|
204
|
+
const f = this.getTagConfig(t), d = k({ wrapperStyle: { zIndex: this.calculateTagZIndex(t).toString() } }, f.tag3DConfig);
|
|
205
|
+
if (this.getRenderType(t) === "BehindDom" || d.mode === "behind") {
|
|
206
|
+
d.mode = "behind", d.container = document.createElement("div");
|
|
207
|
+
const P = "black";
|
|
208
|
+
d.container.style.backgroundColor = P, d.container.style.border = `3px solid ${P}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
209
|
+
var b;
|
|
210
|
+
if (p.css3DObject.opacityMesh && f.clickable !== !1) {
|
|
211
|
+
const A = this.addObjectClickHandler(t, p.css3DObject.opacityMesh, (V) => {
|
|
212
|
+
this.hooks.emit("click", { event: V, target: "TagContent", tag: t });
|
|
213
213
|
});
|
|
214
|
-
(
|
|
214
|
+
(b = this.store.css3DRenderDisposer.get(t.id)) == null || b.push(A);
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
const
|
|
219
|
-
if (!
|
|
218
|
+
const p = this.css3DRenderPlugin.create3DDomContainer(c, d);
|
|
219
|
+
if (!p)
|
|
220
220
|
return;
|
|
221
|
-
this.store.css3DRenderDisposer.set(
|
|
222
|
-
const
|
|
223
|
-
target:
|
|
221
|
+
this.store.css3DRenderDisposer.set(t.id, [p.dispose]);
|
|
222
|
+
const T = new _({
|
|
223
|
+
target: p.container,
|
|
224
224
|
props: {
|
|
225
|
-
tag:
|
|
225
|
+
tag: t,
|
|
226
226
|
hooks: this.hooks,
|
|
227
227
|
/** 模型标签要等模型加载好之后再展示 */
|
|
228
228
|
state: this.state,
|
|
@@ -230,86 +230,86 @@ class bi extends x {
|
|
|
230
230
|
temporaryState: this.temporaryState
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
|
|
234
|
-
svelteApp:
|
|
235
|
-
domContainer:
|
|
236
|
-
css3DInstance:
|
|
237
|
-
initialNormal:
|
|
238
|
-
currentNormal:
|
|
233
|
+
t.tag3DContentSvelte = {
|
|
234
|
+
svelteApp: T,
|
|
235
|
+
domContainer: p,
|
|
236
|
+
css3DInstance: p,
|
|
237
|
+
initialNormal: m,
|
|
238
|
+
currentNormal: m,
|
|
239
239
|
dispose: () => {
|
|
240
|
-
|
|
240
|
+
T.$destroy(), p.dispose();
|
|
241
241
|
}
|
|
242
|
-
},
|
|
242
|
+
}, y(t) && ((a = t.model) != null && a.object) && this.updateTagCss3DObjectMatrix(t, t.model.object);
|
|
243
243
|
}
|
|
244
244
|
}), this.clearUnusedPanelTag();
|
|
245
245
|
});
|
|
246
246
|
/**
|
|
247
247
|
* @description 渲染单个点的标签
|
|
248
248
|
*/
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
this.setTagZIndex(
|
|
249
|
+
h(this, "updateRenderPointTag", (e) => {
|
|
250
|
+
const o = e ? v(e) : this.filterPointTag;
|
|
251
|
+
this.setTagZIndex(o), this.setPointTagPosition(), B("updateDomView", this.updateDomView)();
|
|
252
252
|
});
|
|
253
253
|
/** 加载外部模型 */
|
|
254
|
-
|
|
255
|
-
var
|
|
256
|
-
const
|
|
257
|
-
if (!
|
|
254
|
+
h(this, "loadModel", (e) => M(this, null, function* () {
|
|
255
|
+
var n;
|
|
256
|
+
const o = e.data.modelUrl;
|
|
257
|
+
if (!o)
|
|
258
258
|
return;
|
|
259
|
-
|
|
260
|
-
const
|
|
261
|
-
var
|
|
262
|
-
const
|
|
263
|
-
customID:
|
|
259
|
+
e.loading = !0;
|
|
260
|
+
const t = L(o).then((s) => {
|
|
261
|
+
var m;
|
|
262
|
+
const a = Object.assign(s.scene, {
|
|
263
|
+
customID: e.id,
|
|
264
264
|
isTagModel: !0,
|
|
265
|
-
removeEventListener: this.getTagConfig(
|
|
266
|
-
} : this.addObjectClickHandler(
|
|
267
|
-
this.hooks.emit("click", { target: "TagModel", tag:
|
|
265
|
+
removeEventListener: this.getTagConfig(e).clickable === !1 ? () => {
|
|
266
|
+
} : this.addObjectClickHandler(e, s.scene, (f) => {
|
|
267
|
+
this.hooks.emit("click", { target: "TagModel", tag: e, event: f });
|
|
268
268
|
})
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return a.visible = this.getCurrentVisibleState(e), new g().fromArray(e.matrix).decompose(a.position, a.quaternion, a.scale), a.updateWorldMatrix(!0, !0), a.visible = this.getVisible(e), (m = this.getTagConfig(e).modelConfig) != null && m.autoLookAtEnabled && a.lookAt(this.five.camera.position.clone().setY(a.position.y)), a;
|
|
271
271
|
});
|
|
272
|
-
|
|
273
|
-
const i = yield
|
|
274
|
-
if (
|
|
272
|
+
e.model = { promise: t };
|
|
273
|
+
const i = yield t;
|
|
274
|
+
if (e.loading = !1, ((n = e.model) == null ? void 0 : n.promise) !== t || !this.tags.includes(e))
|
|
275
275
|
return;
|
|
276
|
-
|
|
277
|
-
const r = this.gltfObjectGroup.children.find((s) => s.customID ===
|
|
278
|
-
if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(),
|
|
279
|
-
if (this.getRenderType(
|
|
280
|
-
const s =
|
|
281
|
-
|
|
282
|
-
objectFit:
|
|
276
|
+
e.model.object = i;
|
|
277
|
+
const r = this.gltfObjectGroup.children.find((s) => s.customID === e.id);
|
|
278
|
+
if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(), y(e)) {
|
|
279
|
+
if (this.getRenderType(e) === "Mesh" && !e.mediaPlane) {
|
|
280
|
+
const s = e.data.mediaPosition.map(S);
|
|
281
|
+
e.mediaPlane = new w(e.data.mediaData[0].url, e.data.mediaPosition.map(S), {
|
|
282
|
+
objectFit: e.data.objectFit
|
|
283
283
|
});
|
|
284
|
-
const
|
|
285
|
-
|
|
284
|
+
const a = new D().addVectors(s[0], s[2]).divideScalar(2);
|
|
285
|
+
e.mediaPlane.position.copy(a), i.add(e.mediaPlane);
|
|
286
286
|
}
|
|
287
|
-
this.getRenderType(
|
|
287
|
+
this.getRenderType(e) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(e, i), i.updateTagCss3DObjectMatrix());
|
|
288
288
|
}
|
|
289
289
|
return this.gltfObjectGroup.add(i), i;
|
|
290
290
|
}));
|
|
291
|
-
|
|
292
|
-
var
|
|
293
|
-
const
|
|
291
|
+
h(this, "updateDomView", (e = {}) => {
|
|
292
|
+
var t;
|
|
293
|
+
const o = this.filterPointTag.filter((i) => i.state.visible);
|
|
294
294
|
if (this.TagContainerSvelte)
|
|
295
|
-
this.TagContainerSvelte.$set({ tags:
|
|
295
|
+
this.TagContainerSvelte.$set({ tags: o, state: this.state, temporaryState: this.temporaryState });
|
|
296
296
|
else {
|
|
297
|
-
if (!
|
|
297
|
+
if (!o.length)
|
|
298
298
|
return;
|
|
299
299
|
const i = this.container;
|
|
300
300
|
if (!i)
|
|
301
301
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
302
|
-
this.TagContainerSvelte = new
|
|
302
|
+
this.TagContainerSvelte = new F({
|
|
303
303
|
target: i,
|
|
304
304
|
props: {
|
|
305
305
|
hooks: this.hooks,
|
|
306
|
-
tags:
|
|
306
|
+
tags: o,
|
|
307
307
|
state: this.state,
|
|
308
308
|
temporaryState: this.temporaryState,
|
|
309
309
|
mediaStore: this.mediaStore,
|
|
310
310
|
rendererMap: this.rendererMap,
|
|
311
311
|
contentTypeMap: this.contentTypeMap,
|
|
312
|
-
withAnimation: (
|
|
312
|
+
withAnimation: (t = e == null ? void 0 : e.withAnimation) != null ? t : this.store.visibleWithAnimation,
|
|
313
313
|
zIndex: this.params.containerZIndex
|
|
314
314
|
}
|
|
315
315
|
});
|
|
@@ -326,84 +326,84 @@ class bi extends x {
|
|
|
326
326
|
* @param config.usePoint 是否需要标签点, 默认为 false
|
|
327
327
|
* @note 优先级低于 tag.element
|
|
328
328
|
*/
|
|
329
|
-
registerRenderer(
|
|
329
|
+
registerRenderer(e, o, t) {
|
|
330
330
|
var i;
|
|
331
|
-
this.rendererMap.set(
|
|
331
|
+
this.rendererMap.set(e, { renderer: o, usePoint: (i = t == null ? void 0 : t.usePoint) != null ? i : !1 });
|
|
332
332
|
}
|
|
333
|
-
bindRenderer(
|
|
334
|
-
this.contentTypeMap.set(
|
|
333
|
+
bindRenderer(e, o) {
|
|
334
|
+
this.contentTypeMap.set(e, o);
|
|
335
335
|
}
|
|
336
336
|
clearTags() {
|
|
337
|
-
var
|
|
338
|
-
this.tags.length && (this.tags.forEach((
|
|
339
|
-
var
|
|
340
|
-
(i = (
|
|
341
|
-
}), this.tags = [], (
|
|
337
|
+
var e;
|
|
338
|
+
this.tags.length && (this.tags.forEach((o) => {
|
|
339
|
+
var t, i;
|
|
340
|
+
(i = (t = o.mediaPlane) == null ? void 0 : t.parent) == null || i.remove(o.mediaPlane);
|
|
341
|
+
}), this.tags = [], (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache(), this.tagsLengthWillUpdate = !0;
|
|
342
342
|
}
|
|
343
343
|
/**
|
|
344
344
|
* @description 更新所有标签
|
|
345
345
|
*/
|
|
346
346
|
updateRenderAllTags() {
|
|
347
|
-
this.enabledModelTagSet.clear(), this.tags.forEach((
|
|
347
|
+
this.enabledModelTagSet.clear(), this.tags.forEach((e) => e.stickType === "Model" && this.enabledModelTagSet.add(e.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane(), this.updateRenderVideoPlane();
|
|
348
348
|
}
|
|
349
349
|
updateAllTagsNextFrame() {
|
|
350
350
|
requestAnimationFrame(() => this.updateRenderAllTags());
|
|
351
351
|
}
|
|
352
|
-
updateTag(
|
|
353
|
-
|
|
352
|
+
updateTag(e) {
|
|
353
|
+
e.stickType === "2DPoint" ? this.updateRenderPointTag(e) : e.stickType === "3DPoint" ? (this.updateRenderPointTag(e), this.updateRender3DDomTag(e)) : e.stickType === "Model" ? (this.enabledModelTagSet.clear(), this.tags.forEach((o) => o.stickType === "Model" && this.enabledModelTagSet.add(o.id)), this.updateRenderModelTag()) : e.stickType === "Plane" && (this.getRenderType(e) === "Mesh" ? (this.updateRenderImagePlane(e), this.updateRenderVideoPlane(e)) : this.updateRender3DDomTag(e));
|
|
354
354
|
}
|
|
355
|
-
updateRenderVideoPlane() {
|
|
356
|
-
this.filterImagePlane.filter((
|
|
357
|
-
var
|
|
358
|
-
return ((
|
|
359
|
-
}).forEach((
|
|
360
|
-
var
|
|
361
|
-
const
|
|
362
|
-
if (!o)
|
|
363
|
-
return;
|
|
364
|
-
const { url: i } = o;
|
|
355
|
+
updateRenderVideoPlane(e) {
|
|
356
|
+
(e ? v(e) : this.filterImagePlane.filter((t) => {
|
|
357
|
+
var i, r;
|
|
358
|
+
return ((r = (i = t.data.mediaData) == null ? void 0 : i[0]) == null ? void 0 : r.type) === "Video";
|
|
359
|
+
})).forEach((t) => {
|
|
360
|
+
var m;
|
|
361
|
+
const i = t.data.mediaData[0];
|
|
365
362
|
if (!i)
|
|
366
363
|
return;
|
|
367
|
-
const
|
|
368
|
-
if (
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
364
|
+
const { url: r } = i;
|
|
365
|
+
if (!r)
|
|
366
|
+
return;
|
|
367
|
+
const n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(), c = (() => !!(t.mediaPlane && t.mediaPlane.src !== r))();
|
|
368
|
+
if ((s || c) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), a || c) {
|
|
369
|
+
const f = t.position.map(S), d = new q(r, f, {
|
|
370
|
+
videoCoverSrc: i.videoCoverUrl,
|
|
371
|
+
playButton: t.data.playIcon,
|
|
372
|
+
paused: !((m = t.data.autoplayConfig) != null && m.autoplayVideo),
|
|
373
|
+
objectFit: t.data.objectFit,
|
|
374
|
+
videoTextureMap: N,
|
|
375
|
+
ImageTextureMap: U,
|
|
376
376
|
domEvents: this.domEvents
|
|
377
377
|
});
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
d.onVideoReady = (T) => {
|
|
379
|
+
T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: d.videoInstance }));
|
|
380
380
|
};
|
|
381
|
-
const
|
|
382
|
-
|
|
381
|
+
const p = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
|
|
382
|
+
d.initialRenderHooks(p), t.mediaPlane = d, this.imagePlaneGroup.add(t.mediaPlane);
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
387
|
* @description 渲染图片贴片
|
|
388
388
|
*/
|
|
389
|
-
updateRenderImagePlane() {
|
|
390
|
-
this.filterImagePlane.filter((
|
|
391
|
-
var
|
|
392
|
-
return ((
|
|
393
|
-
}).forEach((
|
|
394
|
-
const { url:
|
|
395
|
-
if (!
|
|
389
|
+
updateRenderImagePlane(e) {
|
|
390
|
+
(e ? v(e) : this.filterImagePlane.filter((t) => {
|
|
391
|
+
var i, r;
|
|
392
|
+
return ((r = (i = t.data.mediaData) == null ? void 0 : i[0]) == null ? void 0 : r.type) === "Image";
|
|
393
|
+
})).forEach((t) => {
|
|
394
|
+
const { url: i } = t.data.mediaData[0];
|
|
395
|
+
if (!i)
|
|
396
396
|
return;
|
|
397
|
-
const
|
|
398
|
-
(
|
|
399
|
-
|
|
397
|
+
const r = t.position.map(S), n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(), c = (() => !!(t.mediaPlane && t.mediaPlane.src !== i))();
|
|
398
|
+
(s || c) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), (a || c) && (t.mediaPlane = new w(i, r, { objectFit: t.data.objectFit }), this.getTagConfig(t).clickable !== !1 && this.domEvents.addAutoBindEventListener(
|
|
399
|
+
t.mediaPlane,
|
|
400
400
|
"click",
|
|
401
|
-
(
|
|
402
|
-
this.hooks.emit("click", { tag:
|
|
401
|
+
(m) => {
|
|
402
|
+
this.hooks.emit("click", { tag: t, target: "TagContent", event: m.origDomEvent });
|
|
403
403
|
},
|
|
404
404
|
{ noEmitWhenHide: !0 }
|
|
405
|
-
), this.imagePlaneGroup.add(
|
|
406
|
-
});
|
|
405
|
+
), this.imagePlaneGroup.add(t.mediaPlane));
|
|
406
|
+
}), this.five.needsRender = !0;
|
|
407
407
|
}
|
|
408
408
|
/** 更新所有模型标签
|
|
409
409
|
*
|
|
@@ -413,76 +413,76 @@ class bi extends x {
|
|
|
413
413
|
* FIXME: 有性能问题,但是之前的逻辑都是这么写,暂时先这样吧
|
|
414
414
|
*/
|
|
415
415
|
updateRenderModelTag() {
|
|
416
|
-
const
|
|
417
|
-
|
|
416
|
+
const e = (i) => !this.enabledModelTagSet.has(i.customID), o = this.gltfObjectGroup.children.filter(e);
|
|
417
|
+
o.forEach((i) => i.removeEventListener()), this.gltfObjectGroup.remove(...o), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
|
|
418
418
|
var r;
|
|
419
|
-
(r = i.model) == null || r.promise.then((
|
|
420
|
-
|
|
419
|
+
(r = i.model) == null || r.promise.then((n) => {
|
|
420
|
+
n.visible = this.getCurrentVisibleState(i);
|
|
421
421
|
});
|
|
422
422
|
}), this.five.needsRender = !0;
|
|
423
423
|
}
|
|
424
424
|
updateTagModelVisible() {
|
|
425
|
-
this.tags.forEach((
|
|
426
|
-
var
|
|
427
|
-
const
|
|
428
|
-
|
|
425
|
+
this.tags.forEach((e) => {
|
|
426
|
+
var t;
|
|
427
|
+
const o = this.getCurrentVisibleState(e);
|
|
428
|
+
o === !0 && this.getRenderType(e) && !e.tag3DContentSvelte && this.updateRender3DDomTag(), e.mediaPlane ? e.mediaPlane.visible = o : e.tag3DContentSvelte && (e.tag3DContentSvelte.css3DInstance.setVisible(o), this.updateDomView()), (t = e.model) != null && t.object && (e.model.object.visible = o);
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
/** 更新标签中多媒体面片的位置
|
|
432
432
|
* @param tag 标签
|
|
433
433
|
* @param model 模型
|
|
434
434
|
*/
|
|
435
|
-
updateTagCss3DObjectMatrix(
|
|
436
|
-
var T, P,
|
|
437
|
-
const
|
|
435
|
+
updateTagCss3DObjectMatrix(e, o) {
|
|
436
|
+
var T, P, b;
|
|
437
|
+
const t = (P = (T = this.getTagConfig(e).tag3DConfig) == null ? void 0 : T.ratio) != null ? P : 216e-5, i = (b = e.tag3DContentSvelte) == null ? void 0 : b.css3DInstance.css3DObject;
|
|
438
438
|
if (!i)
|
|
439
439
|
return;
|
|
440
|
-
const r =
|
|
440
|
+
const r = y(e) ? e.data.mediaPosition : e.position;
|
|
441
441
|
if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
|
|
442
442
|
return;
|
|
443
|
-
|
|
444
|
-
const
|
|
445
|
-
|
|
446
|
-
const
|
|
447
|
-
|
|
443
|
+
o.updateWorldMatrix(!1, !1);
|
|
444
|
+
const n = o.matrixWorld, s = new D().fromArray(r[0]), a = new D().fromArray(r[2]), c = $(s, a).add(new D(0, 0, 5e-4)), m = new g().setPosition(c), f = new g().makeScale(t, t, t), d = new g().multiply(n).multiply(m).multiply(f);
|
|
445
|
+
d.decompose(i.position, i.quaternion, i.scale);
|
|
446
|
+
const p = i.opacityMesh;
|
|
447
|
+
p && d.decompose(p.position, p.quaternion, p.scale);
|
|
448
448
|
}
|
|
449
449
|
/** 添加模型标签 */
|
|
450
|
-
addMediaModelTag(
|
|
451
|
-
return
|
|
452
|
-
const
|
|
453
|
-
yield Promise.all(
|
|
450
|
+
addMediaModelTag(e) {
|
|
451
|
+
return M(this, null, function* () {
|
|
452
|
+
const o = e.filter(W).map((t) => this.loadModel(t));
|
|
453
|
+
yield Promise.all(o), this.setVisible(), this.updateRenderAllTags();
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
457
457
|
* @description 一个点的标签
|
|
458
458
|
*/
|
|
459
|
-
setPointTagPosition() {
|
|
460
|
-
const
|
|
461
|
-
|
|
462
|
-
var
|
|
463
|
-
const
|
|
459
|
+
setPointTagPosition(e) {
|
|
460
|
+
const o = e ? v(e) : this.filterPointTag;
|
|
461
|
+
o.length !== 0 && o.forEach((t) => {
|
|
462
|
+
var s;
|
|
463
|
+
const i = this.getCurrentVisibleState(t), r = (s = t.__Object__) != null ? s : {
|
|
464
464
|
timeoutId: void 0,
|
|
465
465
|
inAnimation: !1
|
|
466
466
|
};
|
|
467
|
-
if (
|
|
467
|
+
if (t.__Object__ = r, !i && t.screenPosition ? (r.inAnimation = !0, r.timeoutId = setTimeout(() => {
|
|
468
468
|
requestAnimationFrame(() => {
|
|
469
|
-
this.getCurrentVisibleState(
|
|
469
|
+
this.getCurrentVisibleState(t) || (r.inAnimation = !1, t.screenPosition = null, this.updateDomView());
|
|
470
470
|
});
|
|
471
|
-
}, 1e3)) :
|
|
471
|
+
}, 1e3)) : r.timeoutId && (clearTimeout(r.timeoutId), r.inAnimation = !1, r.timeoutId = void 0), !i && !r.inAnimation)
|
|
472
472
|
return;
|
|
473
|
-
const
|
|
474
|
-
|
|
473
|
+
const n = this.getTagProject(t);
|
|
474
|
+
n ? t.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 } : t.screenPosition = null;
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
477
|
updateTagContainerVisible() {
|
|
478
|
-
var
|
|
479
|
-
(
|
|
478
|
+
var e;
|
|
479
|
+
(e = this.TagContainerSvelte) == null || e.$set({
|
|
480
480
|
state: this.state,
|
|
481
481
|
temporaryState: this.temporaryState,
|
|
482
482
|
withAnimation: this.store.visibleWithAnimation
|
|
483
|
-
}), this.filterCSS3DTag.forEach((
|
|
484
|
-
var
|
|
485
|
-
(
|
|
483
|
+
}), this.filterCSS3DTag.forEach((o) => {
|
|
484
|
+
var t, i, r, n, s;
|
|
485
|
+
(n = (i = (t = o.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : i.css3DObject) == null || n.setVisible((this.state.visible && ((r = o.state) == null ? void 0 : r.visible)) !== !1), (s = o.tag3DContentSvelte) == null || s.svelteApp.$set({
|
|
486
486
|
state: this.state,
|
|
487
487
|
temporaryState: this.temporaryState,
|
|
488
488
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -490,24 +490,24 @@ class bi extends x {
|
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
disposeAllCSS3DContainer() {
|
|
493
|
-
for (const [,
|
|
494
|
-
|
|
493
|
+
for (const [, e] of this.store.css3DRenderDisposer)
|
|
494
|
+
e == null || e.forEach((o) => o == null ? void 0 : o());
|
|
495
495
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
496
496
|
}
|
|
497
497
|
/**
|
|
498
498
|
* @description 检查并销毁不用的3D贴片
|
|
499
499
|
*/
|
|
500
500
|
clearUnusedPanelTag() {
|
|
501
|
-
this.filter2DPointTag.forEach((
|
|
502
|
-
var
|
|
503
|
-
(
|
|
501
|
+
this.filter2DPointTag.forEach((e) => {
|
|
502
|
+
var o;
|
|
503
|
+
(o = e.tag3DContentSvelte) == null || o.css3DInstance.dispose(), e.tag3DContentSvelte = void 0;
|
|
504
504
|
});
|
|
505
|
-
for (const [
|
|
506
|
-
const
|
|
507
|
-
(!
|
|
505
|
+
for (const [e, o] of this.store.css3DRenderDisposer) {
|
|
506
|
+
const t = this.getTagById(e);
|
|
507
|
+
(!t || t.stickType === "2DPoint") && (o == null || o.forEach((i) => i == null ? void 0 : i()), this.store.css3DRenderDisposer.delete(e));
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
export {
|
|
512
|
-
|
|
512
|
+
gi as TagRender
|
|
513
513
|
};
|