39147 Commits

Author SHA1 Message Date
Chinmay Garde
e933565993 Add bulk edit update options to the solver 2015-07-08 10:39:17 -07:00
Chinmay Garde
149a2ca1f8 Get rid of the return type decl on the equality operator override on EquationMember 2015-07-08 10:38:42 -07:00
Chinmay Garde
e0f38529ed == operator override on expression returns a constraint 2015-07-07 13:19:36 -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
Chinmay Garde
1ad945f897 Make the constant member value final 2015-07-01 12:26:46 -07:00
Chinmay Garde
a223491d00 Equality override on equation member returns a constraint 2015-07-01 12:26:33 -07:00
Chinmay Garde
e66e88834e Parameter contexts are non-final 2015-06-30 16:49:15 -07:00
Chinmay Garde
704d0174e0 Solver.flush update returns the set of context associated with parameters in play 2015-06-30 14:05:52 -07:00
Chinmay Garde
4568b088e0 Solver.flushParameterUpdates returns the a collection of updated parameters 2015-06-29 15:51:29 -07:00
Ian Fischer
82404e030a Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277.
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1218593002.
2015-06-26 15:06:40 -07:00
Chinmay Garde
df2eb202cc Minor: A slightly more contrived test case to verify contraint priorities 2015-06-26 12:21:06 -07:00
Chinmay Garde
e65fd76ead Since params are usually created to be edited later, make the initial value optional 2015-06-26 12:20:02 -07:00
Hans Muller
75f1c05b85 Use Theme to define the colors and TextStyles for Tab, TabBar
Also added a smoke test for examples/widgets/tabs.dart.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1213873002.
2015-06-26 09:30:53 -07:00
Chinmay Garde
eedbb4f167 Add a simple test for the toString() override so that the coverage
tool is not sad
2015-06-25 18:13:56 -07:00
Hixie
d532b3fa7c Rename setParentData to setupParentData since it's not a setter per se.
TBR=abarth

Review URL: https://codereview.chromium.org/1208293002.
2015-06-25 17:28:34 -07:00
Chinmay Garde
d8d07a31dd Add tests edit constraints 2015-06-25 17:28:00 -07:00
Hixie
12b21997ca Let's hide double.INFINITY a bit more, by providing cleaner APIs for the cases where we're currently trying to use it.
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1209233002.
2015-06-25 17:27:43 -07:00
Chinmay Garde
97cd09d2a1 Avoid adding implicit constraints for edit variables at required priority 2015-06-25 17:27:42 -07:00
Hixie
aef18a90ab Add asserts to catch potential misuses of the rendering framework.
New asserts:
- verify that after layout, the size fits the constraints
- verify that after layout, the size isn't infinite
- verify that you don't set the size in performLayout() if you have
  sizedByParent set
- verify that nobody reads your size during layout except you, or your
  parent if they said parentUsesSize:true

Fixes some bugs found by those asserts:
- RenderBlock, RenderStack, and RenderScaffold were not always setting
  parentUsesSize correctly
- RenderScaffold was setting its slot entries to null rather than
  removing them when the slot went away, which led to null derefs in
  certain circumstances

Also, rename a local variable in RenderStack.performLayout() because
it was shadowing a variable on the object itself, which was really
confusing when I first tried to debug this function...

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1213473003.
2015-06-25 17:08:06 -07:00
Chinmay Garde
49d14caa69 Make the midpoints test pass. Fixes incorrect Row.reverseSign 2015-06-25 17:07:15 -07:00
Chinmay Garde
20908034d5 Make constraint priority setup more expressive 2015-06-25 16:24:21 -07:00
Chinmay Garde
2f3e5aa70b Add toString() overrides to internal solver members 2015-06-25 14:30:37 -07:00
Hans Muller
ab246ebcef Version 0 of TabLabel, Tab, and TabBar components
There's is no support for animating the selected tab indicator, there isn't a TabNavigator container yet, overflow layout (tabs don't fit) isn't supported yet, etc.

R=abarth@chromium.org, ianh@google.com

Review URL: https://codereview.chromium.org/1205953002.
2015-06-25 14:25:33 -07:00
Viktor Lidholt
2e32c6721d Adds support for rotated textures
Adds documentation to Texture and SpriteSheet

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1212073002.
2015-06-25 13:13:33 -07:00
Chinmay Garde
9d075adabb Minor: Add tests to check for addition of multiple constraints 2015-06-25 12:20:10 -07:00
Chinmay Garde
a029c93ed1 Remove the << overload on solver. Operator precendence rules made it awkward to use anyway 2015-06-25 12:11:00 -07:00
Chinmay Garde
882a17f75b Minor: Add more tests 2015-06-25 11:45:47 -07:00
Chinmay Garde
8be3c640cc Minor: Refactor -> Rename internal private methods in the solver 2015-06-25 10:25:33 -07:00
Chinmay Garde
7dcd8115c3 Avoid exposing internal classes from the cassowary library 2015-06-24 18:18:58 -07:00
Carlos Pizano
45ccc2e812 fix minedigger win bug
Win was not being detected.

BUG=none
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1209823002.
2015-06-24 18:14:51 -07:00
Chinmay Garde
891085b74b Allow updating external variables from the solver 2015-06-24 18:03:21 -07:00
Chinmay Garde
d4a67499e9 Implement Solver.suggestValue 2015-06-24 17:53:41 -07:00
Hixie
3df2427540 Use the baseline information exposed by C++ to pipe baseline data through RenderBox.
This also fixes the C++ side to give the right baseline information.
Previously it was giving the baseline distance for the font, but not
for the actual laid-out text.

I considered also providing a "defaultBaseline" accessor that returns
the distance for the actual dominant baseline, but it turns out right
now we never decide the baseline is ideographic. We always use the
alphabetic baseline. We should probably fix that...

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1200233002.
2015-06-24 17:01:14 -07:00
Chinmay Garde
436f272a09 Avoid using variables as equation members 2015-06-24 16:48:02 -07:00
Chinmay Garde
9ea8abd5af Allow constraint creation from multiplication and division when at least one argument is a constant expression 2015-06-24 14:52:46 -07:00
Hixie
a7f7e1e564 Add support for line-height in TextStyle.
Also, some minor cleanup in TextStyle to make it more readable.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1203253002.
2015-06-24 13:25:17 -07:00
Chinmay Garde
5137e03c9d Add support for updating edits 2015-06-24 13:23:31 -07:00
Chinmay Garde
8187c6852b Allow removal of constraints from the solver 2015-06-24 12:41:54 -07:00
Hixie
09c9d5b5ce Fix baseline example (missed merge with Ian's new graphics APIs).
TBR=iansf

Review URL: https://codereview.chromium.org/1201383005.
2015-06-24 11:33:54 -07:00
Hixie
8a465ac6d9 Expose baseline information in the Sky API.
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1208483002.
2015-06-24 11:24:45 -07:00
Ian Fischer
82d1eb2fdb Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia counterparts.
Also changes the framework dart code to use the
refactored APIs and fixes the various examples and
tests.

R=abarth@chromium.org, ianh@chromium.org

Review URL: https://codereview.chromium.org/1190123003.
2015-06-24 10:21:45 -07:00
Chinmay Garde
9beb286180 Account for the result of optimization when adding constraints 2015-06-23 18:07:56 -07:00