Commit Graph

196 Commits

Author SHA1 Message Date
John Firebaugh bd2c7ba756 Render bridge casing for bridge=viaduct, etc.
Fixes #1500.
2013-05-20 16:49:55 -07:00
John Firebaugh 67d95595ba Points always need full re-render (#569) 2013-05-20 12:05:31 -07:00
John Firebaugh 6c849baad6 Revert "Cache centroid"
Causes misplaced labels, suspect due to rounding artifacts.

This reverts commit 5344bdea26.
2013-05-18 09:20:58 -07:00
John Firebaugh 5344bdea26 Cache centroid 2013-05-17 15:31:27 -07:00
John Firebaugh 1cfeba3da4 Don't draw offscreen vertices (fixes #1494) 2013-05-16 15:28:50 -07:00
John Firebaugh fdc5824c5a Simplify 2013-05-16 15:28:50 -07:00
John Firebaugh 6431fca8a3 Fix area caching (fixes #1485) 2013-05-14 16:52:02 -07:00
John Firebaugh 51cb9af907 Cache area 2013-05-13 22:46:29 -07:00
John Firebaugh 544c493eba Cache isIntersection 2013-05-13 22:40:43 -07:00
John Firebaugh afc8f109e8 Render areas in one pass 2013-05-13 22:28:24 -07:00
John Firebaugh 29f4006526 Set pattern only on enter 2013-05-13 21:50:32 -07:00
John Firebaugh 878a4c0074 Don't need member tags for area strokes
Member tags are for multipolygon members, and multipolygon
member strokes are rendered by iD.svg.Lines.
2013-05-13 21:45:26 -07:00
John Firebaugh 9495f8f1c0 Optimize area rendering
Use iD.svg.Path for caching, and teach iD.svg.Path to
round coordinates.
2013-05-13 17:48:18 -07:00
John Firebaugh fd1573fa08 Abandon iD.svg.MemberClasses
Substantial performance hit for something that's barely used.
2013-05-13 12:46:01 -07:00
John Firebaugh 70e5411114 Optimize vertex rendering
* Cache icon
* Append rather than insert
* Do fewer things on update
* Don't create a fill unless needed
* Don't apply tag and member classes (never used)
* Drop down to raw setAttribute (d3 is slow :trollface:)
2013-05-13 09:37:48 -07:00
John Firebaugh 6060e886cb Reduce calls to iD.svg.TagClasses
For fills and shadows, style changes can happen only when
a new version of the feature is produced. If we include a
version number in the key, we need only call TagClasses on
the enter selection.

We cannot apply the same optimization for strokes, since
stroke style can depend on the tags of parent relations
as well.
2013-05-13 09:37:48 -07:00
John Firebaugh 63321b7bec Clean up and simplify iD.svg.Areas 2013-05-13 09:37:00 -07:00
John Firebaugh 1823f2619f Clean up and simplify iD.svg.Lines 2013-05-13 09:37:00 -07:00
John Firebaugh a53d5cbb44 Optimize label hover
Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.
2013-05-12 11:47:48 -07:00
John Firebaugh 578224bd63 Optimize hover behavior
Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.
2013-05-12 09:40:34 -07:00
John Firebaugh 2c631c6a0f Remove unused 2013-05-12 09:40:34 -07:00
John Firebaugh c829cbb463 Cleanup 2013-05-11 13:13:06 -07:00
John Firebaugh 1641f38632 Use context.mouse() 2013-05-09 21:55:05 -07:00
John Firebaugh d247962324 Handle incomplete relations in simpleMultipolygonOuterMember 2013-05-01 10:28:40 -07:00
Ansis Brammanis 42721f6f44 don't remove oneways during partial redraws
fixes #1394
2013-04-29 10:54:04 -04:00
John Firebaugh 14b79d068e Merge branch 'perfect-resampling'
Conflicts:
	js/id/renderer/map.js
2013-04-26 17:35:04 -07:00
John Firebaugh 6941d1914b Perfect oneway markers 2013-04-26 17:33:01 -07:00
John Firebaugh 86988a09a3 Fix vertex rendering 2013-04-25 15:43:16 -07:00
Ansis Brammanis 4eccd7015f corner destroying resampling for oneway markers 2013-04-25 18:41:49 -04:00
John Firebaugh 7d66e03c0b Redraw hovered vertices more efficiently (#1377) 2013-04-25 13:53:31 -07:00
John Firebaugh 275696caaa Fix icons for lines that use maki (fixes #1371)
Generate a single feature-icons.json and feature-icons.css.
In the JSON, features with a line icon are indicated by the
presence of a `line` property. PresetIcon looks for this to
determine whether or not to add the `preset-icon-line` class.
New line icons may be added by editing line-icons.json.
2013-04-24 12:32:36 -07:00
John Firebaugh c50c3121d8 Make Graph#entity strict
Use Graph#hasEntity for the previous behavior.
2013-04-24 09:27:37 -07:00
John Firebaugh 78aee5b6aa Fix tests 2013-04-23 20:09:36 -07:00
John Firebaugh 265c059407 Always display intersections 2013-04-23 17:31:32 -07:00
John Firebaugh d0e53a7070 Fix child calculation 2013-04-23 16:52:33 -07:00
John Firebaugh a2f86154ce Also show vertices on hover in draw modes 2013-04-23 16:52:32 -07:00
John Firebaugh 66551ba903 Show vertices only for selected way (#1022) 2013-04-23 16:52:02 -07:00
John Firebaugh d8751fad8d Polish spriting code
* Smaller make-sprite.json.
* Convert operation sprite data to JSON, eliminating
  fragile stylesheet grepping.
2013-04-23 09:45:37 -07:00
Ansis Brammanis 6096f9b230 fix #1362 2013-04-22 13:17:06 -04:00
John Firebaugh 20150cb9d4 Avoid retaining a graph reference
The supersurface event bindings retained a reference to the initial
graph, preventing it being GC'd after a save operation.
2013-04-20 15:18:14 -07:00
Ansis Brammanis d21d52d905 add maki as dependency, new sprite script
issue #1319
2013-04-19 14:51:48 -04:00
John Firebaugh 90383a4591 Look through all stylesheets for sprites
Needed for concantenated iD.css.
2013-04-16 17:57:58 -07:00
John Firebaugh 77ce20c8c1 Add configurable image path 2013-04-16 17:20:21 -07:00
Saman Bemel-Benrud 4158b1c48e use svg for radial menu. 2013-04-09 12:34:57 -04:00
Ian B c3c2cfd0a2 Add aeroway styles (#1102) 2013-03-30 13:28:14 +01:00
Ansis Brammanis df465f73f9 more careful about not drawing midpoints
in the case where all vertices were out of bounds it would
assume there were many hidden vertices
2013-03-28 19:01:51 -04:00
Ansis Brammanis e9244159dc fix midpoint redrawing
Midpoints weren't being redrawn when the way was deleted
but both edge nodes still existed in other ways.
2013-03-28 18:30:10 -04:00
Ansis Brammanis 09642b1ea7 don't try to label if centroid is undefined
fixes #1180
2013-03-28 15:26:38 -04:00
Tom MacWright 591abfb52f Order points by y coordinate. Fixes #1145 2013-03-26 13:38:17 -04:00
Tom MacWright 93104c268f Fix jshint errors 2013-03-26 12:20:51 -04:00