@galacean/engine 1.1.0-beta.43 → 1.1.0-beta.46

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
@@ -18303,10 +18303,20 @@
18303
18303
  };
18304
18304
  _proto._parseURL = function _parseURL(path) {
18305
18305
  var _path_split = path.split("?"), baseUrl = _path_split[0], searchStr = _path_split[1];
18306
- var searchParams = new URLSearchParams(searchStr);
18307
- var queryPath = searchParams.get("q");
18308
- searchParams.delete("q");
18309
- var assetBaseURL = searchParams.size > 0 ? baseUrl + "?" + searchParams.toString() : baseUrl;
18306
+ var queryPath = undefined;
18307
+ var assetBaseURL = baseUrl;
18308
+ if (searchStr) {
18309
+ var params = searchStr.split("&");
18310
+ for(var i = 0; i < params.length; i++){
18311
+ var param = params[i];
18312
+ if (param.startsWith("q=")) {
18313
+ queryPath = decodeURIComponent(param.split("=")[1]);
18314
+ params.splice(i, 1);
18315
+ break;
18316
+ }
18317
+ }
18318
+ assetBaseURL = params.length > 0 ? baseUrl + "?" + params.join("&") : baseUrl;
18319
+ }
18310
18320
  return {
18311
18321
  assetBaseURL: assetBaseURL,
18312
18322
  queryPath: queryPath
@@ -24337,8 +24347,8 @@
24337
24347
  set: function set(value) {
24338
24348
  if (this._width !== value) {
24339
24349
  this._width = value;
24350
+ this._onWidthChanged(value);
24340
24351
  this._sizeUpdateFlagManager.dispatch();
24341
- this._onSizeChanged(value, this._width);
24342
24352
  }
24343
24353
  }
24344
24354
  },
@@ -24352,8 +24362,8 @@
24352
24362
  set: function set(value) {
24353
24363
  if (this._height !== value) {
24354
24364
  this._height = value;
24365
+ this._onHeightChange(value);
24355
24366
  this._sizeUpdateFlagManager.dispatch();
24356
- this._onSizeChanged(this._width, value);
24357
24367
  }
24358
24368
  }
24359
24369
  }
@@ -35829,9 +35839,11 @@
35829
35839
  this._scale.set(x, y);
35830
35840
  this.scale = this._scale;
35831
35841
  };
35832
- _proto._onSizeChanged = function _onSizeChanged(width, height) {
35833
- this._webCanvas.width = width;
35834
- this._webCanvas.height = height;
35842
+ _proto._onWidthChanged = function _onWidthChanged(value) {
35843
+ this._webCanvas.width = value;
35844
+ };
35845
+ _proto._onHeightChange = function _onHeightChange(value) {
35846
+ this._webCanvas.height = value;
35835
35847
  };
35836
35848
  _create_class$2(WebCanvas, [
35837
35849
  {
@@ -44078,7 +44090,7 @@
44078
44090
  ], GALACEAN_animation_event);
44079
44091
 
44080
44092
  //@ts-ignore
44081
- var version = "1.1.0-beta.43";
44093
+ var version = "1.1.0-beta.46";
44082
44094
  console.log("Galacean engine version: " + version);
44083
44095
  for(var key in CoreObjects){
44084
44096
  Loader.registerClass(key, CoreObjects[key]);