Hope this helps - Happy to help further!! Thank you very much and have a great one! Warm regards
Hi Huma,
Thanks for your answer.
Could you provide a small working JSON example?
When I try it, rounding only works when applied to the root shape.
Maybe I’m missing something, but I can’t figure it out.
Thanks for your help,
Nicolas
Hi @NMN , you might find this example helpful: GroupedShape.shape from our example-shape-library repo. It shows an example of styling with sub-shapes specifically.
Hope that helps! Let us know if you get stuck or have any further questions.
Hi @NMN
You are right, that styles rounding works at the root level in a custom shape. besides, you can still create sub-shapes with rounded corners by using a path instead of a basic rectangle.
Best Regards
Thank you for your answers.
I’ve tried using the path type. See the example below. However, when you resize the shape, you lose the roundness.
{ "geometry": : { "type": "path" "path": "M 0.1,0 h 0.8 a 0.1,0.1 0 0 1 0.1,0.1 v 0.8 a 0.1,0.1 0 0 1 -0.1,0.1 h -0.8 a 0.1,0.1 0 0 1 -0.1,-0.1 v -0.8 a 0.1,0.1 0 0 1 0.1,-0.1 z" } ] }
A Lucid account is required to interact with the Community, and your participation is subject to the
Supplemental Lucid Community Terms.
You may not participate in the Community if you are under age 18. You will be redirected to the Lucid app to log in.
A Lucid account is required to interact with the Community, and your participation is subject to the
Supplemental Lucid Community Terms.
You may not participate in the Community if you are under age 18. You will be redirected to the Lucid app to log in.