Date: prev next · Thread: first prev next last
August 2019 Archives by date, by thread · List index


https://bugs.documentfoundation.org/show_bug.cgi?id=126648

--- Comment #11 from Regina Henschel <rb.henschel@t-online.de> ---
(In reply to andreas_k from comment #10)
I had a look into source file
https://opengrok.libreoffice.org/xref/core/extras/source/palettes/standard.
soe?r=b15fef02

Is there an reason that each viewbox is different?

The viewBox defines a coordinate system for its content. It allows to exactly
determine the position and and size of its content parts in regard to other
content parts. Because it is pure vector graphic, it does not have any "size".
The author of a marker can use a viewBox as he likes.

 how the size will be
defined? from the viewbox (and there size) it's not possible to define the
arow size.

The size is determined by the style of the object, which uses the arrow. The
style has parts 'draw:marker-start="Circle" draw:marker-start-width="1cm"', for
example. That means: Use the marker with name "Circle" and scale it so, that
its width is 1cm. The rectangle given be the viewBox (third and forth value of
it) is scaled with keeping ratio, so that the width of the viewBox is 1cm.

This width is set in the UI in the "Line" dialog for direct formatting or in a
graphic style in tab "Line". The default width, when switching on a marker, is
determined by the thickness of the line. When changing the line width the
marker width is adapted automatically, but you can set a different value
manually. 

 And if there is somewhere an parameter for the size in the code,
than it should be not to complicated to add an size drop down menu to the
array dialog window.

The drop-down menu for the type of the marker is not a good place for it. But I
can think of a section in the side bar, which provides a simplified UI. Keep in
mind, that you have the option "center" in addition to the width, and that in
ODF you can use an arbitrary value for the width and use arbitrary paths for
the marker, only that it needs to be closed.

The situation is different in OOXML. There you are restricted to a fix set of 6
marker types (incl. none) and a fix set of the three size values: large,
medium, small. See 20.1.10.32 to 20.1.10.34 in the OOXML standard.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.