* begin a new path
()
| 223 | * begin a new path |
| 224 | */ |
| 225 | beginPath() { |
| 226 | // empty the cache and recycle all vectors |
| 227 | this.points.forEach((point) => { |
| 228 | pointPool.release(point); |
| 229 | }); |
| 230 | this.isDirty = true; |
| 231 | this.points.length = 0; |
| 232 | this.startPoint.set(0, 0); |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * causes the point of the pen to move back to the start of the current path. |
no test coverage detected