From 92545a0be401933cf450146f94154fd16019a8e3 Mon Sep 17 00:00:00 2001 From: Preet <833927+pshihn@users.noreply.github.com> Date: Wed, 3 Jun 2020 23:06:01 -0700 Subject: [PATCH] Add class name to injected SVG (#32) --- src/rough-notation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rough-notation.ts b/src/rough-notation.ts index d2420f1..4e30210 100644 --- a/src/rough-notation.ts +++ b/src/rough-notation.ts @@ -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';