Add endpoint vertices to the preset icon line

This commit is contained in:
Quincy Morgan
2019-02-13 16:12:29 -05:00
parent 1e7d37c54a
commit ed95fafac9
2 changed files with 34 additions and 6 deletions
+13 -5
View File
@@ -64,18 +64,26 @@ export function uiPresetIcon() {
.remove();
line = line.enter()
.append('svg')
.append('div')
.attr('class', 'preset-icon-line')
.attr('width', 40)
.attr('height', 30)
.merge(line);
line.html('');
line.append('path')
line.append('div')
.attr('class', 'vertex vertex-left');
line.append('div')
.attr('class', 'vertex vertex-right');
var lineSvg = line.append('svg')
.attr('width', 40)
.attr('height', 20)
.merge(line);
lineSvg.append('path')
.attr('d', 'M0 13.5 L40 13.5')
.attr('class', 'line casing ' + tagClasses);
line.append('path')
lineSvg.append('path')
.attr('d', 'M0 13.5 L40 13.5')
.attr('class', 'line stroke ' + tagClasses);