-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/jankuss/shroom
- Loading branch information
Showing
42 changed files
with
1,624 additions
and
578 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,35 +0,0 @@ | ||
export interface Rect { | ||
x: number; | ||
y: number; | ||
width: number; | ||
height: number; | ||
zIndex: number; | ||
} | ||
|
||
export type HitEventType = "click" | "pointerdown" | "pointerup"; | ||
|
||
export interface HitEvent { | ||
mouseEvent: MouseEvent; | ||
tag?: string; | ||
target: HitDetectionElement; | ||
|
||
stopPropagation(): void; | ||
resumePropagation(): void; | ||
} | ||
|
||
export interface HitDetectionElement { | ||
group?: unknown; | ||
|
||
trigger(type: HitEventType, event: HitEvent): void; | ||
hits(x: number, y: number): boolean; | ||
getHitDetectionZIndex(): number; | ||
createDebugSprite?(): PIXI.Sprite | undefined; | ||
} | ||
|
||
export interface HitDetectionNode { | ||
remove(): void; | ||
} | ||
|
||
export interface IHitDetection { | ||
register(rectangle: HitDetectionElement): HitDetectionNode; | ||
} | ||
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
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
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.