mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 17:14:04 +02:00
Add Entity#geometry, use in inspector
Fixes the icon for areas, but breaks it for vertices. Needs a big-vertex sprite.
This commit is contained in:
@@ -36,4 +36,14 @@ describe('iD.Node', function () {
|
||||
expect(iD.Node({loc: [0, 0]}).intersects([[100, 90], [180, -90]])).to.equal(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("#geometry", function () {
|
||||
it("returns 'vertex' if the node is not a point", function () {
|
||||
expect(iD.Node().geometry()).to.equal('vertex');
|
||||
});
|
||||
|
||||
it("returns 'point' if the node is a point", function () {
|
||||
expect(iD.Node({_poi: true}).geometry()).to.equal('point');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user