Skip to content

EditPoint

编辑框内的控制点。

继承

EditPoint  >  Box  >  UI

关键属性

direction:Direction9

ts
enum Direction9 {
  topLeft,
  top,
  topRight,
  right,
  bottomRight,
  bottom,
  bottomLeft,
  left,
  center,
}

pointType:IEditPointType

ts
type IEditPointType =
  | 'rotate' // 旋转按钮
  | 'resize' // resize 按钮
  | 'resize-rotate' // reisze + 旋转按钮
  | 'button' // 自定义按钮

Released under the MIT License.