@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
|
import t from "./controller/index.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { ContentType as
|
|
4
|
-
import { DimensionType as
|
|
2
|
+
import { default as kr, pluginFlag as qr } from "./controller/index.js";
|
|
3
|
+
import { ContentType as zr } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as Br } from "./typings/tag/Utils.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "object-assign-deep";
|
|
7
7
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
@@ -9,6 +9,7 @@ import "three";
|
|
|
9
9
|
import "./utils/addDebugPoints.js";
|
|
10
10
|
import "@realsee/five/gltf-loader";
|
|
11
11
|
import "../shared-utils/three/loadTexture.js";
|
|
12
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
12
13
|
import "./utils/tag/tagCheck.js";
|
|
13
14
|
import "./utils/actionAfterFiveModelLoad.js";
|
|
14
15
|
import "./utils/debounce.js";
|
|
@@ -44,11 +45,16 @@ import "./utils/planeNormal.js";
|
|
|
44
45
|
import "./utils/normalPositionToPositions.js";
|
|
45
46
|
import "./controller/TagCache.js";
|
|
46
47
|
import "../base/BasePlugin.js";
|
|
47
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
48
48
|
import "../vendor/svelte/store/index.js";
|
|
49
49
|
import "../vendor/svelte/internal/index.js";
|
|
50
50
|
import "./utils/device.js";
|
|
51
|
-
import "
|
|
51
|
+
import "./utils/model/mediaPlane.js";
|
|
52
|
+
import "../shared-utils/three/Quadrangle.js";
|
|
53
|
+
import "../shared-utils/math/pointIsRectangle.js";
|
|
54
|
+
import "../shared-utils/three/loadVideoTexture.js";
|
|
55
|
+
import "./Assets/Icon.js";
|
|
56
|
+
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
57
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
52
58
|
import "./Components/TagContainer.js";
|
|
53
59
|
import "./Components/TagItem.js";
|
|
54
60
|
import "./Components/Tag/index.js";
|
|
@@ -65,7 +71,6 @@ import "animejs";
|
|
|
65
71
|
import "./utils/search.js";
|
|
66
72
|
import "./utils/constants.js";
|
|
67
73
|
import "./Components/Common/Arrow.js";
|
|
68
|
-
import "./Assets/Icon.js";
|
|
69
74
|
import "./utils/doUtil.js";
|
|
70
75
|
import "../shared-utils/svelte/resizeObserver.js";
|
|
71
76
|
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
@@ -120,17 +125,16 @@ import "./utils/getImageInfo.js";
|
|
|
120
125
|
import "./Components/Tag/CustomTag.js";
|
|
121
126
|
import "classnames";
|
|
122
127
|
import "./Components/Common/TagPoint.js";
|
|
123
|
-
import "./utils/model/imagePlane.js";
|
|
124
128
|
import "../CSS3DRenderPlugin/index.js";
|
|
125
129
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
126
130
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
127
131
|
import "../shared-utils/three/GLTFLoader.js";
|
|
128
|
-
const
|
|
132
|
+
const br = (o, r) => new t(o, r);
|
|
129
133
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
zr as ContentType,
|
|
135
|
+
Br as DimensionType,
|
|
136
|
+
br as PanoTagPlugin,
|
|
137
|
+
kr as PanoTagPluginController,
|
|
138
|
+
br as default,
|
|
139
|
+
qr as pluginFlag
|
|
136
140
|
};
|
|
@@ -8,7 +8,7 @@ import type { Subscribe } from '@realsee/five';
|
|
|
8
8
|
import type { TagId, StickType, TagGLTFObject } from './tag/Utils';
|
|
9
9
|
import type { TagContentType } from './tag/TagData';
|
|
10
10
|
import type { Tag } from './tag/Tag';
|
|
11
|
-
import type ImagePlane from '../utils/model/
|
|
11
|
+
import type { ImagePlane, VideoPlane } from '../utils/model/mediaPlane';
|
|
12
12
|
declare type NonNullable<T> = T extends null | undefined | void ? never : T;
|
|
13
13
|
export declare type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
|
|
14
14
|
export interface State extends BasePlugin.State {
|
|
@@ -89,11 +89,14 @@ export declare type TagElement<C extends TagContentType = TagContentType, S exte
|
|
|
89
89
|
};
|
|
90
90
|
tag3DContentSvelte: {
|
|
91
91
|
svelteApp: TagContentSvelte;
|
|
92
|
+
/** @deprecated rename to css3DInstance */
|
|
92
93
|
domContainer: NonNullable<Create3DDomContainerReturnType>;
|
|
94
|
+
css3DInstance: NonNullable<Create3DDomContainerReturnType>;
|
|
93
95
|
initialNormal: Vector3;
|
|
94
96
|
currentNormal: Vector3;
|
|
97
|
+
dispose: () => void;
|
|
95
98
|
};
|
|
96
|
-
|
|
99
|
+
mediaPlane: ImagePlane | VideoPlane;
|
|
97
100
|
model: {
|
|
98
101
|
promise: Promise<TagGLTFObject>;
|
|
99
102
|
object?: TagGLTFObject;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ContentType as
|
|
2
|
-
import { DimensionType as
|
|
1
|
+
import { ContentType as n } from "./tag/TagData.js";
|
|
2
|
+
import { DimensionType as x } from "./tag/Utils.js";
|
|
3
3
|
import "@realsee/five/gltf-loader";
|
|
4
4
|
import "three";
|
|
5
5
|
import "../../shared-utils/three/loadTexture.js";
|
|
6
|
+
import "@realsee/five";
|
|
7
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
6
8
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
n as ContentType,
|
|
10
|
+
x as DimensionType
|
|
9
11
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { State as FiveState } from '@realsee/five';
|
|
2
2
|
import type { TagConfig } from './TagConfig';
|
|
3
3
|
import { ContentTypeMap, ContentType, TagContentType } from './TagData';
|
|
4
|
-
import type { ContentTypeConfigKey, Position, TagId, StickType, TagStyle } from './Utils';
|
|
4
|
+
import type { ContentTypeConfigKey, Position, TagId, StickType, TagStyle, ElementRenderer } from './Utils';
|
|
5
5
|
export type { ContentTypeMap, TagContentType };
|
|
6
6
|
export { ContentType };
|
|
7
|
-
/** 返回一个销毁函数 */
|
|
8
|
-
declare type ElementRenderer = (container: HTMLElement) => () => void;
|
|
9
7
|
export interface Tags {
|
|
10
8
|
version?: string;
|
|
11
9
|
/** tag配置 > 按type配置 > 全局配置 */
|
|
@@ -2,7 +2,7 @@ import { GLTFObject } from '@realsee/five/gltf-loader';
|
|
|
2
2
|
import { Group } from 'three';
|
|
3
3
|
import type { Tag } from './Tag';
|
|
4
4
|
import type { TagContentType } from './TagData';
|
|
5
|
-
import ImagePlane from '../../utils/model/
|
|
5
|
+
import { ImagePlane } from '../../utils/model/mediaPlane';
|
|
6
6
|
export declare type TagId = string | number;
|
|
7
7
|
export declare type ArrayPosition = number[];
|
|
8
8
|
export declare type Position = ArrayPosition;
|
|
@@ -42,7 +42,10 @@ export interface TagStyle {
|
|
|
42
42
|
export declare type TagGLTFObject = GLTFObject & {
|
|
43
43
|
customID: number | string;
|
|
44
44
|
isTagModel: boolean;
|
|
45
|
+
updateTagCss3DObjectMatrix?: () => void;
|
|
45
46
|
};
|
|
47
|
+
/** 返回一个销毁函数 */
|
|
48
|
+
export declare type ElementRenderer = (container: HTMLElement) => () => void;
|
|
46
49
|
export interface TagObjectGroup extends Group {
|
|
47
50
|
children: Array<TagGLTFObjectGroup>;
|
|
48
51
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "@realsee/five/gltf-loader";
|
|
2
2
|
import "three";
|
|
3
3
|
import "../../../shared-utils/three/loadTexture.js";
|
|
4
|
+
import "@realsee/five";
|
|
5
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
4
6
|
var t = /* @__PURE__ */ ((r) => (r.Two = "2D", r.Three = "3D", r))(t || {});
|
|
5
7
|
export {
|
|
6
8
|
t as DimensionType
|
|
@@ -2,7 +2,9 @@ import { arrayPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/posit
|
|
|
2
2
|
import * as o from "three";
|
|
3
3
|
import "@realsee/five/gltf-loader";
|
|
4
4
|
import "../../shared-utils/three/loadTexture.js";
|
|
5
|
-
|
|
5
|
+
import "@realsee/five";
|
|
6
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
7
|
+
function y(p, h) {
|
|
6
8
|
h.forEach((t) => {
|
|
7
9
|
const r = new o.SphereGeometry(0.02, 16, 16), i = [], a = [
|
|
8
10
|
new o.MeshBasicMaterial({ color: 16776960 }),
|
|
@@ -25,5 +27,5 @@ function w(p, h) {
|
|
|
25
27
|
});
|
|
26
28
|
}
|
|
27
29
|
export {
|
|
28
|
-
|
|
30
|
+
y as addDebugPoints
|
|
29
31
|
};
|
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import { even as
|
|
2
|
-
import { random as
|
|
3
|
-
import { anyPositionToVector3 as
|
|
4
|
-
import { addDebugPoints as
|
|
5
|
-
import { noTypecheck as
|
|
6
|
-
import { planeNormal as
|
|
7
|
-
import { getTagPosition as
|
|
8
|
-
import { checkRange as
|
|
9
|
-
import { actionAfterFiveModelLoad as
|
|
10
|
-
import { normalPositionToPositions as
|
|
11
|
-
import { debounce as
|
|
12
|
-
import { throttle as
|
|
13
|
-
import { binarySearchFirstBig as
|
|
14
|
-
import { resizeObserver as
|
|
1
|
+
import { even as f } from "../../CSS3DRenderPlugin/utils/even.js";
|
|
2
|
+
import { random as x } from "../../CSS3DRenderPlugin/utils/random.js";
|
|
3
|
+
import { anyPositionToVector3 as l, arrayPositionToVector3 as d, positionToVector3 as P } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
4
|
+
import { addDebugPoints as g } from "./addDebugPoints.js";
|
|
5
|
+
import { noTypecheck as V } from "./noTypecheck.js";
|
|
6
|
+
import { planeNormal as u } from "./planeNormal.js";
|
|
7
|
+
import { getTagPosition as y, tagPosition as F } from "./tagPosition.js";
|
|
8
|
+
import { checkRange as k } from "./checkRange.js";
|
|
9
|
+
import { actionAfterFiveModelLoad as S, waitFiveModelLoaded as w } from "./actionAfterFiveModelLoad.js";
|
|
10
|
+
import { normalPositionToPositions as A } from "./normalPositionToPositions.js";
|
|
11
|
+
import { debounce as D } from "./debounce.js";
|
|
12
|
+
import { throttle as O } from "./throttle.js";
|
|
13
|
+
import { binarySearchFirstBig as j, searchFirstValueSmallThanLastValue as q } from "./search.js";
|
|
14
|
+
import { resizeObserver as E } from "./resizeObserver.js";
|
|
15
15
|
import "three";
|
|
16
16
|
import "@realsee/five/gltf-loader";
|
|
17
17
|
import "../../shared-utils/three/loadTexture.js";
|
|
18
|
+
import "@realsee/five";
|
|
19
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
18
20
|
import "../../shared-utils/three/centerPoint.js";
|
|
19
21
|
import "./tag/tagCheck.js";
|
|
20
22
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
23
|
+
S as actionAfterFiveModelLoad,
|
|
24
|
+
g as addDebugPoints,
|
|
25
|
+
l as anyPositionToVector3,
|
|
26
|
+
d as arrayPositionToVector3,
|
|
27
|
+
j as binarySearchFirstBig,
|
|
28
|
+
k as checkRange,
|
|
29
|
+
D as debounce,
|
|
30
|
+
f as even,
|
|
31
|
+
y as getTagPosition,
|
|
32
|
+
V as noTypecheck,
|
|
33
|
+
A as normalPositionToPositions,
|
|
34
|
+
u as planeNormal,
|
|
35
|
+
P as positionToVector3,
|
|
36
|
+
x as random,
|
|
37
|
+
E as resizeObserver,
|
|
38
|
+
q as searchFirstValueSmallThanLastValue,
|
|
39
|
+
F as tagPosition,
|
|
40
|
+
O as throttle,
|
|
41
|
+
w as waitFiveModelLoaded
|
|
40
42
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { Vector3 } from 'three';
|
|
3
|
+
declare type Src = string;
|
|
4
|
+
declare type VideoTexture = Omit<THREE.VideoTexture, 'image'> & {
|
|
5
|
+
image: HTMLVideoElement;
|
|
6
|
+
};
|
|
7
|
+
declare type ImageTexture = Omit<THREE.Texture, 'image'> & {
|
|
8
|
+
image: HTMLImageElement;
|
|
9
|
+
};
|
|
10
|
+
declare class MediaPlane extends THREE.Mesh<THREE.BufferGeometry | THREE.Geometry, THREE.MeshBasicMaterial> {
|
|
11
|
+
name: string;
|
|
12
|
+
src?: string;
|
|
13
|
+
removeFromParent(): this;
|
|
14
|
+
protected setMatrixByCornerPoints(cornerPoints: Vector3[]): void;
|
|
15
|
+
}
|
|
16
|
+
declare class ImagePlane extends MediaPlane {
|
|
17
|
+
name: string;
|
|
18
|
+
constructor(imageSrc: string, cornerPoints: Vector3[]);
|
|
19
|
+
}
|
|
20
|
+
declare class VideoPlane extends MediaPlane {
|
|
21
|
+
readonly isVideoPlane = true;
|
|
22
|
+
name: string;
|
|
23
|
+
videoInstance: HTMLVideoElement;
|
|
24
|
+
private objectFit;
|
|
25
|
+
private buttonSrc;
|
|
26
|
+
private paused;
|
|
27
|
+
private videoCoverSrc?;
|
|
28
|
+
private domEvents?;
|
|
29
|
+
private disposers;
|
|
30
|
+
private domEventsListenerTemporaryList;
|
|
31
|
+
private cornerPoints;
|
|
32
|
+
private videoMesh?;
|
|
33
|
+
private coverMesh?;
|
|
34
|
+
private buttonMesh?;
|
|
35
|
+
private videoTextureMap;
|
|
36
|
+
private ImageTextureMap;
|
|
37
|
+
constructor(videoSrc: string, cornerPoints: Vector3[], params?: {
|
|
38
|
+
videoInstance?: HTMLVideoElement;
|
|
39
|
+
playButton?: 'withText' | 'withoutText' | string;
|
|
40
|
+
videoCoverSrc?: string;
|
|
41
|
+
objectFit?: 'contain' | 'fill';
|
|
42
|
+
videoTextureMap?: Map<Src, VideoTexture>;
|
|
43
|
+
ImageTextureMap?: Map<Src, ImageTexture>;
|
|
44
|
+
});
|
|
45
|
+
play(): Promise<void>;
|
|
46
|
+
pause(): void;
|
|
47
|
+
initialDomEvents(five: any): void;
|
|
48
|
+
initialRenderHooks(five: any): void;
|
|
49
|
+
private render;
|
|
50
|
+
private addDomEventListener;
|
|
51
|
+
private removeDomEventListener;
|
|
52
|
+
private addCoverMesh;
|
|
53
|
+
private addVideoMesh;
|
|
54
|
+
private addButtonMesh;
|
|
55
|
+
/**
|
|
56
|
+
* @description: 将视频封面Mesh
|
|
57
|
+
*/
|
|
58
|
+
private getCoverMesh;
|
|
59
|
+
/**
|
|
60
|
+
* @description: 获取视频Mesh
|
|
61
|
+
*/
|
|
62
|
+
private getVideoMesh;
|
|
63
|
+
/**
|
|
64
|
+
* @description: 获取视频Mesh
|
|
65
|
+
*/
|
|
66
|
+
private getButtonMesh;
|
|
67
|
+
private getButtonTexture;
|
|
68
|
+
private getCoverTexture;
|
|
69
|
+
private getVideoTexture;
|
|
70
|
+
}
|
|
71
|
+
export { ImagePlane, VideoPlane };
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var H = (v, c, e) => c in v ? S(v, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[c] = e;
|
|
3
|
+
var h = (v, c, e) => (H(v, typeof c != "symbol" ? c + "" : c, e), e);
|
|
4
|
+
var u = (v, c, e) => new Promise((t, s) => {
|
|
5
|
+
var a = (i) => {
|
|
6
|
+
try {
|
|
7
|
+
n(e.next(i));
|
|
8
|
+
} catch (o) {
|
|
9
|
+
s(o);
|
|
10
|
+
}
|
|
11
|
+
}, r = (i) => {
|
|
12
|
+
try {
|
|
13
|
+
n(e.throw(i));
|
|
14
|
+
} catch (o) {
|
|
15
|
+
s(o);
|
|
16
|
+
}
|
|
17
|
+
}, n = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(a, r);
|
|
18
|
+
n((e = e.apply(v, c)).next());
|
|
19
|
+
});
|
|
20
|
+
import * as m from "three";
|
|
21
|
+
import { Vector3 as f } from "three";
|
|
22
|
+
import { centerPoint as g } from "../../../shared-utils/three/centerPoint.js";
|
|
23
|
+
import { loadTexture as w } from "../../../shared-utils/three/loadTexture.js";
|
|
24
|
+
import { QuadrangleGeometry as y } from "../../../shared-utils/three/Quadrangle.js";
|
|
25
|
+
import { loadVideoTexture as F } from "../../../shared-utils/three/loadVideoTexture.js";
|
|
26
|
+
import { Image_Play_Icon_With_Text as R, Image_Play_Icon as P } from "../../Assets/Icon.js";
|
|
27
|
+
import { getPositionsByObjectFit as T } from "../../../shared-utils/three/getPositionsByObjectFit.js";
|
|
28
|
+
import { FiveDomEvents as D } from "../../../shared-utils/five/FiveDomEvents.js";
|
|
29
|
+
import "../../../shared-utils/math/pointIsRectangle.js";
|
|
30
|
+
import "@realsee/five";
|
|
31
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
32
|
+
class V extends m.Mesh {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
h(this, "name", "MediaPlane");
|
|
36
|
+
h(this, "src");
|
|
37
|
+
}
|
|
38
|
+
removeFromParent() {
|
|
39
|
+
const e = this.parent;
|
|
40
|
+
return e !== null && e.remove(this), this;
|
|
41
|
+
}
|
|
42
|
+
setMatrixByCornerPoints(e) {
|
|
43
|
+
const t = new f().subVectors(e[1], e[0]), s = new f().subVectors(e[3], e[0]), a = g(...e), r = new f().crossVectors(t, s).normalize();
|
|
44
|
+
this.lookAt(r);
|
|
45
|
+
const n = this.up.clone().applyQuaternion(this.quaternion), i = s.clone(), o = new f().crossVectors(n, i).normalize();
|
|
46
|
+
this.rotateOnWorldAxis(o, n.angleTo(i)), this.position.copy(a);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
class J extends V {
|
|
50
|
+
constructor(e, t) {
|
|
51
|
+
super();
|
|
52
|
+
h(this, "name", "PanoTagPluginImagePlane");
|
|
53
|
+
this.src = e, w(e).then((s) => {
|
|
54
|
+
const a = s.image.width, r = s.image.height, n = new m.MeshBasicMaterial({ map: s, transparent: !0 }), i = new m.PlaneGeometry(a, r);
|
|
55
|
+
this.geometry = i, this.material = n;
|
|
56
|
+
const o = t[0].distanceTo(t[1]), d = t[1].distanceTo(t[2]);
|
|
57
|
+
this.scale.set(o / a, d / r, 1);
|
|
58
|
+
const l = a / r, M = o / d;
|
|
59
|
+
l > M ? this.scale.set(o / a, o / a, 1) : l < M ? this.scale.set(d / r, d / r, 1) : this.scale.set(o / a, d / r, 1);
|
|
60
|
+
}).catch((s) => {
|
|
61
|
+
console.error({ e: s });
|
|
62
|
+
}), this.setMatrixByCornerPoints(t);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
class K extends V {
|
|
66
|
+
constructor(e, t, s) {
|
|
67
|
+
const {
|
|
68
|
+
videoCoverSrc: a,
|
|
69
|
+
objectFit: r = "contain",
|
|
70
|
+
playButton: n = "withText",
|
|
71
|
+
videoTextureMap: i,
|
|
72
|
+
ImageTextureMap: o,
|
|
73
|
+
videoInstance: d = document.createElement("video")
|
|
74
|
+
} = s != null ? s : {};
|
|
75
|
+
super();
|
|
76
|
+
h(this, "isVideoPlane", !0);
|
|
77
|
+
h(this, "name", "PanoTagPluginImagePlane");
|
|
78
|
+
h(this, "videoInstance");
|
|
79
|
+
h(this, "objectFit");
|
|
80
|
+
h(this, "buttonSrc");
|
|
81
|
+
h(this, "paused", !0);
|
|
82
|
+
h(this, "videoCoverSrc");
|
|
83
|
+
h(this, "domEvents");
|
|
84
|
+
h(this, "disposers", []);
|
|
85
|
+
h(this, "domEventsListenerTemporaryList", []);
|
|
86
|
+
h(this, "cornerPoints");
|
|
87
|
+
h(this, "videoMesh");
|
|
88
|
+
h(this, "coverMesh");
|
|
89
|
+
h(this, "buttonMesh");
|
|
90
|
+
h(this, "videoTextureMap");
|
|
91
|
+
h(this, "ImageTextureMap");
|
|
92
|
+
this.cornerPoints = t, this.src = e, this.buttonSrc = (() => n === "withText" ? R : n === "withoutText" ? P : typeof n == "string" ? n : P)(), this.videoInstance = d, this.videoCoverSrc = a, this.objectFit = r, this.videoTextureMap = i, this.ImageTextureMap = o, this.position.copy(g(...t)), this.videoCoverSrc ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => this.addButtonMesh()), this.addEventListener("dispose", () => {
|
|
93
|
+
var l;
|
|
94
|
+
this.domEventsListenerTemporaryList = [], (l = this.disposers) == null || l.forEach((M) => M == null ? void 0 : M());
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
play() {
|
|
98
|
+
return u(this, null, function* () {
|
|
99
|
+
!this.paused || (this.paused = !1, this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh || (yield this.addVideoMesh()), this.videoMesh.visible = !0, this.videoInstance.play(), this.videoInstance.muted = !1, this.render());
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
pause() {
|
|
103
|
+
this.paused || (this.paused = !0, this.coverMesh && (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)), this.addButtonMesh(), this.videoInstance.pause(), this.render());
|
|
104
|
+
}
|
|
105
|
+
initialDomEvents(e) {
|
|
106
|
+
this.domEvents || (this.domEvents = new D(e), this.domEventsListenerTemporaryList.forEach((t) => this.addDomEventListener(...t)), this.domEventsListenerTemporaryList = []);
|
|
107
|
+
}
|
|
108
|
+
initialRenderHooks(e) {
|
|
109
|
+
const t = () => {
|
|
110
|
+
this.videoMesh && (this.videoInstance.paused || (this.videoMesh.needsRender = !0));
|
|
111
|
+
};
|
|
112
|
+
e.on("renderFrame", t), this.disposers.push(() => e.off("renderFrame", t));
|
|
113
|
+
}
|
|
114
|
+
render() {
|
|
115
|
+
this.videoMesh && (this.videoMesh.needsRender = !0), this.coverMesh && (this.coverMesh.needsRender = !0), this.buttonMesh && (this.buttonMesh.needsRender = !0), this.videoMesh && (this.videoInstance.paused || (this.videoMesh.needsRender = !0));
|
|
116
|
+
}
|
|
117
|
+
addDomEventListener(...e) {
|
|
118
|
+
this.domEvents ? (this.domEvents.addEventListener(...e), this.disposers.push(() => {
|
|
119
|
+
var t;
|
|
120
|
+
return (t = this.domEvents) == null ? void 0 : t.removeEventListener(...e);
|
|
121
|
+
})) : this.domEventsListenerTemporaryList.push(e);
|
|
122
|
+
}
|
|
123
|
+
removeDomEventListener(...e) {
|
|
124
|
+
this.domEvents ? this.domEvents.removeEventListener(...e) : this.domEventsListenerTemporaryList = this.domEventsListenerTemporaryList.filter((t) => t !== e);
|
|
125
|
+
}
|
|
126
|
+
addCoverMesh() {
|
|
127
|
+
return u(this, null, function* () {
|
|
128
|
+
if (this.children.find((t) => t === this.coverMesh))
|
|
129
|
+
return;
|
|
130
|
+
const e = yield this.getCoverMesh();
|
|
131
|
+
this.add(e);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
addVideoMesh() {
|
|
135
|
+
return u(this, null, function* () {
|
|
136
|
+
if (this.children.find((t) => t === this.videoMesh))
|
|
137
|
+
return;
|
|
138
|
+
const e = yield this.getVideoMesh();
|
|
139
|
+
this.add(e);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
addButtonMesh() {
|
|
143
|
+
return u(this, null, function* () {
|
|
144
|
+
if (this.children.find((t) => t === this.buttonMesh))
|
|
145
|
+
return;
|
|
146
|
+
const e = yield this.getButtonMesh();
|
|
147
|
+
this.add(e);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
getCoverMesh() {
|
|
151
|
+
return u(this, null, function* () {
|
|
152
|
+
if (this.coverMesh)
|
|
153
|
+
return this.coverMesh;
|
|
154
|
+
const e = yield this.getCoverTexture(), t = new m.MeshBasicMaterial({ transparent: !0, map: e }), s = T(this.objectFit, this.cornerPoints, e.image.width / e.image.height), a = g(...s), r = s.map((o) => o.clone().sub(a)), n = new y(r, 1), i = new m.Mesh(n, t);
|
|
155
|
+
return i.name = "videoCoverMesh", i.position.copy(a.clone().sub(this.position)), this.coverMesh = i, i;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
getVideoMesh() {
|
|
159
|
+
return u(this, null, function* () {
|
|
160
|
+
if (this.videoMesh)
|
|
161
|
+
return this.videoMesh;
|
|
162
|
+
const e = yield this.getVideoTexture(), t = new m.MeshBasicMaterial({ transparent: !0, map: e }), s = T(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight), a = g(...s), r = s.map((d) => d.clone().sub(a)), n = new y(r, 1), i = new m.Mesh(n, t);
|
|
163
|
+
i.name = "videoMesh", i.position.copy(a.clone().sub(this.position)), this.addDomEventListener(i, "click", (d) => {
|
|
164
|
+
this.pause();
|
|
165
|
+
});
|
|
166
|
+
const o = e.image;
|
|
167
|
+
return this.videoMesh = i, this.videoInstance = o, i;
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
getButtonMesh() {
|
|
171
|
+
return u(this, null, function* () {
|
|
172
|
+
var b, E, I, L;
|
|
173
|
+
if (this.buttonMesh)
|
|
174
|
+
return this.buttonMesh;
|
|
175
|
+
const e = (E = (b = this.videoMesh) == null ? void 0 : b.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? E : 1 / 0, t = (L = (I = this.coverMesh) == null ? void 0 : I.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? L : 1 / 0, s = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), r = Math.min(e, t, s) / s * 0.3, n = yield this.getButtonTexture(), i = new m.MeshBasicMaterial({ transparent: !0, map: n }), o = T("contain", this.cornerPoints, n.image.width / n.image.height), d = g(...o), l = o.map((B) => B.clone().sub(d)), M = new y(l), p = new m.Mesh(M, i);
|
|
176
|
+
p.name = "buttonMesh", p.scale.set(r, r, r);
|
|
177
|
+
const x = () => {
|
|
178
|
+
this.play();
|
|
179
|
+
};
|
|
180
|
+
p.addEventListener("added", () => {
|
|
181
|
+
this.addDomEventListener(p, "click", x);
|
|
182
|
+
}), p.addEventListener("removed", () => {
|
|
183
|
+
this.removeDomEventListener(p, "click", x);
|
|
184
|
+
});
|
|
185
|
+
const C = new m.Vector3().crossVectors(new m.Vector3().subVectors(o[0], o[1]), new m.Vector3().subVectors(o[0], o[3])).normalize().multiplyScalar(1e-4);
|
|
186
|
+
return p.position.copy(C), this.buttonMesh = p, p;
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
getButtonTexture() {
|
|
190
|
+
return u(this, null, function* () {
|
|
191
|
+
var t, s;
|
|
192
|
+
if ((t = this.ImageTextureMap) != null && t.has(this.buttonSrc))
|
|
193
|
+
return this.ImageTextureMap.get(this.buttonSrc);
|
|
194
|
+
const e = yield w(this.buttonSrc);
|
|
195
|
+
return (s = this.ImageTextureMap) == null || s.set(this.buttonSrc, e), e;
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
getCoverTexture() {
|
|
199
|
+
return u(this, null, function* () {
|
|
200
|
+
var t, s;
|
|
201
|
+
if ((t = this.ImageTextureMap) != null && t.has(this.videoCoverSrc))
|
|
202
|
+
return this.ImageTextureMap.get(this.videoCoverSrc);
|
|
203
|
+
const e = yield w(this.videoCoverSrc);
|
|
204
|
+
return (s = this.ImageTextureMap) == null || s.set(this.videoCoverSrc, e), e;
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
getVideoTexture() {
|
|
208
|
+
return u(this, null, function* () {
|
|
209
|
+
var t, s;
|
|
210
|
+
if ((t = this.videoTextureMap) != null && t.has(this.src))
|
|
211
|
+
return this.videoTextureMap.get(this.src);
|
|
212
|
+
const e = yield F(this.src, this.videoInstance);
|
|
213
|
+
return (s = this.videoTextureMap) == null || s.set(this.src, e), e;
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
export {
|
|
218
|
+
J as ImagePlane,
|
|
219
|
+
K as VideoPlane
|
|
220
|
+
};
|
|
@@ -2,12 +2,14 @@ import { anyPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positio
|
|
|
2
2
|
import "three";
|
|
3
3
|
import "@realsee/five/gltf-loader";
|
|
4
4
|
import "../../shared-utils/three/loadTexture.js";
|
|
5
|
-
|
|
5
|
+
import "@realsee/five";
|
|
6
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
7
|
+
function u(t) {
|
|
6
8
|
if (t.length < 3)
|
|
7
9
|
return;
|
|
8
10
|
const o = t.map(c), r = o[1].clone().sub(o[0]), n = o[2].clone().sub(o[1]);
|
|
9
11
|
return r.cross(n);
|
|
10
12
|
}
|
|
11
13
|
export {
|
|
12
|
-
|
|
14
|
+
u as planeNormal
|
|
13
15
|
};
|
|
@@ -3,8 +3,10 @@ import { anyPositionToVector3 as i } from "../../CSS3DRenderPlugin/utils/positio
|
|
|
3
3
|
import { centerPoint as n } from "../../shared-utils/three/centerPoint.js";
|
|
4
4
|
import "@realsee/five/gltf-loader";
|
|
5
5
|
import "../../shared-utils/three/loadTexture.js";
|
|
6
|
-
import
|
|
7
|
-
|
|
6
|
+
import "@realsee/five";
|
|
7
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
8
|
+
import { isMediaModelTag as p } from "./tag/tagCheck.js";
|
|
9
|
+
function s(r) {
|
|
8
10
|
if (!!r)
|
|
9
11
|
if (Array.isArray(r) && r.length === 4) {
|
|
10
12
|
const o = r.map(i);
|
|
@@ -12,14 +14,14 @@ function p(r) {
|
|
|
12
14
|
} else
|
|
13
15
|
return i(r);
|
|
14
16
|
}
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
+
function A(r) {
|
|
18
|
+
if (p(r) && r.matrix) {
|
|
17
19
|
const t = new m().fromArray(r.matrix), o = r.data.mediaPosition.map((e) => new a().fromArray(e).applyMatrix4(t));
|
|
18
20
|
return n(o[0], o[2]);
|
|
19
21
|
} else
|
|
20
|
-
return
|
|
22
|
+
return s(r.position);
|
|
21
23
|
}
|
|
22
24
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
A as getTagPosition,
|
|
26
|
+
s as tagPosition
|
|
25
27
|
};
|
|
@@ -14,9 +14,9 @@ var u = (o, r, e) => (s(o, typeof r != "symbol" ? r + "" : r, e), e);
|
|
|
14
14
|
import { VideoMeshController as p } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as A } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
17
|
-
import "@realsee/five";
|
|
18
17
|
import "hammerjs";
|
|
19
18
|
import "three";
|
|
19
|
+
import "@realsee/five";
|
|
20
20
|
import "@tweenjs/tween.js";
|
|
21
21
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -35,8 +35,7 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
35
35
|
import "../shared-utils/animationFrame/index.js";
|
|
36
36
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
37
37
|
import "./utils/index.js";
|
|
38
|
-
|
|
39
|
-
class O extends A {
|
|
38
|
+
class N extends A {
|
|
40
39
|
constructor(e) {
|
|
41
40
|
super(e);
|
|
42
41
|
u(this, "enabled", !0);
|
|
@@ -138,5 +137,5 @@ class O extends A {
|
|
|
138
137
|
}
|
|
139
138
|
}
|
|
140
139
|
export {
|
|
141
|
-
|
|
140
|
+
N as PanoVideoPluginController
|
|
142
141
|
};
|
|
@@ -2,9 +2,9 @@ var g = Object.defineProperty;
|
|
|
2
2
|
var F = (h, e, i) => e in h ? g(h, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : h[e] = i;
|
|
3
3
|
var t = (h, e, i) => (F(h, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
4
|
import { vertexShader as E, fragmentShader as I } from "./utils/shader.js";
|
|
5
|
-
import "@realsee/five";
|
|
6
5
|
import "hammerjs";
|
|
7
6
|
import { VideoTexture as D, LinearFilter as m, ShaderMaterial as P, Vector4 as A, SphereBufferGeometry as M, Mesh as x, Vector3 as f, Quaternion as C } from "three";
|
|
7
|
+
import "@realsee/five";
|
|
8
8
|
import "@tweenjs/tween.js";
|
|
9
9
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
10
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|