Still very new to GoDiagram, and I couldn’t find anything about this on the forums, so:
I have managed to get a modal pan tool working, so that users can click and drag to pan the document. I also have things set up so that the Document will automatically grow as nodes are added beyond the current bounds of the document, at least to the right (east) and down (south).
What I would like to be able to do is grow the document up (north) and left (west), ideally if a user pans on those directions. Given the starting conditions, it would mean that new objects added to the diagram would have negative coordinates (which is fine).
So far, I’ve implemented a GrowDocument(int direction,float amount) method in a subclass of GoDocument, expanding the document’s ‘Bounds’. However, I can’t get that growth to be reflected in the View. I’m most likely manipulating the wrong properties, but I’m stumped for now.
Any advice would be appreciated. Thanks much!