Skip to main content

Hello,

I have a created a custom shape library with a set of properties for each shape. Through my custom extension I add additional properties to these shapes. It is possible to block adding custom data to custom shapes through Custom shape right-panel? So that I can only add properties via the custom extension.

Thanks, 

Darina

I'm also wondering if there are other event handlers for custom shapes, such as the "onclick" handler? Mentioned here:

 

In my extension I really need to track the movement of a custom shape across the page. I'm looking for events like "onmove", "ondrop", something like pointermove and pointerup events but for the page itself, not the panel. Is there any way to do this? 

Thanks in advance! 


Hi Darina,

Unfortunately, neither is supported right now (we only have onClick, and it’s not possible to disable the “Add Custom Data” feature in the custom shapes right panel)

Sorry about that.


Alex


Hi Darina,

Following up here -- would you mind giving more specifics on your end goal? Maybe we can find a workaround using other functions.

Alex


Hi Alex,

As an example, let's say there are 2 custom shapes. Custom shape 2 inside custom shape 1. I want these 2 shapes to move together as a group when I move shape 1. I am aware about grouping shapes but this doesn't solve my problem. I can't create a link from a group to other shapes and I'm not sure about the “ungroup” function, I can't find one. Now I am trying to use default Containers, not Custom shape library.

As for blocking adding custom data, I need somewhere to store key:value pairs as shape properties. Custom data looks good, but the keys for the properties need to be from a specific list, and in this case, any key can be added. Now I am trying to I use properties of BlockProxy to write and store data and sync them with my extension. 


Reply