mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-09 19:37:39 +02:00
be0126aba6
Need to have a single defs for the entire document but multiple Surfaces.
10 lines
326 B
JavaScript
10 lines
326 B
JavaScript
iD.svg.Surface = function() {
|
|
return function (selection) {
|
|
var layers = selection.selectAll('.layer')
|
|
.data(['fill', 'shadow', 'casing', 'stroke', 'oneway', 'hit', 'halo', 'label']);
|
|
|
|
layers.enter().append('g')
|
|
.attr('class', function(d) { return 'layer layer-' + d; });
|
|
};
|
|
};
|