aboutsummaryrefslogtreecommitdiffstats
path: root/src/umd.js
blob: 3ef3ab9fbbc6c233048803b2feb35c90b49729e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    define(function(){
      return factory(root, root.document)
    })
  } else if (typeof exports === 'object') {
    module.exports = root.document ? factory(root, root.document) : function(w){ return factory(w, w.document) }
  } else {
    root.SVG = factory(root, root.document)
  }
}(typeof window !== "undefined" ? window : this, function(window, document) {

<%= contents %>

return SVG

}));