@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,8 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
2
|
import type { BaseOptions } from '../base/BasePlugin';
|
|
3
3
|
import * as BasePluginWithData from '../base/BasePluginWithData';
|
|
4
|
-
import type { PluginState, EventMap, PluginServerData, PluginData
|
|
4
|
+
import type { PluginState, EventMap, PluginServerData, PluginData } from './typing';
|
|
5
|
+
import type { Config } from '../base/BasePlugin';
|
|
5
6
|
export declare const pluginFlag: (name: string) => string;
|
|
6
7
|
export default class CruisePluginController extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
7
8
|
static PluginVersion: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { MovePanoOptions, Pose, State } from '@realsee/five';
|
|
2
2
|
import type CruisePlugin from '.';
|
|
3
3
|
import type * as BasePluginWithData from '../base/BasePluginWithData';
|
|
4
|
-
import type
|
|
5
|
-
import type { PluginDataV1 as GuideLinePluginData } from '../GuideLinePlugin/typing';
|
|
4
|
+
import type { PluginData as GuideLinePluginData } from '../GuideLinePlugin/typing';
|
|
6
5
|
declare type FivePoseAndState = Partial<Pose> & Partial<State>;
|
|
7
6
|
export declare type MoveEffect = MovePanoOptions['effect'];
|
|
8
7
|
export declare type CruiseData = {
|
|
@@ -27,12 +26,7 @@ export interface CruiseKeyframe {
|
|
|
27
26
|
export interface PluginData {
|
|
28
27
|
keyframesId: string;
|
|
29
28
|
keyframes: CruiseKeyframe[];
|
|
30
|
-
guildPluginOptions?:
|
|
31
|
-
arrowTextureUrl?: string;
|
|
32
|
-
skipPanoIndexMesh?: boolean;
|
|
33
|
-
unitWidth?: number;
|
|
34
|
-
unitHeight?: number;
|
|
35
|
-
};
|
|
29
|
+
guildPluginOptions?: GuideLinePluginData['config'];
|
|
36
30
|
}
|
|
37
31
|
export interface PluginServerData extends BasePluginWithData.ServerData {
|
|
38
32
|
data: {
|
|
@@ -141,9 +135,5 @@ export interface EventMap extends BasePluginWithData.EventMap<PluginState, Plugi
|
|
|
141
135
|
userAction: boolean;
|
|
142
136
|
}) => void;
|
|
143
137
|
}
|
|
144
|
-
export interface Config extends BasePlugin.Config {
|
|
145
|
-
/** 漫游时是否加载路线 */
|
|
146
|
-
useGuideLine?: boolean;
|
|
147
|
-
}
|
|
148
138
|
export declare type CruisePluginExportType = ReturnType<typeof CruisePlugin>;
|
|
149
139
|
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import * as BasePluginWithData from '../base/BasePluginWithData';
|
|
2
2
|
import type { Five } from '@realsee/five';
|
|
3
3
|
import type { EventMap, PluginData, PluginServerData, PluginState } from './typing';
|
|
4
|
-
import type * as PluginType from './typing';
|
|
5
4
|
import type { Config } from '../base/BasePlugin';
|
|
6
|
-
import { GuideLineItem } from './GuideLineItem';
|
|
7
5
|
export declare const pluginFlag: (name: string) => string;
|
|
8
6
|
export default class Controller extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
9
|
-
|
|
10
|
-
readonly name = "GuideLinePlugin";
|
|
7
|
+
static lasestVersion: string;
|
|
11
8
|
state: {
|
|
12
9
|
visible: boolean;
|
|
13
10
|
enabled: boolean;
|
|
@@ -15,45 +12,40 @@ export default class Controller extends BasePluginWithData.Controller<PluginStat
|
|
|
15
12
|
};
|
|
16
13
|
protected data?: PluginData;
|
|
17
14
|
private linesGroup?;
|
|
18
|
-
/** GuideLineItem 索引 */
|
|
19
|
-
private itemMap;
|
|
20
15
|
constructor(five: Five, config?: Config);
|
|
21
16
|
load(serverData: PluginServerData | PluginData, state?: PluginState, userAction?: boolean): Promise<void>;
|
|
22
|
-
formatData(serverData: any): Promise<
|
|
23
|
-
/** 展示插件 */
|
|
17
|
+
formatData(serverData: any): Promise<PluginData>;
|
|
24
18
|
show(options?: {
|
|
25
19
|
userAction?: boolean;
|
|
26
20
|
}): Promise<void>;
|
|
27
|
-
/** 隐藏插件 */
|
|
28
21
|
hide(options?: {
|
|
29
22
|
userAction?: boolean;
|
|
30
23
|
}): Promise<void>;
|
|
31
|
-
/** 开启插件 */
|
|
32
24
|
enable(options?: {
|
|
33
25
|
userAction?: boolean;
|
|
34
26
|
}): void;
|
|
35
|
-
/** 关闭插件 */
|
|
36
27
|
disable(options?: {
|
|
37
28
|
userAction?: boolean;
|
|
38
29
|
}): void;
|
|
39
|
-
/** 销毁插件 */
|
|
40
30
|
dispose(): void;
|
|
41
31
|
setState(state: Partial<PluginState>, options?: {
|
|
42
32
|
userAction?: boolean;
|
|
43
33
|
}): void;
|
|
44
|
-
/** 添加一个 GuideLineItem */
|
|
45
|
-
addGuideLineItem(data?: PluginType.GuideLineItem): GuideLineItem;
|
|
46
|
-
/** 获取 Plugin 内的 GuideLineItem */
|
|
47
|
-
getGuideLineItemByID(id: string | number): GuideLineItem;
|
|
48
|
-
removeGuideLineItem(item: GuideLineItem): void;
|
|
49
|
-
clear(): void;
|
|
50
34
|
private handleEnable;
|
|
51
35
|
private handleVisible;
|
|
52
36
|
private handleDispose;
|
|
37
|
+
/**
|
|
38
|
+
* 获取多条路线的 Mesh Group
|
|
39
|
+
*/
|
|
40
|
+
private getLinesGroup;
|
|
41
|
+
/**
|
|
42
|
+
* 获取单条路线
|
|
43
|
+
*/
|
|
44
|
+
private getLine;
|
|
53
45
|
private disposedErrorLog;
|
|
46
|
+
private actionWhenEnabled;
|
|
54
47
|
/**
|
|
55
48
|
* @description: Wait for five model ready
|
|
56
49
|
*/
|
|
57
|
-
private
|
|
58
|
-
private getDataWithoutVersion;
|
|
50
|
+
private waitFiveModelLoaded;
|
|
59
51
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
2
|
import Controller from './Controller';
|
|
3
|
-
import type * as GuideLinePluginType from './typing';
|
|
4
|
-
import * as GuideLineItem from './GuideLineItem';
|
|
5
|
-
import * as GuideLineModeItem from './GuideLineModeItem';
|
|
6
3
|
export declare const GuideLinePlugin: (five: Five, config?: ConstructorParameters<typeof Controller>[1]) => Controller;
|
|
7
4
|
export type { GuideLinePluginExportType } from './typing';
|
|
8
5
|
export default GuideLinePlugin;
|
|
9
|
-
export { GuideLineItem, GuideLineModeItem, GuideLinePluginType };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type GuideLinePlugin from '.';
|
|
2
|
-
import type { RequireAtLeastOne } from 'type-fest';
|
|
3
2
|
import type * as BasePluginWithData from '../base/BasePluginWithData';
|
|
4
3
|
export interface RouteConfig {
|
|
5
4
|
arrowTextureUrl?: string;
|
|
@@ -10,15 +9,10 @@ export interface RouteConfig {
|
|
|
10
9
|
export interface Route extends RouteConfig {
|
|
11
10
|
panoIndexList: number[];
|
|
12
11
|
}
|
|
13
|
-
export interface
|
|
12
|
+
export interface PluginData {
|
|
14
13
|
routes: Route[];
|
|
15
14
|
config?: RouteConfig;
|
|
16
15
|
}
|
|
17
|
-
export interface PluginDataV2 {
|
|
18
|
-
/** 路线数据 */
|
|
19
|
-
lines: GuideLineItem[];
|
|
20
|
-
}
|
|
21
|
-
export declare type PluginData = PluginDataV1 | PluginDataV2;
|
|
22
16
|
export interface PluginServerData extends BasePluginWithData.ServerData {
|
|
23
17
|
data: PluginData;
|
|
24
18
|
}
|
|
@@ -41,70 +35,3 @@ export interface EventMap extends BasePluginWithData.EventMap<PluginState, Plugi
|
|
|
41
35
|
}) => void;
|
|
42
36
|
}
|
|
43
37
|
export declare type GuideLinePluginExportType = ReturnType<typeof GuideLinePlugin>;
|
|
44
|
-
export interface LineGeometriesConfig {
|
|
45
|
-
/** 是否越过点位圆环。可以开启此选项来使越过点位,使其不会重叠显示 */
|
|
46
|
-
skipPanoIndexMesh?: boolean;
|
|
47
|
-
unitWidth?: number;
|
|
48
|
-
unitLength?: number;
|
|
49
|
-
}
|
|
50
|
-
export declare type GuideLineModeItemMode = 'panorama' | 'model';
|
|
51
|
-
export interface GuideLineItemContainer<T> {
|
|
52
|
-
onChildRemoved?: (child: T) => void;
|
|
53
|
-
}
|
|
54
|
-
/** 单条路线的数据 */
|
|
55
|
-
export declare type GuideLineItem = RequireAtLeastOne<{
|
|
56
|
-
/** server ID */
|
|
57
|
-
id?: number;
|
|
58
|
-
/** client ID,不存在时,会使用 String(id) 作为 client ID */
|
|
59
|
-
render_id?: string;
|
|
60
|
-
/** 路线名称 */
|
|
61
|
-
name?: string;
|
|
62
|
-
/** 可展示的楼层 */
|
|
63
|
-
visible_floor_indexes?: null | number[];
|
|
64
|
-
/** 点位数组 */
|
|
65
|
-
pano_group?: number[];
|
|
66
|
-
/** 路径:由多个曲线组合而成的路径,路径为空时,会使用 pano_group 自动创建 */
|
|
67
|
-
path?: PathItem[];
|
|
68
|
-
/** 全景态使用的数据 */
|
|
69
|
-
panorama_style?: GuideLineStyle;
|
|
70
|
-
/** 模型态使用的数据 */
|
|
71
|
-
model_style?: GuideLineStyle;
|
|
72
|
-
}, 'id' | 'render_id'>;
|
|
73
|
-
/** 影响形状的样式 */
|
|
74
|
-
export interface GuideLineGeometryStyle {
|
|
75
|
-
/** scale 之前的路线宽度,默认值是 0.5 */
|
|
76
|
-
width?: number;
|
|
77
|
-
/** 每一段 scale 之前的 长度,默认值是 0.5 */
|
|
78
|
-
unit_length?: number;
|
|
79
|
-
/** 线宽缩放 */
|
|
80
|
-
scale?: number;
|
|
81
|
-
}
|
|
82
|
-
/** 影响材质的样式 */
|
|
83
|
-
export interface GuideLineMaterialStyle {
|
|
84
|
-
/** 是否可见 */
|
|
85
|
-
visible?: boolean;
|
|
86
|
-
/** rgb 颜色 [r, g, b] */
|
|
87
|
-
color?: number[];
|
|
88
|
-
/** 背景颜色 */
|
|
89
|
-
background_color?: number[];
|
|
90
|
-
/** 背景透明度 */
|
|
91
|
-
background_opacity?: number;
|
|
92
|
-
/** 透明度 */
|
|
93
|
-
opacity?: number;
|
|
94
|
-
/** 贴图 */
|
|
95
|
-
texture?: {
|
|
96
|
-
/** 贴图地址 */
|
|
97
|
-
url: string;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
/** 不同模态下的路线数据 */
|
|
101
|
-
export declare type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle;
|
|
102
|
-
/** 目前只支持 CatmullRomCurve3 */
|
|
103
|
-
export declare type PathItem = CatmullRomCurve3;
|
|
104
|
-
export interface CatmullRomCurve3 {
|
|
105
|
-
type: 'CatmullRomCurve3';
|
|
106
|
-
points: number[][];
|
|
107
|
-
closed?: boolean;
|
|
108
|
-
curve_type?: string;
|
|
109
|
-
tension?: number;
|
|
110
|
-
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export interface LineGeometriesConfig {
|
|
3
|
+
/** 是否越过点位圆环。可以开启此选项来使越过点位,使其不会重叠显示 */
|
|
4
|
+
skipPanoIndexMesh?: boolean;
|
|
5
|
+
unitWidth?: number;
|
|
6
|
+
unitHeight?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @description: 根据坐标获取平滑曲线
|
|
10
|
+
* @param {Vector3[]} positionList 坐标点数组
|
|
11
|
+
* @param {number} config.unitWidth 宽
|
|
12
|
+
* @param {number} config.unitHeight 高
|
|
13
|
+
* @param {boolean} config.skipPanoIndexMesh 是否越过点位圆环。可以开启此选项来使越过点位,使其不会重叠显示
|
|
14
|
+
* @return {THREE.BufferGeometry[]} THREE.BufferGeometry[]
|
|
15
|
+
*/
|
|
16
|
+
export default function getLineGeometries(positionList: THREE.Vector3[], config?: LineGeometriesConfig): THREE.BufferGeometry[];
|
|
@@ -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,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
|
}
|
|
@@ -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 };
|