@galacean/engine-core 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/main.js +16 -6
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +16 -6
- package/dist/module.js +16 -6
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/Canvas.d.ts +2 -1
package/dist/main.js
CHANGED
|
@@ -13521,10 +13521,20 @@ var /** @internal */ PromiseState;
|
|
|
13521
13521
|
};
|
|
13522
13522
|
_proto._parseURL = function _parseURL(path) {
|
|
13523
13523
|
var _path_split = path.split("?"), baseUrl = _path_split[0], searchStr = _path_split[1];
|
|
13524
|
-
var
|
|
13525
|
-
var
|
|
13526
|
-
|
|
13527
|
-
|
|
13524
|
+
var queryPath = undefined;
|
|
13525
|
+
var assetBaseURL = baseUrl;
|
|
13526
|
+
if (searchStr) {
|
|
13527
|
+
var params = searchStr.split("&");
|
|
13528
|
+
for(var i = 0; i < params.length; i++){
|
|
13529
|
+
var param = params[i];
|
|
13530
|
+
if (param.startsWith("q=")) {
|
|
13531
|
+
queryPath = decodeURIComponent(param.split("=")[1]);
|
|
13532
|
+
params.splice(i, 1);
|
|
13533
|
+
break;
|
|
13534
|
+
}
|
|
13535
|
+
}
|
|
13536
|
+
assetBaseURL = params.length > 0 ? baseUrl + "?" + params.join("&") : baseUrl;
|
|
13537
|
+
}
|
|
13528
13538
|
return {
|
|
13529
13539
|
assetBaseURL: assetBaseURL,
|
|
13530
13540
|
queryPath: queryPath
|
|
@@ -19633,8 +19643,8 @@ ShaderPool.init();
|
|
|
19633
19643
|
set: function set(value) {
|
|
19634
19644
|
if (this._width !== value) {
|
|
19635
19645
|
this._width = value;
|
|
19646
|
+
this._onWidthChanged(value);
|
|
19636
19647
|
this._sizeUpdateFlagManager.dispatch();
|
|
19637
|
-
this._onSizeChanged(value, this._width);
|
|
19638
19648
|
}
|
|
19639
19649
|
}
|
|
19640
19650
|
},
|
|
@@ -19648,8 +19658,8 @@ ShaderPool.init();
|
|
|
19648
19658
|
set: function set(value) {
|
|
19649
19659
|
if (this._height !== value) {
|
|
19650
19660
|
this._height = value;
|
|
19661
|
+
this._onHeightChange(value);
|
|
19651
19662
|
this._sizeUpdateFlagManager.dispatch();
|
|
19652
|
-
this._onSizeChanged(this._width, value);
|
|
19653
19663
|
}
|
|
19654
19664
|
}
|
|
19655
19665
|
}
|