MCPcopy Create free account
hub / github.com/melonjs/melonJS / set

Method set

packages/melonjs/src/renderable/text/bitmaptext.js:159–168  ·  view source on GitHub ↗

* change the font settings * @param {string} textAlign - ("left", "center", "right") * @param {number} [scale] * @returns {BitmapText} this object for chaining

(textAlign, scale)

Source from the content-addressed store, hash-verified

157 * @returns {BitmapText} this object for chaining
158 */
159 set(textAlign, scale) {
160 this.textAlign = textAlign;
161 // updated scaled Size
162 if (scale) {
163 this.resize(scale);
164 }
165 this.isDirty = true;
166
167 return this;
168 }
169
170 /**
171 * change the text to be displayed

Callers 15

dragStartMethod · 0.45
dragMoveMethod · 0.45
getAbsolutePositionMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
toPolygonMethod · 0.45
clickedMethod · 0.45

Calls 1

resizeMethod · 0.95

Tested by

no test coverage detected