Hi everyone,
I'm currently migrating my project (blocksembler) to TypeScript and have hit a small roadblock with the initSvg() method of the BlockSvg class.
Here’s the relevant snippet:
Or is there a cleaner or more idiomatic approach in TypeScript to deal with this kind of situation?
Thanks in advance for your help!
Best wishes,
Florian
Ah, that makes perfect sense now! I wasn’t aware of the WorkspaceSvg class — thanks for pointing that out.
Really appreciate the quick and helpful response!
Just out of curiosity: are there other workspace representations besides SVG, or is WorkspaceSvg the only one typically used in practice?
Best,
Florian