ice-render 0.0.24 → 0.0.27
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.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/graphic/ICEComponent.d.ts +1 -1
- package/dist/types/graphic/ICEDotPath.d.ts +1 -1
- package/dist/types/graphic/container/ICEGroup.d.ts +14 -1
- package/dist/types/graphic/line/ICEPolyLine.d.ts +1 -1
- package/dist/types/graphic/shape/ICEIsogon.d.ts +1 -1
- package/dist/types/graphic/shape/ICERose.d.ts +1 -1
- package/dist/types/graphic/shape/ICEStar.d.ts +1 -1
- package/dist/types/graphic/text/ICEText.d.ts +12 -1
- package/package.json +1 -1
|
@@ -19,6 +19,17 @@ declare class ICEText extends ICEComponent {
|
|
|
19
19
|
* @param props
|
|
20
20
|
*/
|
|
21
21
|
constructor(props?: any);
|
|
22
|
+
/**
|
|
23
|
+
* @overwrite
|
|
24
|
+
* 计算原始的宽高、位置,此时没有经过任何变换,也没有移动坐标原点。
|
|
25
|
+
* 此方法不能依赖原点位置和 transform 矩阵。
|
|
26
|
+
* 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
protected calcComponentParams(): {
|
|
30
|
+
width: any;
|
|
31
|
+
height: any;
|
|
32
|
+
};
|
|
22
33
|
/**
|
|
23
34
|
* @method measureText
|
|
24
35
|
*
|
|
@@ -26,7 +37,7 @@ declare class ICEText extends ICEComponent {
|
|
|
26
37
|
* - 计算原始的宽高、位置,此时没有经过任何变换,也没有移动坐标原点。
|
|
27
38
|
* - 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
|
|
28
39
|
*
|
|
29
|
-
* FIXME
|
|
40
|
+
* FIXME:这里有性能瓶颈,需要进一步优化
|
|
30
41
|
* FIXME:某些运行时环境可能不支持动态插入 HTML 标签,以上测量文本宽高的方法可能存在兼容性问题。
|
|
31
42
|
* FIXME:对文本位置的控制需要更精细的计算方法。
|
|
32
43
|
*/
|
package/package.json
CHANGED