ice-render 1.0.3 → 1.0.4
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/README.md +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/FrameManager.d.ts +10 -8
- package/dist/types/ICE.d.ts +2 -4
- package/dist/types/control-panel/transform-controls/ResizeControl.d.ts +10 -6
- package/dist/types/control-panel/transform-controls/RotateControl.d.ts +0 -4
- package/dist/types/event/ICEEventTarget.d.ts +7 -7
- package/dist/types/graphic/ICEPath.d.ts +1 -4
- package/dist/types/graphic/container/ICEGroup.d.ts +3 -4
- package/dist/types/graphic/shape/ICECircle.d.ts +2 -2
- package/dist/types/graphic/shape/ICEEllipse.d.ts +1 -4
- package/dist/types/graphic/shape/ICEIsogon.d.ts +1 -3
- package/dist/types/graphic/shape/ICEStar.d.ts +1 -4
- package/dist/types/graphic/text/ICEText.d.ts +1 -0
- package/dist/types/renderer/CanvasRenderer.d.ts +1 -3
- package/dist/types/util/ImageCache.d.ts +4 -2
- package/package.json +1 -1
|
@@ -5,22 +5,26 @@ import ICERect from '../../graphic/shape/ICERect';
|
|
|
5
5
|
* - 调整尺寸的操作手柄不能独立存在,只能依附在某个宿主对象上。
|
|
6
6
|
* - 此手柄只能调整尺寸,不能实现翻转
|
|
7
7
|
*
|
|
8
|
-
* TODO: 补全 props 配置项
|
|
9
|
-
* {
|
|
10
|
-
* direction: 改变的方向,共有3个可选的值: x/y/both
|
|
11
|
-
* position: 手柄在变换矩形4个边上的位置,共有8个:lt/t/rt/r/rb/b/lb/l
|
|
12
|
-
* }
|
|
13
8
|
*/
|
|
14
9
|
export default class ResizeControl extends ICERect {
|
|
10
|
+
/**
|
|
11
|
+
* props:
|
|
12
|
+
* {
|
|
13
|
+
* direction: 改变的方向,共有3个可选的值: x/y/both
|
|
14
|
+
* position: 手柄在变换矩形4个边上的位置,共有8个:lt/t/rt/r/rb/b/lb/l
|
|
15
|
+
* quadrant: 当前所在的象限
|
|
16
|
+
* }
|
|
17
|
+
* @param props
|
|
18
|
+
*/
|
|
15
19
|
constructor(props: any);
|
|
16
20
|
protected initEvents(): void;
|
|
17
21
|
/**
|
|
18
|
-
* 围绕几何中心点调整宽高。
|
|
19
22
|
* @param evt
|
|
20
23
|
*/
|
|
21
24
|
private resizeEvtHandler;
|
|
22
25
|
/**
|
|
23
26
|
* @overwrite
|
|
27
|
+
* @method moveGlobalPosition
|
|
24
28
|
* ResizeControl 不能自由移动自己的位置,自能在X轴、Y轴,以及矩形的2条对角线上移动位置。
|
|
25
29
|
*
|
|
26
30
|
* 在全局空间(canvas)中移动指定的位移。
|
|
@@ -56,13 +56,6 @@ declare abstract class ICEEventTarget {
|
|
|
56
56
|
* @returns
|
|
57
57
|
*/
|
|
58
58
|
off(eventName: string, fn: Function, scope?: any): void;
|
|
59
|
-
/**
|
|
60
|
-
* @method once
|
|
61
|
-
* 一次性事件,触发一次就自动删除自己。
|
|
62
|
-
* @param eventName
|
|
63
|
-
* @param fn
|
|
64
|
-
*/
|
|
65
|
-
once(eventName: string, fn: Function, scope?: any): void;
|
|
66
59
|
/**
|
|
67
60
|
* @method dispatchEvent
|
|
68
61
|
*
|
|
@@ -76,6 +69,13 @@ declare abstract class ICEEventTarget {
|
|
|
76
69
|
* @returns
|
|
77
70
|
*/
|
|
78
71
|
trigger(eventName: string, originalEvent?: any, param?: {}): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* @method once
|
|
74
|
+
* 一次性事件,触发一次就自动删除自己。
|
|
75
|
+
* @param eventName
|
|
76
|
+
* @param fn
|
|
77
|
+
*/
|
|
78
|
+
once(eventName: string, fn: Function, scope?: any): void;
|
|
79
79
|
/**
|
|
80
80
|
* @method suspend
|
|
81
81
|
* 挂起事件。
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import ICEComponent from '../ICEComponent';
|
|
2
2
|
import ICERect from '../shape/ICERect';
|
|
3
3
|
/**
|
|
4
|
-
* @class ICEGroup
|
|
4
|
+
* @class ICEGroup 容器型组件
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* ICEGroup 可以包含自身,利用此组件可以构造出树形的对象结构。
|
|
6
|
+
* - ICEGroup 可以带有子组件,所有容器型的组件都应该继承 ICEGroup
|
|
7
|
+
* - ICEGroup 可以包含自身,利用此组件可以构造出树形的组件结构。
|
|
9
8
|
*
|
|
10
9
|
* @author 大漠穷秋<damoqiongqiu@126.com>
|
|
11
10
|
*/
|
package/package.json
CHANGED