@realsee/dnalogel 2.16.0-2 → 2.16.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/Controller.d.ts +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 -70
- 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 +69 -0
- package/dist/base/BasePlugin.d.ts +0 -1
- package/dist/index.cjs.js +115 -162
- package/dist/index.js +5234 -5141
- package/dist/index.umd.js +116 -163
- 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 -70
- 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 +4 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +82 -63
- package/libs/PanoTagPlugin/controller/TagUtil.js +13 -20
- package/libs/PanoTagPlugin/controller/index.js +22 -15
- package/libs/PanoTagPlugin/index.js +17 -13
- 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 +69 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +214 -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 +120 -118
- 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 -19
- 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 -108
- 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 -231
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/libs/GuideLinePlugin/GuideLineModeItem.js +0 -29
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -35
- 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
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as T from "three";
|
|
2
|
+
import { Vector3 as A } from "three";
|
|
3
|
+
import L from "polyline-normals";
|
|
4
|
+
const O = 2, U = 3, V = 3, F = 2;
|
|
5
|
+
function X(i, r) {
|
|
6
|
+
var w, I, _;
|
|
7
|
+
if (i.length < 2)
|
|
8
|
+
return console.warn("positionList length must be greater than 1"), [];
|
|
9
|
+
const p = (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.5, u = (I = r == null ? void 0 : r.unitHeight) != null ? I : 0.5, R = (_ = r == null ? void 0 : r.skipPanoIndexMesh) != null ? _ : !1, f = new T.CatmullRomCurve3(i, !1, "catmullrom", 1);
|
|
10
|
+
if (R) {
|
|
11
|
+
const E = Math.ceil(f.getLength() / u * 1.5), s = f.getPoints(E), v = [];
|
|
12
|
+
let o = 0;
|
|
13
|
+
const a = i;
|
|
14
|
+
return a.forEach((l, y) => {
|
|
15
|
+
let n = 0, t = 99999999;
|
|
16
|
+
s.forEach((c, e) => {
|
|
17
|
+
const h = c.distanceTo(l);
|
|
18
|
+
h < t && (n = e, t = h);
|
|
19
|
+
});
|
|
20
|
+
const m = s[n + 1], x = m == null ? void 0 : m.distanceTo(l), d = s[n - 1], g = d == null ? void 0 : d.distanceTo(l);
|
|
21
|
+
if (n > o && n - o > 1) {
|
|
22
|
+
let c = n;
|
|
23
|
+
d !== void 0 && g > 0.8 && (c = n + 1), d !== void 0 && g > 0.2 && g < 0.3 ? c = n : t > 0.2 && t < 0.3 && (c = n + 1);
|
|
24
|
+
let e = o;
|
|
25
|
+
if (m !== void 0 && x > 0.2 && x < 0.3 ? e = o + 1 : t > 0.2 && t < 0.3 && (e = o), s[e] && s[e + 1]) {
|
|
26
|
+
const b = a[y - 1];
|
|
27
|
+
if (b)
|
|
28
|
+
if (b.equals(s[e]))
|
|
29
|
+
e += 1;
|
|
30
|
+
else {
|
|
31
|
+
const P = new A().subVectors(s[e + 1], s[e]), M = new A().subVectors(b, s[e]);
|
|
32
|
+
P.angleTo(M) < Math.PI / 2 && (e += 1);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (c < e || c - e <= 1)
|
|
36
|
+
return;
|
|
37
|
+
const h = s.slice(e, c), N = B(h, p, u);
|
|
38
|
+
v.push(N), o = n;
|
|
39
|
+
}
|
|
40
|
+
}), v;
|
|
41
|
+
} else {
|
|
42
|
+
const E = Math.ceil(f.getLength()), s = f.getPoints(E);
|
|
43
|
+
return [B(s, p, u)];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function B(i, r, p) {
|
|
47
|
+
const u = r / 2, R = p / r, f = i.length, w = L(i.map((t) => [t.x, t.z])), _ = (i.length - 1) * O * U, E = 2 * f, s = E * V, v = E * F, o = new Uint32Array(_), a = new Float32Array(s), l = new Float32Array(v);
|
|
48
|
+
i.forEach((t, m) => {
|
|
49
|
+
});
|
|
50
|
+
let y = 0;
|
|
51
|
+
for (let t = 0; t < i.length; t++) {
|
|
52
|
+
const [m, x] = w[t][0], d = i[t], { x: g, y: c, z: e } = d, h = new A(g + m * u, c + 0.05, e + x * u);
|
|
53
|
+
a[t * 6 + 0] = h.x, a[t * 6 + 1] = h.y, a[t * 6 + 2] = h.z;
|
|
54
|
+
const N = new A(g - m * u, c + 0.05, e - x * u);
|
|
55
|
+
a[t * 6 + 3] = N.x, a[t * 6 + 4] = N.y, a[t * 6 + 5] = N.z, y += t > 0 ? i[t - 1].clone().sub(i[t]).length() : 0;
|
|
56
|
+
const b = y / r / R;
|
|
57
|
+
l[t * 4 + 0] = 0, l[t * 4 + 1] = b, l[t * 4 + 2] = 1, l[t * 4 + 3] = b, t !== i.length - 1 && (o[t * 6 + 0] = t * 2 + 0, o[t * 6 + 1] = t * 2 + 2, o[t * 6 + 2] = t * 2 + 1, o[t * 6 + 3] = t * 2 + 2, o[t * 6 + 4] = t * 2 + 3, o[t * 6 + 5] = t * 2 + 1);
|
|
58
|
+
}
|
|
59
|
+
const n = new T.BufferGeometry();
|
|
60
|
+
return n.setAttribute("position", new T.BufferAttribute(a, 3)), n.setAttribute("uv", new T.BufferAttribute(l, 2)), n.setIndex(new T.BufferAttribute(o, 1)), n;
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
X as default
|
|
64
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var R = (i, v, e) => new Promise((p, y) => {
|
|
2
|
+
var b = (l) => {
|
|
3
3
|
try {
|
|
4
4
|
h(e.next(l));
|
|
5
|
-
} catch (
|
|
6
|
-
x
|
|
5
|
+
} catch (x) {
|
|
6
|
+
y(x);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, w = (l) => {
|
|
9
9
|
try {
|
|
10
10
|
h(e.throw(l));
|
|
11
|
-
} catch (
|
|
12
|
-
x
|
|
11
|
+
} catch (x) {
|
|
12
|
+
y(x);
|
|
13
13
|
}
|
|
14
|
-
}, h = (l) => l.done ?
|
|
15
|
-
h((e = e.apply(i,
|
|
14
|
+
}, h = (l) => l.done ? p(l.value) : Promise.resolve(l.value).then(b, w);
|
|
15
|
+
h((e = e.apply(i, v)).next());
|
|
16
16
|
});
|
|
17
17
|
import * as d from "three";
|
|
18
|
-
import { parseModelTVVideoPoints as
|
|
19
|
-
import { CSS3DRenderPlugin as
|
|
18
|
+
import { parseModelTVVideoPoints as z } from "./utils/parseData.js";
|
|
19
|
+
import { CSS3DRenderPlugin as I } from "../CSS3DRenderPlugin/index.js";
|
|
20
20
|
import "./typings.js";
|
|
21
21
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
22
22
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -34,26 +34,20 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
34
34
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
35
35
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
36
36
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
37
|
-
|
|
38
|
-
import "hammerjs";
|
|
39
|
-
import "@tweenjs/tween.js";
|
|
40
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
41
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
42
|
-
import "../shared-utils/animationFrame/index.js";
|
|
43
|
-
const se = (i, { videoElement: b }) => {
|
|
37
|
+
const ee = (i, { videoElement: v }) => {
|
|
44
38
|
const e = {
|
|
45
39
|
videoMeshes: [],
|
|
46
40
|
videoTextureEnabled: !1,
|
|
47
41
|
videoSource: "",
|
|
48
42
|
rectPoints: [],
|
|
49
43
|
enabled: !1,
|
|
50
|
-
videoElement:
|
|
51
|
-
},
|
|
44
|
+
videoElement: v
|
|
45
|
+
}, p = I(i), y = /* @__PURE__ */ new Map(), b = (t) => {
|
|
52
46
|
e.videoTexture && (e.videoTexture.image.muted = t);
|
|
53
|
-
},
|
|
47
|
+
}, w = () => e.videoTexture ? e.videoTexture.image.muted : !0, h = () => {
|
|
54
48
|
if (e.enabled || !e.videoTexture)
|
|
55
49
|
return;
|
|
56
|
-
e.enabled = !0, e.videoMeshes =
|
|
50
|
+
e.enabled = !0, e.videoMeshes = x(), e.videoMeshes.forEach((o) => i.scene.add(o));
|
|
57
51
|
const t = () => {
|
|
58
52
|
if (!e.videoTexture)
|
|
59
53
|
return;
|
|
@@ -64,9 +58,9 @@ const se = (i, { videoElement: b }) => {
|
|
|
64
58
|
}), i.needsRender = !0);
|
|
65
59
|
};
|
|
66
60
|
e.videoTexture.image.addEventListener("timeupdate", o), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
67
|
-
|
|
61
|
+
p.hide();
|
|
68
62
|
}, e.videoTexture.image.onpause = () => {
|
|
69
|
-
|
|
63
|
+
p.show();
|
|
70
64
|
}, e.videoTexture.image.onclick = () => {
|
|
71
65
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
72
66
|
});
|
|
@@ -79,7 +73,7 @@ const se = (i, { videoElement: b }) => {
|
|
|
79
73
|
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((t) => {
|
|
80
74
|
t.geometry.dispose(), t.material.dispose(), i.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
|
|
81
75
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
82
|
-
},
|
|
76
|
+
}, x = () => e.rectPoints.map((t, o) => {
|
|
83
77
|
const s = new d.BufferGeometry(), n = 128, a = [];
|
|
84
78
|
a.push(...t[0].toArray());
|
|
85
79
|
for (let r = 1; r < n; r++)
|
|
@@ -108,27 +102,25 @@ const se = (i, { videoElement: b }) => {
|
|
|
108
102
|
for (let r = 0; r < n; r++)
|
|
109
103
|
u.push(r, r + 1, n * 2 - r, r, n * 2 - r, n * 2 + 1 - r);
|
|
110
104
|
s.setAttribute("position", new d.BufferAttribute(new Float32Array(a), 3)), s.setAttribute("uv", new d.BufferAttribute(new Float32Array(c), 2)), s.setIndex(new d.BufferAttribute(new Uint32Array(u), 1));
|
|
111
|
-
const p = new d.AxesHelper(10);
|
|
112
|
-
i.scene.add(p);
|
|
113
105
|
const f = new d.MeshBasicMaterial({
|
|
114
106
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
115
107
|
side: d.DoubleSide
|
|
116
|
-
}),
|
|
117
|
-
|
|
118
|
-
const
|
|
108
|
+
}), m = new d.Mesh(s, f);
|
|
109
|
+
m.renderOrder = 1, m.name = `ModelTVVideoPlugin-${o}-${performance.now()}`;
|
|
110
|
+
const S = [t[1], t[2], t[3], t[0]], T = p.create3DDomContainer(S);
|
|
119
111
|
if (T != null && T.container) {
|
|
120
112
|
const r = document.createElement("div");
|
|
121
113
|
r.classList.add("play-icon"), r.style.width = "100%", r.style.height = "100%", r.style.display = "flex", r.style.justifyContent = "center", r.style.alignItems = "center", r.style.pointerEvents = "none", T.container.appendChild(r);
|
|
122
114
|
const g = document.createElement("img");
|
|
123
115
|
g.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", g.style.width = "200px", g.style.pointerEvents = "auto", g.onclick = () => {
|
|
124
116
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
125
|
-
}, r.appendChild(g),
|
|
117
|
+
}, r.appendChild(g), y.set(m, T);
|
|
126
118
|
}
|
|
127
|
-
return
|
|
128
|
-
}),
|
|
119
|
+
return m;
|
|
120
|
+
}), F = (t) => {
|
|
129
121
|
const o = new d.TextureLoader().load(t);
|
|
130
122
|
return o.minFilter = d.LinearFilter, o.magFilter = d.LinearFilter, o.format = d.RGBFormat, o;
|
|
131
|
-
},
|
|
123
|
+
}, L = (t, o) => new Promise((s, n) => {
|
|
132
124
|
const a = new XMLHttpRequest();
|
|
133
125
|
a.onreadystatechange = () => {
|
|
134
126
|
if (a.readyState == 4)
|
|
@@ -140,48 +132,48 @@ const se = (i, { videoElement: b }) => {
|
|
|
140
132
|
} else
|
|
141
133
|
n(new Error("Video download Error: " + a.status));
|
|
142
134
|
}, a.onerror = (c) => n(c), a.open("GET", t), a.responseType = "blob", a.send();
|
|
143
|
-
}),
|
|
135
|
+
}), P = (t, o) => R(void 0, null, function* () {
|
|
144
136
|
const { video_src: s, video_poster_src: n, points: a } = t;
|
|
145
|
-
e.videoSource = s, e.rectPoints =
|
|
146
|
-
}),
|
|
137
|
+
e.videoSource = s, e.rectPoints = z(a).map((c) => c.map(({ x: u, y: f, z: m }) => new d.Vector3(u, f, m))), e.imageTexture = F(n), o && (e.videoElement = o), e.videoTexture = yield L(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
|
|
138
|
+
}), E = (t) => {
|
|
147
139
|
if (!e.enabled)
|
|
148
140
|
return;
|
|
149
141
|
const o = e.videoMeshes;
|
|
150
142
|
if (!(!o || t.intersectObjects(o).length === 0))
|
|
151
143
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
152
|
-
},
|
|
153
|
-
t === "Floorplan" ?
|
|
154
|
-
},
|
|
144
|
+
}, M = (t) => {
|
|
145
|
+
t === "Floorplan" ? p.hide() : p.show();
|
|
146
|
+
}, A = () => {
|
|
155
147
|
if (!e.enabled)
|
|
156
148
|
return;
|
|
157
149
|
const t = i.camera.position;
|
|
158
|
-
if (
|
|
159
|
-
const n = o.css3DObject.position.clone(), a = n.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = i.model.intersectRaycaster(c)[0],
|
|
160
|
-
u && u.distance +
|
|
161
|
-
}), !
|
|
150
|
+
if (y.forEach((o, s) => {
|
|
151
|
+
const n = o.css3DObject.position.clone(), a = n.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = i.model.intersectRaycaster(c)[0], f = n.distanceTo(t), m = 0.01;
|
|
152
|
+
u && u.distance + m < f ? o.hide() : o.show();
|
|
153
|
+
}), !w()) {
|
|
162
154
|
const o = e.rectPoints.find((s) => {
|
|
163
155
|
const n = s[0].clone().add(s[1]).add(s[2]).add(s[3]).divideScalar(4);
|
|
164
156
|
return s.map((a) => a.clone().add(n).divideScalar(2)).filter((a) => {
|
|
165
|
-
const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()),
|
|
166
|
-
return !(
|
|
157
|
+
const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), f = i.model.intersectRaycaster(u)[0], m = 0.01;
|
|
158
|
+
return !(f && f.distance + m < c);
|
|
167
159
|
}).length >= 2;
|
|
168
160
|
});
|
|
169
|
-
(!o || o.length === 0) &&
|
|
161
|
+
(!o || o.length === 0) && b(!0);
|
|
170
162
|
}
|
|
171
|
-
},
|
|
172
|
-
l(), e.videoTexture = void 0, i.off("modeChange",
|
|
163
|
+
}, V = () => {
|
|
164
|
+
l(), e.videoTexture = void 0, i.off("modeChange", M), i.off("wantsTapGesture", E), i.off("panoArrived", A), i.off("renderFrame", () => {
|
|
173
165
|
e.videoMeshes.forEach((t) => {
|
|
174
166
|
t && (t.needsRender = !0);
|
|
175
167
|
});
|
|
176
168
|
});
|
|
177
169
|
};
|
|
178
|
-
return i.on("modeChange",
|
|
170
|
+
return i.on("modeChange", M), i.on("wantsTapGesture", E), i.on("panoArrived", A), i.on("renderFrame", () => {
|
|
179
171
|
e.videoMeshes.forEach((t) => {
|
|
180
172
|
t && (t.needsRender = !0);
|
|
181
173
|
});
|
|
182
|
-
}), { enable: h, disable: l, load:
|
|
174
|
+
}), { enable: h, disable: l, load: P, dispose: V, state: e, css3DRenderPlugin: p };
|
|
183
175
|
};
|
|
184
176
|
export {
|
|
185
|
-
|
|
186
|
-
|
|
177
|
+
ee as ModelTVVideoPlugin,
|
|
178
|
+
ee as default
|
|
187
179
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./Plugin.js";
|
|
2
|
-
import { ModelTVVideoPlugin as
|
|
3
|
-
import { DIRECTION as
|
|
2
|
+
import { ModelTVVideoPlugin as E, ModelTVVideoPlugin as N } from "./Plugin.js";
|
|
3
|
+
import { DIRECTION as R } from "./typings.js";
|
|
4
4
|
import "three";
|
|
5
5
|
import "./utils/parseData.js";
|
|
6
6
|
import "../CSS3DRenderPlugin/index.js";
|
|
@@ -20,14 +20,8 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
20
20
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
21
21
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
22
22
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import "@realsee/five";
|
|
24
|
-
import "hammerjs";
|
|
25
|
-
import "@tweenjs/tween.js";
|
|
26
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
27
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
28
|
-
import "../shared-utils/animationFrame/index.js";
|
|
29
23
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
R as DIRECTION,
|
|
25
|
+
E as ModelTVVideoPlugin,
|
|
26
|
+
N as default
|
|
33
27
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var R = Object.defineProperty;
|
|
2
2
|
var E = Object.getOwnPropertySymbols;
|
|
3
3
|
var F = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var C = (
|
|
4
|
+
var C = (i, o, e) => o in i ? R(i, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[o] = e, b = (i, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
F.call(o, e) && C(
|
|
6
|
+
F.call(o, e) && C(i, e, o[e]);
|
|
7
7
|
if (E)
|
|
8
8
|
for (var e of E(o))
|
|
9
|
-
P.call(o, e) && C(
|
|
10
|
-
return
|
|
9
|
+
P.call(o, e) && C(i, e, o[e]);
|
|
10
|
+
return i;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var H = (
|
|
14
|
-
var
|
|
12
|
+
var c = (i, o, e) => (C(i, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var H = (i, o, e) => new Promise((t, r) => {
|
|
14
|
+
var s = (p) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
m(e.next(p));
|
|
17
17
|
} catch (f) {
|
|
18
18
|
r(f);
|
|
19
19
|
}
|
|
20
20
|
}, a = (p) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
22
|
+
m(e.throw(p));
|
|
23
23
|
} catch (f) {
|
|
24
24
|
r(f);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(s, a);
|
|
27
|
+
m((e = e.apply(i, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Subscribe as j } from "@realsee/five";
|
|
30
30
|
import { Controller as y } from "../base/BasePlugin.js";
|
|
@@ -45,11 +45,6 @@ import { BoundingBoxController as q } from "../shared-utils/Object3DHelper/Contr
|
|
|
45
45
|
import { ScaleHelper as z } from "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
46
46
|
import { ScaleController as A } from "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
47
47
|
import "../shared-utils/Subscribe.js";
|
|
48
|
-
import "hammerjs";
|
|
49
|
-
import "@tweenjs/tween.js";
|
|
50
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
51
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
52
|
-
import "../shared-utils/animationFrame/index.js";
|
|
53
48
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
54
49
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
55
50
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
@@ -86,18 +81,18 @@ const S = "Object3DHelperPlugin", w = S, J = () => {
|
|
|
86
81
|
}, Q = () => {
|
|
87
82
|
console.error(`${w} is disabled`);
|
|
88
83
|
};
|
|
89
|
-
class
|
|
84
|
+
class ze extends y {
|
|
90
85
|
constructor(e) {
|
|
91
86
|
super(e);
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
c(this, "name", S);
|
|
88
|
+
c(this, "state", {
|
|
94
89
|
visible: !0,
|
|
95
90
|
enabled: !0,
|
|
96
91
|
disposed: !1
|
|
97
92
|
});
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
c(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
94
|
+
c(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
95
|
+
c(this, "css3DRender");
|
|
101
96
|
this.five = e, this.css3DRender = new U(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\uFF0C\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${S.toUpperCase()}_DEBUG__`]: this });
|
|
102
97
|
}
|
|
103
98
|
show(e) {
|
|
@@ -138,14 +133,14 @@ class Te extends y {
|
|
|
138
133
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
139
134
|
return;
|
|
140
135
|
}
|
|
141
|
-
const r = new _(),
|
|
136
|
+
const r = new _(), s = [], a = (g = this.five.getElement()) == null ? void 0 : g.parentElement, m = this.five.camera, { moveHelper: p = !0, rotateHelper: f = !0, scaleHelper: O = !0, boundingBoxHelper: B = !1 } = t, u = new j();
|
|
142
137
|
if (p) {
|
|
143
138
|
const n = new k(e), l = this.getConfig(t.moveHelper), d = new v(this.five, L, e, n, l, u);
|
|
144
|
-
r.addControllers({ moveController: d.helperController }),
|
|
139
|
+
r.addControllers({ moveController: d.helperController }), s.push(() => d.dispose());
|
|
145
140
|
}
|
|
146
141
|
if (f) {
|
|
147
142
|
const n = this.getConfig(t.rotateHelper), l = new x(e, b({ container: a }, n)), d = new v(this.five, $, e, l, n, u);
|
|
148
|
-
r.addControllers({ rotateController: d.helperController }),
|
|
143
|
+
r.addControllers({ rotateController: d.helperController }), s.push(() => d.dispose());
|
|
149
144
|
}
|
|
150
145
|
if (B) {
|
|
151
146
|
const n = new W(e), l = new v(this.five, q, e, n, void 0, u);
|
|
@@ -153,8 +148,8 @@ class Te extends y {
|
|
|
153
148
|
}
|
|
154
149
|
if (O)
|
|
155
150
|
if (e.isCSS3DObjectPlus && a) {
|
|
156
|
-
const n = new I(e, a,
|
|
157
|
-
r.addControllers({ scaleController: l.helperController }),
|
|
151
|
+
const n = new I(e, a, m, this.five.scene), l = new v(this.five, G, e, n, void 0, u);
|
|
152
|
+
r.addControllers({ scaleController: l.helperController }), s.push(() => l.dispose()), N(this.five).then(() => {
|
|
158
153
|
var d, D;
|
|
159
154
|
if (e.isCSS3DObjectPlus) {
|
|
160
155
|
const h = e;
|
|
@@ -166,9 +161,9 @@ class Te extends y {
|
|
|
166
161
|
});
|
|
167
162
|
} else {
|
|
168
163
|
const n = new z(e), l = new v(this.five, A, e, n, void 0, u);
|
|
169
|
-
r.addControllers({ scaleController: l.helperController }),
|
|
164
|
+
r.addControllers({ scaleController: l.helperController }), s.push(() => l.dispose());
|
|
170
165
|
}
|
|
171
|
-
return this.objectHelperMap.set(e, { helper: r, disposers:
|
|
166
|
+
return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
|
|
172
167
|
}
|
|
173
168
|
removeObject3DHelper(e) {
|
|
174
169
|
if (!this.objectHelperMap.has(e))
|
|
@@ -176,10 +171,10 @@ class Te extends y {
|
|
|
176
171
|
const { helper: t, disposers: r } = this.objectHelperMap.get(e);
|
|
177
172
|
if (!!t) {
|
|
178
173
|
if (e.isCSS3DObjectPlus) {
|
|
179
|
-
const
|
|
180
|
-
a && a.add(
|
|
174
|
+
const s = e, a = this.css3DObjectParentMap.get(s);
|
|
175
|
+
a && a.add(s), this.css3DRender.render(this.five.camera);
|
|
181
176
|
}
|
|
182
|
-
this.objectHelperMap.delete(e), t.dispose(), r == null || r.forEach((
|
|
177
|
+
this.objectHelperMap.delete(e), t.dispose(), r == null || r.forEach((s) => s == null ? void 0 : s());
|
|
183
178
|
}
|
|
184
179
|
}
|
|
185
180
|
handleEnable(e, t = !0) {
|
|
@@ -209,6 +204,6 @@ class Te extends y {
|
|
|
209
204
|
}
|
|
210
205
|
}
|
|
211
206
|
export {
|
|
212
|
-
|
|
207
|
+
ze as Object3DHelperController,
|
|
213
208
|
w as PLUGIN
|
|
214
209
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import "three";
|
|
2
2
|
import "../shared-utils/threex/domevents/index.js";
|
|
3
3
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
4
|
-
import { Object3DHelperController as
|
|
4
|
+
import { Object3DHelperController as rr, PLUGIN as or } from "./Controller.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "../base/BasePlugin.js";
|
|
7
7
|
import "../shared-utils/Subscribe.js";
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
8
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
9
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
10
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
11
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
12
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
13
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
10
14
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
11
15
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
12
16
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -19,16 +23,6 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
19
23
|
import "../shared-utils/three/centerPoint.js";
|
|
20
24
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
21
25
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
24
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
25
|
-
import "../shared-utils/animationFrame/index.js";
|
|
26
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
27
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
28
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
29
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
30
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
31
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
32
26
|
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
33
27
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
34
28
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
@@ -50,13 +44,14 @@ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
|
50
44
|
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
51
45
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
52
46
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
47
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
53
48
|
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
54
49
|
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
55
50
|
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
56
|
-
const
|
|
51
|
+
const Z = (r) => new o(r);
|
|
57
52
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
rr as Object3DHelperController,
|
|
54
|
+
Z as Object3DHelperPlugin,
|
|
55
|
+
or as PLUGIN,
|
|
56
|
+
Z as default
|
|
62
57
|
};
|
|
@@ -35,8 +35,8 @@ import { CSS3DRenderPlugin as F } from "../CSS3DRenderPlugin/index.js";
|
|
|
35
35
|
import { tweenProgress as W } from "../shared-utils/animationFrame/BetterTween.js";
|
|
36
36
|
import "../base/BasePlugin.js";
|
|
37
37
|
import "../shared-utils/Subscribe.js";
|
|
38
|
-
import "
|
|
39
|
-
import "
|
|
38
|
+
import "./Assets/roomInfoIcon.js";
|
|
39
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
40
40
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
41
41
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
42
42
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -49,14 +49,12 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
49
49
|
import "../shared-utils/three/centerPoint.js";
|
|
50
50
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
51
51
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
52
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
53
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
54
|
-
import "./Assets/roomInfoIcon.js";
|
|
55
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
56
52
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
53
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
54
|
+
import "@tweenjs/tween.js";
|
|
57
55
|
import "../shared-utils/animationFrame/index.js";
|
|
58
56
|
const v = { userAction: !0 };
|
|
59
|
-
class
|
|
57
|
+
class se extends A {
|
|
60
58
|
constructor(e, t) {
|
|
61
59
|
super(e);
|
|
62
60
|
i(this, "state", {
|
|
@@ -237,5 +235,5 @@ class re extends A {
|
|
|
237
235
|
}
|
|
238
236
|
}
|
|
239
237
|
export {
|
|
240
|
-
|
|
238
|
+
se as PanoCompassController
|
|
241
239
|
};
|
|
@@ -4,8 +4,11 @@ import "@realsee/five";
|
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
7
|
+
import "./getRoomInfoInstance.js";
|
|
8
|
+
import "./Assets/roomInfoIcon.js";
|
|
9
|
+
import "../shared-utils/three/loadTexture.js";
|
|
10
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
9
12
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
13
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
14
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -18,18 +21,13 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
18
21
|
import "../shared-utils/three/centerPoint.js";
|
|
19
22
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
20
23
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
24
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
21
25
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
23
26
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
27
|
+
import "@tweenjs/tween.js";
|
|
24
28
|
import "../shared-utils/animationFrame/index.js";
|
|
25
|
-
|
|
26
|
-
import "./Assets/roomInfoIcon.js";
|
|
27
|
-
import "../shared-utils/three/loadTexture.js";
|
|
28
|
-
import "../CSS3DRenderPlugin/index.js";
|
|
29
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
30
|
-
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
31
|
-
const G = (o, r) => new t(o, r);
|
|
29
|
+
const E = (o, r) => new t(o, r);
|
|
32
30
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
E as PanoCompassPlugin,
|
|
32
|
+
E as default
|
|
35
33
|
};
|