(svg, x, y, width, height)
| 25 | } |
| 26 | |
| 27 | rectangle(svg, x, y, width, height) { |
| 28 | x = x + 2; |
| 29 | y = y + 2; |
| 30 | width = width - 4; |
| 31 | height = height - 4; |
| 32 | let path = this._line(x, y, x + width, y); |
| 33 | path = this._line(x + width, y, x + width, y + height, path); |
| 34 | path = this._line(x + width, y + height, x, y + height, path); |
| 35 | path = this._line(x, y + height, x, y, path); |
| 36 | const node = this._svgNode("path", { d: path.value }) |
| 37 | svg.appendChild(node); |
| 38 | return node; |
| 39 | } |
| 40 | |
| 41 | polygon(svg, vertices) { |
| 42 | let path = null; |
no test coverage detected