@univerjs/engine-render v0.4.2 • Docs
Function: fixLineWidthByScale()
function fixLineWidthByScale(num, scale): number
When drawing lines, it is necessary to align their precision. performance testing var time = performance.now(); for(let i=0;i<100000000;i++){ fixLineWidthByScale(i, 0.666); }; console.log(performance.now()-time);
Parameters
Parameter | Type |
---|---|
num | number |
scale | number |
Returns
number
Defined in
submodules/univer/packages/engine-render/src/basics/tools.ts:244 (opens in a new tab)