Skip to content

Commit

Permalink
fix(module:graph): bring back the disappered arrows of edge (#8493)
Browse files Browse the repository at this point in the history
* fix(module:graph): bring back the disappered arrows of edge

* fix(module:graph): bring back the disappered arrows of edge
  • Loading branch information
Laffery committed Apr 15, 2024
1 parent 2000294 commit 342841c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions components/graph/graph-defs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@ import { Component } from '@angular/core';
`,
standalone: true
})
export class NzGraphDefsComponent {
constructor() {}
}
export class NzGraphDefsComponent {}
3 changes: 2 additions & 1 deletion components/graph/graph.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { InputBoolean } from 'ng-zorro-antd/core/util';
import { calculateTransform } from './core/utils';
import { NzGraphData } from './data-source/graph-data-source';
import { NzGraph } from './graph';
import { NzGraphDefsComponent } from './graph-defs.component';
import { NzGraphEdgeComponent } from './graph-edge.component';
import { NzGraphEdgeDirective } from './graph-edge.directive';
import { NzGraphGroupNodeDirective } from './graph-group-node.directive';
Expand Down Expand Up @@ -126,7 +127,7 @@ export function isDataSource(value: NzSafeAny): value is NzGraphData {
'[class.nz-graph]': 'true',
'[class.nz-graph-auto-size]': 'nzAutoSize'
},
imports: [NgTemplateOutlet, NzGraphEdgeComponent, NzGraphNodeComponent],
imports: [NgTemplateOutlet, NzGraphEdgeComponent, NzGraphNodeComponent, NzGraphDefsComponent],
standalone: true
})
export class NzGraphComponent implements OnInit, OnChanges, AfterContentChecked, OnDestroy, NzGraph {
Expand Down

0 comments on commit 342841c

Please sign in to comment.