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