-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(map): add advanced shadows to system maps
also organized system maps utils
- Loading branch information
1 parent
f91ab82
commit a052aa4
Showing
15 changed files
with
818 additions
and
493 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// only the types used are implemented | ||
// see https://skia.org/docs/user/modules/pathkit/#api for more | ||
declare module 'pathkit-wasm/bin/pathkit' { | ||
function PathKitInit(): Promise<PathKit>; | ||
|
||
export interface PathKit { | ||
NewPath(): SkPath; | ||
FromSVGString(str: string): SkPath; | ||
MakeFromOp(path1: SkPath, path2: SkPath, op: PathOp): SkPath; | ||
PathOp: { | ||
UNION: PathOp; | ||
DIFFERENCE: PathOp; | ||
INTERSECT: PathOp; | ||
XOR: PathOp; | ||
REVERSE_DIFFERENCE: PathOp; | ||
}; | ||
} | ||
|
||
enum PathOp { | ||
UNION, | ||
DIFFERENCE, | ||
INTERSECT, | ||
XOR, | ||
REVERSE_DIFFERENCE, | ||
} | ||
|
||
export interface SkPath { | ||
arc( | ||
x: number, | ||
y: number, | ||
radius: number, | ||
startAngle: number, | ||
endAngle: number, | ||
ccw = false, | ||
): SkPath; | ||
op(path: SkPath, op: PathOp): SkPath; | ||
toSVGString(): string; | ||
delete(): void; | ||
equals(path: SkPath): boolean; | ||
} | ||
|
||
export default PathKitInit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.