2
0

fix(form): added mocked functionality and adjusted env vars

This commit is contained in:
2018-05-23 18:22:42 +02:00
parent 6807c81f3d
commit d42b6160e6
8 changed files with 38 additions and 5 deletions

View File

@@ -36,6 +36,18 @@ export class GuillocheDirective implements OnChanges {
private drawGraph(): void {
console.log('guilloche directive(drawGraph)', this.graph);
this.group.append('path')
.attr('d', Shape.line()
.x(p => p.x)
.y(p => p.y)
.curve(Shape.curveBasis)([
this.graph.start.coords,
this.graph.end.coords
]))
.attr('stroke', 'url(#gradient)')
.attr('stroke-width', this.graph.stroke)
.attr('fill', 'none');
this.group.append('circle')
.attr('cx', this.graph.start.coords.x)
.attr('cy', this.graph.start.coords.y)