2
0

refactored variable names

This commit is contained in:
2018-08-04 21:36:04 +02:00
parent 4d0de92b3b
commit 73b79c757f
3 changed files with 28 additions and 33 deletions

View File

@@ -49,7 +49,7 @@ export class GuillocheDirective implements OnChanges {
}
ngOnChanges(changes: SimpleChanges) {
const points = [this.graph.start.coords, ...this.graph.nodes, this.graph.end.coords];
const points = [this.graph.start.point, ...this.graph.nodes, this.graph.end.point];
this.defineGradient();
this.spreadLines(points);
@@ -149,16 +149,16 @@ export class GuillocheDirective implements OnChanges {
private showGrid() {
this.group.append('circle')
.attr('cx', this.graph.start.coords.x)
.attr('cy', this.graph.start.coords.y)
.attr('cx', this.graph.start.point.x)
.attr('cy', this.graph.start.point.y)
.attr('r', 20)
.attr('stroke-width', 1)
.attr('fill-opacity', 0)
.attr('stroke', this.graph.start.color);
this.group.append('circle')
.attr('cx', this.graph.end.coords.x)
.attr('cy', this.graph.end.coords.y)
.attr('cx', this.graph.end.point.x)
.attr('cy', this.graph.end.point.y)
.attr('r', 10)
.attr('stroke-width', 1)
.attr('fill-opacity', 0)