MCPcopy Create free account
hub / github.com/webodf/ViewerJS / setScale

Function setScale

viewer.js:166–178  ·  view source on GitHub ↗
(val, resetAutoSettings)

Source from the content-addressed store, hash-verified

164 }
165
166 function setScale(val, resetAutoSettings) {
167 if (val === self.getZoomLevel()) {
168 return;
169 }
170
171 self.setZoomLevel(val);
172
173 var event = document.createEvent('UIEvents');
174 event.initUIEvent('scalechange', false, false, window, 0);
175 event.scale = val;
176 event.resetAutoSettings = resetAutoSettings;
177 window.dispatchEvent(event);
178 }
179
180 function onScroll() {
181 var pageNumber;

Callers 1

parseScaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected