mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Add endpoint vertices to the preset icon line
This commit is contained in:
+21
-1
@@ -951,8 +951,13 @@ a.hide-toggle {
|
||||
.preset-icon-line {
|
||||
margin: auto;
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
left: 8px;
|
||||
top: 30px;
|
||||
width: 44px;
|
||||
}
|
||||
.preset-icon-line svg {
|
||||
left: 2px;
|
||||
right: 2px;
|
||||
}
|
||||
.preset-icon-line path.line {
|
||||
cursor: inherit;
|
||||
@@ -965,6 +970,21 @@ a.hide-toggle {
|
||||
.preset-icon-line path.line.casing {
|
||||
stroke-width: 3.5 !important;
|
||||
}
|
||||
.preset-icon-line .vertex {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
border: 1px solid rgba(0, 0, 0, 0.25);
|
||||
position: absolute;
|
||||
top: 10.5px;
|
||||
}
|
||||
.preset-icon-line .vertex.vertex-left {
|
||||
left: 0;
|
||||
}
|
||||
.preset-icon-line .vertex.vertex-right {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.preset-icon-fill-area {
|
||||
cursor: inherit;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user