Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Apr 17, 2023
1 parent 8e8d9bb commit 648d00e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/src/layout/dock/Graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,47 +497,47 @@ export class Graph extends Model {
this.graphData.nodes.forEach(item => {
switch (item.type) {
case "NodeDocument":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-doc-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-doc-point").trim()};
break;
case "NodeParagraph":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-p-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-p-point").trim()};
break;
case "NodeHeading":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-heading-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-heading-point").trim()};
break;
case "NodeMathBlock":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-math-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-math-point").trim()};
break;
case "NodeCodeBlock":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-code-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-code-point").trim()};
break;
case "NodeTable":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-table-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-table-point").trim()};
break;
case "NodeList":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-list-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-list-point").trim()};
break;
case "NodeListItem":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-listitem-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-listitem-point").trim()};
break;
case "NodeBlockquote":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-bq-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-bq-point").trim()};
break;
case "NodeSuperBlock":
item.color = {background: rootStyle.getPropertyValue("--b3-graph-super-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-super-point").trim()};
break;
default:
item.color = {background: rootStyle.getPropertyValue("--b3-graph-p-point").trim()}
item.color = {background: rootStyle.getPropertyValue("--b3-graph-p-point").trim()};
break;
}
})
});
this.graphData.links.forEach(item => {
if (item.ref) {
item.color = {color: rootStyle.getPropertyValue("--b3-graph-ref-line").trim()};
} else {
item.color = {color: rootStyle.getPropertyValue("--b3-graph-line").trim()};
}
})
});
clearTimeout(this.timeout);
addScript(`${Constants.PROTYLE_CDN}/js/vis/vis-network.min.js?v=9.1.2`, "protyleVisScript").then(() => {
this.timeout = window.setTimeout(() => {
Expand Down

0 comments on commit 648d00e

Please sign in to comment.