This commit is contained in:
Knut Sveidqvist 2020-03-25 20:26:53 +01:00
parent 159a3a3706
commit 598b392878
2 changed files with 1 additions and 4 deletions

View File

@ -1,7 +1,6 @@
import { logger } from '../logger'; // eslint-disable-line
import createLabel from './createLabel';
import * as d3 from 'd3';
import inter from './intersect/index.js';
import { getConfig } from '../config';
let edgeLabels = {};

View File

@ -5,9 +5,7 @@ import state from './parser/stateDiagram';
import { getConfig } from '../../config';
import { render } from '../../dagre-wrapper/index.js';
import addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';
import { logger } from '../../logger';
import { interpolateToCurve, getStylesFromArray } from '../../utils';
const conf = {};
export const setConf = function(cnf) {
@ -34,7 +32,7 @@ export const getClasses = function(text) {
return stateDb.getClasses();
};
const setupNode = (g, parent, node, first) => {
const setupNode = (g, parent, node) => {
// Add the node
if (node.id !== 'root') {
let shape = 'rect';