Compiler crashes when measuring schema.render
#14
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This makes the compiler crash:
I don't think it's CeTZ, because this works:
I've tested both Typst 0.13.1 and 0.14.0, and it gives the same result.
There are also issues in general with
scale,reflow, andfigurecaptions:If
reflowisfalse, the size is correct but the caption not. If it'strue, the reverse happens.Using
boxgives the correct result.I've been looking and... why do you have this logic in the renderer?
I've replaced that
if-elsewith justcnvs, compiled the examples as PNG, and doing adiffshows that they are the same...It doesn't solve the issue btw.
The
elsecase allows rescaling the diagram to a fixed width. I included it here so that users wouldn't have to implement it in their document if they needed a particular diagram to fit in the page without restructuring itOk, I was confused because in
config.configyou can specifywidth(andheight), but it gets overwritten by the one inschema.render.I've seen the
TODO -> removecomments... we should remove that.