Skip to content

outline generation for set path, #89

@armano2

Description

@armano2

I have been working on adding support for outline generation with linejoin/cap as a transformer, for now i keep it as separate project as its not fully done yet, is this something that we would be ok to add it here?

Capabilities

  • Complete SVG Path Support: Compatible with lines, curves, and complex path geometries
  • Path Type Handling:
    • Explicitly closed paths (using Z command)
    • Implicitly closed paths (where start and end points coincide)
    • Open paths with appropriate cap treatments
  • Corner Style Options:
    • Miter joins (sharp corners with intelligent miter limit handling)
    • Bevel joins (flat corner connections)
    • Round joins (smooth curved corners)
    • Miter-clip joins (corners truncated at miter limit distance)
  • Line Cap Options:
    • Butt caps (flat endings at path endpoints)
    • Square caps (extended flat endings)
    • Round caps (semicircular endings)
  • Direction Independence: Functions correctly regardless of clockwise or counter-clockwise path orientation

Future Development

  • Support for dash patterns (stroke-dasharray implementation)
  • Performance optimizations and geometric pre-filtering

i prepared small demo:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions