@galacean/engine 1.2.0-beta.2 → 1.2.0-beta.3

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
@@ -2242,11 +2242,11 @@
2242
2242
  var unit = xx + yy + zz + ww;
2243
2243
  var test = 2 * (x * w - y * z);
2244
2244
  if (test > (1 - MathUtil.zeroTolerance) * unit) {
2245
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2245
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2246
2246
  out._y = Math.PI / 2;
2247
2247
  out._z = 0;
2248
2248
  } else if (test < -(1 - MathUtil.zeroTolerance) * unit) {
2249
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2249
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2250
2250
  out._y = -Math.PI / 2;
2251
2251
  out._z = 0;
2252
2252
  } else {
@@ -24193,7 +24193,8 @@
24193
24193
  /** @internal */ this._upList = new DisorderedArray();
24194
24194
  /** @internal */ this._downList = new DisorderedArray();
24195
24195
  this._nativeEvents = [];
24196
- if (_instanceof1$2(target, Window)) {
24196
+ // Temporary solution for mini program, window does not exist
24197
+ if (typeof Window !== "undefined" && _instanceof1$2(target, Window)) {
24197
24198
  throw "Do not set window as target because window cannot listen to pointer leave event.";
24198
24199
  }
24199
24200
  this._engine = engine;
@@ -44957,7 +44958,7 @@
44957
44958
  ], KHR_materials_anisotropy);
44958
44959
 
44959
44960
  //@ts-ignore
44960
- var version = "1.2.0-beta.2";
44961
+ var version = "1.2.0-beta.3";
44961
44962
  console.log("Galacean engine version: " + version);
44962
44963
  for(var key in CoreObjects){
44963
44964
  Loader.registerClass(key, CoreObjects[key]);
@@ -45152,3 +45153,4 @@
45152
45153
  Object.defineProperty(exports, '__esModule', { value: true });
45153
45154
 
45154
45155
  }));
45156
+ //# sourceMappingURL=browser.js.map