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.
@@ -28,9 +28,12 @@ declare class ICEIsogon extends ICEDotPath {
28
28
  /**
29
29
  * @overwrite
30
30
  * @method calcComponentParams
31
- * 计算原始的宽高、位置,此时没有经过任何变换,也没有移动坐标原点。
32
- * 由于点状路径可能是不规则的形状,所以宽高需要手动计算,特殊形状的子类需要覆盖此方法提供自己的实现。
33
- * 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
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
- * 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
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
- * 在计算组件的原始尺寸时还没有确定原点坐标,所以只能基于组件本地坐标系的左上角 (0,0) 点进行计算。
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
- * 此方法不能依赖原点位置和 transform 矩阵。
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "大漠穷秋",
3
3
  "name": "ice-render",
4
- "version": "0.0.43",
4
+ "version": "0.0.46",
5
5
  "description": "A canvas engine for interactive graphics.",
6
6
  "repository": "https://gitee.com/ice-render/ice-render",
7
7
  "module": "dist/index.js",