id
string
true
width
number
true
height
number
true
x
number
true
kitBox
中的x坐标,单位为像素y
number
true
kitBox
中的y坐标,单位为像素isLock
boolean
false
type
'image' | 'text'
true
image
HTMLImageElement
true
when type
is image
type
为image
时,必填,图片对象。text
string
true
when type
is text
type
为text
时,必填,文字内容。fontSize
number
false
type
为text
时,必填,文字大小,单位为像素。fontFamily
string
false
type
为text
时,可选,文字字体,可以是系统字体或自定义字体。color
string
false
type
为text
时,可选,文字颜色,可以使用十六进制颜色值或RGB颜色值。fontWeight
string
false
type
为text
时,可选,文字粗细,支持normal
和bold
。fontStyle
'normal' | 'italic'
false
type
为text
时,可选,文字样式,支持normal
和italic
。decoration
'none' | 'underline' | 'line-through'
false
type
为text
时,可选,文字装饰,支持none
、underline
和line-through
。