@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,6 +1,22 @@
|
|
|
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
|
|
@@ -9,43 +25,37 @@ exports["default"] = RoomLabelItems;
|
|
|
9
25
|
|
|
10
26
|
var _style = _interopRequireDefault(require("styled-jsx/style"));
|
|
11
27
|
|
|
12
|
-
var
|
|
28
|
+
var _construct2 = _interopRequireDefault(require("@babel/runtime/helpers/construct"));
|
|
13
29
|
|
|
14
|
-
var
|
|
30
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
15
31
|
|
|
16
|
-
var
|
|
32
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
33
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
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
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
34
|
+
require("core-js/modules/es.string.sub.js");
|
|
25
35
|
|
|
26
|
-
|
|
36
|
+
require("core-js/modules/es.array.concat.js");
|
|
27
37
|
|
|
28
|
-
|
|
38
|
+
require("core-js/modules/es.array.for-each.js");
|
|
29
39
|
|
|
30
|
-
|
|
40
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
31
41
|
|
|
32
|
-
|
|
42
|
+
require("core-js/modules/es.array.sort.js");
|
|
33
43
|
|
|
34
|
-
|
|
44
|
+
require("core-js/modules/es.array.map.js");
|
|
35
45
|
|
|
36
|
-
|
|
46
|
+
require("core-js/modules/es.array.filter.js");
|
|
37
47
|
|
|
38
|
-
|
|
48
|
+
require("core-js/modules/es.object.values.js");
|
|
39
49
|
|
|
40
|
-
|
|
50
|
+
var React = _interopRequireWildcard(require("react"));
|
|
41
51
|
|
|
42
|
-
|
|
52
|
+
var _three = require("three");
|
|
43
53
|
|
|
44
|
-
|
|
54
|
+
var _RoomLabelItem = _interopRequireDefault(require("./RoomLabelItem"));
|
|
45
55
|
|
|
46
|
-
function
|
|
56
|
+
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); }
|
|
47
57
|
|
|
48
|
-
function
|
|
58
|
+
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; }
|
|
49
59
|
|
|
50
60
|
function getLabelVisible(five, roomLabelItem) {
|
|
51
61
|
// 先看是不是在当前展示的楼层上
|
|
@@ -59,7 +69,7 @@ function getLabelVisible(five, roomLabelItem) {
|
|
|
59
69
|
raycaster.set(cameraPosition.clone(), position.clone().sub(cameraPosition).normalize());
|
|
60
70
|
|
|
61
71
|
var _five$model$intersect = five.model.intersectRaycaster(raycaster),
|
|
62
|
-
_five$model$intersect2 =
|
|
72
|
+
_five$model$intersect2 = (0, _slicedToArray2["default"])(_five$model$intersect, 1),
|
|
63
73
|
intersection = _five$model$intersect2[0];
|
|
64
74
|
|
|
65
75
|
if (intersection && intersection.distance + 1 < vectorDistance) return false;
|
|
@@ -89,7 +99,7 @@ function updateFormatData(five, labels, containerWidth, containerHeight) {
|
|
|
89
99
|
}).map(function (roomLabelItem) {
|
|
90
100
|
return {
|
|
91
101
|
roomLabelItem: roomLabelItem,
|
|
92
|
-
distance:
|
|
102
|
+
distance: (0, _construct2["default"])(_three.Vector3, (0, _toConsumableArray2["default"])(Object.values(roomLabelItem.position))).clone().distanceTo(five.camera.position)
|
|
93
103
|
};
|
|
94
104
|
}).sort(function (a, b) {
|
|
95
105
|
return a.distance - b.distance;
|
|
@@ -2,6 +2,10 @@ import { FivePlugin } from '@realsee/five';
|
|
|
2
2
|
import { ModelRoomLabelController, ModelRoomLabelPluginParameters } from './Controller';
|
|
3
3
|
export declare const ModelRoomLabelPlugin: FivePlugin<ModelRoomLabelPluginParameters, ModelRoomLabelPluginReturnType>;
|
|
4
4
|
export default ModelRoomLabelPlugin;
|
|
5
|
+
export declare const modelRoomLabelPluginServerParams: {
|
|
6
|
+
name: string;
|
|
7
|
+
version: number;
|
|
8
|
+
};
|
|
5
9
|
export type { ModelRoomLabelController } from './Controller';
|
|
6
10
|
export type { ModelRoomLabelPluginData, RoomLabel } from './typings';
|
|
7
11
|
export declare type ModelRoomLabelPluginReturnType = ModelRoomLabelController;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
|
-
exports["default"] = exports.ModelRoomLabelPlugin = void 0;
|
|
8
|
+
exports.modelRoomLabelPluginServerParams = exports["default"] = exports.ModelRoomLabelPlugin = void 0;
|
|
7
9
|
|
|
8
10
|
var _Controller = require("./Controller");
|
|
9
11
|
|
|
@@ -13,4 +15,9 @@ var ModelRoomLabelPlugin = function ModelRoomLabelPlugin(five) {
|
|
|
13
15
|
|
|
14
16
|
exports.ModelRoomLabelPlugin = ModelRoomLabelPlugin;
|
|
15
17
|
var _default = ModelRoomLabelPlugin;
|
|
16
|
-
exports["default"] = _default;
|
|
18
|
+
exports["default"] = _default;
|
|
19
|
+
var modelRoomLabelPluginServerParams = {
|
|
20
|
+
name: 'ModelRoomLabelPlugin',
|
|
21
|
+
version: 0
|
|
22
|
+
};
|
|
23
|
+
exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.parseModelRoomLabelPluginData = parseModelRoomLabelPluginData;
|
|
7
9
|
|
|
10
|
+
require("core-js/modules/es.array.map.js");
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.function.name.js");
|
|
13
|
+
|
|
8
14
|
/** @description 下划线转驼峰 */
|
|
9
15
|
function parseModelRoomLabelPluginData(data) {
|
|
10
16
|
return data.model_room_labels.map(function (_ref) {
|
|
@@ -1,33 +1,117 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require("core-js/modules/es.weak-map.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.define-property.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8
|
+
|
|
9
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
10
|
+
|
|
11
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
12
|
|
|
5
13
|
Object.defineProperty(exports, "__esModule", {
|
|
6
14
|
value: true
|
|
7
15
|
});
|
|
8
16
|
exports["default"] = exports.ModelTVVideoPlugin = void 0;
|
|
9
17
|
|
|
10
|
-
var
|
|
18
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
19
|
|
|
12
|
-
|
|
20
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
23
|
+
|
|
24
|
+
require("core-js/modules/es.array.for-each.js");
|
|
25
|
+
|
|
26
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.array.map.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.array.iterator.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.array-buffer.slice.js");
|
|
33
|
+
|
|
34
|
+
require("core-js/modules/es.object.to-string.js");
|
|
35
|
+
|
|
36
|
+
require("core-js/modules/es.typed-array.float32-array.js");
|
|
37
|
+
|
|
38
|
+
require("core-js/modules/es.typed-array.copy-within.js");
|
|
39
|
+
|
|
40
|
+
require("core-js/modules/es.typed-array.every.js");
|
|
41
|
+
|
|
42
|
+
require("core-js/modules/es.typed-array.fill.js");
|
|
43
|
+
|
|
44
|
+
require("core-js/modules/es.typed-array.filter.js");
|
|
45
|
+
|
|
46
|
+
require("core-js/modules/es.typed-array.find.js");
|
|
47
|
+
|
|
48
|
+
require("core-js/modules/es.typed-array.find-index.js");
|
|
49
|
+
|
|
50
|
+
require("core-js/modules/es.typed-array.for-each.js");
|
|
51
|
+
|
|
52
|
+
require("core-js/modules/es.typed-array.includes.js");
|
|
53
|
+
|
|
54
|
+
require("core-js/modules/es.typed-array.index-of.js");
|
|
55
|
+
|
|
56
|
+
require("core-js/modules/es.typed-array.iterator.js");
|
|
15
57
|
|
|
16
|
-
|
|
58
|
+
require("core-js/modules/es.typed-array.join.js");
|
|
17
59
|
|
|
18
|
-
|
|
60
|
+
require("core-js/modules/es.typed-array.last-index-of.js");
|
|
19
61
|
|
|
20
|
-
|
|
62
|
+
require("core-js/modules/es.typed-array.map.js");
|
|
21
63
|
|
|
22
|
-
|
|
64
|
+
require("core-js/modules/es.typed-array.reduce.js");
|
|
23
65
|
|
|
24
|
-
|
|
66
|
+
require("core-js/modules/es.typed-array.reduce-right.js");
|
|
25
67
|
|
|
26
|
-
|
|
68
|
+
require("core-js/modules/es.typed-array.reverse.js");
|
|
27
69
|
|
|
28
|
-
|
|
70
|
+
require("core-js/modules/es.typed-array.set.js");
|
|
29
71
|
|
|
30
|
-
|
|
72
|
+
require("core-js/modules/es.typed-array.slice.js");
|
|
73
|
+
|
|
74
|
+
require("core-js/modules/es.typed-array.some.js");
|
|
75
|
+
|
|
76
|
+
require("core-js/modules/es.typed-array.sort.js");
|
|
77
|
+
|
|
78
|
+
require("core-js/modules/es.typed-array.subarray.js");
|
|
79
|
+
|
|
80
|
+
require("core-js/modules/es.typed-array.to-locale-string.js");
|
|
81
|
+
|
|
82
|
+
require("core-js/modules/es.typed-array.to-string.js");
|
|
83
|
+
|
|
84
|
+
require("core-js/modules/es.typed-array.uint32-array.js");
|
|
85
|
+
|
|
86
|
+
require("core-js/modules/es.function.name.js");
|
|
87
|
+
|
|
88
|
+
require("core-js/modules/es.array.concat.js");
|
|
89
|
+
|
|
90
|
+
require("core-js/modules/es.promise.js");
|
|
91
|
+
|
|
92
|
+
require("core-js/modules/es.string.iterator.js");
|
|
93
|
+
|
|
94
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
95
|
+
|
|
96
|
+
require("core-js/modules/web.url.js");
|
|
97
|
+
|
|
98
|
+
require("core-js/modules/web.url-search-params.js");
|
|
99
|
+
|
|
100
|
+
require("core-js/modules/es.object.assign.js");
|
|
101
|
+
|
|
102
|
+
require("core-js/modules/es.array.find.js");
|
|
103
|
+
|
|
104
|
+
require("core-js/modules/es.array.reduce.js");
|
|
105
|
+
|
|
106
|
+
require("core-js/modules/es.array.filter.js");
|
|
107
|
+
|
|
108
|
+
require("core-js/modules/es.string.sub.js");
|
|
109
|
+
|
|
110
|
+
var THREE = _interopRequireWildcard(require("three"));
|
|
111
|
+
|
|
112
|
+
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); }
|
|
113
|
+
|
|
114
|
+
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
115
|
|
|
32
116
|
var ModelTVVideoPlugin = function ModelTVVideoPlugin(five, _ref) {
|
|
33
117
|
var videoElement = _ref.videoElement;
|
|
@@ -205,9 +289,9 @@ var ModelTVVideoPlugin = function ModelTVVideoPlugin(five, _ref) {
|
|
|
205
289
|
};
|
|
206
290
|
|
|
207
291
|
var load = /*#__PURE__*/function () {
|
|
208
|
-
var _ref2 =
|
|
292
|
+
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data, videoElement) {
|
|
209
293
|
var video_src, video_poster_src, points;
|
|
210
|
-
return
|
|
294
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
211
295
|
while (1) {
|
|
212
296
|
switch (_context.prev = _context.next) {
|
|
213
297
|
case 0:
|
|
@@ -255,7 +339,7 @@ var ModelTVVideoPlugin = function ModelTVVideoPlugin(five, _ref) {
|
|
|
255
339
|
if (!state.enabled) return;
|
|
256
340
|
|
|
257
341
|
var _raycaster$intersectO = raycaster.intersectObjects(five.scene.children, true),
|
|
258
|
-
_raycaster$intersectO2 =
|
|
342
|
+
_raycaster$intersectO2 = (0, _slicedToArray2["default"])(_raycaster$intersectO, 1),
|
|
259
343
|
intersect = _raycaster$intersectO2[0];
|
|
260
344
|
|
|
261
345
|
if (!!intersect && /^video/.test(intersect.object.name)) {
|
|
@@ -278,7 +362,7 @@ var ModelTVVideoPlugin = function ModelTVVideoPlugin(five, _ref) {
|
|
|
278
362
|
var raycaster = new THREE.Raycaster(cameraPosition, vector);
|
|
279
363
|
|
|
280
364
|
var _raycaster$intersectO3 = raycaster.intersectObjects(five.scene.children, true),
|
|
281
|
-
_raycaster$intersectO4 =
|
|
365
|
+
_raycaster$intersectO4 = (0, _slicedToArray2["default"])(_raycaster$intersectO3, 1),
|
|
282
366
|
intersect = _raycaster$intersectO4[0];
|
|
283
367
|
|
|
284
368
|
return !!intersect && /^video/.test(intersect.object.name);
|
|
@@ -1,12 +1,36 @@
|
|
|
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
|
|
7
21
|
});
|
|
8
22
|
exports["default"] = exports.ModelViewPlugin = void 0;
|
|
9
23
|
|
|
24
|
+
require("core-js/modules/es.array.concat.js");
|
|
25
|
+
|
|
26
|
+
require("core-js/modules/es.array.for-each.js");
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.array.map.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.array.is-array.js");
|
|
33
|
+
|
|
10
34
|
var THREE = _interopRequireWildcard(require("three"));
|
|
11
35
|
|
|
12
36
|
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); }
|
|
@@ -1,47 +1,51 @@
|
|
|
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"] = MovePointTowardsCamera;
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
Object.defineProperty(exports, "__esModule", {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
exports["default"] = MovePointTowardsCamera;
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
require("core-js/modules/es.array.slice.js");
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
require("core-js/modules/es.array.map.js");
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
var React = _interopRequireWildcard(require("react"));
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
var _antd = require("antd");
|
|
39
|
+
|
|
40
|
+
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); }
|
|
37
41
|
|
|
38
|
-
function
|
|
42
|
+
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; }
|
|
39
43
|
|
|
40
44
|
function MovePointTowardsCamera(props) {
|
|
41
45
|
if (!props.movePointTowardsCamera) return null; // 用于临时保存点的偏移数据
|
|
42
46
|
|
|
43
47
|
var _React$useState = React.useState([]),
|
|
44
|
-
_React$useState2 =
|
|
48
|
+
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
45
49
|
fixDistance = _React$useState2[0],
|
|
46
50
|
setFixDistance = _React$useState2[1];
|
|
47
51
|
|
|
@@ -54,13 +58,13 @@ function MovePointTowardsCamera(props) {
|
|
|
54
58
|
var handlePointFix = React.useCallback(function (value, index) {
|
|
55
59
|
var render = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
56
60
|
fixDistance[index] = value;
|
|
57
|
-
setFixDistance(
|
|
61
|
+
setFixDistance((0, _toConsumableArray2["default"])(fixDistance));
|
|
58
62
|
if (!render) return;
|
|
59
63
|
var _state = props.state;
|
|
60
64
|
var point = _state[index].originPoint;
|
|
61
65
|
_state[index].fixDistance = value;
|
|
62
66
|
_state[index].point = props.movePointTowardsCamera(point, value / 100);
|
|
63
|
-
props.setState(
|
|
67
|
+
props.setState((0, _toConsumableArray2["default"])(_state));
|
|
64
68
|
}, [props.state]);
|
|
65
69
|
return /*#__PURE__*/React.createElement("div", {
|
|
66
70
|
className: "PanoCursorRaycasterPluginUsage-Slider"
|
|
@@ -83,7 +87,7 @@ function MovePointTowardsCamera(props) {
|
|
|
83
87
|
style: {
|
|
84
88
|
width: 100
|
|
85
89
|
}
|
|
86
|
-
}, /*#__PURE__*/React.createElement(_antd.Slider,
|
|
90
|
+
}, /*#__PURE__*/React.createElement(_antd.Slider, (0, _extends2["default"])({}, params, {
|
|
87
91
|
value: fixDistance[idx],
|
|
88
92
|
tipFormatter: function tipFormatter(value) {
|
|
89
93
|
return value + 'cm';
|
|
@@ -99,7 +103,7 @@ function MovePointTowardsCamera(props) {
|
|
|
99
103
|
style: {
|
|
100
104
|
width: 50
|
|
101
105
|
}
|
|
102
|
-
}, /*#__PURE__*/React.createElement(_antd.InputNumber,
|
|
106
|
+
}, /*#__PURE__*/React.createElement(_antd.InputNumber, (0, _extends2["default"])({}, params, {
|
|
103
107
|
value: fixDistance[idx],
|
|
104
108
|
size: "small",
|
|
105
109
|
formatter: function formatter(value) {
|
|
@@ -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
|
|
@@ -1,17 +1,25 @@
|
|
|
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
|
});
|
|
6
10
|
exports["default"] = exports.PanoCursorRaycasterPlugin = void 0;
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
require("core-js/modules/es.string.sub.js");
|
|
9
13
|
|
|
10
|
-
|
|
14
|
+
require("core-js/modules/es.array.for-each.js");
|
|
11
15
|
|
|
12
|
-
|
|
16
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
19
|
+
|
|
20
|
+
var _three = require("three");
|
|
21
|
+
|
|
22
|
+
var _createLine = _interopRequireDefault(require("../../shared-utils/createLine"));
|
|
15
23
|
|
|
16
24
|
/**
|
|
17
25
|
* 全景中对当前鼠标的位置进行碰撞监测
|
|
@@ -19,8 +27,7 @@ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("
|
|
|
19
27
|
* @return
|
|
20
28
|
*/
|
|
21
29
|
var PanoCursorRaycasterPlugin = function PanoCursorRaycasterPlugin(five, _ref) {
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
(0, _objectDestructuringEmpty2["default"])(_ref);
|
|
24
31
|
var state = {
|
|
25
32
|
intersection: null,
|
|
26
33
|
disposers: []
|
|
@@ -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"] = addLineToFive;
|
|
|
7
11
|
|
|
8
12
|
var _createLine = _interopRequireDefault(require("../../../shared-utils/createLine"));
|
|
9
13
|
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
14
|
function addLineToFive(five, point1, point2, color) {
|
|
13
15
|
var line = (0, _createLine["default"])(point1, point2, color, false);
|
|
14
16
|
five.scene.add(line);
|
|
@@ -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
|