forked from gagan-bansal/geojson2svg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created global variable for browser through browserify
- Loading branch information
gagan-bansal
committed
Apr 13, 2014
1 parent
0cf0ad0
commit d1d9165
Showing
5 changed files
with
26 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
var extend = require('deep-extend'); | ||
var g2svg = require('./instance.js'); | ||
var geojson2svg = function(viewportSize,options) { | ||
if(!viewportSize) return; | ||
return new g2svg(viewportSize,options); | ||
}; | ||
|
||
if(typeof module !== 'undefined' && module.exports) { | ||
module.exports = geojson2svg; | ||
} | ||
if(window !== 'undefined') { | ||
window.geojson2svg = geojson2svg; | ||
} | ||
module.exports = geojson2svg; |