mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 13:37:35 +00:00
fix: Add Types for Match Method
This commit is contained in:
parent
1184d4ab86
commit
bebdfcd941
2
types/paper/index.d.ts
vendored
2
types/paper/index.d.ts
vendored
@ -1382,7 +1382,7 @@ declare module 'paper' {
|
||||
* @param options.guides - hit-test items that have Item#guide set to true.
|
||||
* @param options.selected - only hit selected items.
|
||||
*/
|
||||
hitTest(point: Point, options?: { tolerance?: number; class?: string; fill?: boolean; stroke?: boolean; segments?: boolean; curves?: boolean; handles?: boolean; ends?: boolean; bounds?: boolean; center?: boolean; guides?: boolean; selected?: boolean; }): HitResult;
|
||||
hitTest(point: Point, options?: { tolerance?: number; class?: string; fill?: boolean; stroke?: boolean; segments?: boolean; curves?: boolean; handles?: boolean; ends?: boolean; bounds?: boolean; center?: boolean; guides?: boolean; selected?: boolean; match: (hit: HitResult) => boolean; }): HitResult;
|
||||
|
||||
/**
|
||||
* Checks whether the item matches the criteria described by the given object, by iterating over all of its properties and matching against their values through matches(name, compare).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user