Commit graph

35 commits

Author SHA1 Message Date
Adam Barth 87ab798daf Move ClampedSimulation into newton
ClampedSimulation makes more sense at the newton layer because it's dealing
entirely with newton concepts.
2016-01-20 15:58:05 -08:00
Eric Seidel 1bde1e7939 Generate docs for more of our packages
I also stopped pushing docs to domokit.org I presume we
were doing that to not break old links.  @abarth

@sethladd
2015-12-18 08:52:05 -08:00
Ian Hickson 7151fdd054 Move flutter tests from packages/unit to packages/flutter/test 2015-12-16 08:00:57 -08:00
krisgiesing ac2ad62cce Merge pull request #925 from krisgiesing/doc_tweaks
Fix formatting issue
2015-12-14 16:41:01 -08:00
Kris Giesing a145490730 Fix formatting issue 2015-12-14 16:35:00 -08:00
Jason Simmons cb6eef70e8 Upgrade the test package (needed by the latest mojo roll) 2015-12-10 16:25:12 -08:00
Adam Barth 95fc98108f Improve tolerance for ending scroll animations
We had the units wrong on the tolerances. Previously we multiplied by the
device pixel ratio, which meant we got larger tolerances as we got more
resolution. Also, simplify logic in Newton for applying the tolerances.

Fixes #828
2015-12-08 23:54:43 -08:00
Adam Barth f41869f639 Update package:test to the latest version 2015-11-30 18:41:10 -08:00
Adam Barth 58f056da68 Pin package:test to an exact revision
We use a number of non-public APIs in the test package, which makes our
dependency quite fragile. This patch pins a specific, known-good version. We
should update to the lastest version in a follow-up patch.
2015-11-24 09:22:11 -08:00
Hixie a0227cab15 flutter analyze command
Other changes in this patch:
- Make the 'flutter' tool say "Updating flutter tool..." when it calls
  pub get, to avoid confusion about what the pub get output is about.
- Make the bash flutter tool call pub get when the revision has
  changed. (This was already happening on Windows.)
- Fix a raft of bugs found by the analyzer.
- Fix some style nits in various bits of code that happened to be near
  things the analyzer noticed.
- Remove the logic in "flutter test" that would run "pub get", since
  upon further reflexion it was determined it didn't work anyway.
  We'll probably have to add better diagnostics here and say to run the
  updater script.
- Remove the native velocity tracker script, since it was testing code
  that has since been removed.

Notes on ignored warnings:
- We ignore warnings in any packages that are not in the Flutter repo or
  in the author's current directory.
- We ignore various irrelevant Strong Mode warnings. We still enable
  strong mode because even though it's not really relevant to our needs,
  it does (more or less accidentally) catch a few things that are
  helpful to us.
- We allow CONSTANTS_LIKE_THIS, since we get some of those from other
  platforms that we are copying for sanity and consistency.
- We allow one-member abstract classes since we have a number of them
  where it's perfectly reasonable.
- We unfortunately still ignore warnings in mojom.dart autogenerated
  files. We should really fix those but that's a separate patch.
- We verify the actual source file when we see the 'Name non-constant
  identifiers using lowerCamelCase.' lint, to allow one-letter variables
  that use capital letters (e.g. for physics expressions) and to allow
  multiple-underscore variable names.
- We ignore all errors on lines that contain the following magic
  incantation and a "#" character:
    // analyzer doesn't like constructor tear-offs
- For all remaining errors, if the line contains a comment of the form
    // analyzer says "..."
  ...then we ignore any errors that have that "..." string in them.
2015-11-12 12:23:29 -08:00
Adam Barth 6d002482d9 Update Travis badges on the READMEs 2015-11-02 22:21:58 -08:00
Adam Barth d5becff724 Merge branch 'newton' 2015-11-02 22:17:07 -08:00
Adam Barth 6fea7f5871 Start building the repository structure 2015-11-02 22:00:11 -08:00
Hans Muller e5a96acac0 Added ScrollSpringSimulation
SimulationGroup isDone() now uses currentIntervalOffset
2015-10-15 12:38:01 -07:00
Hans Muller 09099a1703 Added FrictionSimulation.through() constructor 2015-09-25 13:11:12 -07:00
Hans Muller eaa72f6ef7 No new functionality, just some gratuitous changes. 2015-09-22 15:37:58 -07:00
Adam Barth 32ff3e59b4 Update README.md
s/domokit/flutter/
2015-09-19 08:41:31 -07:00
Hans Muller 7c8bf7e05e Merge pull request #3 from HansMuller/add-bounded-friction-simulation
Added BoundedFrictionSimulation
2015-07-27 09:11:25 -07:00
Hans Muller ea1a8ee3c2 added BoundedFrictionSimulation 2015-07-27 09:07:06 -07:00
Hans Muller 66f064eabf spring can be null drag must not be 2015-07-24 15:51:33 -07:00
Hans Muller 6c639ee389 optional spring description 2015-07-24 15:15:19 -07:00
Chinmay Garde 1ad857b53b Allow explicitly setting tolerances on simulations 2015-07-14 16:00:00 -07:00
Adam Barth 1f1cd6c279 Increase the simulation epsilon
We don't need to compute simulations out to that many decimal places because
we're working in pixels.

R=chinmaygarde@google.com
2015-07-10 16:34:13 -07:00
Chinmay Garde be7e02851a Add test to verify that composite scroll simulation ends correctly
even if the spring was never initialized.
2015-07-10 16:07:59 -07:00
Chinmay Garde 1633ac7f12 Use the more concise syntax for initialization of variables in the constructor 2015-07-08 18:15:18 -07:00
Chinmay Garde 7b77043eba Newton: Address initial code review concerns 2015-07-08 17:56:14 -07:00
Chinmay Garde be5e52bc7c Add build status and coverage badges 2015-07-06 14:31:21 -07:00
Chinmay Garde fc098d8c65 Rename concrete simulation subclasses 2015-07-06 14:11:41 -07:00
Chinmay Garde 9932e9f03a Test kinetic scrolling group simulation 2015-07-06 14:03:10 -07:00
Chinmay Garde c3aaf8aa33 Test individial spring types 2015-07-06 13:30:53 -07:00
Chinmay Garde ab7a6dd6c2 Add accessors for spring type 2015-07-06 12:48:52 -07:00
Chinmay Garde bcf1f8d05e Test gravity 2015-07-06 12:33:21 -07:00
Chinmay Garde 30965c0984 Test Friction simulation 2015-07-06 12:19:37 -07:00
Chinmay Garde 8c91b9b7c7 Implement simulation groups for kinetic scrolling 2015-07-06 10:57:26 -07:00
Chinmay Garde 5a439792f1 Non composite simulations: Friction, gravity, spring 2015-07-01 18:07:25 -07:00