@galacean/engine-rhi-webgl 0.9.0-beta.82 → 0.9.0

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.
@@ -65,27 +65,27 @@ var miniprogram$1 = require('@galacean/engine-core/dist/miniprogram');
65
65
  })(exports.GLCompressedTextureInternalFormat || (exports.GLCompressedTextureInternalFormat = {}));
66
66
 
67
67
  function _defineProperties(target, props) {
68
- for (var i = 0; i < props.length; i++) {
69
- var descriptor = props[i];
70
- descriptor.enumerable = descriptor.enumerable || false;
71
- descriptor.configurable = true;
72
- if ("value" in descriptor) descriptor.writable = true;
73
- Object.defineProperty(target, descriptor.key, descriptor);
74
- }
68
+ for (var i = 0; i < props.length; i++) {
69
+ var descriptor = props[i];
70
+ descriptor.enumerable = descriptor.enumerable || false;
71
+ descriptor.configurable = true;
72
+
73
+ if ("value" in descriptor) descriptor.writable = true;
74
+
75
+ Object.defineProperty(target, descriptor.key, descriptor);
76
+ }
75
77
  }
78
+ function _create_class(Constructor, protoProps, staticProps) {
79
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
80
+ if (staticProps) _defineProperties(Constructor, staticProps);
76
81
 
77
- function _createClass(Constructor, protoProps, staticProps) {
78
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
79
- if (staticProps) _defineProperties(Constructor, staticProps);
80
- return Constructor;
82
+ return Constructor;
81
83
  }
82
84
 
83
85
  function _instanceof(left, right) {
84
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
85
- return !!right[Symbol.hasInstance](left);
86
- } else {
87
- return left instanceof right;
88
- }
86
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
87
+ return !!right[Symbol.hasInstance](left);
88
+ } else return left instanceof right;
89
89
  }
90
90
 
