mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
#1295 Re-enabling state diagram tests
This commit is contained in:
@@ -2,7 +2,6 @@ const intersectRect = (node, point) => {
|
||||
var x = node.x;
|
||||
var y = node.y;
|
||||
|
||||
console.log(node, point);
|
||||
// Rectangle intersection algorithm from:
|
||||
// http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
|
||||
var dx = point.x - x;
|
||||
|
@@ -30,8 +30,13 @@ const getRootDocV2 = () => {
|
||||
return rootDoc;
|
||||
};
|
||||
|
||||
const extract = doc => {
|
||||
const extract = root => {
|
||||
// const res = { states: [], relations: [] };
|
||||
let doc = root.doc;
|
||||
if (!doc) {
|
||||
doc = root;
|
||||
}
|
||||
logger.info(root.doc);
|
||||
clear();
|
||||
|
||||
doc.forEach(item => {
|
||||
|
Reference in New Issue
Block a user