Skip to main content
Open

Group / Lock shapes and Property style methods for cloning

  • September 28, 2022
  • 0 replies
  • 22 views
  • Flemming

I would like to add the following with the websdk

  • add two shapes (a, b)
    • group (a, b)  returns c
    • editing a, still edits a (add text, border etc)
    • editing c, c.ungroup and (border applies to children)
    • You may have to place a limit on depth of tree for performance
  • Lock shape
    • add rectangle with text
    • lock (user has to specifically unlock to edit text)
  • properties clone and apply (apply a set of styles to objects with one method)
    • add rect, set style 
    • clone style as var
    • add new rect, add var style
Was it helpful?

0 replies

No replies yet...

Reply