mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
external modules for core
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// iD.Node = iD.Entity.node;
|
||||
import { Entity } from './entity';
|
||||
import { Extent } from '../geo/index';
|
||||
|
||||
export function Node() {
|
||||
if (!(this instanceof Node)) {
|
||||
return (new Node()).initialize(arguments);
|
||||
@@ -16,7 +18,7 @@ _.extend(Node.prototype, {
|
||||
type: 'node',
|
||||
|
||||
extent: function() {
|
||||
return new iD.geo.Extent(this.loc);
|
||||
return new Extent(this.loc);
|
||||
},
|
||||
|
||||
geometry: function(graph) {
|
||||
|
||||
Reference in New Issue
Block a user