4075 Commits

Author SHA1 Message Date
Adam Barth
8289caaf97 Merge pull request #1080 from abarth/painting_lib
Introduce painting.dart and move painting code to src/painting
2015-09-08 10:44:01 -07:00
Adam Barth
ad0d74a41e Introduce painting.dart and move painting code to src/painting 2015-09-08 10:36:14 -07:00
Adam Barth
9ef7ebe79b Merge pull request #1076 from abarth/docs_animation
Introduce package:sky/animation.dart
2015-09-08 09:51:14 -07:00
Adam Barth
ef880695d5 Introduce package:sky/animation.dart
Move the animation libraries into src/animation and change importers to use
package:sky/animation.dart. Also, move scheduler.dart into the animation
library so that the animation library can be self-contained.
2015-09-08 09:44:01 -07:00
Ian Hickson
87e5638153 Merge pull request #1078 from Hixie/sync-removal
Fix breakage caused by sync-across-removal patch.
2015-09-08 09:29:27 -07:00
Hixie
469a584ad6 Fix breakage caused by sync-across-removal patch.
This makes the sync code stop if it would have to rearrange the
RenderObjects. I'll make it handle the cross-RenderObject case, as well
as the insertion-sync case, in subsequent patches.
2015-09-08 09:28:08 -07:00
Adam Barth
b1ff22654e Merge pull request #1075 from abarth/fold_editing_into_widgets
Fold package:sky/editing/* into package:sky/widgets.dart
2015-09-07 10:40:39 -07:00
Adam Barth
169e1d6cff Fold package:sky/editing/* into package:sky/widgets.dart
The editing directory just defined two widgets. We might as well fold them into
the main widgets library.
2015-09-07 10:07:41 -07:00
Adam Barth
56cfa200a8 Merge pull request #1074 from abarth/docs_render_box
Add dartdoc for RenderBox
2015-09-06 12:37:11 -07:00
Adam Barth
31130e5e43 Add dartdoc for RenderBox 2015-09-06 12:36:47 -07:00
Adam Barth
950c86157e Merge pull request #1073 from abarth/box_docs
Document and bring sanity to BoxConstraints
2015-09-05 12:51:46 -07:00
Adam Barth
79c280a703 Document and bring sanity to BoxConstraints
Turns out many of the functions on BoxConstraints weren't used or had callers
that could easily be updated to other functions. I've added dartdoc to all the
public functions as well as renamed some functions that had similar names but
did different things.
2015-09-05 11:33:02 -07:00
Adam Barth
c214d8db4a Merge pull request #1067 from devoncarew/gen_docs
working on generating docs as part of the build
2015-09-04 19:28:33 -07:00
Devon Carew
6f83d5fd3a working on generating docs as part of the build
revert PATH changes

fix typo

some dartdoc changes in files
2015-09-04 19:21:53 -07:00
Adam Barth
ee24e505b9 Merge pull request #1071 from abarth/center_expand
Center and Align should expand by default
2015-09-04 16:21:07 -07:00
Hans Muller
441dd89223 Merge pull request #1070 from HansMuller/scroll-to-drag
Replace Scroll with Drag in names in GestureRecognizer et al

The rationale for this name change is that gesture names should match their input pattern, not their use.
2015-09-04 16:12:06 -07:00
Adam Barth
987e92e92a Center and Align should expand by default
This patch makes Center and Align expand by default, which is usually what you
want. It also adds a ShrinkWrap option to let you shrink wrap in one or both
directions if that's really what you want to do.
2015-09-04 16:11:58 -07:00
Viktor Lidholt
d60244d4ee Merge pull request #1069 from vlidholt/master
Adds bindings for ImageShader to SkShader::CreateBitmapShader
2015-09-04 16:11:31 -07:00
Viktor Lidholt
baabf090f0 Adds bindings for ImageShader to SkShader::CreateBitmapShader 2015-09-04 16:03:14 -07:00
Hans Muller
3eff95eeaa Replace Scroll with Drag in names in GestureRecognizer et al 2015-09-04 16:02:30 -07:00
Hans Muller
12692debe7 Merge pull request #1066 from HansMuller/more-dismissable-unit-tests
Add Dismissable unit tests

Add coverage for the DismissDirection paramter.
2015-09-04 14:45:46 -07:00
Adam Barth
6f9caf9f61 Merge pull request #1065 from abarth/update_links
Update links to READMEs
2015-09-04 14:44:10 -07:00
Hans Muller
f621e01c3b Add Dismissable unit tests 2015-09-04 14:31:03 -07:00
Adam Barth
6996d63414 Update links to READMEs
These needed to be updated because we moved the widgets directory into the src
directory to hide it from dartdoc.
2015-09-04 14:09:07 -07:00
Ian Hickson
79ba8b9fcd Merge pull request #1062 from Hixie/reposition
Handle Widget instances being moved as-is to different parts of the tree.
2015-09-04 13:41:55 -07:00
Chinmay Garde
b522f93f07 Merge pull request #1063 from chinmaygarde/master
Setup mac target for Fitness app
2015-09-04 13:34:14 -07:00
Chinmay Garde
b3b8833219 Setup mac target for Fitness app 2015-09-04 13:29:47 -07:00
Ian Hickson
e1eef8d570 Dart isn't dark. 2015-09-04 13:16:16 -07:00
Viktor Lidholt
9aa71b4d02 Merge pull request #1059 from vlidholt/master
Improvements to demo game
2015-09-04 13:03:50 -07:00
Chinmay Garde
2c180b3b8b Merge pull request #1049 from abarth/layer_tree_to_gpu
Pass the sky::LayerTree to the GPU thread for drawing
2015-09-04 12:55:20 -07:00
Hixie
8afda4a5bb Handle Widget instances being moved as-is to different parts of the tree. 2015-09-04 12:31:38 -07:00
Adam Barth
0d4766943a Merge pull request #1061 from abarth/non_negative_margin
Disallow negative padding and margins
2015-09-04 12:28:01 -07:00
Adam Barth
dfb89fee8c Disallow negative padding and margins
They're just as crazy in this system as they are in the web.
2015-09-04 12:25:26 -07:00
Hans Muller
4840f80242 Merge pull request #1058 from HansMuller/left-right-dismissable
Add Dismissable support for DismissDirection

```
enum DismissDirection {
  vertical,
  horizontal,
  left,
  right,
  up,
  down
}
```

To only enable dismissing to the right create the `Dismissable` with `direction: DismissDirection.right`. By default direction is `DismissDirection.horizontal` (left or right).

Updated the card_collection "Swipe Away" demo with a drawer that can be used to select one of the three X axis dismiss directions. Currently the MixedViewport class doesn't support horizontal scrolling, so the demo doesn't support the X axis dismiss directions.
2015-09-04 11:36:12 -07:00
Hans Muller
73361c6be3 Add Dismissable support for DismissDirection
```
enum DismissDirection {
  vertical,
  horizontal,
  left,
  right,
  up,
  down
}
```

To only enable dismissing to the right create the `Dismissable` with `direction: DismissDirection.right`. By default direction is `DismissDirection.horizontal` (left or right).

Updated the card_collection "Swipe Away" demo with a drawer that can be used to select one of the three X axis dismiss directions. Currently the MixedViewport class doesn't support horizontal scrolling, so the demo doesn't support the X axis dismiss directions.
2015-09-04 11:31:15 -07:00
Viktor Lidholt
ae9d4115ff Adds helpers to bosses at level 2 & 3 and above in demo game 2015-09-04 10:35:45 -07:00
Viktor Lidholt
c4a6610ad7 More precise removal of lasers when they go offscreen in demo game 2015-09-04 10:35:45 -07:00
Viktor Lidholt
7681420367 Laser speed now accounts for scrolling speed in demo game 2015-09-04 10:35:45 -07:00
Viktor Lidholt
05e26a7704 Merge pull request #1050 from vlidholt/master
Demo game improvements
2015-09-04 10:33:56 -07:00
Adam Barth
64a3095297 Merge pull request #1056 from abarth/event_ordering
Events should bubble up the tree
2015-09-04 09:31:55 -07:00
Ian Fischer
8ff467a7a0 Merge pull request #1054 from iansf/start_error_code
Error out on start if nothing started.
2015-09-04 07:53:48 -07:00
Adam Barth
58d67facd8 Merge pull request #1011 from abarth/paragraph_builder
Sketch a DOM-free API for laying out and painting text
2015-09-03 20:29:15 -07:00
Adam Barth
7d8c1389cd Merge pull request #1055 from afandria/ignoring3
Add optional ignoring parameter to IgnorePointer
2015-09-03 19:46:28 -07:00
Adam Barth
e5d7e69346 Pass the sky::LayerTree to the GPU thread for drawing
Instead of squashing the layers down into a single SkPicture, we now pass the
tree to the GPU thread, which draws everything separately.
2015-09-03 19:20:32 -07:00
Alex Fandrianto
622d82d8ae Address Pull Request feedback
(optional param default value + newlines)
2015-09-03 19:14:22 -07:00
Adam Barth
c96332788e Events should bubble up the tree
Previously we reversed the event path by mistake before dispatching events.
2015-09-03 18:20:38 -07:00
Alex Fandrianto
f62b94b4c6 This makes it easier for apps to control whether an IgnorePointer
widget is actively ignoring or not by changing a boolean instead of
the tree structure. ignoring defaults to true.
2015-09-03 17:45:44 -07:00
Ian Fischer
e9aaac2ebb Return 0 or 2 from start and install commands. 2015-09-03 17:20:55 -07:00
Adam Barth
69a357eb76 Merge pull request #1051 from abarth/default_hit_test_children
defaultHitTestChildren should return whether it hit something
2015-09-03 17:18:02 -07:00
Adam Barth
8f5b0f586d defaultHitTestChildren should return whether it hit something
Some clients want to know whether they hit their children.
2015-09-03 16:12:25 -07:00