@realsee/dnalogel 0.1.2 → 0.1.7
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 +72 -0
- package/components/GLTFView/index.js +149 -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/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +2 -0
- package/data/PrXel3aqGbp34JQn.js +2 -0
- package/data/XJ6NMLWnkAY3Rdx8.d.ts +843 -0
- package/data/XJ6NMLWnkAY3Rdx8.js +7989 -0
- package/data/YdoNP9K4rwQDwjJr.js +2 -0
- package/data/ZLvK29zj4L29Jowd.d.ts +55 -0
- package/data/ZLvK29zj4L29Jowd.js +372 -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.d.ts +85 -0
- package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +511 -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.d.ts +2 -0
- package/data/vLykj3NWrllMrG06.js +199 -2
- package/data/wz0QV9KA4ugyo9ME.js +2 -0
- package/data/zxMawr9raSg8LYjG.d.ts +53 -0
- package/data/zxMawr9raSg8LYjG.js +590 -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 +55 -0
- package/libs/gltf-viewer/index.js +650 -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.d.ts +23 -0
- package/plugins/AutoPreloadPlugin/index.js +111 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +24 -16
- package/plugins/CSS3DRenderPlugin/index.d.ts +3 -2
- package/plugins/CSS3DRenderPlugin/index.js +79 -46
- package/plugins/CameraMovementPlugin/index.js +33 -9
- package/plugins/CameraMovementPlugin/typing.js +2 -0
- package/plugins/ModelChassisCompassPlugin/index.d.ts +7 -3
- package/plugins/ModelChassisCompassPlugin/index.js +34 -33
- package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +13 -1
- package/plugins/ModelEntryDoorGuidePlugin/index.js +233 -2
- package/plugins/ModelExtrudeWallsPlugin/index.d.ts +16 -0
- package/plugins/ModelExtrudeWallsPlugin/index.js +252 -0
- package/plugins/ModelRoomLabelPlugin/Controller.d.ts +35 -0
- package/plugins/ModelRoomLabelPlugin/Controller.js +153 -0
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +8 -0
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +66 -0
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +7 -0
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +159 -0
- package/plugins/ModelRoomLabelPlugin/index.d.ts +8 -0
- package/plugins/ModelRoomLabelPlugin/index.js +18 -0
- package/plugins/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/plugins/ModelRoomLabelPlugin/typings.js +7 -0
- package/plugins/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/plugins/ModelRoomLabelPlugin/utils/parseData.js +35 -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.d.ts +1 -0
- package/plugins/PanoMaskSelectorPlugin/compare.js +17 -0
- package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +7 -0
- package/plugins/PanoMaskSelectorPlugin/createBox.js +79 -0
- package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +3 -0
- package/plugins/PanoMaskSelectorPlugin/createTextures.js +45 -0
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +1 -0
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +10 -0
- package/plugins/PanoMaskSelectorPlugin/index.d.ts +49 -0
- package/plugins/PanoMaskSelectorPlugin/index.js +348 -0
- package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +1 -0
- package/plugins/PanoMaskSelectorPlugin/vertexShader.js +10 -0
- package/plugins/PanoRulerPlugin/data/roomInfo.js +2 -0
- package/plugins/PanoRulerPlugin/data/roomRules.js +2 -0
- package/plugins/PanoRulerPlugin/index.js +68 -20
- 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.js +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +71 -88
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +25 -5
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +19 -4
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +28 -4
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +28 -5
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +20 -6
- 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/utils/constant.js +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +14 -22
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +25 -3
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +6 -2
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +19 -3
- 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.js +44 -47
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +4 -2
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +50 -55
- 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/typings/floorplanData.js +2 -0
- package/plugins/floorplan/typings/floorplanServerData.js +2 -0
- package/plugins/floorplan/utils/formatData.js +28 -10
- 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/changeModelCanvansOpacity.js +14 -0
- package/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/shared-utils/createCanvasTextTexture.js +31 -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.js +2 -0
- 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/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.js +13 -5
- package/shared-utils/three/transformPositionToVector3.js +2 -0
- package/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/shared-utils/three/transfromToMeshBasicMaterial.js +33 -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/plugins.d.ts +2 -0
- package/typedoc/plugins.js +41 -1
- 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/data/wYnRjQ4KZoV1yPoG.d.ts +0 -114
- package/data/wYnRjQ4KZoV1yPoG.js +0 -512
|
@@ -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插入到对应的容器中去 */
|
|
@@ -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
|
|
|
@@ -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
|
};
|
|
@@ -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"));
|
|
@@ -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:
|
|
@@ -260,7 +256,6 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
260
256
|
_reactDom["default"].render( /*#__PURE__*/React.createElement(_components["default"], props), this.container);
|
|
261
257
|
}
|
|
262
258
|
}]);
|
|
263
|
-
|
|
264
259
|
return TopviewFloorplanPluginController;
|
|
265
260
|
}();
|
|
266
261
|
|
|
@@ -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,27 +1,45 @@
|
|
|
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"] = formatData;
|
|
7
11
|
exports.formatExtraObjects = formatExtraObjects;
|
|
8
12
|
|
|
9
|
-
var
|
|
13
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
require("core-js/modules/es.function.name.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.array.map.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.object.to-string.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.promise.js");
|
|
12
22
|
|
|
13
|
-
|
|
23
|
+
require("core-js/modules/es.array.iterator.js");
|
|
14
24
|
|
|
15
|
-
|
|
25
|
+
require("core-js/modules/es.string.iterator.js");
|
|
26
|
+
|
|
27
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
28
|
+
|
|
29
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
30
|
+
|
|
31
|
+
var _floorplanExtraObject = require("../Assets/floorplanExtraObject");
|
|
32
|
+
|
|
33
|
+
var _formatPosition = require("./formatPosition");
|
|
16
34
|
|
|
17
35
|
function formatOutlines(_x) {
|
|
18
36
|
return _formatOutlines.apply(this, arguments);
|
|
19
37
|
}
|
|
20
38
|
|
|
21
39
|
function _formatOutlines() {
|
|
22
|
-
_formatOutlines =
|
|
40
|
+
_formatOutlines = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(outlines) {
|
|
23
41
|
var headers, getOutlineItem, svgOutlineItems;
|
|
24
|
-
return
|
|
42
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
25
43
|
while (1) {
|
|
26
44
|
switch (_context2.prev = _context2.next) {
|
|
27
45
|
case 0:
|
|
@@ -30,9 +48,9 @@ function _formatOutlines() {
|
|
|
30
48
|
});
|
|
31
49
|
|
|
32
50
|
getOutlineItem = /*#__PURE__*/function () {
|
|
33
|
-
var _ref =
|
|
51
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(item) {
|
|
34
52
|
var outlineItem, svgContent;
|
|
35
|
-
return
|
|
53
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
36
54
|
while (1) {
|
|
37
55
|
switch (_context.prev = _context.next) {
|
|
38
56
|
case 0:
|
|
@@ -143,9 +161,9 @@ function formatData(_x2) {
|
|
|
143
161
|
}
|
|
144
162
|
|
|
145
163
|
function _formatData() {
|
|
146
|
-
_formatData =
|
|
164
|
+
_formatData = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(data) {
|
|
147
165
|
var outlines, bounding, floorDatas, entrance, floorplanData;
|
|
148
|
-
return
|
|
166
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
149
167
|
while (1) {
|
|
150
168
|
switch (_context3.prev = _context3.next) {
|
|
151
169
|
case 0:
|
|
@@ -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
|
});
|
|
@@ -9,17 +13,15 @@ exports.getFloorIndexFromModelPosition = getFloorIndexFromModelPosition;
|
|
|
9
13
|
exports.modelPosition2FloorplanPosition = modelPosition2FloorplanPosition;
|
|
10
14
|
exports.pathD = pathD;
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
require("core-js/modules/es.array.concat.js");
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
require("core-js/modules/es.array.for-each.js");
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
require("core-js/modules/es.array.map.js");
|
|
23
25
|
|
|
24
26
|
function pathD(points) {
|
|
25
27
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -79,7 +81,7 @@ function floorplanPosition2ImagePosition(position, floorplanData) {
|
|
|
79
81
|
|
|
80
82
|
|
|
81
83
|
function getFloorIndexFromModelPosition(position, five) {
|
|
82
|
-
var floorIndex = Math.max.apply(Math,
|
|
84
|
+
var floorIndex = Math.max.apply(Math, (0, _toConsumableArray2["default"])(five.work.observers.map(function (observer) {
|
|
83
85
|
if (position.z >= observer.standingPosition.z) return observer.floorIndex;
|
|
84
86
|
return 0;
|
|
85
87
|
})));
|
|
@@ -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.Preloader = void 0;
|
|
7
9
|
|
|
10
|
+
require("core-js/modules/es.object.to-string.js");
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.promise.js");
|
|
13
|
+
|
|
8
14
|
/**
|
|
9
15
|
* 预载器
|
|
10
16
|
*/
|