MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / render

Method render

plugins/uiSystem.js:1048–1055  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1046 this.textFitScale = 1;
1047 }
1048 render()
1049 {
1050 super.render();
1051
1052 // render the text
1053 const textSize = this.getTextSize();
1054 uiSystem.drawText(this.text, this.pos, textSize, this.textColor, this.textLineWidth, this.textLineColor, this.align, this.font, this.fontStyle, true, this.textShadow, this.shadowColor, this.shadowBlur, this.shadowOffset);
1055 }
1056}
1057
1058///////////////////////////////////////////////////////////////////////////////

Callers 10

smoke.test.mjsFile · 0.45
renderObjectMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
tocbot.min.jsFile · 0.45
zFunction · 0.45
tocbot.jsFile · 0.45

Calls 2

getTextSizeMethod · 0.80
drawTextMethod · 0.45

Tested by

no test coverage detected