Layout on Design Surface

Thread is closed for posting
2 posts, 1 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 30 Dec 2010 Link to this post

    You need to do some work on the algorithm you use for auto layout on the design surface; it's pants!

    FWIW, I believe the algorithm should: 
    1. attempt to locate linked objects close to one another
    2. minimize the crossing of lines of association
    3. maximize the distance between points on an object where lines of association enter/leave the object
    OK, so this is prolly going to be waaaay down on the list of Things To Do with OA, but still. You're promoting the Visual Designer as Way Forward for model generation so iot would be nice if, out of the box, it actually laid out any model that was even a little bit complex in a way that actually aided the designer/developer in visualising what it is that they are working on.

    Just the 2d worth of a visual designer newbie.

  2. Answer
    Dimitar Kapitanov
    Dimitar Kapitanov avatar
    632 posts

    Posted 03 Jan 2011 Link to this post

    Hi Stuart Hemming,
    Currently we use the layout mechanism provided from Microsoft.Diagramming itself . As you might imagine it has no understanding of persistence and domain knowledge, that is why the factors you've mentioned are not taken into account. What I can promise though we will add for Q1 a lot of improvements for working with models: filtering, sorting, colorizing, domain roles. I am not sure we will go the ling way of developing a new layout algorithm for for the built-in diagramming tool. When we feel it is the right moment, we will probably switch the whole designer implementation to custom WPF one based on the best diagramming solutions found in the market - but it will not be anytime soon.
    Thanks for sharing your experience with us, and do not hesitate to give us more if required.

    Dimitar Kapitanov
    the Telerik team
    Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Back to Top