#945 Rendering of labels and new label positioning algorithm

This commit is contained in:
Knut Sveidqvist
2019-09-28 13:31:10 +02:00
parent 13baa43081
commit 3cffd1e3ed
6 changed files with 143 additions and 31 deletions

View File

@@ -41,7 +41,7 @@ export const getRelations = function() {
return relations;
};
export const addRelation = function(_id1, _id2) {
export const addRelation = function(_id1, _id2, title) {
let id1 = _id1;
let id2 = _id2;
let type1 = 'default';
@@ -56,10 +56,10 @@ export const addRelation = function(_id1, _id2) {
id2 = 'end' + startCnt;
type2 = 'end';
}
console.log(id1, id2);
console.log(id1, id2, title);
addState(id1, type1);
addState(id2, type2);
relations.push({ id1, id2 });
relations.push({ id1, id2, title });
};
export const addMember = function(className, member) {