Add class name to injected SVG (#32)

This commit is contained in:
Preet
2020-06-03 23:06:01 -07:00
committed by GitHub
parent 15e61da253
commit 92545a0be4

View File

@@ -77,6 +77,7 @@ class RoughAnnotationImpl implements RoughAnnotation {
if (this._state === 'unattached' && this._e.parentElement) {
ensureKeyframes();
const svg = this._svg = document.createElementNS(SVG_NS, 'svg');
svg.setAttribute('class', 'rough-annotation');
const style = svg.style;
style.position = 'absolute';
style.top = '0';