Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(animations): ensure animations work with web-workers #12656

Merged
merged 1 commit into from
Nov 10, 2016

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Nov 2, 2016

No description provided.

@vicb
Copy link
Contributor

vicb commented Nov 2, 2016

@matsko please add labels to your PRs

matsko added a commit to matsko/angular that referenced this pull request Nov 3, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 3, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 3, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 3, 2016
@matsko matsko added the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 3, 2016
@matsko matsko assigned vicb and tbosch Nov 3, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 3, 2016
],
this._animate.bind(this));

//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe move these into a method so that the grouping is clear, i.e. then you don't need this comment.

]);

const player = new _AnimationWorkerRendererPlayer(this._rootRenderer, renderElement);
this._rootRenderer.renderStore.store(player, playerId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are you removing the animation players from the renderStore again?

renderer: Renderer, element: any, startingStyles: any, keyframes: any[], duration: number,
delay: number, easing: string, playerId: any) {
var player = renderer.animate(element, startingStyles, keyframes, duration, delay, easing);
this._renderStore.store(player, playerId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are you removing the animation player from the renderStore again (ui side)?

export class WebWorkerRenderNode { events: NamedEventEmitter = new NamedEventEmitter(); }
export class WebWorkerRenderNode {
events = new NamedEventEmitter();
animationPlayers = new AnimationPlayerEmitter();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename property to animationPlayerEvents

}


@Component({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you create 1 e2e test as well that does a simple animation with webworkers?

@tbosch tbosch added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 3, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 3, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 4, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 4, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 5, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 5, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 7, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 7, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 7, 2016
matsko added a commit to matsko/angular that referenced this pull request Nov 8, 2016
@matsko matsko force-pushed the animation_workers branch 3 times, most recently from 5326770 to 6865fa1 Compare November 9, 2016 23:20
@matsko matsko changed the title feat(animations): provide support for web-workers fix(animations): ensure animations work with web-workers Nov 9, 2016
@tbosch tbosch added pr_state: LGTM and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Nov 9, 2016
@matsko matsko added the action: merge The PR is ready for merge by the caretaker label Nov 10, 2016
@vicb vicb merged commit 19e869e into angular:master Nov 10, 2016
@matsko matsko deleted the animation_workers branch November 11, 2016 18:18
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: animations cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants