@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,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
|
|
@@ -1,12 +1,30 @@
|
|
|
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.createBox = createBox;
|
|
9
23
|
|
|
24
|
+
require("core-js/modules/es.object.assign.js");
|
|
25
|
+
|
|
26
|
+
require("core-js/modules/es.array.map.js");
|
|
27
|
+
|
|
10
28
|
var THREE = _interopRequireWildcard(require("three"));
|
|
11
29
|
|
|
12
30
|
var _vertexShader = require("./vertexShader");
|
|
@@ -1,12 +1,28 @@
|
|
|
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.createTextures = createTextures;
|
|
9
23
|
|
|
24
|
+
require("core-js/modules/es.array.map.js");
|
|
25
|
+
|
|
10
26
|
var THREE = _interopRequireWildcard(require("three"));
|
|
11
27
|
|
|
12
28
|
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); }
|