mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
@@ -18,7 +18,7 @@ body {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
#id-container {
|
||||
.id-container {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
|
||||
@@ -23,7 +23,7 @@ iD.behavior.Lasso = function(context) {
|
||||
|
||||
function mousemove() {
|
||||
if (!lasso) {
|
||||
lasso = iD.ui.Lasso().a(mouse);
|
||||
lasso = iD.ui.Lasso(context).a(mouse);
|
||||
context.surface().call(lasso);
|
||||
}
|
||||
|
||||
|
||||
@@ -126,6 +126,7 @@ window.iD = function () {
|
||||
context.container = function(_) {
|
||||
if (!arguments.length) return container;
|
||||
container = _;
|
||||
container.classed('id-container', true);
|
||||
return context;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ iD.ui.Lasso = function() {
|
||||
|
||||
function lasso(selection) {
|
||||
|
||||
d3.select('#id-container').classed('lasso', true);
|
||||
context.container().classed('lasso', true);
|
||||
|
||||
group = selection.append('g')
|
||||
.attr('class', 'lasso hide');
|
||||
@@ -55,7 +55,7 @@ iD.ui.Lasso = function() {
|
||||
d3.select(this).remove();
|
||||
}));
|
||||
}
|
||||
d3.select('#id-container').classed('lasso', false);
|
||||
context.container().classed('lasso', false);
|
||||
};
|
||||
|
||||
return lasso;
|
||||
|
||||
Reference in New Issue
Block a user