@realsee/dnalogel 3.41.7 → 3.42.0-alpha-tag.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +17 -16
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -2
- package/dist/index.cjs.js +30 -30
- package/dist/index.js +735 -764
- package/dist/index.umd.js +24 -24
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +127 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1367 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +731 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +694 -0
- package/docs/classes/CSS3DRender.html +778 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +481 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +894 -0
- package/docs/classes/Magnifier.html +485 -0
- package/docs/classes/ModelRoomLabelController.html +403 -0
- package/docs/classes/MoveController.html +681 -0
- package/docs/classes/Object3DHelperController.html +645 -0
- package/docs/classes/PaintBrush.html +507 -0
- package/docs/classes/PanoMeasurePluginLine.html +527 -0
- package/docs/classes/PanoMeasurePluginModel.html +576 -0
- package/docs/classes/PanoMeasurePluginPoint.html +367 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +572 -0
- package/docs/classes/PanoTagPluginController.html +1132 -0
- package/docs/classes/Util.BetterTween.html +421 -0
- package/docs/classes/Util.Interval.html +437 -0
- package/docs/classes/Util.LineSegments.html +389 -0
- package/docs/classes/Util.Magnifier.html +508 -0
- package/docs/classes/Util.Object3D.html +411 -0
- package/docs/classes/Util.PointDomHelper.html +412 -0
- package/docs/classes/Util.PointHelper.html +403 -0
- package/docs/classes/Util.PointSelectorHelper.html +459 -0
- package/docs/classes/Util.Rectangle.html +460 -0
- package/docs/classes/WalkController.html +700 -0
- package/docs/enums/CameraMovementEffect.html +315 -0
- package/docs/enums/ContentType.html +461 -0
- package/docs/enums/DIRECTION.html +325 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +325 -0
- package/docs/enums/DimensionType.html +315 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +318 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +325 -0
- package/docs/enums/PaintBrushTypeEnum.html +318 -0
- package/docs/enums/PointType.html +315 -0
- package/docs/enums/Rotation.html +322 -0
- package/docs/functions/AreaMakerPlugin.html +295 -0
- package/docs/functions/CSS3DRenderPlugin.html +293 -0
- package/docs/functions/CameraMovementPlugin.html +298 -0
- package/docs/functions/CruisePlugin.html +295 -0
- package/docs/functions/CurrentPanoImagePlugin.html +295 -0
- package/docs/functions/GuideLinePlugin.html +295 -0
- package/docs/functions/ItemLabelPlugin.html +295 -0
- package/docs/functions/MapviewFloorplanPlugin.html +295 -0
- package/docs/functions/ModelChassisCompassPlugin.html +298 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +298 -0
- package/docs/functions/ModelFloorplanPlugin.html +295 -0
- package/docs/functions/ModelItemLabelPlugin.html +295 -0
- package/docs/functions/ModelRoomLabelPlugin.html +293 -0
- package/docs/functions/ModelTVVideoPlugin.html +295 -0
- package/docs/functions/ModelViewPlugin.html +298 -0
- package/docs/functions/MovePlugin.html +295 -0
- package/docs/functions/Object3DHelperPlugin.html +293 -0
- package/docs/functions/PanoCompassPlugin.html +295 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +299 -0
- package/docs/functions/PanoDoorLabelPlugin.html +295 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +295 -0
- package/docs/functions/PanoMeasurePlugin.html +295 -0
- package/docs/functions/PanoRulerPlugin.html +298 -0
- package/docs/functions/PanoRulerProPlugin.html +298 -0
- package/docs/functions/PanoSpatialTagPlugin.html +298 -0
- package/docs/functions/PanoTagPlugin.html +300 -0
- package/docs/functions/PanoVideoPlugin.html +304 -0
- package/docs/functions/PipelinePlugin.html +293 -0
- package/docs/functions/TopviewFloorplanPlugin.html +295 -0
- package/docs/functions/Util.absoluteUrl.html +331 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +334 -0
- package/docs/functions/Util.equal.html +343 -0
- package/docs/functions/Util.getCoordsFromClient.html +333 -0
- package/docs/functions/Util.getCoordsFromElement.html +333 -0
- package/docs/functions/Util.getFrameTime.html +325 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +333 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +333 -0
- package/docs/functions/Util.isAbsoluteURL.html +326 -0
- package/docs/functions/Util.isModelLike.html +326 -0
- package/docs/functions/Util.isNil.html +334 -0
- package/docs/functions/Util.isPanoramaLike.html +326 -0
- package/docs/functions/Util.nextFrame.html +339 -0
- package/docs/functions/Util.notNil.html +334 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +355 -0
- package/docs/functions/Util.tweenProgress.html +328 -0
- package/docs/functions/Util.uuid.html +324 -0
- package/docs/functions/pluginFlag.html +293 -0
- package/docs/index.html +358 -0
- package/docs/interfaces/AddTagConfig.html +308 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +335 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +340 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +626 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +339 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +397 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +382 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +339 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +332 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +331 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +360 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +454 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +330 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +363 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +364 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +366 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +724 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +390 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +426 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +416 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +356 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +324 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +392 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +387 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +526 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +328 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +320 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +342 -0
- package/docs/interfaces/EventMap.html +547 -0
- package/docs/interfaces/FloorplanBounding.html +337 -0
- package/docs/interfaces/FloorplanData.html +340 -0
- package/docs/interfaces/FloorplanEntrance.html +365 -0
- package/docs/interfaces/FloorplanExtraObject.html +355 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +344 -0
- package/docs/interfaces/FloorplanFloorData.html +333 -0
- package/docs/interfaces/FloorplanImagePosition.html +319 -0
- package/docs/interfaces/FloorplanObserver.html +337 -0
- package/docs/interfaces/FloorplanOutlineItem.html +333 -0
- package/docs/interfaces/FloorplanPosition.html +319 -0
- package/docs/interfaces/FloorplanRoomItem.html +407 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +325 -0
- package/docs/interfaces/FloorplanServerBounding.html +337 -0
- package/docs/interfaces/FloorplanServerComputedData.html +336 -0
- package/docs/interfaces/FloorplanServerData.html +319 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +336 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +322 -0
- package/docs/interfaces/FloorplanServerEntrance.html +365 -0
- package/docs/interfaces/FloorplanServerFloorData.html +333 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +319 -0
- package/docs/interfaces/FloorplanServerObserver.html +337 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +333 -0
- package/docs/interfaces/FloorplanServerPosition.html +319 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +419 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +325 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +328 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +367 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +531 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +362 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +353 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +452 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +342 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +352 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +522 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +349 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +532 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +314 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +335 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +360 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +376 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +358 -0
- package/docs/interfaces/HelperOffset.html +337 -0
- package/docs/interfaces/ImagePlaneGroup.html +311 -0
- package/docs/interfaces/ItemLabelPluginData.html +308 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +393 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +329 -0
- package/docs/interfaces/MinMax.html +315 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +315 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +351 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +315 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +322 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +359 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +308 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +393 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +315 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +308 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +329 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +353 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +308 -0
- package/docs/interfaces/ModelViewPluginExportType.html +421 -0
- package/docs/interfaces/Object3DHelperState.html +322 -0
- package/docs/interfaces/ObjectHelperControllers.html +329 -0
- package/docs/interfaces/PaintBrushAction.html +368 -0
- package/docs/interfaces/PaintBrushConfigs.html +366 -0
- package/docs/interfaces/PaintBrushState.html +350 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +430 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +287 -0
- package/docs/interfaces/PanoMeasureParameterType.html +454 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +322 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +319 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +315 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +325 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +382 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +331 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +322 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +358 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +328 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +315 -0
- package/docs/interfaces/PanoRulerProPluginState.html +322 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +301 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +290 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +358 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +340 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +436 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +336 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +357 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +343 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +336 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +328 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +346 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +319 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +425 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +319 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +354 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +373 -0
- package/docs/interfaces/Point.html +322 -0
- package/docs/interfaces/Room.html +329 -0
- package/docs/interfaces/RoomInfo.html +315 -0
- package/docs/interfaces/RoomLabel.html +391 -0
- package/docs/interfaces/RoomRules.html +290 -0
- package/docs/interfaces/Rooms.html +290 -0
- package/docs/interfaces/Scissor.html +349 -0
- package/docs/interfaces/State.html +336 -0
- package/docs/interfaces/TagCacheInterface.html +367 -0
- package/docs/interfaces/TagConfig.html +570 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +311 -0
- package/docs/interfaces/TagIconUrl.html +368 -0
- package/docs/interfaces/TagObjectGroup.html +311 -0
- package/docs/interfaces/TagStyle.html +321 -0
- package/docs/interfaces/Tags.html +2825 -0
- package/docs/interfaces/TemporaryState.html +308 -0
- package/docs/interfaces/Util.MagnifierParameter.html +396 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +355 -0
- package/docs/interfaces/Util.PointIntersection.html +370 -0
- package/docs/modules/AreaMakerPluginType.html +330 -0
- package/docs/modules/CruisePluginTypes.html +333 -0
- package/docs/modules/CurrentPanoImagePluginType.html +302 -0
- package/docs/modules/GuideLineItem.html +294 -0
- package/docs/modules/GuideLineModeItem.html +299 -0
- package/docs/modules/GuideLinePluginType.html +355 -0
- package/docs/modules/PanoVideoPluginType.html +306 -0
- package/docs/modules/Util.html +356 -0
- package/docs/modules.html +564 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +359 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +325 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +307 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +307 -0
- package/docs/types/ArrayPosition.html +284 -0
- package/docs/types/AudioAppearance.html +284 -0
- package/docs/types/AudioTagTypeConfigKey.html +284 -0
- package/docs/types/CSS3DRenderExportType.html +284 -0
- package/docs/types/CSS3DRenderPluginExportType.html +284 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +284 -0
- package/docs/types/ClassFunctionParameters.html +291 -0
- package/docs/types/Color.html +284 -0
- package/docs/types/ContentTypeConfigKey.html +284 -0
- package/docs/types/ContentTypeConfigKeySplit.html +284 -0
- package/docs/types/ContentTypeMap.html +284 -0
- package/docs/types/Create3DDomContainerReturnType.html +284 -0
- package/docs/types/Create3DElementReturnType.html +284 -0
- package/docs/types/CruisePluginExportType.html +284 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +323 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +300 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +284 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +296 -0
- package/docs/types/DeprecatedTagProperty.html +299 -0
- package/docs/types/Direction-1.html +284 -0
- package/docs/types/Direction4.html +284 -0
- package/docs/types/ElementRenderer.html +308 -0
- package/docs/types/FloorplanRuleLabels.html +287 -0
- package/docs/types/FloorplanServerRuleLabels.html +284 -0
- package/docs/types/GuideLinePluginExportType.html +284 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +357 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +378 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +311 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +314 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +314 -0
- package/docs/types/GuideLinePluginType.PathItem.html +314 -0
- package/docs/types/GuideLinePluginType.PluginData.html +323 -0
- package/docs/types/HelperEventMap.html +429 -0
- package/docs/types/InternalHelperEventMap.html +380 -0
- package/docs/types/LoadTagConfig.html +284 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +284 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +284 -0
- package/docs/types/MediaData.html +305 -0
- package/docs/types/MediaStore.html +289 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +291 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +284 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +284 -0
- package/docs/types/ModelId.html +284 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +284 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +284 -0
- package/docs/types/MoveArgs.html +294 -0
- package/docs/types/MoveOpts.html +292 -0
- package/docs/types/Object3DHelperEventMap.html +377 -0
- package/docs/types/ObjectFit.html +284 -0
- package/docs/types/PaintBrushEventMap.html +315 -0
- package/docs/types/PanoCompassPluginData.html +284 -0
- package/docs/types/PanoCompassPluginExportType.html +284 -0
- package/docs/types/PanoCompassPluginParameterType.html +284 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +284 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +284 -0
- package/docs/types/PanoIndex.html +284 -0
- package/docs/types/PanoMeasurePluginEvent.html +284 -0
- package/docs/types/PanoMeasureReturnType.html +284 -0
- package/docs/types/PanoSpatialTagPluginId.html +284 -0
- package/docs/types/PanoTagPluginExportInterface.html +284 -0
- package/docs/types/PanoTagPluginParamsInterface.html +284 -0
- package/docs/types/PanoVideoPluginParameterType.html +284 -0
- package/docs/types/PanoVideoPluginReturnType.html +284 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +292 -0
- package/docs/types/PipelinePluginParameterType.html +284 -0
- package/docs/types/PipelinePluginReturnType.html +284 -0
- package/docs/types/PlaneTag.html +292 -0
- package/docs/types/Point2DTag.html +292 -0
- package/docs/types/Point3DTag.html +292 -0
- package/docs/types/PointTag.html +289 -0
- package/docs/types/PointTagInstance.html +289 -0
- package/docs/types/Position.html +284 -0
- package/docs/types/RotateArgs.html +296 -0
- package/docs/types/RotateOpts.html +292 -0
- package/docs/types/RuleLabelsKey.html +284 -0
- package/docs/types/RuleLabelsValue.html +284 -0
- package/docs/types/StickType.html +284 -0
- package/docs/types/Tag.html +350 -0
- package/docs/types/Tag2D.html +292 -0
- package/docs/types/Tag3D.html +292 -0
- package/docs/types/TagConfigByKey.html +289 -0
- package/docs/types/TagContentType.html +284 -0
- package/docs/types/TagContentTypeMapping.html +284 -0
- package/docs/types/TagDimensionType.html +286 -0
- package/docs/types/TagElement.html +294 -0
- package/docs/types/TagEvents.html +337 -0
- package/docs/types/TagGLTFObject.html +307 -0
- package/docs/types/TagHooks.html +284 -0
- package/docs/types/TagId.html +284 -0
- package/docs/types/TagInstance.html +362 -0
- package/docs/types/TagPointType.html +287 -0
- package/docs/types/TagRendererMap.html +291 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +284 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +284 -0
- package/docs/types/WorkCode.html +284 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +294 -0
- package/docs/variables/PLUGIN.html +284 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +287 -0
- package/docs/variables/ROOM_TYPE_MAP.html +294 -0
- package/docs/variables/defaultGlobalConfig.html +284 -0
- package/docs/variables/itemLabelPluginServerParams.html +291 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +291 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +291 -0
- package/libs/PanoTagPlugin/Components/TagItem.js +246 -286
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +54 -51
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -0
- package/libs/PanoTagPlugin/controller/TagUtil.js +22 -20
- package/libs/PanoTagPlugin/controller/index.js +57 -56
- package/libs/PanoTagPlugin/tag.config.js +5 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +17 -16
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -65,7 +65,7 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
65
65
|
/**
|
|
66
66
|
* @description 一个点的标签
|
|
67
67
|
*/
|
|
68
|
-
protected setPointTagPosition(tag?: TagInstance | TagInstance[])
|
|
68
|
+
protected setPointTagPosition: (tag?: TagInstance | TagInstance[]) => void;
|
|
69
69
|
/**
|
|
70
70
|
* @description 渲染单个点的标签
|
|
71
71
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var V = Object.defineProperty;
|
|
2
2
|
var j = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var C = (u, l, e) => l in u ?
|
|
3
|
+
var I = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var C = (u, l, e) => l in u ? V(u, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[l] = e, k = (u, l) => {
|
|
5
5
|
for (var e in l || (l = {}))
|
|
6
|
-
|
|
6
|
+
I.call(l, e) && C(u, e, l[e]);
|
|
7
7
|
if (j)
|
|
8
8
|
for (var e of j(l))
|
|
9
9
|
O.call(l, e) && C(u, e, l[e]);
|
|
10
10
|
return u;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var c = (u, l, e) => (C(u, typeof l != "symbol" ? l + "" : l, e), e);
|
|
13
13
|
var M = (u, l, e) => new Promise((o, t) => {
|
|
14
14
|
var i = (s) => {
|
|
15
15
|
try {
|
|
@@ -102,7 +102,6 @@ import "../../vendor/svelte/easing/index.js";
|
|
|
102
102
|
import "../Components/Common/Icon/Icon.js";
|
|
103
103
|
import "../utils/getImageInfo.js";
|
|
104
104
|
import "../utils/px2rem.js";
|
|
105
|
-
import "../../vendor/classnames/index.js";
|
|
106
105
|
import "../Components/Tag/TextTag/index.js";
|
|
107
106
|
import "../Components/Tag/TextTag/TextTag.js";
|
|
108
107
|
import "../Components/Common/Line/Straight.js";
|
|
@@ -163,31 +162,32 @@ import "../Components/Tag/MediaPlane.js";
|
|
|
163
162
|
import "../Components/Tag/LinkTag.js";
|
|
164
163
|
import "../Components/Tag/PanoramaTag.js";
|
|
165
164
|
import "../Components/Tag/CustomTag.js";
|
|
165
|
+
import "../../vendor/classnames/index.js";
|
|
166
166
|
import "@realsee/five/gltf-loader";
|
|
167
167
|
const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
|
|
168
168
|
class Si extends E {
|
|
169
169
|
constructor(e) {
|
|
170
170
|
super(e);
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
c(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
172
|
+
c(this, "contentTypeMap", /* @__PURE__ */ new Map());
|
|
173
|
+
c(this, "group", new R());
|
|
174
|
+
c(this, "imagePlaneGroup", new R());
|
|
175
|
+
c(this, "gltfObjectGroup", new R());
|
|
176
176
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
177
|
-
|
|
177
|
+
c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
178
178
|
/** 临时状态 */
|
|
179
|
-
|
|
179
|
+
c(this, "temporaryState", { visible: !0 });
|
|
180
180
|
/** 点标签 */
|
|
181
|
-
|
|
181
|
+
c(this, "TagContainerSvelte");
|
|
182
182
|
/**
|
|
183
183
|
* @description 渲染3D贴片
|
|
184
184
|
*/
|
|
185
|
-
|
|
185
|
+
c(this, "updateRender3DDomTag", (e) => {
|
|
186
186
|
(e ? v(e) : this.filterCSS3DTag).forEach((t) => {
|
|
187
187
|
var i, r, n, s, a;
|
|
188
188
|
if (t.tag3DContentSvelte) {
|
|
189
|
-
const { svelteApp:
|
|
190
|
-
if ((r = m == null ? void 0 : m.css3DObject) == null || r.setVisible((this.state.visible && ((i = t.state) == null ? void 0 : i.visible)) !== !1),
|
|
189
|
+
const { svelteApp: h, css3DInstance: m, initialNormal: f, currentNormal: d } = t.tag3DContentSvelte;
|
|
190
|
+
if ((r = m == null ? void 0 : m.css3DObject) == null || r.setVisible((this.state.visible && ((i = t.state) == null ? void 0 : i.visible)) !== !1), h.$set({ tag: t, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !f.equals(d)) {
|
|
191
191
|
const p = new G().setFromUnitVectors(f, d);
|
|
192
192
|
m.css3DObject.setRotationFromQuaternion(p);
|
|
193
193
|
}
|
|
@@ -197,8 +197,8 @@ class Si extends E {
|
|
|
197
197
|
return;
|
|
198
198
|
if (t.stickType === "3DPoint" && !t.normal)
|
|
199
199
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
200
|
-
const
|
|
201
|
-
if (!
|
|
200
|
+
const h = this.getPositions(t);
|
|
201
|
+
if (!h)
|
|
202
202
|
return;
|
|
203
203
|
const m = this.getTagNormal(t);
|
|
204
204
|
if (!m)
|
|
@@ -210,14 +210,14 @@ class Si extends E {
|
|
|
210
210
|
d.container.style.backgroundColor = P, d.container.style.border = `3px solid ${P}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
211
211
|
var b;
|
|
212
212
|
if (p.css3DObject.opacityMesh && f.clickable !== !1) {
|
|
213
|
-
const A = this.addObjectClickHandler(t, p.css3DObject.opacityMesh, (
|
|
214
|
-
this.hooks.emit("click", { event:
|
|
213
|
+
const A = this.addObjectClickHandler(t, p.css3DObject.opacityMesh, (x) => {
|
|
214
|
+
this.hooks.emit("click", { event: x, target: "TagContent", tag: t });
|
|
215
215
|
});
|
|
216
216
|
(b = this.store.css3DRenderDisposer.get(t.id)) == null || b.push(A);
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
const p = this.css3DRenderPlugin.create3DDomContainer(
|
|
220
|
+
const p = this.css3DRenderPlugin.create3DDomContainer(h, d);
|
|
221
221
|
if (!p)
|
|
222
222
|
return;
|
|
223
223
|
this.store.css3DRenderDisposer.set(t.id, [p.dispose]);
|
|
@@ -245,15 +245,39 @@ class Si extends E {
|
|
|
245
245
|
}
|
|
246
246
|
}), this.clearUnusedPanelTag();
|
|
247
247
|
});
|
|
248
|
+
/**
|
|
249
|
+
* @description 一个点的标签
|
|
250
|
+
*/
|
|
251
|
+
c(this, "setPointTagPosition", (e) => {
|
|
252
|
+
const o = e ? v(e) : this.filterPointTag;
|
|
253
|
+
o.length !== 0 && o.forEach((t) => {
|
|
254
|
+
var s;
|
|
255
|
+
const i = this.getCurrentVisibleState(t), r = (s = t.__Object__) != null ? s : {
|
|
256
|
+
timeoutId: void 0,
|
|
257
|
+
inAnimation: !1
|
|
258
|
+
};
|
|
259
|
+
if (t.__Object__ = r, !i && t.screenPosition ? (r.inAnimation = !0, r.timeoutId = setTimeout(() => {
|
|
260
|
+
requestAnimationFrame(() => {
|
|
261
|
+
this.getCurrentVisibleState(t) || (r.inAnimation = !1, t.screenPosition = null, this.updateDomView());
|
|
262
|
+
});
|
|
263
|
+
}, 1e3)) : r.timeoutId && (clearTimeout(r.timeoutId), r.inAnimation = !1, r.timeoutId = void 0), !i && !r.inAnimation)
|
|
264
|
+
return;
|
|
265
|
+
const n = this.getTagProject(t);
|
|
266
|
+
n ? t.screenPosition = {
|
|
267
|
+
leftPx: (n.x + 1) / 2 * this.renderWidthPx,
|
|
268
|
+
topPx: (-n.y + 1) / 2 * this.renderHeightPx
|
|
269
|
+
} : t.screenPosition = null;
|
|
270
|
+
});
|
|
271
|
+
});
|
|
248
272
|
/**
|
|
249
273
|
* @description 渲染单个点的标签
|
|
250
274
|
*/
|
|
251
|
-
|
|
275
|
+
c(this, "updateRenderPointTag", (e) => {
|
|
252
276
|
const o = e ? v(e) : this.filterPointTag;
|
|
253
277
|
this.setTagZIndex(o), this.setPointTagPosition(), $("updateDomView", this.updateDomView)();
|
|
254
278
|
});
|
|
255
279
|
/** 加载外部模型 */
|
|
256
|
-
|
|
280
|
+
c(this, "loadModel", (e) => M(this, null, function* () {
|
|
257
281
|
var n;
|
|
258
282
|
const o = e.data.modelUrl;
|
|
259
283
|
if (!o)
|
|
@@ -290,7 +314,7 @@ class Si extends E {
|
|
|
290
314
|
}
|
|
291
315
|
return this.gltfObjectGroup.add(i), i;
|
|
292
316
|
}));
|
|
293
|
-
|
|
317
|
+
c(this, "updateDomView", (e = {}) => {
|
|
294
318
|
var t;
|
|
295
319
|
const o = this.filterPointTag.filter((i) => i.state.visible);
|
|
296
320
|
if (this.TagContainerSvelte)
|
|
@@ -366,8 +390,8 @@ class Si extends E {
|
|
|
366
390
|
const { url: r } = i;
|
|
367
391
|
if (!r)
|
|
368
392
|
return;
|
|
369
|
-
const n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(),
|
|
370
|
-
if ((s ||
|
|
393
|
+
const n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(), h = (() => !!(t.mediaPlane && t.mediaPlane.src !== r))();
|
|
394
|
+
if ((s || h) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), a || h) {
|
|
371
395
|
const f = t.position.map(S), d = new q(r, f, {
|
|
372
396
|
videoCoverSrc: i.videoCoverUrl,
|
|
373
397
|
playButton: t.data.playIcon,
|
|
@@ -396,8 +420,8 @@ class Si extends E {
|
|
|
396
420
|
const { url: i } = t.data.mediaData[0];
|
|
397
421
|
if (!i)
|
|
398
422
|
return;
|
|
399
|
-
const r = t.position.map(S), n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(),
|
|
400
|
-
(s ||
|
|
423
|
+
const r = t.position.map(S), n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(), h = (() => !!(t.mediaPlane && t.mediaPlane.src !== i))();
|
|
424
|
+
(s || h) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), (a || h) && (t.mediaPlane = new w(i, r, { objectFit: t.data.objectFit }), this.getTagConfig(t).clickable !== !1 && this.domEvents.addAutoBindEventListener(
|
|
401
425
|
t.mediaPlane,
|
|
402
426
|
"click",
|
|
403
427
|
(m) => {
|
|
@@ -443,7 +467,7 @@ class Si extends E {
|
|
|
443
467
|
if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
|
|
444
468
|
return;
|
|
445
469
|
o.updateWorldMatrix(!1, !1);
|
|
446
|
-
const n = o.matrixWorld, s = new D().fromArray(r[0]), a = new D().fromArray(r[2]),
|
|
470
|
+
const n = o.matrixWorld, s = new D().fromArray(r[0]), a = new D().fromArray(r[2]), h = U(s, a).add(new D(0, 0, 5e-4)), m = new g().setPosition(h), f = new g().makeScale(t, t, t), d = new g().multiply(n).multiply(m).multiply(f);
|
|
447
471
|
d.decompose(i.position, i.quaternion, i.scale);
|
|
448
472
|
const p = i.opacityMesh;
|
|
449
473
|
p && d.decompose(p.position, p.quaternion, p.scale);
|
|
@@ -455,27 +479,6 @@ class Si extends E {
|
|
|
455
479
|
yield Promise.all(o), this.setVisible(), this.updateRenderAllTags();
|
|
456
480
|
});
|
|
457
481
|
}
|
|
458
|
-
/**
|
|
459
|
-
* @description 一个点的标签
|
|
460
|
-
*/
|
|
461
|
-
setPointTagPosition(e) {
|
|
462
|
-
const o = e ? v(e) : this.filterPointTag;
|
|
463
|
-
o.length !== 0 && o.forEach((t) => {
|
|
464
|
-
var s;
|
|
465
|
-
const i = this.getCurrentVisibleState(t), r = (s = t.__Object__) != null ? s : {
|
|
466
|
-
timeoutId: void 0,
|
|
467
|
-
inAnimation: !1
|
|
468
|
-
};
|
|
469
|
-
if (t.__Object__ = r, !i && t.screenPosition ? (r.inAnimation = !0, r.timeoutId = setTimeout(() => {
|
|
470
|
-
requestAnimationFrame(() => {
|
|
471
|
-
this.getCurrentVisibleState(t) || (r.inAnimation = !1, t.screenPosition = null, this.updateDomView());
|
|
472
|
-
});
|
|
473
|
-
}, 1e3)) : r.timeoutId && (clearTimeout(r.timeoutId), r.inAnimation = !1, r.timeoutId = void 0), !i && !r.inAnimation)
|
|
474
|
-
return;
|
|
475
|
-
const n = this.getTagProject(t);
|
|
476
|
-
n ? t.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 } : t.screenPosition = null;
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
482
|
updateTagContainerVisible() {
|
|
480
483
|
var e;
|
|
481
484
|
(e = this.TagContainerSvelte) == null || e.$set({
|
|
@@ -8,6 +8,8 @@ import type { Mode } from '@realsee/five';
|
|
|
8
8
|
import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
|
|
9
9
|
export declare abstract class TagUtil extends TagCache {
|
|
10
10
|
tags: TagInstance[];
|
|
11
|
+
renderWidthPx?: number;
|
|
12
|
+
renderHeightPx?: number;
|
|
11
13
|
get container(): Element;
|
|
12
14
|
set container(container: Element);
|
|
13
15
|
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
@@ -12,10 +12,10 @@ var k = (l, s, e) => s in l ? q(l, s, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, V = (l, s) => K(l, Q(s));
|
|
13
13
|
var f = (l, s, e) => (k(l, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
14
|
import { defaultGlobalConfig as ie } from "../typings/tag/TagConfig.js";
|
|
15
|
-
import { objectAssignDeepExports as
|
|
15
|
+
import { objectAssignDeepExports as P } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
16
|
import * as U from "three";
|
|
17
17
|
import { DefaultConfig as te } from "../tag.config.js";
|
|
18
|
-
import { anyPositionToVector3 as
|
|
18
|
+
import { anyPositionToVector3 as y } from "../../shared-utils/positionToVector3.js";
|
|
19
19
|
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
20
|
import { getTagCenterPosition as B } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
|
|
@@ -28,11 +28,11 @@ import { isMediaPlaneTag as ce, isMediaModelTag as N, isPlaneTag as le, isPoint3
|
|
|
28
28
|
import { VideoPlane as ue } from "../utils/model/mediaPlane.js";
|
|
29
29
|
import { FiveDomEvents as me } from "../../shared-utils/five/FiveDomEvents.js";
|
|
30
30
|
import z from "../utils/tag/adaptConfig.js";
|
|
31
|
-
import { isPanoramaLike as S, isModelLike as
|
|
31
|
+
import { isPanoramaLike as S, isModelLike as H } from "../../shared-utils/five/mode.js";
|
|
32
32
|
import "hammerjs";
|
|
33
33
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
34
|
import "animejs";
|
|
35
|
-
import { entries as
|
|
35
|
+
import { entries as $ } from "../../shared-utils/typescript/entries.js";
|
|
36
36
|
import { getUrlExt as J } from "../../shared-utils/url/getUrl.js";
|
|
37
37
|
import { transformPosition as G } from "../../shared-utils/five/transformPosition.js";
|
|
38
38
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -72,6 +72,8 @@ class Ti extends ne {
|
|
|
72
72
|
constructor(e) {
|
|
73
73
|
super(e);
|
|
74
74
|
f(this, "tags", []);
|
|
75
|
+
f(this, "renderWidthPx");
|
|
76
|
+
f(this, "renderHeightPx");
|
|
75
77
|
f(this, "config", te);
|
|
76
78
|
/** 插件参数 */
|
|
77
79
|
f(this, "params");
|
|
@@ -187,7 +189,7 @@ class Ti extends ne {
|
|
|
187
189
|
const o = this.getTagConfig(e);
|
|
188
190
|
if (e.config = o, e.config.initialData) {
|
|
189
191
|
const n = JSON.parse(JSON.stringify(e.data));
|
|
190
|
-
e.data = (t = o.initialData) != null && t.important ?
|
|
192
|
+
e.data = (t = o.initialData) != null && t.important ? P(e.data, n, o.initialData) : P(e.data, o.initialData, n);
|
|
191
193
|
}
|
|
192
194
|
});
|
|
193
195
|
}
|
|
@@ -245,7 +247,7 @@ class Ti extends ne {
|
|
|
245
247
|
const n = this.workUtil.getObserverPosition(o);
|
|
246
248
|
if (n === void 0)
|
|
247
249
|
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
248
|
-
const r = (() => e.stickType === "3DPoint" ?
|
|
250
|
+
const r = (() => e.stickType === "3DPoint" ? y(e.normal) : E(e.position))();
|
|
249
251
|
if (!r)
|
|
250
252
|
return;
|
|
251
253
|
const a = B(e);
|
|
@@ -272,7 +274,7 @@ class Ti extends ne {
|
|
|
272
274
|
const g = d.distanceTo(a);
|
|
273
275
|
return r && (r.distance = g), g;
|
|
274
276
|
}
|
|
275
|
-
if (
|
|
277
|
+
if (H(n))
|
|
276
278
|
return this.five.camera.position.distanceTo(a);
|
|
277
279
|
}
|
|
278
280
|
getPositions(e) {
|
|
@@ -281,7 +283,7 @@ class Ti extends ne {
|
|
|
281
283
|
if (N(e))
|
|
282
284
|
return e.data.mediaPosition;
|
|
283
285
|
if (de(e))
|
|
284
|
-
return oe(this.five.camera.position,
|
|
286
|
+
return oe(this.five.camera.position, y(e.position), y(e.normal));
|
|
285
287
|
}
|
|
286
288
|
addObjectClickHandler(e, i, o) {
|
|
287
289
|
if (!i || !this.domEvents)
|
|
@@ -299,7 +301,7 @@ class Ti extends ne {
|
|
|
299
301
|
}
|
|
300
302
|
getTagNormal(e) {
|
|
301
303
|
if (e.normal)
|
|
302
|
-
return
|
|
304
|
+
return y(e.normal);
|
|
303
305
|
if (e.stickType === "Plane")
|
|
304
306
|
return E(e.position);
|
|
305
307
|
if (e.stickType === "Model")
|
|
@@ -309,7 +311,7 @@ class Ti extends ne {
|
|
|
309
311
|
if (!e)
|
|
310
312
|
return;
|
|
311
313
|
const i = this.workUtil.transform;
|
|
312
|
-
return Array.isArray(e) && e.length === 4 ? e.map(
|
|
314
|
+
return Array.isArray(e) && e.length === 4 ? e.map(y).map((o) => G(o, i)) : G(y(e), i);
|
|
313
315
|
}
|
|
314
316
|
getTransformedMatrix(e) {
|
|
315
317
|
const i = new U.Matrix4().fromArray(e);
|
|
@@ -326,20 +328,20 @@ class Ti extends ne {
|
|
|
326
328
|
* @description 获取merge后的配置
|
|
327
329
|
*/
|
|
328
330
|
calculateTagConfig(e, i) {
|
|
329
|
-
var w,
|
|
331
|
+
var w, x, A, O, I;
|
|
330
332
|
const o = (w = i == null ? void 0 : i.useCache) != null ? w : !0;
|
|
331
333
|
if (!e)
|
|
332
|
-
return (
|
|
334
|
+
return (x = this.config.globalConfig) != null ? x : {};
|
|
333
335
|
if (o) {
|
|
334
|
-
if ((
|
|
336
|
+
if ((A = e == null ? void 0 : e.computedConfig) != null && A._isMerged)
|
|
335
337
|
return e.computedConfig;
|
|
336
338
|
if ((O = e == null ? void 0 : e.config) != null && O._isMerged)
|
|
337
339
|
return e.config;
|
|
338
340
|
}
|
|
339
341
|
const t = {}, n = {}, r = {};
|
|
340
342
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
|
|
341
|
-
var
|
|
342
|
-
const c = u, _ = c.split("-"),
|
|
343
|
+
var j, R;
|
|
344
|
+
const c = u, _ = c.split("-"), W = u.startsWith("["), T = W ? _[0].slice(1, -1) : void 0, h = W ? _.slice(1) : _, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (j = n[T]) != null ? j : n[T] = {} : (R = r[T]) != null ? R : r[T] = {} : t;
|
|
343
345
|
if (!v[c]) {
|
|
344
346
|
if (h.length === 0 && (v[c] = m), h.length === 1) {
|
|
345
347
|
const [p] = h;
|
|
@@ -358,14 +360,14 @@ class Ti extends ne {
|
|
|
358
360
|
}
|
|
359
361
|
}
|
|
360
362
|
});
|
|
361
|
-
const a = (I = e.initialConfig) != null ? I : {}, d =
|
|
362
|
-
|
|
363
|
+
const a = (I = e.initialConfig) != null ? I : {}, d = P({}, ie, this.config.globalConfig, ...Object.values(t)), g = P({}, d, a), C = {}, X = Object.values(ae.Mode);
|
|
364
|
+
$(n).forEach(([u, m]) => {
|
|
363
365
|
X.forEach((c) => {
|
|
364
|
-
(u === "PanoramaLike" && S(c) || u === "ModelLike" &&
|
|
366
|
+
(u === "PanoramaLike" && S(c) || u === "ModelLike" && H(c)) && (C[c] = P({}, d, ...Object.values(m), a, { _isMerged: !0 }));
|
|
365
367
|
});
|
|
366
|
-
}),
|
|
368
|
+
}), $(r).forEach(([u, m]) => {
|
|
367
369
|
const c = C[u];
|
|
368
|
-
C[u] =
|
|
370
|
+
C[u] = P({}, d, c, ...Object.values(m), a, { _isMerged: !0 });
|
|
369
371
|
});
|
|
370
372
|
const b = V(D({}, g), { configWithFiveMode: C });
|
|
371
373
|
return z(b), Object.values(C).forEach((u) => z(u)), b._isMerged = !0, b;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var V = Object.defineProperty, k = Object.defineProperties;
|
|
2
|
+
var F = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
4
|
var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var y = (
|
|
6
|
-
for (var e in
|
|
7
|
-
M.call(
|
|
5
|
+
var y = (l, h, e) => h in l ? V(l, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[h] = e, c = (l, h) => {
|
|
6
|
+
for (var e in h || (h = {}))
|
|
7
|
+
M.call(h, e) && y(l, e, h[e]);
|
|
8
8
|
if (P)
|
|
9
|
-
for (var e of P(
|
|
10
|
-
O.call(
|
|
11
|
-
return
|
|
12
|
-
}, T = (
|
|
13
|
-
var f = (
|
|
14
|
-
var g = (
|
|
9
|
+
for (var e of P(h))
|
|
10
|
+
O.call(h, e) && y(l, e, h[e]);
|
|
11
|
+
return l;
|
|
12
|
+
}, T = (l, h) => k(l, F(h));
|
|
13
|
+
var f = (l, h, e) => (y(l, typeof h != "symbol" ? h + "" : h, e), e);
|
|
14
|
+
var g = (l, h, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (a) {
|
|
19
|
+
i(a);
|
|
20
20
|
}
|
|
21
21
|
}, o = (r) => {
|
|
22
22
|
try {
|
|
23
23
|
n(e.throw(r));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (a) {
|
|
25
|
+
i(a);
|
|
26
26
|
}
|
|
27
27
|
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
|
|
28
|
-
n((e = e.apply(
|
|
28
|
+
n((e = e.apply(l, h)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as C from "three";
|
|
31
31
|
import { Subscribe as _ } from "@realsee/five";
|
|
@@ -35,21 +35,21 @@ import { arrayPositionToVector3 as w } from "../../shared-utils/positionToVector
|
|
|
35
35
|
import { isMediaModelTag as L, isModelTag as G } from "../utils/tag/tagCheck.js";
|
|
36
36
|
import { debounce as N } from "../utils/debounce.js";
|
|
37
37
|
import { throttle as S } from "../utils/throttle.js";
|
|
38
|
-
import x, { getTagStickType as
|
|
39
|
-
import { generateBlankAudio as
|
|
38
|
+
import x, { getTagStickType as W } from "../utils/tag/format.js";
|
|
39
|
+
import { generateBlankAudio as z, AudioNamespace as $ } from "../../shared-utils/audio.js";
|
|
40
40
|
import { resizeObserver as U } from "../../shared-utils/dom/resizeObserver.js";
|
|
41
|
-
import { TagRender as
|
|
42
|
-
import { uuid as
|
|
43
|
-
import { isModelLike as
|
|
41
|
+
import { TagRender as H } from "./TagRender.js";
|
|
42
|
+
import { uuid as j } 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 { waitFiveModelLoaded as
|
|
48
|
+
import { waitFiveModelLoaded as q } from "../../shared-utils/five/fiveModelLoad.js";
|
|
49
49
|
import { blink as Q, reblink as Y } from "../../shared-utils/three/blink.js";
|
|
50
50
|
import { tweenProgress as Z } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
51
51
|
import { DebugUtil as K } from "../utils/DebugUtil.js";
|
|
52
|
-
import { safeObj as
|
|
52
|
+
import { safeObj as E } from "../../shared-utils/safeObj.js";
|
|
53
53
|
import { sleep as X } from "../../CruisePlugin/utils/sleep.js";
|
|
54
54
|
import "./TagComputer.js";
|
|
55
55
|
import "../utils/tagPosition.js";
|
|
@@ -175,8 +175,8 @@ import "../Components/Common/TagPoint.js";
|
|
|
175
175
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
176
176
|
import "@realsee/five/gltf-loader";
|
|
177
177
|
import "../../shared-utils/animationFrame/index.js";
|
|
178
|
-
const
|
|
179
|
-
class
|
|
178
|
+
const I = "Dnalogel-PanoTagPlugin", xi = (l) => `${I}--${l}`;
|
|
179
|
+
class Wi extends H {
|
|
180
180
|
constructor(e, t) {
|
|
181
181
|
super(e);
|
|
182
182
|
/** state */
|
|
@@ -256,16 +256,16 @@ class zi extends j {
|
|
|
256
256
|
var t;
|
|
257
257
|
return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
258
258
|
}).forEach((e) => {
|
|
259
|
-
var
|
|
260
|
-
const t = new C.Mesh(new C.BoxGeometry(), new C.MeshBasicMaterial()), i = (
|
|
259
|
+
var a;
|
|
260
|
+
const t = new C.Mesh(new C.BoxGeometry(), new C.MeshBasicMaterial()), i = (a = e.model) == null ? void 0 : a.object;
|
|
261
261
|
if (!i)
|
|
262
262
|
return;
|
|
263
263
|
t.position.copy(i.position), t.quaternion.copy(i.quaternion);
|
|
264
264
|
const s = this.five.camera.position;
|
|
265
265
|
t.lookAt(s.clone().setY(t.position.y));
|
|
266
266
|
const o = i.quaternion.clone(), n = t.quaternion.clone(), r = Z();
|
|
267
|
-
r.onUpdate(({ progress:
|
|
268
|
-
i.quaternion.copy(o.clone().slerp(n,
|
|
267
|
+
r.onUpdate(({ progress: d }) => {
|
|
268
|
+
i.quaternion.copy(o.clone().slerp(n, d));
|
|
269
269
|
}), r.play();
|
|
270
270
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
271
271
|
}));
|
|
@@ -274,9 +274,9 @@ class zi extends j {
|
|
|
274
274
|
this.setVisible(), this.updateRenderAllTags();
|
|
275
275
|
});
|
|
276
276
|
f(this, "onFiveEveryReady", () => {
|
|
277
|
-
this.setUnfoldedByCamera(),
|
|
277
|
+
this.setUnfoldedByCamera(), J(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 });
|
|
278
278
|
});
|
|
279
|
-
this.params = m({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config,
|
|
279
|
+
this.params = m({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, z(1, { namespace: $.PlayAudio });
|
|
280
280
|
try {
|
|
281
281
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
282
282
|
get: function() {
|
|
@@ -298,7 +298,7 @@ class zi extends j {
|
|
|
298
298
|
load(e, t) {
|
|
299
299
|
return g(this, null, function* () {
|
|
300
300
|
var s, o;
|
|
301
|
-
this.clearTags(), console.debug(
|
|
301
|
+
this.clearTags(), console.debug(I, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = m({}, this.config, {
|
|
302
302
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
303
303
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
304
304
|
}), this.store.visibleWithAnimation = !0;
|
|
@@ -319,29 +319,29 @@ class zi extends j {
|
|
|
319
319
|
return g(this, null, function* () {
|
|
320
320
|
const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
321
321
|
var b, v, D, A;
|
|
322
|
-
o.stickType =
|
|
322
|
+
o.stickType = W(o);
|
|
323
323
|
const n = JSON.parse(JSON.stringify(o.data)), r = (b = o.initialConfig) != null ? b : o.config ? JSON.parse(JSON.stringify(o.config)) : {};
|
|
324
324
|
o.initialConfig = r;
|
|
325
|
-
const
|
|
326
|
-
o.config =
|
|
325
|
+
const a = this.calculateTagConfig(o), d = this.getTagConfig(o);
|
|
326
|
+
o.config = d;
|
|
327
327
|
const p = T(c({}, o), {
|
|
328
328
|
enabled: (v = o.enabled) != null ? v : !0,
|
|
329
|
-
id: (D = o.id) != null ? D :
|
|
330
|
-
data: (A =
|
|
329
|
+
id: (D = o.id) != null ? D : j(),
|
|
330
|
+
data: (A = d.initialData) != null && A.important ? m(o.data, n, d.initialData) : m(o.data, d.initialData, n),
|
|
331
331
|
state: c({
|
|
332
332
|
visible: void 0,
|
|
333
333
|
unfolded: !this.can("fold", o)
|
|
334
|
-
},
|
|
334
|
+
}, d.initialState),
|
|
335
335
|
hooks: new _(),
|
|
336
336
|
originPosition: o.position,
|
|
337
337
|
position: (() => {
|
|
338
338
|
const u = this.getTransformedPostion(o.position);
|
|
339
|
-
return Array.isArray(u) ? u.map((
|
|
339
|
+
return Array.isArray(u) ? u.map((B) => B.toArray()) : u.toArray();
|
|
340
340
|
})(),
|
|
341
341
|
matrix: o.matrix ? this.getTransformedMatrix(o.matrix) : o.matrix,
|
|
342
342
|
initialConfig: r,
|
|
343
|
-
computedConfig:
|
|
344
|
-
config:
|
|
343
|
+
computedConfig: a,
|
|
344
|
+
config: d,
|
|
345
345
|
unfold: () => this.changeUnfoldedById(p.id, !0),
|
|
346
346
|
fold: () => this.changeUnfoldedById(p.id, !1),
|
|
347
347
|
enable: () => this.changeEnabledById(p.id, !0),
|
|
@@ -353,9 +353,9 @@ class zi extends j {
|
|
|
353
353
|
});
|
|
354
354
|
return p;
|
|
355
355
|
});
|
|
356
|
-
return s.forEach(x), this.tags.push(...s), this.tagsLengthWillUpdate = !0,
|
|
357
|
-
var o, n, r;
|
|
358
|
-
this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (
|
|
356
|
+
return s.forEach(x), this.tags.push(...s), this.tagsLengthWillUpdate = !0, q(this.five).then(() => g(this, null, function* () {
|
|
357
|
+
var o, n, r, a, d;
|
|
358
|
+
this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.renderHeightPx || (this.renderHeightPx = (r = this.five.getElement()) == null ? void 0 : r.clientHeight, this.renderWidthPx = (a = this.five.getElement()) == null ? void 0 : a.clientWidth), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (d = t == null ? void 0 : t.withAnimation) != null ? d : !0 }), this.updateRenderAllTags();
|
|
359
359
|
}));
|
|
360
360
|
});
|
|
361
361
|
}
|
|
@@ -417,8 +417,8 @@ class zi extends j {
|
|
|
417
417
|
dispose() {
|
|
418
418
|
var e, t, i, s, o, n;
|
|
419
419
|
this.tagsLengthWillUpdate = !0, this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
|
|
420
|
-
var
|
|
421
|
-
return (
|
|
420
|
+
var a;
|
|
421
|
+
return (a = r.tag3DContentSvelte) == null ? void 0 : a.svelteApp.$destroy();
|
|
422
422
|
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), 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");
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
@@ -428,11 +428,11 @@ class zi extends j {
|
|
|
428
428
|
*/
|
|
429
429
|
blinkTagById(e, t) {
|
|
430
430
|
return g(this, null, function* () {
|
|
431
|
-
var
|
|
431
|
+
var d, p;
|
|
432
432
|
const i = this.getTagById(e);
|
|
433
433
|
if (!i)
|
|
434
434
|
return;
|
|
435
|
-
const s = (
|
|
435
|
+
const s = (d = i.enabled) != null ? d : !0, o = (p = i.state) == null ? void 0 : p.visible, n = s && o;
|
|
436
436
|
n === !1 && (i.state.visible = !0, i.enabled = !0, this.setPointTagPosition(), this.updateTag(i), this.updateDomView(), yield X(0), i.dom && (i.dom.style.visibility = "hidden"), i.contentDom && (i.contentDom.style.visibility = "hidden"));
|
|
437
437
|
const r = (() => {
|
|
438
438
|
var v;
|
|
@@ -585,10 +585,11 @@ class zi extends j {
|
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
addResizeObserver() {
|
|
588
|
-
if (
|
|
588
|
+
if (this.store.disposed)
|
|
589
589
|
return;
|
|
590
590
|
const e = this.five.getElement(), t = () => {
|
|
591
|
-
|
|
591
|
+
var a, d;
|
|
592
|
+
this.state.enabled && (this.renderWidthPx = (a = this.five.getElement()) == null ? void 0 : a.clientWidth, this.renderHeightPx = (d = this.five.getElement()) == null ? void 0 : d.clientHeight, this.show(), this.updateRenderPointTag());
|
|
592
593
|
}, i = () => {
|
|
593
594
|
this.state.enabled && this.hide();
|
|
594
595
|
}, { observe: s, unobserve: o } = U(
|
|
@@ -611,22 +612,22 @@ class zi extends j {
|
|
|
611
612
|
if (t.state && i !== void 0) {
|
|
612
613
|
if (i === !0 && t.screenPosition) {
|
|
613
614
|
const s = this.getTagConfig(t).unfoldedConfig;
|
|
614
|
-
|
|
615
|
+
E(s).keep !== "unfolded" && (e = !0);
|
|
615
616
|
}
|
|
616
617
|
t.state.unfolded = i;
|
|
617
618
|
}
|
|
618
619
|
}), e && this.filterPointTag.forEach((t) => {
|
|
619
620
|
const i = this.getTagConfig(t).unfoldedConfig;
|
|
620
|
-
typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 ||
|
|
621
|
+
typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || E(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
|
|
621
622
|
});
|
|
622
623
|
}
|
|
623
624
|
changeTagMode(e, t) {
|
|
624
|
-
var i, s, o, n, r,
|
|
625
|
-
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.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 } }, (
|
|
625
|
+
var i, s, o, n, r, a;
|
|
626
|
+
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.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 } }, (a = this.store.css3DRenderDisposer.get(e.id)) == null || a.forEach((d) => d == null ? void 0 : d()), e.tag3DContentSvelte = void 0);
|
|
626
627
|
}
|
|
627
628
|
}
|
|
628
629
|
export {
|
|
629
|
-
|
|
630
|
-
|
|
630
|
+
Wi as PanoTagPluginController,
|
|
631
|
+
Wi as default,
|
|
631
632
|
xi as pluginFlag
|
|
632
633
|
};
|