@realsee/dnalogel 2.13.2 → 2.14.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/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/typing.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
- package/dist/Object3DHelperPlugin/Controller.d.ts +1 -3
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -4
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
- package/dist/PanoTagPlugin/typings/controller.d.ts +4 -6
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
- package/{libs/PanoTagPlugin/utils/model/imageModel.d.ts → dist/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
- package/dist/index.cjs.js +47 -47
- package/dist/index.js +5101 -5083
- package/dist/index.umd.js +43 -43
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
- package/{libs/shared-utils/Object3DHelper/utils → dist/shared-utils}/threex/domevents/index.d.ts +9 -7
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -31
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +90 -222
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -8
- package/docs/functions/CameraMovementPlugin.html +5 -8
- package/docs/functions/CruisePlugin.html +5 -8
- package/docs/functions/GuideLinePlugin.html +5 -8
- package/docs/functions/ItemLabelPlugin.html +5 -8
- package/docs/functions/MapviewFloorplanPlugin.html +5 -8
- package/docs/functions/ModelChassisCompassPlugin.html +5 -8
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -8
- package/docs/functions/ModelFloorplanPlugin.html +5 -8
- package/docs/functions/ModelItemLabelPlugin.html +5 -8
- package/docs/functions/ModelRoomLabelPlugin.html +5 -8
- package/docs/functions/ModelTVVideoPlugin.html +5 -8
- package/docs/functions/ModelViewPlugin.html +5 -8
- package/docs/functions/Object3DHelperPlugin.html +5 -8
- package/docs/functions/PanoCompassPlugin.html +5 -8
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -8
- package/docs/functions/PanoDoorLabelPlugin.html +5 -8
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -8
- package/docs/functions/PanoMeasurePlugin.html +5 -8
- package/docs/functions/PanoRulerPlugin.html +5 -8
- package/docs/functions/PanoRulerProPlugin.html +5 -8
- package/docs/functions/PanoSpatialTagPlugin.html +5 -8
- package/docs/functions/PanoTagPlugin.html +5 -8
- package/docs/functions/PanoVideoPlugin.html +5 -8
- package/docs/functions/TopviewFloorplanPlugin.html +5 -8
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -8
- package/docs/index.html +4 -7
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -8
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -8
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -8
- package/docs/interfaces/Rooms.html +5 -8
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +10 -10
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -10
- package/docs/types/ArrayPosition.html +5 -8
- package/docs/types/AudioAppearance.html +5 -8
- package/docs/types/AudioTagTypeConfigKey.html +5 -8
- package/docs/types/CSS3DRenderExportType.html +5 -8
- package/docs/types/CSS3DRenderPluginExportType.html +5 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -8
- package/docs/types/ClassFunctionParameters.html +5 -8
- package/docs/types/Color.html +5 -8
- package/docs/types/ContentTypeConfigKey.html +5 -8
- package/docs/types/ContentTypeConfigKeySplit.html +5 -8
- package/docs/types/ContentTypeMap.html +5 -8
- package/docs/types/Create3DDomContainerReturnType.html +5 -8
- package/docs/types/Create3DElementReturnType.html +5 -8
- package/docs/types/CruisePluginExportType.html +5 -8
- package/docs/types/Direction-1.html +5 -8
- package/docs/types/Direction4.html +5 -8
- package/docs/types/FloorplanRuleLabels.html +5 -8
- package/docs/types/FloorplanServerRuleLabels.html +5 -8
- package/docs/types/GuideLinePluginExportType.html +5 -8
- package/docs/types/HelperEventMap.html +5 -8
- package/docs/types/LoadTagConfig.html +5 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -8
- package/docs/types/MediaData.html +5 -8
- package/docs/types/MediaStore.html +5 -8
- package/docs/types/ModelElement.html +5 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -8
- package/docs/types/MoveArgs.html +5 -8
- package/docs/types/MoveOpts.html +5 -8
- package/docs/types/Object3DHelperEventMap.html +5 -8
- package/docs/types/ObjectFit.html +5 -8
- package/docs/types/PaintBrushEventMap.html +5 -8
- package/docs/types/PanoCompassPluginData.html +5 -8
- package/docs/types/PanoCompassPluginExportType.html +5 -8
- package/docs/types/PanoCompassPluginParameterType.html +5 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -8
- package/docs/types/PanoIndex.html +5 -8
- package/docs/types/PanoMeasurePluginEvent.html +5 -8
- package/docs/types/PanoMeasureReturnType.html +5 -8
- package/docs/types/PanoSpatialTagPluginId.html +5 -8
- package/docs/types/PanoTagPluginExportInterface.html +5 -8
- package/docs/types/PanoTagPluginParamsInterface.html +5 -8
- package/docs/types/PanoVideoPluginParameterType.html +5 -8
- package/docs/types/PanoVideoPluginReturnType.html +5 -8
- package/docs/types/PlaneTag.html +5 -8
- package/docs/types/PlaneTagElement.html +5 -8
- package/docs/types/Point2DElement.html +5 -8
- package/docs/types/Point2DTag.html +5 -8
- package/docs/types/Point3DElement.html +5 -8
- package/docs/types/Point3DTag.html +5 -8
- package/docs/types/PointTag.html +5 -8
- package/docs/types/PointTagElement.html +5 -8
- package/docs/types/Position.html +5 -8
- package/docs/types/RotateArgs.html +5 -8
- package/docs/types/RotateOpts.html +5 -8
- package/docs/types/RuleLabelsKey.html +5 -8
- package/docs/types/RuleLabelsValue.html +5 -8
- package/docs/types/StickType.html +5 -8
- package/docs/types/Tag.html +6 -9
- package/docs/types/Tag2D.html +5 -8
- package/docs/types/Tag3D.html +5 -8
- package/docs/types/TagContentType.html +5 -8
- package/docs/types/TagDimensionType.html +5 -8
- package/docs/types/TagElement.html +6 -9
- package/docs/types/TagEvents.html +5 -8
- package/docs/types/TagGLTFObject.html +5 -8
- package/docs/types/TagHooks.html +5 -8
- package/docs/types/TagIconSize.html +5 -8
- package/docs/types/TagId.html +5 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -8
- package/docs/types/WorkCode.html +5 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -8
- package/docs/variables/PLUGIN.html +6 -9
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -8
- package/docs/variables/ROOM_TYPE_MAP.html +5 -8
- package/docs/variables/itemLabelPluginServerParams.html +5 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -8
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +2 -4
- package/libs/CSS3DRenderPlugin/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CSS3DRenderPlugin/typing.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +21 -21
- package/libs/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
- package/libs/CSS3DRenderPlugin/{CSS3DRender.js → utils/three/CSS3DRender.js} +13 -13
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -11
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -3
- package/libs/Object3DHelperPlugin/Controller.js +50 -52
- package/libs/Object3DHelperPlugin/index.js +3 -4
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +7 -0
- package/libs/PanoTagPlugin/Archive/deprecated.js +4 -0
- package/libs/PanoTagPlugin/Archive/index.d.ts +1 -0
- package/libs/PanoTagPlugin/Archive/index.js +4 -0
- package/libs/PanoTagPlugin/Components/Common/Audio.js +93 -97
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +206 -205
- package/libs/PanoTagPlugin/Components/Common/Media.js +115 -109
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +100 -100
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +66 -68
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +14 -15
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +45 -45
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +101 -106
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +82 -84
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +62 -61
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +13 -13
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +49 -48
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +52 -51
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +108 -115
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +25 -36
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +49 -50
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +68 -70
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +55 -54
- package/libs/PanoTagPlugin/Components/Tag/index.js +153 -163
- package/libs/PanoTagPlugin/Components/TagContainer.js +5 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +80 -87
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
- package/libs/PanoTagPlugin/controller/TagComputer.js +80 -58
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -4
- package/libs/PanoTagPlugin/controller/TagRender.js +161 -153
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +179 -77
- package/libs/PanoTagPlugin/controller/index.js +54 -49
- package/libs/PanoTagPlugin/index.js +16 -16
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +4 -6
- package/libs/PanoTagPlugin/typings/index.js +7 -5
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
- package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -3
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +6 -4
- package/libs/PanoTagPlugin/utils/index.js +35 -33
- package/{dist/PanoTagPlugin/utils/model/imageModel.d.ts → libs/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
- package/libs/PanoTagPlugin/utils/model/imagePlane.js +33 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +8 -4
- package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +31 -33
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
- package/libs/shared-utils/three/index.js +1 -1
- package/{dist/shared-utils/Object3DHelper/utils → libs/shared-utils}/threex/domevents/index.d.ts +9 -7
- package/libs/shared-utils/{Object3DHelper/utils/threex → threex}/domevents/index.js +4 -3
- package/package.json +1 -1
- package/docs/enums/PointType.html +0 -72
- package/docs/types/TagPointType.html +0 -272
- package/docs/variables/VERSION.html +0 -269
- package/libs/PanoTagPlugin/tsconfig.js +0 -9
- package/libs/PanoTagPlugin/utils/model/imageModel.js +0 -31
|
@@ -1,90 +1,117 @@
|
|
|
1
|
-
var
|
|
2
|
-
var y = (
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
import { DefaultConfig as
|
|
7
|
-
import { anyPositionToVector3 as
|
|
8
|
-
import { planeNormal as
|
|
9
|
-
import { tagPosition as k, getTagPosition as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var y = (u, c, e) => c in u ? T(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e;
|
|
3
|
+
var l = (u, c, e) => (y(u, typeof c != "symbol" ? c + "" : c, e), e);
|
|
4
|
+
import C from "object-assign-deep";
|
|
5
|
+
import * as P from "three";
|
|
6
|
+
import { DefaultConfig as D } from "../tag.config.js";
|
|
7
|
+
import { anyPositionToVector3 as E, arrayPositionToVector3 as g } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
8
|
+
import { planeNormal as p } from "../utils/planeNormal.js";
|
|
9
|
+
import { tagPosition as k, getTagPosition as w } from "../utils/tagPosition.js";
|
|
10
|
+
import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
|
|
11
|
+
import { TagCache as b } from "./TagCache.js";
|
|
12
|
+
import { writable as I } from "../../vendor/svelte/store/index.js";
|
|
13
|
+
import { isIOSWX as A } from "../utils/device.js";
|
|
14
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
15
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
16
|
+
import "@realsee/five";
|
|
17
|
+
import { isMediaPlaneTag as x, isMediaModelTag as v, isPlaneTag as H } from "../utils/tag/tagCheck.js";
|
|
18
|
+
import { DomEvents as L } from "../../shared-utils/threex/domevents/index.js";
|
|
19
|
+
import "@realsee/five/gltf-loader";
|
|
20
|
+
import "../../shared-utils/three/loadTexture.js";
|
|
13
21
|
import "../../shared-utils/three/centerPoint.js";
|
|
14
|
-
import "../utils/tag/tagCheck.js";
|
|
15
22
|
import "../../base/BasePlugin.js";
|
|
16
23
|
import "../../shared-utils/Subscribe.js";
|
|
17
24
|
import "../../vendor/svelte/internal/index.js";
|
|
18
|
-
|
|
25
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
26
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
27
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
28
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
29
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
30
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
31
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
32
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
33
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
34
|
+
class ae extends b {
|
|
19
35
|
constructor(e) {
|
|
20
36
|
super(e);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
37
|
+
l(this, "tags", []);
|
|
38
|
+
l(this, "config", D);
|
|
39
|
+
l(this, "mediaStore", I({
|
|
24
40
|
currentMediaElement: null
|
|
25
41
|
}));
|
|
26
|
-
|
|
27
|
-
|
|
42
|
+
l(this, "css3DRenderPlugin");
|
|
43
|
+
l(this, "store", {
|
|
28
44
|
disposers: [],
|
|
29
45
|
disposed: !1,
|
|
30
46
|
resizeObserverDisposerAdding: !1,
|
|
31
47
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
32
48
|
});
|
|
49
|
+
l(this, "domEvents");
|
|
50
|
+
l(this, "mouseInfo");
|
|
51
|
+
l(this, "fiveWantMovePanoHandler", () => {
|
|
52
|
+
var e;
|
|
53
|
+
if ((e = this.mouseInfo) != null && e.isDown)
|
|
54
|
+
return !1;
|
|
55
|
+
});
|
|
56
|
+
const i = this.five.getElement();
|
|
57
|
+
i && (this.domEvents = new L(this.five.camera, i)), this.five.on("wantsMoveToPano", this.fiveWantMovePanoHandler), this.store.disposers.push(() => {
|
|
58
|
+
this.five.off("wantsMoveToPano", this.fiveWantMovePanoHandler);
|
|
59
|
+
});
|
|
33
60
|
}
|
|
34
61
|
get isPanorama() {
|
|
35
62
|
return this.five.currentMode === "Panorama";
|
|
36
63
|
}
|
|
37
64
|
getTagById(e) {
|
|
38
|
-
const
|
|
39
|
-
if (!
|
|
65
|
+
const i = this.tags.find((o) => o.id === e);
|
|
66
|
+
if (!i) {
|
|
40
67
|
console.warn(`error: can not find tag id ${e} by getTagById()`);
|
|
41
68
|
return;
|
|
42
69
|
}
|
|
43
|
-
return
|
|
70
|
+
return i;
|
|
44
71
|
}
|
|
45
72
|
pauseCurrentMedia() {
|
|
46
73
|
this.mediaStore.set({ currentMediaElement: null });
|
|
47
74
|
}
|
|
48
75
|
getTagConfig(e) {
|
|
49
|
-
var t,
|
|
76
|
+
var t, d;
|
|
50
77
|
if (!e)
|
|
51
78
|
return (t = this.config.globalConfig) != null ? t : {};
|
|
52
|
-
const
|
|
53
|
-
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
79
|
+
const i = {};
|
|
80
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
|
|
81
|
+
const r = a;
|
|
82
|
+
if (i[r])
|
|
56
83
|
return;
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
59
|
-
const [s] =
|
|
60
|
-
e.contentType === s && (
|
|
84
|
+
const f = r.split("-");
|
|
85
|
+
if (f.length === 1) {
|
|
86
|
+
const [s] = f;
|
|
87
|
+
e.contentType === s && (i[r] = this.config.contentTypeConfig[r]);
|
|
61
88
|
}
|
|
62
|
-
if (
|
|
63
|
-
const [s = "Any",
|
|
64
|
-
(e.stickType === s || s === "Any") && (e.contentType ===
|
|
89
|
+
if (f.length === 2) {
|
|
90
|
+
const [s = "Any", n = "Any"] = f;
|
|
91
|
+
(e.stickType === s || s === "Any") && (e.contentType === n || n === "Any") && (i[r] = this.config.contentTypeConfig[r]);
|
|
65
92
|
}
|
|
66
|
-
if (
|
|
67
|
-
const [s = "Any",
|
|
68
|
-
if (
|
|
69
|
-
const
|
|
70
|
-
(
|
|
93
|
+
if (f.length === 3) {
|
|
94
|
+
const [s = "Any", n, h] = f;
|
|
95
|
+
if (n === "Audio" && e.contentType === "Audio") {
|
|
96
|
+
const m = e;
|
|
97
|
+
(m.stickType === s || s === "Any") && m.data.appearance === h && (i[r] = this.config.contentTypeConfig[r]);
|
|
71
98
|
}
|
|
72
99
|
}
|
|
73
100
|
});
|
|
74
|
-
const
|
|
75
|
-
return typeof
|
|
101
|
+
const o = C({}, this.config.globalConfig, ...Object.values(i), e.config);
|
|
102
|
+
return typeof o.unfoldedConfig == "object" && (o.unfoldedConfig.disableFold && (o.unfoldedConfig = { keep: "unfolded" }), o.unfoldedConfig.disableUnfold && (o.unfoldedConfig = { keep: "folded" }), o.unfoldedConfig.keep && (o.unfoldedConfig = { keep: o.unfoldedConfig.keep })), typeof o.visibleConfig == "object" && o.visibleConfig.keep && (o.visibleConfig = { keep: o.visibleConfig.keep, visibleFiveMode: (d = o.visibleConfig) == null ? void 0 : d.visibleFiveMode }), o;
|
|
76
103
|
}
|
|
77
104
|
loadVideoFirstFrame() {
|
|
78
|
-
|
|
105
|
+
A && this.hooks.emit("loadVideoFirstFrame");
|
|
79
106
|
}
|
|
80
107
|
updateTagConfig(e) {
|
|
81
|
-
e != null && e.force && this.clearCache(), this.tags.forEach((
|
|
82
|
-
const
|
|
83
|
-
|
|
108
|
+
e != null && e.force && this.clearCache(), this.tags.forEach((i) => {
|
|
109
|
+
const o = this.getTagConfig(i);
|
|
110
|
+
i.mergedConfig = o;
|
|
84
111
|
});
|
|
85
112
|
}
|
|
86
|
-
can(e,
|
|
87
|
-
const
|
|
113
|
+
can(e, i) {
|
|
114
|
+
const o = i, t = this.getTagConfig(o);
|
|
88
115
|
if (!t || typeof t != "object")
|
|
89
116
|
return !0;
|
|
90
117
|
if (e === "show" || e === "hide") {
|
|
@@ -100,51 +127,121 @@ class z extends D {
|
|
|
100
127
|
return !1;
|
|
101
128
|
}
|
|
102
129
|
if (e === "renderByMesh")
|
|
103
|
-
if (
|
|
104
|
-
const
|
|
105
|
-
return
|
|
130
|
+
if (x(o) || v(o)) {
|
|
131
|
+
const d = o.data.mediaData;
|
|
132
|
+
return d.length === 1 && d[0].type === "Image" && t.renderType === "Mesh";
|
|
106
133
|
} else
|
|
107
134
|
return !1;
|
|
108
135
|
return !0;
|
|
109
136
|
}
|
|
110
|
-
getAngle(e,
|
|
111
|
-
var
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
114
|
-
throw new Error(`getDistance(): fivePanoIndex is ${
|
|
115
|
-
const t = this.getCache({ panoIndex:
|
|
137
|
+
getAngle(e, i) {
|
|
138
|
+
var d, a, r;
|
|
139
|
+
const o = (d = this.five.panoIndex) != null ? d : i;
|
|
140
|
+
if (o === void 0)
|
|
141
|
+
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
142
|
+
const t = this.getCache({ panoIndex: i, id: e.id });
|
|
116
143
|
if (t.angle !== void 0)
|
|
117
144
|
return t.angle;
|
|
118
145
|
{
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
-
throw new Error(`getAngleRange(): observerPosition is ${
|
|
122
|
-
const s = (() => e.stickType === "3DPoint" ?
|
|
146
|
+
const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
|
|
147
|
+
if (f === void 0)
|
|
148
|
+
throw new Error(`getAngleRange(): observerPosition is ${f}`);
|
|
149
|
+
const s = (() => e.stickType === "3DPoint" ? E(e.normal) : p(e.position))();
|
|
123
150
|
if (!s)
|
|
124
151
|
return;
|
|
125
|
-
const
|
|
126
|
-
|
|
152
|
+
const n = k(e.position);
|
|
153
|
+
if (!n)
|
|
154
|
+
return;
|
|
155
|
+
const h = new P.Vector3().copy(f).sub(n), m = s.angleTo(h) * 180 / Math.PI;
|
|
156
|
+
return t.angle = m, t.angle;
|
|
127
157
|
}
|
|
128
158
|
}
|
|
129
|
-
getDistance(e,
|
|
130
|
-
var
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
133
|
-
throw new Error(`getDistance(): fivePanoIndex is ${
|
|
134
|
-
const t = this.getCache({ panoIndex:
|
|
159
|
+
getDistance(e, i) {
|
|
160
|
+
var d, a, r;
|
|
161
|
+
const o = (d = this.five.panoIndex) != null ? d : i;
|
|
162
|
+
if (o === void 0)
|
|
163
|
+
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
164
|
+
const t = this.getCache({ panoIndex: i, id: e.id });
|
|
135
165
|
if (t.distance !== void 0)
|
|
136
166
|
return t.distance;
|
|
137
167
|
{
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
throw new Error(`getDistance(): observerPosition is ${
|
|
141
|
-
const s =
|
|
168
|
+
const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
|
|
169
|
+
if (f === void 0)
|
|
170
|
+
throw new Error(`getDistance(): observerPosition is ${f}`);
|
|
171
|
+
const s = w(e);
|
|
142
172
|
if (!s)
|
|
143
173
|
return -1;
|
|
144
|
-
const
|
|
145
|
-
return t.distance =
|
|
174
|
+
const n = f.distanceTo(s);
|
|
175
|
+
return t.distance = n, n;
|
|
146
176
|
}
|
|
147
177
|
}
|
|
178
|
+
getPositions(e) {
|
|
179
|
+
if (H(e))
|
|
180
|
+
return e.position;
|
|
181
|
+
if (v(e))
|
|
182
|
+
return e.data.mediaPosition;
|
|
183
|
+
const i = e;
|
|
184
|
+
return M(
|
|
185
|
+
this.five.camera.position,
|
|
186
|
+
g(i.position),
|
|
187
|
+
g(i.normal)
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
addObjectClickHandler(e, i, o) {
|
|
191
|
+
if (!i || !this.domEvents)
|
|
192
|
+
return () => {
|
|
193
|
+
};
|
|
194
|
+
const t = !e.mediaVisible || !e.state.visible || !this.state.visible, d = (s) => {
|
|
195
|
+
if (t) {
|
|
196
|
+
this.mouseInfo = void 0;
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
const n = s.origDomEvent;
|
|
200
|
+
this.mouseInfo = {
|
|
201
|
+
x: n.clientX,
|
|
202
|
+
y: n.clientY,
|
|
203
|
+
isDown: !0,
|
|
204
|
+
mouseDownTimestamp: Date.now()
|
|
205
|
+
};
|
|
206
|
+
}, a = (s) => {
|
|
207
|
+
if (t) {
|
|
208
|
+
this.mouseInfo = void 0;
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
const n = s.origDomEvent;
|
|
212
|
+
!this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === n.clientX && this.mouseInfo.y === n.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(n), this.mouseInfo = void 0);
|
|
213
|
+
}, r = (s) => {
|
|
214
|
+
if (t) {
|
|
215
|
+
this.mouseInfo = void 0;
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
const n = s.origDomEvent;
|
|
219
|
+
this.mouseInfo = {
|
|
220
|
+
x: Math.floor(n.touches[0].clientX),
|
|
221
|
+
y: Math.floor(n.touches[0].clientY),
|
|
222
|
+
isDown: !0,
|
|
223
|
+
mouseDownTimestamp: Date.now()
|
|
224
|
+
};
|
|
225
|
+
}, f = (s) => {
|
|
226
|
+
if (t) {
|
|
227
|
+
this.mouseInfo = void 0;
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
const n = s.origDomEvent;
|
|
231
|
+
!this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(n), this.mouseInfo = void 0);
|
|
232
|
+
};
|
|
233
|
+
return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", a, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
|
|
234
|
+
!this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", a), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
getTagNormal(e) {
|
|
238
|
+
if (e.normal)
|
|
239
|
+
return g(e.normal);
|
|
240
|
+
if (e.stickType === "Plane")
|
|
241
|
+
return p(e.position);
|
|
242
|
+
if (e.stickType === "Model")
|
|
243
|
+
return p(this.getPositions(e));
|
|
244
|
+
}
|
|
148
245
|
get filterPointTag() {
|
|
149
246
|
return this.tags.filter((e) => e.stickType === "2DPoint" || e.stickType === "3DPoint").filter((e) => e.position);
|
|
150
247
|
}
|
|
@@ -154,8 +251,13 @@ class z extends D {
|
|
|
154
251
|
get filter3DPointTag() {
|
|
155
252
|
return this.tags.filter((e) => e.stickType === "3DPoint").filter((e) => e.position);
|
|
156
253
|
}
|
|
157
|
-
get
|
|
158
|
-
return this.tags.filter(
|
|
254
|
+
get filterImagePlane() {
|
|
255
|
+
return this.tags.filter(
|
|
256
|
+
(e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.can("renderByMesh", e)
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
get filterMediaModel() {
|
|
260
|
+
return this.tags.filter((e) => e.stickType === "Model" && e.contentType === "MediaModel");
|
|
159
261
|
}
|
|
160
262
|
get filterModelTag() {
|
|
161
263
|
return this.tags.filter((e) => e.stickType === "Model");
|
|
@@ -168,5 +270,5 @@ class z extends D {
|
|
|
168
270
|
}
|
|
169
271
|
}
|
|
170
272
|
export {
|
|
171
|
-
|
|
273
|
+
ae as TagUtil
|
|
172
274
|
};
|
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
var S = Object.defineProperty, P = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var T = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var F = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var u = (d, a, e) => a in d ? S(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, l = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
F.call(a, e) && u(d, e, a[e]);
|
|
8
8
|
if (T)
|
|
9
9
|
for (var e of T(a))
|
|
10
|
-
|
|
10
|
+
E.call(a, e) && u(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
13
|
-
var p = (d, a, e) => (
|
|
12
|
+
}, m = (d, a) => P(d, U(a));
|
|
13
|
+
var p = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var f = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (n) => {
|
|
16
16
|
try {
|
|
17
17
|
r(e.next(n));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (h) {
|
|
19
|
+
i(h);
|
|
20
20
|
}
|
|
21
21
|
}, o = (n) => {
|
|
22
22
|
try {
|
|
23
23
|
r(e.throw(n));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (h) {
|
|
25
|
+
i(h);
|
|
26
26
|
}
|
|
27
27
|
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
|
|
28
28
|
r((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
30
|
+
import { Subscribe as w } from "@realsee/five";
|
|
31
31
|
import c from "object-assign-deep";
|
|
32
32
|
import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
33
33
|
import { addDebugPoints as M } from "../utils/addDebugPoints.js";
|
|
34
34
|
import "three";
|
|
35
|
-
import
|
|
35
|
+
import "@realsee/five/gltf-loader";
|
|
36
|
+
import "../../shared-utils/three/loadTexture.js";
|
|
37
|
+
import { isMediaModelTag as v } from "../utils/tag/tagCheck.js";
|
|
36
38
|
import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
|
|
37
39
|
import { debounce as C } from "../utils/debounce.js";
|
|
38
|
-
import { throttle as
|
|
40
|
+
import { throttle as B } from "../utils/throttle.js";
|
|
39
41
|
import { resizeObserver as y } from "../utils/resizeObserver.js";
|
|
40
|
-
import
|
|
42
|
+
import R from "../utils/tag/format.js";
|
|
41
43
|
import { generateBlankAudio as O, AudioNamespace as _ } from "../../shared-utils/audio.js";
|
|
42
44
|
import { TagRender as k } from "./TagRender.js";
|
|
43
45
|
import "./TagComputer.js";
|
|
@@ -46,7 +48,7 @@ import "../../shared-utils/three/centerPoint.js";
|
|
|
46
48
|
import "../utils/checkRange.js";
|
|
47
49
|
import "hammerjs";
|
|
48
50
|
import "@tweenjs/tween.js";
|
|
49
|
-
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
51
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
50
52
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
51
53
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
52
54
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -64,11 +66,13 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
64
66
|
import "./TagUtil.js";
|
|
65
67
|
import "../tag.config.js";
|
|
66
68
|
import "../utils/planeNormal.js";
|
|
69
|
+
import "../utils/normalPositionToPositions.js";
|
|
67
70
|
import "./TagCache.js";
|
|
68
71
|
import "../../base/BasePlugin.js";
|
|
69
72
|
import "../../vendor/svelte/store/index.js";
|
|
70
73
|
import "../../vendor/svelte/internal/index.js";
|
|
71
74
|
import "../utils/device.js";
|
|
75
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
72
76
|
import "../Components/TagContainer.js";
|
|
73
77
|
import "../Components/TagItem.js";
|
|
74
78
|
import "../Components/Tag/index.js";
|
|
@@ -139,16 +143,13 @@ import "../Components/Common/Icon/Icon.js";
|
|
|
139
143
|
import "../utils/getImageInfo.js";
|
|
140
144
|
import "../Components/Tag/CustomTag.js";
|
|
141
145
|
import "../Components/Common/TagPoint.js";
|
|
142
|
-
import "../utils/
|
|
146
|
+
import "../utils/model/imagePlane.js";
|
|
143
147
|
import "../../CSS3DRenderPlugin/index.js";
|
|
144
148
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
145
149
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
146
150
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
import "../../shared-utils/three/loadTexture.js";
|
|
150
|
-
const D = "Dnalogel-PanoTagPlugin", Qt = (d) => `${D}--${d}`;
|
|
151
|
-
class Xt extends k {
|
|
151
|
+
const D = "Dnalogel-PanoTagPlugin", Xt = (d) => `${D}--${d}`;
|
|
152
|
+
class Yt extends k {
|
|
152
153
|
constructor(e, t) {
|
|
153
154
|
super(e);
|
|
154
155
|
p(this, "state", { enabled: !0, visible: !0 });
|
|
@@ -160,17 +161,18 @@ class Xt extends k {
|
|
|
160
161
|
p(this, "handleFiveInitAnimationEnded", () => {
|
|
161
162
|
const e = this.five.getCurrentState().mode;
|
|
162
163
|
this.tags.forEach((t) => {
|
|
163
|
-
|
|
164
|
-
}), this.updateRenderAllTags()
|
|
164
|
+
v(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
|
|
165
|
+
}), this.updateRenderAllTags();
|
|
165
166
|
});
|
|
166
167
|
p(this, "handleFiveModelShownFloorChange", () => {
|
|
167
168
|
this.tags.forEach((e) => {
|
|
168
|
-
!
|
|
169
|
+
!v(e) || (e.state.visible = this.getVisible(e));
|
|
169
170
|
}), this.updateRenderAllTags();
|
|
170
171
|
});
|
|
171
|
-
this.params =
|
|
172
|
+
this.params = l({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, O(1, { namespace: _.PlayAudio });
|
|
172
173
|
try {
|
|
173
|
-
|
|
174
|
+
const i = window;
|
|
175
|
+
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
174
176
|
} catch (i) {
|
|
175
177
|
}
|
|
176
178
|
}
|
|
@@ -195,9 +197,12 @@ class Xt extends k {
|
|
|
195
197
|
return f(this, null, function* () {
|
|
196
198
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
197
199
|
const r = this.getTagConfig(o);
|
|
198
|
-
return
|
|
199
|
-
state:
|
|
200
|
-
|
|
200
|
+
return m(l({}, o), {
|
|
201
|
+
state: l({
|
|
202
|
+
visible: void 0,
|
|
203
|
+
unfolded: !this.can("fold", o)
|
|
204
|
+
}, r.initialState),
|
|
205
|
+
hooks: new w(),
|
|
201
206
|
mergedConfig: r,
|
|
202
207
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
203
208
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
@@ -206,7 +211,7 @@ class Xt extends k {
|
|
|
206
211
|
destroy: () => this.destroyTagById(o.id)
|
|
207
212
|
});
|
|
208
213
|
}).filter((o) => o.position);
|
|
209
|
-
return s.forEach(
|
|
214
|
+
return s.forEach(R), this.tags.push(...s), I(this.five).then(() => f(this, null, function* () {
|
|
210
215
|
var o, r, n;
|
|
211
216
|
this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
|
|
212
217
|
}));
|
|
@@ -252,14 +257,14 @@ class Xt extends k {
|
|
|
252
257
|
setState(e, t) {
|
|
253
258
|
if (this.checkDisposed())
|
|
254
259
|
return;
|
|
255
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o =
|
|
260
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = l({}, this.state);
|
|
256
261
|
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 });
|
|
257
262
|
}
|
|
258
263
|
dispose() {
|
|
259
264
|
var e, t, i, s, o, r;
|
|
260
265
|
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag.forEach((n) => {
|
|
261
|
-
var
|
|
262
|
-
return (
|
|
266
|
+
var h;
|
|
267
|
+
return (h = n.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
|
|
263
268
|
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.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.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
264
269
|
}
|
|
265
270
|
changeUnfoldedById(e, t) {
|
|
@@ -281,11 +286,11 @@ class Xt extends k {
|
|
|
281
286
|
}
|
|
282
287
|
changeTagNormalById(e, t) {
|
|
283
288
|
const i = this.getTagById(e);
|
|
284
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = A(t)
|
|
289
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = A(t));
|
|
285
290
|
}
|
|
286
291
|
changeDataById(e, t, i = !0) {
|
|
287
292
|
const s = this.getTagById(e);
|
|
288
|
-
!s || (i ? s.data = c({}, s.data, t) : s.data =
|
|
293
|
+
!s || (i ? s.data = c({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
|
|
289
294
|
}
|
|
290
295
|
changeStickTypeById(e, t, i = !0) {
|
|
291
296
|
this.changeTagById(e, t, i);
|
|
@@ -327,9 +332,9 @@ class Xt extends k {
|
|
|
327
332
|
}), this.five.needsRender = !0;
|
|
328
333
|
}
|
|
329
334
|
addEventListener() {
|
|
330
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this),
|
|
331
|
-
return b && this.handleFiveModeChange(b), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived",
|
|
332
|
-
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived",
|
|
335
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), b = this.five.currentMode;
|
|
336
|
+
return b && this.handleFiveModeChange(b), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", h), t.on("click", g), () => {
|
|
337
|
+
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", h), t.off("click", g), this.store.eventListenerDisposer = void 0;
|
|
333
338
|
};
|
|
334
339
|
}
|
|
335
340
|
addResizeListener() {
|
|
@@ -348,7 +353,7 @@ class Xt extends k {
|
|
|
348
353
|
}, i = () => {
|
|
349
354
|
!this.state.enabled || this.hide();
|
|
350
355
|
}, { observe: s, unobserve: o } = y(
|
|
351
|
-
|
|
356
|
+
B(() => {
|
|
352
357
|
!this.store.resizeObserverDisposer || i();
|
|
353
358
|
}, 500),
|
|
354
359
|
e
|
|
@@ -362,13 +367,13 @@ class Xt extends k {
|
|
|
362
367
|
}
|
|
363
368
|
handleFiveModeChange(e) {
|
|
364
369
|
this.setModelMedialVisible(), this.tags.forEach((t) => {
|
|
365
|
-
|
|
366
|
-
}), this.updateRenderAllTags()
|
|
370
|
+
v(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
|
|
371
|
+
}), this.updateRenderAllTags();
|
|
367
372
|
}
|
|
368
373
|
handleFiveWantsMoveToPano() {
|
|
369
374
|
this.tags.forEach((e) => {
|
|
370
375
|
const t = this.getTagConfig(e);
|
|
371
|
-
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState =
|
|
376
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = m(l({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = m(l({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
|
|
372
377
|
}), this.updateTagContainerVisible();
|
|
373
378
|
}
|
|
374
379
|
clickhandler(e) {
|
|
@@ -392,7 +397,7 @@ class Xt extends k {
|
|
|
392
397
|
handleFivePanoArrived() {
|
|
393
398
|
return f(this, null, function* () {
|
|
394
399
|
this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
395
|
-
e.temporaryState =
|
|
400
|
+
e.temporaryState = m(l({}, e.temporaryState), { visible: !0 });
|
|
396
401
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
397
402
|
});
|
|
398
403
|
}
|
|
@@ -407,12 +412,12 @@ class Xt extends k {
|
|
|
407
412
|
});
|
|
408
413
|
}
|
|
409
414
|
changeTagMode(e, t) {
|
|
410
|
-
var i, s, o, r, n;
|
|
411
|
-
((
|
|
415
|
+
var i, s, o, r, n, h;
|
|
416
|
+
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.domContainer) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((g) => g == null ? void 0 : g()), e.tag3DContentSvelte = void 0);
|
|
412
417
|
}
|
|
413
418
|
}
|
|
414
419
|
export {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
420
|
+
Yt as PanoTagPluginController,
|
|
421
|
+
Yt as default,
|
|
422
|
+
Xt as pluginFlag
|
|
418
423
|
};
|