We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6007a6 commit 80ff25dCopy full SHA for 80ff25d
src/Subtitles/SubtitleComponent.js
@@ -45,6 +45,7 @@ export default class SubtitleComponent extends Lightning.Component {
45
46
_init() {
47
this._textureDefaults = new Lightning.textures.TextTexture(this.stage).cloneArgs()
48
+
49
this.tag('Text').on('txLoaded', ({ _source }) => {
50
this.w = _source.w + this.tag('Text').x * 2
51
this.h = _source.h
@@ -54,7 +55,6 @@ export default class SubtitleComponent extends Lightning.Component {
54
55
56
get textFormat() {
57
const textTag = this.tag('Text').text
-
58
return {
59
fontFace: textTag.fontFace || 'sans-serif',
60
fontSize: textTag.fontSize,
0 commit comments