diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-02-24 20:07:01 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-02-24 20:07:01 +0100 |
commit | 337145b839876077c174dc2c089a221358ba9192 (patch) | |
tree | 5d4e1664efcc6f81bf2110384e797923245a9194 /src/symbol.js | |
parent | 0a0bb10bc3c8edf6c42b61bd03084925d7f63b7b (diff) | |
download | svg.js-337145b839876077c174dc2c089a221358ba9192.tar.gz svg.js-337145b839876077c174dc2c089a221358ba9192.zip |
Added SVG.Symbol so SVG.adopt can pick up symbols correctly
Diffstat (limited to 'src/symbol.js')
-rw-r--r-- | src/symbol.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/symbol.js b/src/symbol.js new file mode 100644 index 0000000..e7baf53 --- /dev/null +++ b/src/symbol.js @@ -0,0 +1,14 @@ +SVG.Symbol = SVG.invent({ + // Initialize node + create: 'symbol' + + // Inherit from +, inherit: SVG.Container + +, construct: { + // create symbol + symbol: function() { + return this.put(new SVG.Symbol) + } + } +})
\ No newline at end of file |