Solved

How to hide a shape while using an API extension


Badge +4

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

icon

Best answer by Richard U 5 July 2024, 19:18

View original

Comments

Userlevel 3
Badge +7

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.

 

Badge +4

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?

Userlevel 3
Badge +7

@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!

Badge +4

Hi Richard.

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

Userlevel 3
Badge +7

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

Badge +4

yes

Reply