background
使用示例
import { fabric } from '@/lib/fabric'
const oTextarea = fabric.zGroup.textarea(text, options)
选项说明 options
//options 默认值
{
scheme: 'default',
autoPosition: true,
top: 0,
left: 0,
width: 0,
height: 0,
}
属性 | 名称 | 默认值 | 可选值 |
---|---|---|---|
scheme | 样式方案名 | default | String |
autoPosition | 自定定位 | true | Boolean |
top | 顶距 | 0 | Number |
left | 左距 | 0 | Number |
width | 宽 | 0 | Number |
height | 高 | 0 | Number |