Bryan Housel
96afbbd785
Refactor vector math functions from geo.js to vector.js
2017-12-28 01:08:11 -05:00
Bryan Housel
5d9b051f84
Fix drag_node for touch targets and line snapping
2017-12-21 20:31:20 -05:00
Bryan Housel
f58349864c
Add support for nope targets, line sub-segment targeting
2017-12-20 13:52:16 -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
18c97d52c8
Extract viewport nudging code from several places to geoViewportEdge
2017-12-18 09:50:17 -05:00
Bryan Housel
aa68b21d7a
Add touch targets for line/area
2017-12-17 22:53:58 -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
75d2c45fd6
Convert lodah-es and d3 to named imports for behaviors
2017-09-24 21:43:54 -04:00
Bryan Housel
4ee5d7334b
Fix spacebar drawing and hover in Firefox - don't match active node
...
(closes #4016 )
2017-05-08 01:37:38 -04:00
Bryan Housel
cd09f9dfee
Prevent mouseup from turning into a click
...
Mouseup was turning into a click on whatever was the last thing clicked.
In this walkthrough, this would sometimes be the "Add Area" mode button,
which would re-enter the add area mode and throw away the user's drawing.
(I have no idea why.)
2017-05-07 22:44:42 -04:00
Bryan Housel
af31cf5eb5
Fix spacedraw drawing, make clicking less touchy
...
(closes #3986 )
Root cause was the vertex shadow strokes were too big, esp on endpoints.
For normal lines 16px stroke width centers on the line, but for vertices
it extends beyond the vertex radius, stealing clicks.
Also switched some "globals" to module variables in draw.js
2017-04-26 16:37:15 -04:00
Bryan Housel
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00
Tom MacWright
ed135ce9ef
Enable lib tests
2016-09-05 10:22:45 -04:00
Tom MacWright
2910eaddbb
Fix point adding
2016-09-04 10:52:57 -04:00
Tom MacWright
947a1d9c1a
Resolve lints
2016-09-03 19:08:03 -04:00
Tom MacWright
3af54610ca
Refactor customEvent system to use d3.customEvent
2016-09-03 17:56:56 -04:00
Bryan Housel
a86f34b4ef
Pacify eslint, get build and tests running again
2016-08-26 01:15:07 -04:00
Tom MacWright
cdb533fa84
Begin d3 v4 update
2016-08-21 15:19:27 -04:00
Kushan Joshi
39c82af158
Sort modules [eslint rule]
2016-07-06 12:12:08 +05:30
Kushan Joshi
0939983515
external modules for behavior
2016-06-22 12:34:43 +05:30
Kushan Joshi
14f0d95e94
modularize iD.behavior
2016-06-17 12:53:19 +05:30