路径

var path = new fabric.Path('M 0 0 L 0 100 L 100 120 z')
canvas.add(path)
  • M 将画笔移动到某个点
  • L 将画笔绘制到某个点
  • z 闭合线段

MIT Licensed | Copyright © 2018-present 滇ICP备16006294号

Design by Quanzaiyu | Power by VuePress