Re: Non-coder contribution: Adding midpoints to shapes



On Sat, 2005-04-23 at 10:31 -0300, loli wrote:
On Fri, 15 Apr 2005 23:03:06 -0700, Lars Clausen wrote
Here's a specific piece of work that non-coders can do for Dia:  We
recently added the concept of midpoints to shapes, whereby a shape with

a midpoint defined can be connected to by dragging a line to 
anywhere on the shape, and the line will point towards the midpoint, 
but end at the edge.  

Please confirm or correct:
 This behabior will occur with  new version of Dia (or with CVS version).
With present version of Dia,  a midpoint connection is just another connection
point:
you have to "touch it" ... and the line will end at it.  

Indeed.  Currently only with CVS version, as I want the objects ready in
the next version.  In a shape file, the midpoint connection looks like
another connection (i.e. <point x="1.234" y="5.678">) but with
'main="yes"' added (i.e. <point x="2.345" y="6.789" main="yes">).  In
0.94 and earlier, the midpoint connection cannot be distinguished from a
normal connection.

I've programmatically added midpoints to almost all shapes in CVS, but
of course such an approach does not do every shape correctly.  Thus, we
need to check that the placement is right for every shape.  Coordination
of this effort happens at http://bugzilla.gnome.org/show_bug.cgi?
id=300799

-Lars

-- 
Lars Clausen <lars raeder dk>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]