fix(chore): make svgedit less intrusive by adding components in its div instead of document.body.

This commit is contained in:
JFH
2021-08-04 11:24:47 +02:00
parent ee6bda3c5c
commit b048afb72e
6 changed files with 13 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ class Rulers {
this.svgCanvas = editor.svgCanvas;
this.editor = editor;
// add rulers component to the DOM
document.body.append(rulersTemplate.content.cloneNode(true));
this.editor.$svgEditor.append(rulersTemplate.content.cloneNode(true));
}
/**
* @type {Module}