@galacean/effects-core 1.6.0 → 1.6.2-beta.0

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.
@@ -17,7 +17,15 @@ export declare class TextLayout {
17
17
  */
18
18
  lineHeight: number;
19
19
  constructor(options: spec.TextContentOptions);
20
- getOffsetY(style: TextStyle, lineCount: number, lineHeight: number): number;
20
+ /**
21
+ * 获取初始的行高偏移值
22
+ * @param style - 字体基础数据
23
+ * @param lineCount - 渲染行数
24
+ * @param lineHeight - 渲染时的字体行高
25
+ * @param fontSize - 渲染时的字体大小
26
+ * @returns - 行高偏移值
27
+ */
28
+ getOffsetY(style: TextStyle, lineCount: number, lineHeight: number, fontSize: number): number;
21
29
  getOffsetX(style: TextStyle, maxWidth: number): number;
22
30
  /**
23
31
  * 设置文本框的宽度和高度
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "1.6.0",
3
+ "version": "1.6.2-beta.0",
4
4
  "description": "Galacean Effects runtime core for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",