@realsee/dnalogel 2.6.6 → 2.6.7-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/Controller.d.ts +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 +23 -7
- package/dist/PanoTagPlugin/controller/index.d.ts +33 -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/TagConfig.d.ts +2 -1
- 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 +49 -49
- package/dist/index.js +5151 -4731
- 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 +279 -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 +11 -11
- 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 +93 -89
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +15 -14
- 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/Text/FlyMText.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +3 -2
- 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/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 +4 -2
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.js +14 -12
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +23 -7
- package/libs/PanoTagPlugin/controller/TagComputer.js +244 -174
- package/libs/PanoTagPlugin/controller/index.d.ts +33 -6
- package/libs/PanoTagPlugin/controller/index.js +174 -88
- 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/TagConfig.d.ts +2 -1
- 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/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
- 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,35 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (n,
|
|
1
|
+
var R = Object.defineProperty;
|
|
2
|
+
var C = (n, l, i) => l in n ? R(n, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[l] = i;
|
|
3
|
+
var t = (n, l, i) => (C(n, typeof l != "symbol" ? l + "" : l, i), i);
|
|
4
4
|
import * as r from "three";
|
|
5
|
-
import { RotateHelperAbstract as
|
|
6
|
-
import { AXES_THREE_COLOR as
|
|
7
|
-
import { tipsDom as
|
|
8
|
-
class
|
|
9
|
-
constructor(
|
|
10
|
-
var
|
|
11
|
-
super(
|
|
12
|
-
t(this, "yzCircle"
|
|
13
|
-
t(this, "xzCircle"
|
|
14
|
-
t(this, "xyCircle"
|
|
15
|
-
t(this, "xRingHelper"
|
|
16
|
-
t(this, "yRingHelper"
|
|
17
|
-
t(this, "zRingHelper"
|
|
18
|
-
t(this, "xAngleHelper"
|
|
19
|
-
t(this, "yAngleHelper"
|
|
20
|
-
t(this, "zAngleHelper"
|
|
5
|
+
import { RotateHelperAbstract as m } from "../Base/BaseHelper.js";
|
|
6
|
+
import { AXES_THREE_COLOR as y } from "../Constants/color.js";
|
|
7
|
+
import { tipsDom as w } from "./HTML/tipsDom.js";
|
|
8
|
+
class P extends m {
|
|
9
|
+
constructor(i, e) {
|
|
10
|
+
var s;
|
|
11
|
+
super(i);
|
|
12
|
+
t(this, "yzCircle");
|
|
13
|
+
t(this, "xzCircle");
|
|
14
|
+
t(this, "xyCircle");
|
|
15
|
+
t(this, "xRingHelper");
|
|
16
|
+
t(this, "yRingHelper");
|
|
17
|
+
t(this, "zRingHelper");
|
|
18
|
+
t(this, "xAngleHelper");
|
|
19
|
+
t(this, "yAngleHelper");
|
|
20
|
+
t(this, "zAngleHelper");
|
|
21
21
|
t(this, "angleTips");
|
|
22
22
|
t(this, "container");
|
|
23
|
-
|
|
23
|
+
(e == null ? void 0 : e.yzCircleEnable) !== !1 && (this.yzCircle = new d({ direction: "x", color: y.X }), this.xRingHelper = new H({ direction: "x" }), this.xAngleHelper = new g({ direction: "x", color: y.X })), (e == null ? void 0 : e.xzCircleEnable) !== !1 && (this.xzCircle = new d({ direction: "y", color: y.Y }), this.yRingHelper = new H({ direction: "y" }), this.yAngleHelper = new g({ direction: "y", color: y.Y })), (e == null ? void 0 : e.xyCircleEnable) !== !1 && (this.xyCircle = new d({ direction: "z", color: y.Z }), this.zRingHelper = new H({ direction: "z" }), this.zAngleHelper = new g({ direction: "z", color: y.Z })), e != null && e.container && (this.container = e == null ? void 0 : e.container, this.angleTips = w({ display: "none" }), (s = this.container) == null || s.appendChild(this.angleTips.element)), this.show();
|
|
24
24
|
}
|
|
25
25
|
updateAngleHelperQuaternion() {
|
|
26
|
-
|
|
26
|
+
var i, e, s, c, h, o, p, a, x, A, u, z;
|
|
27
|
+
(e = this.xAngleHelper) == null || e.quaternion.copy((i = this.yzCircle) == null ? void 0 : i.quaternion), (c = this.yAngleHelper) == null || c.quaternion.copy((s = this.xzCircle) == null ? void 0 : s.quaternion), (o = this.zAngleHelper) == null || o.quaternion.copy((h = this.xyCircle) == null ? void 0 : h.quaternion), (a = this.xRingHelper) == null || a.quaternion.copy((p = this.yzCircle) == null ? void 0 : p.quaternion), (A = this.yRingHelper) == null || A.quaternion.copy((x = this.xzCircle) == null ? void 0 : x.quaternion), (z = this.zRingHelper) == null || z.quaternion.copy((u = this.xyCircle) == null ? void 0 : u.quaternion);
|
|
27
28
|
}
|
|
28
|
-
applyHelperQuaternion(
|
|
29
|
-
|
|
29
|
+
applyHelperQuaternion(i, e) {
|
|
30
|
+
var s, c, h, o, p, a;
|
|
31
|
+
(s = this.yzCircle) == null || s.applyQuaternion(i), (c = this.xzCircle) == null || c.applyQuaternion(i), (h = this.xyCircle) == null || h.applyQuaternion(i), (o = this.xAngleHelper) == null || o.baseAxes.applyQuaternion(i), (p = this.yAngleHelper) == null || p.baseAxes.applyQuaternion(i), (a = this.zAngleHelper) == null || a.baseAxes.applyQuaternion(i);
|
|
30
32
|
}
|
|
31
33
|
hide() {
|
|
32
|
-
this.remove(
|
|
34
|
+
console.log("hide"), this.remove(
|
|
33
35
|
this.yzCircle,
|
|
34
36
|
this.xzCircle,
|
|
35
37
|
this.xyCircle,
|
|
@@ -42,75 +44,79 @@ class f extends A {
|
|
|
42
44
|
);
|
|
43
45
|
}
|
|
44
46
|
show() {
|
|
45
|
-
var e;
|
|
46
|
-
this.add(this.xyCircle, this.xzCircle, this.yzCircle), this.remove(this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper), (e = this.angleTips) == null || e.hide();
|
|
47
|
-
}
|
|
48
|
-
showDraggingHelper(e) {
|
|
49
47
|
var i;
|
|
50
|
-
|
|
48
|
+
console.log("show"), this.add(...[this.xyCircle, this.xzCircle, this.yzCircle].filter(Boolean)), this.remove(
|
|
49
|
+
...[this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter(Boolean)
|
|
50
|
+
), (i = this.angleTips) == null || i.hide();
|
|
51
|
+
}
|
|
52
|
+
showDraggingHelper(i) {
|
|
53
|
+
var e;
|
|
54
|
+
this.hide(), this.add(...this.filterRingHelper(i)), this.add(...this.filterAngleHelper(i)), (e = this.angleTips) == null || e.show();
|
|
51
55
|
}
|
|
52
56
|
dispose() {
|
|
53
|
-
var
|
|
57
|
+
var i, e;
|
|
54
58
|
this.remove(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
...[
|
|
60
|
+
this.yzCircle,
|
|
61
|
+
this.xzCircle,
|
|
62
|
+
this.xyCircle,
|
|
63
|
+
this.xRingHelper,
|
|
64
|
+
this.yRingHelper,
|
|
65
|
+
this.zRingHelper,
|
|
66
|
+
this.xAngleHelper,
|
|
67
|
+
this.yAngleHelper,
|
|
68
|
+
this.zAngleHelper
|
|
69
|
+
].filter(Boolean)
|
|
70
|
+
), (e = (i = this.angleTips) == null ? void 0 : i.element) == null || e.remove();
|
|
65
71
|
}
|
|
66
|
-
filterRingHelper(
|
|
67
|
-
return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((
|
|
72
|
+
filterRingHelper(i) {
|
|
73
|
+
return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((e) => i.includes(e == null ? void 0 : e.direction)).filter(Boolean);
|
|
68
74
|
}
|
|
69
|
-
filterAngleHelper(
|
|
70
|
-
return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((
|
|
75
|
+
filterAngleHelper(i) {
|
|
76
|
+
return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((e) => i.includes(e == null ? void 0 : e.direction)).filter(Boolean);
|
|
71
77
|
}
|
|
72
78
|
}
|
|
73
|
-
class
|
|
74
|
-
constructor(
|
|
75
|
-
var
|
|
79
|
+
class d extends r.Mesh {
|
|
80
|
+
constructor(i) {
|
|
81
|
+
var e;
|
|
76
82
|
super();
|
|
77
83
|
t(this, "direction");
|
|
78
84
|
t(this, "gapAngle", 0.02);
|
|
79
85
|
t(this, "geometry", new r.RingGeometry(0.25, 0.3, 20, 8, this.gapAngle, Math.PI / 2 - this.gapAngle * 2));
|
|
80
86
|
this.material = new r.MeshBasicMaterial({
|
|
81
87
|
opacity: 0.6,
|
|
82
|
-
color: (
|
|
88
|
+
color: (e = i.color) != null ? e : 16777215,
|
|
83
89
|
transparent: !0,
|
|
84
90
|
side: r.DoubleSide,
|
|
85
91
|
depthTest: !1
|
|
86
|
-
}), this.direction =
|
|
92
|
+
}), this.direction = i.direction, this.geometry.name = `RotateHelperCircleGeometry-${this.direction}`, this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
|
|
87
93
|
}
|
|
88
94
|
}
|
|
89
|
-
class
|
|
90
|
-
constructor(
|
|
95
|
+
class H extends r.Group {
|
|
96
|
+
constructor(i) {
|
|
91
97
|
super();
|
|
92
98
|
t(this, "direction");
|
|
93
|
-
this.direction =
|
|
94
|
-
const
|
|
95
|
-
const
|
|
99
|
+
this.direction = i.direction;
|
|
100
|
+
const e = 0.015, s = new Array(8).fill(null).map((c, h) => {
|
|
101
|
+
const o = new r.RingGeometry(0.25, 0.3, 20, 8, Math.PI / 4 * h + e, Math.PI / 4 - e * 2), p = new r.MeshBasicMaterial({
|
|
96
102
|
opacity: 1,
|
|
97
103
|
color: 16777215,
|
|
98
104
|
depthTest: !1,
|
|
99
105
|
transparent: !0,
|
|
100
106
|
side: r.DoubleSide
|
|
101
|
-
}),
|
|
102
|
-
return
|
|
107
|
+
}), a = new r.Mesh(o, p);
|
|
108
|
+
return a.name = `AxesDashedRing-${this.direction}-${h}`, a;
|
|
103
109
|
});
|
|
104
|
-
this.add(...
|
|
110
|
+
this.add(...s), this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
|
-
class
|
|
108
|
-
constructor(
|
|
109
|
-
var
|
|
113
|
+
class g extends r.Mesh {
|
|
114
|
+
constructor(i) {
|
|
115
|
+
var s;
|
|
110
116
|
super();
|
|
111
117
|
t(this, "direction");
|
|
112
118
|
t(this, "baseAxes");
|
|
113
|
-
switch (
|
|
119
|
+
switch (i.direction) {
|
|
114
120
|
case "x":
|
|
115
121
|
this.baseAxes = new r.Vector3(0, 0, 1);
|
|
116
122
|
break;
|
|
@@ -121,16 +127,16 @@ class a extends r.Mesh {
|
|
|
121
127
|
this.baseAxes = new r.Vector3(1, 0, 0);
|
|
122
128
|
break;
|
|
123
129
|
}
|
|
124
|
-
const
|
|
125
|
-
this.geometry = new r.CircleGeometry(
|
|
130
|
+
const e = 0.3 + 5e-4;
|
|
131
|
+
this.geometry = new r.CircleGeometry(e, 48, 0, 1e-4), this.material = new r.MeshBasicMaterial({
|
|
126
132
|
opacity: 0.4,
|
|
127
|
-
color: (
|
|
133
|
+
color: (s = i.color) != null ? s : 16777215,
|
|
128
134
|
depthTest: !1,
|
|
129
135
|
transparent: !0,
|
|
130
136
|
side: r.DoubleSide
|
|
131
|
-
}), this.direction =
|
|
137
|
+
}), this.direction = i.direction, this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
|
|
132
138
|
}
|
|
133
139
|
}
|
|
134
140
|
export {
|
|
135
|
-
|
|
141
|
+
P as RotateHelper
|
|
136
142
|
};
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
import type { OutlineHelper } from './Helper';
|
|
2
1
|
import type { Object3DHelperEventMap, Object3DHelperState } from './typings';
|
|
3
|
-
import type {
|
|
4
|
-
import type { RotateController } from './Controller/RotateController';
|
|
5
|
-
import type { BaseController } from './Base/BaseController';
|
|
2
|
+
import type { ObjectHelperControllers } from './typings';
|
|
6
3
|
import { Subscribe } from '../Subscribe';
|
|
7
|
-
interface Controllers {
|
|
8
|
-
moveController?: MoveController;
|
|
9
|
-
rotateController?: RotateController;
|
|
10
|
-
scaleController?: BaseController;
|
|
11
|
-
}
|
|
12
|
-
interface Helpers {
|
|
13
|
-
outlineHelper?: OutlineHelper;
|
|
14
|
-
}
|
|
15
4
|
export declare class Object3DHelper {
|
|
16
|
-
controllers:
|
|
5
|
+
controllers: ObjectHelperControllers;
|
|
17
6
|
state: Object3DHelperState;
|
|
18
7
|
hooks: Subscribe<Object3DHelperEventMap>;
|
|
19
|
-
private helpers;
|
|
20
8
|
private eventListener;
|
|
21
|
-
constructor(controllers?:
|
|
9
|
+
constructor(controllers?: ObjectHelperControllers);
|
|
22
10
|
/**
|
|
23
11
|
* @description Show guide line
|
|
24
12
|
*/
|
|
@@ -50,22 +38,11 @@ export declare class Object3DHelper {
|
|
|
50
38
|
setState(state: Partial<Object3DHelperState>, options?: {
|
|
51
39
|
userAction?: boolean;
|
|
52
40
|
} & Record<string, any>): void;
|
|
53
|
-
addControllers(controllers:
|
|
54
|
-
addHelpers(helpers: Partial<{
|
|
55
|
-
[K in keyof Helpers]: Helpers[K];
|
|
56
|
-
}>): void;
|
|
41
|
+
addControllers(controllers: ObjectHelperControllers): void;
|
|
57
42
|
getCurrentState(): Object3DHelperState;
|
|
58
|
-
private addEventListener;
|
|
59
|
-
private handleEnd;
|
|
60
|
-
private handleStart;
|
|
61
|
-
private setOtherHelpersVisible;
|
|
62
|
-
private handlePositionUpdate;
|
|
63
|
-
private handleScaleUpdate;
|
|
64
|
-
private handleRotateUpdate;
|
|
65
43
|
private handleEnable;
|
|
66
44
|
private handleVisible;
|
|
67
45
|
private everyControllerDo;
|
|
68
46
|
private handleDispose;
|
|
69
47
|
private actionIfStateIsEnabled;
|
|
70
48
|
}
|
|
71
|
-
export {};
|
|
@@ -1,77 +1,58 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var S = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var f = Object.getOwnPropertySymbols;
|
|
3
|
+
var S = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var d = (i, e, s) => e in i ? p(i, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[e] = s, a = (i, e) => {
|
|
5
5
|
for (var s in e || (e = {}))
|
|
6
|
-
S.call(e, s) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var s of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
S.call(e, s) && d(i, s, e[s]);
|
|
7
|
+
if (f)
|
|
8
|
+
for (var s of f(e))
|
|
9
|
+
E.call(e, s) && d(i, s, e[s]);
|
|
10
|
+
return i;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var r = (i, e, s) => (d(i, typeof e != "symbol" ? e + "" : e, s), s);
|
|
13
|
+
var b = (i, e, s) => new Promise((t, l) => {
|
|
14
|
+
var v = (o) => {
|
|
15
15
|
try {
|
|
16
|
-
h(s.next(
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
h(s.next(o));
|
|
17
|
+
} catch (n) {
|
|
18
|
+
l(n);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, u = (o) => {
|
|
21
21
|
try {
|
|
22
|
-
h(s.throw(
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
h(s.throw(o));
|
|
23
|
+
} catch (n) {
|
|
24
|
+
l(n);
|
|
25
25
|
}
|
|
26
|
-
}, h = (
|
|
27
|
-
h((s = s.apply(
|
|
26
|
+
}, h = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(v, u);
|
|
27
|
+
h((s = s.apply(i, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Subscribe as C } from "../Subscribe.js";
|
|
30
|
-
const
|
|
31
|
-
console.error(`${
|
|
32
|
-
},
|
|
33
|
-
console.warn(`${
|
|
34
|
-
},
|
|
35
|
-
console.error(`${
|
|
30
|
+
const D = "v1.0.1", k = "Object3DHelper", c = `${k}@${D}`, y = () => {
|
|
31
|
+
console.error(`${c} is disposed`);
|
|
32
|
+
}, I = () => {
|
|
33
|
+
console.warn(`${c} is disabled`);
|
|
34
|
+
}, m = () => {
|
|
35
|
+
console.error(`${c} is disabled`);
|
|
36
36
|
};
|
|
37
|
-
class
|
|
38
|
-
constructor(e
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
class L {
|
|
38
|
+
constructor(e) {
|
|
39
|
+
r(this, "controllers", {});
|
|
40
|
+
r(this, "state", {
|
|
41
41
|
visible: !0,
|
|
42
42
|
enabled: !0,
|
|
43
43
|
disposed: !1
|
|
44
44
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
d(this, "handlePositionUpdate", (e, ...s) => {
|
|
49
|
-
var i, l, h, r;
|
|
50
|
-
const [t] = s, o = t == null ? void 0 : t.matrix4;
|
|
51
|
-
o && (e !== this.controllers.moveController && ((i = this.controllers.moveController) == null || i.applyHelperMatrix4(o)), e !== this.controllers.rotateController && ((l = this.controllers.rotateController) == null || l.applyHelperMatrix4(o)), e !== this.controllers.scaleController && ((h = this.controllers.scaleController) == null || h.applyHelperMatrix4(o)), (r = this.helpers.outlineHelper) == null || r.applyMatrix4(o));
|
|
52
|
-
});
|
|
53
|
-
d(this, "handleScaleUpdate", (e, ...s) => {
|
|
54
|
-
var i, l;
|
|
55
|
-
const [t] = s, o = t == null ? void 0 : t.matrix4;
|
|
56
|
-
o && ((i = this.controllers.scaleController) == null || i.applyHelperScaleMatrix4(o, t), (l = this.helpers.outlineHelper) == null || l.scale.applyMatrix4(o));
|
|
57
|
-
});
|
|
58
|
-
d(this, "handleRotateUpdate", (e, ...s) => {
|
|
59
|
-
var o, i, l, h;
|
|
60
|
-
const [t] = s;
|
|
61
|
-
if (t) {
|
|
62
|
-
const { quaternion: r, origin: a } = t;
|
|
63
|
-
r && (e !== this.controllers.moveController && ((o = this.controllers.moveController) == null || o.applyHelperQuaternion(r, a)), e !== this.controllers.rotateController && ((i = this.controllers.rotateController) == null || i.applyHelperQuaternion(r, a)), e !== this.controllers.scaleController && ((l = this.controllers.scaleController) == null || l.applyHelperQuaternion(r, a)), (h = this.helpers.outlineHelper) == null || h.applyQuaternion(r));
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
e && this.addControllers(e), this.helpers = s != null ? s : {}, this.setState(this.state);
|
|
45
|
+
r(this, "hooks", new C());
|
|
46
|
+
r(this, "eventListener", {});
|
|
47
|
+
e && this.addControllers(e), this.setState(this.state);
|
|
67
48
|
}
|
|
68
49
|
show(e) {
|
|
69
|
-
return
|
|
50
|
+
return b(this, null, function* () {
|
|
70
51
|
this.setState({ visible: !0 }, e);
|
|
71
52
|
});
|
|
72
53
|
}
|
|
73
54
|
hide(e) {
|
|
74
|
-
return
|
|
55
|
+
return b(this, null, function* () {
|
|
75
56
|
this.setState({ visible: !1 }, e);
|
|
76
57
|
});
|
|
77
58
|
}
|
|
@@ -86,59 +67,30 @@ class x {
|
|
|
86
67
|
}
|
|
87
68
|
setState(e, s) {
|
|
88
69
|
if (this.state.disposed)
|
|
89
|
-
return
|
|
70
|
+
return y();
|
|
90
71
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
91
|
-
return
|
|
92
|
-
const t =
|
|
93
|
-
this.state =
|
|
72
|
+
return m();
|
|
73
|
+
const t = a({}, this.state);
|
|
74
|
+
this.state = a(a({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && this.handleVisible(e.visible), e.enabled !== void 0 && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
|
|
94
75
|
}
|
|
95
76
|
addControllers(e) {
|
|
96
|
-
this.controllers =
|
|
97
|
-
}
|
|
98
|
-
addHelpers(e) {
|
|
99
|
-
this.helpers = p(p({}, this.helpers), e);
|
|
77
|
+
this.controllers = a(a({}, this.controllers), e), this.setState(this.state);
|
|
100
78
|
}
|
|
101
79
|
getCurrentState() {
|
|
102
80
|
return this.state;
|
|
103
81
|
}
|
|
104
|
-
addEventListener() {
|
|
105
|
-
for (const e in this.controllers) {
|
|
106
|
-
if (!e)
|
|
107
|
-
continue;
|
|
108
|
-
const s = e;
|
|
109
|
-
this.eventListener[s] || (this.eventListener[s] = (() => {
|
|
110
|
-
const t = this.controllers[s];
|
|
111
|
-
if (!t)
|
|
112
|
-
return;
|
|
113
|
-
const o = () => this.handleStart(t), i = () => this.handleEnd(t), l = (...a) => this.handlePositionUpdate(t, ...a), h = (...a) => this.handleRotateUpdate(t, ...a), r = (...a) => this.handleScaleUpdate(t, ...a);
|
|
114
|
-
return t.hooks.on("moveStart", o), t.hooks.on("rotateStart", o), t.hooks.on("scaleStart", o), t.hooks.on("positionUpdate", l), t.hooks.on("rotateUpdate", h), t.hooks.on("scaleUpdate", r), t.hooks.on("moveEnd", i), t.hooks.on("rotateEnd", i), t.hooks.on("scaleEnd", i), () => {
|
|
115
|
-
t.hooks.off("moveStart", o), t.hooks.off("rotateStart", o), t.hooks.off("scaleStart", o), t.hooks.off("positionUpdate", l), t.hooks.off("rotateUpdate", h), t.hooks.off("scaleUpdate", r), t.hooks.off("moveEnd", i), t.hooks.off("rotateEnd", i), t.hooks.off("scaleEnd", i);
|
|
116
|
-
};
|
|
117
|
-
})());
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
handleEnd(e) {
|
|
121
|
-
e && this.setOtherHelpersVisible(!0, e);
|
|
122
|
-
}
|
|
123
|
-
handleStart(e) {
|
|
124
|
-
e && this.setOtherHelpersVisible(!1, e);
|
|
125
|
-
}
|
|
126
|
-
setOtherHelpersVisible(e, s) {
|
|
127
|
-
var t, o, i, l;
|
|
128
|
-
e ? ((i = this.controllers.moveController) == null || i.helperObject3D.show(), (l = this.controllers.rotateController) == null || l.helperObject3D.show()) : (s !== this.controllers.moveController && ((t = this.controllers.moveController) == null || t.helperObject3D.hide()), s !== this.controllers.rotateController && ((o = this.controllers.rotateController) == null || o.helperObject3D.hide()));
|
|
129
|
-
}
|
|
130
82
|
handleEnable(e, s = !0) {
|
|
131
83
|
e ? (this.everyControllerDo((t) => {
|
|
132
84
|
t.enable();
|
|
133
85
|
}), this.hooks.emit("enable", { userAction: s })) : (this.everyControllerDo((t) => {
|
|
134
|
-
t.disable()
|
|
86
|
+
t.disable();
|
|
135
87
|
}), this.hooks.emit("disable", { userAction: s })), this.state.enabled = e;
|
|
136
88
|
}
|
|
137
89
|
handleVisible(e, s = !0) {
|
|
138
90
|
e ? (this.everyControllerDo((t) => {
|
|
139
91
|
t.show();
|
|
140
92
|
}), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: s }))) : (this.everyControllerDo((t) => {
|
|
141
|
-
t.hide()
|
|
93
|
+
t.hide();
|
|
142
94
|
}), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: s }))), this.state.visible = e;
|
|
143
95
|
}
|
|
144
96
|
everyControllerDo(e) {
|
|
@@ -149,21 +101,21 @@ class x {
|
|
|
149
101
|
handleDispose() {
|
|
150
102
|
var e, s;
|
|
151
103
|
Object.values(this.controllers).forEach((t) => {
|
|
152
|
-
t == null || t.dispose()
|
|
104
|
+
t == null || t.dispose();
|
|
153
105
|
});
|
|
154
106
|
for (const t in this.controllers) {
|
|
155
107
|
if (!t)
|
|
156
108
|
continue;
|
|
157
|
-
const
|
|
158
|
-
(s = (e = this.eventListener)[
|
|
109
|
+
const l = t;
|
|
110
|
+
(s = (e = this.eventListener)[l]) == null || s.call(e);
|
|
159
111
|
}
|
|
160
112
|
}
|
|
161
113
|
actionIfStateIsEnabled(e, s) {
|
|
162
114
|
if (this.state.enabled)
|
|
163
115
|
return e();
|
|
164
|
-
s != null && s.warnLog &&
|
|
116
|
+
s != null && s.warnLog && I();
|
|
165
117
|
}
|
|
166
118
|
}
|
|
167
119
|
export {
|
|
168
|
-
|
|
120
|
+
L as Object3DHelper
|
|
169
121
|
};
|
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
import type * as THREE from 'three';
|
|
2
2
|
export declare type HelperEventMap = {
|
|
3
|
+
wantToMove: (position: THREE.Vector3) => void;
|
|
4
|
+
wantToRotate: (quaternion: THREE.Quaternion) => void;
|
|
5
|
+
wantToScale: (scale: THREE.Vector3) => void;
|
|
6
|
+
move: (position: THREE.Vector3) => void;
|
|
7
|
+
rotate: (quaternion: THREE.Quaternion) => void;
|
|
8
|
+
scale: (scale: THREE.Vector3) => void;
|
|
3
9
|
moveStart: () => void;
|
|
4
10
|
rotateStart: () => void;
|
|
5
11
|
scaleStart: () => void;
|
|
6
|
-
positionUpdate: (position: {
|
|
7
|
-
matrix4?: THREE.Matrix4;
|
|
8
|
-
} | undefined) => void;
|
|
9
|
-
rotateUpdate: (rotate: {
|
|
10
|
-
quaternion?: THREE.Quaternion;
|
|
11
|
-
origin: THREE.Vector3;
|
|
12
|
-
} | undefined) => void;
|
|
13
|
-
scaleUpdate: (scale: {
|
|
14
|
-
matrix4?: THREE.Matrix4;
|
|
15
|
-
origin?: THREE.Vector3;
|
|
16
|
-
helperOrigin: THREE.Vector3;
|
|
17
|
-
} | undefined) => void;
|
|
18
12
|
moveEnd: () => void;
|
|
19
13
|
rotateEnd: () => void;
|
|
20
14
|
scaleEnd: () => void;
|
|
15
|
+
setObjectPosition: (position: THREE.Vector3) => void;
|
|
16
|
+
setObjectRotate: (quaternion: THREE.Quaternion, origin: THREE.Vector3) => void;
|
|
17
|
+
setObjectScale: (scale: THREE.Vector3) => void;
|
|
18
|
+
applyObjectPosition: (position: {
|
|
19
|
+
matrix4: THREE.Matrix4;
|
|
20
|
+
}) => void;
|
|
21
|
+
applyObjectRotate: (rotate: {
|
|
22
|
+
quaternion: THREE.Quaternion;
|
|
23
|
+
origin: THREE.Vector3;
|
|
24
|
+
}) => void;
|
|
25
|
+
applyObjectScale: (scale: {
|
|
26
|
+
matrix4: THREE.Matrix4;
|
|
27
|
+
origin?: THREE.Vector3;
|
|
28
|
+
}) => void;
|
|
29
|
+
moveByMouseEnable: () => void;
|
|
30
|
+
moveByMouseDisable: () => void;
|
|
21
31
|
};
|
|
22
32
|
export interface Object3DHelperState {
|
|
23
33
|
enabled: boolean;
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
import type * as THREE from 'three';
|
|
2
|
+
import type { MoveController } from '../Controller/MoveController';
|
|
3
|
+
import type { RotateController } from '../Controller/RotateController';
|
|
4
|
+
import type { BoundingBoxController } from '../Controller/BoundingBoxController';
|
|
5
|
+
import { ScaleController } from '../Controller/ScaleController';
|
|
2
6
|
export * from './Scissor';
|
|
3
7
|
export * from './Direction';
|
|
4
8
|
export * from './Hooks';
|
|
9
|
+
export interface HelperOffset {
|
|
10
|
+
x: number | {
|
|
11
|
+
percents: number;
|
|
12
|
+
};
|
|
13
|
+
y: number | {
|
|
14
|
+
percents: number;
|
|
15
|
+
};
|
|
16
|
+
z: number | {
|
|
17
|
+
percents: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
5
20
|
export declare type Color = THREE.Color | string | number;
|
|
21
|
+
export declare type ClassFunctionParameters<C extends new (...params: any[]) => any, F extends keyof InstanceType<C>> = Parameters<InstanceType<C>[F]>;
|
|
22
|
+
export interface ObjectHelperControllers {
|
|
23
|
+
moveController?: MoveController;
|
|
24
|
+
rotateController?: RotateController;
|
|
25
|
+
scaleController?: ScaleController;
|
|
26
|
+
boundingBoxController?: BoundingBoxController;
|
|
27
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import "three";
|
|
2
|
+
import "../utils/threex/domevents/index.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as p from "three";
|
|
2
|
+
function l(e) {
|
|
3
|
+
const o = new p.Box3(), a = new p.Vector3();
|
|
4
|
+
if (e.updateMatrixWorld(!1), e.traverse((r) => {
|
|
5
|
+
var s;
|
|
6
|
+
if (r.name === "shadow")
|
|
7
|
+
return;
|
|
8
|
+
const t = r.geometry;
|
|
9
|
+
if (t !== void 0)
|
|
10
|
+
if ((s = t == null ? void 0 : t.attributes) != null && s.position) {
|
|
11
|
+
const n = t.attributes.position;
|
|
12
|
+
for (let i = 0, f = n.count; i < f; i++)
|
|
13
|
+
a.fromBufferAttribute(n, i).applyMatrix4(r.matrixWorld), o.expandByPoint(a);
|
|
14
|
+
} else
|
|
15
|
+
t.vertices.forEach((n) => {
|
|
16
|
+
const i = n.clone().applyMatrix4(r.matrixWorld);
|
|
17
|
+
o.expandByPoint(i);
|
|
18
|
+
});
|
|
19
|
+
}), !o.isEmpty())
|
|
20
|
+
return o.translate(e.position.clone().negate()), o;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
l as boundingBox
|
|
24
|
+
};
|
|
@@ -90,7 +90,7 @@ n.prototype.unbind = function(t, e, o, i) {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
var h = this._boundObjs[e].indexOf(t);
|
|
93
|
-
|
|
93
|
+
this._boundObjs[e].splice(h, 1);
|
|
94
94
|
};
|
|
95
95
|
n.prototype.removeEventListener = n.prototype.unbind;
|
|
96
96
|
n.prototype._bound = function(t, e) {
|
|
@@ -126,7 +126,7 @@ n.prototype._onEvent = function(t, e, o, i) {
|
|
|
126
126
|
};
|
|
127
127
|
n.prototype._notify = function(t, e, o, i) {
|
|
128
128
|
var s = this._objectCtxGet(e), r = s ? s[t + "Handlers"] : null;
|
|
129
|
-
if (
|
|
129
|
+
if (!s || !r || r.length === 0) {
|
|
130
130
|
e.parent && this._notify(t, e.parent, o, i);
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GLTFLoader as i } from "@realsee/five/gltf-loader";
|
|
2
|
+
const a = new i();
|
|
3
|
+
function f(n) {
|
|
4
|
+
return new Promise((r, e) => {
|
|
5
|
+
function t(o) {
|
|
6
|
+
r(o);
|
|
7
|
+
}
|
|
8
|
+
function d(o) {
|
|
9
|
+
e(o);
|
|
10
|
+
}
|
|
11
|
+
a.load(n, t, void 0, d);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
f as loadGLTF
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|