Services Plugins FAQs

Doubt about the Plugin Fabric.js

Hi there,

I’m working on a project using the Fabric.js plugin in Bubble, and I have a few questions regarding object positioning and referencing.

  1. Is it possible to draw a shape, like a rectangle, and have its position automatically saved to the database, including properties like X and Y coordinates, width, height, etc.?

  2. Also, would I be able to reference this shape from outside the editor? For instance, could I link an item, such as a label or text box outside the Fabric.js editor, to this specific shape? My goal is to create references that highlight terms in the image, allowing labels or descriptions to correspond to specific highlighted areas.

Thank you for any insights or guidance on how to implement these features!

1 Like

Hello @prof.lucasmansueto ,

Thank you for reaching out to us.

Regarding your question, when you create a rectangle or another shape, you can save those properties if you are using dynamic values. In the actions, you have the fields “Top” and “Left” for the X and Y coordinates, as well as the width and height.

However, the use case you described is not fully clear. Is your question about the possibility of having these values as states when you click on an element? Could you please explain more about how you envision such functionality to work with the plugin?

Thanks, and I look forward to your reply.

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3