mirror of
https://github.com/slidevjs/rough-notation.git
synced 2026-01-14 17:44:21 +01:00
Add class name to injected SVG (#32)
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user