Commit 3af2450d authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Fix do format in component

parent 8631fd13
...@@ -575,11 +575,11 @@ export class CanvasModelConsistencyService { ...@@ -575,11 +575,11 @@ export class CanvasModelConsistencyService {
): { ): {
patternHintFeatureIds: string[]; patternHintFeatureIds: string[];
patternHints: string[]; patternHints: string[];
usedPatterns: string[]; usedPatterns: Instance[];
} { } {
const patternHintFeatureIds = new Set<string>(); const patternHintFeatureIds = new Set<string>();
const patternHints: string[] = []; const patternHints: string[] = [];
const usedPatterns: string[] = []; const usedPatterns: Instance[] = [];
patterns.forEach((pattern) => { patterns.forEach((pattern) => {
let leafFeatures = 0; let leafFeatures = 0;
...@@ -634,7 +634,7 @@ export class CanvasModelConsistencyService { ...@@ -634,7 +634,7 @@ export class CanvasModelConsistencyService {
patternHints.push(hint); patternHints.push(hint);
featureIds.forEach((id) => patternHintFeatureIds.add(id)); featureIds.forEach((id) => patternHintFeatureIds.add(id));
} else { } else {
usedPatterns.push(pattern.name); usedPatterns.push(pattern);
} }
} }
} }
......
import { Instance } from './instance';
export class ConformanceReport { export class ConformanceReport {
errorFeatureIds: string[] = []; errorFeatureIds: string[] = [];
errors: string[] = []; errors: string[] = [];
...@@ -9,7 +11,7 @@ export class ConformanceReport { ...@@ -9,7 +11,7 @@ export class ConformanceReport {
hints: string[] = []; hints: string[] = [];
patternHintFeatureIds: string[] = []; patternHintFeatureIds: string[] = [];
patternHints: string[] = []; patternHints: string[] = [];
usedPatterns: string[] = []; usedPatterns: Instance[] = [];
constructor(conformanceReport: Partial<ConformanceReport> = {}) { constructor(conformanceReport: Partial<ConformanceReport> = {}) {
Object.assign(this, conformanceReport); Object.assign(this, conformanceReport);
......
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
<h6>Used Patterns</h6> <h6>Used Patterns</h6>
<ul> <ul>
<li *ngFor="let pattern of conformance.usedPatterns"> <li *ngFor="let pattern of conformance.usedPatterns">
{{ pattern }} {{ pattern.name }}
</li> </li>
</ul> </ul>
</div> </div>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</li> </li>
<li ngbNavItem="stepHints" #stepHints="ngbNavItem"> <li ngbNavItem="stepHints" #stepHints="ngbNavItem">
<a ngbNavLink>2. Hints</a> <a ngbNavLink>2. Hints</a>
<ng-template ngbNavContent> Adapt the example with hints </ng-template> <ng-template ngbNavContent> Adapt the example with hints</ng-template>
</li> </li>
<li ngbNavItem="stepCompare" #stepCompare="ngbNavItem"> <li ngbNavItem="stepCompare" #stepCompare="ngbNavItem">
<a ngbNavLink>3. Compare & Adaption</a> <a ngbNavLink>3. Compare & Adaption</a>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</li> </li>
<li ngbNavItem="stepView"> <li ngbNavItem="stepView">
<a ngbNavLink>4. View</a> <a ngbNavLink>4. View</a>
<ng-template ngbNavContent> Just view the example </ng-template> <ng-template ngbNavContent> Just view the example</ng-template>
</li> </li>
</ul> </ul>
<div class="mt-1" [ngbNavOutlet]="nav"></div> <div class="mt-1" [ngbNavOutlet]="nav"></div>
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
<h6>Used Patterns</h6> <h6>Used Patterns</h6>
<ul> <ul>
<li *ngFor="let pattern of conformance.usedPatterns"> <li *ngFor="let pattern of conformance.usedPatterns">
{{ pattern }} {{ pattern.name }}
</li> </li>
</ul> </ul>
</div> </div>
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
<div *ngIf="usedPatterns" style="margin-top: 20px"> <div *ngIf="usedPatterns" style="margin-top: 20px">
<h6>Used Patterns</h6> <h6>Used Patterns</h6>
<ul> <ul>
<li *ngFor="let pattern of usedPatterns">{{ pattern }}</li> <li *ngFor="let pattern of usedPatterns">{{ pattern.name }}</li>
</ul> </ul>
</div> </div>
</div> </div>
......
...@@ -31,7 +31,7 @@ export class ExampleComponent implements OnInit { ...@@ -31,7 +31,7 @@ export class ExampleComponent implements OnInit {
}); });
// used patterns // used patterns
usedPatterns: string[] = null; usedPatterns: Instance[] = null;
// Compare / Heatmap // Compare / Heatmap
selectOtherInstanceForm: FormGroup = this.fb.group({ selectOtherInstanceForm: FormGroup = this.fb.group({
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment