Skip to content

Segment Stringify #2086

@NIkola458

Description

@NIkola458

Description/Steps to reproduce

Stringifying a segment leads to just an array, instead of an object with labeled properties like point, handleIn, and handleOut."

Link to reproduction test-case

https://codepen.io/nikola12334/pen/JjgopMK

Expected result

"segment":{"point":{"x":242,"y":259},"handleIn":{"x":0,"y":0},"handleOut":{"x":0,"y":0}}

Actual result

"['Path',{'applyMatrix':true,'segments':[[[100,50],[0,0],[80,100]],[[300,50],[-80,-100],[0,0]]],'strokeColor':[0,0,0]}]"

Additional information

mac os: 14.6.1 , Node: v16.13.0

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