comic-bubbles
Version:
Animated comic bubbles - what else?
18 lines (15 loc) • 366 B
JavaScript
export class Connector {
constructor(parent) {
this.painted = false
this.width = undefined
this.horizontalPos = undefined
this.parent = parent
}
height = undefined
getHeight() {
return this.painted ? this.height : 0
}
getPrefStr() {
return this.parent === undefined ? 'connector' : this.parent.getPrefStr() + '.connector'
}
}