We are trying to design an app in which we can drag a graphObject from Palette section onto Canvas section.
Inspiration: Planogram sample
Now, We are trying to add some additional things than can be done like,
Using fixedBounds property, setting documentBounds equal to the viewportBounds.
To be not able to resize an element beyond the viewport. Using “PartResized” event, we are able to set the actual bounds of the element to be with in the viewport when trying to resize out of the viewport.
To be not able to reposition an element beyond the viewport.
We are using “SelectionMoved” event, and we are able to access the actualBounds of the element but we are unable to modify the actualBounds to be with in the viewport when we position it beyond the viewport. Need some help with this.
Screenshot of the event subject details.