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

[FIX] don't create extra svg block in the demo page #553

Merged
merged 4 commits into from
Aug 26, 2020

Conversation

tbouffard
Copy link
Member

Remove an extra BpmnVisualization instance creation at startup that was
responsible of creating the extra svg block.

closes #552

Remove an extra `BpmnVisualization` instance creation at startup that was
responsible of creating the extra svg block.
@tbouffard tbouffard added bug Something isn't working example This issue or pull request is related to the lib demo or examples labels Aug 25, 2020
@tbouffard tbouffard requested a review from aibcmars August 25, 2020 13:41
@@ -19,7 +19,7 @@ import { DropFileUserInterface } from './component/DropFileUserInterface';

export * from './helper';

let bpmnVisualization = new BpmnVisualization(window.document.getElementById('graph'));
let bpmnVisualization: BpmnVisualization;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we do it this way, we must assure that the 'bpmnVisualization' is initialized in the exported function 'handleFileSelect'

another way if someone will try use 'handleFileSelect' without initializing bpmnVisualization - there will be an error in
function loadBpmn() {
...
bpmnVisualization.load(bpmn); // bpmnVisualization is undefined
...
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aibcmars I have proposed something with 088b10d to avoid such issue. Is that enough?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good enough 👍

@tbouffard tbouffard merged commit f601402 into master Aug 26, 2020
@tbouffard tbouffard deleted the 552-fix_extra_svg_block_in_demo_page branch August 26, 2020 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working example This issue or pull request is related to the lib demo or examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] extra blank zone above the diagrams in the demo page
2 participants