MCPcopy Index your code
hub / github.com/devforth/painterro / setFontIsBold

Method setFontIsBold

js/text.js:81–93  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

79 }
80
81 setFontIsBold(state) {
82 this.isBold = state;
83 if (state) {
84 this.input.style['font-weight'] = 'bold';
85 } else {
86 this.input.style['font-weight'] = 'normal';
87 }
88 if (this.active) {
89 this.input.focus();
90 this.reLimit();
91 }
92 this.setStrokeParams();
93 }
94
95 setFontIsItalic(state) {
96 this.isItalic = state;

Callers 2

constructorMethod · 0.95
constructorMethod · 0.80

Calls 2

reLimitMethod · 0.95
setStrokeParamsMethod · 0.95

Tested by

no test coverage detected