#1295 Applying new rendering engine for stateDiagrams

This commit is contained in:
Knut Sveidqvist
2020-03-22 21:45:14 +01:00
parent df2925e51c
commit 5b302ae2e6
9 changed files with 643 additions and 26 deletions

View File

@@ -3,7 +3,7 @@ import { logger } from '../../logger';
let rootDoc = [];
const setRootDoc = o => {
logger.info('Setting root doc', o);
rootDoc = o;
rootDoc = { id: 'root', doc: o };
};
const getRootDoc = () => rootDoc;
@@ -145,6 +145,12 @@ const getDividerId = () => {
return 'divider-id-' + dividerCnt;
};
const classes = [];
const getClasses = () => classes;
const getDirection = () => 'TB';
export const relationType = {
AGGREGATION: 0,
EXTENSION: 1,
@@ -158,6 +164,8 @@ export default {
getState,
getStates,
getRelations,
getClasses,
getDirection,
addRelation,
getDividerId,
// addDescription,