external modules for core

This commit is contained in:
Kushan Joshi
2016-06-18 02:08:14 +05:30
parent 74028b8f16
commit 12df331d51
10 changed files with 1691 additions and 39 deletions
+3 -1
View File
@@ -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) {