@realsee/dnalogel 0.1.3 → 0.1.7-alpha.10
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/components/ARVideoFigure/ARVideoFigureMesh.js +56 -32
- package/components/ARVideoFigure/ARVideoFigureScene.js +30 -19
- package/components/ARVideoFigure/ImgBgTransparent.js +22 -6
- package/components/ARVideoFigure/ImgBgTransparentMesh.js +40 -30
- package/components/ARVideoFigure/fragmentShader.js +2 -0
- package/components/ARVideoFigure/index.js +22 -6
- package/components/ARVideoFigure/vertexShader.js +2 -0
- package/components/GLTFView/index.d.ts +123 -0
- package/components/GLTFView/index.js +204 -0
- package/components/GlassFilters/index.js +25 -1
- package/components/ModelView/ModelViewController.js +39 -29
- package/components/ModelView/index.js +4 -2
- package/components/PaintBrush/index.js +15 -1
- package/components/PanoTag/index.js +2 -0
- package/data/1aGKl9JmrlXMXx8d.js +2 -0
- package/data/54djM0oR6ky3Ey8e.d.ts +55 -0
- package/data/54djM0oR6ky3Ey8e.js +350 -0
- package/data/6gyq3v1verxD7JO1.js +2 -0
- package/data/8054djM0oR6ky3Ey8e.d.ts +55 -0
- package/data/8054djM0oR6ky3Ey8e.js +350 -0
- package/data/81zxMaeVKLQU93OZMG.d.ts +49 -0
- package/data/81zxMaeVKLQU93OZMG.js +633 -0
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +2 -0
- package/data/PrXel3aqGbp34JQn.js +141 -1
- package/data/XJ6NMLWnkAY3Rdx8.js +2 -0
- package/data/YdoNP9K4rwQDwjJr.js +2 -0
- package/data/ZLvK29zj4L29Jowd.d.ts +55 -0
- package/data/ZLvK29zj4L29Jowd.js +372 -0
- package/data/_vLykj3NWrllMrG06.d.ts +95 -0
- package/data/_vLykj3NWrllMrG06.js +1 -0
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +2 -0
- package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +5 -0
- package/data/extrude-walls/ZLvK29zj4L29Jowd.js +14 -0
- package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +5 -0
- package/data/extrude-walls/lo024DEgzanMj5BE.js +14 -0
- package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +2 -0
- package/data/lo024DEgzanMj5BE.d.ts +55 -0
- package/data/lo024DEgzanMj5BE.js +966 -0
- package/data/oPzy3ApbjjpD8YdR.js +2 -0
- package/data/qjAxMG4XbPn96wKG.js +2 -0
- package/data/rXel3aPQRRBD4JQn.js +2 -0
- package/data/vLykj3NWrllMrG06.js +337 -71
- package/data/wz0QV9KA4ugyo9ME.js +2 -0
- package/data/zxMawr9raSg8LYjG.js +2 -0
- package/examples/FiveStateController/index.js +9 -15
- package/examples/VRHouse/Mobile.js +15 -1
- package/examples/VRHouse/PC.js +15 -1
- package/examples/VRHouse/index.js +15 -1
- package/index.js +4 -2
- package/libs/gltf-viewer/Subscribe.d.ts +76 -0
- package/libs/gltf-viewer/Subscribe.js +231 -0
- package/libs/gltf-viewer/coordsMoveByOffset.d.ts +13 -0
- package/libs/gltf-viewer/coordsMoveByOffset.js +22 -0
- package/libs/gltf-viewer/coordsToDirection.d.ts +5 -0
- package/{components/PBRView/index.js → libs/gltf-viewer/coordsToDirection.js} +29 -19
- package/libs/gltf-viewer/formatRad.d.ts +1 -0
- package/libs/gltf-viewer/formatRad.js +13 -0
- package/libs/gltf-viewer/getFrameTime.d.ts +1 -0
- package/libs/gltf-viewer/getFrameTime.js +28 -0
- package/libs/gltf-viewer/index.d.ts +79 -0
- package/libs/gltf-viewer/index.js +765 -0
- package/libs/gltf-viewer/mouseWheel.d.ts +2 -0
- package/libs/gltf-viewer/mouseWheel.js +59 -0
- package/libs/gltf-viewer/requestAnimationFrame.d.ts +1 -0
- package/libs/gltf-viewer/requestAnimationFrame.js +18 -0
- package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +1 -0
- package/libs/gltf-viewer/requestAnimationFrameInterval.js +31 -0
- package/libs/gltf-viewer/uuid.d.ts +4 -0
- package/libs/gltf-viewer/uuid.js +28 -0
- package/package.json +8 -4
- package/plugins/AutoPreloadPlugin/index.js +26 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +24 -16
- package/plugins/CSS3DRenderPlugin/index.js +45 -12
- package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.js +34 -0
- package/plugins/CameraMovementPlugin/index.js +33 -9
- package/plugins/CameraMovementPlugin/typing.js +2 -0
- package/plugins/ModelChassisCompassPlugin/index.d.ts +1 -1
- package/plugins/ModelChassisCompassPlugin/index.js +25 -10
- package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
- package/plugins/ModelEntryDoorGuidePlugin/index.js +55 -28
- package/plugins/ModelExtrudeWallsPlugin/index.d.ts +16 -0
- package/plugins/ModelExtrudeWallsPlugin/index.js +252 -0
- package/plugins/ModelRoomLabelPlugin/Controller.js +30 -23
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +26 -8
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +35 -25
- package/plugins/ModelRoomLabelPlugin/index.d.ts +4 -0
- package/plugins/ModelRoomLabelPlugin/index.js +9 -2
- package/plugins/ModelRoomLabelPlugin/typings.js +2 -0
- package/plugins/ModelRoomLabelPlugin/utils/parseData.js +6 -0
- package/plugins/ModelTVVideoPlugin/index.js +100 -16
- package/plugins/ModelViewPlugin/index.js +25 -1
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +29 -25
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +15 -1
- package/plugins/PanoCursorRaycasterPlugin/index.js +13 -6
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +4 -2
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +15 -1
- package/plugins/PanoDoorLabelPlugin/index.js +2 -0
- package/plugins/PanoIRobotPlugin/index.js +2 -0
- package/plugins/PanoMaskSelectorPlugin/compare.js +2 -0
- package/plugins/PanoMaskSelectorPlugin/createBox.js +22 -1
- package/plugins/PanoMaskSelectorPlugin/createTextures.js +17 -1
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +2 -0
- package/plugins/PanoMaskSelectorPlugin/index.js +106 -18
- package/plugins/PanoMaskSelectorPlugin/vertexShader.js +2 -0
- package/plugins/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/plugins/PanoMeasurePlugin/Controller/BaseController.js +103 -0
- package/plugins/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/plugins/PanoMeasurePlugin/Controller/EditController.js +341 -0
- package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.js +69 -0
- package/plugins/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/plugins/PanoMeasurePlugin/Controller/WatchController.js +371 -0
- package/plugins/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/plugins/PanoMeasurePlugin/Controller/index.js +230 -0
- package/plugins/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/plugins/PanoMeasurePlugin/Model/index.js +235 -0
- package/plugins/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/plugins/PanoMeasurePlugin/Model/line.js +121 -0
- package/plugins/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/plugins/PanoMeasurePlugin/Model/point.js +68 -0
- package/plugins/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/plugins/PanoMeasurePlugin/Model/polyline.js +109 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +11 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +11 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +11 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.js +182 -0
- package/plugins/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/plugins/PanoMeasurePlugin/Modules/FiveHelper.js +66 -0
- package/plugins/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/plugins/PanoMeasurePlugin/Modules/GuideController.js +107 -0
- package/plugins/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/plugins/PanoMeasurePlugin/Modules/Magnifier.js +139 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.js +26 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +169 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +59 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/index.js +123 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/style.js +103 -0
- package/plugins/PanoMeasurePlugin/index.d.ts +7 -0
- package/plugins/PanoMeasurePlugin/index.js +20 -0
- package/plugins/PanoMeasurePlugin/typings/data.d.ts +28 -0
- package/plugins/PanoMeasurePlugin/typings/data.js +7 -0
- package/plugins/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
- package/plugins/PanoMeasurePlugin/typings/event.type.js +7 -0
- package/plugins/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/plugins/PanoMeasurePlugin/typings/utils.type.js +7 -0
- package/plugins/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/utils/clearGroup.js +16 -0
- package/plugins/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/plugins/PanoMeasurePlugin/utils/constants.js +47 -0
- package/plugins/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/plugins/PanoMeasurePlugin/utils/distanceDom.js +147 -0
- package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.js +37 -0
- package/plugins/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/plugins/PanoMeasurePlugin/utils/findClosestPoint.js +49 -0
- package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +20 -0
- package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +33 -0
- package/plugins/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/plugins/PanoMeasurePlugin/utils/ironbox.js +14 -0
- package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.js +16 -0
- package/plugins/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/plugins/PanoMeasurePlugin/utils/line.js +61 -0
- package/plugins/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/plugins/PanoMeasurePlugin/utils/math.js +57 -0
- package/plugins/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/utils/mouseGroup.js +42 -0
- package/plugins/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/plugins/PanoMeasurePlugin/utils/ndc2Screen.js +16 -0
- package/plugins/PanoRulerPlugin/data/roomInfo.js +2 -0
- package/plugins/PanoRulerPlugin/data/roomRules.js +2 -0
- package/plugins/PanoRulerPlugin/index.d.ts +4 -0
- package/plugins/PanoRulerPlugin/index.js +74 -21
- package/plugins/PanoRulerPlugin/typings.js +2 -0
- package/plugins/PanoTVVideoPlugin/index.d.ts +2 -0
- package/plugins/PanoTVVideoPlugin/index.js +108 -26
- package/plugins/TreasurePlugin/Controller.js +58 -52
- package/plugins/TreasurePlugin/TreasureFaceAnime.js +36 -21
- package/plugins/TreasurePlugin/TreasureObject.js +60 -56
- package/plugins/TreasurePlugin/TreasureOpenAnime.js +38 -19
- package/plugins/TreasurePlugin/constants.js +2 -0
- package/plugins/TreasurePlugin/index.js +2 -0
- package/plugins/TreasurePlugin/typings.js +2 -0
- package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -1
- package/plugins/floorplan/Assets/floorplanExtraObject.js +5 -3
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.d.ts +5 -2
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +93 -99
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +25 -7
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +22 -8
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +28 -4
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +25 -5
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.d.ts +11 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.js +174 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.d.ts +8 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.js +178 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +32 -6
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +3 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +30 -8
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/index.js +4 -2
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/typings/utility.d.ts +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/typings/utility.js +7 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +1 -1
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +3 -1
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +14 -22
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +26 -3
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +10 -6
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +21 -5
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +28 -4
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +22 -6
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +29 -19
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +2 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +1 -1
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +47 -50
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +4 -2
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +3 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +66 -61
- package/plugins/floorplan/TopviewFloorplanPlugin/index.js +2 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/style.js +2 -0
- package/plugins/floorplan/components/FloorplanImage.js +15 -1
- package/plugins/floorplan/index.d.ts +4 -0
- package/plugins/floorplan/index.js +13 -0
- package/plugins/floorplan/typings/floorplanData.d.ts +2 -0
- package/plugins/floorplan/typings/floorplanData.js +2 -0
- package/plugins/floorplan/typings/floorplanServerData.d.ts +3 -1
- package/plugins/floorplan/typings/floorplanServerData.js +5 -3
- package/plugins/floorplan/utils/formatData.js +31 -12
- package/plugins/floorplan/utils/formatPosition.js +10 -8
- package/shared-utils/Preloader.js +6 -0
- package/shared-utils/Subscribe.js +36 -16
- package/shared-utils/animationFrame/BetterTween.js +28 -27
- package/shared-utils/animationFrame/calculateProgress.js +2 -0
- package/shared-utils/animationFrame/formatRad.js +2 -0
- package/shared-utils/animationFrame/index.js +12 -0
- package/shared-utils/animationFrame/tween.js +17 -1
- package/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/shared-utils/{changeModelCanvansOpacity.js → changeModelCanvasOpacity.js} +16 -2
- package/shared-utils/createCanvasTextTexture.js +2 -0
- package/shared-utils/createFiveContainer.js +23 -17
- package/shared-utils/createLine/index.js +15 -1
- package/shared-utils/debounce.js +4 -0
- package/shared-utils/equal.js +15 -4
- package/shared-utils/filter.js +36 -2
- package/shared-utils/five/changeMode.js +13 -17
- package/shared-utils/five/useFivePlugin.js +2 -0
- package/shared-utils/formatRad.js +2 -0
- package/shared-utils/getPxmm.js +15 -1
- package/shared-utils/getRandomColor.js +10 -0
- package/shared-utils/isNil.js +2 -0
- package/shared-utils/isTruelyObject.js +4 -0
- package/shared-utils/math/evenNumber.d.ts +3 -1
- package/shared-utils/math/evenNumber.js +6 -2
- package/shared-utils/math/planimetry.js +10 -0
- package/shared-utils/math/rad2Deg.js +2 -0
- package/shared-utils/nearlyEqual.js +2 -0
- package/shared-utils/nextFrame.js +2 -0
- package/shared-utils/noop.js +2 -0
- package/shared-utils/object3d2LocalMatrix.js +20 -14
- package/shared-utils/px2rem.js +10 -0
- package/shared-utils/removeArrayItem.d.ts +7 -0
- package/shared-utils/removeArrayItem.js +22 -0
- package/shared-utils/tap.js +2 -0
- package/shared-utils/three/centerPoint.js +2 -0
- package/shared-utils/three/getExtraModelLoader.js +14 -0
- package/shared-utils/three/getNormal.js +4 -0
- package/shared-utils/three/getTextureLoader.js +16 -0
- package/shared-utils/three/loadFbxObj.js +13 -5
- package/shared-utils/three/loadTexture.d.ts +2 -2
- package/shared-utils/three/loadTexture.js +33 -6
- package/shared-utils/three/transformPositionToVector3.js +2 -0
- package/shared-utils/three/transfromToMeshBasicMaterial.js +6 -0
- package/shared-utils/throttle.js +4 -0
- package/shared-utils/to.js +8 -4
- package/shared-utils/useDebounce.js +6 -0
- package/shared-utils/useThrottle.js +6 -0
- package/shared-utils/uuid.js +8 -0
- package/shared-utils/vectorTocoordinates.js +2 -0
- package/typedoc/components.js +2 -0
- package/typedoc/libs.d.ts +1 -0
- package/typedoc/libs.js +7 -0
- package/typedoc/plugins.js +2 -0
- package/typedoc/shared-utils.js +2 -0
- package/typedoc/typings.js +2 -0
- package/typings/math.type.js +2 -0
- package/typings/utils.type.js +2 -0
- package/components/PBRView/index.d.ts +0 -14
- package/shared-utils/changeModelCanvansOpacity.d.ts +0 -2
|
@@ -1,12 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
+
|
|
19
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
20
|
|
|
5
21
|
Object.defineProperty(exports, "__esModule", {
|
|
6
22
|
value: true
|
|
7
23
|
});
|
|
8
24
|
exports["default"] = void 0;
|
|
9
25
|
|
|
26
|
+
require("core-js/modules/es.object.assign.js");
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.array.every.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.object.keys.js");
|
|
31
|
+
|
|
32
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
33
|
+
|
|
34
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
35
|
+
|
|
10
36
|
var _Camera = _interopRequireDefault(require("./Camera"));
|
|
11
37
|
|
|
12
38
|
var React = _interopRequireWildcard(require("react"));
|
|
@@ -19,22 +45,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
45
|
|
|
20
46
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
47
|
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
-
|
|
28
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
-
|
|
30
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
31
|
-
|
|
32
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
33
|
-
|
|
34
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
35
|
-
|
|
36
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
-
|
|
38
48
|
var _default = /*#__PURE__*/React.memo(function Content(props) {
|
|
39
49
|
if (!props.floorplanData) return null;
|
|
40
50
|
var five = props.five;
|
|
@@ -42,7 +52,7 @@ var _default = /*#__PURE__*/React.memo(function Content(props) {
|
|
|
42
52
|
var observers = five.work.observers;
|
|
43
53
|
|
|
44
54
|
var _React$useState = React.useState(observers[panoIndex].floorIndex),
|
|
45
|
-
_React$useState2 =
|
|
55
|
+
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
46
56
|
floorIndex = _React$useState2[0],
|
|
47
57
|
changeFloorIndex = _React$useState2[1];
|
|
48
58
|
|
|
@@ -63,7 +73,7 @@ var _default = /*#__PURE__*/React.memo(function Content(props) {
|
|
|
63
73
|
}, []);
|
|
64
74
|
return /*#__PURE__*/React.createElement("div", {
|
|
65
75
|
style: Object.assign({}, _index.contentStyle, sizeStyle)
|
|
66
|
-
}, /*#__PURE__*/React.createElement(_NowFloor["default"],
|
|
76
|
+
}, /*#__PURE__*/React.createElement(_NowFloor["default"], (0, _extends2["default"])({}, props, {
|
|
67
77
|
floorIndex: floorIndex
|
|
68
78
|
})), /*#__PURE__*/React.createElement(_Camera["default"], props));
|
|
69
79
|
}, function (prev, next) {
|
|
@@ -19,7 +19,7 @@ export default class PanoFloorplanRadarPluginController {
|
|
|
19
19
|
private wrapper;
|
|
20
20
|
private size;
|
|
21
21
|
private extraObjects?;
|
|
22
|
-
private
|
|
22
|
+
private originExtraObjects?;
|
|
23
23
|
private configs;
|
|
24
24
|
constructor(five: Five, params?: PanoFloorplanRadarPluginControllerParameter);
|
|
25
25
|
dispose: () => void;
|
|
@@ -1,80 +1,79 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
5
|
+
require("core-js/modules/es.string.iterator.js");
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _Content = _interopRequireDefault(require("./Content"));
|
|
7
|
+
require("core-js/modules/es.weak-map.js");
|
|
13
8
|
|
|
14
|
-
|
|
9
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
15
10
|
|
|
16
|
-
|
|
11
|
+
require("core-js/modules/es.object.define-property.js");
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
21
16
|
|
|
22
|
-
|
|
17
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
23
18
|
|
|
24
|
-
|
|
19
|
+
Object.defineProperty(exports, "__esModule", {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
exports["default"] = void 0;
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
27
25
|
|
|
28
|
-
|
|
26
|
+
require("core-js/modules/es.object.to-string.js");
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
require("core-js/modules/es.promise.js");
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
require("core-js/modules/es.object.assign.js");
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
39
37
|
|
|
40
|
-
|
|
38
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
var React = _interopRequireWildcard(require("react"));
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
var _Content = _interopRequireDefault(require("./Content"));
|
|
49
47
|
|
|
50
|
-
var
|
|
51
|
-
function PanoFloorplanRadarPluginController(five, params) {
|
|
52
|
-
var _this = this;
|
|
48
|
+
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
53
49
|
|
|
54
|
-
|
|
50
|
+
var _formatData = _interopRequireWildcard(require("../utils/formatData"));
|
|
55
51
|
|
|
56
|
-
|
|
52
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
57
53
|
|
|
58
|
-
|
|
54
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
59
55
|
|
|
60
|
-
|
|
56
|
+
var PanoFloorplanRadarPluginController = /*#__PURE__*/function () {
|
|
57
|
+
function PanoFloorplanRadarPluginController(five, params) {
|
|
58
|
+
var _this = this;
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
(0, _classCallCheck2["default"])(this, PanoFloorplanRadarPluginController);
|
|
61
|
+
(0, _defineProperty2["default"])(this, "pxmm", 0);
|
|
62
|
+
(0, _defineProperty2["default"])(this, "wrapperSelector", '');
|
|
63
|
+
(0, _defineProperty2["default"])(this, "wrapper", null);
|
|
64
|
+
(0, _defineProperty2["default"])(this, "size", {
|
|
63
65
|
width: 0,
|
|
64
66
|
height: 0
|
|
65
67
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
_defineProperty(this, "dispose", function () {
|
|
68
|
+
(0, _defineProperty2["default"])(this, "configs", {});
|
|
69
|
+
(0, _defineProperty2["default"])(this, "dispose", function () {
|
|
70
70
|
_this.wrapper && ReactDOM.unmountComponentAtNode(_this.wrapper);
|
|
71
71
|
});
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(data) {
|
|
72
|
+
(0, _defineProperty2["default"])(this, "load", /*#__PURE__*/function () {
|
|
73
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data) {
|
|
75
74
|
var _wrapper, copyData, floorplanData;
|
|
76
75
|
|
|
77
|
-
return
|
|
76
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
78
77
|
while (1) {
|
|
79
78
|
switch (_context.prev = _context.next) {
|
|
80
79
|
case 0:
|
|
@@ -132,14 +131,13 @@ var PanoFloorplanRadarPluginController = /*#__PURE__*/function () {
|
|
|
132
131
|
return _ref.apply(this, arguments);
|
|
133
132
|
};
|
|
134
133
|
}());
|
|
135
|
-
|
|
136
134
|
this.five = five;
|
|
137
135
|
(params === null || params === void 0 ? void 0 : params.configs) && Object.assign(this.configs, params.configs);
|
|
138
136
|
if (typeof (params === null || params === void 0 ? void 0 : params.wrapper) === 'string') this.wrapperSelector = params.wrapper;else if ((params === null || params === void 0 ? void 0 : params.wrapper) instanceof Element) this.wrapper = params.wrapper;
|
|
139
137
|
five.once('dispose', this.dispose);
|
|
140
138
|
}
|
|
141
139
|
|
|
142
|
-
|
|
140
|
+
(0, _createClass2["default"])(PanoFloorplanRadarPluginController, [{
|
|
143
141
|
key: "appendTo",
|
|
144
142
|
value:
|
|
145
143
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -155,7 +153,7 @@ var PanoFloorplanRadarPluginController = /*#__PURE__*/function () {
|
|
|
155
153
|
}, {
|
|
156
154
|
key: "setExtraObjectsWith3DPositions",
|
|
157
155
|
value: function setExtraObjectsWith3DPositions(data) {
|
|
158
|
-
this.
|
|
156
|
+
this.originExtraObjects = data;
|
|
159
157
|
if (!this.data) return;
|
|
160
158
|
this.extraObjects = (0, _formatData.formatExtraObjects)(data, this.five, this.data);
|
|
161
159
|
this.render();
|
|
@@ -175,7 +173,7 @@ var PanoFloorplanRadarPluginController = /*#__PURE__*/function () {
|
|
|
175
173
|
if (boundingWidth > boundingHeight) return [size, size / boundingWidth * boundingHeight];
|
|
176
174
|
return [size / boundingHeight * boundingWidth, size];
|
|
177
175
|
}(),
|
|
178
|
-
_getSize2 =
|
|
176
|
+
_getSize2 = (0, _slicedToArray2["default"])(_getSize, 2),
|
|
179
177
|
width = _getSize2[0],
|
|
180
178
|
height = _getSize2[1];
|
|
181
179
|
|
|
@@ -190,8 +188,8 @@ var PanoFloorplanRadarPluginController = /*#__PURE__*/function () {
|
|
|
190
188
|
value: function render() {
|
|
191
189
|
if (!this.data || !this.pxmm || !this.wrapper) return;
|
|
192
190
|
|
|
193
|
-
if (!this.extraObjects && this.
|
|
194
|
-
this.extraObjects = (0, _formatData.formatExtraObjects)(this.
|
|
191
|
+
if (!this.extraObjects && this.originExtraObjects) {
|
|
192
|
+
this.extraObjects = (0, _formatData.formatExtraObjects)(this.originExtraObjects, this.five, this.data);
|
|
195
193
|
}
|
|
196
194
|
|
|
197
195
|
var props = {
|
|
@@ -204,10 +202,9 @@ var PanoFloorplanRadarPluginController = /*#__PURE__*/function () {
|
|
|
204
202
|
hoverEnable: this.configs.hoverEnable,
|
|
205
203
|
cameraImage: this.configs.cameraImage
|
|
206
204
|
};
|
|
207
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(_Content["default"],
|
|
205
|
+
ReactDOM.render( /*#__PURE__*/React.createElement(_Content["default"], (0, _extends2["default"])({}, props, this.configs)), this.wrapper);
|
|
208
206
|
}
|
|
209
207
|
}]);
|
|
210
|
-
|
|
211
208
|
return PanoFloorplanRadarPluginController;
|
|
212
209
|
}();
|
|
213
210
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
3
7
|
Object.defineProperty(exports, "__esModule", {
|
|
4
8
|
value: true
|
|
5
9
|
});
|
|
@@ -7,8 +11,6 @@ exports["default"] = exports.PanoFloorplanRadarPlugin = void 0;
|
|
|
7
11
|
|
|
8
12
|
var _Controller = _interopRequireDefault(require("./Controller"));
|
|
9
13
|
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
14
|
var PanoFloorplanRadarPlugin = function PanoFloorplanRadarPlugin(five, params) {
|
|
13
15
|
return new _Controller["default"](five, params);
|
|
14
16
|
};
|
|
@@ -7,6 +7,9 @@ export interface TopviewFloorplanPluginParameterType {
|
|
|
7
7
|
scale?: number;
|
|
8
8
|
hoverEnable?: boolean;
|
|
9
9
|
autoShowEnable?: boolean;
|
|
10
|
+
compassEnable?: boolean;
|
|
11
|
+
ruleLabelsEnable?: boolean;
|
|
12
|
+
roomLabelsEnable?: boolean;
|
|
10
13
|
cameraImage?: {
|
|
11
14
|
style: React.CSSProperties;
|
|
12
15
|
};
|
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
+
|
|
19
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
20
|
|
|
5
21
|
Object.defineProperty(exports, "__esModule", {
|
|
6
22
|
value: true
|
|
7
23
|
});
|
|
8
24
|
exports.TopviewFloorplanPluginController = void 0;
|
|
9
25
|
|
|
26
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.object.assign.js");
|
|
29
|
+
|
|
30
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
31
|
+
|
|
32
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
33
|
+
|
|
34
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
35
|
+
|
|
36
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
37
|
+
|
|
10
38
|
var React = _interopRequireWildcard(require("react"));
|
|
11
39
|
|
|
12
40
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
@@ -15,7 +43,7 @@ var _getPxmm = _interopRequireDefault(require("../../../shared-utils/getPxmm"));
|
|
|
15
43
|
|
|
16
44
|
var _components = _interopRequireDefault(require("../ModelFloorplanPlugin/components"));
|
|
17
45
|
|
|
18
|
-
var
|
|
46
|
+
var _changeModelCanvasOpacity = _interopRequireDefault(require("../../../shared-utils/changeModelCanvasOpacity"));
|
|
19
47
|
|
|
20
48
|
var _style = require("./style");
|
|
21
49
|
|
|
@@ -23,54 +51,30 @@ var _filter = require("../../../shared-utils/filter");
|
|
|
23
51
|
|
|
24
52
|
var _formatData = _interopRequireDefault(require("../utils/formatData"));
|
|
25
53
|
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
-
|
|
28
54
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
55
|
|
|
30
56
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
57
|
|
|
32
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
33
|
-
|
|
34
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
35
|
-
|
|
36
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
37
|
-
|
|
38
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
39
|
-
|
|
40
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
41
|
-
|
|
42
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
43
|
-
|
|
44
58
|
var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
45
59
|
function TopviewFloorplanPluginController(five, params) {
|
|
46
60
|
var _this = this;
|
|
47
61
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
_defineProperty(this, "size", {
|
|
62
|
+
(0, _classCallCheck2["default"])(this, TopviewFloorplanPluginController);
|
|
63
|
+
(0, _defineProperty2["default"])(this, "size", {
|
|
51
64
|
width: 0,
|
|
52
65
|
height: 0
|
|
53
66
|
});
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
_defineProperty(this, "floorIndex", 0);
|
|
62
|
-
|
|
63
|
-
_defineProperty(this, "configs", {});
|
|
64
|
-
|
|
65
|
-
_defineProperty(this, "lastPanoramaLongitude", 0);
|
|
66
|
-
|
|
67
|
-
_defineProperty(this, "handleClick", function () {
|
|
67
|
+
(0, _defineProperty2["default"])(this, "visible", false);
|
|
68
|
+
(0, _defineProperty2["default"])(this, "pxmm", 0);
|
|
69
|
+
(0, _defineProperty2["default"])(this, "panoIndex", 0);
|
|
70
|
+
(0, _defineProperty2["default"])(this, "floorIndex", 0);
|
|
71
|
+
(0, _defineProperty2["default"])(this, "configs", {});
|
|
72
|
+
(0, _defineProperty2["default"])(this, "lastPanoramaLongitude", 0);
|
|
73
|
+
(0, _defineProperty2["default"])(this, "handleClick", function () {
|
|
68
74
|
return false;
|
|
69
75
|
});
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
_defineProperty(this, "dispose", function () {
|
|
76
|
+
(0, _defineProperty2["default"])(this, "container", document.createElement('div'));
|
|
77
|
+
(0, _defineProperty2["default"])(this, "dispose", function () {
|
|
74
78
|
var _this$container;
|
|
75
79
|
|
|
76
80
|
_this.hide();
|
|
@@ -90,28 +94,24 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
90
94
|
|
|
91
95
|
_this.five.off('modelShownFloorChange', _this.onModelShownFloorChange);
|
|
92
96
|
});
|
|
93
|
-
|
|
94
|
-
_defineProperty(this, "onModelShownFloorChange", function (shownFloor) {
|
|
97
|
+
(0, _defineProperty2["default"])(this, "onModelShownFloorChange", function (shownFloor) {
|
|
95
98
|
if (shownFloor === null) return;
|
|
96
99
|
_this.floorIndex = shownFloor;
|
|
97
100
|
|
|
98
101
|
_this.render();
|
|
99
102
|
});
|
|
100
|
-
|
|
101
|
-
_defineProperty(this, "handlePanoArrived", function (index) {
|
|
103
|
+
(0, _defineProperty2["default"])(this, "handlePanoArrived", function (index) {
|
|
102
104
|
var _this$five;
|
|
103
105
|
|
|
104
106
|
if (!((_this$five = _this.five) !== null && _this$five !== void 0 && _this$five.work)) return;
|
|
105
107
|
_this.panoIndex = index;
|
|
106
108
|
_this.floorIndex = _this.five.work.observers[index].floorIndex;
|
|
107
109
|
});
|
|
108
|
-
|
|
109
|
-
_defineProperty(this, "handleWantsGesture", function () {
|
|
110
|
+
(0, _defineProperty2["default"])(this, "handleWantsGesture", function () {
|
|
110
111
|
if (!_this.visible) return;
|
|
111
112
|
return false;
|
|
112
113
|
});
|
|
113
|
-
|
|
114
|
-
_defineProperty(this, "handleModelLoaded", function () {
|
|
114
|
+
(0, _defineProperty2["default"])(this, "handleModelLoaded", function () {
|
|
115
115
|
if (_this.wrapper) return;
|
|
116
116
|
if (!_this.selector) return;
|
|
117
117
|
var wrapper = _this.selector instanceof Element ? _this.selector : document.querySelector(_this.selector);
|
|
@@ -119,19 +119,16 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
119
119
|
_this.wrapper = wrapper;
|
|
120
120
|
wrapper.append(_this.container);
|
|
121
121
|
});
|
|
122
|
-
|
|
123
|
-
_defineProperty(this, "handleModeChange", function (mode) {
|
|
122
|
+
(0, _defineProperty2["default"])(this, "handleModeChange", function (mode) {
|
|
124
123
|
if (mode !== 'Topview') return _this.hide();
|
|
125
124
|
});
|
|
126
|
-
|
|
127
|
-
_defineProperty(this, "handleInitAnimationEnded", function () {
|
|
125
|
+
(0, _defineProperty2["default"])(this, "handleInitAnimationEnded", function () {
|
|
128
126
|
var _this$five$getCurrent = _this.five.getCurrentState(),
|
|
129
127
|
mode = _this$five$getCurrent.mode;
|
|
130
128
|
|
|
131
129
|
if (mode === 'Topview') _this.show();
|
|
132
130
|
});
|
|
133
|
-
|
|
134
|
-
_defineProperty(this, "updateSize", function () {
|
|
131
|
+
(0, _defineProperty2["default"])(this, "updateSize", function () {
|
|
135
132
|
if (!_this.floorplanData) return;
|
|
136
133
|
if (!_this.container || !_this.wrapper) return;
|
|
137
134
|
if (_this.five.getCurrentState().mode !== 'Topview') return; // 计算户型图展示大小
|
|
@@ -156,7 +153,6 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
156
153
|
_this.container.style.width = _width + 'px';
|
|
157
154
|
_this.container.style.height = _height + 'px';
|
|
158
155
|
});
|
|
159
|
-
|
|
160
156
|
this.five = five;
|
|
161
157
|
this.selector = params.selector;
|
|
162
158
|
this.configs = (0, _filter.omit)(params, ['selector']); // 设置 container 样式
|
|
@@ -174,12 +170,12 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
174
170
|
/** 加载户型图数据 */
|
|
175
171
|
|
|
176
172
|
|
|
177
|
-
|
|
173
|
+
(0, _createClass2["default"])(TopviewFloorplanPluginController, [{
|
|
178
174
|
key: "load",
|
|
179
175
|
value: function () {
|
|
180
|
-
var _load =
|
|
176
|
+
var _load = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data) {
|
|
181
177
|
var copyData;
|
|
182
|
-
return
|
|
178
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
183
179
|
while (1) {
|
|
184
180
|
switch (_context.prev = _context.next) {
|
|
185
181
|
case 0:
|
|
@@ -222,7 +218,7 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
222
218
|
this.visible = true;
|
|
223
219
|
this.updateSize();
|
|
224
220
|
this.render(renderDuration);
|
|
225
|
-
(0,
|
|
221
|
+
(0, _changeModelCanvasOpacity["default"])(this.five, modelOpacity, renderDuration);
|
|
226
222
|
this.five.on('wantsGesture', this.handleWantsGesture);
|
|
227
223
|
}
|
|
228
224
|
}, {
|
|
@@ -231,7 +227,7 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
231
227
|
var modelOpacity = 1;
|
|
232
228
|
var renderDuration = 0;
|
|
233
229
|
this.visible = false;
|
|
234
|
-
(0,
|
|
230
|
+
(0, _changeModelCanvasOpacity["default"])(this.five, modelOpacity, renderDuration);
|
|
235
231
|
this.render();
|
|
236
232
|
this.five.off('wantsGesture', this.handleWantsGesture);
|
|
237
233
|
}
|
|
@@ -242,6 +238,13 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
242
238
|
value: function render(duration) {
|
|
243
239
|
if (!this.container) return;
|
|
244
240
|
if (this.size.width === 0) return;
|
|
241
|
+
var _this$configs = this.configs,
|
|
242
|
+
cameraImage = _this$configs.cameraImage,
|
|
243
|
+
hoverEnable = _this$configs.hoverEnable,
|
|
244
|
+
getLabelElement = _this$configs.getLabelElement,
|
|
245
|
+
roomLabelsEnable = _this$configs.roomLabelsEnable,
|
|
246
|
+
compassEnable = _this$configs.compassEnable,
|
|
247
|
+
ruleLabelsEnable = _this$configs.ruleLabelsEnable;
|
|
245
248
|
var props = {
|
|
246
249
|
five: this.five,
|
|
247
250
|
pxmm: this.pxmm,
|
|
@@ -251,16 +254,18 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
251
254
|
floorIndex: this.floorIndex,
|
|
252
255
|
floorplanData: this.floorplanData,
|
|
253
256
|
onRoomHeightClick: this.handleClick,
|
|
254
|
-
cameraImage:
|
|
255
|
-
hoverEnable:
|
|
256
|
-
|
|
257
|
+
cameraImage: cameraImage,
|
|
258
|
+
hoverEnable: hoverEnable !== null && hoverEnable !== void 0 ? hoverEnable : false,
|
|
259
|
+
roomLabelsEnable: roomLabelsEnable !== null && roomLabelsEnable !== void 0 ? roomLabelsEnable : true,
|
|
260
|
+
compassEnable: compassEnable !== null && compassEnable !== void 0 ? compassEnable : true,
|
|
261
|
+
ruleLabelsEnable: ruleLabelsEnable !== null && ruleLabelsEnable !== void 0 ? ruleLabelsEnable : true,
|
|
262
|
+
getLabelElement: getLabelElement,
|
|
257
263
|
lastPanoramaLongitude: this.lastPanoramaLongitude
|
|
258
264
|
};
|
|
259
265
|
|
|
260
266
|
_reactDom["default"].render( /*#__PURE__*/React.createElement(_components["default"], props), this.container);
|
|
261
267
|
}
|
|
262
268
|
}]);
|
|
263
|
-
|
|
264
269
|
return TopviewFloorplanPluginController;
|
|
265
270
|
}();
|
|
266
271
|
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
|
|
17
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
18
|
|
|
5
19
|
Object.defineProperty(exports, "__esModule", {
|
|
6
20
|
value: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.FloorplanPluginServerParams = void 0;
|
|
9
|
+
var FloorplanPluginServerParams = {
|
|
10
|
+
name: 'FloorplanPlugin',
|
|
11
|
+
version: 0
|
|
12
|
+
};
|
|
13
|
+
exports.FloorplanPluginServerParams = FloorplanPluginServerParams;
|