Skip to content

Commit 5cf995c

Browse files
committed
fix missing px string for svg element coords
1 parent efda449 commit 5cf995c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rendering.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ export default (options: RenderingOptions) => {
179179
svg.setAttribute('width', totalWidth + '');
180180
svg.setAttribute('height', totalHeight + '');
181181
svg.setAttribute('viewBox', `0 0 ${totalWidth} ${totalHeight}`);
182-
svg.style.left = -x + '';
183-
svg.style.top = -y + '';
182+
svg.style.left = -x + 'px';
183+
svg.style.top = -y + 'px';
184184
svg.classList.add('dn-node-svg');
185185
svg.setAttribute('role', 'presentation');
186186
svg.setAttribute('focusable', 'false');

0 commit comments

Comments
 (0)