Re: Q: Arc lines =?windows-1251?q?doesn=92t_=93exists=94_in_shape?= =?windows-1251?q?_file?=



On 18.07.2005 08:53, Christian Gutsov wrote:
Hello DIA- flowchart,

I try to make new shapes using Dia (Arcs,lines, boxes, polygons..) as drawing program. This shapes is a symbols that are simply not included in Dia (as example in Electrical Library). Usually if the symbols have only lines and ellipse there is not problem after exporting file in shape, but when I make symbols with arc lines they simply doesn’t “exists” in shape file, nevertheless in PNG file everything look OK! (the arc lines exist).
Should be fixed in cvs:

2005-03-06  Hans Breuer  <hans breuer org>

        * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
        large_arc, thus produce correct arc output (like diasvg.py does;),
        fixes bug #144401

(example of two arc line shape file) --------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <shape xmlns="http://www.daa.com.au/~james/dia-shape-ns";; xmlns:svg="http://www.w3.org/2000/svg";;> <name>Legrand - 2arc</name> <icon>2arc.png</icon> <connections/> <aspectratio type="fixed"/> <svg:svg> <svg:path style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" d="M 5.2,2.9 A 3.88506,3.88506 0 1 0 8.25,2.8"/> <svg:path style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" d="M 5.45,2.85 A 5.46971,5.46971 0 1 0 8.05,2.8"/> </svg:svg>

The arc output is supposed to be contained in the path element.

--------------------------------------------------------------------------------------------------------------- I like to worn you in last to lines where is coordinates of this arc lines "<svg:path style=........." I think that there is the problem.

Please give me your suggestion how to solve this problem .

Build from cvs or wait for next version.

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert



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