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

Add ability to box the dimensions #3

Open
tdillon opened this issue Dec 3, 2015 · 0 comments
Open

Add ability to box the dimensions #3

tdillon opened this issue Dec 3, 2015 · 0 comments
Milestone

Comments

@tdillon
Copy link
Owner

tdillon commented Dec 3, 2015

Add a setter that will fit the size of the Seven inside the specified dimensions. The setter is named box and it accepts an object with the shape { height:number, width:number }. Either the height or the width of the digit will be the corresponding value from the box property, the other will be less than its corresponding value.

var x = new Seven({angle: 0});
x.box = { height: 100, width: 75 };  //height === 100, width < 75;
x.angle = 70;  //height < 100, width === 75, 

Setting height or width overrides the box property.

@tdillon tdillon modified the milestones: v4.1.0, v4.2.0 Dec 3, 2015
@tdillon tdillon changed the title Add ability box the dimensions Add ability to box the dimensions Dec 4, 2015
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

No branches or pull requests

1 participant