updateScale 更新缩放率
updateScale
类型: MethodDeclaration
所属类: Printer
定义位置: printer.ts
描述
更新缩放率
返回值
类型: void
源代码
位置: 第 1445 行
public static updateScale(): void {
const HD_SCALE = 4
const MAX_SCALE = 4
let scale = UI.scale
if (this.highDefinition) {
scale = Math.max(scale, HD_SCALE)
}
this.scale = Math.min(scale, MAX_SCALE)
this.updateAllPrinters()
}
文档生成时间:2025/7/7 12:07:06