We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa73c7c commit 16dc774Copy full SHA for 16dc774
1 file changed
lib/generate-symbol-tsx.ts
@@ -73,8 +73,8 @@ export const generateSymbolTsx = (
73
}
74
75
for (const text of schematicTexts) {
76
- const x = text.position.x ?? 0
77
- const y = text.position.y ?? 0
+ const x = text.position?.x ?? 0
+ const y = text.position?.y ?? 0
78
const rawText = String(text.text ?? "")
79
const escapedText = rawText.replace(/"/g, '\\"')
80
const anchorAlignment = text.anchor ?? "center"
0 commit comments