mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
Set pattern only on enter
This commit is contained in:
@@ -63,17 +63,17 @@ iD.svg.Areas = function(projection) {
|
||||
.filter(filter)
|
||||
.data(areas, iD.Entity.key);
|
||||
|
||||
paths.enter()
|
||||
var enter = paths.enter()
|
||||
.append('path')
|
||||
.attr('class', function(d) { return d.type + ' area ' + klass + ' ' + d.id; })
|
||||
.call(iD.svg.TagClasses());
|
||||
|
||||
if (klass === 'fill') enter.call(setPattern);
|
||||
|
||||
paths
|
||||
.order()
|
||||
.attr('d', path);
|
||||
|
||||
if (klass === 'fill') paths.call(setPattern);
|
||||
|
||||
paths.exit()
|
||||
.remove();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user