Skip to content

ShapeInfo throws exception: Unable to extract value for size,width,height,w,h #52

@istvank

Description

@istvank

Hi, I have an issue with the ShapeInfo for rounded rectangles, rr being a rectangle with rounded corners:
ShapeInfo.rectangle({x: rr.x, y: rr.y, w: rr.width, h: rr.height, rx: rr.rx, ry: rr.ry});
it throws an exception:

Uncaught TypeError: Unable to extract value for size,width,height,w,h
    at getValues (ShapeInfo.js? [sm]:59)
    at Function.rectangle (ShapeInfo.js? [sm]:272)

Seems like in the for loop of getValues in ShapeInfo.js, parsePoint shifts the args parameter without creating a copy.

Is that a bug or am I missing something?

Used to work in 0.6.0, but the dependency gp-data-transformer disappeared from npm. :(

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