(vertices, offset, arcSegments = 0)
| 154 | return paddingPolygon; |
| 155 | } |
| 156 | export default function offsetPolygon(vertices, offset, arcSegments = 0) { |
| 157 | const polygon = createPolygon(vertices); |
| 158 | if (offset > 0) { |
| 159 | return createMarginPolygon(polygon, offset, arcSegments).vertices; |
| 160 | } else { |
| 161 | return createPaddingPolygon(polygon, -offset, arcSegments).vertices; |
| 162 | } |
| 163 | } |
no test coverage detected