summaryrefslogtreecommitdiffstats
path: root/src/svg.js
blob: 1a4095f3733f0b09ff82a470a1992466d8fdac99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
this.SVG = {
  // define default namespaces
  ns:    'http://www.w3.org/2000/svg',
  xlink: 'http://www.w3.org/1999/xlink',
  
  // initialize defs id sequence
  did:    0,
  
  // method for element creation
  create: function(e) {
    return document.createElementNS(this.ns, e);
  },
  
  // method for extending objects
  extend: function(o, m) {
    for (var k in m)
      o.prototype[k] = m[k];
  }
  
};