-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass implementing Canvas from template (#16)
* added an ids property to TypedCollection * Added support for getting items by index * Create framing decision based on framing intent * Added a common rounding function. * Added scale_by and copy methods to Dimension classes * added adjust_effective_anchor_point method * added fit_source_to_target and get_desqueezed_width methods as part of implementing canvas templates in canvas * added methods for adjusting anchor points based on current dimensions * fixed typo in object map resulting in round not getting initialized added rounding method * set required key for pad_to_maximum * added test for RoundStrategy * Still WIP but has all but alignment in place. * added fixture for RoundingStrategy * Moved rounding logic to the RoundingStrategy class * Anchor points now support alignment. Only to be used by canvas templates.. * Added a global variable to choose if we want to be precise and keep floating values or round them to even numbers. * calculate size within target dimensions * added docstrings * Suuuuuuuper rudimentary test of creating a canvass based on template. Need to add more test --------- Signed-off-by: apetrynet <flehnerheener@gmail.com>
- Loading branch information
Showing
9 changed files
with
617 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.