16 Commits

Author SHA1 Message Date
Martin Raifer
4b7a20f628 make feature fill clickable in "Full Fill" rendering style 2025-03-18 14:06:50 +01:00
Nekzuris
0ce8136279 Render parking space partial fill thinner (#10442) 2024-09-03 16:24:37 +02:00
Quincy Morgan
a327fac4ed Fix cursor issue when hovering areas in some modes 2020-04-05 17:30:40 -07:00
Quincy Morgan
36082a8119 Use ideditor as the container class instead of id-container
Scope all CSS to iD's container (close #7437)
Don't style html or body elements unless running standalone iD
2020-03-22 16:54:12 -07:00
Quincy Morgan
dcd9876fdf Use thinner partial fills for buildings parts and indoor features (re: #6204) 2019-05-08 15:55:59 -04:00
Bryan Housel
558dc03185 Show active vertex while dragging in wireframe mode 2018-11-09 23:24:40 -05:00
Bryan Housel
7714e88f3d Support data area filling (full/partial/wireframe), shadow strokes 2018-08-24 14:07:00 -04:00
Bryan Housel
684a9414de Hide the active vertex while drawing in wireframe mode
(closes #4739)
2018-01-24 13:37:12 -05:00
Bryan Housel
7a8f50c74e More fixes for drawing/snapping, don't draw touch targets for activeIDs 2017-12-18 22:54:49 -05:00
Bryan Housel
aa68b21d7a Add touch targets for line/area 2017-12-17 22:53:58 -05:00
Bryan Housel
5e99f3cbac CSS pointer-events cleanup, also round linejoins 2017-12-16 11:32:26 -05:00
Bryan Housel
5a4faa84a1 Fixed some of the point/vertex/midpoint snapping issues
Still working on snapping to lines/areas, and making sure drawing lines/areas
will complete
2017-12-16 01:33:12 -05:00
Bryan Housel
b9e48d1682 WIP: Move layer-hit to layer-points with explict sublayers, update tests
This is more work to further isolate the layers that entities draw to.
It makes it easier to debug what is going on, and can eventually lead to
deferred drawing, if each draw function is in its own place and not dependant
on anything else.

I've started to replace the vertex-hover with an explicit layer for touch
targets.

Also had to change a lot of the svg tests, which are really brittle.
Things would happen like - the surface would be created, it would kick of a
deferred redraw, which would notice that the zoom was 0 and call
editOff, which would remove the osm layers that were just created and
that the tests were trying to draw to. These tests need proper zoom and
projection otherwise nothing works.
2017-12-14 17:38:43 -05:00
Bryan Housel
899abc7ef5 WIP to render vertices while dragging
(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
2017-12-12 17:39:36 -05:00
Bryan Housel
3a175c277c Relax wireframe rules to breathe interpolation can happen 2017-03-16 16:29:36 -04:00
Bryan Housel
4826dfb8e1 Move fills to their own css file and class as important 2017-02-20 16:54:37 -05:00