@realsee/dnalogel 2.1.2-alpha.10 → 2.1.2-alpha.11
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/CSS3DRender.d.ts +167 -0
- package/dist/CSS3DRenderPlugin/Controller.d.ts +81 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +5 -0
- package/dist/CSS3DRenderPlugin/typing.d.ts +26 -0
- package/dist/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +34 -0
- package/dist/CSS3DRenderPlugin/utils/centerPoint.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +13 -0
- package/dist/CSS3DRenderPlugin/utils/random.d.ts +1 -0
- package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +5 -0
- package/dist/CameraMovementPlugin/typing.d.ts +68 -0
- package/dist/CruisePlugin/Controller.d.ts +172 -0
- package/dist/CruisePlugin/index.d.ts +6 -0
- package/dist/CruisePlugin/typing.d.ts +134 -0
- package/dist/CruisePlugin/utils/coordinatesAngle.d.ts +12 -0
- package/dist/CruisePlugin/utils/coordinatesToVector.d.ts +7 -0
- package/dist/CruisePlugin/utils/formatRad.d.ts +7 -0
- package/dist/CruisePlugin/utils/linerValue.d.ts +1 -0
- package/dist/CruisePlugin/utils/safeCall.d.ts +1 -0
- package/dist/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/CruisePlugin/utils/vectorToCoordinates.d.ts +7 -0
- package/dist/GuideLinePlugin/Controller.d.ts +51 -0
- package/dist/GuideLinePlugin/index.d.ts +5 -0
- package/dist/GuideLinePlugin/typing.d.ts +34 -0
- package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +4 -0
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/dist/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
- package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ItemLabelPlugin/index.d.ts +9 -0
- package/dist/ItemLabelPlugin/typings.d.ts +65 -0
- package/dist/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/dist/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/dist/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
- package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +4 -0
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/dist/ModelTVVideoPlugin/index.d.ts +5 -0
- package/dist/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/dist/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/dist/ModelViewPlugin/Plugin.d.ts +28 -0
- package/dist/ModelViewPlugin/index.d.ts +4 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +65 -0
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +19 -0
- package/dist/Object3DHelperPlugin/index.d.ts +6 -0
- package/dist/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/dist/PanoCompassPlugin/Controller.d.ts +84 -0
- package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.d.ts +7 -0
- package/dist/PanoCompassPlugin/typings.d.ts +57 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoDoorLabelPlugin/Controller.d.ts +37 -0
- package/dist/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoDoorLabelPlugin/typings.d.ts +38 -0
- package/dist/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +43 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +48 -0
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +42 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +73 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +35 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
- package/dist/PanoMeasurePlugin/index.d.ts +10 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +37 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
- package/dist/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +7 -0
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/dist/PanoRulerPlugin/Plugin.d.ts +34 -0
- package/dist/PanoRulerPlugin/index.d.ts +5 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/dist/PanoRulerPlugin/typings.d.ts +21 -0
- package/dist/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/dist/PanoRulerProPlugin/index.d.ts +8 -0
- package/dist/PanoRulerProPlugin/typings.d.ts +46 -0
- package/dist/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -0
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +144 -0
- package/dist/PanoTagPlugin/index.d.ts +8 -0
- package/dist/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +103 -0
- package/dist/PanoTagPlugin/typings/index.d.ts +2 -0
- package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/doUtil.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/index.d.ts +12 -0
- package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/search.d.ts +11 -0
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/dist/base/BasePlugin.d.ts +106 -0
- package/dist/base/BasePluginWithData.d.ts +34 -0
- package/dist/components/PaintBrush/Controller.d.ts +43 -0
- package/dist/components/PaintBrush/Subscribe.d.ts +76 -0
- package/dist/components/PaintBrush/index.d.ts +27 -0
- package/dist/components/PaintBrush/style.d.ts +2 -0
- package/dist/components/PaintBrush/tween.d.ts +7 -0
- package/dist/components/PaintBrush/typings.d.ts +58 -0
- package/dist/components/PaintBrush/utils.d.ts +26 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/env.d.ts +1 -0
- package/dist/floorplan/Assets/camera.d.ts +1 -0
- package/dist/floorplan/Assets/compass.d.ts +1 -0
- package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +97 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +99 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +69 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +11 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/dist/floorplan/index.d.ts +7 -0
- package/dist/floorplan/typings/floorplanData.d.ts +137 -0
- package/dist/floorplan/typings/floorplanServerData.d.ts +144 -0
- package/dist/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/typings/utility.d.ts +2 -0
- package/dist/floorplan/utils/constant.d.ts +22 -0
- package/dist/floorplan/utils/correctFiveState.d.ts +15 -0
- package/dist/floorplan/utils/formatData.d.ts +5 -0
- package/dist/floorplan/utils/formatPosition.d.ts +36 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.es.js +16650 -0
- package/dist/index.js +556 -0
- package/dist/index.umd.js +556 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +48 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +91 -0
- package/dist/shared-utils/Object3DHelper/Constants/color.d.ts +12 -0
- package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +6 -0
- package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +13 -0
- package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +37 -0
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +22 -0
- package/dist/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +6 -0
- package/dist/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +13 -0
- package/dist/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +17 -0
- package/dist/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +40 -0
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +55 -0
- package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/index.d.ts +71 -0
- package/dist/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +45 -0
- package/dist/shared-utils/Object3DHelper/typings/Scissor.d.ts +17 -0
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +14 -0
- package/dist/shared-utils/Object3DHelper/utils/direction.d.ts +14 -0
- package/dist/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +3 -0
- package/dist/shared-utils/Object3DHelper/utils/index.d.ts +8 -0
- package/dist/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
- package/dist/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +2 -0
- package/dist/shared-utils/Subscribe.d.ts +60 -0
- package/dist/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/dist/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/dist/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/dist/shared-utils/animationFrame/index.d.ts +16 -0
- package/dist/shared-utils/animationFrame/tween.d.ts +75 -0
- package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/dist/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/dist/shared-utils/createLine/index.d.ts +3 -0
- package/dist/shared-utils/debounce.d.ts +6 -0
- package/dist/shared-utils/equal.d.ts +11 -0
- package/dist/shared-utils/filter.d.ts +27 -0
- package/dist/shared-utils/five/changeMode.d.ts +5 -0
- package/dist/shared-utils/getPxmm.d.ts +19 -0
- package/dist/shared-utils/index.d.ts +4 -0
- package/dist/shared-utils/isNil.d.ts +10 -0
- package/dist/shared-utils/isTruelyObject.d.ts +18 -0
- package/dist/shared-utils/math/Interval.d.ts +13 -0
- package/dist/shared-utils/math/Rectangle.d.ts +27 -0
- package/dist/shared-utils/math/index.d.ts +2 -0
- package/dist/shared-utils/math/planimetry.d.ts +116 -0
- package/dist/shared-utils/math/rad2Deg.d.ts +1 -0
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/nextFrame.d.ts +1 -0
- package/dist/shared-utils/noop.d.ts +5 -0
- package/dist/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/dist/shared-utils/removeArrayItem.d.ts +7 -0
- package/dist/shared-utils/tap.d.ts +8 -0
- package/dist/shared-utils/three/Assets/index.d.ts +3 -0
- package/dist/shared-utils/three/FivePointSelector.d.ts +36 -0
- package/dist/shared-utils/three/Magnifier.d.ts +53 -0
- package/dist/shared-utils/three/PointDomHelper.d.ts +18 -0
- package/dist/shared-utils/three/PointHelper.d.ts +21 -0
- package/dist/shared-utils/three/getCoords.d.ts +9 -0
- package/dist/shared-utils/three/getIntersect.d.ts +6 -0
- package/dist/shared-utils/three/getRaycaster.d.ts +6 -0
- package/dist/shared-utils/three/index.d.ts +7 -0
- package/dist/shared-utils/three/loadTexture.d.ts +2 -0
- package/dist/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/dist/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/dist/shared-utils/throttle.d.ts +7 -0
- package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
- package/dist/shared-utils/to.d.ts +8 -0
- package/dist/shared-utils/uuid.d.ts +5 -0
- package/dist/typings/math.type.d.ts +44 -0
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- 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 +12 -12
- 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/LinkType.html +7 -7
- 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 +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- 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 +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- 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/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.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 +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- 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 +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- 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 +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -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/PointJson.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 +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- 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 +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/package.json +5 -7
- package/dist/CSS3DRenderPlugin/index..js +0 -88
- package/dist/CSS3DRenderPlugin/index.cjs.js +0 -1
- package/dist/CameraMovementPlugin/index..js +0 -11
- package/dist/CameraMovementPlugin/index.cjs.js +0 -1
- package/dist/CruisePlugin/index..js +0 -527
- package/dist/CruisePlugin/index.cjs.js +0 -1
- package/dist/GuideLinePlugin/index..js +0 -214
- package/dist/GuideLinePlugin/index.cjs.js +0 -1
- package/dist/ItemLabelPlugin/index..js +0 -508
- package/dist/ItemLabelPlugin/index.cjs.js +0 -10
- package/dist/ModelChassisCompassPlugin/index..js +0 -9
- package/dist/ModelChassisCompassPlugin/index.cjs.js +0 -1
- package/dist/ModelEntryDoorGuidePlugin/index..js +0 -9
- package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +0 -1
- package/dist/ModelItemLabelPlugin/index..js +0 -334
- package/dist/ModelItemLabelPlugin/index.cjs.js +0 -10
- package/dist/ModelRoomLabelPlugin/index..js +0 -274
- package/dist/ModelRoomLabelPlugin/index.cjs.js +0 -1
- package/dist/ModelTVVideoPlugin/index..js +0 -12
- package/dist/ModelTVVideoPlugin/index.cjs.js +0 -1
- package/dist/ModelViewPlugin/index..js +0 -8
- package/dist/ModelViewPlugin/index.cjs.js +0 -1
- package/dist/Object3DHelperPlugin/index..js +0 -1414
- package/dist/Object3DHelperPlugin/index.cjs.js +0 -1
- package/dist/PanoCompassPlugin/index..js +0 -258
- package/dist/PanoCompassPlugin/index.cjs.js +0 -1
- package/dist/PanoCursorRaycasterPlugin/index..js +0 -63
- package/dist/PanoCursorRaycasterPlugin/index.cjs.js +0 -1
- package/dist/PanoDoorLabelPlugin/index..js +0 -340
- package/dist/PanoDoorLabelPlugin/index.cjs.js +0 -1
- package/dist/PanoMeasurePlugin/index..js +0 -15
- package/dist/PanoMeasurePlugin/index.cjs.js +0 -1
- package/dist/PanoRulerPlugin/index..js +0 -9
- package/dist/PanoRulerPlugin/index.cjs.js +0 -1
- package/dist/PanoRulerProPlugin/index..js +0 -395
- package/dist/PanoRulerProPlugin/index.cjs.js +0 -1
- package/dist/PanoSpatialTagPlugin/index..js +0 -15
- package/dist/PanoSpatialTagPlugin/index.cjs.js +0 -1
- package/dist/PanoTagPlugin/index..js +0 -4522
- package/dist/PanoTagPlugin/index.cjs.js +0 -17
- package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +0 -1
- package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +0 -1
- package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +0 -1
- package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +0 -94
- package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +0 -16
- package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.9971108a.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +0 -1
- package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +0 -1
- package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +0 -1
- package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +0 -1
- package/dist/chunks/cjs/debounce.93dfb637.cjs.js +0 -1
- package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +0 -1
- package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +0 -1
- package/dist/chunks/cjs/formatData.81e95011.cjs.js +0 -10
- package/dist/chunks/cjs/index.30b7baeb.cjs.js +0 -101
- package/dist/chunks/cjs/index.686e84d1.cjs.js +0 -290
- package/dist/chunks/cjs/index.7d2010ce.cjs.js +0 -1
- package/dist/chunks/cjs/isNil.b3a58990.cjs.js +0 -1
- package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +0 -1
- package/dist/chunks/cjs/throttle.86c209eb.cjs.js +0 -1
- package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +0 -1
- package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +0 -1
- package/dist/chunks/es/BasePlugin.813e25f7.es.js +0 -18
- package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +0 -6
- package/dist/chunks/es/CSS3DRender.5652510e.es.js +0 -393
- package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +0 -120
- package/dist/chunks/es/Plugin.26c2df05.es.js +0 -106
- package/dist/chunks/es/Plugin.435485ed.es.js +0 -584
- package/dist/chunks/es/Plugin.a98418f0.es.js +0 -82
- package/dist/chunks/es/Plugin.ae4ee6f8.es.js +0 -82
- package/dist/chunks/es/Plugin.dd11e0ad.es.js +0 -180
- package/dist/chunks/es/Plugin.f4cf895f.es.js +0 -355
- package/dist/chunks/es/Subscribe.c73e0f91.es.js +0 -50
- package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +0 -1551
- package/dist/chunks/es/correctFiveState.e7feab9f.es.js +0 -66
- package/dist/chunks/es/debounce.ef83f417.es.js +0 -11
- package/dist/chunks/es/equal.7db4a6f7.es.js +0 -56
- package/dist/chunks/es/filter.97ec06c4.es.js +0 -12
- package/dist/chunks/es/formatData.a2b39ef9.es.js +0 -483
- package/dist/chunks/es/index.a273f06e.es.js +0 -532
- package/dist/chunks/es/index.b8fdb59b.es.js +0 -50
- package/dist/chunks/es/index.f74f4851.es.js +0 -1787
- package/dist/chunks/es/isNil.212842d9.es.js +0 -10
- package/dist/chunks/es/planimetry.b0b4a28d.es.js +0 -43
- package/dist/chunks/es/throttle.db66bac3.es.js +0 -11
- package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +0 -24
- package/dist/chunks/es/uuid.676cb2c8.es.js +0 -9
- package/dist/components/PaintBrush/index..js +0 -6
- package/dist/components/PaintBrush/index.cjs.js +0 -1
- package/dist/components/index..js +0 -7
- package/dist/components/index.cjs.js +0 -1
- package/dist/floorplan/MapviewFloorplanPlugin/index..js +0 -324
- package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +0 -1
- package/dist/floorplan/ModelFloorplanPlugin/index..js +0 -320
- package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +0 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +0 -613
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +0 -1
- package/dist/floorplan/TopviewFloorplanPlugin/index..js +0 -277
- package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +0 -1
- package/dist/index..js +0 -530
- package/dist/index.cjs.js +0 -16
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { Subscribe } from '../../Subscribe';
|
|
3
|
+
import type { HelperEventMap } from '../typings';
|
|
4
|
+
import type { BaseHelper } from './BaseHelper';
|
|
5
|
+
import DomEvents from '../utils/threex/domevents';
|
|
6
|
+
export declare let originOpacity: {
|
|
7
|
+
opacity: number;
|
|
8
|
+
} | null;
|
|
9
|
+
export declare abstract class BaseController<T extends BaseHelper = BaseHelper, K extends THREE.Object3D = THREE.Object3D> {
|
|
10
|
+
hooks: Subscribe<HelperEventMap>;
|
|
11
|
+
helperObject3D: T;
|
|
12
|
+
originObject3D: K;
|
|
13
|
+
protected camera: THREE.Camera;
|
|
14
|
+
protected model: THREE.Object3D;
|
|
15
|
+
protected scene: THREE.Scene;
|
|
16
|
+
protected container: HTMLElement;
|
|
17
|
+
protected domEvents: DomEvents;
|
|
18
|
+
protected isDragging: boolean;
|
|
19
|
+
protected onRender: () => void;
|
|
20
|
+
protected enabled: boolean;
|
|
21
|
+
constructor(camera: THREE.Camera, model: THREE.Object3D, originObject3D: K, helperObject3D: T, container: HTMLElement, scene: THREE.Scene, onRender?: () => void);
|
|
22
|
+
initialHelperPosition(): void;
|
|
23
|
+
initialHelperQuaternion(): void;
|
|
24
|
+
enable(): void;
|
|
25
|
+
disable(): void;
|
|
26
|
+
show(): void;
|
|
27
|
+
hide(): void;
|
|
28
|
+
dispose(): void;
|
|
29
|
+
setOpacity(opacity: number): void;
|
|
30
|
+
restoreOpacity(): void;
|
|
31
|
+
setOriginOpacityProperty(): void;
|
|
32
|
+
updateHelperPosition(): void;
|
|
33
|
+
updateHelperQuaternion(): void;
|
|
34
|
+
applyHelperMatrix4(matrix4: THREE.Matrix4): void;
|
|
35
|
+
applyHelperQuaternion(quaternion: THREE.Quaternion, origin: THREE.Vector3): void;
|
|
36
|
+
applyHelperScaleMatrix4(matrix4: THREE.Matrix4, params?: {
|
|
37
|
+
origin?: THREE.Vector3;
|
|
38
|
+
helperOrigin?: THREE.Vector3;
|
|
39
|
+
}): void;
|
|
40
|
+
onWantsTapGesture: (raycaster: THREE.Raycaster) => false | void;
|
|
41
|
+
onWantsGesture(type: 'press' | 'pan' | string, pointers: {
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
}[], final: boolean): false | void;
|
|
45
|
+
protected render(): void;
|
|
46
|
+
protected hoverListener(object3D: THREE.Object3D | undefined | THREE.Group | (THREE.Object3D | undefined | THREE.Group)[], hoverColor?: THREE.Color | string | number, hoverOpacity?: number): () => void;
|
|
47
|
+
private getIntersectObject;
|
|
48
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { Create3DElementReturnType } from '../../../CSS3DRenderPlugin';
|
|
2
|
+
import type * as THREE from 'three';
|
|
3
|
+
import { Mesh, Object3D, Vector3 } from 'three';
|
|
4
|
+
import type { Direction, Direction4 } from '../typings';
|
|
5
|
+
import type { tipsDom } from '../Helper/HTML/tipsDom';
|
|
6
|
+
export declare abstract class BaseHelper<OriginObject3D extends Object3D = Object3D> extends Object3D {
|
|
7
|
+
protected originObject3D: OriginObject3D;
|
|
8
|
+
protected onRender: () => any;
|
|
9
|
+
get helperObject(): Object3D;
|
|
10
|
+
constructor(originObject3D: OriginObject3D, config?: {
|
|
11
|
+
onRender?: () => any;
|
|
12
|
+
});
|
|
13
|
+
render(): void;
|
|
14
|
+
show(): void;
|
|
15
|
+
hide(): void;
|
|
16
|
+
updatePosition(): void;
|
|
17
|
+
updateQuaternion(): void;
|
|
18
|
+
applyHelperScaleMatrix4(matrix: THREE.Matrix4, params?: {
|
|
19
|
+
origin?: THREE.Vector3;
|
|
20
|
+
helperOrigin?: THREE.Vector3;
|
|
21
|
+
}): void;
|
|
22
|
+
applyHelperQuaternion(quaternion: THREE.Quaternion, origin?: THREE.Vector3): void;
|
|
23
|
+
abstract showDraggingHelper(directions?: Direction[]): void;
|
|
24
|
+
abstract dispose(): void;
|
|
25
|
+
}
|
|
26
|
+
export declare abstract class MoveHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
|
|
27
|
+
abstract xArrow?: Object3D & {
|
|
28
|
+
arrow: Object3D;
|
|
29
|
+
line?: Object3D;
|
|
30
|
+
direction: Direction;
|
|
31
|
+
};
|
|
32
|
+
abstract yArrow?: Object3D & {
|
|
33
|
+
arrow: Object3D;
|
|
34
|
+
line?: Object3D;
|
|
35
|
+
direction: Direction;
|
|
36
|
+
};
|
|
37
|
+
abstract zArrow?: Object3D & {
|
|
38
|
+
arrow: Object3D;
|
|
39
|
+
line?: Object3D;
|
|
40
|
+
direction: Direction;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export declare abstract class RotateHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
|
|
44
|
+
abstract xyCircle: Mesh & {
|
|
45
|
+
direction: Direction;
|
|
46
|
+
};
|
|
47
|
+
abstract xzCircle: Mesh & {
|
|
48
|
+
direction: Direction;
|
|
49
|
+
};
|
|
50
|
+
abstract yzCircle: Mesh & {
|
|
51
|
+
direction: Direction;
|
|
52
|
+
};
|
|
53
|
+
abstract xRingHelper: Object3D;
|
|
54
|
+
abstract yRingHelper: Object3D;
|
|
55
|
+
abstract zRingHelper: Object3D;
|
|
56
|
+
abstract xAngleHelper: Object3D & {
|
|
57
|
+
baseAxes: Vector3;
|
|
58
|
+
direction: Direction;
|
|
59
|
+
};
|
|
60
|
+
abstract yAngleHelper: Object3D & {
|
|
61
|
+
baseAxes: Vector3;
|
|
62
|
+
direction: Direction;
|
|
63
|
+
};
|
|
64
|
+
abstract zAngleHelper: Object3D & {
|
|
65
|
+
baseAxes: Vector3;
|
|
66
|
+
direction: Direction;
|
|
67
|
+
};
|
|
68
|
+
abstract angleTips?: ReturnType<typeof tipsDom>;
|
|
69
|
+
abstract showDraggingHelper(directions: Direction[]): void;
|
|
70
|
+
abstract updateAngleHelperQuaternion(): void;
|
|
71
|
+
}
|
|
72
|
+
export declare abstract class ScaleHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
|
|
73
|
+
}
|
|
74
|
+
declare type NonVoid<T> = T extends void ? never : T;
|
|
75
|
+
export declare abstract class RectangleScaleHelperAbstract<OriginObject3D extends Object3D, PointType extends Object3D | HTMLElement> extends ScaleHelperAbstract<OriginObject3D> {
|
|
76
|
+
abstract points: PointType extends Object3D ? {
|
|
77
|
+
point: PointType;
|
|
78
|
+
direction: Direction4;
|
|
79
|
+
}[] : {
|
|
80
|
+
point: PointType;
|
|
81
|
+
direction: Direction4;
|
|
82
|
+
position: Vector3;
|
|
83
|
+
}[];
|
|
84
|
+
abstract cornerPositions: Vector3[];
|
|
85
|
+
abstract css3DInstance?: NonVoid<Create3DElementReturnType>;
|
|
86
|
+
abstract plane?: THREE.Mesh;
|
|
87
|
+
abstract updatePoints(): void;
|
|
88
|
+
abstract enable(): void;
|
|
89
|
+
abstract disable(): void;
|
|
90
|
+
}
|
|
91
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
declare const AXES_COLOR: {
|
|
3
|
+
X: number;
|
|
4
|
+
Y: number;
|
|
5
|
+
Z: number;
|
|
6
|
+
};
|
|
7
|
+
declare class AXES_THREE_COLOR {
|
|
8
|
+
static get X(): THREE.Color;
|
|
9
|
+
static get Y(): THREE.Color;
|
|
10
|
+
static get Z(): THREE.Color;
|
|
11
|
+
}
|
|
12
|
+
export { AXES_COLOR, AXES_THREE_COLOR };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
2
|
+
import { RectangleScaleController } from './RectangleScaleController';
|
|
3
|
+
export declare class CSS3DScaleController extends RectangleScaleController<CSS3DObject, HTMLElement> {
|
|
4
|
+
constructor(...params: ConstructorParameters<typeof RectangleScaleController<CSS3DObject, HTMLElement>>);
|
|
5
|
+
private addHTMLEventListener;
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseController } from '../Base/BaseController';
|
|
2
|
+
import type { MoveHelperAbstract } from '../Helper';
|
|
3
|
+
export declare class MoveController<T extends MoveHelperAbstract = MoveHelperAbstract> extends BaseController<T> {
|
|
4
|
+
private startInfo?;
|
|
5
|
+
constructor(...params: ConstructorParameters<typeof BaseController<T>>);
|
|
6
|
+
/**
|
|
7
|
+
* @description: 拖动开始,找出拖的Direction
|
|
8
|
+
*/
|
|
9
|
+
private dragStart;
|
|
10
|
+
private dragging;
|
|
11
|
+
private move;
|
|
12
|
+
private dragEnd;
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseController } from '../Base/BaseController';
|
|
2
|
+
import type { RectangleScaleHelperAbstract } from '../Helper';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
import type { Direction4 } from '../typings';
|
|
5
|
+
import { Vector3 } from 'three';
|
|
6
|
+
interface StartInfo {
|
|
7
|
+
startPoint: {
|
|
8
|
+
position: Vector3;
|
|
9
|
+
direction: Direction4;
|
|
10
|
+
};
|
|
11
|
+
dragPointInCenterBottom?: boolean | null;
|
|
12
|
+
dragPointInCenterLeft?: boolean | null;
|
|
13
|
+
plane: THREE.Plane;
|
|
14
|
+
}
|
|
15
|
+
export declare abstract class RectangleScaleController<OriginObject3D extends THREE.Object3D, PointType extends THREE.Object3D | HTMLElement> extends BaseController<RectangleScaleHelperAbstract<OriginObject3D, PointType>> {
|
|
16
|
+
protected startInfo?: StartInfo;
|
|
17
|
+
constructor(...params: ConstructorParameters<typeof BaseController<RectangleScaleHelperAbstract<OriginObject3D, PointType>>>);
|
|
18
|
+
enable(): void;
|
|
19
|
+
disable(): void;
|
|
20
|
+
show(): void;
|
|
21
|
+
hide(): void;
|
|
22
|
+
protected getDragPlane(): THREE.Plane;
|
|
23
|
+
protected dragStart(mousePoint: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
}, point: {
|
|
27
|
+
position: THREE.Vector3;
|
|
28
|
+
direction: Direction4;
|
|
29
|
+
}): void;
|
|
30
|
+
protected dragging(point: {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
}): false | void;
|
|
34
|
+
protected scale(raycaster: THREE.Raycaster): void;
|
|
35
|
+
protected dragEnd(): void;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseController } from '../Base/BaseController';
|
|
2
|
+
import type { RotateHelperAbstract } from '../Helper';
|
|
3
|
+
export declare class RotateController<T extends RotateHelperAbstract = RotateHelperAbstract> extends BaseController<T> {
|
|
4
|
+
private startInfo?;
|
|
5
|
+
private lastRotation?;
|
|
6
|
+
private rotations;
|
|
7
|
+
private helperObject3DQuaternion;
|
|
8
|
+
constructor(...params: ConstructorParameters<typeof BaseController<T>>);
|
|
9
|
+
initialHelperQuaternion(): void;
|
|
10
|
+
/**
|
|
11
|
+
* @description: 拖动开始,找出拖的Direction
|
|
12
|
+
*/
|
|
13
|
+
private dragStart;
|
|
14
|
+
private dragging;
|
|
15
|
+
private rotate;
|
|
16
|
+
private dragEnd;
|
|
17
|
+
private getAngleHelper;
|
|
18
|
+
private setAngleHelperStart;
|
|
19
|
+
private setAngleHelperLength;
|
|
20
|
+
private setTipsAngle;
|
|
21
|
+
private setTipsPosition;
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Direction4 } from '../../typings';
|
|
2
|
+
interface Square {
|
|
3
|
+
element: HTMLElement;
|
|
4
|
+
direction: Direction4;
|
|
5
|
+
}
|
|
6
|
+
export declare function rectangleScaleDom(): {
|
|
7
|
+
container: HTMLElement;
|
|
8
|
+
squares: [Square, Square, Square, Square, Square, Square, Square, Square];
|
|
9
|
+
};
|
|
10
|
+
export declare function backgroundDom(): HTMLElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Object3D } from 'three';
|
|
2
|
+
import type { Direction } from '../typings';
|
|
3
|
+
import { MoveHelperAbstract } from '.';
|
|
4
|
+
import { ArrowGroup } from './Objects/ArrowGroup';
|
|
5
|
+
export declare class MoveHelper extends MoveHelperAbstract {
|
|
6
|
+
xArrow: ArrowGroup;
|
|
7
|
+
yArrow: ArrowGroup;
|
|
8
|
+
zArrow: ArrowGroup;
|
|
9
|
+
constructor(originObject3D: Object3D);
|
|
10
|
+
show(): void;
|
|
11
|
+
showDraggingHelper(directions: Direction[]): void;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import type { Direction } from '../../typings';
|
|
3
|
+
import { DirectionGroup, DirectionMesh } from '../../utils';
|
|
4
|
+
interface InstanceParameter {
|
|
5
|
+
direction: Direction;
|
|
6
|
+
color?: THREE.Color | string | number;
|
|
7
|
+
}
|
|
8
|
+
export declare class ArrowGroup extends DirectionGroup {
|
|
9
|
+
line: DirectionMesh<THREE.Geometry, THREE.MeshBasicMaterial>;
|
|
10
|
+
arrow: DirectionMesh<THREE.ConeGeometry, THREE.MeshBasicMaterial>;
|
|
11
|
+
private lineHeight;
|
|
12
|
+
private arrowHeight;
|
|
13
|
+
constructor(param: InstanceParameter);
|
|
14
|
+
private formatArrow;
|
|
15
|
+
private formatLine;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export declare class OutlineHelper extends THREE.Group {
|
|
3
|
+
box: THREE.Mesh<THREE.BufferGeometry, THREE.MeshBasicMaterial>;
|
|
4
|
+
outline: THREE.LineSegments<THREE.BufferGeometry, THREE.LineBasicMaterial>;
|
|
5
|
+
private originObject;
|
|
6
|
+
private positionAttribute;
|
|
7
|
+
constructor(obj: THREE.Object3D);
|
|
8
|
+
private update;
|
|
9
|
+
private createOutline;
|
|
10
|
+
private createBox;
|
|
11
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { RectangleScaleHelperAbstract } from '.';
|
|
3
|
+
import type { Create3DElementReturnType } from '../../../CSS3DRenderPlugin';
|
|
4
|
+
import type { Vector3 } from 'three';
|
|
5
|
+
import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
6
|
+
import type { CSS3DObjectPlus } from '../../../CSS3DRenderPlugin/utils/CSS3DObjectPlus';
|
|
7
|
+
declare type NonVoid<T> = T extends void ? never : T;
|
|
8
|
+
declare type OriginObjectType = CSS3DObject | THREE.Object3D;
|
|
9
|
+
export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObjectType> extends RectangleScaleHelperAbstract<T, HTMLElement> {
|
|
10
|
+
points: RectangleScaleHelperAbstract<THREE.Object3D, HTMLElement>['points'];
|
|
11
|
+
cornerPositions: Vector3[];
|
|
12
|
+
css3DInstance?: NonVoid<Create3DElementReturnType>;
|
|
13
|
+
get helperObject(): CSS3DObjectPlus<HTMLElement>;
|
|
14
|
+
plane?: THREE.Mesh<THREE.PlaneGeometry, THREE.MeshBasicMaterial>;
|
|
15
|
+
private css3DRenderer;
|
|
16
|
+
private camera;
|
|
17
|
+
private scene;
|
|
18
|
+
private container;
|
|
19
|
+
private enabled;
|
|
20
|
+
constructor(originObject3D: T, container: Element, camera: THREE.Camera, scene: THREE.Scene);
|
|
21
|
+
updatePosition(): void;
|
|
22
|
+
updateQuaternion(): void;
|
|
23
|
+
applyMatrix4(matrix: THREE.Matrix4): void;
|
|
24
|
+
showDraggingHelper(): void;
|
|
25
|
+
applyHelperScaleMatrix4(matrix: THREE.Matrix4, params?: {
|
|
26
|
+
origin?: Vector3;
|
|
27
|
+
helperOrigin?: Vector3;
|
|
28
|
+
}): void;
|
|
29
|
+
updatePoints(): void;
|
|
30
|
+
applyHelperQuaternion(quaternion: THREE.Quaternion, origin: THREE.Vector3): void;
|
|
31
|
+
enable(): void;
|
|
32
|
+
disable(): void;
|
|
33
|
+
show(): void;
|
|
34
|
+
hide(): void;
|
|
35
|
+
dispose(): void;
|
|
36
|
+
private initRectangleScaleHelper;
|
|
37
|
+
private getCornerPositions;
|
|
38
|
+
private calculatePointPosition;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import type { Object3D } from 'three';
|
|
3
|
+
import { RotateHelperAbstract } from '../Base/BaseHelper';
|
|
4
|
+
import type { Color, Direction } from '../typings';
|
|
5
|
+
import { tipsDom } from './HTML/tipsDom';
|
|
6
|
+
export declare class RotateHelper extends RotateHelperAbstract {
|
|
7
|
+
yzCircle: Circle;
|
|
8
|
+
xzCircle: Circle;
|
|
9
|
+
xyCircle: Circle;
|
|
10
|
+
xRingHelper: AxesDashedRing;
|
|
11
|
+
yRingHelper: AxesDashedRing;
|
|
12
|
+
zRingHelper: AxesDashedRing;
|
|
13
|
+
xAngleHelper: Sector;
|
|
14
|
+
yAngleHelper: Sector;
|
|
15
|
+
zAngleHelper: Sector;
|
|
16
|
+
angleTips?: ReturnType<typeof tipsDom>;
|
|
17
|
+
private container?;
|
|
18
|
+
constructor(originObject3D: Object3D, angleTipsParams?: {
|
|
19
|
+
container: HTMLElement;
|
|
20
|
+
});
|
|
21
|
+
updateAngleHelperQuaternion(): void;
|
|
22
|
+
applyHelperQuaternion(quaternion: THREE.Quaternion, origin?: THREE.Vector3): void;
|
|
23
|
+
hide(): void;
|
|
24
|
+
show(): void;
|
|
25
|
+
showDraggingHelper(directions: Direction[]): void;
|
|
26
|
+
dispose(): void;
|
|
27
|
+
private filterRingHelper;
|
|
28
|
+
private filterAngleHelper;
|
|
29
|
+
}
|
|
30
|
+
declare class Circle extends THREE.Mesh {
|
|
31
|
+
direction: Direction;
|
|
32
|
+
material: THREE.MeshBasicMaterial;
|
|
33
|
+
gapAngle: number;
|
|
34
|
+
geometry: THREE.RingGeometry;
|
|
35
|
+
constructor(options: {
|
|
36
|
+
direction: Direction;
|
|
37
|
+
color?: Color;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
declare class AxesDashedRing extends THREE.Group {
|
|
41
|
+
direction: Readonly<Direction>;
|
|
42
|
+
constructor(options: {
|
|
43
|
+
direction: Direction;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
declare class Sector extends THREE.Mesh {
|
|
47
|
+
direction: Direction;
|
|
48
|
+
material: THREE.MeshBasicMaterial;
|
|
49
|
+
baseAxes: THREE.Vector3;
|
|
50
|
+
constructor(options: {
|
|
51
|
+
direction: Direction;
|
|
52
|
+
color?: Color;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { OutlineHelper } from './Helper';
|
|
2
|
+
import type { Object3DHelperEventMap, Object3DHelperState } from './typings';
|
|
3
|
+
import type { MoveController } from './Controller/MoveController';
|
|
4
|
+
import type { RotateController } from './Controller/RotateController';
|
|
5
|
+
import type { BaseController } from './Base/BaseController';
|
|
6
|
+
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
|
+
export declare class Object3DHelper {
|
|
16
|
+
controllers: Controllers;
|
|
17
|
+
state: Object3DHelperState;
|
|
18
|
+
hooks: Subscribe<Object3DHelperEventMap>;
|
|
19
|
+
private helpers;
|
|
20
|
+
private eventListener;
|
|
21
|
+
constructor(controllers?: Controllers, helpers?: Helpers);
|
|
22
|
+
/**
|
|
23
|
+
* @description Show guide line
|
|
24
|
+
*/
|
|
25
|
+
show(options?: {
|
|
26
|
+
userAction?: boolean;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* @description Hide guide line
|
|
30
|
+
*/
|
|
31
|
+
hide(options?: {
|
|
32
|
+
userAction?: boolean;
|
|
33
|
+
}): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* @description Enable
|
|
36
|
+
*/
|
|
37
|
+
enable(options?: {
|
|
38
|
+
userAction?: boolean;
|
|
39
|
+
}): void;
|
|
40
|
+
/**
|
|
41
|
+
* @description Disable
|
|
42
|
+
*/
|
|
43
|
+
disable(options?: {
|
|
44
|
+
userAction?: boolean;
|
|
45
|
+
}): void;
|
|
46
|
+
/**
|
|
47
|
+
* @description Dispose
|
|
48
|
+
*/
|
|
49
|
+
dispose(): void;
|
|
50
|
+
setState(state: Partial<Object3DHelperState>, options?: {
|
|
51
|
+
userAction?: boolean;
|
|
52
|
+
} & Record<string, any>): void;
|
|
53
|
+
addControllers(controllers: Controllers): void;
|
|
54
|
+
addHelpers(helpers: Partial<{
|
|
55
|
+
[K in keyof Helpers]: Helpers[K];
|
|
56
|
+
}>): void;
|
|
57
|
+
getCurrentState(): Object3DHelperState;
|
|
58
|
+
private addEventListener;
|
|
59
|
+
private handleEnd;
|
|
60
|
+
private handleStart;
|
|
61
|
+
private setOtherHelpersVisible;
|
|
62
|
+
private handlePositionUpdate;
|
|
63
|
+
private handleScaleUpdate;
|
|
64
|
+
private handleRotateUpdate;
|
|
65
|
+
private handleEnable;
|
|
66
|
+
private handleVisible;
|
|
67
|
+
private everyControllerDo;
|
|
68
|
+
private handleDispose;
|
|
69
|
+
private actionIfStateIsEnabled;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type * as THREE from 'three';
|
|
2
|
+
export declare type HelperEventMap = {
|
|
3
|
+
moveStart: () => void;
|
|
4
|
+
rotateStart: () => void;
|
|
5
|
+
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
|
+
moveEnd: () => void;
|
|
19
|
+
rotateEnd: () => void;
|
|
20
|
+
scaleEnd: () => void;
|
|
21
|
+
};
|
|
22
|
+
export interface Object3DHelperState {
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
visible: boolean;
|
|
25
|
+
disposed: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare type Object3DHelperEventMap = {
|
|
28
|
+
show: (options?: {
|
|
29
|
+
userAction?: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
hide: (options?: {
|
|
32
|
+
userAction?: boolean;
|
|
33
|
+
}) => void;
|
|
34
|
+
enable: (options?: {
|
|
35
|
+
userAction?: boolean;
|
|
36
|
+
}) => void;
|
|
37
|
+
disable: (options?: {
|
|
38
|
+
userAction?: boolean;
|
|
39
|
+
}) => void;
|
|
40
|
+
dispose: () => void;
|
|
41
|
+
stateChange: (params: {
|
|
42
|
+
state: Object3DHelperState;
|
|
43
|
+
prevState?: Object3DHelperState;
|
|
44
|
+
}) => void;
|
|
45
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 显示区域裁剪参数
|
|
3
|
+
* @description
|
|
4
|
+
* 可通过初始化,或者 setScissor 方式设置
|
|
5
|
+
* `scissor` 是将屏幕中的内容渲染到 `renderer` 的指定区域。
|
|
6
|
+
* 页面整体长宽均为 `1`。通过类似 css 的 `left` `bottom` `width` `height` 来确定区域。
|
|
7
|
+
*/
|
|
8
|
+
export interface Scissor {
|
|
9
|
+
/** 距离左侧 */
|
|
10
|
+
left: number;
|
|
11
|
+
/** 距离下侧 */
|
|
12
|
+
bottom: number;
|
|
13
|
+
/** 宽度 */
|
|
14
|
+
width: number;
|
|
15
|
+
/** 高度 */
|
|
16
|
+
height: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* 计算 three 中的 mouse 的值
|
|
4
|
+
* @param mouseXY - 鼠标相对屏幕位置
|
|
5
|
+
* @param element - canvas元素(three的展示元素)
|
|
6
|
+
* @param scissor - 屏幕剪裁
|
|
7
|
+
*/
|
|
8
|
+
export declare function calculateThreeMouse(originMouse: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}, element: HTMLElement): THREE.Vector2 & {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Direction } from '../typings';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
export declare class DirectionGroup extends THREE.Group {
|
|
4
|
+
direction: Direction;
|
|
5
|
+
constructor(direction?: Direction);
|
|
6
|
+
}
|
|
7
|
+
export declare class DirectionLine<T extends THREE.Geometry, K extends THREE.Material> extends THREE.Line<T, K> {
|
|
8
|
+
direction: Direction;
|
|
9
|
+
constructor(geometry?: T, material?: K, direction?: Direction);
|
|
10
|
+
}
|
|
11
|
+
export declare class DirectionMesh<T extends THREE.Geometry, K extends THREE.Material> extends THREE.Mesh<T, K> {
|
|
12
|
+
direction: Direction;
|
|
13
|
+
constructor(geometry?: T, material?: K, direction?: Direction);
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '../../../CSS3DRenderPlugin/utils';
|
|
2
|
+
export * from './direction';
|
|
3
|
+
export * from './calculateThreeMouse';
|
|
4
|
+
export * from './normalPositionToPositions';
|
|
5
|
+
export * from './object3DBoundingPosition';
|
|
6
|
+
export * from './getMouseRaycaster';
|
|
7
|
+
export * from './filterNotColinearPoints';
|
|
8
|
+
export * from './vectorIsEqual';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function object3DBoundingPosition(): void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as THREE from 'three'
|
|
2
|
+
|
|
3
|
+
type EventName =
|
|
4
|
+
| 'click'
|
|
5
|
+
| 'dblclick'
|
|
6
|
+
| 'mouseover'
|
|
7
|
+
| 'mouseout'
|
|
8
|
+
| 'mousemove'
|
|
9
|
+
| 'mousedown'
|
|
10
|
+
| 'mouseup'
|
|
11
|
+
| 'contextmenu'
|
|
12
|
+
| 'touchstart'
|
|
13
|
+
| 'touchend'
|
|
14
|
+
|
|
15
|
+
declare class DomEvents {
|
|
16
|
+
public constructor(camera: THREE.Camera, domElement: HTMLElement)
|
|
17
|
+
|
|
18
|
+
public addEventListener<T extends EventName, K extends THREE.Object3D>(
|
|
19
|
+
object: K,
|
|
20
|
+
eventName: T,
|
|
21
|
+
callback: (params: {
|
|
22
|
+
type: T
|
|
23
|
+
target: K
|
|
24
|
+
origDomEvent: Event
|
|
25
|
+
intersect: THREE.Intersection & { object: K }
|
|
26
|
+
stopPropagation: () => void
|
|
27
|
+
}) => void,
|
|
28
|
+
useCapture?: boolean,
|
|
29
|
+
): void
|
|
30
|
+
|
|
31
|
+
public removeEventListener(object: THREE.Object3D, eventName: EventName, callback: (params: any) => void, useCapture?: boolean): void
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default DomEvents
|