-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
105 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 21 additions & 26 deletions
47
ui/dashboard/projects/utask-lib/src/lib/@components/steps-viewer/steps-viewer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
<div oncontextmenu="return false;"> | ||
<button type="button" nz-button nzType="primary" nzSize="large" (click)="fit()"><i nz-icon | ||
nzType="aim"></i></button> | ||
<button type="button" nz-button nzType="primary" nzSize="large" (click)="fit()"><i nz-icon nzType="aim"></i></button> | ||
|
||
<nz-graph nz-graph-zoom [nzGraphData]="graphData" [nzAutoSize]="true" [nzRankDirection]="rankDirection" | ||
(nzGraphInitialized)="graphInitialized($event)" [nzGraphLayoutConfig]="layoutConfig"> | ||
<ng-container *nzGraphNode="let node"> | ||
<foreignObject x="0" y="0" [attr.width]="node.width" height="50"> | ||
<xhtml:div class="graph-node leaf-node {{node.attr.class}}" (click)="selectNode(node.attr.step)"> | ||
<lib-utask-step-node [key]="node.name" [step]="node.attr.step"></lib-utask-step-node> | ||
</xhtml:div> | ||
</foreignObject> | ||
</ng-container> | ||
|
||
<ng-container *nzGraphEdge="let edge"> | ||
<svg:g class="edge {{edge.classes}}"> | ||
<path [attr.marker-end]="edge.markerEnd"></path> | ||
<text text-anchor="middle" dy="10" class="nz-graph-edge-text"> | ||
<textPath startOffset="50%" [attr.href]="'#'+edge.v+'--'+edge.w"> | ||
{{edge.label}} | ||
</textPath> | ||
</text> | ||
</svg:g> | ||
</ng-container> | ||
</nz-graph> | ||
|
||
</div> | ||
<nz-graph nz-graph-zoom [nzGraphData]="graphData" [nzAutoSize]="true" [nzRankDirection]="rankDirection" | ||
(nzGraphInitialized)="graphInitialized($event)" [nzGraphLayoutConfig]="layoutConfig"> | ||
<ng-container *nzGraphNode="let node"> | ||
<foreignObject x="0" y="0" [attr.width]="node.width" height="50"> | ||
<xhtml:div class="graph-node leaf-node {{node.attr.class}}" (click)="selectNode(node.attr.step)"> | ||
<lib-utask-step-node [key]="node.name" [step]="node.attr.step"></lib-utask-step-node> | ||
</xhtml:div> | ||
</foreignObject> | ||
</ng-container> | ||
<ng-container *nzGraphEdge="let edge"> | ||
<svg:g class="edge {{edge.classes}}"> | ||
<path [attr.marker-end]="edge.markerEnd"></path> | ||
<text text-anchor="middle" dy="10" class="nz-graph-edge-text"> | ||
<textPath startOffset="50%" [attr.href]="'#'+edge.v+'--'+edge.w"> | ||
{{edge.label}} | ||
</textPath> | ||
</text> | ||
</svg:g> | ||
</ng-container> | ||
</nz-graph> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters