MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / apply

Method apply

static/widgets/fontscale.ts:117–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 }
116
117 apply() {
118 if (this.isFontOfStr) {
119 this.domRoot
120 .find(this.fontSelectorOrEditor as JQuery)
121 .css('font-size', this.scale + (this.usePxUnits ? 'px' : 'pt'));
122 } else {
123 (this.fontSelectorOrEditor as IEditor).updateOptions({
124 fontSize: this.scale,
125 });
126 }
127 }
128
129 addState(state: any) {
130 state.fontScale = this.scale;

Callers 8

constructorMethod · 0.95
applyScaleMethod · 0.95
setTargetMethod · 0.95
setupButtonsFunction · 0.80
undeferMethod · 0.80
registerEditorActionsMethod · 0.80
registerEditorActionsMethod · 0.80
readValueMethod · 0.80

Calls 1

findMethod · 0.80

Tested by

no test coverage detected