Skip to content

Commit f2787f6

Browse files
committed
Added missing configurations.
1 parent 117e587 commit f2787f6

File tree

2 files changed

+44
-10
lines changed

2 files changed

+44
-10
lines changed

package.json

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
"angularTools.showModuleHierarchy.pipeNodeBackgroundColor": {
248248
"type": "string",
249249
"default": "#00897b",
250-
"description": "The default color of the pipes representing modules."
250+
"description": "The default color of the nodes representing pipes."
251251
},
252252
"angularTools.showModuleHierarchy.pipeNodeShape": {
253253
"type": "string",
@@ -271,7 +271,7 @@
271271
"angularTools.showModuleHierarchy.directiveNodeBackgroundColor": {
272272
"type": "string",
273273
"default": "#ffc107",
274-
"description": "The default color of the directives representing modules."
274+
"description": "The default color of the nodes representing directives."
275275
},
276276
"angularTools.showModuleHierarchy.directiveNodeShape": {
277277
"type": "string",
@@ -292,16 +292,50 @@
292292
],
293293
"description": "The default shape of the nodes representing directives. Notice that 'ellipse','circle','database','box' and 'text' have the label inside the shape, the rest have the label outside the shape."
294294
},
295-
"angularTools.showModuleHierarchy.importEdgeColor": {
295+
"angularTools.dependencyInjectionGraph.injectableNodeBackgroundColor": {
296+
"type": "string",
297+
"default": "#97c2fc",
298+
"description": "The default color of the nodes representing injected components."
299+
},
300+
"angularTools.dependencyInjectionGraph.injectableNodeShape": {
301+
"type": "string",
302+
"default": "box",
303+
"enum": [
304+
"ellipse",
305+
"circle",
306+
"database",
307+
"box",
308+
"text",
309+
"diamond",
310+
"dot",
311+
"star",
312+
"triangle",
313+
"triangleDown",
314+
"hexagon",
315+
"square"
316+
],
317+
"description": "The default shape of the nodes representing directives. Notice that 'ellipse','circle','database','box' and 'text' have the label inside the shape, the rest have the label outside the shape."
318+
},
319+
"angularTools.graph.importEdgeColor": {
296320
"type": "string",
297321
"default": "#43a047",
298322
"description": "The default color of the edges representing imports."
299323
},
300-
"angularTools.showModuleHierarchy.exportEdgeColor": {
324+
"angularTools.graph.exportEdgeColor": {
301325
"type": "string",
302326
"default": "#0288d1",
303327
"description": "The default color of the edges representing exports."
304328
},
329+
"angularTools.graph.injectableEdgeColor": {
330+
"type": "string",
331+
"default": "#0288d1",
332+
"description": "The default color of the edges representing injectables."
333+
},
334+
"angularTools.graph.usesEdgeColor": {
335+
"type": "string",
336+
"default": "#0288d1",
337+
"description": "The default color of the edges representing components using other components."
338+
},
305339
"angularTools.showModuleHierarchy.maximumNodeLabelLength": {
306340
"type": "number",
307341
"default": "40",

src/config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ export class Config {
5454
public get pipeNodeShape(): string { return this.getSetting<string>('showModuleHierarchy.pipeNodeShape', 'box'); }
5555
public get directiveNodeBackgroundColor(): string { return this.getSetting<string>('showModuleHierarchy.directiveNodeBackgroundColor', '#ffc107');}
5656
public get directiveNodeShape(): string { return this.getSetting<string>('showModuleHierarchy.directiveNodeShape', 'box'); }
57-
public get injectableNodeShape(): string { return this.getSetting<string>('graph.injectableNodeShape', 'box'); }
58-
public get injectableNodeBackgroundColor(): string { return this.getSetting<string>('graph.injectableNodeBackgroundColor', '#97c2fc'); }
59-
public get importEdgeColor(): string { return this.getSetting<string>('showModuleHierarchy.importEdgeColor', '#43a047'); }
60-
public get exportEdgeColor(): string { return this.getSetting<string>('showModuleHierarchy.exportEdgeColor', '#0288d1'); }
61-
public get injectableEdgeColor(): string { return this.getSetting<string>('showModuleHierarchy.exportEdgeColor', '#0288d1'); }
62-
public get usesEdgeColor(): string { return this.getSetting<string>('showModuleHierarchy.exportEdgeColor', '#0288d1'); }
57+
public get injectableNodeBackgroundColor(): string { return this.getSetting<string>('dependencyInjectionGraph.injectableNodeBackgroundColor', '#97c2fc'); }
58+
public get injectableNodeShape(): string { return this.getSetting<string>('dependencyInjectionGraph.injectableNodeShape', 'box'); }
59+
public get importEdgeColor(): string { return this.getSetting<string>('graph.importEdgeColor', '#43a047'); }
60+
public get exportEdgeColor(): string { return this.getSetting<string>('graph.exportEdgeColor', '#0288d1'); }
61+
public get injectableEdgeColor(): string { return this.getSetting<string>('graph.exportEdgeColor', '#0288d1'); }
62+
public get usesEdgeColor(): string { return this.getSetting<string>('graph.exportEdgeColor', '#0288d1'); }
6363
public get maximumNodeLabelLength(): number { return this.getSetting<number>('showModuleHierarchy.maximumNodeLabelLength', -1); }
6464

6565
// ComponentHierarchyMarkdown

0 commit comments

Comments
 (0)