Mask 使用 graphics 画了线,想一键恢复到没有画线的状态

一键清除 所有 已经画了 的线

 var ctx = node.getComponent(cc.Graphics);
    ctx.clear();