(x, y)
| 18165 | this._line = 1 - this._line; |
| 18166 | } |
| 18167 | point(x, y) { |
| 18168 | x = +x, y = +y; |
| 18169 | switch (this._point) { |
| 18170 | case 0: { |
| 18171 | this._point = 1; |
| 18172 | if (this._line) this._context.lineTo(x, y); |
| 18173 | else this._context.moveTo(x, y); |
| 18174 | break; |
| 18175 | } |
| 18176 | case 1: this._point = 2; // falls through |
| 18177 | default: { |
| 18178 | if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y); |
| 18179 | else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y); |
| 18180 | break; |
| 18181 | } |
| 18182 | } |
| 18183 | this._x0 = x, this._y0 = y; |
| 18184 | } |
| 18185 | } |
| 18186 | |
| 18187 | class BumpRadial { |
no test coverage detected