vyaz-monorepo / core/src / findScale
Function: findScale()
findScale(
doc,layoutFn,config,options?):AutoFitResult
Defined in: core/src/layout/AutoFitEngine.ts:62
Find the optimal scale factor for a document.
Parameters
doc
— source document
layoutFn
(scaledDoc) => object
— layout(doc) →
config
— autofit maxWidth/maxHeight
maxHeight
number
maxWidth
number
options?
— search precision
