MCPcopy Create free account
hub / github.com/Fiddle-Digital/string-scroll / parseOrigin

Method parseOrigin

src/StringParse.ts:61–69  ·  view source on GitHub ↗
(o: string)

Source from the content-addressed store, hash-verified

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')) {

Callers 1

constructorMethod · 0.80

Calls 1

parseOrigMethod · 0.95

Tested by

no test coverage detected