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

refactor: remove unused MutationObserver code #75

Merged
merged 2 commits into from
Oct 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,3 @@ configureButtons(mainBpmnVisualization);
const footer = document.querySelector("footer");
const version = mainBpmnVisualization.getVersion();
footer.innerText = `bpmn-visualization@${version.lib}`;


/*TO BE IMPLEMENTED
observe navigation and zooming and
update circle ripples and linearGradient if they were added*/

var containerBpmn = document.querySelector("#main-bpmn-container");

var containerObserver = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.type === "attributes") {
//check if ripple circles exist
//if yes, recall ripple function
//check if Gradient exists
//if yes, re-add them
}
});
});

containerObserver.observe(containerBpmn, {
attributes: true, //configure it to listen to attribute changes
attributeFilter: ["min-width", "min-height"] // filter your attributes
});