Hi,

On Wed, Sep 10, 2008 at 11:17 PM, Barry
<[EMAIL PROTECTED]> wrote:
> Hi Ruud
>
> No sorry I just tried this made no difference in the browser the image just
> displays the actual image I want but if I open in inkscape I can see all the
> interconnecting roads outside of the viewable box.  We need to do a clean
> crop where by all that is placed inside the viewbox is all that is added to
> the svg not anything else as it is making the file to big.
>

If I am not wrong interpreting your questions, your clean cropping is
very difficult to do and it can't be achieved by simple copying/clone
the intersected element with your rectangle crop. Because
getIntersectionList will return anything that intersect the area not
within the area. So if the intersected node/element is big enough,
part of it is inside the area and the other part is outside the area,
this node will still returned.

In this case, you need to use certain algorithm to really cut/crop
that element exactly at the crop boundary which is not easy (depending
on the node type rect, path, line, etc). For straight line eg:
rect,polygon/line is not that hard, but for curve/arc is harder.

Cheers
Tonny Kohar
-- 
Sketsa SVG Editor
imagine, design, create ...
http://www.kiyut.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to