Skip to content

Feature Request: Allow to provide path data as array of segments #170

@aleksey-shmatov

Description

@aleksey-shmatov

Currently path method accepts data as a string. In the internals it is being parse twice once in pointsOnPath and another time in svgPath. In my case I want to do some preprocessing to the path data before applying roughness. Currently I am basically forced to:

  1. Parse string to segments.
  2. Apply my own transformations to path data.
  3. Convert transformed data back to string.
  4. This string will be parsed twice inside RoughJS library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions