fix import issue

This commit is contained in:
Justin Greywolf
2023-05-03 16:26:48 -07:00
parent e903f06f75
commit 61e31b3fe6
3 changed files with 7 additions and 10 deletions

View File

@@ -90,8 +90,12 @@
"sidharth", "sidharth",
"sidharthv", "sidharthv",
"sphinxcontrib", "sphinxcontrib",
"startx",
"starty",
"statediagram", "statediagram",
"steph", "steph",
"stopx",
"stopy",
"stylis", "stylis",
"substate", "substate",
"sveidqvist", "sveidqvist",
@@ -104,6 +108,7 @@
"tuleap", "tuleap",
"ugge", "ugge",
"unist", "unist",
"valign",
"verdana", "verdana",
"viewports", "viewports",
"vinod", "vinod",

View File

@@ -1,4 +1,4 @@
import common from '../common/common'; import common from '../common/common.js';
import * as svgDrawCommon from '../common/svgDrawCommon'; import * as svgDrawCommon from '../common/svgDrawCommon';
import { sanitizeUrl } from '@braintree/sanitize-url'; import { sanitizeUrl } from '@braintree/sanitize-url';

View File

@@ -77,7 +77,7 @@ export const drawEmbeddedImage = function (elem, x, y, link) {
const imageElem = elem.append('use'); const imageElem = elem.append('use');
imageElem.attr('x', x); imageElem.attr('x', x);
imageElem.attr('y', y); imageElem.attr('y', y);
var sanitizedLink = sanitizeUrl(link); const sanitizedLink = sanitizeUrl(link);
imageElem.attr('xlink:href', '#' + sanitizedLink); imageElem.attr('xlink:href', '#' + sanitizedLink);
}; };
@@ -112,11 +112,3 @@ export const getTextObj = function () {
valign: undefined, valign: undefined,
}; };
}; };
export default {
drawRect,
drawImage,
drawText,
getNoteRect,
getTextObj,
};