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

Added support for the textAlignment key #3

Merged
merged 4 commits into from Sep 12, 2018

Conversation

Projects
None yet
2 participants
@MiniCodeMonkey
Collaborator

MiniCodeMonkey commented Sep 12, 2018

This adds support for a new textOverlay key called textAlignment

textOverlay: [{
  id: 1,
  text: 'Hello, world!',
  fontName: 'Avenir',
  fontSize: 50,
  fontColor: 'ffffff',
  fontAlpha: 1,
  xLoc: 50,
  yLoc: 20,
  textAlignment: {
    horizontal: 'center', // or 'left' or 'right' or null
    vertical: null, // or 'top' or 'center' or 'bottom'
  },
  fadeIn: {
    startTime: 0,
    duration: 1
  },
  fadeOut: {
    startTime: 3,
    duration: 1
  },
}]

@MiniCodeMonkey MiniCodeMonkey requested a review from jonathan-fulton Sep 12, 2018

MiniCodeMonkey added some commits Sep 12, 2018

@MiniCodeMonkey

This comment has been minimized.

Show comment
Hide comment
@MiniCodeMonkey

MiniCodeMonkey Sep 12, 2018

Collaborator

@jonathan-fulton I'm now using xLoc / yLoc directly instead of a special textAlignment key. Thanks for the suggestion!

Collaborator

MiniCodeMonkey commented Sep 12, 2018

@jonathan-fulton I'm now using xLoc / yLoc directly instead of a special textAlignment key. Thanks for the suggestion!

@MiniCodeMonkey MiniCodeMonkey merged commit 7760cd2 into master Sep 12, 2018

@MiniCodeMonkey MiniCodeMonkey deleted the feature/text-alignment branch Sep 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment