"native" to "builtin" (#788)

This commit is contained in:
Jake Archibald
2020-07-30 14:43:46 +01:00
committed by GitHub
parent 1a26057452
commit ed451e4dfa
6 changed files with 15 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
import { nativeResize, NativeResizeMethod, drawableToImageData } from '../../lib/util';
import { builtinResize, BuiltinResizeMethod, drawableToImageData } from '../../lib/util';
import { BrowserResizeOptions, VectorResizeOptions } from './processor-meta';
import { getContainOffsets } from './util';
@@ -12,9 +12,9 @@ export function browserResize(data: ImageData, opts: BrowserResizeOptions): Imag
({ sx, sy, sw, sh } = getContainOffsets(sw, sh, opts.width, opts.height));
}
return nativeResize(
return builtinResize(
data, sx, sy, sw, sh, opts.width, opts.height,
opts.method.slice('browser-'.length) as NativeResizeMethod,
opts.method.slice('browser-'.length) as BuiltinResizeMethod,
);
}