@realsee/dnalogel 2.6.4 → 2.6.7-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/dist/Object3DHelperPlugin/Controller.d.ts +25 -10
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
- package/dist/Object3DHelperPlugin/typings.d.ts +14 -0
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
- package/dist/PanoTagPlugin/controller/index.d.ts +32 -6
- package/dist/PanoTagPlugin/typings/controller.d.ts +17 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
- package/dist/PanoTagPlugin/utils/tag/index.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
- package/dist/index.cjs.js +43 -43
- package/dist/index.js +5078 -4667
- package/dist/index.umd.js +32 -32
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
- package/dist/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
- package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
- package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
- package/dist/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
- package/{libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/index.d.ts +4 -27
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
- package/dist/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
- package/dist/shared-utils/three/GLTFLoader.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +40 -33
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +205 -77
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +34 -16
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +10 -5
- package/docs/functions/CameraMovementPlugin.html +10 -5
- package/docs/functions/CruisePlugin.html +10 -5
- package/docs/functions/GuideLinePlugin.html +10 -5
- package/docs/functions/ItemLabelPlugin.html +10 -5
- package/docs/functions/MapviewFloorplanPlugin.html +10 -5
- package/docs/functions/ModelChassisCompassPlugin.html +10 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
- package/docs/functions/ModelFloorplanPlugin.html +10 -5
- package/docs/functions/ModelItemLabelPlugin.html +10 -5
- package/docs/functions/ModelRoomLabelPlugin.html +10 -5
- package/docs/functions/ModelTVVideoPlugin.html +10 -5
- package/docs/functions/ModelViewPlugin.html +10 -5
- package/docs/functions/Object3DHelperPlugin.html +10 -5
- package/docs/functions/PanoCompassPlugin.html +10 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
- package/docs/functions/PanoDoorLabelPlugin.html +10 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
- package/docs/functions/PanoMeasurePlugin.html +10 -5
- package/docs/functions/PanoRulerPlugin.html +10 -5
- package/docs/functions/PanoRulerProPlugin.html +10 -5
- package/docs/functions/PanoSpatialTagPlugin.html +10 -5
- package/docs/functions/PanoTagPlugin.html +15 -10
- package/docs/functions/TopviewFloorplanPlugin.html +10 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +10 -5
- package/docs/index.html +9 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +19 -19
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +78 -0
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +85 -0
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +10 -5
- package/docs/interfaces/Rooms.html +10 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +25 -16
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +11 -11
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +14 -4
- package/docs/types/ArrayPosition.html +10 -5
- package/docs/types/AudioAppearance.html +10 -5
- package/docs/types/AudioTagTypeConfigKey.html +10 -5
- package/docs/types/CSS3DRenderExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
- package/docs/types/ClassFunctionParameters.html +268 -0
- package/docs/types/Color.html +10 -5
- package/docs/types/ContentTypeConfigKey.html +10 -5
- package/docs/types/ContentTypeConfigKeySplit.html +10 -5
- package/docs/types/ContentTypeMap.html +10 -5
- package/docs/types/Create3DDomContainerReturnType.html +10 -5
- package/docs/types/Create3DElementReturnType.html +10 -5
- package/docs/types/CruisePluginExportType.html +10 -5
- package/docs/types/Direction-1.html +10 -5
- package/docs/types/Direction4.html +10 -5
- package/docs/types/FloorplanRuleLabels.html +10 -5
- package/docs/types/FloorplanServerRuleLabels.html +10 -5
- package/docs/types/GuideLinePluginExportType.html +10 -5
- package/docs/types/HelperEventMap.html +174 -21
- package/docs/types/LoadTagConfig.html +10 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/MediaData.html +10 -5
- package/docs/types/MediaStore.html +10 -5
- package/docs/types/ModelElement.html +266 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
- package/docs/types/MoveArgs.html +10 -5
- package/docs/types/MoveOpts.html +10 -5
- package/docs/types/Object3DHelperEventMap.html +10 -5
- package/docs/types/ObjectFit.html +10 -5
- package/docs/types/PaintBrushEventMap.html +10 -5
- package/docs/types/PanoCompassPluginData.html +10 -5
- package/docs/types/PanoCompassPluginExportType.html +10 -5
- package/docs/types/PanoCompassPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
- package/docs/types/PanoIndex.html +10 -5
- package/docs/types/PanoMeasurePluginEvent.html +10 -5
- package/docs/types/PanoMeasureReturnType.html +10 -5
- package/docs/types/PanoSpatialTagPluginId.html +10 -5
- package/docs/types/PanoTagPluginExportInterface.html +10 -5
- package/docs/types/PanoTagPluginParamsInterface.html +10 -5
- package/docs/types/PlaneTag.html +10 -5
- package/docs/types/PlaneTagElement.html +10 -5
- package/docs/types/Point2DElement.html +10 -5
- package/docs/types/Point2DTag.html +10 -5
- package/docs/types/Point3DElement.html +10 -5
- package/docs/types/Point3DTag.html +10 -5
- package/docs/types/PointTag.html +10 -5
- package/docs/types/PointTagElement.html +10 -5
- package/docs/types/Position.html +10 -5
- package/docs/types/RotateArgs.html +10 -5
- package/docs/types/RotateOpts.html +10 -5
- package/docs/types/RuleLabelsKey.html +10 -5
- package/docs/types/RuleLabelsValue.html +10 -5
- package/docs/types/StickType.html +11 -6
- package/docs/types/Tag.html +11 -6
- package/docs/types/Tag2D.html +10 -5
- package/docs/types/Tag3D.html +10 -5
- package/docs/types/TagContentType.html +11 -6
- package/docs/types/TagDimensionType.html +10 -5
- package/docs/types/TagElement.html +11 -6
- package/docs/types/TagEvents.html +10 -5
- package/docs/types/TagGLTFObject.html +261 -0
- package/docs/types/TagHooks.html +10 -5
- package/docs/types/TagIconSize.html +10 -5
- package/docs/types/TagId.html +10 -5
- package/docs/types/TagPointType.html +10 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/WorkCode.html +10 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
- package/docs/variables/PLUGIN.html +10 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
- package/docs/variables/ROOM_TYPE_MAP.html +10 -5
- package/docs/variables/VERSION.html +10 -5
- package/docs/variables/itemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +43 -43
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +16 -15
- package/libs/Object3DHelperPlugin/Controller.d.ts +25 -10
- package/libs/Object3DHelperPlugin/Controller.js +117 -97
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +29 -22
- package/libs/Object3DHelperPlugin/index.js +16 -11
- package/libs/Object3DHelperPlugin/typings.d.ts +14 -0
- package/libs/PanoTagPlugin/Components/Common/Media.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +68 -68
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +12 -11
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +33 -33
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +46 -46
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +12 -11
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +26 -25
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +29 -28
- package/libs/PanoTagPlugin/Components/Tag/index.js +126 -119
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +67 -65
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.js +14 -12
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
- package/libs/PanoTagPlugin/controller/TagComputer.js +242 -176
- package/libs/PanoTagPlugin/controller/index.d.ts +32 -6
- package/libs/PanoTagPlugin/controller/index.js +176 -91
- package/libs/PanoTagPlugin/index.js +15 -12
- package/libs/PanoTagPlugin/tag.config.js +9 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +17 -2
- package/libs/PanoTagPlugin/typings/controller.js +1 -1
- package/libs/PanoTagPlugin/typings/index.js +6 -5
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
- package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +5 -4
- package/libs/PanoTagPlugin/utils/color.js +5 -5
- package/libs/PanoTagPlugin/utils/index.js +37 -34
- package/libs/PanoTagPlugin/utils/planeNormal.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/index.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/index.js +11 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +6 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +20 -8
- package/libs/index.js +111 -104
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -90
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +55 -22
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.js +14 -0
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +14 -10
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +80 -37
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +44 -41
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +95 -67
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +21 -0
- package/libs/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +87 -0
- package/{dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
- package/libs/shared-utils/Object3DHelper/Helper/{RectangleScaleHelper.js → CSS3DScaleHelper.js} +5 -7
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +7 -9
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +72 -66
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +9 -0
- package/libs/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -2
- package/libs/shared-utils/Object3DHelper/index.d.ts +4 -27
- package/libs/shared-utils/Object3DHelper/index.js +48 -96
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
- package/libs/shared-utils/Object3DHelper/typings/index.js +2 -1
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +24 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +2 -2
- package/libs/shared-utils/three/GLTFLoader.d.ts +2 -0
- package/libs/shared-utils/three/GLTFLoader.js +16 -0
- package/libs/typings/math.type.js +1 -0
- package/package.json +4 -4
- package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +0 -2
- package/libs/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +0 -1
|
@@ -1,100 +1,105 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var e in
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
1
|
+
var F = Object.defineProperty;
|
|
2
|
+
var M = Object.getOwnPropertySymbols;
|
|
3
|
+
var P = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var C = (i, o, e) => o in i ? F(i, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[o] = e, b = (i, o) => {
|
|
5
|
+
for (var e in o || (o = {}))
|
|
6
|
+
P.call(o, e) && C(i, e, o[e]);
|
|
7
|
+
if (M)
|
|
8
|
+
for (var e of M(o))
|
|
9
|
+
j.call(o, e) && C(i, e, o[e]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var h = (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
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
m(e.next(p));
|
|
17
|
+
} catch (f) {
|
|
18
|
+
r(f);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, a = (p) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
m(e.throw(p));
|
|
23
|
+
} catch (f) {
|
|
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
|
-
import {
|
|
29
|
+
import { Subscribe as y } from "@realsee/five";
|
|
30
|
+
import { Controller as I } from "../base/BasePlugin.js";
|
|
30
31
|
import "three";
|
|
31
|
-
import { MoveHelper as
|
|
32
|
-
import { RotateHelper as
|
|
33
|
-
import {
|
|
34
|
-
import "../shared-utils/Object3DHelper/Helper/
|
|
35
|
-
import { MoveController as
|
|
32
|
+
import { MoveHelper as k } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
33
|
+
import { RotateHelper as x } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
34
|
+
import { CSS3DScaleHelper as W } from "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
35
|
+
import { BoundingBoxHelper as L } from "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
36
|
+
import { MoveController as $ } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
36
37
|
import { ControllerWrapper as v } from "./FiveControllerWrapper.js";
|
|
37
|
-
import { Object3DHelper as
|
|
38
|
-
import { RotateController as
|
|
39
|
-
import { CSS3DScaleController as
|
|
40
|
-
import { CSS3DRender as
|
|
41
|
-
import
|
|
42
|
-
import
|
|
38
|
+
import { Object3DHelper as _ } from "../shared-utils/Object3DHelper/index.js";
|
|
39
|
+
import { RotateController as G } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
40
|
+
import { CSS3DScaleController as N } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
41
|
+
import { CSS3DRender as U } from "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
42
|
+
import V from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
43
|
+
import q from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
44
|
+
import { BoundingBoxController as z } from "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
45
|
+
import { ScaleHelper as A } from "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
46
|
+
import { ScaleController as J } from "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
43
47
|
import "../shared-utils/Subscribe.js";
|
|
44
48
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
45
49
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
46
50
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
47
51
|
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
48
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
49
52
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
50
53
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
51
54
|
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
55
|
+
import "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
52
56
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
53
57
|
import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
54
58
|
import "../shared-utils/isNil.js";
|
|
55
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
56
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
57
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
58
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
59
59
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
60
60
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
61
61
|
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
62
62
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
63
63
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
64
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
64
65
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
65
66
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
67
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
66
68
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
69
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
70
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
71
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
67
72
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
68
73
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
69
|
-
const O = "v1.0.0",
|
|
70
|
-
console.error(`${
|
|
71
|
-
},
|
|
72
|
-
console.warn(`${
|
|
73
|
-
},
|
|
74
|
-
console.error(`${
|
|
74
|
+
const O = "v1.0.0", S = "Object3DHelperPlugin", w = `${S}@${O}`, K = () => {
|
|
75
|
+
console.error(`${w} is disposed`);
|
|
76
|
+
}, Q = () => {
|
|
77
|
+
console.warn(`${w} is disabled`);
|
|
78
|
+
}, T = () => {
|
|
79
|
+
console.error(`${w} is disabled`);
|
|
75
80
|
};
|
|
76
|
-
class
|
|
81
|
+
class Ve extends I {
|
|
77
82
|
constructor(e) {
|
|
78
83
|
super(e);
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
h(this, "version", O);
|
|
85
|
+
h(this, "name", S);
|
|
86
|
+
h(this, "state", {
|
|
82
87
|
visible: !0,
|
|
83
88
|
enabled: !0,
|
|
84
89
|
disposed: !1
|
|
85
90
|
});
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
this.five = e, this.css3DRender = new
|
|
91
|
+
h(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
92
|
+
h(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
93
|
+
h(this, "css3DRender");
|
|
94
|
+
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 });
|
|
90
95
|
}
|
|
91
96
|
show(e) {
|
|
92
|
-
return
|
|
97
|
+
return H(this, null, function* () {
|
|
93
98
|
this.setState({ visible: !0 }, e);
|
|
94
99
|
});
|
|
95
100
|
}
|
|
96
101
|
hide(e) {
|
|
97
|
-
return
|
|
102
|
+
return H(this, null, function* () {
|
|
98
103
|
this.setState({ visible: !1 }, e);
|
|
99
104
|
});
|
|
100
105
|
}
|
|
@@ -107,82 +112,97 @@ class Pe extends R {
|
|
|
107
112
|
dispose() {
|
|
108
113
|
this.setState({ disposed: !0 });
|
|
109
114
|
}
|
|
110
|
-
setState(e,
|
|
115
|
+
setState(e, t) {
|
|
111
116
|
if (this.state.disposed)
|
|
112
|
-
return
|
|
117
|
+
return K();
|
|
113
118
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
114
|
-
return
|
|
115
|
-
const
|
|
116
|
-
this.state =
|
|
119
|
+
return T();
|
|
120
|
+
const r = b({}, this.state);
|
|
121
|
+
this.state = b(b({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
|
|
117
122
|
}
|
|
118
123
|
getObject3DHelper(e) {
|
|
119
124
|
return this.objectHelperMap.get(e);
|
|
120
125
|
}
|
|
121
|
-
addObject3DHelper(e,
|
|
122
|
-
var
|
|
126
|
+
addObject3DHelper(e, t = {}) {
|
|
127
|
+
var g;
|
|
123
128
|
if (!e)
|
|
124
129
|
return console.error("Object3D is undefined");
|
|
125
130
|
if (this.objectHelperMap.has(e)) {
|
|
126
131
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
127
132
|
return;
|
|
128
133
|
}
|
|
129
|
-
const t = new
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
const n = new P(e), a = new v(this.five, F, e, n);
|
|
134
|
-
t.addControllers({ moveController: a.helperController });
|
|
134
|
+
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: B = !0, boundingBoxHelper: R = !1 } = t, u = new y();
|
|
135
|
+
if (p) {
|
|
136
|
+
const n = new k(e), l = this.getConfig(t.moveHelper), d = new v(this.five, $, e, n, l, u);
|
|
137
|
+
r.addControllers({ moveController: d.helperController }), s.push(() => d.dispose());
|
|
135
138
|
}
|
|
136
|
-
if (
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
const a = new j(e, n), d = new v(this.five, k, e, a);
|
|
140
|
-
t.addControllers({ rotateController: d.helperController });
|
|
139
|
+
if (f) {
|
|
140
|
+
const n = this.getConfig(t.rotateHelper), l = new x(e, b({ container: a }, n)), d = new v(this.five, G, e, l, n, u);
|
|
141
|
+
r.addControllers({ rotateController: d.helperController }), s.push(() => d.dispose());
|
|
141
142
|
}
|
|
142
|
-
if (
|
|
143
|
-
const n = new
|
|
144
|
-
|
|
143
|
+
if (R) {
|
|
144
|
+
const n = new L(e), l = new v(this.five, z, e, n, void 0, u);
|
|
145
|
+
r.addControllers({ boundingBoxController: l.helperController });
|
|
145
146
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
if (B)
|
|
148
|
+
if (e.isCSS3DObjectPlus && a) {
|
|
149
|
+
const n = new W(e, a, m, this.five.scene), l = new v(this.five, N, e, n, void 0, u);
|
|
150
|
+
r.addControllers({ scaleController: l.helperController }), s.push(() => l.dispose()), V(this.five).then(() => {
|
|
151
|
+
var d, D;
|
|
152
|
+
if (e.isCSS3DObjectPlus) {
|
|
153
|
+
const c = e;
|
|
154
|
+
if (!c || c.mode !== "front")
|
|
155
|
+
return;
|
|
156
|
+
const E = (d = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? d : q(this.five);
|
|
157
|
+
E && (this.css3DObjectParentMap.set(c, c.parent), c.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(E), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(c), this.css3DRender.render(this.five.camera));
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
} else {
|
|
161
|
+
const n = new A(e), l = new v(this.five, J, e, n, void 0, u);
|
|
162
|
+
r.addControllers({ scaleController: l.helperController }), s.push(() => l.dispose());
|
|
151
163
|
}
|
|
152
|
-
});
|
|
164
|
+
return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
|
|
153
165
|
}
|
|
154
166
|
removeObject3DHelper(e) {
|
|
155
|
-
|
|
156
|
-
|
|
167
|
+
if (!this.objectHelperMap.has(e))
|
|
168
|
+
return;
|
|
169
|
+
const { helper: t, disposers: r } = this.objectHelperMap.get(e);
|
|
170
|
+
if (!!t) {
|
|
157
171
|
if (e.isCSS3DObjectPlus) {
|
|
158
|
-
const
|
|
159
|
-
|
|
172
|
+
const s = e, a = this.css3DObjectParentMap.get(s);
|
|
173
|
+
a && a.add(s), this.css3DRender.render(this.five.camera);
|
|
160
174
|
}
|
|
161
|
-
this.objectHelperMap.delete(e),
|
|
175
|
+
this.objectHelperMap.delete(e), t.dispose(), r == null || r.forEach((s) => s == null ? void 0 : s());
|
|
162
176
|
}
|
|
163
177
|
}
|
|
164
|
-
handleEnable(e,
|
|
165
|
-
e ? (this.everyHelperDo((
|
|
178
|
+
handleEnable(e, t = !0) {
|
|
179
|
+
e ? (this.everyHelperDo((r) => r.enable()), this.hooks.emit("enable", { userAction: t })) : (this.everyHelperDo((r) => r.disable()), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
166
180
|
}
|
|
167
|
-
handleVisible(e,
|
|
168
|
-
e ? (this.everyHelperDo((
|
|
181
|
+
handleVisible(e, t = !0) {
|
|
182
|
+
e ? (this.everyHelperDo((r) => r.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : (this.everyHelperDo((r) => r.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
169
183
|
}
|
|
170
184
|
handleDispose() {
|
|
171
|
-
this.
|
|
185
|
+
this.objectHelperMap.forEach(({ helper: e, disposers: t }) => {
|
|
186
|
+
e.dispose(), t == null || t.forEach((r) => r == null ? void 0 : r());
|
|
187
|
+
});
|
|
172
188
|
}
|
|
173
189
|
everyHelperDo(e) {
|
|
174
|
-
this.objectHelperMap.forEach((r) => {
|
|
175
|
-
|
|
190
|
+
this.objectHelperMap.forEach(({ helper: t, disposers: r }) => {
|
|
191
|
+
t && e(t);
|
|
176
192
|
});
|
|
177
193
|
}
|
|
178
|
-
actionIfStateIsEnabled(e,
|
|
194
|
+
actionIfStateIsEnabled(e, t) {
|
|
179
195
|
if (this.state.enabled)
|
|
180
196
|
return e();
|
|
181
|
-
|
|
197
|
+
t != null && t.warnLog && Q();
|
|
198
|
+
}
|
|
199
|
+
getConfig(e) {
|
|
200
|
+
if (!!e && typeof e != "boolean" && e.enable)
|
|
201
|
+
return e;
|
|
182
202
|
}
|
|
183
203
|
}
|
|
184
204
|
export {
|
|
185
|
-
|
|
186
|
-
|
|
205
|
+
Ve as Object3DHelperController,
|
|
206
|
+
w as PLUGIN,
|
|
187
207
|
O as VERSION
|
|
188
208
|
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description: 将手势操作绑定到controller上
|
|
3
3
|
*/
|
|
4
|
-
import type { Five } from '@realsee/five';
|
|
4
|
+
import type { Five, Subscribe } from '@realsee/five';
|
|
5
5
|
import type { BaseController } from '../shared-utils/Object3DHelper/Base/BaseController';
|
|
6
6
|
import type * as THREE from 'three';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
helperController?: Controller;
|
|
7
|
+
declare class ControllerWrapper<HelperControllerInterface extends new (...params: ConstructorParameters<typeof BaseController<any>>) => any> {
|
|
8
|
+
helperController?: InstanceType<HelperControllerInterface>;
|
|
10
9
|
private five;
|
|
11
|
-
constructor(five: Five, HelperController:
|
|
10
|
+
constructor(five: Five, HelperController: HelperControllerInterface, object: THREE.Object3D, helperObject3D: InstanceType<HelperControllerInterface>['helperObject3D'], HelperControllerConfig?: ConstructorParameters<HelperControllerInterface>[1], hooks?: Subscribe<any>);
|
|
11
|
+
dispose(): void;
|
|
12
12
|
private onFiveWantsTapGesture;
|
|
13
13
|
private onFiveWantsGesture;
|
|
14
|
+
private onFiveIntersectionOnModelUpdate;
|
|
14
15
|
}
|
|
15
|
-
declare const controllerWrapper: <Helper extends BaseHelper<THREE.Object3D> = BaseHelper<THREE.Object3D>, Controller extends BaseController<BaseHelper<THREE.Object3D>, THREE.Object3D> = BaseController<Helper, THREE.Object3D>>(five: Five, HelperController: new (camera: THREE.Camera, model: THREE.Object3D, originObject3D: THREE.Object3D, helperObject3D: Helper, container: HTMLElement, scene: THREE.Scene, onRender?: () => void) => Controller, object: THREE.Object3D, helperObjects: Helper) => ControllerWrapper<Helper, Controller>;
|
|
16
16
|
export { ControllerWrapper };
|
|
17
|
-
export { controllerWrapper };
|
|
18
17
|
export { ControllerWrapper as FiveControllerWrapper };
|
|
19
|
-
export { controllerWrapper as fiveControllerWrapper };
|
|
@@ -1,35 +1,42 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
class
|
|
5
|
-
constructor(e,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var G = (n, e, t) => e in n ? c(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var r = (n, e, t) => (G(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
class v {
|
|
5
|
+
constructor(e, t, a, h, p, u) {
|
|
6
|
+
r(this, "helperController");
|
|
7
|
+
r(this, "five");
|
|
8
|
+
r(this, "onFiveWantsTapGesture", (e) => {
|
|
9
9
|
if (!this.helperController)
|
|
10
10
|
return;
|
|
11
|
-
const
|
|
12
|
-
return this.five.needsRender = !0,
|
|
11
|
+
const t = this.helperController.onWantsTapGesture(e);
|
|
12
|
+
return this.five.needsRender = !0, t;
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
r(this, "onFiveWantsGesture", (...e) => {
|
|
15
15
|
if (!this.helperController)
|
|
16
16
|
return;
|
|
17
|
-
const
|
|
18
|
-
return this.five.needsRender = !0,
|
|
17
|
+
const t = this.helperController.onWantsGesture(...e);
|
|
18
|
+
return this.five.needsRender = !0, t;
|
|
19
19
|
});
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
r(this, "onFiveIntersectionOnModelUpdate", (...e) => {
|
|
21
|
+
!this.helperController || this.helperController.onIntersectionOnModelUpdate(...e);
|
|
22
|
+
});
|
|
23
|
+
const { camera: s, model: o, scene: i } = e, l = e.getElement();
|
|
24
|
+
if (this.five = e, !s || !o || !l || !i)
|
|
22
25
|
return;
|
|
23
|
-
const
|
|
26
|
+
const d = () => {
|
|
24
27
|
e.needsRender = !0;
|
|
25
28
|
};
|
|
26
|
-
this.helperController = new
|
|
29
|
+
this.helperController = new t(
|
|
30
|
+
{ camera: s, model: o, originObject3D: a, helperObject3D: h, container: l, scene: i, onRender: d, sharedHooks: u },
|
|
31
|
+
p
|
|
32
|
+
), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture), e.on("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate);
|
|
33
|
+
}
|
|
34
|
+
dispose() {
|
|
35
|
+
var e;
|
|
36
|
+
this.five.off("wantsTapGesture", this.onFiveWantsTapGesture), this.five.off("wantsGesture", this.onFiveWantsGesture), this.five.off("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), (e = this.helperController) == null || e.dispose();
|
|
27
37
|
}
|
|
28
38
|
}
|
|
29
|
-
const C = (...t) => new W(...t);
|
|
30
39
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
C as controllerWrapper,
|
|
34
|
-
C as fiveControllerWrapper
|
|
40
|
+
v as ControllerWrapper,
|
|
41
|
+
v as FiveControllerWrapper
|
|
35
42
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import "three";
|
|
2
|
+
import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
1
3
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
2
|
-
import { Object3DHelperController as
|
|
4
|
+
import { Object3DHelperController as Z, PLUGIN as _, VERSION as $ } from "./Controller.js";
|
|
5
|
+
import "@realsee/five";
|
|
3
6
|
import "../base/BasePlugin.js";
|
|
4
7
|
import "../shared-utils/Subscribe.js";
|
|
5
|
-
import "three";
|
|
6
8
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
7
9
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
8
10
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
@@ -20,15 +22,15 @@ import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
|
20
22
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
21
23
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
22
24
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
23
|
-
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
24
25
|
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
25
26
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
26
27
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
27
|
-
import "../shared-utils/Object3DHelper/Helper/
|
|
28
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
28
29
|
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
30
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
31
|
+
import "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
29
32
|
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
30
33
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
31
|
-
import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
32
34
|
import "../shared-utils/isNil.js";
|
|
33
35
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
34
36
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
@@ -40,11 +42,14 @@ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
|
40
42
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
41
43
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
42
44
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
43
|
-
|
|
45
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
46
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
47
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
48
|
+
const W = (r) => new o(r);
|
|
44
49
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
Z as Object3DHelperController,
|
|
51
|
+
W as Object3DHelperPlugin,
|
|
52
|
+
_ as PLUGIN,
|
|
53
|
+
$ as VERSION,
|
|
54
|
+
W as default
|
|
50
55
|
};
|
|
@@ -3,6 +3,20 @@ export interface Object3DHelperPluginState {
|
|
|
3
3
|
visible: boolean;
|
|
4
4
|
disposed: boolean;
|
|
5
5
|
}
|
|
6
|
+
export interface HelperOffset {
|
|
7
|
+
x: number | {
|
|
8
|
+
percents: number;
|
|
9
|
+
};
|
|
10
|
+
y: number | {
|
|
11
|
+
percents: number;
|
|
12
|
+
};
|
|
13
|
+
z: number | {
|
|
14
|
+
percents: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare type HelperConfig<T extends Object = {}> = boolean | ({
|
|
18
|
+
enable: boolean;
|
|
19
|
+
} & T);
|
|
6
20
|
export declare type Object3DHelperPluginEventMap = {
|
|
7
21
|
show: (options?: {
|
|
8
22
|
userAction?: boolean;
|
|
@@ -23,6 +23,7 @@ import "swiper/css";
|
|
|
23
23
|
import "swiper/css/autoplay";
|
|
24
24
|
import "three";
|
|
25
25
|
import { noTypecheck as M } from "../../utils/noTypecheck.js";
|
|
26
|
+
import "@realsee/five/gltf-loader";
|
|
26
27
|
import ee from "./MediaItem.js";
|
|
27
28
|
import { notNil as he } from "../../../shared-utils/isNil.js";
|
|
28
29
|
import "../../../vendor/svelte/easing/index.js";
|
|
@@ -388,7 +389,7 @@ function Ie(l, t, n) {
|
|
|
388
389
|
ie
|
|
389
390
|
];
|
|
390
391
|
}
|
|
391
|
-
class
|
|
392
|
+
class We extends ae {
|
|
392
393
|
constructor(t) {
|
|
393
394
|
super(), le(
|
|
394
395
|
this,
|
|
@@ -413,5 +414,5 @@ class Ue extends ae {
|
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
416
|
export {
|
|
416
|
-
|
|
417
|
+
We as default
|
|
417
418
|
};
|
|
@@ -69,7 +69,7 @@ function D(o) {
|
|
|
69
69
|
let e, i, l, t, n, r, v;
|
|
70
70
|
return {
|
|
71
71
|
c() {
|
|
72
|
-
e = _("video"), a(e, "class", "media-content svelte-q6hk4f"), a(e, "style", i = `object-fit: ${o[5]};`), y(e.src, l = o[1].videoCoverUrl ? o[1].url : o[1].url + "#t=0.1") || a(e, "src", l), a(e, "poster", t = o[1].videoCoverUrl), a(e, "preload", n = o[1].videoCoverUrl ? "none" : "auto"), e.playsInline = !0, a(e, "paused", ""), e.muted = !0, e.loop = !1, a(e, "crossorigin", ""), e.controls = !1, m(e, "showPlayButton", o[8]), P(e, "position", "relative");
|
|
72
|
+
e = _("video"), a(e, "class", "media-content svelte-q6hk4f"), a(e, "style", i = `object-fit: ${o[5]};`), y(e.src, l = o[1].videoCoverUrl ? o[1].url : o[1].url + "#t=0.1") || a(e, "src", l), a(e, "poster", t = o[1].videoCoverUrl), a(e, "preload", n = o[1].videoCoverUrl ? "none" : "auto"), a(e, "disablepictureinpicture", ""), e.playsInline = !0, a(e, "paused", ""), e.muted = !0, e.loop = !1, a(e, "crossorigin", ""), e.controls = !1, m(e, "showPlayButton", o[8]), P(e, "position", "relative");
|
|
73
73
|
},
|
|
74
74
|
m(c, d) {
|
|
75
75
|
k(c, e, d), o[13](e), r || (v = S(e, "click", o[12]), r = !0);
|
|
@@ -6,6 +6,7 @@ import "animejs";
|
|
|
6
6
|
import "../../../../shared-utils/uuid.js";
|
|
7
7
|
import "../../../../shared-utils/isNil.js";
|
|
8
8
|
import "three";
|
|
9
|
+
import "@realsee/five/gltf-loader";
|
|
9
10
|
import "../../../utils/search.js";
|
|
10
11
|
import "../../../utils/constants.js";
|
|
11
12
|
import "../../../../vendor/svelte/transition/index.js";
|
|
@@ -135,11 +136,11 @@ function K(o, r, t) {
|
|
|
135
136
|
S
|
|
136
137
|
];
|
|
137
138
|
}
|
|
138
|
-
class
|
|
139
|
+
class ne extends T {
|
|
139
140
|
constructor(r) {
|
|
140
141
|
super(), C(this, r, K, J, F, { visible: 0, textUnfolded: 8, content: 1 }, I);
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
+
ne as default
|
|
145
146
|
};
|
|
@@ -3,6 +3,7 @@ import U from "animejs";
|
|
|
3
3
|
import { uuid as M } from "../../../../shared-utils/uuid.js";
|
|
4
4
|
import { notNil as z } from "../../../../shared-utils/isNil.js";
|
|
5
5
|
import "three";
|
|
6
|
+
import "@realsee/five/gltf-loader";
|
|
6
7
|
import { searchFirstValueSmallThanLastValue as H } from "../../../utils/search.js";
|
|
7
8
|
import { RANDON_STRING as b } from "../../../utils/constants.js";
|
|
8
9
|
function K(i) {
|
|
@@ -171,7 +172,7 @@ function $(i, e, o) {
|
|
|
171
172
|
P
|
|
172
173
|
];
|
|
173
174
|
}
|
|
174
|
-
class
|
|
175
|
+
class ae extends J {
|
|
175
176
|
constructor(e) {
|
|
176
177
|
super(), V(
|
|
177
178
|
this,
|
|
@@ -191,5 +192,5 @@ class re extends J {
|
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
194
|
export {
|
|
194
|
-
|
|
195
|
+
ae as default
|
|
195
196
|
};
|