Skip to content

Commit 81f8de0

Browse files
committed
Fixed bugs with configuration settings
1 parent a859441 commit 81f8de0

File tree

2 files changed

+71
-83
lines changed

2 files changed

+71
-83
lines changed

package.json

Lines changed: 71 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -26,88 +26,77 @@
2626
"command": "vscode-dgmlviewer.dgmlFileInfo",
2727
"title": "DGMLViewer: Show file info"
2828
}
29-
]
30-
},
31-
"configuration": {
32-
"title": "DGMLViewer",
33-
"properties": {
34-
"dgmlViewer.dgmlViewer.graphDirection": {
35-
"type": "string",
36-
"default": "LeftToRight",
37-
"enum": [
38-
"TopToBottom",
39-
"BottomToTop",
40-
"LeftToRight",
41-
"RightToLeft"
42-
],
43-
"description": "This will make the layout algorithm position the directed graph nodes in the specified direction."
44-
},
45-
"dgmlViewer.dgmlViewer.defaultNodeBackgroundColor": {
46-
"type": "string",
47-
"default": "#D2E5FF",
48-
"description": "The color of the nodes of the directed graph. The string should be in rgb format."
49-
},
50-
"dgmlViewer.dgmlViewer.edgeArrowToType": {
51-
"type": "string",
52-
"default": "triangle",
53-
"enum": [
54-
"arrow",
55-
"bar",
56-
"box",
57-
"circle",
58-
"crow",
59-
"curve",
60-
"diamond",
61-
"inv_curve",
62-
"inv_triangle",
63-
"triangle",
64-
"vee"
65-
],
66-
"description": "The default ending of the edges."
67-
},
68-
"dgmlViewer.dgmlViewer.nodeShape": {
69-
"type": "string",
70-
"default": "box",
71-
"enum": [
72-
"ellipse",
73-
"circle",
74-
"database",
75-
"box",
76-
"text",
77-
"diamond",
78-
"dot",
79-
"star",
80-
"triangle",
81-
"triangleDown",
82-
"hexagon",
83-
"square "
84-
],
85-
"description": "The shape of the nodes in the directed graph. Notice that 'ellipse','circle','database','box' and 'text' have the label inside the shape, the rest have the label outside the shape."
86-
},
87-
"dgmlViewer.dgmlViewer.graphSelectionGuidelineColor": {
88-
"type": "string",
89-
"default": "blue",
90-
"description": "The color of the guidelines used when selecting part of a directed graph. The string should be in rgba format or standard css color names."
91-
},
92-
"dgmlViewer.dgmlViewer.graphSelectionGuidelineWidth": {
93-
"type": "number",
94-
"default": "1",
95-
"description": "The width of the guide lines shown when selecting part of a directed graph"
96-
},
97-
"dgmlViewer.dgmlViewer.graphSelectionColor": {
98-
"type": "string",
99-
"default": "red",
100-
"description": "The color of the selection rectangle used when selecting part of a directed graph. The string should be in rgba format or standard css color names."
101-
},
102-
"dgmlViewer.dgmlViewer.graphSelectionWidth": {
103-
"type": "number",
104-
"default": "2",
105-
"description": "The width of the selection rectangle shown when selecting part of a directed graph"
106-
},
107-
"dgmlViewer.dgmlViewer.pngFilename": {
108-
"type": "string",
109-
"default": "DirectedGraph.png",
110-
"description": "The default name used when saving the directed grap to a Png file."
29+
],
30+
"configuration": {
31+
"title": "DGMLViewer",
32+
"properties": {
33+
"dgmlViewer.dgmlViewer.defaultNodeBackgroundColor": {
34+
"type": "string",
35+
"default": "#D2E5FF",
36+
"description": "The color of the nodes of the directed graph. The string should be in rgb format."
37+
},
38+
"dgmlViewer.dgmlViewer.edgeArrowToType": {
39+
"type": "string",
40+
"default": "triangle",
41+
"enum": [
42+
"arrow",
43+
"bar",
44+
"box",
45+
"circle",
46+
"crow",
47+
"curve",
48+
"diamond",
49+
"inv_curve",
50+
"inv_triangle",
51+
"triangle",
52+
"vee"
53+
],
54+
"description": "The default ending of the edges."
55+
},
56+
"dgmlViewer.dgmlViewer.nodeShape": {
57+
"type": "string",
58+
"default": "box",
59+
"enum": [
60+
"ellipse",
61+
"circle",
62+
"database",
63+
"box",
64+
"text",
65+
"diamond",
66+
"dot",
67+
"star",
68+
"triangle",
69+
"triangleDown",
70+
"hexagon",
71+
"square "
72+
],
73+
"description": "The shape of the nodes in the directed graph. Notice that 'ellipse','circle','database','box' and 'text' have the label inside the shape, the rest have the label outside the shape."
74+
},
75+
"dgmlViewer.dgmlViewer.graphSelectionGuidelineColor": {
76+
"type": "string",
77+
"default": "blue",
78+
"description": "The color of the guidelines used when selecting part of a directed graph. The string should be in rgba format or standard css color names."
79+
},
80+
"dgmlViewer.dgmlViewer.graphSelectionGuidelineWidth": {
81+
"type": "number",
82+
"default": "1",
83+
"description": "The width of the guide lines shown when selecting part of a directed graph"
84+
},
85+
"dgmlViewer.dgmlViewer.graphSelectionColor": {
86+
"type": "string",
87+
"default": "red",
88+
"description": "The color of the selection rectangle used when selecting part of a directed graph. The string should be in rgba format or standard css color names."
89+
},
90+
"dgmlViewer.dgmlViewer.graphSelectionWidth": {
91+
"type": "number",
92+
"default": "2",
93+
"description": "The width of the selection rectangle shown when selecting part of a directed graph"
94+
},
95+
"dgmlViewer.dgmlViewer.pngFilename": {
96+
"type": "string",
97+
"default": "DirectedGraph.png",
98+
"description": "The default name used when saving the directed graph to a Png file."
99+
}
111100
}
112101
}
113102
},

src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export class Config {
1515
return value as T;
1616
}
1717

18-
public get dgmlGraphDirection(): string { return this.getSetting<string>('dgmlViewer.graphDirection', 'LeftToRight'); }
1918
public readonly dgmlZoomLevel = '-1';
2019
public get defaultNodeBackgroundColor(): string { return this.getSetting<string>('dgmlViewer.defaultNodeBackgroundColor', '#D2E5FF'); }
2120
public get nodeShape(): string { return this.getSetting<string>('dgmlViewer.nodeShape', 'box'); }

0 commit comments

Comments
 (0)