Convert to border stroke.
(self)
| 228 | |
| 229 | |
| 230 | def to_stroke(self): |
| 231 | '''Convert to border stroke.''' |
| 232 | # ignore if reference only |
| 233 | if self.is_reference: return None |
| 234 | |
| 235 | stroke = Stroke({'color': self.color, 'width': self.width}).update_bbox(self.centerline) |
| 236 | stroke.type = RectType.BORDER # set border style |
| 237 | return stroke |
| 238 | |
| 239 | |
| 240 | class Borders(BaseCollection): |
no test coverage detected