@galacean/effects-threejs 1.2.1 → 1.2.2
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/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/dist/three-display-object.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime threejs plugin for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v1.2.
|
|
6
|
+
* Version: v1.2.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -19994,9 +19994,10 @@ var TextItem = /** @class */ (function (_super) {
|
|
|
19994
19994
|
if (this.textStyle.fontSize === value) {
|
|
19995
19995
|
return;
|
|
19996
19996
|
}
|
|
19997
|
+
// 保证字号变化后位置正常
|
|
19998
|
+
var diff = this.textStyle.fontSize - value;
|
|
19999
|
+
this.textLayout.lineHeight += diff;
|
|
19997
20000
|
this.textStyle.fontSize = value;
|
|
19998
|
-
// 1.5175 = 31.43 / 20
|
|
19999
|
-
this.textLayout.lineHeight = this.textStyle.fontSize * 1.5175;
|
|
20000
20001
|
this.isDirty = true;
|
|
20001
20002
|
};
|
|
20002
20003
|
/**
|
|
@@ -26912,7 +26913,7 @@ Geometry.create = function (engine, options) {
|
|
|
26912
26913
|
Mesh.create = function (engine, props) {
|
|
26913
26914
|
return new ThreeMesh(engine, props);
|
|
26914
26915
|
};
|
|
26915
|
-
var version = "1.2.
|
|
26916
|
+
var version = "1.2.2";
|
|
26916
26917
|
logger.info('THREEJS plugin version: ' + version);
|
|
26917
26918
|
|
|
26918
26919
|
exports.AbstractPlugin = AbstractPlugin;
|