Skip to content

Add maxSegmentLength option #16

Description

@luucvanderzee

flubber has this maxSegmentLength option, which will add points to line segments until all line segments satisfy whatever number was passed to maxSegmentLength. So if you have a triangle where one side is 15 pixels long, and maxSegmentLength is 10, one extra point will be added to it in the middle. The result is a more smooth transition. The lower maxSegmentLength, the smoother the transition, but also the higher the performance penalty for adding more points.

We should:

  • Implement our own maxSegmentLength option
  • Decide what value we want to set this to by default, if we think this is desirable default behavior (if not, the default value can be infinity)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions