MCPcopy Index your code
hub / github.com/microsoft/SandDance / resize

Function resize

docs/app/js/sanddance-app.js:123462–123471  ·  view source on GitHub ↗

* Resize the display. * @param {number} width - The new coordinate width of the display, in pixels. * @param {number} height - The new coordinate height of the display, in pixels. * @param {Array } origin - The new origin of the display, in pixels. * The coordinate system will b

(width, height, origin, scaleFactor)

Source from the content-addressed store, hash-verified

123460 * the width and height to determine the final pixel size.
123461 * @return {Renderer} - This renderer instance;
123462 */ resize (width, height, origin, scaleFactor) {
123463 this._width = width;
123464 this._height = height;
123465 this._origin = origin || [
123466 0,
123467 0
123468 ];
123469 this._scale = scaleFactor || 1;
123470 return this;
123471 },
123472 /**
123473 * Report a dirty item whose bounds should be redrawn.
123474 * This base class method does nothing. Subclasses that perform

Callers

nothing calls this directly

Calls 6

setAttributesFunction · 0.70
arrayFunction · 0.70
lookupSignalFunction · 0.70
scaleMethod · 0.45
translateMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected