(o: string)
| 59 | }, 0); |
| 60 | } |
| 61 | public parseOrigin(o: string) { |
| 62 | if (o == null || o == "") { |
| 63 | o = "center center" |
| 64 | } |
| 65 | const p = o.split(' '); |
| 66 | const x = this.parseOrig(p[0]); |
| 67 | const y = this.parseOrig(p[1] || p[0]); |
| 68 | return `${x} ${y}`; |
| 69 | } |
| 70 | public parseOrig(part: string) { |
| 71 | part = part.trim(); |
| 72 | if (part.startsWith('random')) { |