@realsee/dnalogel 0.1.4 → 0.1.5
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/GlassFilters/index.js +25 -1
- package/components/ModelView/ModelViewController.js +39 -29
- package/components/ModelView/index.js +4 -2
- package/components/PBRView/index.js +15 -1
- 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.js +2 -0
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +2 -0
- package/data/PrXel3aqGbp34JQn.js +2 -0
- 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/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 +2 -0
- 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/package.json +6 -3
- package/plugins/AutoPreloadPlugin/index.js +26 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +24 -16
- package/plugins/CSS3DRenderPlugin/index.js +31 -3
- package/plugins/CameraMovementPlugin/index.js +33 -9
- package/plugins/CameraMovementPlugin/typing.js +2 -0
- package/plugins/ModelChassisCompassPlugin/index.js +23 -9
- package/plugins/ModelEntryDoorGuidePlugin/index.js +27 -9
- package/plugins/ModelExtrudeWallsPlugin/index.d.ts +16 -0
- package/plugins/ModelExtrudeWallsPlugin/index.js +252 -0
- package/plugins/ModelRoomLabelPlugin/Controller.js +29 -23
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +21 -3
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +35 -25
- package/plugins/ModelRoomLabelPlugin/index.js +2 -0
- 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 +19 -1
- package/plugins/PanoMaskSelectorPlugin/createTextures.js +17 -1
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +2 -0
- package/plugins/PanoMaskSelectorPlugin/index.js +85 -9
- package/plugins/PanoMaskSelectorPlugin/vertexShader.js +2 -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.js +88 -12
- 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 +21 -3
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +17 -3
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +28 -4
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +23 -3
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +20 -6
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +29 -7
- 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.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.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.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/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
|
@@ -1,12 +1,92 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require("core-js/modules/es.string.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.weak-map.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.object.define-property.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
12
|
+
|
|
13
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
14
|
+
|
|
15
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
16
|
|
|
5
17
|
Object.defineProperty(exports, "__esModule", {
|
|
6
18
|
value: true
|
|
7
19
|
});
|
|
8
20
|
exports.PanoMaskSelectorPlugin = void 0;
|
|
9
21
|
|
|
22
|
+
require("core-js/modules/es.array.iterator.js");
|
|
23
|
+
|
|
24
|
+
require("core-js/modules/es.array-buffer.slice.js");
|
|
25
|
+
|
|
26
|
+
require("core-js/modules/es.object.to-string.js");
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.typed-array.uint8-array.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.typed-array.copy-within.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.typed-array.every.js");
|
|
33
|
+
|
|
34
|
+
require("core-js/modules/es.typed-array.fill.js");
|
|
35
|
+
|
|
36
|
+
require("core-js/modules/es.typed-array.filter.js");
|
|
37
|
+
|
|
38
|
+
require("core-js/modules/es.typed-array.find.js");
|
|
39
|
+
|
|
40
|
+
require("core-js/modules/es.typed-array.find-index.js");
|
|
41
|
+
|
|
42
|
+
require("core-js/modules/es.typed-array.for-each.js");
|
|
43
|
+
|
|
44
|
+
require("core-js/modules/es.typed-array.includes.js");
|
|
45
|
+
|
|
46
|
+
require("core-js/modules/es.typed-array.index-of.js");
|
|
47
|
+
|
|
48
|
+
require("core-js/modules/es.typed-array.iterator.js");
|
|
49
|
+
|
|
50
|
+
require("core-js/modules/es.typed-array.join.js");
|
|
51
|
+
|
|
52
|
+
require("core-js/modules/es.typed-array.last-index-of.js");
|
|
53
|
+
|
|
54
|
+
require("core-js/modules/es.typed-array.map.js");
|
|
55
|
+
|
|
56
|
+
require("core-js/modules/es.typed-array.reduce.js");
|
|
57
|
+
|
|
58
|
+
require("core-js/modules/es.typed-array.reduce-right.js");
|
|
59
|
+
|
|
60
|
+
require("core-js/modules/es.typed-array.reverse.js");
|
|
61
|
+
|
|
62
|
+
require("core-js/modules/es.typed-array.set.js");
|
|
63
|
+
|
|
64
|
+
require("core-js/modules/es.typed-array.slice.js");
|
|
65
|
+
|
|
66
|
+
require("core-js/modules/es.typed-array.some.js");
|
|
67
|
+
|
|
68
|
+
require("core-js/modules/es.typed-array.sort.js");
|
|
69
|
+
|
|
70
|
+
require("core-js/modules/es.typed-array.subarray.js");
|
|
71
|
+
|
|
72
|
+
require("core-js/modules/es.typed-array.to-locale-string.js");
|
|
73
|
+
|
|
74
|
+
require("core-js/modules/es.typed-array.to-string.js");
|
|
75
|
+
|
|
76
|
+
require("core-js/modules/es.array.fill.js");
|
|
77
|
+
|
|
78
|
+
require("core-js/modules/es.array.slice.js");
|
|
79
|
+
|
|
80
|
+
require("core-js/modules/es.array.find.js");
|
|
81
|
+
|
|
82
|
+
require("core-js/modules/es.array.for-each.js");
|
|
83
|
+
|
|
84
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
85
|
+
|
|
86
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
87
|
+
|
|
88
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
89
|
+
|
|
10
90
|
var THREE = _interopRequireWildcard(require("three"));
|
|
11
91
|
|
|
12
92
|
var _five = require("@realsee/five");
|
|
@@ -21,10 +101,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
101
|
|
|
22
102
|
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; }
|
|
23
103
|
|
|
24
|
-
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); } }
|
|
25
|
-
|
|
26
|
-
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); }); }; }
|
|
27
|
-
|
|
28
104
|
var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
|
|
29
105
|
var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
30
106
|
var state = {
|
|
@@ -78,8 +154,8 @@ var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
|
|
|
78
154
|
};
|
|
79
155
|
|
|
80
156
|
var load = /*#__PURE__*/function () {
|
|
81
|
-
var _ref =
|
|
82
|
-
return
|
|
157
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data) {
|
|
158
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
83
159
|
while (1) {
|
|
84
160
|
switch (_context.prev = _context.next) {
|
|
85
161
|
case 0:
|
|
@@ -101,11 +177,11 @@ var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
|
|
|
101
177
|
}();
|
|
102
178
|
|
|
103
179
|
var select = /*#__PURE__*/function () {
|
|
104
|
-
var _ref2 =
|
|
180
|
+
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(_x, _y) {
|
|
105
181
|
var _state$data;
|
|
106
182
|
|
|
107
183
|
var element, pixel, x, y, renderTarget, pickingBuffer, camera, renderer, newScence, observer, newBox, unit8ArrayGroup, i, selectedColor, colorMaps, object;
|
|
108
|
-
return
|
|
184
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
109
185
|
while (1) {
|
|
110
186
|
switch (_context2.prev = _context2.next) {
|
|
111
187
|
case 0:
|
|
@@ -1,39 +1,87 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.array.from.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.string.iterator.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.symbol.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.symbol.description.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.array.iterator.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.array.is-array.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.object.define-property.js");
|
|
20
|
+
|
|
21
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
22
|
+
|
|
3
23
|
Object.defineProperty(exports, "__esModule", {
|
|
4
24
|
value: true
|
|
5
25
|
});
|
|
6
26
|
exports["default"] = exports.PanoRulerPlugin = void 0;
|
|
7
27
|
|
|
8
|
-
var
|
|
28
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
29
|
|
|
10
|
-
var
|
|
30
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
31
|
|
|
12
|
-
var
|
|
32
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
33
|
|
|
14
|
-
|
|
34
|
+
require("core-js/modules/es.array.for-each.js");
|
|
15
35
|
|
|
16
|
-
|
|
36
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
17
37
|
|
|
18
|
-
|
|
38
|
+
require("core-js/modules/es.function.name.js");
|
|
19
39
|
|
|
20
|
-
|
|
40
|
+
require("core-js/modules/es.array.sort.js");
|
|
21
41
|
|
|
22
|
-
|
|
42
|
+
require("core-js/modules/es.number.to-fixed.js");
|
|
23
43
|
|
|
24
|
-
|
|
44
|
+
require("core-js/modules/es.array.map.js");
|
|
25
45
|
|
|
26
|
-
|
|
46
|
+
require("core-js/modules/es.object.assign.js");
|
|
27
47
|
|
|
28
|
-
|
|
48
|
+
require("core-js/modules/es.object.to-string.js");
|
|
29
49
|
|
|
30
|
-
|
|
50
|
+
require("core-js/modules/es.promise.js");
|
|
31
51
|
|
|
32
|
-
|
|
52
|
+
require("core-js/modules/es.object.keys.js");
|
|
53
|
+
|
|
54
|
+
require("core-js/modules/es.array.index-of.js");
|
|
55
|
+
|
|
56
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
33
57
|
|
|
34
|
-
|
|
58
|
+
require("core-js/modules/es.string.split.js");
|
|
35
59
|
|
|
36
|
-
|
|
60
|
+
require("core-js/modules/es.date.to-string.js");
|
|
61
|
+
|
|
62
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
63
|
+
|
|
64
|
+
require("core-js/modules/es.array.filter.js");
|
|
65
|
+
|
|
66
|
+
require("core-js/modules/es.array.slice.js");
|
|
67
|
+
|
|
68
|
+
require("core-js/modules/es.string.sub.js");
|
|
69
|
+
|
|
70
|
+
var _five = require("@realsee/five");
|
|
71
|
+
|
|
72
|
+
var _three = require("three");
|
|
73
|
+
|
|
74
|
+
var _planimetry = require("../../shared-utils/math/planimetry");
|
|
75
|
+
|
|
76
|
+
var _nextFrame = require("../../shared-utils/nextFrame");
|
|
77
|
+
|
|
78
|
+
var _throttle = _interopRequireDefault(require("../../shared-utils/throttle"));
|
|
79
|
+
|
|
80
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
81
|
+
|
|
82
|
+
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); }
|
|
83
|
+
|
|
84
|
+
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; }
|
|
37
85
|
|
|
38
86
|
var getDistance = function getDistance(p1, p2) {
|
|
39
87
|
return Math.sqrt(Math.pow(p1.z - p2.z, 2) + Math.pow(p1.x - p2.x, 2));
|
|
@@ -51,7 +99,7 @@ var getRoomHeightInfo = function getRoomHeightInfo(roomInfo, five) {
|
|
|
51
99
|
raycaster.set(point, new _three.Vector3(0, 1, 0));
|
|
52
100
|
|
|
53
101
|
var _five$model$intersect = five.model.intersectRaycaster(raycaster),
|
|
54
|
-
_five$model$intersect2 =
|
|
102
|
+
_five$model$intersect2 = (0, _slicedToArray2["default"])(_five$model$intersect, 1),
|
|
55
103
|
intersection = _five$model$intersect2[0];
|
|
56
104
|
|
|
57
105
|
var verticalY = intersection ? intersection.point.y : null;
|
|
@@ -242,9 +290,9 @@ var PanoRulerPlugin = function PanoRulerPlugin(five, params) {
|
|
|
242
290
|
};
|
|
243
291
|
|
|
244
292
|
var load = /*#__PURE__*/function () {
|
|
245
|
-
var _ref2 =
|
|
293
|
+
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_roomInfo, _roomRules, options) {
|
|
246
294
|
var roomInfo, roomRules;
|
|
247
|
-
return
|
|
295
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
248
296
|
while (1) {
|
|
249
297
|
switch (_context.prev = _context.next) {
|
|
250
298
|
case 0:
|
|
@@ -401,7 +449,7 @@ var PanoRulerPlugin = function PanoRulerPlugin(five, params) {
|
|
|
401
449
|
var angleB = pointB.clone().setY(0).sub(cameraPosition).normalize().angleTo(cameraDirection.clone().setY(0));
|
|
402
450
|
return angleA - angleB;
|
|
403
451
|
}),
|
|
404
|
-
_rule$name$origins$s2 =
|
|
452
|
+
_rule$name$origins$s2 = (0, _slicedToArray2["default"])(_rule$name$origins$s, 1),
|
|
405
453
|
visibleOrigin = _rule$name$origins$s2[0];
|
|
406
454
|
|
|
407
455
|
var shownNotVerticalRules = [];
|
|
@@ -416,7 +464,7 @@ var PanoRulerPlugin = function PanoRulerPlugin(five, params) {
|
|
|
416
464
|
vertical = _step4$value.vertical,
|
|
417
465
|
_$element3 = _step4$value.$element;
|
|
418
466
|
|
|
419
|
-
var _rule =
|
|
467
|
+
var _rule = (0, _slicedToArray2["default"])(rule, 2),
|
|
420
468
|
start = _rule[0],
|
|
421
469
|
end = _rule[1];
|
|
422
470
|
|
|
@@ -1,31 +1,107 @@
|
|
|
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.PanoTVVideoPlugin = void 0;
|
|
9
17
|
|
|
10
|
-
var
|
|
18
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
19
|
|
|
12
|
-
|
|
20
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
require("core-js/modules/es.promise.js");
|
|
15
23
|
|
|
16
|
-
|
|
24
|
+
require("core-js/modules/es.array.iterator.js");
|
|
25
|
+
|
|
26
|
+
require("core-js/modules/es.string.iterator.js");
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/web.url.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/web.url-search-params.js");
|
|
33
|
+
|
|
34
|
+
require("core-js/modules/es.object.assign.js");
|
|
35
|
+
|
|
36
|
+
require("core-js/modules/es.array.map.js");
|
|
37
|
+
|
|
38
|
+
require("core-js/modules/es.array.for-each.js");
|
|
39
|
+
|
|
40
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
41
|
+
|
|
42
|
+
require("core-js/modules/es.array-buffer.slice.js");
|
|
43
|
+
|
|
44
|
+
require("core-js/modules/es.typed-array.float32-array.js");
|
|
45
|
+
|
|
46
|
+
require("core-js/modules/es.typed-array.copy-within.js");
|
|
47
|
+
|
|
48
|
+
require("core-js/modules/es.typed-array.every.js");
|
|
49
|
+
|
|
50
|
+
require("core-js/modules/es.typed-array.fill.js");
|
|
51
|
+
|
|
52
|
+
require("core-js/modules/es.typed-array.filter.js");
|
|
53
|
+
|
|
54
|
+
require("core-js/modules/es.typed-array.find.js");
|
|
17
55
|
|
|
18
|
-
|
|
56
|
+
require("core-js/modules/es.typed-array.find-index.js");
|
|
19
57
|
|
|
20
|
-
|
|
58
|
+
require("core-js/modules/es.typed-array.for-each.js");
|
|
21
59
|
|
|
22
|
-
|
|
60
|
+
require("core-js/modules/es.typed-array.includes.js");
|
|
23
61
|
|
|
24
|
-
|
|
62
|
+
require("core-js/modules/es.typed-array.index-of.js");
|
|
25
63
|
|
|
26
|
-
|
|
64
|
+
require("core-js/modules/es.typed-array.iterator.js");
|
|
27
65
|
|
|
28
|
-
|
|
66
|
+
require("core-js/modules/es.typed-array.join.js");
|
|
67
|
+
|
|
68
|
+
require("core-js/modules/es.typed-array.last-index-of.js");
|
|
69
|
+
|
|
70
|
+
require("core-js/modules/es.typed-array.map.js");
|
|
71
|
+
|
|
72
|
+
require("core-js/modules/es.typed-array.reduce.js");
|
|
73
|
+
|
|
74
|
+
require("core-js/modules/es.typed-array.reduce-right.js");
|
|
75
|
+
|
|
76
|
+
require("core-js/modules/es.typed-array.reverse.js");
|
|
77
|
+
|
|
78
|
+
require("core-js/modules/es.typed-array.set.js");
|
|
79
|
+
|
|
80
|
+
require("core-js/modules/es.typed-array.slice.js");
|
|
81
|
+
|
|
82
|
+
require("core-js/modules/es.typed-array.some.js");
|
|
83
|
+
|
|
84
|
+
require("core-js/modules/es.typed-array.sort.js");
|
|
85
|
+
|
|
86
|
+
require("core-js/modules/es.typed-array.subarray.js");
|
|
87
|
+
|
|
88
|
+
require("core-js/modules/es.typed-array.to-locale-string.js");
|
|
89
|
+
|
|
90
|
+
require("core-js/modules/es.typed-array.to-string.js");
|
|
91
|
+
|
|
92
|
+
require("core-js/modules/es.typed-array.uint32-array.js");
|
|
93
|
+
|
|
94
|
+
require("core-js/modules/es.function.name.js");
|
|
95
|
+
|
|
96
|
+
require("core-js/modules/es.array.concat.js");
|
|
97
|
+
|
|
98
|
+
var THREE = _interopRequireWildcard(require("three"));
|
|
99
|
+
|
|
100
|
+
var _five = require("@realsee/five");
|
|
101
|
+
|
|
102
|
+
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); }
|
|
103
|
+
|
|
104
|
+
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; }
|
|
29
105
|
|
|
30
106
|
var PanoTVVideoPlugin = function PanoTVVideoPlugin(five, parameters) {
|
|
31
107
|
var state = {
|
|
@@ -309,7 +385,7 @@ var PanoTVVideoPlugin = function PanoTVVideoPlugin(five, parameters) {
|
|
|
309
385
|
if (!state.enabled) return;
|
|
310
386
|
var meshArray = [];
|
|
311
387
|
videoMeshes.forEach(function (meshes) {
|
|
312
|
-
if (meshes) meshArray.push.apply(meshArray,
|
|
388
|
+
if (meshes) meshArray.push.apply(meshArray, (0, _toConsumableArray2["default"])(meshes));
|
|
313
389
|
});
|
|
314
390
|
|
|
315
391
|
if (raycaster.intersectObjects(meshArray).length) {
|