We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efda449 commit 5cf995cCopy full SHA for 5cf995c
src/rendering.ts
@@ -179,8 +179,8 @@ export default (options: RenderingOptions) => {
179
svg.setAttribute('width', totalWidth + '');
180
svg.setAttribute('height', totalHeight + '');
181
svg.setAttribute('viewBox', `0 0 ${totalWidth} ${totalHeight}`);
182
- svg.style.left = -x + '';
183
- svg.style.top = -y + '';
+ svg.style.left = -x + 'px';
+ svg.style.top = -y + 'px';
184
svg.classList.add('dn-node-svg');
185
svg.setAttribute('role', 'presentation');
186
svg.setAttribute('focusable', 'false');
0 commit comments