mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 01:47:49 +02:00
Disable circularize and orthogonalize operations when way is <80% contained in the viewport
This commit is contained in:
@@ -51,6 +51,12 @@ describe("iD.geo.Extent", function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe("#area", function () {
|
||||
it("returns the area", function () {
|
||||
expect(iD.geo.Extent([0, 0], [5, 10]).area()).to.eql(50);
|
||||
});
|
||||
});
|
||||
|
||||
describe("#padByMeters", function () {
|
||||
it("does not change centerpoint of an extent", function () {
|
||||
var min = [0, 0], max = [5, 10];
|
||||
|
||||
Reference in New Issue
Block a user