• Changed Files
  • packages/core/src/interactions/Spring.ts

[added] Spring2D
ClosedPublic

Authored by appsforartists on Mar 29 2017, 9:02 PM.

Details

Summary

This is an attempt to find a sane way to provide reasonable defaults for a multidimensional spring in an untyped language.

Another option would be to require the initial value of destination to be provided in the constructor and to introspect it to determine the shape the default Ts should take.

Diff Detail

Repository
R13 material-motion/material-motion-js
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
appsforartists created this revision.Mar 29 2017, 9:02 PM
Restricted Application completed building Restricted Buildable.Mar 29 2017, 9:03 PM
Restricted Application added a reviewer: O2: Material Motion. · View Herald TranscriptMar 29 2017, 9:03 PM
Restricted Application added a project: Material Motion. · View Herald Transcript
Restricted Application added a reviewer: O3: Material JavaScript platform reviewers. · View Herald Transcript
Restricted Application added a reviewer: Material Motion. · View Herald Transcript
Restricted Application completed building Restricted Buildable.Mar 29 2017, 9:05 PM
featherless accepted this revision.Mar 29 2017, 10:50 PM
This revision is now accepted and ready to land.Mar 29 2017, 10:50 PM

Not sure if there's a better way to specify T - will ask the TS folks tomorrow before landing

Restricted Application completed building Restricted Buildable.Mar 29 2017, 11:37 PM
This revision was automatically updated to reflect the committed changes.