Skip to content

Commit

Permalink
#4 fix Action.repeatForever() looping on nested chained actions
Browse files Browse the repository at this point in the history
  • Loading branch information
reececomo committed Apr 23, 2024
1 parent e6144e1 commit ba10f23
Show file tree
Hide file tree
Showing 6 changed files with 282 additions and 58 deletions.
9 changes: 7 additions & 2 deletions dist/Action.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,20 @@ export declare abstract class Action {
* Anything you return here will be available as `ticker.data`.
*/
protected _setupTicker(target: TargetNode, ticker: ActionTicker): any;
/**
* Do resetting ticker stuff here.
*
* Anything you return here will be available as `ticker.data`.
*/
protected _onDidReset(ticker: ActionTicker): any;
}
declare class ActionTicker {
key: string | undefined;
target: TargetNode;
action: Action;
protected static _running: ActionTicker[];
static runAction(key: string | undefined, target: TargetNode, action: Action): void;
reset(): void;
static removeAction(actionTicker: ActionTicker): ActionTicker;
static hasTargetActions(target: TargetNode): boolean;
static getTargetActionTickerForKey(target: TargetNode, key: string): ActionTicker | undefined;
Expand Down Expand Up @@ -477,8 +484,6 @@ declare class ActionTicker {
*/
duration: number;
constructor(key: string | undefined, target: TargetNode, action: Action);
/** Whether action is in progress (or has not yet started). */
get isPlaying(): boolean;
/** The relative time elapsed between 0 and 1. */
get timeDistance(): number;
/**
Expand Down
105 changes: 81 additions & 24 deletions dist/Action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Action.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixijs-actions",
"version": "1.1.0",
"version": "1.1.1",
"author": "Reece Como <[email protected]>",
"authors": [
"Reece Como <[email protected]>",
Expand Down
Loading

0 comments on commit ba10f23

Please sign in to comment.