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
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
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
Chinmay Garde
d8d07a31dd
Add tests edit constraints
2015-06-25 17:28:00 -07:00
Chinmay Garde
97cd09d2a1
Avoid adding implicit constraints for edit variables at required priority
2015-06-25 17:27:42 -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
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
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
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
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
Chinmay Garde
9beb286180
Account for the result of optimization when adding constraints
2015-06-23 18:07:56 -07:00
Chinmay Garde
b78b35d723
Implement addition of constraints to the solver
2015-06-23 18:01:17 -07:00
Chinmay Garde
af67d08746
Minor: Add result types for known failure cases
2015-06-23 13:58:44 -07:00
Chinmay Garde
530700a8c1
Implement row.dart and some other minor utility methods
2015-06-23 13:22:48 -07:00
Chinmay Garde
306c795c21
Minor: Add stubs for the symbol and solver
2015-06-23 09:50:52 -07:00
Chinmay Garde
e788fe538f
Minor: Match style guide
2015-06-22 15:07:02 -07:00
Chinmay Garde
7eb8322315
Dry up multiplication and division of equation members
2015-06-22 15:02:31 -07:00
Chinmay Garde
5288d466ab
Dry up incremental expression construction from constants, variable, terms and other expressions
2015-06-22 14:39:55 -07:00
Chinmay Garde
a8e6ea0698
Constraints can be setup directly from non-expression via operator overrides
2015-06-22 14:31:46 -07:00
Chinmay Garde
2152de9a51
Minor: Add support for priority updates on constraints
2015-06-22 12:29:33 -07:00
Chinmay Garde
f6a323620e
Initial Commit
2015-06-22 10:49:09 -07:00
John McCutchan
57ec759e97
Rationalize Dart mojo and sky package structure.
...
NOTE: This CL appears far larger than it actually is for two reasons:
1) Many files were moved around to use the Dart package directory structure.
2) Many .dart files had to have import paths updated.
- Organize mojo/public/dart so that it uses standard Dart package layout
- Organize mojo/dart/apptest so that it uses a standard Dart package layout
- Organize sky/sdk so that it uses a standard Dart package layout
- Create a mojo/testing package (used by unittests)
- Introduce the 'dart_pkg' gn rule which populates gen/Config/dart-pkg
- All internally vended Dart packages must have a corresponding dart_pkg rule
- It is now possible to use dependency_overrides: in pubspec.yaml to mix internal and external package dependencies (enables analyzer, editor, webstorm usage for internal developers).
- Package root for dart content handler ends with "packages/"
- Imports of mojo package uris no longer need the "public/dart"
- mojo/public/tools/dart_package.py is a clone of mojo/public/tools/gn/zip.py
- Sky tests no longer run 'deploy_sdk' script.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1132063007
2015-05-18 14:41:39 -07:00
Colin Blundell
3a138caad2
Create wrapper script around mojom's generate.dart in the Sky package.
...
This CL does the following:
- Moves mojom's generate.dart from bin/ to lib/ to make it available for use
by a wrapper scripts in the Sky package, thus avoiding all consumers of Sky
needing to directly depend on mojom to be able to call
"pub run mojom:generate".
- Adds a sky->mojom pub dependency and creates a wrapper script around mojom's
generate.dart in the Sky package.
- Augments the Sky README to explain the usage of this script.
R=eseidel@chromium.org , sethladd@google.com
Review URL: https://codereview.chromium.org/1136503002
2015-05-13 11:48:47 +02:00
Eric Seidel
8c50d9339c
Update SDK README to discuss about:tracing and observatory.
...
TBR=ianh@google.com
Review URL: https://codereview.chromium.org/1114553004
2015-04-28 12:05:46 -07:00
Eric Seidel
7edc1d7df1
Add missing include in sky_tool
...
Also fixed missing entry in CHANGELOG.md
TBR=ianh@google.com
Review URL: https://codereview.chromium.org/1108393003
2015-04-28 11:34:12 -07:00
Eric Seidel
3feae26683
Update CHANGELOG with recent changes to Sky's pub package
...
TBR=ianh@google.com
Review URL: https://codereview.chromium.org/1104093004
2015-04-27 17:01:09 -07:00
Eric Seidel
40b6b48ffd
Add start-tracing and stop-tracing commands to sky_tool
...
This is just copy-pasted from shelldb but should work.
TBR=ianh@google.com
Review URL: https://codereview.chromium.org/1112433003
2015-04-27 16:59:17 -07:00
Eric Seidel
a0c375f6e3
Add a script to sky pub package to download assets
...
This is a fork of sky/tools/download_material_design_assets
which does not depend on depot_tools and assumes that its
right next to the assets directory instead of finding it
relative to the mojo root.
R=ianh@google.com
Review URL: https://codereview.chromium.org/1106373002
2015-04-27 16:27:47 -07:00
Eric Seidel
9fd7ed7a93
Fix typo in sky_tool causing crash
...
This will require me to roll the sky pub package, sigh.
R=ianh@google.com
Review URL: https://codereview.chromium.org/1090713002
2015-04-15 13:29:47 -07:00
Eric Seidel
a7ef473367
Update CHANGELOGs for pub packages on trunk
...
TBR=hansmuller@chromium.org
Review URL: https://codereview.chromium.org/1082413002
2015-04-14 16:14:31 -07:00
Eric Seidel
a5bfcc7ec6
Bump the pubspec versions for Sky and Mojo
...
TBR=hansmuller@chromium.org
Review URL: https://codereview.chromium.org/1073243002
2015-04-10 11:23:49 -07:00
Eric Seidel
80ee728031
Roll mojo and sky pub versions to 0.0.4
...
TBR=hansmuller@chromium.org
Review URL: https://codereview.chromium.org/1074933003
2015-04-09 14:20:09 -07:00
Eric Seidel
814d87fc87
Fix sky_tool's calling of adb, and shelldb's analyze and stop
...
Just silly fixes needed for our 4 copies of our python run script.
R=ianh@google.com
Review URL: https://codereview.chromium.org/1064983003
2015-04-07 15:15:56 -07:00
Adam Barth
114ebbed96
Rev Mojo and Sky pub packages
...
TBR=ojan@chromium.org
Review URL: https://codereview.chromium.org/1038873005
2015-03-26 12:59:00 -07:00
Eric Seidel
03a2006046
Copy all of dart_sky.dart's supporting files into package:sky
...
Also bumped package:sky's version in prep for publishing.
R=abarth@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1024243002
2015-03-20 14:46:58 -07:00
Eric Seidel
ea62fa7d72
Make the Sky pub package include our APK and teach sky_tool to install it
...
I'm not sure this is the final long-term solution, but works for now.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1022193002
2015-03-20 14:35:14 -07:00
Eric Seidel
49a947a868
Unbreak the build by adding the sky tool
...
TBR=abarth@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1021933004
2015-03-20 13:59:15 -07:00
Adam Barth
df9d48ac83
Make stocks-fn match the style for the Sky SDK
...
1) Add a pubspec.yaml.
2) Move all the code into a 'lib' directory.
3) Move the stock widgets out of the app's library.
TBR=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1011023003
2015-03-17 15:08:53 -07:00
Eric Seidel
697c735740
Make mojo and sky dart packages deployable
...
The packages produced from this CL were deployed
as v0.0.1:
https://pub.dartlang.org/packages/sky
https://pub.dartlang.org/packages/mojo
There is still no tool included with the sky
package due to pub's inability to run anything
other than Dart:
https://code.google.com/p/dart/issues/detail?id=22877
I'm likely just going to write a dart version
of my "sky" script. :(
R=ojan@chromium.org , abarth@chromium.org
Review URL: https://codereview.chromium.org/1015833002
2015-03-17 11:09:33 -07:00