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 matsko force-pushed the animation_workers branch from 725a0e4 to 1a27d6e Compare November 3, 2016 16:26
matsko added a commit to matsko/angular that referenced this pull request Nov 3, 2016
@matsko matsko force-pushed the animation_workers branch from 1a27d6e to 57fd9bc Compare November 3, 2016 16:31
matsko added a commit to matsko/angular that referenced this pull request Nov 3, 2016
@matsko matsko force-pushed the animation_workers branch from 57fd9bc to ab0ea10 Compare November 3, 2016 17:45
matsko added a commit to matsko/angular that referenced this pull request Nov 3, 2016
@matsko matsko force-pushed the animation_workers branch from ab0ea10 to 2e4b595 Compare November 3, 2016 17:51
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 matsko force-pushed the animation_workers branch from 2e4b595 to 5d5697a Compare November 3, 2016 17:59
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 matsko force-pushed the animation_workers branch from 5d5697a to c23a32c Compare November 4, 2016 21:43
matsko added a commit to matsko/angular that referenced this pull request Nov 4, 2016
@matsko matsko force-pushed the animation_workers branch from c23a32c to ada7407 Compare November 4, 2016 21:46
matsko added a commit to matsko/angular that referenced this pull request Nov 4, 2016
@matsko matsko force-pushed the animation_workers branch from ada7407 to ef1779b Compare November 5, 2016 00:14
matsko added a commit to matsko/angular that referenced this pull request Nov 5, 2016
@matsko matsko force-pushed the animation_workers branch from ef1779b to 5029246 Compare November 5, 2016 00:52
matsko added a commit to matsko/angular that referenced this pull request Nov 5, 2016
@matsko matsko force-pushed the animation_workers branch from 5029246 to 45cad2c Compare November 7, 2016 22:17
matsko added a commit to matsko/angular that referenced this pull request Nov 7, 2016
@matsko matsko force-pushed the animation_workers branch from 45cad2c to 7f19ede Compare November 7, 2016 22:28
matsko added a commit to matsko/angular that referenced this pull request Nov 7, 2016
@matsko matsko force-pushed the animation_workers branch from 7f19ede to 9c0438b Compare November 7, 2016 22:30
matsko added a commit to matsko/angular that referenced this pull request Nov 7, 2016
@matsko matsko force-pushed the animation_workers branch from 9c0438b to 4ccadff Compare November 8, 2016 17:45
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
@matsko matsko force-pushed the animation_workers branch from 6865fa1 to bf6fa94 Compare November 9, 2016 23:21
@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