Skip to main content

Is there a way to hide programmatically a shape in a diagram in an extension?

Hi @Michel L , thank you for contributing to the Lucid for Developers Community. I want to clarify what you may be referring to. When editing a document in Lucidspark, you can hide the contents of a Container, as shown in this Help Center article. This option is only available in Lucidspark. Is this what you’re referring to?


If you wish to hide the content of your container, you can select the eye icon from the Context Toolbar. No one will be able to see the content of the container unless you select the eye icon to unhide the content.

 

If you are using Lucidchart, a similar result can be achieved by placing a shape on an overlapping layer and then toggling the visibility of that layer. Refer to our Add layers to a Lucidchart document article to learn more.

Please let me know what you’re seeking to achieve with your extension.

 


Thank you for your reply.

So how can I place my block onto a layer programmatically in my extension?

How can I create a layer programmatically in my extension?


@Michel L This is a great question and the answer will depend on your extension. A member from our Development team has reached out to you to learn more about your use case!


Hi Richard.

The goal is to be able to hide Block, when its shapedata value has a specific value.for impact analysis diagram.


Thanks for clarifying! Did you receive an email from our team?


yes


Reply