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

mxBpmnShape2.js isInverse undefined #588

Closed
algenty opened this issue Oct 8, 2019 · 3 comments
Closed

mxBpmnShape2.js isInverse undefined #588

algenty opened this issue Oct 8, 2019 · 3 comments

Comments

@algenty
Copy link

algenty commented Oct 8, 2019

Hi draw.io team,

First : Great job for draw.io and mxgraph

When i try to integrate libs shapes in my project, i have an error in mxBpmnShape2.js for shapes BPNM
Line 298 : isInverse undefined.
For this to work, i need to declare var at line 213.
var isInverse = false;

Best regards
Arnaud

@davidjgraph
Copy link
Collaborator

I'm guessing you're using Typescript or similar that is compiling the JS for this to happen?

Why does it need to be added to 213? Isn't adding the var to 298 enough?

@algenty
Copy link
Author

algenty commented Oct 9, 2019

Hi david, you're right.
Line 213, it's for the beauty of the code where declarations are at beginning of the block
I use babel, the error is on the chrome console when user try to import BPNM chapes.

BR
Arnaud

davidjgraph added a commit that referenced this issue Oct 9, 2019
@davidjgraph
Copy link
Collaborator

a1ff923#diff-8b7cd8a6ca38ab8b25445135aba7808b

But you will need the next release before the min.js files are built

rudydelange pushed a commit to rudydelange/draw.io that referenced this issue Jul 19, 2023
eduales99 added a commit to eduales99/Javascript-Drawio that referenced this issue Feb 19, 2024
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

No branches or pull requests

2 participants