MCPcopy Create free account
hub / github.com/microsoft/SandDance / fromObject

Method fromObject

docs/app/js/sanddance-app.js:69084–69092  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

69082 return this.check();
69083 }
69084 fromObject(object) {
69085 if ((0, _common.config).debug) {
69086 (0, _validators.checkNumber)(object.x);
69087 (0, _validators.checkNumber)(object.y);
69088 }
69089 this[0] = object.x;
69090 this[1] = object.y;
69091 return this.check();
69092 }
69093 toObject(object) {
69094 object.x = this[0];
69095 object.y = this[1];

Callers

nothing calls this directly

Calls 1

checkMethod · 0.45

Tested by

no test coverage detected