Skip to content

Commit

Permalink
feat(cdk-graph): further improve graph filtering and diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyJonas committed Mar 8, 2023
1 parent 8fd6090 commit fc0a36a
Show file tree
Hide file tree
Showing 32 changed files with 200 additions and 2,752 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const DEFAULT_RENDERING: IGraphThemeRenderingInternal = {
resourceIconMin: GraphThemeRenderingIconTarget.DATA,
resourceIconMax: GraphThemeRenderingIconTarget.CATEGORY,
cfnResourceIconMin: GraphThemeRenderingIconTarget.DATA,
cfnResourceIconMax: GraphThemeRenderingIconTarget.GENERAL,
cfnResourceIconMax: GraphThemeRenderingIconTarget.SERVICE,
} as const;

/** GraphTheme definition */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ import { GraphTheme, GraphThemeRenderingIconTarget } from "../graphviz/theme";
export function resolveCfnResourceImage(
node: Graph.CfnResourceNode
): string | undefined {
let min = GraphTheme.instance.rendering.resourceIconMin;
let max = GraphTheme.instance.rendering.resourceIconMax;
// lower max to general when wrapped cfn resource is rendered as wrapper will show service icon
if (node.resource?.isWrapper) {
min = GraphThemeRenderingIconTarget.SERVICE;
}
return _resolveResourceLikeImage(
node,
GraphTheme.instance.rendering.cfnResourceIconMin,
GraphTheme.instance.rendering.cfnResourceIconMax,
min,
max,
GraphTheme.instance.awsTheme?.id
);
}
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc0a36a

Please sign in to comment.