Skip to content
Discussion options

You must be logged in to vote

抱歉,刚看到这个板块,之前一直关注的是issues。

这样设置才能擦除另外一支Pen的内容:

const eraser = new Pen({isEraser: true})

当在setStyle时设置,橡皮擦功能只会对当前的Pen有效, setStyle本质上是创建了一条子路径。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ErwinShu
Comment options

Answer selected by leaferjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants