Skip to content

Commit

Permalink
Try to improve main export and global export
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornharrtell committed Feb 7, 2016
1 parent d2366d0 commit 83f4136
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
3 changes: 3 additions & 0 deletions src/global.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import jsts from './'

global.jsts = jsts
42 changes: 21 additions & 21 deletions src/lib.js → src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ import patch from './org/locationtech/jts/monkey'

(function () {
patch()
})()

global.jsts = {
geom: {
Coordinate,
GeometryFactory,
Geometry,
Point,
LineString,
Polygon,
GeometryCollection,
MultiPoint,
MultiLineString,
MultiPolygon
},
io: {
GeoJSONReader,
GeoJSONWriter,
WKTReader,
WKTWriter,
olParser
}
export default {
geom: {
Coordinate,
GeometryFactory,
Geometry,
Point,
LineString,
Polygon,
GeometryCollection,
MultiPoint,
MultiLineString,
MultiPolygon
},
io: {
GeoJSONReader,
GeoJSONWriter,
WKTReader,
WKTWriter,
olParser
}
})()
}

0 comments on commit 83f4136

Please sign in to comment.