@galacean/engine-core 1.0.0-beta.18 → 1.0.0-beta.19
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 +43 -20
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +43 -20
- package/dist/module.js +43 -20
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/Entity.d.ts +1 -1
- package/types/RenderPipeline/CullingResults.d.ts +1 -0
- package/types/RenderPipeline/DepthOnlyPass.d.ts +1 -0
- package/types/RenderPipeline/PipelinePass.d.ts +16 -0
- package/types/RenderPipeline/PipelineUtils.d.ts +1 -0
- package/types/Transform.d.ts +1 -0
- package/types/asset/LoadItem.d.ts +16 -9
- package/types/enums/ActiveChangeFlag.d.ts +6 -0
- package/types/enums/DepthTextureMode.d.ts +7 -0
- package/types/index.d.ts +1 -1
- package/types/physics/PhysicsScene.d.ts +75 -0
- package/types/shader/enums/RenderStateElementKey.d.ts +58 -0
- package/types/utils/SafeLoopArray.d.ts +41 -0
package/dist/miniprogram.js
CHANGED
|
@@ -376,28 +376,33 @@ function _inherits(subClass, superClass) {
|
|
|
376
376
|
return Color;
|
|
377
377
|
}();
|
|
378
378
|
|
|
379
|
-
/******************************************************************************
|
|
380
|
-
Copyright (c) Microsoft Corporation.
|
|
381
|
-
|
|
382
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
383
|
-
purpose with or without fee is hereby granted.
|
|
384
|
-
|
|
385
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
386
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
387
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
388
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
389
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
390
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
391
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
392
|
-
***************************************************************************** */
|
|
393
|
-
|
|
394
|
-
function __decorate(decorators, target, key, desc) {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
379
|
+
/******************************************************************************
|
|
380
|
+
Copyright (c) Microsoft Corporation.
|
|
381
|
+
|
|
382
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
383
|
+
purpose with or without fee is hereby granted.
|
|
384
|
+
|
|
385
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
386
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
387
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
388
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
389
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
390
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
391
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
392
|
+
***************************************************************************** */
|
|
393
|
+
|
|
394
|
+
function __decorate(decorators, target, key, desc) {
|
|
395
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
396
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
397
|
+
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;
|
|
398
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
402
|
+
var e = new Error(message);
|
|
403
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
404
|
+
};
|
|
405
|
+
|
|
401
406
|
function _instanceof(left, right) {
|
|
402
407
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
403
408
|
return !!right[Symbol.hasInstance](left);
|
|
@@ -3955,6 +3960,23 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
3955
3960
|
scale.z < 0 && (isInvert = !isInvert);
|
|
3956
3961
|
return isInvert;
|
|
3957
3962
|
};
|
|
3963
|
+
_proto._onDestroy = function _onDestroy() {
|
|
3964
|
+
Component.prototype._onDestroy.call(this);
|
|
3965
|
+
//@ts-ignore
|
|
3966
|
+
this._worldPosition._onValueChanged = null;
|
|
3967
|
+
//@ts-ignore
|
|
3968
|
+
this._rotation._onValueChanged = null;
|
|
3969
|
+
//@ts-ignore
|
|
3970
|
+
this._worldRotation._onValueChanged = null;
|
|
3971
|
+
//@ts-ignore
|
|
3972
|
+
this._rotationQuaternion._onValueChanged = null;
|
|
3973
|
+
//@ts-ignore
|
|
3974
|
+
this._worldRotationQuaternion._onValueChanged = null;
|
|
3975
|
+
//@ts-ignore
|
|
3976
|
+
this._position._onValueChanged = null;
|
|
3977
|
+
//@ts-ignore
|
|
3978
|
+
this._scale._onValueChanged = null;
|
|
3979
|
+
};
|
|
3958
3980
|
/**
|
|
3959
3981
|
* Get worldMatrix: Will trigger the worldMatrix update of itself and all parent entities.
|
|
3960
3982
|
* Get worldPosition: Will trigger the worldMatrix, local position update of itself and the worldMatrix update of all parent entities.
|
|
@@ -4648,6 +4670,7 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
4648
4670
|
return component;
|
|
4649
4671
|
}
|
|
4650
4672
|
}
|
|
4673
|
+
return null;
|
|
4651
4674
|
};
|
|
4652
4675
|
/**
|
|
4653
4676
|
* Get components which match the type.
|
package/dist/module.js
CHANGED
|
@@ -371,28 +371,33 @@ function _inherits(subClass, superClass) {
|
|
|
371
371
|
return Color;
|
|
372
372
|
}();
|
|
373
373
|
|
|
374
|
-
/******************************************************************************
|
|
375
|
-
Copyright (c) Microsoft Corporation.
|
|
376
|
-
|
|
377
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
378
|
-
purpose with or without fee is hereby granted.
|
|
379
|
-
|
|
380
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
381
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
382
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
383
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
384
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
385
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
386
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
387
|
-
***************************************************************************** */
|
|
388
|
-
|
|
389
|
-
function __decorate(decorators, target, key, desc) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
374
|
+
/******************************************************************************
|
|
375
|
+
Copyright (c) Microsoft Corporation.
|
|
376
|
+
|
|
377
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
378
|
+
purpose with or without fee is hereby granted.
|
|
379
|
+
|
|
380
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
381
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
382
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
383
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
384
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
385
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
386
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
387
|
+
***************************************************************************** */
|
|
388
|
+
|
|
389
|
+
function __decorate(decorators, target, key, desc) {
|
|
390
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
391
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
392
|
+
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;
|
|
393
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
397
|
+
var e = new Error(message);
|
|
398
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
399
|
+
};
|
|
400
|
+
|
|
396
401
|
function _instanceof(left, right) {
|
|
397
402
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
398
403
|
return !!right[Symbol.hasInstance](left);
|
|
@@ -3950,6 +3955,23 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
3950
3955
|
scale.z < 0 && (isInvert = !isInvert);
|
|
3951
3956
|
return isInvert;
|
|
3952
3957
|
};
|
|
3958
|
+
_proto._onDestroy = function _onDestroy() {
|
|
3959
|
+
Component.prototype._onDestroy.call(this);
|
|
3960
|
+
//@ts-ignore
|
|
3961
|
+
this._worldPosition._onValueChanged = null;
|
|
3962
|
+
//@ts-ignore
|
|
3963
|
+
this._rotation._onValueChanged = null;
|
|
3964
|
+
//@ts-ignore
|
|
3965
|
+
this._worldRotation._onValueChanged = null;
|
|
3966
|
+
//@ts-ignore
|
|
3967
|
+
this._rotationQuaternion._onValueChanged = null;
|
|
3968
|
+
//@ts-ignore
|
|
3969
|
+
this._worldRotationQuaternion._onValueChanged = null;
|
|
3970
|
+
//@ts-ignore
|
|
3971
|
+
this._position._onValueChanged = null;
|
|
3972
|
+
//@ts-ignore
|
|
3973
|
+
this._scale._onValueChanged = null;
|
|
3974
|
+
};
|
|
3953
3975
|
/**
|
|
3954
3976
|
* Get worldMatrix: Will trigger the worldMatrix update of itself and all parent entities.
|
|
3955
3977
|
* Get worldPosition: Will trigger the worldMatrix, local position update of itself and the worldMatrix update of all parent entities.
|
|
@@ -4643,6 +4665,7 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
4643
4665
|
return component;
|
|
4644
4666
|
}
|
|
4645
4667
|
}
|
|
4668
|
+
return null;
|
|
4646
4669
|
};
|
|
4647
4670
|
/**
|
|
4648
4671
|
* Get components which match the type.
|