@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
package/libs/index.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { PaintBrush as
|
|
2
|
-
import { PaintBrushTypeEnum as
|
|
3
|
-
import { ModelViewPlugin as
|
|
4
|
-
import { CSS3DRenderPlugin as
|
|
5
|
-
import { PanoCursorRaycasterPlugin as
|
|
6
|
-
import { ModelRoomLabelPlugin as
|
|
7
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
8
|
-
import { ModelFloorplanPlugin as
|
|
9
|
-
import { MapviewFloorplanPlugin as
|
|
10
|
-
import { TopviewFloorplanPlugin as
|
|
11
|
-
import { PanoFloorplanRadarPlugin as
|
|
12
|
-
import { FLOOR_TYPE_MAP as
|
|
13
|
-
import { ModelChassisCompassPlugin as
|
|
14
|
-
import { ModelEntryDoorGuidePlugin as
|
|
15
|
-
import { CameraMovementPlugin as
|
|
16
|
-
import { CameraMovementEffect as
|
|
17
|
-
import { PanoRulerPlugin as
|
|
18
|
-
import { PanoRulerProPlugin as
|
|
19
|
-
import { PanoCompassPlugin as
|
|
20
|
-
import { PanoMeasurePlugin as
|
|
21
|
-
import { PanoSpatialTagPlugin as
|
|
22
|
-
import { modelItemLabelPluginServerParams as
|
|
23
|
-
import { ModelTVVideoPlugin as
|
|
24
|
-
import { DIRECTION as
|
|
25
|
-
import { itemLabelPluginServerParams as
|
|
26
|
-
import { PanoDoorLabelPlugin as
|
|
27
|
-
import { GuideLinePlugin as
|
|
28
|
-
import { CruisePlugin as
|
|
29
|
-
import { PanoTagPlugin as
|
|
30
|
-
import { Object3DHelperPlugin as
|
|
31
|
-
import { index as
|
|
32
|
-
import { CSS3DRender as
|
|
33
|
-
import { Model as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { Polyline as
|
|
37
|
-
import { default as
|
|
38
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
39
|
-
import { ModelItemLabelPlugin as
|
|
40
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
41
|
-
import { Plugin as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { ContentType as
|
|
45
|
-
import { DimensionType as
|
|
46
|
-
import { Object3DHelperController as
|
|
1
|
+
import { PaintBrush as np } from "./components/PaintBrush/index.js";
|
|
2
|
+
import { PaintBrushTypeEnum as Pp } from "./components/PaintBrush/typings.js";
|
|
3
|
+
import { ModelViewPlugin as fp } from "./ModelViewPlugin/Plugin.js";
|
|
4
|
+
import { CSS3DRenderPlugin as gp } from "./CSS3DRenderPlugin/index.js";
|
|
5
|
+
import { PanoCursorRaycasterPlugin as Mp } from "./PanoCursorRaycasterPlugin/index.js";
|
|
6
|
+
import { ModelRoomLabelPlugin as dp, modelRoomLabelPluginServerParams as Lp } from "./ModelRoomLabelPlugin/index.js";
|
|
7
|
+
import { FLOOR_PLAN_ATTACHED_TO as Rp } from "./floorplan/constant.js";
|
|
8
|
+
import { ModelFloorplanPlugin as Cp } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
9
|
+
import { MapviewFloorplanPlugin as Sp } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
10
|
+
import { TopviewFloorplanPlugin as Ap } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
11
|
+
import { PanoFloorplanRadarPlugin as bp } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
12
|
+
import { FLOOR_TYPE_MAP as yp, ROOM_FETILE_TYPE_MAP as Fp, ROOM_TYPE_MAP as vp } from "./floorplan/typings/floorplanServerData.js";
|
|
13
|
+
import { ModelChassisCompassPlugin as Np } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
14
|
+
import { ModelEntryDoorGuidePlugin as Vp } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
15
|
+
import { CameraMovementPlugin as wp } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
16
|
+
import { CameraMovementEffect as Hp, Rotation as Up } from "./CameraMovementPlugin/typing.js";
|
|
17
|
+
import { PanoRulerPlugin as kp } from "./PanoRulerPlugin/Plugin.js";
|
|
18
|
+
import { PanoRulerProPlugin as zp } from "./PanoRulerProPlugin/index.js";
|
|
19
|
+
import { PanoCompassPlugin as Kp } from "./PanoCompassPlugin/index.js";
|
|
20
|
+
import { PanoMeasurePlugin as Wp } from "./PanoMeasurePlugin/index.js";
|
|
21
|
+
import { PanoSpatialTagPlugin as Zp } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
22
|
+
import { modelItemLabelPluginServerParams as oi } from "./ModelItemLabelPlugin/index.js";
|
|
23
|
+
import { ModelTVVideoPlugin as ti } from "./ModelTVVideoPlugin/Plugin.js";
|
|
24
|
+
import { DIRECTION as pi } from "./ModelTVVideoPlugin/typings.js";
|
|
25
|
+
import { itemLabelPluginServerParams as ei } from "./ItemLabelPlugin/index.js";
|
|
26
|
+
import { PanoDoorLabelPlugin as ni } from "./PanoDoorLabelPlugin/index.js";
|
|
27
|
+
import { GuideLinePlugin as Pi } from "./GuideLinePlugin/index.js";
|
|
28
|
+
import { CruisePlugin as fi } from "./CruisePlugin/index.js";
|
|
29
|
+
import { PanoTagPlugin as gi } from "./PanoTagPlugin/index.js";
|
|
30
|
+
import { Object3DHelperPlugin as Mi } from "./Object3DHelperPlugin/index.js";
|
|
31
|
+
import { index as di } from "./shared-utils/index.js";
|
|
32
|
+
import { CSS3DRender as Ei } from "./CSS3DRenderPlugin/CSS3DRender.js";
|
|
33
|
+
import { Model as _i } from "./PanoMeasurePlugin/Model/index.js";
|
|
34
|
+
import { default as Oi } from "./PanoMeasurePlugin/Model/point.js";
|
|
35
|
+
import { default as Ii } from "./PanoMeasurePlugin/Model/line.js";
|
|
36
|
+
import { Polyline as Di } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
37
|
+
import { default as Yi } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
38
|
+
import { DISPLAY_STRATEGY_TYPE as Fi } from "./ModelItemLabelPlugin/typings.js";
|
|
39
|
+
import { ModelItemLabelPlugin as Gi } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
40
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as ci } from "./ItemLabelPlugin/typings.js";
|
|
41
|
+
import { Plugin as hi } from "./ItemLabelPlugin/Plugin.js";
|
|
42
|
+
import { default as Bi } from "./CruisePlugin/Controller.js";
|
|
43
|
+
import { default as Ui, pluginFlag as ji } from "./PanoTagPlugin/controller/index.js";
|
|
44
|
+
import { ContentType as qi } from "./PanoTagPlugin/typings/tag/TagData.js";
|
|
45
|
+
import { DimensionType as Ji, PointType as Ki } from "./PanoTagPlugin/typings/tag/Utils.js";
|
|
46
|
+
import { Object3DHelperController as Wi, PLUGIN as Xi, VERSION as Zi } from "./Object3DHelperPlugin/Controller.js";
|
|
47
47
|
import "./components/PaintBrush/Controller.js";
|
|
48
48
|
import "./components/PaintBrush/utils.js";
|
|
49
49
|
import "./components/PaintBrush/tween.js";
|
|
@@ -216,6 +216,7 @@ import "./CruisePlugin/utils/vectorToCoordinates.js";
|
|
|
216
216
|
import "./CruisePlugin/utils/formatRad.js";
|
|
217
217
|
import "./CruisePlugin/utils/linerValue.js";
|
|
218
218
|
import "./CruisePlugin/utils/sleep.js";
|
|
219
|
+
import "@realsee/five/gltf-loader";
|
|
219
220
|
import "object-assign-deep";
|
|
220
221
|
import "./PanoTagPlugin/Components/TagContainer.js";
|
|
221
222
|
import "./PanoTagPlugin/Components/TagItem.js";
|
|
@@ -252,6 +253,7 @@ import "swiper/css/autoplay";
|
|
|
252
253
|
import "./PanoTagPlugin/utils/noTypecheck.js";
|
|
253
254
|
import "./PanoTagPlugin/Components/Common/MediaItem.js";
|
|
254
255
|
import "./PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
256
|
+
import "./PanoTagPlugin/utils/tag/tagCheck.js";
|
|
255
257
|
import "./PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
256
258
|
import "./PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
|
|
257
259
|
import "./PanoTagPlugin/Components/Common/Audio.js";
|
|
@@ -275,25 +277,27 @@ import "./PanoTagPlugin/utils/throttle.js";
|
|
|
275
277
|
import "./PanoTagPlugin/utils/resizeObserver.js";
|
|
276
278
|
import "./PanoTagPlugin/controller/TagComputer.js";
|
|
277
279
|
import "./PanoTagPlugin/tag.config.js";
|
|
278
|
-
import "./PanoTagPlugin/utils/tag/tagCheck.js";
|
|
279
280
|
import "./PanoTagPlugin/utils/tagPosition.js";
|
|
280
281
|
import "./PanoTagPlugin/utils/checkRange.js";
|
|
281
282
|
import "./PanoTagPlugin/controller/TagCacheController.js";
|
|
282
283
|
import "./PanoTagPlugin/utils/tag/format.js";
|
|
284
|
+
import "./shared-utils/three/GLTFLoader.js";
|
|
285
|
+
import "./PanoTagPlugin/utils/tag/index.js";
|
|
286
|
+
import "./shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
283
287
|
import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
284
288
|
import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
285
289
|
import "./shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
286
290
|
import "./shared-utils/Object3DHelper/utils/direction.js";
|
|
287
291
|
import "./shared-utils/Object3DHelper/Constants/color.js";
|
|
288
|
-
import "./shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
289
292
|
import "./shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
290
293
|
import "./shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
291
294
|
import "./shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
292
|
-
import "./shared-utils/Object3DHelper/Helper/
|
|
295
|
+
import "./shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
293
296
|
import "./shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
297
|
+
import "./shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
298
|
+
import "./shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
294
299
|
import "./shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
295
300
|
import "./shared-utils/Object3DHelper/Base/BaseController.js";
|
|
296
|
-
import "./shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
297
301
|
import "./shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
298
302
|
import "./shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
299
303
|
import "./Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
@@ -302,6 +306,9 @@ import "./shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
|
302
306
|
import "./shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
303
307
|
import "./shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
304
308
|
import "./shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
309
|
+
import "./shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
310
|
+
import "./shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
311
|
+
import "./shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
305
312
|
import "./shared-utils/math/Interval.js";
|
|
306
313
|
import "./shared-utils/math/Rectangle.js";
|
|
307
314
|
import "./shared-utils/three/Magnifier.js";
|
|
@@ -313,58 +320,58 @@ import "./shared-utils/three/Assets/index.js";
|
|
|
313
320
|
import "./shared-utils/three/PointDomHelper.js";
|
|
314
321
|
import "./shared-utils/three/FivePointSelector.js";
|
|
315
322
|
export {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
323
|
+
Ei as CSS3DRender,
|
|
324
|
+
gp as CSS3DRenderPlugin,
|
|
325
|
+
Hp as CameraMovementEffect,
|
|
326
|
+
wp as CameraMovementPlugin,
|
|
327
|
+
qi as ContentType,
|
|
328
|
+
fi as CruisePlugin,
|
|
329
|
+
Bi as CruisePluginController,
|
|
330
|
+
pi as DIRECTION,
|
|
331
|
+
Fi as DISPLAY_STRATEGY_TYPE,
|
|
332
|
+
Ji as DimensionType,
|
|
333
|
+
Rp as FLOOR_PLAN_ATTACHED_TO,
|
|
334
|
+
yp as FLOOR_TYPE_MAP,
|
|
335
|
+
Pi as GuideLinePlugin,
|
|
336
|
+
ci as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
337
|
+
hi as ItemLabelPlugin,
|
|
338
|
+
Yi as Magnifier,
|
|
339
|
+
Sp as MapviewFloorplanPlugin,
|
|
340
|
+
Np as ModelChassisCompassPlugin,
|
|
341
|
+
Vp as ModelEntryDoorGuidePlugin,
|
|
342
|
+
Cp as ModelFloorplanPlugin,
|
|
343
|
+
Gi as ModelItemLabelPlugin,
|
|
344
|
+
dp as ModelRoomLabelPlugin,
|
|
345
|
+
ti as ModelTVVideoPlugin,
|
|
346
|
+
fp as ModelViewPlugin,
|
|
347
|
+
Wi as Object3DHelperController,
|
|
348
|
+
Mi as Object3DHelperPlugin,
|
|
349
|
+
Xi as PLUGIN,
|
|
350
|
+
np as PaintBrush,
|
|
351
|
+
Pp as PaintBrushTypeEnum,
|
|
352
|
+
Kp as PanoCompassPlugin,
|
|
353
|
+
Mp as PanoCursorRaycasterPlugin,
|
|
354
|
+
ni as PanoDoorLabelPlugin,
|
|
355
|
+
bp as PanoFloorplanRadarPlugin,
|
|
356
|
+
Wp as PanoMeasurePlugin,
|
|
357
|
+
Ii as PanoMeasurePluginLine,
|
|
358
|
+
_i as PanoMeasurePluginModel,
|
|
359
|
+
Oi as PanoMeasurePluginPoint,
|
|
360
|
+
Di as PanoMeasurePluginPolyline,
|
|
361
|
+
kp as PanoRulerPlugin,
|
|
362
|
+
zp as PanoRulerProPlugin,
|
|
363
|
+
Zp as PanoSpatialTagPlugin,
|
|
364
|
+
gi as PanoTagPlugin,
|
|
365
|
+
Ui as PanoTagPluginController,
|
|
366
|
+
Ki as PointType,
|
|
367
|
+
Fp as ROOM_FETILE_TYPE_MAP,
|
|
368
|
+
vp as ROOM_TYPE_MAP,
|
|
369
|
+
Up as Rotation,
|
|
370
|
+
Ap as TopviewFloorplanPlugin,
|
|
371
|
+
di as Util,
|
|
372
|
+
Zi as VERSION,
|
|
373
|
+
ei as itemLabelPluginServerParams,
|
|
374
|
+
oi as modelItemLabelPluginServerParams,
|
|
375
|
+
Lp as modelRoomLabelPluginServerParams,
|
|
376
|
+
ji as pluginFlag
|
|
370
377
|
};
|
|
@@ -1,24 +1,39 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { Subscribe } from '../../Subscribe';
|
|
3
|
-
import type { HelperEventMap } from '../typings';
|
|
3
|
+
import type { HelperEventMap, HelperOffset } from '../typings';
|
|
4
4
|
import type { BaseHelper } from './BaseHelper';
|
|
5
5
|
import DomEvents from '../utils/threex/domevents';
|
|
6
6
|
export declare let originOpacity: {
|
|
7
7
|
opacity: number;
|
|
8
8
|
} | null;
|
|
9
9
|
export declare abstract class BaseController<T extends BaseHelper = BaseHelper, K extends THREE.Object3D = THREE.Object3D> {
|
|
10
|
-
hooks: Subscribe<HelperEventMap>;
|
|
11
|
-
helperObject3D: T;
|
|
12
10
|
originObject3D: K;
|
|
11
|
+
hooks: Subscribe<HelperEventMap>;
|
|
12
|
+
protected readonly disposers: (() => void)[];
|
|
13
|
+
protected helperObject3D: T;
|
|
13
14
|
protected camera: THREE.Camera;
|
|
14
15
|
protected model: THREE.Object3D;
|
|
15
|
-
protected scene: THREE.
|
|
16
|
+
protected scene: THREE.Object3D;
|
|
16
17
|
protected container: HTMLElement;
|
|
17
18
|
protected domEvents: DomEvents;
|
|
18
19
|
protected isDragging: boolean;
|
|
19
|
-
protected onRender: () => void;
|
|
20
20
|
protected enabled: boolean;
|
|
21
|
-
|
|
21
|
+
protected name: string;
|
|
22
|
+
protected boundingBox?: THREE.Box3;
|
|
23
|
+
private offset?;
|
|
24
|
+
private onRender;
|
|
25
|
+
constructor(params: {
|
|
26
|
+
camera: THREE.Camera;
|
|
27
|
+
model: THREE.Object3D;
|
|
28
|
+
originObject3D: K;
|
|
29
|
+
helperObject3D: T;
|
|
30
|
+
container: HTMLElement;
|
|
31
|
+
scene: THREE.Object3D;
|
|
32
|
+
onRender?: () => void;
|
|
33
|
+
sharedHooks?: Subscribe<HelperEventMap>;
|
|
34
|
+
}, config?: {
|
|
35
|
+
offset?: HelperOffset;
|
|
36
|
+
});
|
|
22
37
|
initialHelperPosition(): void;
|
|
23
38
|
initialHelperQuaternion(): void;
|
|
24
39
|
enable(): void;
|
|
@@ -26,23 +41,34 @@ export declare abstract class BaseController<T extends BaseHelper = BaseHelper,
|
|
|
26
41
|
show(): void;
|
|
27
42
|
hide(): void;
|
|
28
43
|
dispose(): void;
|
|
29
|
-
setOpacity(opacity: number): void;
|
|
30
|
-
restoreOpacity(): void;
|
|
31
|
-
setOriginOpacityProperty(): void;
|
|
32
|
-
updateHelperPosition(): void;
|
|
33
|
-
updateHelperQuaternion(): void;
|
|
34
44
|
applyHelperMatrix4(matrix4: THREE.Matrix4): void;
|
|
35
45
|
applyHelperQuaternion(quaternion: THREE.Quaternion, origin: THREE.Vector3): void;
|
|
36
|
-
applyHelperScaleMatrix4(matrix4: THREE.Matrix4,
|
|
37
|
-
origin?: THREE.Vector3;
|
|
38
|
-
helperOrigin?: THREE.Vector3;
|
|
39
|
-
}): void;
|
|
46
|
+
applyHelperScaleMatrix4(matrix4: THREE.Matrix4, origin?: THREE.Vector3): void;
|
|
40
47
|
onWantsTapGesture: (raycaster: THREE.Raycaster) => false | void;
|
|
41
48
|
onWantsGesture(type: 'press' | 'pan' | string, pointers: {
|
|
42
49
|
x: number;
|
|
43
50
|
y: number;
|
|
44
51
|
}[], final: boolean): false | void;
|
|
52
|
+
onIntersectionOnModelUpdate(intersection: {
|
|
53
|
+
point: THREE.Vector3;
|
|
54
|
+
}): void;
|
|
55
|
+
protected onApplyOriginObjectScale(params: {
|
|
56
|
+
matrix4: THREE.Matrix4;
|
|
57
|
+
origin?: THREE.Vector3;
|
|
58
|
+
}): void;
|
|
59
|
+
protected onApplyOriginObjectRotate(params: {
|
|
60
|
+
quaternion: THREE.Quaternion;
|
|
61
|
+
origin: THREE.Vector3;
|
|
62
|
+
}): void;
|
|
63
|
+
protected onApplyOriginObjectPosition(params: {
|
|
64
|
+
matrix4: THREE.Matrix4;
|
|
65
|
+
}): void;
|
|
66
|
+
protected onSetOriginObjectScale(scale: THREE.Vector3): void;
|
|
67
|
+
protected onSetOriginObjectRotate(quaternion: THREE.Quaternion, origin: THREE.Vector3): void;
|
|
68
|
+
protected onSetOriginObjectPosition(position: THREE.Vector3): void;
|
|
45
69
|
protected render(): void;
|
|
70
|
+
protected updateOffsetByScale(scale: THREE.Vector3): void;
|
|
46
71
|
protected hoverListener(object3D: THREE.Object3D | undefined | THREE.Group | (THREE.Object3D | undefined | THREE.Group)[], hoverColor?: THREE.Color | string | number, hoverOpacity?: number): () => void;
|
|
47
72
|
private getIntersectObject;
|
|
73
|
+
private calculateOffset;
|
|
48
74
|
}
|
|
@@ -1,43 +1,51 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (
|
|
4
|
-
import * as
|
|
5
|
-
import { Subscribe as
|
|
6
|
-
import { DomEvents as
|
|
7
|
-
import { notNil as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
constructor(e, t, o, n, a, r, c) {
|
|
12
|
-
s(this, "hooks", new y());
|
|
13
|
-
s(this, "helperObject3D");
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var j = (b, e, t) => e in b ? f(b, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[e] = t;
|
|
3
|
+
var s = (b, e, t) => (j(b, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import * as p from "three";
|
|
5
|
+
import { Subscribe as u } from "../../Subscribe.js";
|
|
6
|
+
import { DomEvents as y } from "../utils/threex/domevents/index.js";
|
|
7
|
+
import { notNil as m } from "../../isNil.js";
|
|
8
|
+
import { boundingBox as g } from "../utils/boundingBox.js";
|
|
9
|
+
class k {
|
|
10
|
+
constructor(e, t) {
|
|
14
11
|
s(this, "originObject3D");
|
|
12
|
+
s(this, "hooks");
|
|
13
|
+
s(this, "disposers", []);
|
|
14
|
+
s(this, "helperObject3D");
|
|
15
15
|
s(this, "camera");
|
|
16
16
|
s(this, "model");
|
|
17
17
|
s(this, "scene");
|
|
18
18
|
s(this, "container");
|
|
19
19
|
s(this, "domEvents");
|
|
20
20
|
s(this, "isDragging", !1);
|
|
21
|
-
s(this, "onRender");
|
|
22
21
|
s(this, "enabled", !1);
|
|
22
|
+
s(this, "name", "BaseController");
|
|
23
|
+
s(this, "boundingBox");
|
|
24
|
+
s(this, "offset");
|
|
25
|
+
s(this, "onRender");
|
|
23
26
|
s(this, "onWantsTapGesture", (e) => {
|
|
24
27
|
if (this.getIntersectObject(e))
|
|
25
28
|
return !1;
|
|
26
29
|
});
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
var l, d;
|
|
31
|
+
this.hooks = (l = e.sharedHooks) != null ? l : new u(), this.camera = e.camera, this.model = e.model, this.originObject3D = e.originObject3D, this.helperObject3D = e.helperObject3D, this.container = e.container, this.scene = e.scene, this.domEvents = new y(e.camera, e.container), this.onRender = (d = e.onRender) != null ? d : () => {
|
|
32
|
+
}, this.offset = t == null ? void 0 : t.offset, this.initialHelperPosition(), this.initialHelperQuaternion(), this.enable();
|
|
33
|
+
const h = (...c) => this.onSetOriginObjectScale(...c), o = (...c) => this.onSetOriginObjectRotate(...c), r = (...c) => this.onSetOriginObjectPosition(...c), i = (...c) => this.onApplyOriginObjectScale(...c), a = (...c) => this.onApplyOriginObjectRotate(...c), O = (...c) => this.onApplyOriginObjectPosition(...c);
|
|
34
|
+
this.hooks.on("setObjectScale", h), this.hooks.on("setObjectRotate", o), this.hooks.on("setObjectPosition", r), this.hooks.on("applyObjectPosition", O), this.hooks.on("applyObjectRotate", a), this.hooks.on("applyObjectScale", i), this.disposers.push(() => {
|
|
35
|
+
this.hooks.off("setObjectScale", h), this.hooks.off("setObjectRotate", o), this.hooks.off("setObjectPosition", r), this.hooks.off("applyObjectPosition", O), this.hooks.off("applyObjectRotate", a), this.hooks.off("applyObjectScale", i);
|
|
36
|
+
});
|
|
29
37
|
}
|
|
30
38
|
initialHelperPosition() {
|
|
31
|
-
this.helperObject3D.
|
|
39
|
+
this.helperObject3D.position.add(this.calculateOffset(this.offset)), this.helperObject3D.initialPosition();
|
|
32
40
|
}
|
|
33
41
|
initialHelperQuaternion() {
|
|
34
|
-
this.helperObject3D.
|
|
42
|
+
this.helperObject3D.initQuaternion();
|
|
35
43
|
}
|
|
36
44
|
enable() {
|
|
37
|
-
this.enabled || (this.enabled = !0, this.scene.add(this.helperObject3D), this.render());
|
|
45
|
+
this.enabled || (this.enabled = !0, this.scene.add(this.helperObject3D), this.helperObject3D.enable(), this.render());
|
|
38
46
|
}
|
|
39
47
|
disable() {
|
|
40
|
-
!this.enabled || (this.enabled = !1, this.
|
|
48
|
+
!this.enabled || (this.enabled = !1, this.helperObject3D.disable(), this.render());
|
|
41
49
|
}
|
|
42
50
|
show() {
|
|
43
51
|
this.helperObject3D.show(), this.render();
|
|
@@ -46,45 +54,8 @@ class P {
|
|
|
46
54
|
this.helperObject3D.hide(), this.render();
|
|
47
55
|
}
|
|
48
56
|
dispose() {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
setOpacity(e) {
|
|
52
|
-
this.setOriginOpacityProperty();
|
|
53
|
-
const t = this.originObject3D;
|
|
54
|
-
if (t instanceof l.Mesh && (t.material.opacity = e), t.isCSS3DObjectPlus) {
|
|
55
|
-
const o = t;
|
|
56
|
-
o.container.style.opacity = e.toString();
|
|
57
|
-
}
|
|
58
|
-
this.render();
|
|
59
|
-
}
|
|
60
|
-
restoreOpacity() {
|
|
61
|
-
if (h === null)
|
|
62
|
-
return;
|
|
63
|
-
const e = this.originObject3D;
|
|
64
|
-
if (e instanceof l.Mesh && (e.material.opacity = h.opacity), e.isCSS3DObjectPlus) {
|
|
65
|
-
const t = e;
|
|
66
|
-
t.container.style.opacity = h.opacity.toString();
|
|
67
|
-
}
|
|
68
|
-
this.render();
|
|
69
|
-
}
|
|
70
|
-
setOriginOpacityProperty() {
|
|
71
|
-
var e, t;
|
|
72
|
-
if (h === null) {
|
|
73
|
-
const o = this.originObject3D;
|
|
74
|
-
o instanceof l.Mesh && (h = {
|
|
75
|
-
opacity: o.material.opacity
|
|
76
|
-
}), o instanceof D && (h = {
|
|
77
|
-
opacity: (e = o.container.style.opacity) != null ? e : 1
|
|
78
|
-
}), o.isCSS3DObjectPlus && (h = {
|
|
79
|
-
opacity: Number((t = o.container.style.opacity) != null ? t : 1)
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
updateHelperPosition() {
|
|
84
|
-
this.helperObject3D.updatePosition();
|
|
85
|
-
}
|
|
86
|
-
updateHelperQuaternion() {
|
|
87
|
-
this.helperObject3D.updateQuaternion();
|
|
57
|
+
var e;
|
|
58
|
+
(e = this.disposers) == null || e.forEach((t) => t == null ? void 0 : t()), this.helperObject3D.dispose(), this.render();
|
|
88
59
|
}
|
|
89
60
|
applyHelperMatrix4(e) {
|
|
90
61
|
this.helperObject3D.applyMatrix4(e);
|
|
@@ -95,57 +66,108 @@ class P {
|
|
|
95
66
|
applyHelperScaleMatrix4(e, t) {
|
|
96
67
|
this.helperObject3D.applyHelperScaleMatrix4(e, t);
|
|
97
68
|
}
|
|
98
|
-
onWantsGesture(e, t,
|
|
69
|
+
onWantsGesture(e, t, h) {
|
|
99
70
|
if (this.isDragging)
|
|
100
71
|
return !1;
|
|
101
72
|
}
|
|
73
|
+
onIntersectionOnModelUpdate(e) {
|
|
74
|
+
}
|
|
75
|
+
onApplyOriginObjectScale(e) {
|
|
76
|
+
this.applyHelperScaleMatrix4(e.matrix4, e.origin);
|
|
77
|
+
}
|
|
78
|
+
onApplyOriginObjectRotate(e) {
|
|
79
|
+
this.applyHelperQuaternion(e.quaternion, e.origin);
|
|
80
|
+
}
|
|
81
|
+
onApplyOriginObjectPosition(e) {
|
|
82
|
+
this.applyHelperMatrix4(e.matrix4);
|
|
83
|
+
}
|
|
84
|
+
onSetOriginObjectScale(e) {
|
|
85
|
+
this.helperObject3D.scale.copy(e), this.updateOffsetByScale(e);
|
|
86
|
+
}
|
|
87
|
+
onSetOriginObjectRotate(e, t) {
|
|
88
|
+
this.helperObject3D.quaternion.copy(e);
|
|
89
|
+
}
|
|
90
|
+
onSetOriginObjectPosition(e) {
|
|
91
|
+
this.helperObject3D.position.copy(e.clone().add(this.calculateOffset(this.offset)));
|
|
92
|
+
}
|
|
102
93
|
render() {
|
|
103
94
|
this.onRender();
|
|
104
95
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
96
|
+
updateOffsetByScale(e) {
|
|
97
|
+
if (this.boundingBox && this.offset) {
|
|
98
|
+
const t = this.originObject3D.position, h = new p.Vector3().subVectors(this.boundingBox.max, t).multiply(e).add(t), o = new p.Vector3().subVectors(this.boundingBox.min, t).multiply(e).add(t), r = this.calculateOffset(this.offset, { min: o, max: h });
|
|
99
|
+
this.helperObject3D.position.copy(r), this.helperObject3D.initialPosition();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
hoverListener(e, t = 16777215, h = 1) {
|
|
103
|
+
const o = (Array.isArray(e) ? e : [e]).filter(m), r = [];
|
|
104
|
+
for (const i of o)
|
|
105
|
+
if (i instanceof p.Mesh || i instanceof p.Group) {
|
|
106
|
+
const a = i instanceof p.Group ? i.children.filter((n) => n instanceof p.Mesh) : [i];
|
|
107
|
+
a.forEach((n) => {
|
|
108
|
+
n.__originalColor__ = n.material.color.clone(), n.__originalOpacity__ = n.material.opacity;
|
|
112
109
|
});
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
const O = () => {
|
|
111
|
+
a.forEach((n) => {
|
|
112
|
+
n.material.color.set(t), n.material.opacity = h;
|
|
116
113
|
}), this.render();
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
}, l = () => {
|
|
115
|
+
a.forEach((n) => {
|
|
116
|
+
n.material.color.copy(n.__originalColor__), n.material.opacity = n.__originalOpacity__;
|
|
120
117
|
}), this.render();
|
|
121
|
-
},
|
|
122
|
-
this.isDragging ||
|
|
123
|
-
},
|
|
124
|
-
this.isDragging ||
|
|
118
|
+
}, d = () => {
|
|
119
|
+
this.isDragging || O();
|
|
120
|
+
}, c = () => {
|
|
121
|
+
this.isDragging || l();
|
|
125
122
|
};
|
|
126
|
-
for (const
|
|
127
|
-
this.domEvents.addEventListener(
|
|
128
|
-
this.domEvents.removeEventListener(
|
|
123
|
+
for (const n of a)
|
|
124
|
+
this.domEvents.addEventListener(n, "mouseover", d), this.domEvents.addEventListener(n, "mouseout", c), this.hooks.on("moveStart", O), this.hooks.on("moveEnd", l), this.hooks.on("rotateEnd", l), r.push(() => {
|
|
125
|
+
this.domEvents.removeEventListener(n, "mouseover", d), this.domEvents.removeEventListener(n, "mouseout", c), this.hooks.off("moveStart", O), this.hooks.off("moveEnd", l), this.hooks.off("rotateEnd", l);
|
|
129
126
|
});
|
|
130
127
|
}
|
|
131
|
-
return () =>
|
|
128
|
+
return () => r.forEach((i) => i == null ? void 0 : i());
|
|
132
129
|
}
|
|
133
130
|
getIntersectObject(e) {
|
|
134
|
-
const t = this.camera.position,
|
|
135
|
-
if (!
|
|
131
|
+
const t = this.camera.position, h = this.helperObject3D;
|
|
132
|
+
if (!h)
|
|
136
133
|
return;
|
|
137
|
-
let
|
|
138
|
-
const
|
|
139
|
-
if (!!
|
|
134
|
+
let o;
|
|
135
|
+
const r = e.intersectObject(h, !0)[0];
|
|
136
|
+
if (!!r && (o = r, o.object = h, !!o)) {
|
|
140
137
|
if (this.model.intersectRaycaster) {
|
|
141
|
-
const
|
|
142
|
-
if (
|
|
138
|
+
const i = this.model.intersectRaycaster(e)[0];
|
|
139
|
+
if (i && i.point.distanceTo(t) < o.point.distanceTo(t))
|
|
143
140
|
return;
|
|
144
141
|
}
|
|
145
|
-
return
|
|
142
|
+
return o.object;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
calculateOffset(e, t) {
|
|
146
|
+
const h = this.originObject3D, o = new p.Vector3(0, 0, 0);
|
|
147
|
+
if (!e)
|
|
148
|
+
return o;
|
|
149
|
+
const r = () => t || (this.boundingBox ? this.boundingBox : (this.boundingBox = g(h), this.boundingBox));
|
|
150
|
+
if (typeof e.x == "number")
|
|
151
|
+
o.setX(e.x);
|
|
152
|
+
else if (typeof e.x == "object") {
|
|
153
|
+
const i = r();
|
|
154
|
+
o.setX((i.max.x - i.min.x) * e.x.percents);
|
|
155
|
+
}
|
|
156
|
+
if (typeof e.y == "number")
|
|
157
|
+
o.setY(e.y);
|
|
158
|
+
else if (typeof e.y == "object") {
|
|
159
|
+
const i = r();
|
|
160
|
+
o.setY((i.max.y - i.min.y) * e.y.percents);
|
|
161
|
+
}
|
|
162
|
+
if (typeof e.z == "number")
|
|
163
|
+
o.setZ(e.z);
|
|
164
|
+
else if (typeof e.z == "object") {
|
|
165
|
+
const i = r();
|
|
166
|
+
o.setZ((i.max.z - i.min.z) * e.z.percents);
|
|
146
167
|
}
|
|
168
|
+
return o;
|
|
147
169
|
}
|
|
148
170
|
}
|
|
149
171
|
export {
|
|
150
|
-
|
|
172
|
+
k as BaseController
|
|
151
173
|
};
|