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

dia.attributes: support negative number addition/subtraction in calc(… #1571

Merged

Conversation

kumilingus
Copy link
Contributor

…) expression

Support calc() expression in these forms:

calc(multipy * property - -number)
calc(multiply * propery + -number)

This is common when values are inserted into the calc() expression via template literals.

const offset = -20;
const d = `M 0 0 calc(w-${offset}) 0`;
const d = `M 0 0 calc(w+${offset}) 0`;

@jamesgeorgewilliams jamesgeorgewilliams merged commit 3e7fd63 into clientIO:master Nov 15, 2021
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.

2 participants