summaryrefslogtreecommitdiffstats
path: root/src/SVGArray.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/SVGArray.js')
-rw-r--r--src/SVGArray.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/SVGArray.js b/src/SVGArray.js
index 247f0b2..351e166 100644
--- a/src/SVGArray.js
+++ b/src/SVGArray.js
@@ -10,15 +10,11 @@ export default SVGArray
extend(SVGArray, {
init (...args) {
- // this.splice(0, this.length)
this.length = 0
this.push(...this.parse(...args))
},
toArray () {
- // const ret = []
- // ret.push(...this)
- // return ret
return Array.prototype.concat.apply([], this)
},
@@ -31,13 +27,10 @@ extend(SVGArray, {
const ret = []
ret.push(...this)
return ret
- // return this.toArray()
},
// Parse whitespace separated string
parse (array = []) {
- // array = array.valueOf()
-
// If already is an array, no need to parse it
if (array instanceof Array) return array
@@ -52,46 +45,3 @@ extend(SVGArray, {
return new Set(this)
}
})
-
-// export default class SVGArray extends BaseArray {
-// constructor (...args) {
-// super()
-// this.init(...args)
-// }
-//
-// init (array, fallback = []) {
-// //this.splice(0, this.length)
-// this.length = 0
-// this.push(...this.parse(array || fallback))
-// }
-//
-// toArray () {
-// return [].concat(this)
-// }
-//
-// toString () {
-// return this.join(' ')
-// }
-//
-// valueOf () {
-// return this.toArray()
-// }
-//
-// // Parse whitespace separated string
-// parse (array) {
-// array = array.valueOf()
-//
-// // if already is an array, no need to parse it
-// if (Array.isArray(array)) return array
-//
-// return array.trim().split(delimiter).map(parseFloat)
-// }
-//
-// clone () {
-// return new this.constructor(this)
-// }
-//
-// toSet () {
-// return new Set(this)
-// }
-// }