@xviewer.js/core 1.0.0-alpha.10 → 1.0.0-alpha.11
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/dist/main.js +42 -37
- package/dist/main.js.map +1 -1
- package/dist/module.js +42 -37
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1157,6 +1157,35 @@ class aTextureLoader extends aLoader {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
|
|
1160
|
+
/******************************************************************************
|
|
1161
|
+
Copyright (c) Microsoft Corporation.
|
|
1162
|
+
|
|
1163
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1164
|
+
purpose with or without fee is hereby granted.
|
|
1165
|
+
|
|
1166
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1167
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1168
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1169
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1170
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1171
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1172
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1173
|
+
***************************************************************************** */
|
|
1174
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
function __decorate(decorators, target, key, desc) {
|
|
1178
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1179
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1180
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1181
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
1185
|
+
var e = new Error(message);
|
|
1186
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1160
1189
|
class PropertyManager {
|
|
1161
1190
|
static _getProperties(target) {
|
|
1162
1191
|
return this._propertiesMap.get(target.constructor);
|
|
@@ -1202,12 +1231,6 @@ function property(target, propertyKey) {
|
|
|
1202
1231
|
}
|
|
1203
1232
|
}
|
|
1204
1233
|
|
|
1205
|
-
function _ts_decorate$3(decorators, target, key, desc) {
|
|
1206
|
-
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1207
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1208
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1209
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1210
|
-
}
|
|
1211
1234
|
const CinestationBlendStyle = {
|
|
1212
1235
|
Linear: Easing.Linear.None,
|
|
1213
1236
|
QuadraticIn: Easing.Quadratic.In,
|
|
@@ -1220,12 +1243,12 @@ class CinestationBlendDefinition {
|
|
|
1220
1243
|
this.time = 4;
|
|
1221
1244
|
}
|
|
1222
1245
|
}
|
|
1223
|
-
|
|
1246
|
+
__decorate([
|
|
1224
1247
|
property({
|
|
1225
1248
|
value: CinestationBlendStyle
|
|
1226
1249
|
})
|
|
1227
1250
|
], CinestationBlendDefinition.prototype, "style", void 0);
|
|
1228
|
-
|
|
1251
|
+
__decorate([
|
|
1229
1252
|
property
|
|
1230
1253
|
], CinestationBlendDefinition.prototype, "time", void 0);
|
|
1231
1254
|
|
|
@@ -1289,12 +1312,6 @@ class Component extends ObjectInstance {
|
|
|
1289
1312
|
}
|
|
1290
1313
|
}
|
|
1291
1314
|
|
|
1292
|
-
function _ts_decorate$2(decorators, target, key, desc) {
|
|
1293
|
-
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1294
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1295
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1296
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1297
|
-
}
|
|
1298
1315
|
const { clamp: clamp$1, lerp } = three.MathUtils;
|
|
1299
1316
|
class CinestationBrain extends Component {
|
|
1300
1317
|
get vcam() {
|
|
@@ -1367,16 +1384,10 @@ class CinestationBrain extends Component {
|
|
|
1367
1384
|
this.onChanged = null;
|
|
1368
1385
|
}
|
|
1369
1386
|
}
|
|
1370
|
-
|
|
1387
|
+
__decorate([
|
|
1371
1388
|
property
|
|
1372
1389
|
], CinestationBrain.prototype, "brainBlend", void 0);
|
|
1373
1390
|
|
|
1374
|
-
function _ts_decorate$1(decorators, target, key, desc) {
|
|
1375
|
-
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1376
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1377
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1378
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1379
|
-
}
|
|
1380
1391
|
class VirtualCamera extends Component {
|
|
1381
1392
|
get finalPosition() {
|
|
1382
1393
|
return this._finalPosition.copy(this.node.position).add(this.correctPosition);
|
|
@@ -1418,17 +1429,17 @@ class VirtualCamera extends Component {
|
|
|
1418
1429
|
this.trackedObjectOffset = new three.Vector3();
|
|
1419
1430
|
}
|
|
1420
1431
|
}
|
|
1421
|
-
|
|
1432
|
+
__decorate([
|
|
1422
1433
|
property({
|
|
1423
1434
|
dir: "lens"
|
|
1424
1435
|
})
|
|
1425
1436
|
], VirtualCamera.prototype, "fov", void 0);
|
|
1426
|
-
|
|
1437
|
+
__decorate([
|
|
1427
1438
|
property({
|
|
1428
1439
|
dir: "lens"
|
|
1429
1440
|
})
|
|
1430
1441
|
], VirtualCamera.prototype, "near", void 0);
|
|
1431
|
-
|
|
1442
|
+
__decorate([
|
|
1432
1443
|
property({
|
|
1433
1444
|
dir: "lens"
|
|
1434
1445
|
})
|
|
@@ -1964,12 +1975,6 @@ function quarticDamp(current, target, dampTime, deltaTime) {
|
|
|
1964
1975
|
|
|
1965
1976
|
const Vector3_ZERO = new three.Vector3();
|
|
1966
1977
|
|
|
1967
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
1968
|
-
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1969
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1970
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1971
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1972
|
-
}
|
|
1973
1978
|
const { clamp, degToRad } = three.MathUtils;
|
|
1974
1979
|
const { abs, tan } = Math;
|
|
1975
1980
|
const VCamFreeLookMode = {
|
|
@@ -2233,37 +2238,37 @@ FreelookVirtualCamera.__xAxis = new three.Vector3();
|
|
|
2233
2238
|
FreelookVirtualCamera.__yAxis = new three.Vector3();
|
|
2234
2239
|
FreelookVirtualCamera.__quat = new three.Quaternion();
|
|
2235
2240
|
FreelookVirtualCamera.__spherical = new three.Spherical();
|
|
2236
|
-
|
|
2241
|
+
__decorate([
|
|
2237
2242
|
property({
|
|
2238
2243
|
value: VCamFreeLookMode
|
|
2239
2244
|
})
|
|
2240
2245
|
], FreelookVirtualCamera.prototype, "mode", void 0);
|
|
2241
|
-
|
|
2246
|
+
__decorate([
|
|
2242
2247
|
property({
|
|
2243
2248
|
dir: "set"
|
|
2244
2249
|
})
|
|
2245
2250
|
], FreelookVirtualCamera.prototype, "forbidX", void 0);
|
|
2246
|
-
|
|
2251
|
+
__decorate([
|
|
2247
2252
|
property({
|
|
2248
2253
|
dir: "set"
|
|
2249
2254
|
})
|
|
2250
2255
|
], FreelookVirtualCamera.prototype, "forbidY", void 0);
|
|
2251
|
-
|
|
2256
|
+
__decorate([
|
|
2252
2257
|
property({
|
|
2253
2258
|
dir: "set"
|
|
2254
2259
|
})
|
|
2255
2260
|
], FreelookVirtualCamera.prototype, "forbidZ", void 0);
|
|
2256
|
-
|
|
2261
|
+
__decorate([
|
|
2257
2262
|
property({
|
|
2258
2263
|
dir: "set"
|
|
2259
2264
|
})
|
|
2260
2265
|
], FreelookVirtualCamera.prototype, "forbidPanX", void 0);
|
|
2261
|
-
|
|
2266
|
+
__decorate([
|
|
2262
2267
|
property({
|
|
2263
2268
|
dir: "set"
|
|
2264
2269
|
})
|
|
2265
2270
|
], FreelookVirtualCamera.prototype, "forbidPanY", void 0);
|
|
2266
|
-
|
|
2271
|
+
__decorate([
|
|
2267
2272
|
property({
|
|
2268
2273
|
dir: "set"
|
|
2269
2274
|
})
|