修改demo
This commit is contained in:
parent
122c01a166
commit
b0e0f97022
|
@ -52,6 +52,7 @@ export function getScale(sourceWidth: number, sourceHeight: number, requestedWid
|
|||
|
||||
}
|
||||
}
|
||||
//四舍五入
|
||||
export function round(value: number): number {
|
||||
return Math.floor(value + 0.5);
|
||||
}
|
|
@ -54,7 +54,6 @@ export class Downsampler {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
getDownsampler(downsampType: DownsampleStrategy) {
|
||||
switch (downsampType) {
|
||||
case DownsampleStrategy.FIT_CENTER_MEMORY:
|
||||
|
|
Loading…
Reference in New Issue