MCPcopy Index your code
hub / github.com/spritejs/spritejs / setResolution

Method setResolution

src/node/node.js:473–481  ·  view source on GitHub ↗
({width, height})

Source from the content-addressed store, hash-verified

471 }
472
473 setResolution({width, height}) {
474 const {width: w, height: h} = this[_resolution];
475 if(w !== width || h !== height) {
476 this[_resolution] = {width, height};
477 // this.updateContours();
478 this.forceUpdate();
479 this.dispatchEvent({type: 'resolutionchange', detail: {width, height}});
480 }
481 }
482
483 show() {
484 if(this.attributes.display === 'none') {

Callers 9

connectMethod · 0.95
index.worker.jsFile · 0.45
node.jsFile · 0.45
LayerFunction · 0.45
group.jsFile · 0.45
cloud.jsFile · 0.45
SceneFunction · 0.45
scene.jsFile · 0.45
index.worker.jsFile · 0.45

Calls 2

forceUpdateMethod · 0.95
dispatchEventMethod · 0.95

Tested by

no test coverage detected