@appshuttle.io/turing
Version:
Code Generation Library used in Shuttle
56 lines (41 loc) • 1 kB
JavaScript
const Color = require('../Color/Color')
class Title {
constructor(parameters) {
this.text = parameters.text
this.textSize = parameters.textSize
this.textAlignment = parameters.textAlignment
this.textStyle = parameters.textStyle
this.textColor = new Color(parameters.textColor)
}
getText() {
return this.text
}
setText(text) {
this.text = text
}
getTextSize() {
return this.textSize
}
setTextSize(textSize) {
this.textSize = textSize
}
getTextAlignment() {
return this.textAlignment
}
setTextAlignment(textAlignment) {
this.textAlignment = textAlignment
}
getTextStyle() {
return this.textStyle
}
setTextStyle(textStyle) {
this.textStyle = textStyle
}
getTextColor() {
return this.textColor
}
setTextColor(textColor) {
this.textColor = textColor
}
}
module.exports = Title