mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-31 22:26:53 +02:00
#2270 Add support for direction statements for classDiagrams
This commit is contained in:
@@ -317,6 +317,12 @@ const setupToolTips = function (element) {
|
||||
};
|
||||
funs.push(setupToolTips);
|
||||
|
||||
let direction = 'TB';
|
||||
const getDirection = () => direction;
|
||||
const setDirection = (dir) => {
|
||||
direction = dir;
|
||||
};
|
||||
|
||||
export default {
|
||||
parseDirective,
|
||||
getConfig: () => configApi.getConfig().class,
|
||||
@@ -328,6 +334,8 @@ export default {
|
||||
addAnnotation,
|
||||
getRelations,
|
||||
addRelation,
|
||||
getDirection,
|
||||
setDirection,
|
||||
addMember,
|
||||
addMembers,
|
||||
cleanupLabel,
|
||||
|
Reference in New Issue
Block a user