91
91
  /**
@@ -119,7 +119,7 @@ function _instanceof(left, right) {
119
119
  this._scale.set(x, y);
120
120
  this.scale = this._scale;
121
121
  };
122
- _createClass(WebCanvas, [
122
+ _create_class(WebCanvas, [
123
123
  {
124
124
  key: "width",
125
125
  get: /**
@@ -172,54 +172,37 @@ function _instanceof(left, right) {
172
172
  return WebCanvas;
173
173
  }();
174
174
 
175
- function setPrototypeOf(o, p) {
176
- setPrototypeOf = Object.setPrototypeOf || function setPrototypeOf(o, p) {
177
- o.__proto__ = p;
178
- return o;
179
- };
175
+ function _set_prototype_of(o, p) {
176
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
177
+ o.__proto__ = p;
180
178
 
181
- return setPrototypeOf(o, p);
182
- }
179
+ return o;
180
+ };
183
181
 
184
- function _setPrototypeOf(o, p) {
185
- return setPrototypeOf(o, p);
182
+ return _set_prototype_of(o, p);
186
183
  }
187
184
 
188
185
  function _inherits(subClass, superClass) {
189
- if (typeof superClass !== "function" && superClass !== null) {
190
- throw new TypeError("Super expression must either be null or a function");
191
- }
192
-
193
- subClass.prototype = Object.create(superClass && superClass.prototype, {
194
- constructor: {
195
- value: subClass,
196
- writable: true,
197
- configurable: true
186
+ if (typeof superClass !== "function" && superClass !== null) {
187
+ throw new TypeError("Super expression must either be null or a function");
198
188
  }
199
- });
200
- if (superClass) _setPrototypeOf(subClass, superClass);
201
- }
202
189
 
203
- function extends_() {
204
- extends_ = Object.assign || function (target) {
205
- for (var i = 1; i < arguments.length; i++) {
206
- var source = arguments[i];
190
+ subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
207
191
 
208
- for (var key in source) {
209
- if (Object.prototype.hasOwnProperty.call(source, key)) {
210
- target[key] = source[key];
211
- }
212
- }
213
- }
214
-
215
- return target;
216
- };
217
-
218
- return extends_.apply(this, arguments);
192
+ if (superClass) _set_prototype_of(subClass, superClass);
219
193
  }
220
194
 
221
195
  function _extends() {
222
- return extends_.apply(this, arguments);
196
+ _extends = Object.assign || function assign(target) {
197
+ for (var i = 1; i < arguments.length; i++) {
198
+ var source = arguments[i];
199
+ for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
200
+ }
201
+
202
+ return target;
203
+ };
204
+
205
+ return _extends.apply(this, arguments);
223
206
  }
224
207
 
225
208
  /**
@@ -358,7 +341,7 @@ function _extends() {
358
341
  TEXTURE_MAX_ANISOTROPY_EXT: "TEXTURE_MAX_ANISOTROPY_EXT"
359
342
  });
360
343
  };
361
- _createClass(GLCapability, [
344
+ _create_class(GLCapability, [
362
345
  {
363
346
  key: "maxTextureSize",
364
347
  get: function get() {
@@ -1112,7 +1095,7 @@ function _extends() {
1112
1095
  }
1113
1096
  return true;
1114
1097
  };
1115
- _createClass(GLTexture, [
1098
+ _create_class(GLTexture, [
1116
1099
  {
1117
1100
  key: "wrapModeU",
1118
1101
  set: /**
@@ -1856,7 +1839,7 @@ exports.WebGLMode = void 0;
1856
1839
  this._gl.flush();
1857
1840
  };
1858
1841
  _proto.destroy = function destroy() {};
1859
- _createClass(WebGLRenderer, [
1842
+ _create_class(WebGLRenderer, [
1860
1843
  {
1861
1844
  key: "isWebGL2",
1862
1845
  get: function get() {
@@ -1909,7 +1892,7 @@ exports.WebGLMode = void 0;
1909
1892
  var hardwareRenderer = new WebGLRenderer(webGLRendererOptions);
1910
1893
  return Engine.call(this, webCanvas, hardwareRenderer);
1911
1894
  }
1912
- _createClass(WebGLEngine, [
1895
+ _create_class(WebGLEngine, [
1913
1896
  {
1914
1897
  key: "canvas",
1915
1898
  get: /**
package/dist/module.js CHANGED
@@ -60,27 +60,27 @@ import { GLCapabilityType, Logger, TextureWrapMode, TextureFormat, RenderBufferD
60
60
  })(GLCompressedTextureInternalFormat || (GLCompressedTextureInternalFormat = {}));
61
61
 
62
62
  function _defineProperties(target, props) {
63
- for (var i = 0; i < props.length; i++) {
64
- var descriptor = props[i];
65
- descriptor.enumerable = descriptor.enumerable || false;
66
- descriptor.configurable = true;
67
- if ("value" in descriptor) descriptor.writable = true;
68
- Object.defineProperty(target, descriptor.key, descriptor);
69
- }
63
+ for (var i = 0; i < props.length; i++) {
64
+ var descriptor = props[i];
65
+ descriptor.enumerable = descriptor.enumerable || false;
66
+ descriptor.configurable = true;
67
+
68
+ if ("value" in descriptor) descriptor.writable = true;
69
+
70
+ Object.defineProperty(target, descriptor.key, descriptor);
71
+ }
70
72
  }
73
+ function _create_class(Constructor, protoProps, staticProps) {
74
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
75
+ if (staticProps) _defineProperties(Constructor, staticProps);
71
76
 
72
- function _createClass(Constructor, protoProps, staticProps) {
73
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
74
- if (staticProps) _defineProperties(Constructor, staticProps);
75
- return Constructor;
77
+ return Constructor;
76
78
  }
77
79
 
78
80
  function _instanceof(left, right) {
79
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
80
- return !!right[Symbol.hasInstance](left);
81
- } else {
82
- return left instanceof right;
83
- }
81
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
82
+ return !!right[Symbol.hasInstance](left);
83
+ } else return left instanceof right;
84
84
  }
85
85
 
86
86
  /**
@@ -114,7 +114,7 @@ function _instanceof(left, right) {
114
114
  this._scale.set(x, y);
115
115
  this.scale = this._scale;
116
116
  };
117
- _createClass(WebCanvas, [
117
+ _create_class(WebCanvas, [
118
118
  {
119
119
  key: "width",
120
120
  get: /**
@@ -167,54 +167,37 @@ function _instanceof(left, right) {
167
167
  return WebCanvas;
168
168
  }();
169
169
 
170
- function setPrototypeOf(o, p) {
171
- setPrototypeOf = Object.setPrototypeOf || function setPrototypeOf(o, p) {
172
- o.__proto__ = p;
173
- return o;
174
- };
170
+ function _set_prototype_of(o, p) {
171
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
172
+ o.__proto__ = p;
175
173
 
176
- return setPrototypeOf(o, p);
177
- }
174
+ return o;
175
+ };
178
176
 
179
- function _setPrototypeOf(o, p) {
180
- return setPrototypeOf(o, p);
177
+ return _set_prototype_of(o, p);
181
178
  }
182
179
 
183
180
  function _inherits(subClass, superClass) {
184
- if (typeof superClass !== "function" && superClass !== null) {
185
- throw new TypeError("Super expression must either be null or a function");
186
- }
187
-
188
- subClass.prototype = Object.create(superClass && superClass.prototype, {
189
- constructor: {
190
- value: subClass,
191
- writable: true,
192
- configurable: true
181
+ if (typeof superClass !== "function" && superClass !== null) {
182
+ throw new TypeError("Super expression must either be null or a function");
193
183
  }
194
- });
195
- if (superClass) _setPrototypeOf(subClass, superClass);
196
- }
197
184
 
198
- function extends_() {
199
- extends_ = Object.assign || function (target) {
200
- for (var i = 1; i < arguments.length; i++) {
201
- var source = arguments[i];
185
+ subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
202
186
 
203
- for (var key in source) {
204
- if (Object.prototype.hasOwnProperty.call(source, key)) {
205
- target[key] = source[key];
206
- }
207
- }
208
- }
209
-
210
- return target;
211
- };
212
-
213
- return extends_.apply(this, arguments);
187
+ if (superClass) _set_prototype_of(subClass, superClass);
214
188
  }
215
189
 
216
190
  function _extends() {
217
- return extends_.apply(this, arguments);
191
+ _extends = Object.assign || function assign(target) {
192
+ for (var i = 1; i < arguments.length; i++) {
193
+ var source = arguments[i];
194
+ for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
195
+ }
196
+
197
+ return target;
198
+ };
199
+
200
+ return _extends.apply(this, arguments);
218
201
  }
219
202
 
220
203
  /**
@@ -353,7 +336,7 @@ function _extends() {
353
336
  TEXTURE_MAX_ANISOTROPY_EXT: "TEXTURE_MAX_ANISOTROPY_EXT"
354
337
  });
355
338
  };
356
- _createClass(GLCapability, [
339
+ _create_class(GLCapability, [
357
340
  {
358
341
  key: "maxTextureSize",
359
342
  get: function get() {
@@ -1107,7 +1090,7 @@ function _extends() {
1107
1090
  }
1108
1091
  return true;
1109
1092
  };
1110
- _createClass(GLTexture, [
1093
+ _create_class(GLTexture, [
1111
1094
  {
1112
1095
  key: "wrapModeU",
1113
1096
  set: /**
@@ -1851,7 +1834,7 @@ var WebGLMode;
1851
1834
  this._gl.flush();
1852
1835
  };
1853
1836
  _proto.destroy = function destroy() {};
1854
- _createClass(WebGLRenderer, [
1837
+ _create_class(WebGLRenderer, [
1855
1838
  {
1856
1839
  key: "isWebGL2",
1857
1840
  get: function get() {
@@ -1904,7 +1887,7 @@ var WebGLMode;
1904
1887
  var hardwareRenderer = new WebGLRenderer(webGLRendererOptions);
1905
1888
  return Engine.call(this, webCanvas, hardwareRenderer);
1906
1889
  }
1907
- _createClass(WebGLEngine, [
1890
+ _create_class(WebGLEngine, [
1908
1891
  {
1909
1892
  key: "canvas",
1910
1893
  get: /**