Skip to content

Add stroke scaling option to Stroke node #2960

@chbornman

Description

@chbornman

Summary

Add a "Scaling" field to the Stroke node that allows users to toggle whether strokes should scale with shape transformations or maintain a constant visual width.

Motivation

Currently, strokes always scale with shape transformations. This feature gives users control over stroke behavior, which is a common requirement in vector graphics applications. Users can choose between:

  • Scale with Shape: Strokes scale proportionally with transformations (default)
  • Non-Scaling: Strokes maintain constant visual width regardless of transformations

Implementation Details

  • Add StrokeScaling enum with ScaleWithShape and NonScaling options
  • Add new "Scaling" parameter to the Stroke node
  • Update document migration to handle the new parameter
  • Fix migration bug that caused index out of bounds error when upgrading existing documents

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Short-Term

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions