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