Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getShapeFromStyle should read shape properties before taking 'arrow' … #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomassimmer
Copy link

Hello 👋

This is for #166 .

The issue was that getShapeFromStyle was returning the "arrow" choice in case there was nothing in style variable, which is normal when we only specify an endShape. Having an arrow as chosenEndShape in createShapeObj caused the shape returned to be undefined, and in cascade, it generated this broken figure.

I believe that before choosing this default shape, the function should check if an arrow or a circle was specified in the shape.

Let me know what you think and take care :)
Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant