@galacean/engine-ui 1.5.6 → 1.5.8
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 +9 -1
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +9 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +10 -2
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -527,6 +527,14 @@ var Utils = /*#__PURE__*/ function() {
|
|
|
527
527
|
return _this;
|
|
528
528
|
}
|
|
529
529
|
var _proto = UITransform.prototype;
|
|
530
|
+
/**
|
|
531
|
+
* @internal
|
|
532
|
+
*/ _proto._copyFrom = function _copyFrom(transform) {
|
|
533
|
+
// @ts-ignore
|
|
534
|
+
Transform.prototype._copyFrom.call(this, transform);
|
|
535
|
+
this._size.copyFrom(transform.size);
|
|
536
|
+
this._pivot.copyFrom(transform.pivot);
|
|
537
|
+
};
|
|
530
538
|
_proto._onSizeChange = function _onSizeChange() {
|
|
531
539
|
// @ts-ignore
|
|
532
540
|
this._entity._updateFlagManager.dispatch(512);
|
|
@@ -2898,7 +2906,7 @@ var GUIComponent = /*#__PURE__*/Object.freeze({
|
|
|
2898
2906
|
Transition: Transition
|
|
2899
2907
|
});
|
|
2900
2908
|
|
|
2901
|
-
var uiDefaultFs = "#define GLSLIFY 1\n#include <common>\nuniform sampler2D renderer_UITexture;\n\nvarying vec2 v_uv;\nvarying vec4 v_color;\n\nvoid main() {\n vec4 baseColor = texture2DSRGB(renderer_UITexture, v_uv);\n
|
|
2909
|
+
var uiDefaultFs = "#define GLSLIFY 1\n#include <common>\nuniform sampler2D renderer_UITexture;\n\nvarying vec2 v_uv;\nvarying vec4 v_color;\n\nvoid main() {\n vec4 baseColor = texture2DSRGB(renderer_UITexture, v_uv);\n vec4 finalColor = baseColor * v_color;\n #ifdef ENGINE_SHOULD_SRGB_CORRECT\n finalColor = outputSRGBCorrection(finalColor);\n #endif\n gl_FragColor = finalColor;\n}"; // eslint-disable-line
|
|
2902
2910
|
|
|
2903
2911
|
var uiDefaultVs = "#define GLSLIFY 1\nuniform mat4 renderer_MVPMat;\n\nattribute vec3 POSITION;\nattribute vec2 TEXCOORD_0;\nattribute vec4 COLOR_0;\n\nvarying vec2 v_uv;\nvarying vec4 v_color;\n\nvoid main() {\n gl_Position = renderer_MVPMat * vec4(POSITION, 1.0);\n\n v_uv = TEXCOORD_0;\n v_color = COLOR_0;\n}\n"; // eslint-disable-line
|
|
2904
2912
|
|