#1295 Re-enabling state diagram tests

This commit is contained in:
Knut Sveidqvist
2020-03-30 21:40:14 +02:00
parent 231c849451
commit e72c3b2c86
2 changed files with 6 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ const intersectRect = (node, point) => {
var x = node.x; var x = node.x;
var y = node.y; var y = node.y;
console.log(node, point);
// Rectangle intersection algorithm from: // Rectangle intersection algorithm from:
// http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
var dx = point.x - x; var dx = point.x - x;

View File

@@ -30,8 +30,13 @@ const getRootDocV2 = () => {
return rootDoc; return rootDoc;
}; };
const extract = doc => { const extract = root => {
// const res = { states: [], relations: [] }; // const res = { states: [], relations: [] };
let doc = root.doc;
if (!doc) {
doc = root;
}
logger.info(root.doc);
clear(); clear();
doc.forEach(item => { doc.forEach(item => {