mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 06:55:46 +00:00
(re: #3003 / #4602) For now, drawHover is commented out. Still not sure what I will do with it. This means that things flicker a bit when dragging, also connecting nodes (and closing lines) does not currently work. There was lot going on preventing the vertices from rendering while dragging. 1. `modeDragNode` needed a proper `selectedIDs()` function that works like other modes.. Many other places in iD (including the vertex renderer) call `context.selectedIDs()`.. This means that `modeDragNode` needs a new function `restoreSelectedIDs()` to do what `selectedIDs()` was previously doing (a place to store selectedIDs so that we can reselect those entities after the user is done dragging a node in select mode) 2. Just so many things in svg/vertices.js - siblingAndChildVertices was missing some things for points that we render as vertices (points in wireframe, points with directions) - the sibling vertices weren't being included in the `filter` function, so would disappear when doing differenced/extent redraws - probably some other things
62 lines
1.3 KiB
CSS
62 lines
1.3 KiB
CSS
/* Fill Styles */
|
|
|
|
.low-zoom.fill-wireframe path.stroke,
|
|
.fill-wireframe path.stroke {
|
|
stroke-width: 1 !important;
|
|
stroke-opacity: 0.5 !important;
|
|
stroke-dasharray: none !important;
|
|
fill: none !important;
|
|
}
|
|
|
|
.low-zoom.fill-wireframe path.shadow,
|
|
.fill-wireframe path.shadow {
|
|
stroke-width: 12;
|
|
}
|
|
|
|
.fill-wireframe path.shadow.related:not(.selected),
|
|
.fill-wireframe path.shadow.hover:not(.selected) {
|
|
stroke-opacity: 0.4;
|
|
}
|
|
.fill-wireframe path.shadow.selected {
|
|
stroke-opacity: 0.6;
|
|
}
|
|
|
|
.fill-wireframe .point,
|
|
.fill-wireframe .areaicon,
|
|
.fill-wireframe .areaicon-halo,
|
|
.fill-wireframe path.casing,
|
|
.fill-wireframe path.fill,
|
|
.fill-wireframe path.oneway {
|
|
display: none !important;
|
|
}
|
|
|
|
.fill-partial path.area.fill {
|
|
fill-opacity: 0;
|
|
stroke-width: 60px;
|
|
pointer-events: visibleStroke;
|
|
}
|
|
|
|
/* Modes */
|
|
|
|
/*.mode-draw-line .vertex.active,
|
|
.mode-draw-area .vertex.active,
|
|
.mode-drag-node .vertex.active {
|
|
display: none;
|
|
}
|
|
*/
|
|
.mode-draw-line .way.active,
|
|
.mode-draw-area .way.active,
|
|
.mode-drag-node .active {
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Ensure drawing doesn't interact with area fills. */
|
|
.mode-add-point path.area.fill,
|
|
.mode-draw-line path.area.fill,
|
|
.mode-draw-area path.area.fill,
|
|
.mode-add-line path.area.fill,
|
|
.mode-add-area path.area.fill,
|
|
.mode-drag-node path.area.fill {
|
|
pointer-events: none;
|
|
}
|