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

Is this the best way to add spacing to text content? #56

Closed
zepumph opened this issue Jun 24, 2017 · 1 comment
Closed

Is this the best way to add spacing to text content? #56

zepumph opened this issue Jun 24, 2017 · 1 comment

Comments

@zepumph
Copy link
Member

zepumph commented Jun 24, 2017

In the ReadoutPanel used by the WireBox, we have this constant:
var SPACING = new Text( '-', { font: FONT } ).width;

It seems like there is a better way to do this. Here is an example usage:

    var equalsSign = new Text( '=', {
      font: FONT,
      fill: 'black',
      left: textContainer.width + SPACING
    } );
@zepumph zepumph self-assigned this Jun 24, 2017
zepumph added a commit that referenced this issue Jun 26, 2017
@zepumph
Copy link
Member Author

zepumph commented Jun 26, 2017

from code review: #51, closing

@zepumph zepumph closed this as completed Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant