@realsee/dnalogel 2.1.2-alpha.9 → 2.2.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/README.md +45 -0
- 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/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/assets/highlight.css +35 -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 +25 -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 +4 -8
- package/dist/index.es.js +0 -16650
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { FloorplanRoomItem } from './floorplanData';
|
|
2
|
+
import type { FLOOR_PLAN_ATTACHED_TO } from '../constant';
|
|
3
|
+
import type { FloorplanData } from '../typings/floorplanData';
|
|
4
|
+
import type * as BasePlugin from '../../base/BasePluginWithData';
|
|
5
|
+
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
6
|
+
export interface State extends BasePlugin.State {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
config: Config;
|
|
9
|
+
}
|
|
10
|
+
export interface Config {
|
|
11
|
+
/** 指北针的显示文案,默认为 '北' */
|
|
12
|
+
northDesc: string;
|
|
13
|
+
/** 户型图展示时,模型的透明度,默认为 1 */
|
|
14
|
+
modelOpacity: number;
|
|
15
|
+
/** 鼠标放置在分间上时,是否要自动高亮分间,默认为 true */
|
|
16
|
+
hoverEnable: boolean;
|
|
17
|
+
/** 是否要启用指北针功能,默认为 true */
|
|
18
|
+
compassEnable: boolean;
|
|
19
|
+
/** Five 切换到 Topview Mode 时,是否自动展示户型图,默认为 true */
|
|
20
|
+
autoShowEnable: boolean;
|
|
21
|
+
/** 是否要启用户型图分间标尺功能,默认为 true */
|
|
22
|
+
ruleLabelsEnable: boolean;
|
|
23
|
+
/** 是否要启用户型图分间标签功能,默认为 true */
|
|
24
|
+
roomLabelsEnable: boolean;
|
|
25
|
+
/** 是否支持房屋标签自适应展示,默认为 true
|
|
26
|
+
* @description
|
|
27
|
+
* * 标签边框超过房间边框时,自动隐藏;不超过时自动展示。
|
|
28
|
+
* * 鼠标 hover 时,自动展示。
|
|
29
|
+
* */
|
|
30
|
+
adaptiveRoomLabelVisibleEnable: boolean;
|
|
31
|
+
/** 自定义「雷达」图标 */
|
|
32
|
+
cameraImageUrl: string;
|
|
33
|
+
/** 计算户型图大小时,以模型的哪个高度为依据,默认为 BOUNDING_CENTER
|
|
34
|
+
* - FLOOR_PLAN_ATTACHED_TO.FLOOR: 户型图大小与模型的地板进行贴合
|
|
35
|
+
* - FLOOR_PLAN_ATTACHED_TO.CEILING: 户型图大小与模型的天花板进行贴合
|
|
36
|
+
* - FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER: 户型图大小与模型的中心进行贴合
|
|
37
|
+
*/
|
|
38
|
+
attachedTo: FLOOR_PLAN_ATTACHED_TO;
|
|
39
|
+
/** 分间标签的自定义函数,通过返回自定义 DOM 替换对应分间的标签 */
|
|
40
|
+
getLabelElement: undefined | ((room: FloorplanRoomItem) => Element | null);
|
|
41
|
+
/** 自定义分间面积文本
|
|
42
|
+
* @param area 分间原始面积,单位是 mm²
|
|
43
|
+
*/
|
|
44
|
+
getRoomAreaText: (areaSize: number) => string;
|
|
45
|
+
/** 自定义标尺距离文本
|
|
46
|
+
* @param distance 原始标尺距离,单位是 mm
|
|
47
|
+
*/
|
|
48
|
+
getRuleDistanceText: (distance: number) => string;
|
|
49
|
+
}
|
|
50
|
+
/** 插件初始化参数 */
|
|
51
|
+
export interface Parameters extends Partial<Config> {
|
|
52
|
+
selector?: string | Element;
|
|
53
|
+
scale?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface PluginServerData extends BasePlugin.ServerData {
|
|
56
|
+
version: number;
|
|
57
|
+
data: FloorplanServerData;
|
|
58
|
+
}
|
|
59
|
+
export interface ViewEvent {
|
|
60
|
+
/** 是否是用户滑动模型导致的户型图自动展示/消失 */
|
|
61
|
+
auto: boolean;
|
|
62
|
+
/** 是否是用户操作 */
|
|
63
|
+
userAction: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface EventMap extends BasePlugin.EventMap<State, FloorplanData> {
|
|
66
|
+
/**
|
|
67
|
+
* 展示结束的回调
|
|
68
|
+
* @param event.auto 是否是自动操作
|
|
69
|
+
* @param event.userAction 是否是用户操作
|
|
70
|
+
*/
|
|
71
|
+
showAnimationEnded: (event: ViewEvent) => void;
|
|
72
|
+
/** visible 从 false 到 true 的回调
|
|
73
|
+
* @param event.userAction 是否是用户操作
|
|
74
|
+
*/
|
|
75
|
+
show: (event: ViewEvent) => void;
|
|
76
|
+
/** visible 从 true 到 false 的回调
|
|
77
|
+
* @param event.auto 是否是自动操作
|
|
78
|
+
* @param event.userAction 是否是用户操作
|
|
79
|
+
*/
|
|
80
|
+
hide: (event: ViewEvent) => void;
|
|
81
|
+
/** enabled 从 false 到 true 的回调
|
|
82
|
+
* @param event.userAction 是否是用户操作
|
|
83
|
+
*/
|
|
84
|
+
enable: (event: {
|
|
85
|
+
userAction: boolean;
|
|
86
|
+
}) => void;
|
|
87
|
+
/** enabled 从 true 到 false 的回调
|
|
88
|
+
* @param event.userAction 是否是用户操作
|
|
89
|
+
*/
|
|
90
|
+
disable: (event: {
|
|
91
|
+
userAction: boolean;
|
|
92
|
+
}) => void;
|
|
93
|
+
/**
|
|
94
|
+
* 点击户型图的回调
|
|
95
|
+
* @return 当返回 false 时,会阻止默认行为
|
|
96
|
+
*/
|
|
97
|
+
click: () => boolean | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface ShowOptions {
|
|
100
|
+
/** 展示户型图时,希望到达的楼层数 */
|
|
101
|
+
floorIndex: number;
|
|
102
|
+
/** 是否自动展示 */
|
|
103
|
+
isAutoShow: boolean;
|
|
104
|
+
/** 展示户型图时,模型透明度 */
|
|
105
|
+
modelOpacity: number;
|
|
106
|
+
/** 是否需要 opacity 动画 */
|
|
107
|
+
immediately: boolean;
|
|
108
|
+
/** 是否是用户操作 */
|
|
109
|
+
userAction: boolean;
|
|
110
|
+
}
|
|
111
|
+
export interface HideOptions {
|
|
112
|
+
/** 是否自动隐藏 */
|
|
113
|
+
isAutoHide: boolean;
|
|
114
|
+
/** 是否是用户操作 */
|
|
115
|
+
userAction: boolean;
|
|
116
|
+
}
|
|
117
|
+
export { FloorplanData as PluginData };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const enum FloorplanErrorType {
|
|
2
|
+
/** 意料之外的错误 */
|
|
3
|
+
UnknownError = "UnknownError",
|
|
4
|
+
/** 数据未加载 */
|
|
5
|
+
DataNotLoaded = "DataNotLoaded",
|
|
6
|
+
/** 展示过程被隐藏打断 */
|
|
7
|
+
BreakOffByHide = "BreakOffByHide",
|
|
8
|
+
/** 展示过程中插件被禁用 */
|
|
9
|
+
BreakOffByDisable = "BreakOffByDisable",
|
|
10
|
+
/** 模型未加载完成 */
|
|
11
|
+
ModelNotLoaded = "ModelNotLoaded",
|
|
12
|
+
/** Five changeMode 行为不符合预期 */
|
|
13
|
+
ChangeModeError = "ChangeModeError",
|
|
14
|
+
/** Five updateCamera 行为不符合预期 */
|
|
15
|
+
UpdateCameraError = "UpdateCameraError"
|
|
16
|
+
}
|
|
17
|
+
/** 户型图展示 & 模型消失的默认时间 */
|
|
18
|
+
export declare const SHOW_ANIME_DURATION = 500;
|
|
19
|
+
/** Five camera 默认 fov */
|
|
20
|
+
export declare const FIVE_CAMERA_DEFAULT_FOV = 80;
|
|
21
|
+
/** 展示户型图时,默认模型的透明度 */
|
|
22
|
+
export declare const DEFAULT_SHOW_MODEL_OPACITY = 0.01;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Five, Mode } from '@realsee/five';
|
|
2
|
+
export interface ShowState {
|
|
3
|
+
latitude: number;
|
|
4
|
+
longitude: number;
|
|
5
|
+
fov: number;
|
|
6
|
+
mode: Mode;
|
|
7
|
+
}
|
|
8
|
+
/** 判断当前状态是否可以展示户型图 */
|
|
9
|
+
export declare function checkShowState(five: Five, showState: ShowState): boolean;
|
|
10
|
+
/** 更改 Five 状态到展示户型图的状态
|
|
11
|
+
* 1. 判断状态不符合时,会纠正到正确的状态
|
|
12
|
+
* 2. 内置了相应的动画时间计算
|
|
13
|
+
* 3. 纠正成功会返回 true,失败「可能会被用户行为中断」会返回 false
|
|
14
|
+
*/
|
|
15
|
+
export default function correctFiveState(five: Five, showState: ShowState, userAction?: boolean): Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { FloorplanData, FloorplanExtraObject, FloorplanExtraObject3D } from '../typings/floorplanData';
|
|
3
|
+
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
4
|
+
export default function formatData(data: FloorplanServerData): Promise<FloorplanData>;
|
|
5
|
+
export declare function formatExtraObjects(data: FloorplanExtraObject3D[], five: Five, floorplanData: FloorplanData): FloorplanExtraObject[];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { Vector2Position } from '../../typings/math.type';
|
|
3
|
+
import type { FloorplanData, FloorplanBounding } from '../typings/floorplanData';
|
|
4
|
+
export declare function pathD(points: Vector2Position[], options?: {
|
|
5
|
+
needZ?: boolean;
|
|
6
|
+
needA?: Record<number, string>;
|
|
7
|
+
format?: (vector: Vector2Position) => Vector2Position;
|
|
8
|
+
}): string;
|
|
9
|
+
/** 把户型图上点点位转换到 SVG 上的点位 */
|
|
10
|
+
export default function formatFloorplanPoint({ x, y }: Vector2Position, bounding: FloorplanBounding): {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
/** 模型坐标转户型图坐标 */
|
|
15
|
+
export declare function modelPosition2FloorplanPosition(position: {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
z: number;
|
|
19
|
+
}, floorplanData: FloorplanData): {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
/** 户型图点位转在图片上的相对坐标 */
|
|
24
|
+
export declare function floorplanPosition2ImagePosition(position: {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
}, floorplanData: FloorplanData): {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
};
|
|
31
|
+
/** 求三维坐标点所在的楼层 */
|
|
32
|
+
export declare function getFloorIndexFromModelPosition(position: {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
z: number;
|
|
36
|
+
}, five: Five): number;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './ModelViewPlugin';
|
|
3
|
+
export * from './CSS3DRenderPlugin';
|
|
4
|
+
export * from './PanoCursorRaycasterPlugin';
|
|
5
|
+
export * from './ModelRoomLabelPlugin';
|
|
6
|
+
export * from './floorplan';
|
|
7
|
+
export * from './ModelChassisCompassPlugin';
|
|
8
|
+
export * from './ModelEntryDoorGuidePlugin';
|
|
9
|
+
export * from './CameraMovementPlugin';
|
|
10
|
+
export * from './PanoRulerPlugin';
|
|
11
|
+
export * from './PanoRulerProPlugin';
|
|
12
|
+
export * from './PanoCompassPlugin';
|
|
13
|
+
export * from './PanoMeasurePlugin';
|
|
14
|
+
export * from './PanoSpatialTagPlugin';
|
|
15
|
+
export * from './ModelItemLabelPlugin';
|
|
16
|
+
export * from './ModelTVVideoPlugin';
|
|
17
|
+
export * from './ItemLabelPlugin';
|
|
18
|
+
export * from './PanoDoorLabelPlugin';
|
|
19
|
+
export * from './GuideLinePlugin';
|
|
20
|
+
export * from './CruisePlugin';
|
|
21
|
+
export * from './PanoTagPlugin';
|
|
22
|
+
export * from './Object3DHelperPlugin';
|
|
23
|
+
export * as Util from './shared-utils';
|
|
@@ -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 {};
|