-
Hello! I wanted to ask for your help: I have different sized parallelepipeds inside which I want to write text of different lengths. Is there a similar functionality? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi. I'm not exactly sure what you are trying to do. In general, if you provide a short code sample of what you've tried and a sketch of what you are trying to draw it will be easier for others to help. A parallelepiped is a 3D shape but SVGs only represent 2D shapes. You will need to manually calculate the projected 2D coordinates of the eight corners (or find a library that can do this). Then you can use If you want the text to be centered, you'll need to calculate the 2D coordinate of the text center and use the centering options of |
Beta Was this translation helpful? Give feedback.
I don't know what you mean by "transfer on the lines inside it".
drawsvg.Text
supports multiple lines of text (see examples) but SVGs in general do not support automatic word wrapping.