This commit is contained in:
yari-dewalt
2024-10-23 12:06:59 -07:00
parent 8ace44b428
commit b49afeefc2

View File

@@ -135,10 +135,10 @@ export const getData = function () {
}
}
let cnt = 0;
let count = 0;
for (const relationship of relationships) {
const edge: Edge = {
id: getEdgeId(relationship.entityA, relationship.entityB, { prefix: 'id', counter: cnt++ }),
id: getEdgeId(relationship.entityA, relationship.entityB, { prefix: 'id', counter: count++ }),
type: 'normal',
start: relationship.entityA,
end: relationship.entityB,
@@ -179,7 +179,7 @@ export const addClass = function (ids: string[], style: string[]) {
if (style) {
style.forEach(function (s) {
if (/color/.exec(s)) {
const newStyle = s.replace('fill', 'bgFill'); // .replace('color', 'fill');
const newStyle = s.replace('fill', 'bgFill');
classNode.textStyles.push(newStyle);
}
classNode.styles.push(s);