MCPcopy Index your code
hub / github.com/simstudioai/sim / setZoom

Method setZoom

apps/sim/lib/pptx-renderer/core/viewer.ts:304–310  ·  view source on GitHub ↗
(percent: number)

Source from the content-addressed store, hash-verified

302 }
303
304 async setZoom(percent: number): Promise<void> {
305 const normalized = this.normalizeZoomPercent(percent)
306 const nextFactor = normalized / 100
307 if (nextFactor === this.zoomFactor) return
308 this.zoomFactor = nextFactor
309 await this.queueRender()
310 }
311
312 async setFitMode(mode: FitMode): Promise<void> {
313 if (this._fitMode === mode) return

Callers 2

renderFunction · 0.80

Calls 2

normalizeZoomPercentMethod · 0.95
queueRenderMethod · 0.95

Tested by

no test coverage detected