mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-09 20:55:58 +00:00
12 lines
370 B
JavaScript
12 lines
370 B
JavaScript
iD.svg.Surface = function() {
|
|
return function drawSurface(selection) {
|
|
selection.append('defs');
|
|
|
|
var layers = selection.selectAll('.layer')
|
|
.data(['fill', 'shadow', 'casing', 'stroke', 'text', 'hit', 'halo', 'label']);
|
|
|
|
layers.enter().append('g')
|
|
.attr('class', function(d) { return 'layer layer-' + d; });
|
|
};
|
|
};
|