mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
fix import issue
This commit is contained in:
@@ -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",
|
||||||
|
@@ -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';
|
||||||
|
|
||||||
|
@@ -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,
|
|
||||||
};
|
|
||||||
|
Reference in New Issue
Block a user