diff --git a/projects/ledge-render/src/lib/chart/ledge-sunburst/ledge-sunburst.component.scss b/projects/ledge-render/src/lib/chart/ledge-sunburst/ledge-sunburst.component.scss index f9945434..b2bca6ad 100644 --- a/projects/ledge-render/src/lib/chart/ledge-sunburst/ledge-sunburst.component.scss +++ b/projects/ledge-render/src/lib/chart/ledge-sunburst/ledge-sunburst.component.scss @@ -1,7 +1,7 @@ .ledge-sunburst { width: auto; height: auto; - min-width: 500px; - min-height: 500px; - max-width: 800px; + min-width: 960px; + min-height: 960px; + max-width: 1200px; } diff --git a/projects/ledge-render/src/lib/chart/ledge-sunburst/ledge-sunburst.component.ts b/projects/ledge-render/src/lib/chart/ledge-sunburst/ledge-sunburst.component.ts index 5145b32c..299b49c3 100644 --- a/projects/ledge-render/src/lib/chart/ledge-sunburst/ledge-sunburst.component.ts +++ b/projects/ledge-render/src/lib/chart/ledge-sunburst/ledge-sunburst.component.ts @@ -17,7 +17,7 @@ export class LedgeSunburstComponent implements OnInit, AfterViewInit { @ViewChild('chart', {}) chart: ElementRef; - private childLevel = 1; + private childLevel = 0; ngOnInit(): void { } @@ -53,17 +53,16 @@ export class LedgeSunburstComponent implements OnInit, AfterViewInit { } private setValue(list: LedgeListItem[], value) { + this.childLevel++; for (const item of list) { - value++; if (item.children) { this.setValue(item.children, value); - item.value = value; } else { item.value = 1; - value = 0; } } + this.childLevel--; return list; } } diff --git a/src/assets/docs/pattern.md b/src/assets/docs/pattern.md index 16947311..3ba9a571 100644 --- a/src/assets/docs/pattern.md +++ b/src/assets/docs/pattern.md @@ -206,10 +206,10 @@ ThoughtWorks Tech Lead 模型 - Idea - Sonarlint - 版本控制 - - truffleHog \* + - truffleHog * - Git Toolkit - Gitlab - - git-secrets \* + - git-secrets * - 持续集成 - Jenkins - Blue Ocean @@ -220,23 +220,23 @@ ThoughtWorks Tech Lead 模型 - Pipeline - 构建 - Dockerfile - - hadolint \* + - hadolint * - 分析 - - SAST \* + - SAST * - Sonarqube - Snyk - FOSSology - CodeQL CLI - - Compliance \* - - SCA \* + - Compliance * + - SCA * - Ort - Dependency-Check - Dependency-Track - 制品 - - 供应链安全 \* + - 供应链安全 * - ClearlyDefined - OpenChain - - 容器 \* + - 容器 * - Anchore - Trivy - Clair @@ -262,7 +262,7 @@ ThoughtWorks Tech Lead 模型 - Rancher - OpenShift/OKD - KubeOperator - - hardening & compliance \* + - hardening & compliance * - kube-hunter - Falco - Lynis @@ -278,7 +278,7 @@ ThoughtWorks Tech Lead 模型 - ELK - Loki - 集成测试 - - Fuzzing \* + - Fuzzing * - 自动化测试 - Dredd - Newman + Postman @@ -286,7 +286,7 @@ ThoughtWorks Tech Lead 模型 - Cucumber - galasa-dev - Pact - - DAST \* + - DAST * - Zed - Openvas Nvt - Contrast Security