Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework units #59

Merged
merged 35 commits into from
Mar 25, 2014
Merged

Rework units #59

merged 35 commits into from
Mar 25, 2014

Conversation

byorgey
Copy link
Member

@byorgey byorgey commented Mar 25, 2014

Move toOutput etc. into -core, using a generic approach. All the units work.

This was done at the expense of delayed leaves, and hence of arrows. (However, the way we were handling delayed leaves before wasn't really working anyway.) So we could merge this back into units but we still need to figure out what we are doing with those.

Sorry for the mess below; it was necessary to merge master into this branch to access the newly-moved-to-core version of avgScale, so most of the commits listed below are actually from that. The last 6 commits or so (beginning with "some experiments-in-progress...") are the important ones to look at.

byorgey and others added 30 commits February 18, 2014 07:40
Conflicts:
	src/Diagrams/Core.hs
	src/Diagrams/Core/Compile.hs

Conflicts had to do with changes to include Annotations.
* Merge master branch into this one
* Move 'toOutput' into diagrams-core, implemented generically
* Wait to convert to output units until after conversion to RTree.
  I know this means DelayedLeaves will be broken; still thinking about
  how to tackle that.
byorgey added 5 commits March 24, 2014 14:51
* Add "generic" attributes
* Finish toRTree reimplementation
* Remove Options argument from renderData
* switch from syb to Data.Data.Lens
* fix the type of 'convert': `Measure (Scalar v)`, not `Measure v` !
The diagram has *already* had the global -> output transformation
applied, so don't multiply by that scaling factor again!
jeffreyrosenbluth added a commit that referenced this pull request Mar 25, 2014
@jeffreyrosenbluth jeffreyrosenbluth merged commit 1922a00 into units Mar 25, 2014
@jeffreyrosenbluth jeffreyrosenbluth deleted the units2 branch March 25, 2014 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants