@realsee/dnalogel 0.1.0
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/README.md +94 -0
- package/TERMS.txt +56 -0
- package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +44 -0
- package/components/ARVideoFigure/ARVideoFigureMesh.js +347 -0
- package/components/ARVideoFigure/ARVideoFigureScene.d.ts +11 -0
- package/components/ARVideoFigure/ARVideoFigureScene.js +74 -0
- package/components/ARVideoFigure/ImgBgTransparent.d.ts +16 -0
- package/components/ARVideoFigure/ImgBgTransparent.js +49 -0
- package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +30 -0
- package/components/ARVideoFigure/ImgBgTransparentMesh.js +173 -0
- package/components/ARVideoFigure/fragmentShader.d.ts +5 -0
- package/components/ARVideoFigure/fragmentShader.js +16 -0
- package/components/ARVideoFigure/index.d.ts +15 -0
- package/components/ARVideoFigure/index.js +64 -0
- package/components/ARVideoFigure/vertexShader.d.ts +1 -0
- package/components/ARVideoFigure/vertexShader.js +8 -0
- package/components/GlassFilters/index.d.ts +32 -0
- package/components/GlassFilters/index.js +54 -0
- package/components/ModelView/ModelViewController.d.ts +18 -0
- package/components/ModelView/ModelViewController.js +147 -0
- package/components/ModelView/index.d.ts +10 -0
- package/components/ModelView/index.js +22 -0
- package/components/PBRView/index.d.ts +14 -0
- package/components/PBRView/index.js +31 -0
- package/components/PaintBrush/index.d.ts +16 -0
- package/components/PaintBrush/index.js +33 -0
- package/components/PanoTag/index.d.ts +4 -0
- package/components/PanoTag/index.js +11 -0
- package/custom.d.js +3 -0
- package/data/1aGKl9JmrlXMXx8d.d.ts +104 -0
- package/data/1aGKl9JmrlXMXx8d.js +535 -0
- package/data/6gyq3v1verxD7JO1.d.ts +104 -0
- package/data/6gyq3v1verxD7JO1.js +460 -0
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +84 -0
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +598 -0
- package/data/PrXel3aqGbp34JQn.d.ts +389 -0
- package/data/PrXel3aqGbp34JQn.js +4639 -0
- package/data/YdoNP9K4rwQDwjJr.d.ts +83 -0
- package/data/YdoNP9K4rwQDwjJr.js +1451 -0
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +86 -0
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +709 -0
- package/data/oPzy3ApbjjpD8YdR.d.ts +83 -0
- package/data/oPzy3ApbjjpD8YdR.js +281 -0
- package/data/qjAxMG4XbPn96wKG.d.ts +104 -0
- package/data/qjAxMG4XbPn96wKG.js +635 -0
- package/data/rXel3aPQRRBD4JQn.d.ts +86 -0
- package/data/rXel3aPQRRBD4JQn.js +620 -0
- package/data/vLykj3NWrllMrG06.d.ts +89 -0
- package/data/vLykj3NWrllMrG06.js +2532 -0
- package/data/wYnRjQ4KZoV1yPoG.d.ts +114 -0
- package/data/wYnRjQ4KZoV1yPoG.js +512 -0
- package/data/wz0QV9KA4ugyo9ME.d.ts +39 -0
- package/data/wz0QV9KA4ugyo9ME.js +134 -0
- package/examples/FiveStateController/index.js +140 -0
- package/examples/VRHouse/Mobile.js +22 -0
- package/examples/VRHouse/PC.js +22 -0
- package/examples/VRHouse/index.js +22 -0
- package/index.d.ts +15 -0
- package/index.js +43 -0
- package/package.json +19 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +12 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +113 -0
- package/plugins/CSS3DRenderPlugin/index.d.ts +49 -0
- package/plugins/CSS3DRenderPlugin/index.js +220 -0
- package/plugins/CameraMovementPlugin/index.d.ts +7 -0
- package/plugins/CameraMovementPlugin/index.js +338 -0
- package/plugins/CameraMovementPlugin/typing.d.ts +68 -0
- package/plugins/CameraMovementPlugin/typing.js +35 -0
- package/plugins/ModelChassisCompassPlugin/index.d.ts +15 -0
- package/plugins/ModelChassisCompassPlugin/index.js +156 -0
- package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +10 -0
- package/plugins/ModelEntryDoorGuidePlugin/index.js +16 -0
- package/plugins/ModelTVVideoPlugin/index.d.ts +21 -0
- package/plugins/ModelTVVideoPlugin/index.js +313 -0
- package/plugins/ModelViewPlugin/index.d.ts +17 -0
- package/plugins/ModelViewPlugin/index.js +199 -0
- package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +48 -0
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +9 -0
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +113 -0
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +11 -0
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +25 -0
- package/plugins/PanoCursorRaycasterPlugin/index.d.ts +49 -0
- package/plugins/PanoCursorRaycasterPlugin/index.js +119 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +5 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +25 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +3 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +34 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.d.ts +7 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.js +18 -0
- package/plugins/PanoDoorLabelPlugin/index.d.ts +4 -0
- package/plugins/PanoDoorLabelPlugin/index.js +12 -0
- package/plugins/PanoIRobotPlugin/index.d.ts +10 -0
- package/plugins/PanoIRobotPlugin/index.js +16 -0
- package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +3 -0
- package/plugins/PanoRulerPlugin/data/roomInfo.js +49 -0
- package/plugins/PanoRulerPlugin/data/roomRules.d.ts +3 -0
- package/plugins/PanoRulerPlugin/data/roomRules.js +233 -0
- package/plugins/PanoRulerPlugin/index.d.ts +27 -0
- package/plugins/PanoRulerPlugin/index.js +589 -0
- package/plugins/PanoRulerPlugin/typings.d.ts +21 -0
- package/plugins/PanoRulerPlugin/typings.js +5 -0
- package/plugins/PanoTVVideoPlugin/index.d.ts +24 -0
- package/plugins/PanoTVVideoPlugin/index.js +351 -0
- package/plugins/TreasurePlugin/Controller.d.ts +32 -0
- package/plugins/TreasurePlugin/Controller.js +175 -0
- package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +23 -0
- package/plugins/TreasurePlugin/TreasureFaceAnime.js +128 -0
- package/plugins/TreasurePlugin/TreasureObject.d.ts +35 -0
- package/plugins/TreasurePlugin/TreasureObject.js +186 -0
- package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +23 -0
- package/plugins/TreasurePlugin/TreasureOpenAnime.js +103 -0
- package/plugins/TreasurePlugin/constants.d.ts +12 -0
- package/plugins/TreasurePlugin/constants.js +30 -0
- package/plugins/TreasurePlugin/index.d.ts +11 -0
- package/plugins/TreasurePlugin/index.js +16 -0
- package/plugins/TreasurePlugin/treasureDataMap.d.ts +7 -0
- package/plugins/TreasurePlugin/treasureDataMap.js +20 -0
- package/plugins/TreasurePlugin/typings.d.ts +2 -0
- package/plugins/TreasurePlugin/typings.js +5 -0
- package/plugins/TreasurePlugin/utils/loadTreasureTextures.d.ts +7 -0
- package/plugins/TreasurePlugin/utils/loadTreasureTextures.js +115 -0
- package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/plugins/floorplan/Assets/floorplanExtraObject.js +8 -0
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.d.ts +100 -0
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +643 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +13 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +58 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +5 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +69 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +10 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +105 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +13 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +95 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +13 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +48 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +20 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +66 -0
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts +1 -0
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +14 -0
- package/plugins/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/plugins/floorplan/ModelFloorplanPlugin/index.js +18 -0
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +5 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +31 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +162 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +13 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +91 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +3 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +35 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +5 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +50 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +9 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +102 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +11 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +42 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +17 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +75 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +2 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +13 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +33 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +214 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +18 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +55 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +267 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/index.js +16 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/style.js +14 -0
- package/plugins/floorplan/components/FloorplanImage.d.ts +7 -0
- package/plugins/floorplan/components/FloorplanImage.js +76 -0
- package/plugins/floorplan/typings/floorplanData.d.ts +127 -0
- package/plugins/floorplan/typings/floorplanData.js +5 -0
- package/plugins/floorplan/typings/floorplanServerData.d.ts +125 -0
- package/plugins/floorplan/typings/floorplanServerData.js +380 -0
- package/plugins/floorplan/utils/formatData.d.ts +5 -0
- package/plugins/floorplan/utils/formatData.js +220 -0
- package/plugins/floorplan/utils/formatPosition.d.ts +37 -0
- package/plugins/floorplan/utils/formatPosition.js +87 -0
- package/shared-utils/Preloader.d.ts +6 -0
- package/shared-utils/Preloader.js +51 -0
- package/shared-utils/Subscribe.d.ts +45 -0
- package/shared-utils/Subscribe.js +210 -0
- package/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/shared-utils/animationFrame/BetterTween.js +102 -0
- package/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/shared-utils/animationFrame/calculateProgress.js +38 -0
- package/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/shared-utils/animationFrame/formatRad.js +34 -0
- package/shared-utils/animationFrame/index.d.ts +15 -0
- package/shared-utils/animationFrame/index.js +69 -0
- package/shared-utils/animationFrame/tween.d.ts +75 -0
- package/shared-utils/animationFrame/tween.js +76 -0
- package/shared-utils/changeModelCanvansOpacity.d.ts +2 -0
- package/shared-utils/changeModelCanvansOpacity.js +24 -0
- package/shared-utils/createFiveContainer.d.ts +10 -0
- package/shared-utils/createFiveContainer.js +165 -0
- package/shared-utils/createLine/index.d.ts +3 -0
- package/shared-utils/createLine/index.js +29 -0
- package/shared-utils/debounce.d.ts +6 -0
- package/shared-utils/debounce.js +26 -0
- package/shared-utils/equal.d.ts +11 -0
- package/shared-utils/equal.js +96 -0
- package/shared-utils/filter.d.ts +27 -0
- package/shared-utils/filter.js +93 -0
- package/shared-utils/five/changeMode.d.ts +2 -0
- package/shared-utils/five/changeMode.js +86 -0
- package/shared-utils/five/useFivePlugin.d.ts +1 -0
- package/shared-utils/five/useFivePlugin.js +15 -0
- package/shared-utils/formatRad.d.ts +7 -0
- package/shared-utils/formatRad.js +16 -0
- package/shared-utils/getPxmm.d.ts +6 -0
- package/shared-utils/getPxmm.js +37 -0
- package/shared-utils/getRandomColor.d.ts +1 -0
- package/shared-utils/getRandomColor.js +13 -0
- package/shared-utils/isTruelyObject.d.ts +18 -0
- package/shared-utils/isTruelyObject.js +27 -0
- package/shared-utils/math/evenNumber.d.ts +1 -0
- package/shared-utils/math/evenNumber.js +11 -0
- package/shared-utils/math/planimetry.d.ts +116 -0
- package/shared-utils/math/planimetry.js +342 -0
- package/shared-utils/math/rad2Deg.d.ts +1 -0
- package/shared-utils/math/rad2Deg.js +10 -0
- package/shared-utils/nearlyEqual.d.ts +7 -0
- package/shared-utils/nearlyEqual.js +17 -0
- package/shared-utils/nextFrame.d.ts +1 -0
- package/shared-utils/nextFrame.js +13 -0
- package/shared-utils/noop.d.ts +5 -0
- package/shared-utils/noop.js +17 -0
- package/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/shared-utils/object3d2LocalMatrix.js +73 -0
- package/shared-utils/px2rem.d.ts +1 -0
- package/shared-utils/px2rem.js +12 -0
- package/shared-utils/tap.d.ts +8 -0
- package/shared-utils/tap.js +19 -0
- package/shared-utils/three/centerPoint.d.ts +2 -0
- package/shared-utils/three/centerPoint.js +12 -0
- package/shared-utils/three/getNormal.d.ts +2 -0
- package/shared-utils/three/getNormal.js +13 -0
- package/shared-utils/three/loadFbxObj.d.ts +3 -0
- package/shared-utils/three/loadFbxObj.js +42 -0
- package/shared-utils/three/loadTexture.d.ts +2 -0
- package/shared-utils/three/loadTexture.js +38 -0
- package/shared-utils/three/vecror3.d.ts +7 -0
- package/shared-utils/three/vecror3.js +18 -0
- package/shared-utils/throttle.d.ts +7 -0
- package/shared-utils/throttle.js +25 -0
- package/shared-utils/to.d.ts +9 -0
- package/shared-utils/to.js +25 -0
- package/shared-utils/useDebounce.d.ts +8 -0
- package/shared-utils/useDebounce.js +43 -0
- package/shared-utils/useThrottle.d.ts +8 -0
- package/shared-utils/useThrottle.js +41 -0
- package/shared-utils/uuid.d.ts +4 -0
- package/shared-utils/uuid.js +20 -0
- package/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/shared-utils/vectorTocoordinates.js +16 -0
- package/typedoc/components.d.ts +6 -0
- package/typedoc/components.js +5 -0
- package/typedoc/plugins.d.ts +17 -0
- package/typedoc/plugins.js +113 -0
- package/typedoc/shared-utils.d.ts +3 -0
- package/typedoc/shared-utils.js +5 -0
- package/typedoc/typings.d.ts +3 -0
- package/typedoc/typings.js +5 -0
- package/typings/math.type.d.ts +44 -0
- package/typings/math.type.js +5 -0
- package/typings/utils.type.d.ts +2 -0
- package/typings/utils.type.js +5 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = getNormal;
|
|
7
|
+
|
|
8
|
+
function getNormal(a, b, c) {
|
|
9
|
+
var ab = b.clone().sub(a);
|
|
10
|
+
var ac = c.clone().sub(a);
|
|
11
|
+
var normal = ab.clone().cross(ac);
|
|
12
|
+
return normal;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.loadFbxObj = loadFbxObj;
|
|
7
|
+
|
|
8
|
+
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); } }
|
|
9
|
+
|
|
10
|
+
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); }); }; }
|
|
11
|
+
|
|
12
|
+
function loadFbxObj(_x, _x2) {
|
|
13
|
+
return _loadFbxObj.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function _loadFbxObj() {
|
|
17
|
+
_loadFbxObj = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(loader, url) {
|
|
18
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
19
|
+
while (1) {
|
|
20
|
+
switch (_context.prev = _context.next) {
|
|
21
|
+
case 0:
|
|
22
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
23
|
+
function onLoad(object) {
|
|
24
|
+
resolve(object);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function onError(error) {
|
|
28
|
+
reject(error);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
loader.load(url, onLoad, undefined, onError);
|
|
32
|
+
}));
|
|
33
|
+
|
|
34
|
+
case 1:
|
|
35
|
+
case "end":
|
|
36
|
+
return _context.stop();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, _callee);
|
|
40
|
+
}));
|
|
41
|
+
return _loadFbxObj.apply(this, arguments);
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.loadTexture = loadTexture;
|
|
7
|
+
|
|
8
|
+
var _three = require("three");
|
|
9
|
+
|
|
10
|
+
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); } }
|
|
11
|
+
|
|
12
|
+
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); }); }; }
|
|
13
|
+
|
|
14
|
+
var textureLoader = new _three.TextureLoader();
|
|
15
|
+
|
|
16
|
+
function loadTexture(_x) {
|
|
17
|
+
return _loadTexture.apply(this, arguments);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function _loadTexture() {
|
|
21
|
+
_loadTexture = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url) {
|
|
22
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
23
|
+
while (1) {
|
|
24
|
+
switch (_context.prev = _context.next) {
|
|
25
|
+
case 0:
|
|
26
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
27
|
+
textureLoader.load(url, resolve, undefined, reject);
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
case 1:
|
|
31
|
+
case "end":
|
|
32
|
+
return _context.stop();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, _callee);
|
|
36
|
+
}));
|
|
37
|
+
return _loadTexture.apply(this, arguments);
|
|
38
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _three = require("three");
|
|
9
|
+
|
|
10
|
+
var vector3 = function vector3(_ref) {
|
|
11
|
+
var x = _ref.x,
|
|
12
|
+
y = _ref.y,
|
|
13
|
+
z = _ref.z;
|
|
14
|
+
return new _three.Vector3(x, y, z);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var _default = vector3;
|
|
18
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = throttle;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 创建一个防抖动函数,该函数在高频调用时会每隔 wait 毫秒后调用 func 方法
|
|
10
|
+
* `throttle` 会在第一次调用时立刻调用一次
|
|
11
|
+
* @param func - 要防抖动的函数
|
|
12
|
+
* @param wait - 需要延迟的毫秒数
|
|
13
|
+
*/
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
function throttle(func) {
|
|
16
|
+
var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
|
17
|
+
var last;
|
|
18
|
+
return function () {
|
|
19
|
+
if (last) return;
|
|
20
|
+
func.apply(void 0, arguments);
|
|
21
|
+
last = setTimeout(function () {
|
|
22
|
+
last = null;
|
|
23
|
+
}, wait);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 传入一个 Promise
|
|
3
|
+
* 无异常,返回 [null, data]
|
|
4
|
+
* 有异常,则返回 [Error, undefined]
|
|
5
|
+
* 用于替代 try&catch 处理 await 异常的方案
|
|
6
|
+
* @param {Promise} promise 传入一个 Promise
|
|
7
|
+
*/
|
|
8
|
+
export declare function to<T>(promise: Promise<T>): Promise<[null, T] | [Error, null]>;
|
|
9
|
+
export default to;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
exports.to = to;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 传入一个 Promise
|
|
11
|
+
* 无异常,返回 [null, data]
|
|
12
|
+
* 有异常,则返回 [Error, undefined]
|
|
13
|
+
* 用于替代 try&catch 处理 await 异常的方案
|
|
14
|
+
* @param {Promise} promise 传入一个 Promise
|
|
15
|
+
*/
|
|
16
|
+
function to(promise) {
|
|
17
|
+
return promise.then(function (data) {
|
|
18
|
+
return [null, data];
|
|
19
|
+
})["catch"](function (err) {
|
|
20
|
+
return [err, null];
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var _default = to;
|
|
25
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 函数防抖:指触发事件后,在 `n` 秒内函数只能执行一次,如果触发事件后在 `n` 秒内又触发了事件,则会重新计算函数延执行时间。
|
|
3
|
+
* @param callback 回调函数
|
|
4
|
+
* @param waitFor 等待时间
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare const useDebounce: <F extends (...args: any) => any>(callback: F, waitFor?: number) => (...args: Parameters<F>) => ReturnType<F>;
|
|
8
|
+
export default useDebounce;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useDebounce = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 函数防抖:指触发事件后,在 `n` 秒内函数只能执行一次,如果触发事件后在 `n` 秒内又触发了事件,则会重新计算函数延执行时间。
|
|
12
|
+
* @param callback 回调函数
|
|
13
|
+
* @param waitFor 等待时间
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
var useDebounce = function useDebounce(callback) {
|
|
17
|
+
var waitFor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
|
18
|
+
var timer = (0, _react.useRef)();
|
|
19
|
+
var savedFunc = (0, _react.useRef)(callback);
|
|
20
|
+
(0, _react.useEffect)(function () {
|
|
21
|
+
savedFunc.current = callback;
|
|
22
|
+
}, [waitFor]);
|
|
23
|
+
return (0, _react.useCallback)(function () {
|
|
24
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25
|
+
args[_key] = arguments[_key];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (timer.current) {
|
|
29
|
+
clearTimeout(timer.current);
|
|
30
|
+
timer.current = null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
timer.current = setTimeout(function () {
|
|
34
|
+
var _savedFunc$current;
|
|
35
|
+
|
|
36
|
+
return (_savedFunc$current = savedFunc.current) === null || _savedFunc$current === void 0 ? void 0 : _savedFunc$current.call.apply(_savedFunc$current, [savedFunc].concat(args));
|
|
37
|
+
}, waitFor);
|
|
38
|
+
}, []);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
exports.useDebounce = useDebounce;
|
|
42
|
+
var _default = useDebounce;
|
|
43
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 函数节流:控制频率,限制在 `n` 秒时间。
|
|
3
|
+
* @param callback 回调函数
|
|
4
|
+
* @param waitFor 等待时间
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare const useThrottle: <F extends (...args: any) => any>(callback: F, waitFor: number) => (...args: Parameters<F>) => ReturnType<F>;
|
|
8
|
+
export default useThrottle;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useThrottle = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 函数节流:控制频率,限制在 `n` 秒时间。
|
|
12
|
+
* @param callback 回调函数
|
|
13
|
+
* @param waitFor 等待时间
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
var useThrottle = function useThrottle(callback, waitFor) {
|
|
17
|
+
var timer = (0, _react.useRef)();
|
|
18
|
+
var savedFunc = (0, _react.useRef)(callback);
|
|
19
|
+
(0, _react.useEffect)(function () {
|
|
20
|
+
savedFunc.current = callback;
|
|
21
|
+
}, [waitFor]);
|
|
22
|
+
return (0, _react.useCallback)(function () {
|
|
23
|
+
var _savedFunc$current;
|
|
24
|
+
|
|
25
|
+
if (timer.current) return;
|
|
26
|
+
|
|
27
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28
|
+
args[_key] = arguments[_key];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
(_savedFunc$current = savedFunc.current) === null || _savedFunc$current === void 0 ? void 0 : _savedFunc$current.call.apply(_savedFunc$current, [savedFunc].concat(args));
|
|
32
|
+
timer.current = setTimeout(function () {
|
|
33
|
+
if (timer.current) clearTimeout(timer.current);
|
|
34
|
+
timer.current = null;
|
|
35
|
+
}, waitFor);
|
|
36
|
+
}, []);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.useThrottle = useThrottle;
|
|
40
|
+
var _default = useThrottle;
|
|
41
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = uuid;
|
|
7
|
+
|
|
8
|
+
// uuid
|
|
9
|
+
function S4() {
|
|
10
|
+
return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 随机生成一个uuid值
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
function uuid() {
|
|
18
|
+
// then to call it, plus stitch in '4' in the third group
|
|
19
|
+
return (S4() + S4() + '-' + S4() + '-4' + S4().substr(0, 3) + '-' + S4() + '-' + S4() + S4() + S4()).toLowerCase();
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.vectorTocoordinates = vectorTocoordinates;
|
|
7
|
+
|
|
8
|
+
var _formatRad = require("./formatRad");
|
|
9
|
+
|
|
10
|
+
/** 单位向量转换成坐标 */
|
|
11
|
+
function vectorTocoordinates(vector) {
|
|
12
|
+
return {
|
|
13
|
+
longitude: (0, _formatRad.formatRad)(-Math.atan2(vector.x, -vector.z)),
|
|
14
|
+
latitude: -Math.asin(vector.y / 1)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { ARVideoFigureMeshOptions, ARVideoFigureMesh } from '../components/ARVideoFigure/ARVideoFigureMesh';
|
|
2
|
+
export type { ARVideoFigureScene } from '../components/ARVideoFigure/ARVideoFigureScene';
|
|
3
|
+
export type { ARVideoFigurePropTypes, ARVideoFigure } from '../components/ARVideoFigure';
|
|
4
|
+
export type { ImgBgTransparentMesh, ImgBgTransparentScene } from '../components/ARVideoFigure/ImgBgTransparentMesh';
|
|
5
|
+
export type { ImgBgTransparentProps, ImgBgTransparent } from '../components/ARVideoFigure/ImgBgTransparent';
|
|
6
|
+
export type { GlassFiltersPropTypes, GlassFilters } from '../components/GlassFilters';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type { CameraMovementPlugin } from '../plugins/CameraMovementPlugin';
|
|
2
|
+
export type { CameraMovementPluginExportType, CameraMovementPluginParameterType, MoveArgs, MoveOpts, RotateArgs, RotateOpts, Rotation, CameraMovementEffect, CameraMovementOptsCallback, } from '../plugins/CameraMovementPlugin/typing';
|
|
3
|
+
export type { CSS3DRenderPlugin, CSS3DRenderPluginParameterType, CSS3DRenderPluginExportType, } from '../plugins/CSS3DRenderPlugin';
|
|
4
|
+
export type { ModelChassisCompassPluginParameterType, ModelChassisCompassPluginExportType, } from '../plugins/ModelChassisCompassPlugin';
|
|
5
|
+
export type { ModelFloorplanPlugin, ModelFloorplanErrorType, ModelFloorplanViewEvent, ModelFloorplanParameterType, ModelFloorplanEventHandlers, ModelFloorplanPluginsConfigs, ModelFloorplanPluginReturnType, } from '../plugins/floorplan/ModelFloorplanPlugin';
|
|
6
|
+
export type { ModelFloorplanPluginsShowOpts, default as ModelFloorplanPluginController, } from '../plugins/floorplan/ModelFloorplanPlugin/Controller';
|
|
7
|
+
export type { ModelTVVideoPlugin, ModelTVVideoPluginData, ModelTVVideoPluginExportType, ModelTVVideoPluginParameterType, } from '../plugins/ModelTVVideoPlugin';
|
|
8
|
+
export type { ModelViewPlugin, ModelViewPluginExportType } from '../plugins/ModelViewPlugin';
|
|
9
|
+
export type { PanoCursorRaycasterPluginParameterType, PanoCursorRaycasterPluginExportType, PanoCursorRaycasterPlugin, } from '../plugins/PanoCursorRaycasterPlugin';
|
|
10
|
+
export type { PanoFloorplanRadarPlugin, PanoFloorplanRadarPluginReturnType, PanoFloorplanRadarPluginController, PanoFloorplanRadarPluginParameterType, PanoFloorplanRadarPluginControllerParameter, } from '../plugins/floorplan/PanoFloorplanRadarPlugin';
|
|
11
|
+
export type { PanoRulerPlugin, PanoRulerPluginOptions, PanoRulerPluginParameterType, PanoRulerPluginExportType, } from '../plugins/PanoRulerPlugin';
|
|
12
|
+
export type { PanoTVVideoPluginPoints, PanoTVVideoPluginData, PanoTVVideoPluginParameterType, PanoTVVideoPluginExportType, PanoTVVideoPlugin, } from '../plugins/PanoTVVideoPlugin';
|
|
13
|
+
export type { FloorplanServerPosition, FloorplanServerImagePosition, FloorplanServerOutlineItem, FloorplanServerEntrance, FloorplanServerBounding, FloorplanServerRoomLabelItem, FloorplanServerRoomItem, FloorplanServerObserver, FloorplanServerData, FloorplanServerComputedData, FloorplanServerFloorData, } from '../plugins/floorplan/typings/floorplanServerData';
|
|
14
|
+
export type { FloorplanData, FloorplanEntrance, FloorplanBounding, FloorplanPosition, FloorplanRoomItem, FloorplanObserver, FloorplanFloorData, FloorplanOutlineItem, FloorplanImagePosition, FloorplanRoomLabelItem, FloorplanExtraObject, FloorplanExtraObject3D, } from '../plugins/floorplan/typings/floorplanData';
|
|
15
|
+
export { TopviewFloorplanPlugin, TopviewFloorplanPluginParameterType, } from '../plugins/floorplan/TopviewFloorplanPlugin';
|
|
16
|
+
export { TopviewFloorplanPluginController } from '../plugins/floorplan/TopviewFloorplanPlugin/Controller';
|
|
17
|
+
export { TreasureType, TreasurePlugin, TreasurePluginData, TreasurePluginItemData, TreasurePluginEvents, TreasurePluginController, TreasurePluginReturnType, TreasurePluginParameterType, TreasureObject, TreasureObjectParam, TreasureFaceAnime, TreasureFaceAnimeParam, TreasureOpenAnimeParam, TreasurePluginOpenAnime, } from '../plugins/TreasurePlugin';
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TopviewFloorplanPlugin", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _TopviewFloorplanPlugin.TopviewFloorplanPlugin;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "TopviewFloorplanPluginController", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _Controller.TopviewFloorplanPluginController;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "TopviewFloorplanPluginParameterType", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _TopviewFloorplanPlugin.TopviewFloorplanPluginParameterType;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "TreasureFaceAnime", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _TreasurePlugin.TreasureFaceAnime;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "TreasureFaceAnimeParam", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _TreasurePlugin.TreasureFaceAnimeParam;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "TreasureObject", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _TreasurePlugin.TreasureObject;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "TreasureObjectParam", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _TreasurePlugin.TreasureObjectParam;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "TreasureOpenAnimeParam", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _TreasurePlugin.TreasureOpenAnimeParam;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "TreasurePlugin", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _TreasurePlugin.TreasurePlugin;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "TreasurePluginController", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _TreasurePlugin.TreasurePluginController;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "TreasurePluginData", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _TreasurePlugin.TreasurePluginData;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "TreasurePluginEvents", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _TreasurePlugin.TreasurePluginEvents;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "TreasurePluginItemData", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function get() {
|
|
81
|
+
return _TreasurePlugin.TreasurePluginItemData;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "TreasurePluginOpenAnime", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _TreasurePlugin.TreasurePluginOpenAnime;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "TreasurePluginParameterType", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _TreasurePlugin.TreasurePluginParameterType;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "TreasurePluginReturnType", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return _TreasurePlugin.TreasurePluginReturnType;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "TreasureType", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _TreasurePlugin.TreasureType;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
var _TopviewFloorplanPlugin = require("../plugins/floorplan/TopviewFloorplanPlugin");
|
|
110
|
+
|
|
111
|
+
var _Controller = require("../plugins/floorplan/TopviewFloorplanPlugin/Controller");
|
|
112
|
+
|
|
113
|
+
var _TreasurePlugin = require("../plugins/TreasurePlugin");
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { FloorplanData, FloorplanOutlineItem, FloorplanEntrance, FloorplanBounding, FloorplanObserver, FloorplanRoomItem, FloorplanRoomLabelItem, FloorplanPosition, FloorplanImagePosition, } from '../plugins/floorplan/typings/floorplanData';
|
|
2
|
+
export type { Vector3, Vector3WithArray, Vector2, Vector2WithArray, Matrix4_4 } from '../typings/math.type';
|
|
3
|
+
export type { Omit, Overwrite } from '../typings/utils.type';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 三维向量
|
|
3
|
+
*/
|
|
4
|
+
export interface Vector3 {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
z: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 三维向量数组表示
|
|
11
|
+
*/
|
|
12
|
+
export declare type Vector3WithArray = [number, number, number];
|
|
13
|
+
/**
|
|
14
|
+
* 二维向量
|
|
15
|
+
*/
|
|
16
|
+
export interface Vector2 {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 二维向量数组展示
|
|
22
|
+
*/
|
|
23
|
+
export declare type Vector2WithArray = [number, number];
|
|
24
|
+
/**
|
|
25
|
+
* 4 * 4 矩阵数组表示
|
|
26
|
+
*/
|
|
27
|
+
export declare type Matrix4_4 = [
|
|
28
|
+
number,
|
|
29
|
+
number,
|
|
30
|
+
number,
|
|
31
|
+
number,
|
|
32
|
+
number,
|
|
33
|
+
number,
|
|
34
|
+
number,
|
|
35
|
+
number,
|
|
36
|
+
number,
|
|
37
|
+
number,
|
|
38
|
+
number,
|
|
39
|
+
number,
|
|
40
|
+
number,
|
|
41
|
+
number,
|
|
42
|
+
number,
|
|
43
|
+
number
|
|
44
|
+
];
|