MCPcopy Create free account
hub / github.com/devforth/painterro / setFontSize

Method setFontSize

js/text.js:108–115  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

106 }
107
108 setFontSize(size) {
109 this.fontSize = size;
110 this.input.style['font-size'] = `${size}px`;
111 this.setStrokeParams();
112 if (this.active) {
113 this.reLimit();
114 }
115 }
116
117 setStrokeParams() {
118 if (this.strokeOn) {

Callers 2

constructorMethod · 0.95
actionMethod · 0.80

Calls 2

setStrokeParamsMethod · 0.95
reLimitMethod · 0.95

Tested by

no test coverage detected