ice-render 0.0.43 → 0.0.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/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 +7 -3
- package/dist/types/graphic/ICEDotPath.d.ts +8 -4
- package/dist/types/graphic/link/ICEPolyLine.d.ts +7 -6
- package/dist/types/graphic/shape/ICEIsogon.d.ts +6 -3
- package/dist/types/graphic/shape/ICERose.d.ts +6 -3
- package/dist/types/graphic/shape/ICEStar.d.ts +6 -3
- package/dist/types/graphic/text/ICEText.d.ts +7 -3
- package/package.json +1 -1
|
@@ -28,9 +28,12 @@ declare class ICEIsogon extends ICEDotPath {
|
|
|
28
28
|
/**
|
|
29
29
|
* @overwrite
|
|
30
30
|
* @method calcComponentParams
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* - 计算组件最原始的宽高和位置,此时没有经过任何变换,也没有移动坐标原点。
|
|
32
|
+
* - 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
|
|
33
|
+
* - 此方法不能依赖原点位置和 transform 矩阵。
|
|
34
|
+
* - 此方法会在 render() 中调用,所以不需要在构造函数中调用。
|
|
35
|
+
* - 此方法中不能使用 setState() ,如果需要修改状态,直接赋值,如:this.state.width = 100;
|
|
36
|
+
* - 子类可以覆盖此方法,实现自己的计算逻辑。
|
|
34
37
|
* @returns
|
|
35
38
|
*/
|
|
36
39
|
protected calcComponentParams(): {
|
|
@@ -15,9 +15,12 @@ declare class ICERose extends ICEDotPath {
|
|
|
15
15
|
/**
|
|
16
16
|
* @overwrite
|
|
17
17
|
* @method calcComponentParams
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* - 计算组件最原始的宽高和位置,此时没有经过任何变换,也没有移动坐标原点。
|
|
19
|
+
* - 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
|
|
20
|
+
* - 此方法不能依赖原点位置和 transform 矩阵。
|
|
21
|
+
* - 此方法会在 render() 中调用,所以不需要在构造函数中调用。
|
|
22
|
+
* - 此方法中不能使用 setState() ,如果需要修改状态,直接赋值,如:this.state.width = 100;
|
|
23
|
+
* - 子类可以覆盖此方法,实现自己的计算逻辑。
|
|
21
24
|
* @returns
|
|
22
25
|
*/
|
|
23
26
|
protected calcComponentParams(): {
|
|
@@ -22,9 +22,12 @@ declare class ICEStar extends ICEDotPath {
|
|
|
22
22
|
/**
|
|
23
23
|
* @overwrite
|
|
24
24
|
* @method calcComponentParams
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* - 计算组件最原始的宽高和位置,此时没有经过任何变换,也没有移动坐标原点。
|
|
26
|
+
* - 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
|
|
27
|
+
* - 此方法不能依赖原点位置和 transform 矩阵。
|
|
28
|
+
* - 此方法会在 render() 中调用,所以不需要在构造函数中调用。
|
|
29
|
+
* - 此方法中不能使用 setState() ,如果需要修改状态,直接赋值,如:this.state.width = 100;
|
|
30
|
+
* - 子类可以覆盖此方法,实现自己的计算逻辑。
|
|
28
31
|
* @returns
|
|
29
32
|
*/
|
|
30
33
|
protected calcComponentParams(): {
|
|
@@ -28,9 +28,13 @@ declare class ICEText extends ICEComponent {
|
|
|
28
28
|
protected static arrangeParam(props: any): any;
|
|
29
29
|
/**
|
|
30
30
|
* @overwrite
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
|
|
31
|
+
* @method calcComponentParams
|
|
32
|
+
* - 计算组件最原始的宽高和位置,此时没有经过任何变换,也没有移动坐标原点。
|
|
33
|
+
* - 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
|
|
34
|
+
* - 此方法不能依赖原点位置和 transform 矩阵。
|
|
35
|
+
* - 此方法会在 render() 中调用,所以不需要在构造函数中调用。
|
|
36
|
+
* - 此方法中不能使用 setState() ,如果需要修改状态,直接赋值,如:this.state.width = 100;
|
|
37
|
+
* - 子类可以覆盖此方法,实现自己的计算逻辑。
|
|
34
38
|
* @returns
|
|
35
39
|
*/
|
|
36
40
|
protected calcComponentParams(): {
|
package/package.json
CHANGED