@realsee/dnalogel 0.1.0 → 0.1.4
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/data/8054djM0oR6ky3Ey8e.d.ts +55 -0
- package/data/8054djM0oR6ky3Ey8e.js +348 -0
- package/data/PrXel3aqGbp34JQn.js +10 -2
- package/data/XJ6NMLWnkAY3Rdx8.d.ts +843 -0
- package/data/XJ6NMLWnkAY3Rdx8.js +7987 -0
- package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.d.ts +85 -0
- package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +509 -0
- package/data/vLykj3NWrllMrG06.d.ts +2 -0
- package/data/vLykj3NWrllMrG06.js +197 -2
- package/data/zxMawr9raSg8LYjG.d.ts +53 -0
- package/data/zxMawr9raSg8LYjG.js +588 -0
- package/package.json +3 -3
- package/plugins/AutoPreloadPlugin/index.d.ts +23 -0
- package/plugins/AutoPreloadPlugin/index.js +85 -0
- package/plugins/CSS3DRenderPlugin/index.d.ts +11 -11
- package/plugins/CSS3DRenderPlugin/index.js +170 -120
- package/plugins/ModelChassisCompassPlugin/index.d.ts +7 -3
- package/plugins/ModelChassisCompassPlugin/index.js +13 -26
- package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +13 -1
- package/plugins/ModelEntryDoorGuidePlugin/index.js +212 -2
- package/plugins/ModelRoomLabelPlugin/Controller.d.ts +35 -0
- package/plugins/ModelRoomLabelPlugin/Controller.js +147 -0
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +8 -0
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +48 -0
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +7 -0
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +149 -0
- package/plugins/ModelRoomLabelPlugin/index.d.ts +8 -0
- package/plugins/ModelRoomLabelPlugin/index.js +16 -0
- package/plugins/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/plugins/ModelRoomLabelPlugin/typings.js +5 -0
- package/plugins/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/plugins/ModelRoomLabelPlugin/utils/parseData.js +29 -0
- package/plugins/PanoMaskSelectorPlugin/compare.d.ts +1 -0
- package/plugins/PanoMaskSelectorPlugin/compare.js +15 -0
- package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +7 -0
- package/plugins/PanoMaskSelectorPlugin/createBox.js +61 -0
- package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +3 -0
- package/plugins/PanoMaskSelectorPlugin/createTextures.js +29 -0
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +1 -0
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +8 -0
- package/plugins/PanoMaskSelectorPlugin/index.d.ts +49 -0
- package/plugins/PanoMaskSelectorPlugin/index.js +272 -0
- package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +1 -0
- package/plugins/PanoMaskSelectorPlugin/vertexShader.js +8 -0
- package/plugins/TreasurePlugin/Controller.d.ts +53 -12
- package/plugins/TreasurePlugin/Controller.js +129 -60
- package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +8 -6
- package/plugins/TreasurePlugin/TreasureFaceAnime.js +4 -4
- package/plugins/TreasurePlugin/TreasureObject.d.ts +30 -12
- package/plugins/TreasurePlugin/TreasureObject.js +269 -53
- package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +4 -2
- package/plugins/TreasurePlugin/TreasureOpenAnime.js +10 -5
- package/plugins/TreasurePlugin/constants.d.ts +32 -11
- package/plugins/TreasurePlugin/constants.js +52 -17
- package/plugins/TreasurePlugin/index.d.ts +5 -5
- package/plugins/TreasurePlugin/index.js +8 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +4 -2
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +2 -1
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +5 -2
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +1 -1
- package/plugins/floorplan/typings/floorplanData.d.ts +5 -1
- package/plugins/floorplan/utils/formatData.js +1 -22
- package/plugins/floorplan/utils/formatPosition.d.ts +4 -4
- package/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/shared-utils/createCanvasTextTexture.js +29 -0
- package/shared-utils/isNil.d.ts +10 -0
- package/shared-utils/isNil.js +24 -0
- package/shared-utils/three/getExtraModelLoader.d.ts +6 -0
- package/shared-utils/three/getExtraModelLoader.js +31 -0
- package/shared-utils/three/getTextureLoader.d.ts +6 -0
- package/shared-utils/three/getTextureLoader.js +34 -0
- package/shared-utils/three/loadFbxObj.d.ts +1 -2
- package/shared-utils/three/loadFbxObj.js +6 -2
- package/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/shared-utils/three/{vecror3.js → transformPositionToVector3.js} +2 -2
- package/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/shared-utils/three/transfromToMeshBasicMaterial.js +27 -0
- package/shared-utils/to.d.ts +0 -1
- package/shared-utils/to.js +45 -7
- package/typedoc/plugins.d.ts +3 -1
- package/typedoc/plugins.js +63 -13
- package/typedoc/typings.d.ts +1 -1
- package/typings/math.type.d.ts +2 -2
- package/data/wYnRjQ4KZoV1yPoG.d.ts +0 -114
- package/data/wYnRjQ4KZoV1yPoG.js +0 -512
- package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.d.ts +0 -7
- package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.js +0 -18
- package/plugins/TreasurePlugin/treasureDataMap.d.ts +0 -7
- package/plugins/TreasurePlugin/treasureDataMap.js +0 -20
- package/plugins/TreasurePlugin/utils/loadTreasureTextures.d.ts +0 -7
- package/plugins/TreasurePlugin/utils/loadTreasureTextures.js +0 -115
- package/shared-utils/three/vecror3.d.ts +0 -7
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.treasureDataMap = void 0;
|
|
7
|
-
|
|
8
|
-
var _constants = require("./constants");
|
|
9
|
-
|
|
10
|
-
/** 不同宝箱类型对应的数据 */
|
|
11
|
-
var treasureDataMap = new Map();
|
|
12
|
-
exports.treasureDataMap = treasureDataMap;
|
|
13
|
-
treasureDataMap.set(_constants.TreasureType.TreasureType1, {
|
|
14
|
-
type: _constants.TreasureType.TreasureType1,
|
|
15
|
-
textureUrl: _constants.TREASURE_BASE_URL + 'box_Base_Color.png'
|
|
16
|
-
});
|
|
17
|
-
treasureDataMap.set(_constants.TreasureType.TreasureType2, {
|
|
18
|
-
type: _constants.TreasureType.TreasureType2,
|
|
19
|
-
textureUrl: _constants.TREASURE_BASE_URL + 'box_Base_Color_red.png'
|
|
20
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TreasurePluginData } from '../Controller';
|
|
2
|
-
import { Group, Texture } from 'three';
|
|
3
|
-
import { TreasureMapItem } from '../treasureDataMap';
|
|
4
|
-
export declare function loadTreasureTextures(data: TreasurePluginData, baseFbxObjPromise: Promise<Group>): Promise<{
|
|
5
|
-
treasureMapItem: TreasureMapItem;
|
|
6
|
-
texture: Texture;
|
|
7
|
-
}[]>;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.loadTreasureTextures = loadTreasureTextures;
|
|
7
|
-
|
|
8
|
-
var _loadTexture = require("../../../shared-utils/three/loadTexture");
|
|
9
|
-
|
|
10
|
-
var _constants = require("../constants");
|
|
11
|
-
|
|
12
|
-
var _treasureDataMap = require("../treasureDataMap");
|
|
13
|
-
|
|
14
|
-
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); } }
|
|
15
|
-
|
|
16
|
-
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); }); }; }
|
|
17
|
-
|
|
18
|
-
function loadTreasureTextures(_x, _x2) {
|
|
19
|
-
return _loadTreasureTextures.apply(this, arguments);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function _loadTreasureTextures() {
|
|
23
|
-
_loadTreasureTextures = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(data, baseFbxObjPromise) {
|
|
24
|
-
var types, treasureTexturePromise;
|
|
25
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
26
|
-
while (1) {
|
|
27
|
-
switch (_context.prev = _context.next) {
|
|
28
|
-
case 0:
|
|
29
|
-
// 需要加载的所有宝箱种类
|
|
30
|
-
types = Array.from(new Set(data.treasures.map(function (treasure) {
|
|
31
|
-
return treasure.type;
|
|
32
|
-
})));
|
|
33
|
-
treasureTexturePromise = Promise.all(types.map(function (type) {
|
|
34
|
-
return loadTreasureTextureWithType(type, baseFbxObjPromise);
|
|
35
|
-
}));
|
|
36
|
-
return _context.abrupt("return", treasureTexturePromise);
|
|
37
|
-
|
|
38
|
-
case 3:
|
|
39
|
-
case "end":
|
|
40
|
-
return _context.stop();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, _callee);
|
|
44
|
-
}));
|
|
45
|
-
return _loadTreasureTextures.apply(this, arguments);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function loadTreasureTextureWithType(_x3, _x4) {
|
|
49
|
-
return _loadTreasureTextureWithType.apply(this, arguments);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _loadTreasureTextureWithType() {
|
|
53
|
-
_loadTreasureTextureWithType = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(type, baseFbxObjPromise) {
|
|
54
|
-
var treasureMapItem, _texture, fbxGroup, box2Mesh, texture;
|
|
55
|
-
|
|
56
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
57
|
-
while (1) {
|
|
58
|
-
switch (_context2.prev = _context2.next) {
|
|
59
|
-
case 0:
|
|
60
|
-
treasureMapItem = _treasureDataMap.treasureDataMap.get(type);
|
|
61
|
-
|
|
62
|
-
if (treasureMapItem) {
|
|
63
|
-
_context2.next = 3;
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
throw new Error('不存在的宝箱类型');
|
|
68
|
-
|
|
69
|
-
case 3:
|
|
70
|
-
if (!(treasureMapItem.type !== _constants.DEFAULT_TREASURE_TYPE)) {
|
|
71
|
-
_context2.next = 8;
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
_context2.next = 6;
|
|
76
|
-
return (0, _loadTexture.loadTexture)(treasureMapItem.textureUrl);
|
|
77
|
-
|
|
78
|
-
case 6:
|
|
79
|
-
_texture = _context2.sent;
|
|
80
|
-
return _context2.abrupt("return", {
|
|
81
|
-
treasureMapItem: treasureMapItem,
|
|
82
|
-
texture: _texture
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
case 8:
|
|
86
|
-
_context2.next = 10;
|
|
87
|
-
return baseFbxObjPromise;
|
|
88
|
-
|
|
89
|
-
case 10:
|
|
90
|
-
fbxGroup = _context2.sent;
|
|
91
|
-
box2Mesh = fbxGroup.getObjectByName('box2');
|
|
92
|
-
texture = box2Mesh === null || box2Mesh === void 0 ? void 0 : box2Mesh.material.map;
|
|
93
|
-
|
|
94
|
-
if (texture) {
|
|
95
|
-
_context2.next = 15;
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
throw new Error('加载内置资源失败: FBX 文件不存在 box2');
|
|
100
|
-
|
|
101
|
-
case 15:
|
|
102
|
-
return _context2.abrupt("return", {
|
|
103
|
-
treasureMapItem: treasureMapItem,
|
|
104
|
-
texture: texture
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
case 16:
|
|
108
|
-
case "end":
|
|
109
|
-
return _context2.stop();
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}, _callee2);
|
|
113
|
-
}));
|
|
114
|
-
return _loadTreasureTextureWithType.apply(this, arguments);
|
|
115
|
-
}
|