Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Rework easing transition code - #1176

Closed
jfirebaugh wants to merge 4 commits into
chronofrom
1155-update-as-needed
Closed

jfirebaugh wants to merge 4 commits into
chronofrom
1155-update-as-needed

Conversation

@jfirebaugh

Copy link
Copy Markdown
Contributor

Note: PR targets the chrono branch so that the diff is better, but this will merge to master.

This brings the easing transition code a bit closer to how easings work in gl-js. Instead of having an array of individual transitions for scale, rotate, and pan, there is a single transition function that does all the required calculations. This permits us to:

@kkaefer can you review please?

@incanus

incanus commented Apr 2, 2015

Copy link
Copy Markdown
Contributor

Nice, this sounds great!

@incanus incanus added this to the iOS Beta 1 milestone Apr 2, 2015
@incanus incanus added GL JS parity For feature parity with Mapbox GL JS performance Speed, stability, CPU usage, memory usage, or power usage refactor labels Apr 2, 2015
kkaefer and others added 4 commits April 2, 2015 12:54
Make std::chrono use less painful
This brings the easing transition code a bit closer to how easings work
in gl-js. Instead of having an array of individual transitions for scale,
rotate, and pan, there is a single transition function that does all the
required calculations. This permits us to:

* Eliminate the "timeout" transition. (Fixes #126)
* Remove the start/stopPanning() and similar functions from the API. The
  transform is capable of determining when a transition that affects the
  pan position is in effect. (Fixes #79)
* Run style recalculations only when an ease transition that affects the
  zoom is in progress. (Fixes #1155)
@kkaefer
kkaefer force-pushed the 1155-update-as-needed branch from c4add80 to d7a161d Compare April 2, 2015 11:08
@kkaefer

kkaefer commented Apr 2, 2015

Copy link
Copy Markdown
Member

Pull request against master is now in #1155.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

GL JS parity For feature parity with Mapbox GL JS performance Speed, stability, CPU usage, memory usage, or power usage refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants