Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
fdecampredon committed Dec 19, 2024
1 parent 2bc324b commit 00fe164
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/skia/src/dom/nodes/paint/ImageFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class DisplacementMapImageFilterNode extends ImageFilterDeclaration<Displ
if (!shader) {
throw new Error("DisplacementMap expects a shader as child");
}
const map = this.Skia.ImageFilter.MakeShader(shader, null);
const map = this.Skia.ImageFilter.MakeShader(shader);
const imgf = this.Skia.ImageFilter.MakeDisplacementMap(
ColorChannel[enumKey(channelX)],
ColorChannel[enumKey(channelY)],
Expand Down
26 changes: 13 additions & 13 deletions packages/skia/src/skia/web/JsiSkImageFilterFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ import type { CanvasKit, Image, ImageFilter } from "canvaskit-wasm";

import type {
SkMatrix,
type ColorChannel,
type ImageFilterFactory,
type SkColor,
type SkColorFilter,
type SkImageFilter,
type BlendMode,
type SkRect,
type SkRuntimeShaderBuilder,
type SkShader,
type TileMode,
type SkImage,
type FilterMode,
type MipmapMode,
ColorChannel,
ImageFilterFactory,
SkColor,
SkColorFilter,
SkImageFilter,
BlendMode,
SkRect,
SkRuntimeShaderBuilder,
SkShader,
TileMode,
SkImage,
FilterMode,
MipmapMode,
} from "../types";

import { Host, NotImplementedOnRNWeb, getEnum } from "./Host";
Expand Down

0 comments on commit 00fe164

Please sign in to comment.