@realsee/dnalogel 3.2.0 → 3.3.0-dev.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/dist/PanoTagPlugin/controller/TagUtil.d.ts +8 -4
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
- package/dist/index.cjs.js +55 -55
- package/dist/index.js +4088 -4068
- package/dist/index.umd.js +52 -52
- package/dist/shared-utils/five/getFloorIndex.d.ts +2 -8
- package/dist/shared-utils/five/transformPosition.d.ts +2 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +120 -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 +725 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +678 -0
- package/docs/classes/CSS3DRender.html +773 -0
- package/docs/classes/CruisePluginController.html +672 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +476 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +856 -0
- package/docs/classes/Magnifier.html +480 -0
- package/docs/classes/ModelRoomLabelController.html +398 -0
- package/docs/classes/Object3DHelperController.html +640 -0
- package/docs/classes/PaintBrush.html +502 -0
- package/docs/classes/PanoMeasurePluginLine.html +522 -0
- package/docs/classes/PanoMeasurePluginModel.html +571 -0
- package/docs/classes/PanoMeasurePluginPoint.html +362 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +567 -0
- package/docs/classes/PanoTagPluginController.html +1077 -0
- package/docs/classes/Util.BetterTween.html +416 -0
- package/docs/classes/Util.Interval.html +432 -0
- package/docs/classes/Util.LineSegments.html +384 -0
- package/docs/classes/Util.Magnifier.html +503 -0
- package/docs/classes/Util.Object3D.html +406 -0
- package/docs/classes/Util.PointDomHelper.html +407 -0
- package/docs/classes/Util.PointHelper.html +398 -0
- package/docs/classes/Util.PointSelectorHelper.html +454 -0
- package/docs/classes/Util.Rectangle.html +455 -0
- package/docs/enums/CameraMovementEffect.html +310 -0
- package/docs/enums/ContentType.html +446 -0
- package/docs/enums/DIRECTION.html +320 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +320 -0
- package/docs/enums/DimensionType.html +310 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +313 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +320 -0
- package/docs/enums/PaintBrushTypeEnum.html +313 -0
- package/docs/enums/PointType.html +310 -0
- package/docs/enums/Rotation.html +317 -0
- package/docs/functions/AreaMakerPlugin.html +290 -0
- package/docs/functions/CSS3DRenderPlugin.html +288 -0
- package/docs/functions/CameraMovementPlugin.html +293 -0
- package/docs/functions/CruisePlugin.html +290 -0
- package/docs/functions/CurrentPanoImagePlugin.html +290 -0
- package/docs/functions/GuideLinePlugin.html +290 -0
- package/docs/functions/ItemLabelPlugin.html +290 -0
- package/docs/functions/MapviewFloorplanPlugin.html +290 -0
- package/docs/functions/ModelChassisCompassPlugin.html +293 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +293 -0
- package/docs/functions/ModelFloorplanPlugin.html +290 -0
- package/docs/functions/ModelItemLabelPlugin.html +290 -0
- package/docs/functions/ModelRoomLabelPlugin.html +288 -0
- package/docs/functions/ModelTVVideoPlugin.html +290 -0
- package/docs/functions/ModelViewPlugin.html +293 -0
- package/docs/functions/Object3DHelperPlugin.html +288 -0
- package/docs/functions/PanoCompassPlugin.html +290 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +294 -0
- package/docs/functions/PanoDoorLabelPlugin.html +290 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +290 -0
- package/docs/functions/PanoMeasurePlugin.html +290 -0
- package/docs/functions/PanoRulerPlugin.html +293 -0
- package/docs/functions/PanoRulerProPlugin.html +293 -0
- package/docs/functions/PanoSpatialTagPlugin.html +293 -0
- package/docs/functions/PanoTagPlugin.html +295 -0
- package/docs/functions/PanoVideoPlugin.html +299 -0
- package/docs/functions/PipelinePlugin.html +288 -0
- package/docs/functions/TopviewFloorplanPlugin.html +290 -0
- package/docs/functions/Util.absoluteUrl.html +326 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +329 -0
- package/docs/functions/Util.equal.html +338 -0
- package/docs/functions/Util.getCoordsFromClient.html +328 -0
- package/docs/functions/Util.getCoordsFromElement.html +328 -0
- package/docs/functions/Util.getFrameTime.html +320 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +328 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +328 -0
- package/docs/functions/Util.isAbsoluteURL.html +321 -0
- package/docs/functions/Util.isModelLike.html +321 -0
- package/docs/functions/Util.isNil.html +329 -0
- package/docs/functions/Util.isPanoramaLike.html +321 -0
- package/docs/functions/Util.nextFrame.html +334 -0
- package/docs/functions/Util.notNil.html +329 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +350 -0
- package/docs/functions/Util.tweenProgress.html +323 -0
- package/docs/functions/Util.uuid.html +319 -0
- package/docs/functions/pluginFlag.html +288 -0
- package/docs/index.html +354 -0
- package/docs/interfaces/AddTagConfig.html +303 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +329 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +334 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +620 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +333 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +383 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +368 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +333 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +326 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +325 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +354 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +449 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +325 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +358 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +359 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +361 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +696 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +385 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +421 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +411 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +351 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +319 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +408 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +382 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +521 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +323 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +315 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +337 -0
- package/docs/interfaces/EventMap.html +542 -0
- package/docs/interfaces/FloorplanBounding.html +332 -0
- package/docs/interfaces/FloorplanData.html +335 -0
- package/docs/interfaces/FloorplanEntrance.html +360 -0
- package/docs/interfaces/FloorplanExtraObject.html +350 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +339 -0
- package/docs/interfaces/FloorplanFloorData.html +328 -0
- package/docs/interfaces/FloorplanImagePosition.html +314 -0
- package/docs/interfaces/FloorplanObserver.html +332 -0
- package/docs/interfaces/FloorplanOutlineItem.html +328 -0
- package/docs/interfaces/FloorplanPosition.html +314 -0
- package/docs/interfaces/FloorplanRoomItem.html +379 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +320 -0
- package/docs/interfaces/FloorplanServerBounding.html +332 -0
- package/docs/interfaces/FloorplanServerComputedData.html +331 -0
- package/docs/interfaces/FloorplanServerData.html +314 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +331 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +317 -0
- package/docs/interfaces/FloorplanServerEntrance.html +360 -0
- package/docs/interfaces/FloorplanServerFloorData.html +328 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +314 -0
- package/docs/interfaces/FloorplanServerObserver.html +332 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +328 -0
- package/docs/interfaces/FloorplanServerPosition.html +314 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +391 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +320 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +323 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +362 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +526 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +357 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +348 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +415 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +337 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +347 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +483 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +344 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +483 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +309 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +330 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +355 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +371 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +353 -0
- package/docs/interfaces/HelperOffset.html +332 -0
- package/docs/interfaces/ImagePlaneGroup.html +306 -0
- package/docs/interfaces/ItemLabelPluginData.html +303 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +388 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +324 -0
- package/docs/interfaces/MinMax.html +310 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +310 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +346 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +310 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +317 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +354 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +303 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +388 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +310 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +303 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +324 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +348 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +303 -0
- package/docs/interfaces/ModelViewPluginExportType.html +416 -0
- package/docs/interfaces/Object3DHelperState.html +317 -0
- package/docs/interfaces/ObjectHelperControllers.html +324 -0
- package/docs/interfaces/PaintBrushAction.html +363 -0
- package/docs/interfaces/PaintBrushConfigs.html +361 -0
- package/docs/interfaces/PaintBrushState.html +345 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +425 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +282 -0
- package/docs/interfaces/PanoMeasureParameterType.html +449 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +317 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +314 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +310 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +320 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +377 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +326 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +317 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +353 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +323 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +310 -0
- package/docs/interfaces/PanoRulerProPluginState.html +317 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +296 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +285 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +353 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +335 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +431 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +331 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +352 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +338 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +331 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +323 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +341 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +314 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +420 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +314 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +349 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +368 -0
- package/docs/interfaces/Point.html +317 -0
- package/docs/interfaces/Room.html +324 -0
- package/docs/interfaces/RoomInfo.html +310 -0
- package/docs/interfaces/RoomLabel.html +386 -0
- package/docs/interfaces/RoomRules.html +285 -0
- package/docs/interfaces/Rooms.html +285 -0
- package/docs/interfaces/Scissor.html +344 -0
- package/docs/interfaces/State.html +331 -0
- package/docs/interfaces/TagCacheInterface.html +362 -0
- package/docs/interfaces/TagConfig.html +565 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +306 -0
- package/docs/interfaces/TagIconUrl.html +363 -0
- package/docs/interfaces/TagObjectGroup.html +306 -0
- package/docs/interfaces/TagStyle.html +316 -0
- package/docs/interfaces/Tags.html +2688 -0
- package/docs/interfaces/TemporaryState.html +303 -0
- package/docs/interfaces/Util.MagnifierParameter.html +391 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +350 -0
- package/docs/interfaces/Util.PointIntersection.html +365 -0
- package/docs/modules/AreaMakerPluginType.html +323 -0
- package/docs/modules/CruisePluginTypes.html +328 -0
- package/docs/modules/CurrentPanoImagePluginType.html +297 -0
- package/docs/modules/GuideLineItem.html +289 -0
- package/docs/modules/GuideLineModeItem.html +294 -0
- package/docs/modules/GuideLinePluginType.html +350 -0
- package/docs/modules/PanoVideoPluginType.html +301 -0
- package/docs/modules/Util.html +351 -0
- package/docs/modules.html +540 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +331 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +301 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +301 -0
- package/docs/types/ArrayPosition.html +279 -0
- package/docs/types/AudioAppearance.html +279 -0
- package/docs/types/AudioTagTypeConfigKey.html +279 -0
- package/docs/types/CSS3DRenderExportType.html +279 -0
- package/docs/types/CSS3DRenderPluginExportType.html +279 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +279 -0
- package/docs/types/ClassFunctionParameters.html +286 -0
- package/docs/types/Color.html +279 -0
- package/docs/types/ContentTypeConfigKey.html +279 -0
- package/docs/types/ContentTypeConfigKeySplit.html +279 -0
- package/docs/types/ContentTypeMap.html +279 -0
- package/docs/types/Create3DDomContainerReturnType.html +279 -0
- package/docs/types/Create3DElementReturnType.html +279 -0
- package/docs/types/CruisePluginExportType.html +279 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +318 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +295 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +279 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +291 -0
- package/docs/types/DeprecatedTagProperty.html +294 -0
- package/docs/types/Direction-1.html +279 -0
- package/docs/types/Direction4.html +279 -0
- package/docs/types/ElementRenderer.html +303 -0
- package/docs/types/FloorplanRuleLabels.html +282 -0
- package/docs/types/FloorplanServerRuleLabels.html +279 -0
- package/docs/types/GuideLinePluginExportType.html +279 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +352 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +373 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +306 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +309 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +309 -0
- package/docs/types/GuideLinePluginType.PathItem.html +309 -0
- package/docs/types/GuideLinePluginType.PluginData.html +318 -0
- package/docs/types/HelperEventMap.html +517 -0
- package/docs/types/LoadTagConfig.html +279 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +279 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +279 -0
- package/docs/types/MediaData.html +295 -0
- package/docs/types/MediaStore.html +284 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +286 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +279 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +279 -0
- package/docs/types/ModelId.html +279 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +279 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +279 -0
- package/docs/types/MoveArgs.html +289 -0
- package/docs/types/MoveOpts.html +287 -0
- package/docs/types/Object3DHelperEventMap.html +372 -0
- package/docs/types/ObjectFit.html +279 -0
- package/docs/types/PaintBrushEventMap.html +310 -0
- package/docs/types/PanoCompassPluginData.html +279 -0
- package/docs/types/PanoCompassPluginExportType.html +279 -0
- package/docs/types/PanoCompassPluginParameterType.html +279 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +279 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +279 -0
- package/docs/types/PanoIndex.html +279 -0
- package/docs/types/PanoMeasurePluginEvent.html +279 -0
- package/docs/types/PanoMeasureReturnType.html +279 -0
- package/docs/types/PanoSpatialTagPluginId.html +279 -0
- package/docs/types/PanoTagPluginExportInterface.html +279 -0
- package/docs/types/PanoTagPluginParamsInterface.html +279 -0
- package/docs/types/PanoVideoPluginParameterType.html +279 -0
- package/docs/types/PanoVideoPluginReturnType.html +279 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +287 -0
- package/docs/types/PipelinePluginParameterType.html +279 -0
- package/docs/types/PipelinePluginReturnType.html +279 -0
- package/docs/types/PlaneTag.html +287 -0
- package/docs/types/Point2DTag.html +287 -0
- package/docs/types/Point3DTag.html +287 -0
- package/docs/types/PointTag.html +284 -0
- package/docs/types/PointTagInstance.html +284 -0
- package/docs/types/Position.html +279 -0
- package/docs/types/RotateArgs.html +291 -0
- package/docs/types/RotateOpts.html +287 -0
- package/docs/types/RuleLabelsKey.html +279 -0
- package/docs/types/RuleLabelsValue.html +279 -0
- package/docs/types/StickType.html +279 -0
- package/docs/types/Tag.html +345 -0
- package/docs/types/Tag2D.html +287 -0
- package/docs/types/Tag3D.html +287 -0
- package/docs/types/TagConfigByKey.html +284 -0
- package/docs/types/TagContentType.html +279 -0
- package/docs/types/TagDimensionType.html +281 -0
- package/docs/types/TagElement.html +289 -0
- package/docs/types/TagEvents.html +332 -0
- package/docs/types/TagGLTFObject.html +302 -0
- package/docs/types/TagHooks.html +279 -0
- package/docs/types/TagId.html +279 -0
- package/docs/types/TagInstance.html +355 -0
- package/docs/types/TagPointType.html +282 -0
- package/docs/types/TagRendererMap.html +284 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +279 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +279 -0
- package/docs/types/WorkCode.html +279 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +289 -0
- package/docs/variables/PLUGIN.html +279 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +282 -0
- package/docs/variables/ROOM_TYPE_MAP.html +289 -0
- package/docs/variables/defaultGlobalConfig.html +279 -0
- package/docs/variables/itemLabelPluginServerParams.html +286 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +286 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +286 -0
- package/libs/CruisePlugin/Controller.js +35 -34
- package/libs/CruisePlugin/index.js +6 -5
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +8 -7
- package/libs/PanoTagPlugin/controller/TagComputer.js +90 -96
- package/libs/PanoTagPlugin/controller/TagRender.js +86 -86
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +8 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +119 -103
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/index.js +43 -38
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
- package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +117 -116
- package/libs/shared-utils/five/getFloorIndex.d.ts +2 -8
- package/libs/shared-utils/five/getFloorIndex.js +16 -12
- package/libs/shared-utils/five/transformPosition.d.ts +2 -0
- package/libs/shared-utils/five/transformPosition.js +10 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var X = Object.defineProperty, q = Object.defineProperties;
|
|
2
|
+
var K = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var w = (a,
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
4
|
+
var Q = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (a, s, e) => s in a ? X(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, b = (a, s) => {
|
|
6
|
+
for (var e in s || (s = {}))
|
|
7
|
+
Q.call(s, e) && w(a, e, s[e]);
|
|
8
8
|
if (R)
|
|
9
|
-
for (var e of R(
|
|
10
|
-
|
|
9
|
+
for (var e of R(s))
|
|
10
|
+
Y.call(s, e) && w(a, e, s[e]);
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
13
|
-
var d = (a,
|
|
14
|
-
import { defaultGlobalConfig as
|
|
15
|
-
import { objectAssignDeepExports as
|
|
16
|
-
import * as
|
|
17
|
-
import { DefaultConfig as
|
|
18
|
-
import { anyPositionToVector3 as
|
|
19
|
-
import { planeNormal as
|
|
20
|
-
import { getTagCenterPosition as
|
|
12
|
+
}, _ = (a, s) => q(a, K(s));
|
|
13
|
+
var d = (a, s, e) => (w(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
|
+
import { defaultGlobalConfig as Z } from "../typings/tag/TagConfig.js";
|
|
15
|
+
import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
+
import * as ee from "three";
|
|
17
|
+
import { DefaultConfig as ie } from "../tag.config.js";
|
|
18
|
+
import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
|
+
import { getTagCenterPosition as B } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as te } from "../utils/normalPositionToPositions.js";
|
|
22
22
|
import { TagCache as oe } from "./TagCache.js";
|
|
23
|
-
import { writable as
|
|
24
|
-
import { isIOSWX as
|
|
23
|
+
import { writable as re } from "../../vendor/svelte/store/index.js";
|
|
24
|
+
import { isIOSWX as ne } from "../../shared-utils/device.js";
|
|
25
25
|
import { Five as se } from "@realsee/five";
|
|
26
|
-
import { isMediaPlaneTag as fe, isMediaModelTag as
|
|
26
|
+
import { isMediaPlaneTag as fe, isMediaModelTag as N, isPlaneTag as ae, isPoint3DTag as ce } from "../utils/tag/tagCheck.js";
|
|
27
27
|
import { VideoPlane as le } from "../utils/model/mediaPlane.js";
|
|
28
28
|
import { FiveDomEvents as de } from "../../shared-utils/five/FiveDomEvents.js";
|
|
29
|
-
import
|
|
30
|
-
import { isPanoramaLike as
|
|
29
|
+
import $ from "../utils/tag/adaptConfig.js";
|
|
30
|
+
import { isPanoramaLike as A, isModelLike as z } from "../../shared-utils/five/mode.js";
|
|
31
31
|
import "hammerjs";
|
|
32
32
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
33
33
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
34
34
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
35
|
-
import { entries as
|
|
36
|
-
import { getUrlExt as
|
|
35
|
+
import { entries as H } from "../../shared-utils/typescript/entries.js";
|
|
36
|
+
import { getUrlExt as J } from "../../shared-utils/url/getUrl.js";
|
|
37
|
+
import { transformPosition as O } from "../../shared-utils/five/transformPosition.js";
|
|
37
38
|
import "../../shared-utils/three/centerPoint.js";
|
|
38
39
|
import "../../base/BasePlugin.js";
|
|
39
40
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -59,12 +60,12 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
59
60
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
60
61
|
import "../../shared-utils/three/getNormal.js";
|
|
61
62
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
62
|
-
class
|
|
63
|
+
class fi extends oe {
|
|
63
64
|
constructor(e) {
|
|
64
65
|
super(e);
|
|
65
66
|
d(this, "tags", []);
|
|
66
|
-
d(this, "config",
|
|
67
|
-
d(this, "mediaStore",
|
|
67
|
+
d(this, "config", ie);
|
|
68
|
+
d(this, "mediaStore", re({
|
|
68
69
|
currentMediaElement: null
|
|
69
70
|
}));
|
|
70
71
|
/** css3DRenderPlugin */
|
|
@@ -76,16 +77,17 @@ class si extends oe {
|
|
|
76
77
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
77
78
|
});
|
|
78
79
|
d(this, "domEvents", new de(this.five));
|
|
79
|
-
d(this, "
|
|
80
|
-
d(this, "
|
|
81
|
-
|
|
80
|
+
d(this, "_workCode");
|
|
81
|
+
d(this, "getObserverPosition", (e) => {
|
|
82
|
+
var o, t;
|
|
83
|
+
const i = (o = this.work) == null ? void 0 : o.observers[e];
|
|
84
|
+
if (i)
|
|
85
|
+
return O(i.position, (t = this.work) == null ? void 0 : t.options.transform);
|
|
82
86
|
});
|
|
83
|
-
d(this, "
|
|
84
|
-
|
|
85
|
-
if ((e = this.mouseInfo) != null && e.isDown)
|
|
86
|
-
return console.debug("preventWhenMouseDown 2"), !1;
|
|
87
|
+
d(this, "loadVideoFirstFrame", () => {
|
|
88
|
+
ne && this.hooks.emit("loadVideoFirstFrame");
|
|
87
89
|
});
|
|
88
|
-
this.
|
|
90
|
+
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
89
91
|
this.tags.forEach((o) => {
|
|
90
92
|
var t;
|
|
91
93
|
if (o.mediaPlane instanceof le && i !== o.mediaPlane.videoInstance) {
|
|
@@ -94,10 +96,19 @@ class si extends oe {
|
|
|
94
96
|
o.mediaPlane.pause();
|
|
95
97
|
}
|
|
96
98
|
});
|
|
97
|
-
}), this.store.disposers.push(() => {
|
|
98
|
-
this.five.off("wantsMoveToPano", this.preventWhenMouseDown), this.five.off("wantsTapGesture", this.preventWhenMouseDown);
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
+
set workCode(e) {
|
|
102
|
+
this._workCode = e;
|
|
103
|
+
}
|
|
104
|
+
get workCode() {
|
|
105
|
+
var e;
|
|
106
|
+
return (e = this._workCode) != null ? e : this.five.state.workCode;
|
|
107
|
+
}
|
|
108
|
+
get work() {
|
|
109
|
+
var e, i;
|
|
110
|
+
return (i = (e = this.five.works) == null ? void 0 : e.find((o) => o.workCode === this.workCode)) != null ? i : this.five.work;
|
|
111
|
+
}
|
|
101
112
|
getTagById(e) {
|
|
102
113
|
const i = this.tags.find((o) => o.id === e);
|
|
103
114
|
if (!i) {
|
|
@@ -114,9 +125,9 @@ class si extends oe {
|
|
|
114
125
|
* @description: 获取标签配置
|
|
115
126
|
*/
|
|
116
127
|
getTagConfig(e, i) {
|
|
117
|
-
var
|
|
118
|
-
const o = this.calculateTagConfig(e, i), t = (
|
|
119
|
-
return
|
|
128
|
+
var r, f, c;
|
|
129
|
+
const o = this.calculateTagConfig(e, i), t = (r = i == null ? void 0 : i.fiveMode) != null ? r : this.five.getCurrentState().mode, n = (f = o.configWithFiveMode) == null ? void 0 : f[t];
|
|
130
|
+
return (c = n != null ? n : o) != null ? c : {};
|
|
120
131
|
}
|
|
121
132
|
/**
|
|
122
133
|
* @description 获取标签当前状态
|
|
@@ -130,7 +141,7 @@ class si extends oe {
|
|
|
130
141
|
const i = this.getTagConfig(e, { useCache: !1 });
|
|
131
142
|
if (e.config = i, e.config.initialData) {
|
|
132
143
|
const t = JSON.parse(JSON.stringify(e.data));
|
|
133
|
-
e.data = (o = i.initialData) != null && o.important ?
|
|
144
|
+
e.data = (o = i.initialData) != null && o.important ? y(e.data, t, i.initialData) : y(e.data, i.initialData, t);
|
|
134
145
|
}
|
|
135
146
|
});
|
|
136
147
|
}
|
|
@@ -166,10 +177,10 @@ class si extends oe {
|
|
|
166
177
|
if (t[0].type === "Video")
|
|
167
178
|
return "Mesh";
|
|
168
179
|
if (t[0].type === "Image")
|
|
169
|
-
return
|
|
180
|
+
return J(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
170
181
|
}
|
|
171
|
-
} else if (
|
|
172
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
182
|
+
} else if (N(e))
|
|
183
|
+
return t.length === 1 && t[0].type === "Image" ? J(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
173
184
|
}
|
|
174
185
|
})();
|
|
175
186
|
return i != null ? i : "Dom";
|
|
@@ -178,7 +189,6 @@ class si extends oe {
|
|
|
178
189
|
* @description: 获取角度
|
|
179
190
|
*/
|
|
180
191
|
getAngle(e, i) {
|
|
181
|
-
var s, n;
|
|
182
192
|
const o = i != null ? i : this.five.getCurrentState().panoIndex;
|
|
183
193
|
if (o === void 0)
|
|
184
194
|
throw new Error(`getAngle(): fivePanoIndex is ${o}`);
|
|
@@ -186,69 +196,68 @@ class si extends oe {
|
|
|
186
196
|
if (t.angle !== void 0)
|
|
187
197
|
return t.angle;
|
|
188
198
|
{
|
|
189
|
-
const
|
|
190
|
-
if (
|
|
191
|
-
throw new Error(`getAngle(): observerPosition is ${
|
|
192
|
-
const
|
|
193
|
-
if (!
|
|
199
|
+
const n = this.getObserverPosition(o);
|
|
200
|
+
if (n === void 0)
|
|
201
|
+
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
202
|
+
const r = (() => e.stickType === "3DPoint" ? C(e.normal) : E(e.position))();
|
|
203
|
+
if (!r)
|
|
194
204
|
return;
|
|
195
|
-
const
|
|
196
|
-
if (!
|
|
205
|
+
const f = B(e);
|
|
206
|
+
if (!f)
|
|
197
207
|
return;
|
|
198
|
-
const
|
|
199
|
-
return t.angle =
|
|
208
|
+
const c = new ee.Vector3().copy(n).sub(f), g = r.angleTo(c) * 180 / Math.PI;
|
|
209
|
+
return t.angle = g, t.angle;
|
|
200
210
|
}
|
|
201
211
|
}
|
|
202
212
|
/**
|
|
203
213
|
* @description: 获取距离
|
|
204
214
|
*/
|
|
205
215
|
getDistance(e, i) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
const f = N(e);
|
|
216
|
+
const o = b(b({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r = A(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
217
|
+
if ((r == null ? void 0 : r.distance) !== void 0)
|
|
218
|
+
return r.distance;
|
|
219
|
+
const f = B(e);
|
|
211
220
|
if (!f)
|
|
212
221
|
return -1;
|
|
213
|
-
if (
|
|
214
|
-
const
|
|
215
|
-
if (
|
|
222
|
+
if (A(n)) {
|
|
223
|
+
const c = this.getObserverPosition(t);
|
|
224
|
+
if (c === void 0)
|
|
216
225
|
return -1;
|
|
217
|
-
const
|
|
218
|
-
return
|
|
226
|
+
const g = c.distanceTo(f);
|
|
227
|
+
return r && (r.distance = g), g;
|
|
219
228
|
}
|
|
220
|
-
if (
|
|
229
|
+
if (z(n))
|
|
221
230
|
return this.five.camera.position.distanceTo(f);
|
|
222
231
|
}
|
|
223
232
|
getPositions(e) {
|
|
224
233
|
if (ae(e))
|
|
225
234
|
return e.position;
|
|
226
|
-
if (
|
|
235
|
+
if (N(e))
|
|
227
236
|
return e.data.mediaPosition;
|
|
228
237
|
if (ce(e))
|
|
229
|
-
return te(this.five.camera.position,
|
|
238
|
+
return te(this.five.camera.position, C(e.position), C(e.normal));
|
|
230
239
|
}
|
|
231
240
|
addObjectClickHandler(e, i, o) {
|
|
232
241
|
if (!i || !this.domEvents)
|
|
233
242
|
return () => {
|
|
234
243
|
};
|
|
235
|
-
const t = () => !(!this.getCurrentVisibleState(e) || e.loading),
|
|
244
|
+
const t = () => !(!this.getCurrentVisibleState(e) || e.loading), n = (r) => {
|
|
236
245
|
if (!t())
|
|
237
246
|
return !1;
|
|
238
|
-
o(
|
|
247
|
+
o(r.origDomEvent);
|
|
239
248
|
};
|
|
240
|
-
return this.domEvents.addEventListener(i, "click",
|
|
241
|
-
var
|
|
242
|
-
(
|
|
249
|
+
return this.domEvents.addEventListener(i, "click", n), () => {
|
|
250
|
+
var r;
|
|
251
|
+
(r = this.domEvents) == null || r.removeEventListener(i, "click", n);
|
|
243
252
|
};
|
|
244
253
|
}
|
|
245
254
|
getTagNormal(e) {
|
|
246
255
|
if (e.normal)
|
|
247
|
-
return
|
|
256
|
+
return C(e.normal);
|
|
248
257
|
if (e.stickType === "Plane")
|
|
249
|
-
return
|
|
258
|
+
return E(e.position);
|
|
250
259
|
if (e.stickType === "Model")
|
|
251
|
-
return
|
|
260
|
+
return E(this.getPositions(e));
|
|
252
261
|
}
|
|
253
262
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
254
263
|
get filterPointTag() {
|
|
@@ -273,6 +282,13 @@ class si extends oe {
|
|
|
273
282
|
return o === "BehindDom" || o === "Dom";
|
|
274
283
|
});
|
|
275
284
|
}
|
|
285
|
+
getTransformedPostion(e) {
|
|
286
|
+
var o;
|
|
287
|
+
if (!e)
|
|
288
|
+
return;
|
|
289
|
+
const i = (o = this.work) == null ? void 0 : o.options.transform;
|
|
290
|
+
return Array.isArray(e) && e.length === 4 ? e.map(C).map((t) => O(t, i)) : O(C(e), i);
|
|
291
|
+
}
|
|
276
292
|
/**
|
|
277
293
|
* @description 检查是否已经销毁
|
|
278
294
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -284,46 +300,46 @@ class si extends oe {
|
|
|
284
300
|
* @description: 获取merge后的配置
|
|
285
301
|
*/
|
|
286
302
|
calculateTagConfig(e, i) {
|
|
287
|
-
var
|
|
288
|
-
const o = (
|
|
303
|
+
var j, S, I, W;
|
|
304
|
+
const o = (j = i == null ? void 0 : i.useCache) != null ? j : !0;
|
|
289
305
|
if (!e)
|
|
290
|
-
return (
|
|
291
|
-
if (o && ((
|
|
306
|
+
return (S = this.config.globalConfig) != null ? S : {};
|
|
307
|
+
if (o && ((I = e.config) != null && I._isMerged))
|
|
292
308
|
return e.config;
|
|
293
|
-
const t = {},
|
|
294
|
-
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([
|
|
295
|
-
var
|
|
296
|
-
const
|
|
297
|
-
if (!
|
|
298
|
-
if (
|
|
299
|
-
const [m] =
|
|
300
|
-
(e.contentType === m || m === "Any") && (
|
|
309
|
+
const t = {}, n = {}, r = {};
|
|
310
|
+
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, p]) => {
|
|
311
|
+
var V, L;
|
|
312
|
+
const l = u, D = l.split("-"), F = u.startsWith("["), T = F ? D[0].slice(1, -1) : void 0, h = F ? D.slice(1) : D, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (V = n[T]) != null ? V : n[T] = {} : (L = r[T]) != null ? L : r[T] = {} : t;
|
|
313
|
+
if (!v[l]) {
|
|
314
|
+
if (h.length === 0 && (v[l] = p), h.length === 1) {
|
|
315
|
+
const [m] = h;
|
|
316
|
+
(e.contentType === m || m === "Any") && (v[l] = p);
|
|
301
317
|
}
|
|
302
|
-
if (
|
|
303
|
-
const [m = "Any",
|
|
304
|
-
m === "Mixin" && e.contentType ===
|
|
318
|
+
if (h.length === 2) {
|
|
319
|
+
const [m = "Any", P = "Any"] = h;
|
|
320
|
+
m === "Mixin" && e.contentType === P && (v[l] = p), (e.stickType === m || m === "Any") && (e.contentType === P || P === "Any") && (v[l] = p);
|
|
305
321
|
}
|
|
306
|
-
if (
|
|
307
|
-
const [m = "Any",
|
|
308
|
-
if (
|
|
322
|
+
if (h.length === 3) {
|
|
323
|
+
const [m = "Any", P, G] = h;
|
|
324
|
+
if (P === "Audio" && e.contentType === "Audio") {
|
|
309
325
|
const x = e;
|
|
310
|
-
(x.stickType === m || m === "Any") && x.data.appearance ===
|
|
326
|
+
(x.stickType === m || m === "Any") && x.data.appearance === G && (v[l] = p);
|
|
311
327
|
}
|
|
312
328
|
}
|
|
313
329
|
}
|
|
314
330
|
});
|
|
315
|
-
const f = (
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
(
|
|
331
|
+
const f = (W = e.config) != null && W._isMerged ? e.initialConfig : e.config, c = y({}, Z, this.config.globalConfig, ...Object.values(t)), g = y({}, c, f), k = {}, U = Object.values(se.Mode);
|
|
332
|
+
H(n).forEach(([u, p]) => {
|
|
333
|
+
U.forEach((l) => {
|
|
334
|
+
(u === "PanoramaLike" && A(l) || u === "ModelLike" && z(l)) && (k[l] = y({}, c, ...Object.values(p), f));
|
|
319
335
|
});
|
|
320
|
-
}),
|
|
321
|
-
|
|
336
|
+
}), H(r).forEach(([u, p]) => {
|
|
337
|
+
k[u] = y({}, c, ...Object.values(p), f);
|
|
322
338
|
});
|
|
323
|
-
const
|
|
324
|
-
return
|
|
339
|
+
const M = _(b({}, g), { configWithFiveMode: k });
|
|
340
|
+
return $(M, e), Object.values(k).forEach((u) => $(u, e)), M._isMerged = !0, M;
|
|
325
341
|
}
|
|
326
342
|
}
|
|
327
343
|
export {
|
|
328
|
-
|
|
344
|
+
fi as TagUtil
|
|
329
345
|
};
|
|
@@ -53,7 +53,7 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
53
53
|
disable(params?: {
|
|
54
54
|
userAction?: boolean;
|
|
55
55
|
}): void;
|
|
56
|
-
setState(state: Partial<State>, params
|
|
56
|
+
setState(state: Partial<State>, params?: {
|
|
57
57
|
userAction?: boolean;
|
|
58
58
|
visibleWithAnimation?: boolean;
|
|
59
59
|
}): void;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var w = Object.defineProperty, E = Object.defineProperties;
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
|
-
var I = Object.prototype.hasOwnProperty,
|
|
4
|
+
var I = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var m = (d, a, e) => a in d ? w(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
7
|
I.call(a, e) && m(d, e, a[e]);
|
|
8
8
|
if (C)
|
|
9
9
|
for (var e of C(a))
|
|
10
|
-
|
|
10
|
+
R.call(a, e) && m(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
12
|
}, u = (d, a) => E(d, U(a));
|
|
13
13
|
var l = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
-
var
|
|
14
|
+
var f = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
@@ -28,11 +28,11 @@ var p = (d, a, e) => new Promise((t, i) => {
|
|
|
28
28
|
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as v from "three";
|
|
31
|
-
import { Subscribe as
|
|
32
|
-
import { objectAssignDeepExports as
|
|
33
|
-
import { addDebugPoints as
|
|
31
|
+
import { Subscribe as B } from "@realsee/five";
|
|
32
|
+
import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
+
import { addDebugPoints as F } from "../utils/addDebugPoints.js";
|
|
34
34
|
import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
|
|
35
|
-
import { isMediaModelTag as
|
|
35
|
+
import { isMediaModelTag as M, isModelTag as _ } from "../utils/tag/tagCheck.js";
|
|
36
36
|
import { debounce as k } from "../utils/debounce.js";
|
|
37
37
|
import { throttle as O } from "../utils/throttle.js";
|
|
38
38
|
import { resizeObserver as D } from "../utils/resizeObserver.js";
|
|
@@ -89,6 +89,7 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
89
89
|
import "../utils/tag/adaptConfig.js";
|
|
90
90
|
import "../../shared-utils/typescript/entries.js";
|
|
91
91
|
import "../../shared-utils/url/getUrl.js";
|
|
92
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
92
93
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
93
94
|
import "../../shared-utils/safeObj.js";
|
|
94
95
|
import "../Components/TagContainer.js";
|
|
@@ -167,8 +168,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
167
168
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
168
169
|
import "@realsee/five/gltf-loader";
|
|
169
170
|
import "../../shared-utils/animationFrame/index.js";
|
|
170
|
-
const P = "Dnalogel-PanoTagPlugin",
|
|
171
|
-
class
|
|
171
|
+
const P = "Dnalogel-PanoTagPlugin", Pi = (d) => `${P}--${d}`;
|
|
172
|
+
class Si extends N {
|
|
172
173
|
constructor(e, t) {
|
|
173
174
|
super(e);
|
|
174
175
|
/** state */
|
|
@@ -178,8 +179,8 @@ class Pi extends N {
|
|
|
178
179
|
/** debug */
|
|
179
180
|
l(this, "debug");
|
|
180
181
|
/** 更改 tag 模型 */
|
|
181
|
-
l(this, "changeTagModel", (e, t) =>
|
|
182
|
-
e.data =
|
|
182
|
+
l(this, "changeTagModel", (e, t) => f(this, null, function* () {
|
|
183
|
+
e.data = p({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
183
184
|
}));
|
|
184
185
|
l(this, "whyHide", (e) => {
|
|
185
186
|
var i, s, o;
|
|
@@ -192,16 +193,18 @@ class Pi extends N {
|
|
|
192
193
|
return { reason: `tag ${e} not found` };
|
|
193
194
|
if (!t.enabled)
|
|
194
195
|
return { reason: `tag ${e} enabled is ${t.enabled}` };
|
|
196
|
+
if (t.stickType === "Model" || t.stickType === "Plane")
|
|
197
|
+
return { reason: "maybe blocked by the five model" };
|
|
195
198
|
if (!t.state.visible) {
|
|
196
199
|
const n = (s = (i = this.getPanoIndexCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : i.__debug_visible_reason__) == null ? void 0 : s.reason;
|
|
197
|
-
return { reason: (o = n.type) != null ? o : n, reasonObj: n };
|
|
200
|
+
return { reason: (o = n == null ? void 0 : n.type) != null ? o : n, reasonObj: n };
|
|
198
201
|
}
|
|
199
|
-
return
|
|
202
|
+
return { reason: "check your eyes" };
|
|
200
203
|
});
|
|
201
204
|
l(this, "updateVisible", () => {
|
|
202
205
|
const e = this.five.getCurrentState().mode;
|
|
203
206
|
this.tags.forEach((t) => {
|
|
204
|
-
|
|
207
|
+
M(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
205
208
|
}), this.setVisible(), this.updateRenderAllTags();
|
|
206
209
|
});
|
|
207
210
|
l(this, "handleFiveWantsMoveToPano", (e) => {
|
|
@@ -240,12 +243,12 @@ class Pi extends N {
|
|
|
240
243
|
l(this, "handleFiveCameraUpdate", () => {
|
|
241
244
|
this.updatePointTagPosition();
|
|
242
245
|
});
|
|
243
|
-
l(this, "handleFivePanoArrived", () =>
|
|
246
|
+
l(this, "handleFivePanoArrived", () => f(this, null, function* () {
|
|
244
247
|
this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
245
248
|
e.temporaryState = u(c({}, e.temporaryState), { visible: !0 });
|
|
246
249
|
}), this.tags.filter(_).filter((e) => {
|
|
247
|
-
var t
|
|
248
|
-
return (
|
|
250
|
+
var t;
|
|
251
|
+
return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
249
252
|
}).forEach((e) => {
|
|
250
253
|
var h;
|
|
251
254
|
const t = new v.Mesh(new v.BoxGeometry(), new v.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
|
|
@@ -265,9 +268,9 @@ class Pi extends N {
|
|
|
265
268
|
this.setVisible(), this.updateRenderAllTags();
|
|
266
269
|
});
|
|
267
270
|
l(this, "onFiveEveryReady", () => {
|
|
268
|
-
this.setUnfoldedByCamera(), x(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(
|
|
271
|
+
this.setUnfoldedByCamera(), x(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 }), this.updateRenderVideoPlane(), this.updateRenderImagePlane(), this.updateRenderModelTag();
|
|
269
272
|
});
|
|
270
|
-
this.params =
|
|
273
|
+
this.params = p({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, L(1, { namespace: G.PlayAudio });
|
|
271
274
|
try {
|
|
272
275
|
const i = window;
|
|
273
276
|
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
@@ -278,16 +281,16 @@ class Pi extends N {
|
|
|
278
281
|
* @description: 加载数据
|
|
279
282
|
*/
|
|
280
283
|
load(e, t) {
|
|
281
|
-
return
|
|
284
|
+
return f(this, null, function* () {
|
|
282
285
|
var s, o;
|
|
283
|
-
this.clearTags(), console.debug(P, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
286
|
+
this.clearTags(), console.debug(P, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
|
|
284
287
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
285
288
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
286
289
|
});
|
|
287
290
|
const i = yield this.addTag(e.tagList, t);
|
|
288
291
|
if (this.debug)
|
|
289
292
|
try {
|
|
290
|
-
|
|
293
|
+
F(this.five, this.tags);
|
|
291
294
|
} catch (n) {
|
|
292
295
|
console.error(n);
|
|
293
296
|
}
|
|
@@ -298,19 +301,21 @@ class Pi extends N {
|
|
|
298
301
|
* @description: 添加标签
|
|
299
302
|
*/
|
|
300
303
|
addTag(e, t) {
|
|
301
|
-
return
|
|
304
|
+
return f(this, null, function* () {
|
|
302
305
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
303
306
|
var b, T, y;
|
|
304
307
|
const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data)), h = o.config;
|
|
305
308
|
return o.config = n, u(c({}, o), {
|
|
306
309
|
enabled: (b = o.enabled) != null ? b : !0,
|
|
307
310
|
id: (T = o.id) != null ? T : z(),
|
|
308
|
-
data: (y = n.initialData) != null && y.important ?
|
|
311
|
+
data: (y = n.initialData) != null && y.important ? p(o.data, r, n.initialData) : p(o.data, n.initialData, r),
|
|
309
312
|
state: c({
|
|
310
313
|
visible: void 0,
|
|
311
314
|
unfolded: !this.can("fold", o)
|
|
312
315
|
}, n.initialState),
|
|
313
|
-
hooks: new
|
|
316
|
+
hooks: new B(),
|
|
317
|
+
originPosition: o.position,
|
|
318
|
+
position: this.getTransformedPostion(o.position),
|
|
314
319
|
initialConfig: h,
|
|
315
320
|
config: n,
|
|
316
321
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
@@ -321,7 +326,7 @@ class Pi extends N {
|
|
|
321
326
|
changeData: (S) => this.changeDataById(o.id, S)
|
|
322
327
|
});
|
|
323
328
|
}).filter((o) => o.position);
|
|
324
|
-
return s.forEach(V), this.tags.push(...s), W(this.five).then(() =>
|
|
329
|
+
return s.forEach(V), this.tags.push(...s), W(this.five).then(() => f(this, null, function* () {
|
|
325
330
|
var o, n, r;
|
|
326
331
|
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: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }), this.updatePointTagPosition(), this.updateRenderAllTags();
|
|
327
332
|
}));
|
|
@@ -331,22 +336,22 @@ class Pi extends N {
|
|
|
331
336
|
* @description: 改变配置
|
|
332
337
|
*/
|
|
333
338
|
changeConfig(e, t = !0) {
|
|
334
|
-
t ? this.config =
|
|
339
|
+
t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig(), this.updateRenderAllTags();
|
|
335
340
|
}
|
|
336
341
|
/**
|
|
337
342
|
* @description: 改变全局配置
|
|
338
343
|
*/
|
|
339
344
|
changeGlobalConfig(e, t = !0) {
|
|
340
|
-
t ? this.config.globalConfig =
|
|
345
|
+
t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.updateRenderAllTags();
|
|
341
346
|
}
|
|
342
347
|
/**
|
|
343
348
|
* @description: 改变类型配置
|
|
344
349
|
*/
|
|
345
350
|
changeContentTypeConfig(e, t, i = !0) {
|
|
346
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
351
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig(), this.updateRenderAllTags();
|
|
347
352
|
}
|
|
348
353
|
show(e) {
|
|
349
|
-
return
|
|
354
|
+
return f(this, null, function* () {
|
|
350
355
|
if (this.checkDisposed())
|
|
351
356
|
return;
|
|
352
357
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
@@ -354,7 +359,7 @@ class Pi extends N {
|
|
|
354
359
|
});
|
|
355
360
|
}
|
|
356
361
|
hide(e) {
|
|
357
|
-
return
|
|
362
|
+
return f(this, null, function* () {
|
|
358
363
|
if (this.checkDisposed())
|
|
359
364
|
return;
|
|
360
365
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
@@ -376,7 +381,7 @@ class Pi extends N {
|
|
|
376
381
|
setState(e, t) {
|
|
377
382
|
if (this.checkDisposed())
|
|
378
383
|
return;
|
|
379
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = c({}, this.state);
|
|
384
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t != null ? t : {}, o = c({}, this.state);
|
|
380
385
|
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
381
386
|
}
|
|
382
387
|
/**
|
|
@@ -419,7 +424,7 @@ class Pi extends N {
|
|
|
419
424
|
changeDataById(e, t, i = !0) {
|
|
420
425
|
const s = this.getTagById(e);
|
|
421
426
|
let o = !1;
|
|
422
|
-
s && (s.data && (o = !0), i ? s.data =
|
|
427
|
+
s && (s.data && (o = !0), i ? s.data = p(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
|
|
423
428
|
}
|
|
424
429
|
/**
|
|
425
430
|
* @description: 改变tag的stickType
|
|
@@ -433,7 +438,7 @@ class Pi extends N {
|
|
|
433
438
|
changeTagById(e, t, i = !0) {
|
|
434
439
|
const s = this.getTagById(e);
|
|
435
440
|
let o = !1;
|
|
436
|
-
t && (t.data && (o = !0), i ?
|
|
441
|
+
t && (t.data && (o = !0), i ? p(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
|
|
437
442
|
}
|
|
438
443
|
/**
|
|
439
444
|
* @description: 销毁tag
|
|
@@ -448,7 +453,7 @@ class Pi extends N {
|
|
|
448
453
|
* @description: 设置 visible 和 unfolded
|
|
449
454
|
*/
|
|
450
455
|
setVisibleAndUnfolded() {
|
|
451
|
-
return
|
|
456
|
+
return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
452
457
|
return this.setVisible(), e ? new Promise((t) => {
|
|
453
458
|
setTimeout(() => {
|
|
454
459
|
this.setUnfoldedByPanoIndex(), t();
|
|
@@ -534,7 +539,7 @@ class Pi extends N {
|
|
|
534
539
|
}
|
|
535
540
|
}
|
|
536
541
|
export {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
542
|
+
Si as PanoTagPluginController,
|
|
543
|
+
Si as default,
|
|
544
|
+
Pi as pluginFlag
|
|
540
545
|
};
|