@realsee/dnalogel 2.0.0-alpha.3 → 2.0.0-alpha.31-beta
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/CHANGELOG.md +108 -0
- package/README.md +93 -4
- package/TERMS.txt +56 -0
- package/dist/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/index.js +234 -0
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +5 -0
- package/dist/CameraMovementPlugin/index.js +302 -0
- package/dist/CameraMovementPlugin/typing.d.ts +68 -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/index.js +941 -0
- package/dist/ItemLabelPlugin/typings.d.ts +59 -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 +6 -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/ModelChassisCompassPlugin/index.js +143 -0
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
- package/dist/ModelEntryDoorGuidePlugin/index.js +196 -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/index.js +674 -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/index.js +541 -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/index.js +301 -0
- package/dist/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/dist/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/dist/ModelViewPlugin/Plugin.d.ts +17 -0
- package/dist/ModelViewPlugin/index.d.ts +4 -0
- package/dist/ModelViewPlugin/index.js +187 -0
- package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/dist/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.js +636 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoCursorRaycasterPlugin/index.js +90 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +39 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +44 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +70 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +38 -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 +6 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/NewMainBtnController.d.ts +12 -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 +2 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +19 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +42 -0
- package/dist/PanoMeasurePlugin/index.d.ts +10 -0
- package/dist/PanoMeasurePlugin/index.js +3996 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +32 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
- package/dist/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -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 +2 -0
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/dist/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.d.ts +5 -0
- package/dist/PanoRulerPlugin/index.js +609 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/dist/PanoRulerPlugin/typings.d.ts +21 -0
- package/dist/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/dist/PanoSpatialTagPlugin/index.js +1296 -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/floorplan/Assets/camera.d.ts +1 -0
- package/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/Assets/compass.d.ts +0 -0
- package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +105 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +4034 -0
- package/dist/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +27 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1648 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +75 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +3646 -0
- package/dist/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/dist/floorplan/index.d.ts +6 -0
- package/dist/floorplan/typings/floorplanData.d.ts +137 -0
- package/dist/floorplan/typings/floorplanServerData.d.ts +131 -0
- package/dist/floorplan/typings/utility.d.ts +2 -0
- package/dist/floorplan/utils/formatData.d.ts +5 -0
- package/dist/floorplan/utils/formatPosition.d.ts +36 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.es.js +14631 -0
- package/dist/index.js +14683 -0
- package/dist/index.umd.js +14675 -0
- package/dist/shared-utils/Preloader.d.ts +6 -0
- package/dist/shared-utils/Subscribe.d.ts +45 -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 +15 -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 +2 -0
- package/dist/shared-utils/formatRad.d.ts +7 -0
- package/dist/shared-utils/getPxmm.d.ts +11 -0
- package/dist/shared-utils/getRandomColor.d.ts +1 -0
- package/dist/shared-utils/index.d.ts +1 -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/evenNumber.d.ts +3 -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/px2rem.d.ts +1 -0
- package/dist/shared-utils/removeArrayItem.d.ts +7 -0
- package/dist/shared-utils/tap.d.ts +8 -0
- package/dist/shared-utils/three/centerPoint.d.ts +2 -0
- package/dist/shared-utils/three/getExtraModelLoader.d.ts +6 -0
- package/dist/shared-utils/three/getNormal.d.ts +2 -0
- package/dist/shared-utils/three/getTextureLoader.d.ts +6 -0
- package/dist/shared-utils/three/loadFbxObj.d.ts +2 -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 +4 -0
- package/dist/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/dist/typings/math.type.d.ts +44 -0
- package/dist/typings/utils.type.d.ts +2 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +78 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1413 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/Magnifier.html +9 -0
- package/docs/classes/ModelRoomLabelController.html +17 -0
- package/docs/classes/PanoFloorplanRadarPluginController.html +3 -0
- package/docs/enums/CameraMovementEffect.html +3 -0
- package/docs/enums/DIRECTION.html +1 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/ModelFloorplanErrorType.html +1 -0
- package/docs/enums/Rotation.html +3 -0
- package/docs/index.html +88 -0
- package/docs/interfaces/CSS3DRenderPluginExportType.html +4 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +17 -0
- package/docs/interfaces/FloorplanBounding.html +10 -0
- package/docs/interfaces/FloorplanData.html +3 -0
- package/docs/interfaces/FloorplanEntrance.html +15 -0
- package/docs/interfaces/FloorplanExtraObject.html +7 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -0
- package/docs/interfaces/FloorplanFloorData.html +3 -0
- package/docs/interfaces/FloorplanImagePosition.html +3 -0
- package/docs/interfaces/FloorplanObserver.html +5 -0
- package/docs/interfaces/FloorplanOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanPosition.html +3 -0
- package/docs/interfaces/FloorplanRoomItem.html +17 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -0
- package/docs/interfaces/FloorplanServerBounding.html +10 -0
- package/docs/interfaces/FloorplanServerComputedData.html +1 -0
- package/docs/interfaces/FloorplanServerData.html +3 -0
- package/docs/interfaces/FloorplanServerEntrance.html +15 -0
- package/docs/interfaces/FloorplanServerFloorData.html +3 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -0
- package/docs/interfaces/FloorplanServerObserver.html +5 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanServerPosition.html +3 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +20 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -0
- package/docs/interfaces/ItemLabelPluginData.html +1 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -0
- package/docs/interfaces/LineJson.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -0
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -0
- package/docs/interfaces/ModelFloorplanViewEvent.html +5 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -0
- package/docs/interfaces/ModelViewPluginExportType.html +1 -0
- package/docs/interfaces/OpenParameter.html +3 -0
- package/docs/interfaces/PanoCompassPluginData.html +1 -0
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +1 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -0
- package/docs/interfaces/Point.html +1 -0
- package/docs/interfaces/PointJson.html +1 -0
- package/docs/interfaces/Room.html +1 -0
- package/docs/interfaces/RoomInfo.html +1 -0
- package/docs/interfaces/RoomLabel.html +13 -0
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +19 -0
- package/docs/modules.html +44 -0
- package/libs/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/libs/CSS3DRenderPlugin/Plugin.js +182 -0
- package/libs/CSS3DRenderPlugin/index.d.ts +3 -48
- package/libs/CSS3DRenderPlugin/index.js +2 -180
- package/libs/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +159 -0
- package/libs/CameraMovementPlugin/index.d.ts +4 -6
- package/libs/CameraMovementPlugin/index.js +3 -158
- package/libs/CameraMovementPlugin/typing.d.ts +1 -1
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +577 -0
- package/libs/ItemLabelPlugin/ItemLabelItem.js +227 -0
- package/libs/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/libs/ItemLabelPlugin/Plugin.js +120 -0
- package/libs/ItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.d.ts +9 -0
- package/libs/ItemLabelPlugin/index.js +8 -0
- package/libs/ItemLabelPlugin/typings.d.ts +59 -0
- package/libs/ItemLabelPlugin/typings.js +7 -0
- package/libs/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +3 -0
- package/libs/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +16 -0
- package/libs/ItemLabelPlugin/utils/isImpacted.d.ts +6 -0
- package/libs/ItemLabelPlugin/utils/isImpacted.js +13 -0
- package/libs/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ItemLabelPlugin/utils/parseData.js +4 -0
- package/libs/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +4 -0
- package/libs/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/libs/ModelChassisCompassPlugin/Plugin.js +75 -0
- package/libs/ModelChassisCompassPlugin/index.d.ts +3 -18
- package/libs/ModelChassisCompassPlugin/index.js +2 -74
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +140 -0
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -135
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +409 -0
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +133 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +120 -0
- package/libs/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/index.js +8 -0
- package/libs/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/libs/ModelItemLabelPlugin/typings.js +7 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.js +4 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +67 -25
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +291 -0
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +254 -0
- package/libs/ModelTVVideoPlugin/index.d.ts +5 -0
- package/libs/ModelTVVideoPlugin/index.js +4 -0
- package/libs/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/libs/ModelTVVideoPlugin/typings.js +8 -0
- package/libs/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/libs/ModelTVVideoPlugin/utils/parseData.js +13 -0
- package/libs/ModelViewPlugin/Plugin.d.ts +17 -0
- package/libs/ModelViewPlugin/Plugin.js +160 -0
- package/libs/ModelViewPlugin/index.d.ts +3 -16
- package/libs/ModelViewPlugin/index.js +2 -159
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -0
- package/libs/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/libs/PanoCompassPlugin/Plugin.js +249 -0
- package/libs/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +48 -0
- package/libs/PanoCompassPlugin/index.d.ts +7 -24
- package/libs/PanoCompassPlugin/index.js +6 -88
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/libs/PanoCursorRaycasterPlugin/index.js +5 -3
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +39 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +132 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +329 -0
- package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +44 -0
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +337 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +64 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +316 -0
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +70 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +304 -0
- package/libs/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/libs/PanoMeasurePlugin/Model/index.js +139 -0
- package/libs/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/libs/PanoMeasurePlugin/Model/line.js +114 -0
- package/libs/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/point.js +48 -0
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +65 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +12 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +190 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +48 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +110 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +278 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +117 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +148 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/NewMainBtnController.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/NewMainBtnController.js +98 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +70 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +119 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +80 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +19 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +88 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +64 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +42 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +265 -0
- package/libs/PanoMeasurePlugin/index.d.ts +10 -0
- package/libs/PanoMeasurePlugin/index.js +7 -0
- package/libs/PanoMeasurePlugin/typings/data.d.ts +32 -0
- package/libs/PanoMeasurePlugin/typings/data.js +1 -0
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
- package/libs/PanoMeasurePlugin/typings/event.type.js +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +15 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +3 -0
- package/libs/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/libs/PanoMeasurePlugin/utils/constants.js +31 -0
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +120 -0
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +21 -0
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +27 -0
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -0
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +14 -0
- package/libs/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -0
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +6 -0
- package/libs/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/libs/PanoMeasurePlugin/utils/line.js +33 -0
- package/libs/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/libs/PanoMeasurePlugin/utils/math.js +44 -0
- package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +21 -0
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +6 -0
- package/libs/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/libs/PanoRulerPlugin/Plugin.js +402 -0
- package/libs/PanoRulerPlugin/index.d.ts +5 -0
- package/libs/PanoRulerPlugin/index.js +3 -0
- package/libs/PanoRulerPlugin/style.d.ts +2 -0
- package/libs/PanoRulerPlugin/style.js +88 -0
- package/libs/PanoRulerPlugin/typings.d.ts +21 -0
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +168 -0
- package/libs/PanoSpatialTagPlugin/Components/tag.js +302 -0
- package/libs/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
- package/libs/PanoSpatialTagPlugin/Plugin.js +415 -0
- package/libs/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/libs/PanoSpatialTagPlugin/index.js +5 -0
- package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/libs/PanoSpatialTagPlugin/store.js +2 -0
- package/libs/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/libs/PanoSpatialTagPlugin/style.js +8 -0
- package/libs/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/libs/PanoSpatialTagPlugin/typings.js +1 -0
- package/libs/floorplan/Assets/compass.d.ts +1 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.js +0 -0
- package/libs/floorplan/Components/BaseImage.js +222 -0
- package/libs/floorplan/Components/Camera.js +120 -0
- package/libs/floorplan/Components/Compass.js +119 -0
- package/libs/floorplan/Components/CurrentFloor.js +456 -0
- package/libs/floorplan/Components/Main.js +464 -0
- package/libs/floorplan/Components/Normalmage.js +63 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +68 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +199 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +173 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +265 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +331 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +64 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +103 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +140 -0
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +284 -0
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +269 -0
- package/libs/floorplan/Components/SvgImage.js +83 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +4 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +455 -279
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +168 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +250 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +154 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +312 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +1 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +83 -41
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +30 -14
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +269 -118
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -1
- package/libs/floorplan/constant.d.ts +5 -0
- package/libs/floorplan/constant.js +6 -0
- package/libs/floorplan/index.d.ts +6 -0
- package/libs/floorplan/index.js +7 -0
- package/libs/floorplan/typings/floorplanServerData.d.ts +4 -0
- package/libs/floorplan/utils/formatPosition.d.ts +1 -1
- package/libs/floorplan/utils/formatPosition.js +3 -3
- package/libs/index.d.ts +15 -19
- package/libs/index.js +26 -11
- package/libs/shared-utils/Subscribe.js +8 -1
- package/libs/shared-utils/animationFrame/BetterTween.js +47 -18
- package/libs/shared-utils/createCanvasTextTexture.js +6 -5
- package/libs/shared-utils/getPxmm.d.ts +6 -1
- package/libs/shared-utils/getPxmm.js +26 -12
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +1 -0
- package/libs/shared-utils/math/Interval.d.ts +13 -0
- package/libs/shared-utils/math/Interval.js +40 -0
- package/libs/shared-utils/math/Rectangle.d.ts +27 -0
- package/libs/shared-utils/math/Rectangle.js +50 -0
- package/libs/shared-utils/math/evenNumber.js +1 -1
- package/libs/shared-utils/math/index.d.ts +2 -0
- package/libs/shared-utils/math/index.js +2 -0
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/libs/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +2 -1
- package/libs/shared-utils/tinyEJSrender.d.ts +5 -0
- package/libs/shared-utils/tinyEJSrender.js +210 -0
- package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/package.json +30 -15
- package/dist/dnalogel.cjs.js +0 -2
- package/dist/dnalogel.es.js +0 -37288
- package/dist/dnalogel.umd.js +0 -2
- package/dist/style.css +0 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +0 -63
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte.map +0 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +0 -80
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte.map +0 -1
- package/libs/floorplan/Components/BaseImage.svelte +0 -25
- package/libs/floorplan/Components/BaseImage.svelte.map +0 -1
- package/libs/floorplan/Components/Normalmage.svelte +0 -11
- package/libs/floorplan/Components/Normalmage.svelte.map +0 -1
- package/libs/floorplan/Components/RoomHighlight/Room.svelte +0 -21
- package/libs/floorplan/Components/RoomHighlight/Room.svelte.map +0 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +0 -60
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +0 -35
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +0 -7
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +0 -16
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +0 -17
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte.map +0 -1
- package/libs/floorplan/Components/SvgImage.svelte +0 -25
- package/libs/floorplan/Components/SvgImage.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte +0 -46
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte +0 -48
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -37
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte +0 -50
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte +0 -41
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte +0 -25
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte +0 -148
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte +0 -15
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +0 -84
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -18
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +0 -40
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +0 -61
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte.map +0 -1
- package/libs/shared-utils/five/useFivePlugin.d.ts +0 -1
- package/libs/shared-utils/five/useFivePlugin.js +0 -8
- package/libs/shared-utils/useDebounce.d.ts +0 -8
- package/libs/shared-utils/useDebounce.js +0 -22
- package/libs/shared-utils/useThrottle.d.ts +0 -8
- package/libs/shared-utils/useThrottle.js +0 -25
|
@@ -1,36 +1,265 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
1
2
|
import { pluginStyle } from './style';
|
|
2
3
|
import formatData from '../utils/formatData';
|
|
3
|
-
import { omit } from '../../shared-utils/filter';
|
|
4
4
|
import getPxmm from '../../shared-utils/getPxmm';
|
|
5
|
-
import
|
|
5
|
+
import { omit } from '../../shared-utils/filter';
|
|
6
|
+
import Main from '../Components/Main';
|
|
6
7
|
import changeModelCanvasOpacity from '../../shared-utils/changeModelCanvasOpacity';
|
|
7
8
|
export class TopviewFloorplanPluginController {
|
|
8
|
-
size = { width: 0, height: 0 };
|
|
9
|
-
visible = false;
|
|
10
|
-
pxmm = 0;
|
|
11
|
-
app;
|
|
12
|
-
five;
|
|
13
|
-
panoIndex = 0;
|
|
14
|
-
floorIndex = 0;
|
|
15
|
-
configs = {};
|
|
16
|
-
lastPanoramaLongitude = 0;
|
|
17
|
-
selector;
|
|
18
|
-
floorplanData;
|
|
19
|
-
wrapper;
|
|
20
|
-
container = document.createElement('div');
|
|
21
9
|
constructor(five, params) {
|
|
10
|
+
Object.defineProperty(this, "size", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: { width: 0, height: 0 }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(this, "visible", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value: false
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(this, "pxmm", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: 0
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(this, "app", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: void 0
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(this, "five", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: void 0
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(this, "panoIndex", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
value: 0
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(this, "floorIndex", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
configurable: true,
|
|
49
|
+
writable: true,
|
|
50
|
+
value: 0
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(this, "configs", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
configurable: true,
|
|
55
|
+
writable: true,
|
|
56
|
+
value: {}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(this, "lastPanoramaLongitude", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
value: 0
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(this, "selector", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true,
|
|
68
|
+
value: void 0
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(this, "floorplanData", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true,
|
|
74
|
+
value: void 0
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(this, "wrapper", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
configurable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
value: void 0
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(this, "container", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
configurable: true,
|
|
85
|
+
writable: true,
|
|
86
|
+
value: document.createElement('div')
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(this, "dispose", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
configurable: true,
|
|
91
|
+
writable: true,
|
|
92
|
+
value: () => {
|
|
93
|
+
var _a, _b;
|
|
94
|
+
this.hide();
|
|
95
|
+
(_a = this.app) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
96
|
+
(_b = this.container) === null || _b === void 0 ? void 0 : _b.remove();
|
|
97
|
+
this.five.off('modeChange', this.onFiveModeChange);
|
|
98
|
+
this.five.off('panGesture', this.onFivePanGesture);
|
|
99
|
+
this.five.off('panoArrived', this.onFivePanoArrived);
|
|
100
|
+
this.five.off('modelLoaded', this.onFiveModelLoaded);
|
|
101
|
+
this.five.off('pinchGesture', this.onFivePinchGesture);
|
|
102
|
+
this.five.off('wantsGesture', this.onFiveWantsGesture);
|
|
103
|
+
this.five.off('wantsMoveToPano', this.onFiveWantsMoveToPano);
|
|
104
|
+
this.five.off('initAnimationEnded', this.onFiveInitAnimationEnded);
|
|
105
|
+
this.five.off('modelShownFloorChange', this.onModelShownFloorChange);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(this, "onFiveWantsMoveToPano", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
configurable: true,
|
|
111
|
+
writable: true,
|
|
112
|
+
value: () => {
|
|
113
|
+
if (this.visible && this.configs.preventRoomClick)
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(this, "onFiveWantsGesture", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
configurable: true,
|
|
120
|
+
writable: true,
|
|
121
|
+
value: (type) => {
|
|
122
|
+
if (type !== 'pan' && type !== 'pinch' && type !== 'mouseWheel')
|
|
123
|
+
return;
|
|
124
|
+
if (this.visible && !this.configs.gestureEnable)
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(this, "onModelShownFloorChange", {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
configurable: true,
|
|
131
|
+
writable: true,
|
|
132
|
+
value: (shownFloor) => {
|
|
133
|
+
if (this.floorIndex === shownFloor)
|
|
134
|
+
return;
|
|
135
|
+
if (shownFloor === null) {
|
|
136
|
+
const panoIndex = this.five.getCurrentState().panoIndex;
|
|
137
|
+
this.floorIndex = this.five.work.observers[panoIndex].floorIndex;
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
// 模型楼层高亮改变时,自动进行楼层切换
|
|
141
|
+
this.floorIndex = shownFloor;
|
|
142
|
+
this.updateSize();
|
|
143
|
+
this.render();
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(this, "onFivePanoArrived", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
configurable: true,
|
|
149
|
+
writable: true,
|
|
150
|
+
value: (index) => {
|
|
151
|
+
var _a;
|
|
152
|
+
if (!((_a = this.five) === null || _a === void 0 ? void 0 : _a.work))
|
|
153
|
+
return;
|
|
154
|
+
this.panoIndex = index;
|
|
155
|
+
this.floorIndex = this.five.work.observers[index].floorIndex;
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(this, "onFivePanGesture", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
configurable: true,
|
|
161
|
+
writable: true,
|
|
162
|
+
value: () => {
|
|
163
|
+
if (!this.visible)
|
|
164
|
+
return;
|
|
165
|
+
this.updatePosition();
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(this, "onFivePinchGesture", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
configurable: true,
|
|
171
|
+
writable: true,
|
|
172
|
+
value: () => {
|
|
173
|
+
if (!this.visible)
|
|
174
|
+
return;
|
|
175
|
+
this.updatePosition();
|
|
176
|
+
this.updateSize();
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(this, "onFiveModelLoaded", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
configurable: true,
|
|
182
|
+
writable: true,
|
|
183
|
+
value: () => {
|
|
184
|
+
if (this.wrapper)
|
|
185
|
+
return;
|
|
186
|
+
if (!this.selector)
|
|
187
|
+
return;
|
|
188
|
+
const wrapper = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
189
|
+
if (!wrapper)
|
|
190
|
+
throw new Error('不正确的父容器选择器');
|
|
191
|
+
this.wrapper = wrapper;
|
|
192
|
+
wrapper.append(this.container);
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
/** 非 Topview 态隐藏户型图 */
|
|
196
|
+
Object.defineProperty(this, "onFiveModeChange", {
|
|
197
|
+
enumerable: true,
|
|
198
|
+
configurable: true,
|
|
199
|
+
writable: true,
|
|
200
|
+
value: (mode) => {
|
|
201
|
+
if (mode !== 'Topview')
|
|
202
|
+
return this.hide();
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
/** 动画结束后是 Topview 态就展示户型图 */
|
|
206
|
+
Object.defineProperty(this, "onFiveInitAnimationEnded", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
configurable: true,
|
|
209
|
+
writable: true,
|
|
210
|
+
value: () => {
|
|
211
|
+
const { mode } = this.five.getCurrentState();
|
|
212
|
+
if (mode === 'Topview')
|
|
213
|
+
this.show();
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
/** 更新户型图大小 */
|
|
217
|
+
Object.defineProperty(this, "updateSize", {
|
|
218
|
+
enumerable: true,
|
|
219
|
+
configurable: true,
|
|
220
|
+
writable: true,
|
|
221
|
+
value: () => {
|
|
222
|
+
if (!this.floorplanData)
|
|
223
|
+
return;
|
|
224
|
+
if (!this.container || !this.wrapper)
|
|
225
|
+
return;
|
|
226
|
+
if (this.five.getCurrentState().mode !== 'Topview')
|
|
227
|
+
return;
|
|
228
|
+
// 计算户型图展示大小
|
|
229
|
+
const { min, max } = this.floorplanData.bounding;
|
|
230
|
+
const width = max.x - min.x;
|
|
231
|
+
const height = max.y - min.y;
|
|
232
|
+
// 每毫米对应的 px 值
|
|
233
|
+
const options = this.configs.attachedTo ? { attachedTo: this.configs.attachedTo } : undefined;
|
|
234
|
+
const pxmm = getPxmm(this.five, this.wrapper, this.floorIndex, options);
|
|
235
|
+
const _width = Math.ceil(width * pxmm);
|
|
236
|
+
const _height = Math.ceil(height * pxmm);
|
|
237
|
+
this.pxmm = pxmm;
|
|
238
|
+
this.size = { width: _width, height: _height };
|
|
239
|
+
this.container.style.width = _width + 'px';
|
|
240
|
+
this.container.style.height = _height + 'px';
|
|
241
|
+
}
|
|
242
|
+
});
|
|
22
243
|
this.five = five;
|
|
23
244
|
this.selector = params.selector;
|
|
24
245
|
this.configs = omit(params, ['selector']);
|
|
246
|
+
this.five.addExtraElement(this.container);
|
|
25
247
|
// 设置 container 样式
|
|
26
248
|
this.container.classList.add('floorplan-plugin');
|
|
27
249
|
Object.assign(this.container.style, pluginStyle);
|
|
28
250
|
// 如果初始化的时候模型已经加载完毕了,就不用再等 modelLoaded
|
|
29
|
-
this.five.model.loaded
|
|
251
|
+
this.five.model.loaded
|
|
252
|
+
? this.onFiveModelLoaded()
|
|
253
|
+
: five.once('modelLoaded', this.onFiveModelLoaded);
|
|
30
254
|
this.five.once('dispose', this.dispose);
|
|
31
|
-
this.five.on('modeChange', this.
|
|
32
|
-
this.five.on('
|
|
33
|
-
this.five.on('
|
|
255
|
+
this.five.on('modeChange', this.onFiveModeChange);
|
|
256
|
+
this.five.on('panGesture', this.onFivePanGesture);
|
|
257
|
+
this.five.on('mouseWheel', this.onFivePinchGesture);
|
|
258
|
+
this.five.on('panoArrived', this.onFivePanoArrived);
|
|
259
|
+
this.five.on('pinchGesture', this.onFivePinchGesture);
|
|
260
|
+
this.five.on('wantsGesture', this.onFiveWantsGesture);
|
|
261
|
+
this.five.on('wantsMoveToPano', this.onFiveWantsMoveToPano);
|
|
262
|
+
this.five.on('initAnimationEnded', this.onFiveInitAnimationEnded);
|
|
34
263
|
this.five.on('modelShownFloorChange', this.onModelShownFloorChange);
|
|
35
264
|
}
|
|
36
265
|
/** 加载户型图数据 */
|
|
@@ -45,80 +274,17 @@ export class TopviewFloorplanPluginController {
|
|
|
45
274
|
wrapper.appendChild(this.container);
|
|
46
275
|
return this;
|
|
47
276
|
}
|
|
48
|
-
dispose = () => {
|
|
49
|
-
this.hide();
|
|
50
|
-
this.container?.remove();
|
|
51
|
-
this.app?.$destroy();
|
|
52
|
-
this.five.off('modeChange', this.handleModeChange);
|
|
53
|
-
this.five.off('panoArrived', this.handlePanoArrived);
|
|
54
|
-
this.five.off('modelLoaded', this.handleModelLoaded);
|
|
55
|
-
this.five.off('wantsMoveToPano', this.handleWantsMoveToPano);
|
|
56
|
-
this.five.off('wantsPanGesture', this.handleWantsPanGesture);
|
|
57
|
-
this.five.off('initAnimationEnded', this.handleInitAnimationEnded);
|
|
58
|
-
this.five.off('modelShownFloorChange', this.onModelShownFloorChange);
|
|
59
|
-
};
|
|
60
|
-
/** 模型楼层高亮改变时,自动进行楼层切换 */
|
|
61
|
-
onModelShownFloorChange = (shownFloor) => {
|
|
62
|
-
if (shownFloor === null)
|
|
63
|
-
return;
|
|
64
|
-
this.floorIndex = shownFloor;
|
|
65
|
-
this.render();
|
|
66
|
-
};
|
|
67
|
-
/** panoIndex 改变时,更新 floorIndex */
|
|
68
|
-
handlePanoArrived = (index) => {
|
|
69
|
-
if (!this.five?.work)
|
|
70
|
-
return;
|
|
71
|
-
this.panoIndex = index;
|
|
72
|
-
this.floorIndex = this.five.work.observers[index].floorIndex;
|
|
73
|
-
};
|
|
74
|
-
/** 配置了 preventRoomClick 后,在户型图展示时阻止 Five 走点 */
|
|
75
|
-
handleWantsMoveToPano = () => {
|
|
76
|
-
if (!this.visible)
|
|
77
|
-
return;
|
|
78
|
-
if (this.configs.preventRoomClick)
|
|
79
|
-
return false;
|
|
80
|
-
return;
|
|
81
|
-
};
|
|
82
|
-
/** 在户型图展示时阻止 Five 滑动行为 */
|
|
83
|
-
handleWantsPanGesture = () => {
|
|
84
|
-
if (!this.visible)
|
|
85
|
-
return;
|
|
86
|
-
return false;
|
|
87
|
-
};
|
|
88
|
-
handleModelLoaded = () => {
|
|
89
|
-
if (this.wrapper)
|
|
90
|
-
return;
|
|
91
|
-
if (!this.selector)
|
|
92
|
-
return;
|
|
93
|
-
const wrapper = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
94
|
-
if (!wrapper)
|
|
95
|
-
throw new Error('不正确的父容器选择器');
|
|
96
|
-
this.wrapper = wrapper;
|
|
97
|
-
wrapper.append(this.container);
|
|
98
|
-
};
|
|
99
|
-
/** 非 Topview 态隐藏户型图 */
|
|
100
|
-
handleModeChange = (mode) => {
|
|
101
|
-
if (mode !== 'Topview')
|
|
102
|
-
return this.hide();
|
|
103
|
-
};
|
|
104
|
-
/** 动画结束后是 Topview 态就展示户型图 */
|
|
105
|
-
handleInitAnimationEnded = () => {
|
|
106
|
-
const { mode } = this.five.getCurrentState();
|
|
107
|
-
if (mode === 'Topview')
|
|
108
|
-
this.show();
|
|
109
|
-
};
|
|
110
277
|
show() {
|
|
111
278
|
this.visible = true;
|
|
112
|
-
this.updateSize();
|
|
113
279
|
this.five.model.show(this.floorIndex);
|
|
280
|
+
this.updatePosition();
|
|
281
|
+
this.updateSize();
|
|
114
282
|
const renderDuration = 500;
|
|
115
283
|
const modelOpacity = this.configs.modelOpacity;
|
|
116
284
|
if (typeof modelOpacity === 'number') {
|
|
117
285
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
118
286
|
}
|
|
119
287
|
this.render(renderDuration);
|
|
120
|
-
this.five.on('wantsMoveToPano', this.handleWantsMoveToPano);
|
|
121
|
-
this.five.on('wantsPanGesture', this.handleWantsPanGesture);
|
|
122
288
|
}
|
|
123
289
|
hide() {
|
|
124
290
|
const modelOpacity = 1;
|
|
@@ -126,54 +292,39 @@ export class TopviewFloorplanPluginController {
|
|
|
126
292
|
this.visible = false;
|
|
127
293
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
128
294
|
this.render();
|
|
129
|
-
this.five.on('wantsMoveToPano', this.handleWantsMoveToPano);
|
|
130
|
-
this.five.on('wantsPanGesture', this.handleWantsPanGesture);
|
|
131
295
|
}
|
|
132
|
-
/**
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (!
|
|
296
|
+
/** 更新户型图位置 */
|
|
297
|
+
updatePosition() {
|
|
298
|
+
var _a;
|
|
299
|
+
const modelCenter = (_a = this.five.model) === null || _a === void 0 ? void 0 : _a.bounding.getCenter(new THREE.Vector3());
|
|
300
|
+
if (!modelCenter)
|
|
137
301
|
return;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
// 每毫米对应的 px 值
|
|
145
|
-
const pxmm = getPxmm(this.five, this.wrapper);
|
|
146
|
-
const _width = Math.ceil(width * pxmm);
|
|
147
|
-
const _height = Math.ceil(height * pxmm);
|
|
148
|
-
this.pxmm = pxmm;
|
|
149
|
-
this.size = { width: _width, height: _height };
|
|
150
|
-
this.container.style.width = _width + 'px';
|
|
151
|
-
this.container.style.height = _height + 'px';
|
|
152
|
-
};
|
|
302
|
+
const ndcModelCenter = modelCenter.clone().project(this.five.camera);
|
|
303
|
+
const left = (ndcModelCenter.x + 1) / 2;
|
|
304
|
+
const top = -(ndcModelCenter.y - 1) / 2;
|
|
305
|
+
this.container.style.left = left * 100 + '%';
|
|
306
|
+
this.container.style.top = top * 100 + '%';
|
|
307
|
+
}
|
|
153
308
|
render(duration) {
|
|
154
309
|
if (!this.container || !this.floorplanData)
|
|
155
310
|
return;
|
|
156
311
|
if (this.size.width === 0)
|
|
157
312
|
return;
|
|
158
|
-
const { getLabelElement, cameraImageUrl,
|
|
159
|
-
const handleClick = preventRoomClick ? () => false : undefined;
|
|
160
|
-
console.log('🚀 ~ TopviewFloorplanPluginController ~ handleClick', handleClick);
|
|
313
|
+
const { northDesc, getLabelElement, cameraImageUrl, hoverEnable, compassEnable, roomLabelsEnable, ruleLabelsEnable, } = this.configs;
|
|
161
314
|
const props = {
|
|
162
|
-
|
|
163
|
-
|
|
315
|
+
getLabelElement,
|
|
316
|
+
northDesc: northDesc !== null && northDesc !== void 0 ? northDesc : '北',
|
|
164
317
|
cameraImageUrl,
|
|
165
318
|
visible: this.visible,
|
|
166
|
-
duration: duration
|
|
319
|
+
duration: duration !== null && duration !== void 0 ? duration : 0,
|
|
167
320
|
panoIndex: this.panoIndex,
|
|
168
321
|
floorIndex: this.floorIndex,
|
|
169
322
|
floorplanData: this.floorplanData,
|
|
170
|
-
hoverEnable: hoverEnable
|
|
171
|
-
compassEnable: compassEnable
|
|
172
|
-
ruleLabelsEnable: ruleLabelsEnable
|
|
173
|
-
roomLabelsEnable: roomLabelsEnable
|
|
323
|
+
hoverEnable: hoverEnable !== null && hoverEnable !== void 0 ? hoverEnable : false,
|
|
324
|
+
compassEnable: compassEnable !== null && compassEnable !== void 0 ? compassEnable : true,
|
|
325
|
+
ruleLabelsEnable: ruleLabelsEnable !== null && ruleLabelsEnable !== void 0 ? ruleLabelsEnable : true,
|
|
326
|
+
roomLabelsEnable: roomLabelsEnable !== null && roomLabelsEnable !== void 0 ? roomLabelsEnable : true,
|
|
174
327
|
lastPanoramaLongitude: this.lastPanoramaLongitude,
|
|
175
|
-
getLabelElement,
|
|
176
|
-
onRoomHeightClick: handleClick,
|
|
177
328
|
};
|
|
178
329
|
if (!this.app) {
|
|
179
330
|
this.app = new Main({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FivePlugin } from '@realsee/five';
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import { TopviewFloorplanPluginParameterType, TopviewFloorplanPluginReturnType } from './Controller';
|
|
3
3
|
export declare const TopviewFloorplanPlugin: FivePlugin<TopviewFloorplanPluginParameterType, TopviewFloorplanPluginReturnType>;
|
|
4
4
|
export default TopviewFloorplanPlugin;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var FLOOR_PLAN_ATTACHED_TO;
|
|
2
|
+
(function (FLOOR_PLAN_ATTACHED_TO) {
|
|
3
|
+
FLOOR_PLAN_ATTACHED_TO[FLOOR_PLAN_ATTACHED_TO["FLOOR"] = 1] = "FLOOR";
|
|
4
|
+
FLOOR_PLAN_ATTACHED_TO[FLOOR_PLAN_ATTACHED_TO["CEILING"] = 2] = "CEILING";
|
|
5
|
+
FLOOR_PLAN_ATTACHED_TO[FLOOR_PLAN_ATTACHED_TO["BOUNDING_CENTER"] = 3] = "BOUNDING_CENTER";
|
|
6
|
+
})(FLOOR_PLAN_ATTACHED_TO || (FLOOR_PLAN_ATTACHED_TO = {}));
|
|
@@ -7,7 +7,7 @@ export declare function pathD(points: Vector2Position[], options?: {
|
|
|
7
7
|
format?: (vector: Vector2Position) => Vector2Position;
|
|
8
8
|
}): string;
|
|
9
9
|
/** 把户型图上点点位转换到 SVG 上的点位 */
|
|
10
|
-
export default function formatFloorplanPoint({ x, y }: Vector2Position,
|
|
10
|
+
export default function formatFloorplanPoint({ x, y }: Vector2Position, bounding: FloorplanBounding): {
|
|
11
11
|
x: number;
|
|
12
12
|
y: number;
|
|
13
13
|
};
|
|
@@ -9,7 +9,7 @@ export function pathD(points, options = {}) {
|
|
|
9
9
|
d += 'M' + point;
|
|
10
10
|
return d;
|
|
11
11
|
}
|
|
12
|
-
if (needA
|
|
12
|
+
if (needA === null || needA === void 0 ? void 0 : needA[index]) {
|
|
13
13
|
d += 'A' + needA[index] + ',' + point;
|
|
14
14
|
return d;
|
|
15
15
|
}
|
|
@@ -19,9 +19,9 @@ export function pathD(points, options = {}) {
|
|
|
19
19
|
return d + (needZ ? 'Z' : '');
|
|
20
20
|
}
|
|
21
21
|
/** 把户型图上点点位转换到 SVG 上的点位 */
|
|
22
|
-
export default function formatFloorplanPoint({ x, y },
|
|
22
|
+
export default function formatFloorplanPoint({ x, y }, bounding) {
|
|
23
23
|
const { max, min } = bounding;
|
|
24
|
-
return { x:
|
|
24
|
+
return { x: x - min.x, y: max.y - y };
|
|
25
25
|
}
|
|
26
26
|
/** 模型坐标转户型图坐标 */
|
|
27
27
|
export function modelPosition2FloorplanPosition(position, floorplanData) {
|
package/libs/index.d.ts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export { default as ModelEntryDoorGuidePlugin } from './ModelEntryDoorGuidePlugin';
|
|
17
|
-
export { default as CameraMovementPlugin } from './CameraMovementPlugin';
|
|
18
|
-
export type { PanoCompassPluginParameterType, PanoCompassPluginExportType, PanoCompassPluginData, } from './PanoCompassPlugin';
|
|
19
|
-
export { default as PanoCompassPluginPlugin } from './PanoCompassPlugin';
|
|
1
|
+
export * from './ModelViewPlugin';
|
|
2
|
+
export * from './CSS3DRenderPlugin';
|
|
3
|
+
export * from './PanoCursorRaycasterPlugin';
|
|
4
|
+
export * from './ModelRoomLabelPlugin';
|
|
5
|
+
export * from './floorplan';
|
|
6
|
+
export * from './ModelChassisCompassPlugin';
|
|
7
|
+
export * from './ModelEntryDoorGuidePlugin';
|
|
8
|
+
export * from './CameraMovementPlugin';
|
|
9
|
+
export * from './PanoRulerPlugin';
|
|
10
|
+
export * from './PanoCompassPlugin';
|
|
11
|
+
export * from './PanoMeasurePlugin';
|
|
12
|
+
export * from './PanoSpatialTagPlugin';
|
|
13
|
+
export * from './ModelItemLabelPlugin';
|
|
14
|
+
export * from './ModelTVVideoPlugin';
|
|
15
|
+
export * from './ItemLabelPlugin';
|
package/libs/index.js
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
export
|
|
1
|
+
export * from './ModelViewPlugin';
|
|
2
|
+
export * from './CSS3DRenderPlugin';
|
|
3
|
+
export * from './PanoCursorRaycasterPlugin';
|
|
4
|
+
// 模型房屋标签
|
|
5
|
+
export * from './ModelRoomLabelPlugin';
|
|
6
|
+
// floorplan
|
|
7
|
+
export * from './floorplan';
|
|
8
|
+
// 模型底盘
|
|
9
|
+
export * from './ModelChassisCompassPlugin';
|
|
10
|
+
// 模型入户门
|
|
11
|
+
export * from './ModelEntryDoorGuidePlugin';
|
|
12
|
+
export * from './CameraMovementPlugin';
|
|
13
|
+
// 全景标尺
|
|
14
|
+
export * from './PanoRulerPlugin';
|
|
15
|
+
// 全景指南针
|
|
16
|
+
export * from './PanoCompassPlugin';
|
|
17
|
+
// pc 全景测量工具
|
|
18
|
+
export * from './PanoMeasurePlugin';
|
|
19
|
+
// 空间三维标签
|
|
20
|
+
export * from './PanoSpatialTagPlugin';
|
|
21
|
+
// 模型物品标签插件
|
|
22
|
+
export * from './ModelItemLabelPlugin';
|
|
23
|
+
// 模型电视插件
|
|
24
|
+
export * from './ModelTVVideoPlugin';
|
|
25
|
+
// 物品标签
|
|
26
|
+
export * from './ItemLabelPlugin';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var _a;
|
|
1
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
3
|
const __EVENT__ = '__events__';
|
|
3
4
|
/**
|
|
@@ -5,8 +6,13 @@ const __EVENT__ = '__events__';
|
|
|
5
6
|
* 观察者模式(供前端使用),Node端推荐<a href="https://nodejs.org/api/events.html#events_class_eventemitter">EventEmitter</a>。
|
|
6
7
|
*/
|
|
7
8
|
export default class Subscribe {
|
|
8
|
-
[__EVENT__];
|
|
9
9
|
constructor() {
|
|
10
|
+
Object.defineProperty(this, _a, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: void 0
|
|
15
|
+
});
|
|
10
16
|
this[__EVENT__] = {};
|
|
11
17
|
}
|
|
12
18
|
/**
|
|
@@ -99,3 +105,4 @@ export default class Subscribe {
|
|
|
99
105
|
return canceled;
|
|
100
106
|
}
|
|
101
107
|
}
|
|
108
|
+
_a = __EVENT__;
|