@realsee/dnalogel 2.16.0-4 → 2.16.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/Controller.d.ts +0 -1
- package/dist/CruisePlugin/Controller.d.ts +2 -1
- package/dist/CruisePlugin/typing.d.ts +2 -12
- package/dist/GuideLinePlugin/Controller.d.ts +12 -20
- package/dist/GuideLinePlugin/index.d.ts +0 -4
- package/dist/GuideLinePlugin/typing.d.ts +1 -74
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +71 -0
- package/dist/base/BasePlugin.d.ts +0 -1
- package/dist/index.cjs.js +117 -181
- package/dist/index.js +4966 -4884
- package/dist/index.umd.js +115 -179
- package/dist/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/dist/shared-utils/index.d.ts +0 -3
- package/dist/shared-utils/logger.d.ts +17 -0
- package/dist/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/dist/shared-utils/offscreenCanvas.d.ts +2 -0
- package/dist/shared-utils/three/Quadrangle.d.ts +20 -0
- package/dist/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -34
- package/docs/classes/CruisePluginController.html +27 -46
- package/docs/classes/Magnifier.html +20 -23
- package/docs/classes/ModelRoomLabelController.html +11 -14
- package/docs/classes/Object3DHelperController.html +24 -43
- package/docs/classes/PaintBrush.html +15 -18
- package/docs/classes/PanoMeasurePluginLine.html +23 -26
- package/docs/classes/PanoMeasurePluginModel.html +22 -25
- package/docs/classes/PanoMeasurePluginPoint.html +14 -17
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -29
- package/docs/classes/PanoTagPluginController.html +65 -84
- package/docs/classes/Util.BetterTween.html +8 -11
- package/docs/classes/Util.FivePointSelector.html +12 -15
- package/docs/classes/Util.Interval.html +12 -15
- package/docs/classes/Util.Magnifier.html +17 -20
- package/docs/classes/Util.PointDomHelper.html +11 -14
- package/docs/classes/Util.PointHelper.html +11 -14
- package/docs/classes/Util.Rectangle.html +13 -16
- package/docs/enums/CameraMovementEffect.html +7 -10
- package/docs/enums/ContentType.html +19 -22
- package/docs/enums/DIRECTION.html +9 -12
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/DimensionType.html +7 -10
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -11
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/PaintBrushTypeEnum.html +8 -11
- package/docs/enums/Rotation.html +8 -11
- package/docs/functions/CSS3DRenderPlugin.html +5 -7
- package/docs/functions/CameraMovementPlugin.html +5 -7
- package/docs/functions/CruisePlugin.html +5 -7
- package/docs/functions/GuideLinePlugin.html +6 -8
- package/docs/functions/ItemLabelPlugin.html +5 -7
- package/docs/functions/MapviewFloorplanPlugin.html +5 -7
- package/docs/functions/ModelChassisCompassPlugin.html +5 -7
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -7
- package/docs/functions/ModelFloorplanPlugin.html +5 -7
- package/docs/functions/ModelItemLabelPlugin.html +5 -7
- package/docs/functions/ModelRoomLabelPlugin.html +5 -7
- package/docs/functions/ModelTVVideoPlugin.html +5 -7
- package/docs/functions/ModelViewPlugin.html +5 -7
- package/docs/functions/Object3DHelperPlugin.html +5 -7
- package/docs/functions/PanoCompassPlugin.html +5 -7
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -7
- package/docs/functions/PanoDoorLabelPlugin.html +5 -7
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -7
- package/docs/functions/PanoMeasurePlugin.html +5 -7
- package/docs/functions/PanoRulerPlugin.html +5 -7
- package/docs/functions/PanoRulerProPlugin.html +5 -7
- package/docs/functions/PanoSpatialTagPlugin.html +5 -7
- package/docs/functions/PanoTagPlugin.html +5 -7
- package/docs/functions/PanoVideoPlugin.html +5 -7
- package/docs/functions/TopviewFloorplanPlugin.html +5 -7
- package/docs/functions/Util.getCoordsFromClient.html +6 -13
- package/docs/functions/Util.getCoordsFromElement.html +6 -13
- package/docs/functions/Util.getFrameTime.html +6 -13
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -13
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -13
- package/docs/functions/Util.isNil.html +6 -13
- package/docs/functions/Util.nextFrame.html +6 -13
- package/docs/functions/Util.notNil.html +6 -13
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -13
- package/docs/functions/Util.tweenProgress.html +6 -13
- package/docs/functions/pluginFlag.html +6 -8
- package/docs/index.html +5 -7
- package/docs/interfaces/AddTagConfig.html +6 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -14
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -11
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -10
- package/docs/interfaces/EventMap.html +15 -18
- package/docs/interfaces/FloorplanBounding.html +8 -11
- package/docs/interfaces/FloorplanData.html +10 -13
- package/docs/interfaces/FloorplanEntrance.html +11 -14
- package/docs/interfaces/FloorplanExtraObject.html +10 -13
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -11
- package/docs/interfaces/FloorplanFloorData.html +9 -12
- package/docs/interfaces/FloorplanImagePosition.html +7 -10
- package/docs/interfaces/FloorplanObserver.html +9 -12
- package/docs/interfaces/FloorplanOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanPosition.html +7 -10
- package/docs/interfaces/FloorplanRoomItem.html +13 -16
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -10
- package/docs/interfaces/FloorplanServerBounding.html +8 -11
- package/docs/interfaces/FloorplanServerComputedData.html +10 -13
- package/docs/interfaces/FloorplanServerData.html +7 -10
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -13
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -11
- package/docs/interfaces/FloorplanServerEntrance.html +11 -14
- package/docs/interfaces/FloorplanServerFloorData.html +9 -12
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -10
- package/docs/interfaces/FloorplanServerObserver.html +9 -12
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanServerPosition.html +7 -10
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -17
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -10
- package/docs/interfaces/HelperOffset.html +8 -11
- package/docs/interfaces/ImagePlaneGroup.html +6 -9
- package/docs/interfaces/ItemLabelPluginData.html +6 -9
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -12
- package/docs/interfaces/MinMax.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -11
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -11
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -11
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -9
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -10
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -9
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -12
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -11
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -9
- package/docs/interfaces/ModelViewPluginExportType.html +11 -14
- package/docs/interfaces/Object3DHelperState.html +8 -11
- package/docs/interfaces/ObjectHelperControllers.html +9 -12
- package/docs/interfaces/PaintBrushAction.html +12 -15
- package/docs/interfaces/PaintBrushConfigs.html +12 -15
- package/docs/interfaces/PaintBrushState.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -8
- package/docs/interfaces/PanoMeasureParameterType.html +14 -17
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -11
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -13
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -11
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -12
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -10
- package/docs/interfaces/PanoRulerProPluginState.html +8 -11
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -13
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -18
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -13
- package/docs/interfaces/Point.html +8 -11
- package/docs/interfaces/Room.html +9 -12
- package/docs/interfaces/RoomInfo.html +7 -10
- package/docs/interfaces/RoomLabel.html +14 -17
- package/docs/interfaces/RoomRules.html +6 -8
- package/docs/interfaces/Rooms.html +6 -8
- package/docs/interfaces/Scissor.html +9 -12
- package/docs/interfaces/State.html +8 -11
- package/docs/interfaces/TagCacheInterface.html +12 -15
- package/docs/interfaces/TagConfig.html +11 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -9
- package/docs/interfaces/TagIconUrl.html +11 -14
- package/docs/interfaces/TagObjectGroup.html +6 -9
- package/docs/interfaces/TagStyle.html +6 -9
- package/docs/interfaces/Tags.html +10 -13
- package/docs/interfaces/TemporaryState.html +6 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -14
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -11
- package/docs/modules/PanoVideoPluginType.html +5 -8
- package/docs/modules/Util.html +6 -17
- package/docs/modules.html +7 -11
- package/docs/types/ArrayPosition.html +6 -8
- package/docs/types/AudioAppearance.html +6 -8
- package/docs/types/AudioTagTypeConfigKey.html +6 -8
- package/docs/types/CSS3DRenderExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -8
- package/docs/types/ClassFunctionParameters.html +6 -8
- package/docs/types/Color.html +6 -8
- package/docs/types/ContentTypeConfigKey.html +6 -8
- package/docs/types/ContentTypeConfigKeySplit.html +6 -8
- package/docs/types/ContentTypeMap.html +6 -8
- package/docs/types/Create3DDomContainerReturnType.html +6 -8
- package/docs/types/Create3DElementReturnType.html +6 -8
- package/docs/types/CruisePluginExportType.html +6 -8
- package/docs/types/Direction-1.html +6 -8
- package/docs/types/Direction4.html +6 -8
- package/docs/types/ElementRenderer.html +288 -0
- package/docs/types/FloorplanRuleLabels.html +6 -8
- package/docs/types/FloorplanServerRuleLabels.html +6 -8
- package/docs/types/GuideLinePluginExportType.html +6 -8
- package/docs/types/HelperEventMap.html +6 -8
- package/docs/types/LoadTagConfig.html +6 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/MediaData.html +6 -8
- package/docs/types/MediaStore.html +6 -8
- package/docs/types/ModelElement.html +6 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -8
- package/docs/types/MoveArgs.html +6 -8
- package/docs/types/MoveOpts.html +6 -8
- package/docs/types/Object3DHelperEventMap.html +6 -8
- package/docs/types/ObjectFit.html +6 -8
- package/docs/types/PaintBrushEventMap.html +6 -8
- package/docs/types/PanoCompassPluginData.html +6 -8
- package/docs/types/PanoCompassPluginExportType.html +6 -8
- package/docs/types/PanoCompassPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -8
- package/docs/types/PanoIndex.html +6 -8
- package/docs/types/PanoMeasurePluginEvent.html +6 -8
- package/docs/types/PanoMeasureReturnType.html +6 -8
- package/docs/types/PanoSpatialTagPluginId.html +6 -8
- package/docs/types/PanoTagPluginExportInterface.html +6 -8
- package/docs/types/PanoTagPluginParamsInterface.html +6 -8
- package/docs/types/PanoVideoPluginParameterType.html +6 -8
- package/docs/types/PanoVideoPluginReturnType.html +6 -8
- package/docs/types/PlaneTag.html +6 -8
- package/docs/types/PlaneTagElement.html +6 -8
- package/docs/types/Point2DElement.html +6 -8
- package/docs/types/Point2DTag.html +6 -8
- package/docs/types/Point3DElement.html +6 -8
- package/docs/types/Point3DTag.html +6 -8
- package/docs/types/PointTag.html +6 -8
- package/docs/types/PointTagElement.html +6 -8
- package/docs/types/Position.html +6 -8
- package/docs/types/RotateArgs.html +6 -8
- package/docs/types/RotateOpts.html +6 -8
- package/docs/types/RuleLabelsKey.html +6 -8
- package/docs/types/RuleLabelsValue.html +6 -8
- package/docs/types/StickType.html +6 -8
- package/docs/types/Tag.html +7 -9
- package/docs/types/Tag2D.html +6 -8
- package/docs/types/Tag3D.html +6 -8
- package/docs/types/TagContentType.html +6 -8
- package/docs/types/TagDimensionType.html +6 -8
- package/docs/types/TagElement.html +7 -9
- package/docs/types/TagEvents.html +6 -8
- package/docs/types/TagGLTFObject.html +7 -9
- package/docs/types/TagHooks.html +6 -8
- package/docs/types/TagIconSize.html +6 -8
- package/docs/types/TagId.html +6 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/WorkCode.html +6 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -8
- package/docs/variables/PLUGIN.html +6 -8
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -8
- package/docs/variables/ROOM_TYPE_MAP.html +6 -8
- package/docs/variables/itemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -8
- package/libs/CSS3DRenderPlugin/Controller.d.ts +0 -1
- package/libs/CSS3DRenderPlugin/Controller.js +31 -40
- package/libs/CSS3DRenderPlugin/index.js +6 -12
- package/libs/CruisePlugin/Controller.d.ts +2 -1
- package/libs/CruisePlugin/Controller.js +174 -197
- package/libs/CruisePlugin/index.js +10 -33
- package/libs/CruisePlugin/typing.d.ts +2 -12
- package/libs/GuideLinePlugin/Controller.d.ts +12 -20
- package/libs/GuideLinePlugin/Controller.js +88 -125
- package/libs/GuideLinePlugin/index.d.ts +0 -4
- package/libs/GuideLinePlugin/index.js +7 -33
- package/libs/GuideLinePlugin/typing.d.ts +1 -74
- package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +45 -53
- package/libs/ModelTVVideoPlugin/index.js +5 -11
- package/libs/Object3DHelperPlugin/Controller.js +28 -33
- package/libs/Object3DHelperPlugin/index.js +13 -18
- package/libs/PanoCompassPlugin/Controller.js +6 -8
- package/libs/PanoCompassPlugin/index.js +10 -12
- package/libs/PanoDoorLabelPlugin/BaseController.js +28 -47
- package/libs/PanoDoorLabelPlugin/Controller.js +22 -40
- package/libs/PanoDoorLabelPlugin/index.js +3 -21
- package/libs/PanoMeasurePlugin/typings/index.js +1 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +3 -8
- package/libs/PanoSpatialTagPlugin/index.js +3 -8
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +13 -11
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +20 -18
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +38 -36
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +25 -23
- package/libs/PanoTagPlugin/Components/Tag/index.js +26 -25
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
- package/libs/PanoTagPlugin/controller/TagCache.js +22 -42
- package/libs/PanoTagPlugin/controller/TagComputer.js +11 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +92 -65
- package/libs/PanoTagPlugin/controller/TagUtil.js +53 -50
- package/libs/PanoTagPlugin/controller/index.js +23 -16
- package/libs/PanoTagPlugin/index.js +18 -14
- package/libs/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/libs/PanoTagPlugin/typings/index.js +6 -4
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -0
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -2
- package/libs/PanoTagPlugin/utils/index.js +35 -33
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +71 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +220 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
- package/libs/PanoVideoPlugin/Controller.js +3 -4
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +6 -7
- package/libs/base/BasePlugin.d.ts +0 -1
- package/libs/base/BasePlugin.js +10 -21
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +38 -57
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +29 -48
- package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +11 -31
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -23
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +40 -59
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/index.js +0 -6
- package/libs/index.js +121 -119
- package/libs/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/libs/shared-utils/five/FiveDomEvents.js +77 -0
- package/libs/shared-utils/index.d.ts +0 -3
- package/libs/shared-utils/index.js +29 -36
- package/libs/shared-utils/logger.d.ts +17 -0
- package/libs/shared-utils/logger.js +16 -0
- package/libs/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/libs/shared-utils/math/pointIsRectangle.js +10 -0
- package/libs/shared-utils/offscreenCanvas.d.ts +2 -0
- package/libs/shared-utils/offscreenCanvas.js +12 -0
- package/libs/shared-utils/three/PointDomHelper.js +1 -1
- package/libs/shared-utils/three/Quadrangle.d.ts +20 -0
- package/libs/shared-utils/three/Quadrangle.js +41 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.js +20 -0
- package/libs/shared-utils/three/loadTexture.js +19 -21
- package/libs/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/libs/shared-utils/three/loadVideoTexture.js +14 -0
- package/package.json +2 -2
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -23
- package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/dist/shared-utils/five/index.d.ts +0 -1
- package/dist/shared-utils/five/mode.d.ts +0 -3
- package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/dist/shared-utils/log.d.ts +0 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -169
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -344
- package/docs/functions/Util.isAbsoluteURL.html +0 -79
- package/docs/functions/Util.isModelLike.html +0 -79
- package/docs/functions/Util.isPanoramaLike.html +0 -79
- package/docs/functions/Util.uuid.html +0 -76
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -97
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -258
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -92
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -87
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -126
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -85
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -76
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -71
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -82
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -99
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -103
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -92
- package/docs/modules/GuideLineItem.html +0 -53
- package/docs/modules/GuideLineModeItem.html +0 -53
- package/docs/modules/GuideLinePluginType.html +0 -99
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -67
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -65
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -67
- package/docs/types/GuideLinePluginType.PathItem.html +0 -67
- package/docs/types/GuideLinePluginType.PluginData.html +0 -65
- package/libs/GuideLinePlugin/GuideLineItem/index.js +0 -35
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +0 -31
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +0 -254
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/libs/GuideLinePlugin/GuideLineModeItem.js +0 -29
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -23
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -40
- package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +0 -2
- package/libs/GuideLinePlugin/utils/dataFormatter.js +0 -6
- package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
- package/libs/GuideLinePlugin/utils/index.js +0 -32
- package/libs/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/libs/PanoTagPlugin/utils/model/imagePlane.js +0 -33
- package/libs/shared-utils/five/index.d.ts +0 -1
- package/libs/shared-utils/five/index.js +0 -1
- package/libs/shared-utils/five/mode.d.ts +0 -3
- package/libs/shared-utils/five/mode.js +0 -11
- package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.js +0 -6
- package/libs/shared-utils/log.d.ts +0 -2
- package/libs/shared-utils/log.js +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
|
-
var w = (
|
|
3
|
-
var
|
|
4
|
-
var
|
|
2
|
+
var w = (d, p, t) => p in d ? j(d, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[p] = t;
|
|
3
|
+
var c = (d, p, t) => (w(d, typeof p != "symbol" ? p + "" : p, t), t);
|
|
4
|
+
var P = (d, p, t) => new Promise((e, i) => {
|
|
5
5
|
var o = (s) => {
|
|
6
6
|
try {
|
|
7
7
|
a(t.next(s));
|
|
@@ -15,22 +15,23 @@ var D = (l, p, t) => new Promise((e, i) => {
|
|
|
15
15
|
i(r);
|
|
16
16
|
}
|
|
17
17
|
}, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(o, n);
|
|
18
|
-
a((t = t.apply(
|
|
18
|
+
a((t = t.apply(d, p)).next());
|
|
19
19
|
});
|
|
20
20
|
import { TagComputer as O } from "./TagComputer.js";
|
|
21
|
-
import { Group as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { arrayPositionToVector3 as
|
|
25
|
-
import { centerPoint as
|
|
21
|
+
import { Group as b, Quaternion as x, Vector3 as D, Matrix4 as T } from "three";
|
|
22
|
+
import I from "../Components/TagContainer.js";
|
|
23
|
+
import E from "../Components/Tag/index.js";
|
|
24
|
+
import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
+
import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
|
|
26
26
|
import "@realsee/five/gltf-loader";
|
|
27
|
-
import R from "../utils/model/
|
|
27
|
+
import { ImagePlane as R, VideoPlane as k } from "../utils/model/mediaPlane.js";
|
|
28
28
|
import { isMediaModelTag as S } from "../utils/tag/tagCheck.js";
|
|
29
|
-
import { CSS3DRenderPlugin as
|
|
29
|
+
import { CSS3DRenderPlugin as A } from "../../CSS3DRenderPlugin/index.js";
|
|
30
30
|
import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
|
|
31
31
|
import "@realsee/five";
|
|
32
32
|
import "../utils/tagPosition.js";
|
|
33
33
|
import "../../shared-utils/three/loadTexture.js";
|
|
34
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
34
35
|
import "../utils/checkRange.js";
|
|
35
36
|
import "hammerjs";
|
|
36
37
|
import "@tweenjs/tween.js";
|
|
@@ -56,11 +57,15 @@ import "../utils/planeNormal.js";
|
|
|
56
57
|
import "../utils/normalPositionToPositions.js";
|
|
57
58
|
import "./TagCache.js";
|
|
58
59
|
import "../../base/BasePlugin.js";
|
|
59
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
60
60
|
import "../../vendor/svelte/store/index.js";
|
|
61
61
|
import "../../vendor/svelte/internal/index.js";
|
|
62
62
|
import "../utils/device.js";
|
|
63
|
-
import "../../shared-utils/
|
|
63
|
+
import "../../shared-utils/three/Quadrangle.js";
|
|
64
|
+
import "../../shared-utils/math/pointIsRectangle.js";
|
|
65
|
+
import "../../shared-utils/three/loadVideoTexture.js";
|
|
66
|
+
import "../Assets/Icon.js";
|
|
67
|
+
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
68
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
64
69
|
import "../Components/TagItem.js";
|
|
65
70
|
import "../utils/noTypecheck.js";
|
|
66
71
|
import "../Components/Common/TagPoint.js";
|
|
@@ -70,7 +75,6 @@ import "../../vendor/svelte/easing/index.js";
|
|
|
70
75
|
import "../Components/Common/Icon/Icon.js";
|
|
71
76
|
import "../utils/getImageInfo.js";
|
|
72
77
|
import "../utils/px2rem.js";
|
|
73
|
-
import "../Assets/Icon.js";
|
|
74
78
|
import "classnames";
|
|
75
79
|
import "../Components/Tag/TextTag/index.js";
|
|
76
80
|
import "../Components/Tag/TextTag/TextTag.js";
|
|
@@ -133,16 +137,17 @@ import "../Components/Tag/LinkTag.js";
|
|
|
133
137
|
import "../Components/Tag/CustomTag.js";
|
|
134
138
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
135
139
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
136
|
-
|
|
140
|
+
const F = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
141
|
+
class Ze extends O {
|
|
137
142
|
constructor(t) {
|
|
138
143
|
super(t);
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
c(this, "group", new b());
|
|
145
|
+
c(this, "imagePlaneGroup", new b());
|
|
146
|
+
c(this, "gltfObjectGroup", new b());
|
|
147
|
+
c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
148
|
+
c(this, "temporaryState", { visible: !0 });
|
|
149
|
+
c(this, "TagContainerSvelte");
|
|
150
|
+
c(this, "loadModel", (t) => P(this, null, function* () {
|
|
146
151
|
var s;
|
|
147
152
|
const e = t.data.modelUrl;
|
|
148
153
|
if (!e)
|
|
@@ -155,14 +160,14 @@ class Qe extends O {
|
|
|
155
160
|
o.visible = this.getCurrentVisibleState(t), new T().fromArray(t.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFloorIndex(t);
|
|
156
161
|
const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
157
162
|
if (a && this.gltfObjectGroup.remove(a), this.getRenderType(t) === "Mesh") {
|
|
158
|
-
if (!t.
|
|
159
|
-
const r = t.data.mediaPosition.map(
|
|
160
|
-
t.
|
|
161
|
-
const m = new
|
|
162
|
-
t.
|
|
163
|
+
if (!t.mediaPlane) {
|
|
164
|
+
const r = t.data.mediaPosition.map(v);
|
|
165
|
+
t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(v));
|
|
166
|
+
const m = new D().addVectors(r[0], r[2]).divideScalar(2);
|
|
167
|
+
t.mediaPlane.position.copy(m), o.add(t.mediaPlane);
|
|
163
168
|
}
|
|
164
169
|
} else
|
|
165
|
-
this.updateTagCss3DObjectMatrix(t, o);
|
|
170
|
+
o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix();
|
|
166
171
|
return this.gltfObjectGroup.add(o), o;
|
|
167
172
|
}));
|
|
168
173
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
|
|
@@ -170,7 +175,7 @@ class Qe extends O {
|
|
|
170
175
|
clearTags() {
|
|
171
176
|
this.tags.forEach((t) => {
|
|
172
177
|
var e, i;
|
|
173
|
-
(i = (e = t.
|
|
178
|
+
(i = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || i.remove(t.mediaPlane);
|
|
174
179
|
}), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
175
180
|
}
|
|
176
181
|
updateRenderAllTags() {
|
|
@@ -178,19 +183,35 @@ class Qe extends O {
|
|
|
178
183
|
}
|
|
179
184
|
updateRenderImagePlane() {
|
|
180
185
|
this.sort(this.filterImagePlane).forEach((e) => {
|
|
181
|
-
var
|
|
182
|
-
const i =
|
|
183
|
-
if (!i
|
|
186
|
+
var s, r, m;
|
|
187
|
+
const i = e.data.mediaData[0];
|
|
188
|
+
if (!i)
|
|
189
|
+
return;
|
|
190
|
+
const o = i.url, n = i.type;
|
|
191
|
+
if (!o || (e.mediaPlane && (e.mediaPlane.visible = (r = (s = e.state) == null ? void 0 : s.visible) != null ? r : !0), ((m = e.mediaPlane) == null ? void 0 : m.src) === o))
|
|
184
192
|
return;
|
|
185
|
-
const
|
|
186
|
-
e.
|
|
193
|
+
const a = e.position.map(v);
|
|
194
|
+
if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
|
|
195
|
+
e.mediaPlane = new R(o, a);
|
|
196
|
+
else if (n === "Video") {
|
|
197
|
+
const l = new k(o, a, {
|
|
198
|
+
videoCoverSrc: i.videoCoverUrl,
|
|
199
|
+
playButton: e.data.playIcon,
|
|
200
|
+
videoTextureMap: F,
|
|
201
|
+
ImageTextureMap: B
|
|
202
|
+
});
|
|
203
|
+
l.videoInstance.addEventListener("play", () => {
|
|
204
|
+
this.mediaStore.set({ currentMediaElement: l.videoInstance });
|
|
205
|
+
}), l.initialDomEvents(this.five), l.initialRenderHooks(this.five), e.mediaPlane = l;
|
|
206
|
+
}
|
|
207
|
+
this.imagePlaneGroup.add(e.mediaPlane);
|
|
187
208
|
});
|
|
188
209
|
}
|
|
189
210
|
updateRender3DDomTag() {
|
|
190
211
|
this.sort([...this.filterCSS3DTag]).forEach((e) => {
|
|
191
212
|
var i, o;
|
|
192
213
|
if (e.tag3DContentSvelte) {
|
|
193
|
-
const { svelteApp: n,
|
|
214
|
+
const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
|
|
194
215
|
if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
|
|
195
216
|
const m = new x().setFromUnitVectors(s, r);
|
|
196
217
|
a.css3DObject.setRotationFromQuaternion(m);
|
|
@@ -199,7 +220,7 @@ class Qe extends O {
|
|
|
199
220
|
} else {
|
|
200
221
|
if (((i = e.state) == null ? void 0 : i.visible) === !1)
|
|
201
222
|
return;
|
|
202
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
223
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = A(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
203
224
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
204
225
|
const n = this.getPositions(e);
|
|
205
226
|
if (!n)
|
|
@@ -210,34 +231,40 @@ class Qe extends O {
|
|
|
210
231
|
const r = (o = this.getTagConfig(e).tag3DConfig) != null ? o : {};
|
|
211
232
|
if (this.getRenderType(e) === "BehindDom") {
|
|
212
233
|
r.mode = "behind", r.container = document.createElement("div");
|
|
213
|
-
const
|
|
214
|
-
r.container.style.backgroundColor =
|
|
234
|
+
const f = "black";
|
|
235
|
+
r.container.style.backgroundColor = f, r.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
215
236
|
var u;
|
|
216
237
|
if (m.css3DObject.opacityMesh) {
|
|
217
|
-
const
|
|
218
|
-
this.hooks.emit("click", { event:
|
|
238
|
+
const h = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (g) => {
|
|
239
|
+
this.hooks.emit("click", { event: g, target: "TagContent", tag: e });
|
|
219
240
|
});
|
|
220
|
-
(u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(
|
|
241
|
+
(u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(h);
|
|
221
242
|
}
|
|
222
243
|
});
|
|
223
244
|
}
|
|
224
245
|
const m = this.css3DRenderPlugin.create3DDomContainer(n, r);
|
|
225
246
|
if (!m)
|
|
226
247
|
return;
|
|
227
|
-
this.store.css3DRenderDisposer.set(e.id, [m.dispose])
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
248
|
+
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
249
|
+
const l = new E({
|
|
250
|
+
target: m.container,
|
|
251
|
+
props: {
|
|
252
|
+
tag: e,
|
|
253
|
+
hooks: this.hooks,
|
|
254
|
+
state: this.state,
|
|
255
|
+
mediaStore: this.mediaStore,
|
|
256
|
+
temporaryState: this.temporaryState
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
e.tag3DContentSvelte = {
|
|
260
|
+
svelteApp: l,
|
|
238
261
|
domContainer: m,
|
|
262
|
+
css3DInstance: m,
|
|
239
263
|
initialNormal: a,
|
|
240
|
-
currentNormal: a
|
|
264
|
+
currentNormal: a,
|
|
265
|
+
dispose: () => {
|
|
266
|
+
l.$destroy(), m.dispose();
|
|
267
|
+
}
|
|
241
268
|
};
|
|
242
269
|
}
|
|
243
270
|
}), this.clearUnusedPanelTag();
|
|
@@ -254,23 +281,23 @@ class Qe extends O {
|
|
|
254
281
|
updateTagModelVisible() {
|
|
255
282
|
this.tags.forEach((t) => {
|
|
256
283
|
var e;
|
|
257
|
-
t.
|
|
284
|
+
t.mediaPlane && (t.mediaPlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
|
|
258
285
|
});
|
|
259
286
|
}
|
|
260
287
|
updateTagCss3DObjectMatrix(t, e) {
|
|
261
|
-
var
|
|
262
|
-
const i = (M = (
|
|
288
|
+
var g, C, M, y;
|
|
289
|
+
const i = (M = (C = (g = t.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : C.ratio) != null ? M : 216e-5, o = (y = t.tag3DContentSvelte) == null ? void 0 : y.css3DInstance.css3DObject;
|
|
263
290
|
if (!o)
|
|
264
291
|
return;
|
|
265
292
|
const n = S(t) ? t.data.mediaPosition : t.position;
|
|
266
293
|
e.updateWorldMatrix(!1, !1);
|
|
267
|
-
const a = e.matrixWorld, s = new
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
|
|
294
|
+
const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = G(s, r).add(new D(0, 0, 5e-4)), l = new T().setPosition(m), f = new T().makeScale(i, i, i), u = new T().multiply(a).multiply(l).multiply(f);
|
|
295
|
+
u.decompose(o.position, o.quaternion, o.scale);
|
|
296
|
+
const h = o.opacityMesh;
|
|
297
|
+
h && u.decompose(h.position, h.quaternion, h.scale);
|
|
271
298
|
}
|
|
272
299
|
addMediaModelTag(t) {
|
|
273
|
-
return
|
|
300
|
+
return P(this, null, function* () {
|
|
274
301
|
const e = t.filter(S).map((i) => this.loadModel(i));
|
|
275
302
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
276
303
|
});
|
|
@@ -284,7 +311,7 @@ class Qe extends O {
|
|
|
284
311
|
const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
285
312
|
if (!i)
|
|
286
313
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
287
|
-
this.TagContainerSvelte = new
|
|
314
|
+
this.TagContainerSvelte = new I({
|
|
288
315
|
target: i,
|
|
289
316
|
props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
290
317
|
});
|
|
@@ -298,7 +325,7 @@ class Qe extends O {
|
|
|
298
325
|
withAnimation: this.store.visibleWithAnimation
|
|
299
326
|
}), this.filterCSS3DTag.forEach((e) => {
|
|
300
327
|
var i, o, n, a, s;
|
|
301
|
-
(a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.
|
|
328
|
+
(a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
|
|
302
329
|
state: this.state,
|
|
303
330
|
temporaryState: this.temporaryState,
|
|
304
331
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -313,7 +340,7 @@ class Qe extends O {
|
|
|
313
340
|
clearUnusedPanelTag() {
|
|
314
341
|
this.filter2DPointTag.forEach((t) => {
|
|
315
342
|
var e;
|
|
316
|
-
(e = t.tag3DContentSvelte) == null || e.
|
|
343
|
+
(e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
|
|
317
344
|
});
|
|
318
345
|
for (const [t, e] of this.store.css3DRenderDisposer) {
|
|
319
346
|
const i = this.getTagById(t);
|
|
@@ -322,5 +349,5 @@ class Qe extends O {
|
|
|
322
349
|
}
|
|
323
350
|
}
|
|
324
351
|
export {
|
|
325
|
-
|
|
352
|
+
Ze as TagRender
|
|
326
353
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var T = Object.defineProperty;
|
|
2
2
|
var y = (c, u, e) => u in c ? T(c, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[u] = e;
|
|
3
|
-
var
|
|
3
|
+
var l = (c, u, e) => (y(c, typeof u != "symbol" ? u + "" : u, e), e);
|
|
4
4
|
import D from "object-assign-deep";
|
|
5
5
|
import * as C from "three";
|
|
6
|
-
import { DefaultConfig as
|
|
7
|
-
import { anyPositionToVector3 as
|
|
6
|
+
import { DefaultConfig as P } from "../tag.config.js";
|
|
7
|
+
import { anyPositionToVector3 as w, arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
8
8
|
import { planeNormal as g } from "../utils/planeNormal.js";
|
|
9
|
-
import { tagPosition as
|
|
9
|
+
import { tagPosition as E, getTagPosition as k } from "../utils/tagPosition.js";
|
|
10
10
|
import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
|
|
11
11
|
import { TagCache as b } from "./TagCache.js";
|
|
12
12
|
import { writable as I } from "../../vendor/svelte/store/index.js";
|
|
@@ -14,17 +14,15 @@ import { isIOSWX as A } from "../utils/device.js";
|
|
|
14
14
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
15
15
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
16
16
|
import "@realsee/five";
|
|
17
|
-
import "hammerjs";
|
|
18
|
-
import "@tweenjs/tween.js";
|
|
19
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
20
17
|
import { isMediaPlaneTag as x, isMediaModelTag as v, isPlaneTag as V } from "../utils/tag/tagCheck.js";
|
|
21
18
|
import { DomEvents as L } from "../../shared-utils/threex/domevents/index.js";
|
|
19
|
+
import { VideoPlane as S } from "../utils/model/mediaPlane.js";
|
|
22
20
|
import "@realsee/five/gltf-loader";
|
|
23
21
|
import "../../shared-utils/three/loadTexture.js";
|
|
24
22
|
import "../../shared-utils/three/centerPoint.js";
|
|
25
23
|
import "../../base/BasePlugin.js";
|
|
26
24
|
import "../../shared-utils/Subscribe.js";
|
|
27
|
-
import "../../
|
|
25
|
+
import "../../vendor/svelte/internal/index.js";
|
|
28
26
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
29
27
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
30
28
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -34,32 +32,40 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
34
32
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
35
33
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
36
34
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
37
|
-
import "../../shared-utils/
|
|
38
|
-
import "../../
|
|
39
|
-
|
|
35
|
+
import "../../shared-utils/three/Quadrangle.js";
|
|
36
|
+
import "../../shared-utils/math/pointIsRectangle.js";
|
|
37
|
+
import "../../shared-utils/three/loadVideoTexture.js";
|
|
38
|
+
import "../Assets/Icon.js";
|
|
39
|
+
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
40
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
41
|
+
class ve extends b {
|
|
40
42
|
constructor(e) {
|
|
41
43
|
super(e);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
l(this, "tags", []);
|
|
45
|
+
l(this, "config", P);
|
|
46
|
+
l(this, "mediaStore", I({
|
|
45
47
|
currentMediaElement: null
|
|
46
48
|
}));
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
l(this, "css3DRenderPlugin");
|
|
50
|
+
l(this, "store", {
|
|
49
51
|
disposers: [],
|
|
50
52
|
disposed: !1,
|
|
51
53
|
resizeObserverDisposerAdding: !1,
|
|
52
54
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
53
55
|
});
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
l(this, "domEvents");
|
|
57
|
+
l(this, "mouseInfo");
|
|
58
|
+
l(this, "preventWhenMouseDown", () => {
|
|
57
59
|
var e;
|
|
58
60
|
if ((e = this.mouseInfo) != null && e.isDown)
|
|
59
61
|
return !1;
|
|
60
62
|
});
|
|
61
63
|
const i = this.five.getElement();
|
|
62
|
-
i && (this.domEvents = new L(this.five.camera, i)), this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.
|
|
64
|
+
i && (this.domEvents = new L(this.five.camera, i)), this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: o }) => {
|
|
65
|
+
this.tags.forEach((t) => {
|
|
66
|
+
t.mediaPlane instanceof S && o !== t.mediaPlane.videoInstance && t.mediaPlane.pause();
|
|
67
|
+
});
|
|
68
|
+
}), this.store.disposers.push(() => {
|
|
63
69
|
this.five.off("wantsMoveToPano", this.preventWhenMouseDown), this.five.off("wantsTapGesture", this.preventWhenMouseDown);
|
|
64
70
|
});
|
|
65
71
|
}
|
|
@@ -82,8 +88,8 @@ class he extends b {
|
|
|
82
88
|
if (!e)
|
|
83
89
|
return (t = this.config.globalConfig) != null ? t : {};
|
|
84
90
|
const i = {};
|
|
85
|
-
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((
|
|
86
|
-
const r =
|
|
91
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
|
|
92
|
+
const r = a;
|
|
87
93
|
if (i[r])
|
|
88
94
|
return;
|
|
89
95
|
const f = r.split("-");
|
|
@@ -134,28 +140,25 @@ class he extends b {
|
|
|
134
140
|
return !0;
|
|
135
141
|
}
|
|
136
142
|
getRenderType(e) {
|
|
137
|
-
const i =
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
if (
|
|
145
|
-
if (
|
|
146
|
-
if (
|
|
143
|
+
const i = (() => {
|
|
144
|
+
if (e.stickType === "3DPoint")
|
|
145
|
+
return "Dom";
|
|
146
|
+
const o = this.getTagConfig(e);
|
|
147
|
+
if (!o || typeof o != "object" || !o.renderType)
|
|
148
|
+
return;
|
|
149
|
+
const t = e.data.mediaData;
|
|
150
|
+
if (!(!t || t.length === 0) && o.renderType === "Mesh") {
|
|
151
|
+
if (x(e)) {
|
|
152
|
+
if (t.length === 1 && (t[0].type === "Image" || t[0].type === "Video"))
|
|
147
153
|
return "Mesh";
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
return o.length === 1 && o[0].type === "Image" ? "Mesh" : "BehindDom";
|
|
154
|
-
} else
|
|
155
|
-
return "Dom";
|
|
154
|
+
} else if (v(e))
|
|
155
|
+
return t.length === 1 && t[0].type === "Image" ? "Mesh" : "BehindDom";
|
|
156
|
+
}
|
|
157
|
+
})();
|
|
158
|
+
return i != null ? i : "Dom";
|
|
156
159
|
}
|
|
157
160
|
getAngle(e, i) {
|
|
158
|
-
var d,
|
|
161
|
+
var d, a, r;
|
|
159
162
|
const o = (d = this.five.panoIndex) != null ? d : i;
|
|
160
163
|
if (o === void 0)
|
|
161
164
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -163,13 +166,13 @@ class he extends b {
|
|
|
163
166
|
if (t.angle !== void 0)
|
|
164
167
|
return t.angle;
|
|
165
168
|
{
|
|
166
|
-
const f = (r = (
|
|
169
|
+
const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
|
|
167
170
|
if (f === void 0)
|
|
168
171
|
throw new Error(`getAngleRange(): observerPosition is ${f}`);
|
|
169
|
-
const s = (() => e.stickType === "3DPoint" ?
|
|
172
|
+
const s = (() => e.stickType === "3DPoint" ? w(e.normal) : g(e.position))();
|
|
170
173
|
if (!s)
|
|
171
174
|
return;
|
|
172
|
-
const n =
|
|
175
|
+
const n = E(e.position);
|
|
173
176
|
if (!n)
|
|
174
177
|
return;
|
|
175
178
|
const h = new C.Vector3().copy(f).sub(n), m = s.angleTo(h) * 180 / Math.PI;
|
|
@@ -177,7 +180,7 @@ class he extends b {
|
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
getDistance(e, i) {
|
|
180
|
-
var d,
|
|
183
|
+
var d, a, r;
|
|
181
184
|
const o = (d = this.five.panoIndex) != null ? d : i;
|
|
182
185
|
if (o === void 0)
|
|
183
186
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -185,7 +188,7 @@ class he extends b {
|
|
|
185
188
|
if (t.distance !== void 0)
|
|
186
189
|
return t.distance;
|
|
187
190
|
{
|
|
188
|
-
const f = (r = (
|
|
191
|
+
const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
|
|
189
192
|
if (f === void 0)
|
|
190
193
|
throw new Error(`getDistance(): observerPosition is ${f}`);
|
|
191
194
|
const s = k(e);
|
|
@@ -223,7 +226,7 @@ class he extends b {
|
|
|
223
226
|
isDown: !0,
|
|
224
227
|
mouseDownTimestamp: Date.now()
|
|
225
228
|
};
|
|
226
|
-
},
|
|
229
|
+
}, a = (s) => {
|
|
227
230
|
if (!t()) {
|
|
228
231
|
this.mouseInfo = void 0;
|
|
229
232
|
return;
|
|
@@ -250,8 +253,8 @@ class he extends b {
|
|
|
250
253
|
const n = s.origDomEvent;
|
|
251
254
|
!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);
|
|
252
255
|
};
|
|
253
|
-
return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup",
|
|
254
|
-
!this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup",
|
|
256
|
+
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), () => {
|
|
257
|
+
!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));
|
|
255
258
|
};
|
|
256
259
|
}
|
|
257
260
|
getTagNormal(e) {
|
|
@@ -293,5 +296,5 @@ class he extends b {
|
|
|
293
296
|
}
|
|
294
297
|
}
|
|
295
298
|
export {
|
|
296
|
-
|
|
299
|
+
ve as TagUtil
|
|
297
300
|
};
|
|
@@ -27,13 +27,14 @@ var f = (d, a, e) => new Promise((t, i) => {
|
|
|
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 M } from "@realsee/five";
|
|
31
31
|
import c from "object-assign-deep";
|
|
32
32
|
import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
33
|
-
import { addDebugPoints as
|
|
33
|
+
import { addDebugPoints as w } from "../utils/addDebugPoints.js";
|
|
34
34
|
import "three";
|
|
35
35
|
import "@realsee/five/gltf-loader";
|
|
36
36
|
import "../../shared-utils/three/loadTexture.js";
|
|
37
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
37
38
|
import { isMediaModelTag as v } from "../utils/tag/tagCheck.js";
|
|
38
39
|
import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
|
|
39
40
|
import { debounce as A } from "../utils/debounce.js";
|
|
@@ -69,11 +70,16 @@ import "../utils/planeNormal.js";
|
|
|
69
70
|
import "../utils/normalPositionToPositions.js";
|
|
70
71
|
import "./TagCache.js";
|
|
71
72
|
import "../../base/BasePlugin.js";
|
|
72
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
73
73
|
import "../../vendor/svelte/store/index.js";
|
|
74
74
|
import "../../vendor/svelte/internal/index.js";
|
|
75
75
|
import "../utils/device.js";
|
|
76
|
-
import "
|
|
76
|
+
import "../utils/model/mediaPlane.js";
|
|
77
|
+
import "../../shared-utils/three/Quadrangle.js";
|
|
78
|
+
import "../../shared-utils/math/pointIsRectangle.js";
|
|
79
|
+
import "../../shared-utils/three/loadVideoTexture.js";
|
|
80
|
+
import "../Assets/Icon.js";
|
|
81
|
+
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
82
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
77
83
|
import "../Components/TagContainer.js";
|
|
78
84
|
import "../Components/TagItem.js";
|
|
79
85
|
import "../Components/Tag/index.js";
|
|
@@ -90,7 +96,6 @@ import "animejs";
|
|
|
90
96
|
import "../utils/search.js";
|
|
91
97
|
import "../utils/constants.js";
|
|
92
98
|
import "../Components/Common/Arrow.js";
|
|
93
|
-
import "../Assets/Icon.js";
|
|
94
99
|
import "../utils/doUtil.js";
|
|
95
100
|
import "../../shared-utils/svelte/resizeObserver.js";
|
|
96
101
|
import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
@@ -145,13 +150,12 @@ import "../utils/getImageInfo.js";
|
|
|
145
150
|
import "../Components/Tag/CustomTag.js";
|
|
146
151
|
import "classnames";
|
|
147
152
|
import "../Components/Common/TagPoint.js";
|
|
148
|
-
import "../utils/model/imagePlane.js";
|
|
149
153
|
import "../../CSS3DRenderPlugin/index.js";
|
|
150
154
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
151
155
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
152
156
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
153
|
-
const D = "Dnalogel-PanoTagPlugin",
|
|
154
|
-
class
|
|
157
|
+
const D = "Dnalogel-PanoTagPlugin", si = (d) => `${D}--${d}`;
|
|
158
|
+
class oi extends k {
|
|
155
159
|
constructor(e, t) {
|
|
156
160
|
super(e);
|
|
157
161
|
p(this, "state", { enabled: !0, visible: !0 });
|
|
@@ -188,7 +192,7 @@ class ei extends k {
|
|
|
188
192
|
const i = yield this.addTag(e.tagList, t);
|
|
189
193
|
if (this.debug)
|
|
190
194
|
try {
|
|
191
|
-
|
|
195
|
+
w(this.five, this.tags);
|
|
192
196
|
} catch (r) {
|
|
193
197
|
console.error(r);
|
|
194
198
|
}
|
|
@@ -204,7 +208,7 @@ class ei extends k {
|
|
|
204
208
|
visible: void 0,
|
|
205
209
|
unfolded: !this.can("fold", o)
|
|
206
210
|
}, r.initialState),
|
|
207
|
-
hooks: new
|
|
211
|
+
hooks: new M(),
|
|
208
212
|
mergedConfig: r,
|
|
209
213
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
210
214
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
@@ -324,13 +328,16 @@ class ei extends k {
|
|
|
324
328
|
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.updateTagModelVisible(), this.five.needsRender = !0;
|
|
325
329
|
}
|
|
326
330
|
handleEnable() {
|
|
327
|
-
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.
|
|
331
|
+
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.group.traverse((e) => {
|
|
332
|
+
var t;
|
|
333
|
+
(t = e == null ? void 0 : e.updateTagCss3DObjectMatrix) == null || t.call(e);
|
|
334
|
+
}), this.updateRenderAllTags(), this.five.needsRender = !0;
|
|
328
335
|
}
|
|
329
336
|
handleDisable() {
|
|
330
337
|
var e, t, i;
|
|
331
338
|
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filterCSS3DTag.forEach((s) => {
|
|
332
339
|
var o;
|
|
333
|
-
(o = s.tag3DContentSvelte) == null || o.
|
|
340
|
+
(o = s.tag3DContentSvelte) == null || o.dispose(), s.tag3DContentSvelte = void 0;
|
|
334
341
|
}), this.five.needsRender = !0;
|
|
335
342
|
}
|
|
336
343
|
addEventListener() {
|
|
@@ -415,11 +422,11 @@ class ei extends k {
|
|
|
415
422
|
}
|
|
416
423
|
changeTagMode(e, t) {
|
|
417
424
|
var i, s, o, r, n, h;
|
|
418
|
-
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.
|
|
425
|
+
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == 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);
|
|
419
426
|
}
|
|
420
427
|
}
|
|
421
428
|
export {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
429
|
+
oi as PanoTagPluginController,
|
|
430
|
+
oi as default,
|
|
431
|
+
si as pluginFlag
|
|
425
432
|
};
|