mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
fix import issue
This commit is contained in:
@@ -90,8 +90,12 @@
|
||||
"sidharth",
|
||||
"sidharthv",
|
||||
"sphinxcontrib",
|
||||
"startx",
|
||||
"starty",
|
||||
"statediagram",
|
||||
"steph",
|
||||
"stopx",
|
||||
"stopy",
|
||||
"stylis",
|
||||
"substate",
|
||||
"sveidqvist",
|
||||
@@ -104,6 +108,7 @@
|
||||
"tuleap",
|
||||
"ugge",
|
||||
"unist",
|
||||
"valign",
|
||||
"verdana",
|
||||
"viewports",
|
||||
"vinod",
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import common from '../common/common';
|
||||
import common from '../common/common.js';
|
||||
import * as svgDrawCommon from '../common/svgDrawCommon';
|
||||
import { sanitizeUrl } from '@braintree/sanitize-url';
|
||||
|
||||
|
@@ -77,7 +77,7 @@ export const drawEmbeddedImage = function (elem, x, y, link) {
|
||||
const imageElem = elem.append('use');
|
||||
imageElem.attr('x', x);
|
||||
imageElem.attr('y', y);
|
||||
var sanitizedLink = sanitizeUrl(link);
|
||||
const sanitizedLink = sanitizeUrl(link);
|
||||
imageElem.attr('xlink:href', '#' + sanitizedLink);
|
||||
};
|
||||
|
||||
@@ -112,11 +112,3 @@ export const getTextObj = function () {
|
||||
valign: undefined,
|
||||
};
|
||||
};
|
||||
|
||||
export default {
|
||||
drawRect,
|
||||
drawImage,
|
||||
drawText,
|
||||
getNoteRect,
|
||||
getTextObj,
|
||||
};
|
||||
|
Reference in New Issue
Block a user