Skip to content

Visualize Your Ideas With Code

fix(2d): fix Txt decorators (#526)

Jacob25b30ed3861f
diff --git a/packages/2d/src/components/Txt.ts b/packages/2d/src/components/Txt.ts
index 844793a5..399927be 100644
--- a/packages/2d/src/components/Txt.ts
+++ b/packages/2d/src/components/Txt.ts
@@ -18,7 +18,7 @@ export class Txt extends Shape {
View2D.shadowRoot.append(formatter);
return formatter;
})
- protected static readonly segmenter: any;
+ protected static formatter: HTMLDivElement;
@lazy(() => {
try {
@@ -29,7 +29,7 @@ export class Txt extends Shape {
return null;
}
})
- protected static formatter: HTMLDivElement;
+ protected static readonly segmenter: any;
@initial('')
@interpolation(textLerp)