@galacean/engine 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/browser.js CHANGED
@@ -5286,25 +5286,29 @@
5286
5286
  ]);
5287
5287
  return Color;
5288
5288
  }();
5289
- /******************************************************************************
5290
- Copyright (c) Microsoft Corporation.
5291
-
5292
- Permission to use, copy, modify, and/or distribute this software for any
5293
- purpose with or without fee is hereby granted.
5294
-
5295
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
5296
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5297
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
5298
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5299
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
5300
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5301
- PERFORMANCE OF THIS SOFTWARE.
5289
+ /******************************************************************************
5290
+ Copyright (c) Microsoft Corporation.
5291
+
5292
+ Permission to use, copy, modify, and/or distribute this software for any
5293
+ purpose with or without fee is hereby granted.
5294
+
5295
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
5296
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5297
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
5298
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5299
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
5300
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5301
+ PERFORMANCE OF THIS SOFTWARE.
5302
5302
  ***************************************************************************** */ function __decorate$1(decorators, target, key, desc) {
5303
5303
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5304
5304
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5305
5305
  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;
5306
5306
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5307
5307
  }
5308
+ typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
5309
+ var e = new Error(message);
5310
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
5311
+ };
5308
5312
  function _instanceof1$2(left, right) {
5309
5313
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
5310
5314
  return !!right[Symbol.hasInstance](left);
@@ -8817,6 +8821,23 @@
8817
8821
  scale.z < 0 && (isInvert = !isInvert);
8818
8822
  return isInvert;
8819
8823
  };
8824
+ _proto._onDestroy = function _onDestroy() {
8825
+ Component.prototype._onDestroy.call(this);
8826
+ //@ts-ignore
8827
+ this._worldPosition._onValueChanged = null;
8828
+ //@ts-ignore
8829
+ this._rotation._onValueChanged = null;
8830
+ //@ts-ignore
8831
+ this._worldRotation._onValueChanged = null;
8832
+ //@ts-ignore
8833
+ this._rotationQuaternion._onValueChanged = null;
8834
+ //@ts-ignore
8835
+ this._worldRotationQuaternion._onValueChanged = null;
8836
+ //@ts-ignore
8837
+ this._position._onValueChanged = null;
8838
+ //@ts-ignore
8839
+ this._scale._onValueChanged = null;
8840
+ };
8820
8841
  /**
8821
8842
  * Get worldMatrix: Will trigger the worldMatrix update of itself and all parent entities.
8822
8843
  * Get worldPosition: Will trigger the worldMatrix, local position update of itself and the worldMatrix update of all parent entities.
@@ -9508,6 +9529,7 @@
9508
9529
  return component;
9509
9530
  }
9510
9531
  }
9532
+ return null;
9511
9533
  };
9512
9534
  /**
9513
9535
  * Get components which match the type.
@@ -33615,19 +33637,19 @@
33615
33637
  });
33616
33638
  if (superClass) _set_prototype_of(subClass, superClass);
33617
33639
  }
33618
- /******************************************************************************
33619
- Copyright (c) Microsoft Corporation.
33620
-
33621
- Permission to use, copy, modify, and/or distribute this software for any
33622
- purpose with or without fee is hereby granted.
33623
-
33624
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
33625
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33626
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
33627
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33628
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
33629
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33630
- PERFORMANCE OF THIS SOFTWARE.
33640
+ /******************************************************************************
33641
+ Copyright (c) Microsoft Corporation.
33642
+
33643
+ Permission to use, copy, modify, and/or distribute this software for any
33644
+ purpose with or without fee is hereby granted.
33645
+
33646
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
33647
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33648
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
33649
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33650
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
33651
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33652
+ PERFORMANCE OF THIS SOFTWARE.
33631
33653
  ***************************************************************************** */ function __decorate(decorators, target, key, desc) {
33632
33654
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
33633
33655
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -33729,6 +33751,10 @@
33729
33751
  return this;
33730
33752
  }), g;
33731
33753
  }
33754
+ typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
33755
+ var e = new Error(message);
33756
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
33757
+ };
33732
33758
  var AnimatorControllerLoader = /*#__PURE__*/ function(Loader1) {
33733
33759
  var AnimatorControllerLoader = function AnimatorControllerLoader() {
33734
33760
  return Loader1.apply(this, arguments);
@@ -38549,7 +38575,7 @@
38549
38575
  ], GALACEAN_animation_event);
38550
38576
 
38551
38577
  //@ts-ignore
38552
- var version = "1.0.0-beta.18";
38578
+ var version = "1.0.0-beta.19";
38553
38579
  console.log("Galacean engine version: " + version);
38554
38580
  for(var key in CoreObjects){
38555
38581
  Loader.registerClass(key, CoreObjects[key]);