Created attachment 132594 [details]
Two Arrow and two rectangle
When I draw a custom shapes like arrow, I don't need the viewBox, but this is not possible.
I have found a workaround that is to set the type at "line-callout-1" and the svg:width="0.001cm" svg:height="0.001cm"
...in this way the svg:viewBox is very small and always under the handle, therefore you can not see
In all type of custom shapes line-callout-1 line-callout-2 line-callout-3 the viewBox follow the handle, but follow two of the three handle.
If I have only two handle there is not problem because the viewbox follow one handle and function perfectly
But if there is three handle the second handle follow the first handle and it does not work well
I insert an attachment, two simple arrows, with two or three handles that I have been able to achieve with the help of Regina Henschel and I want to thank a lot.
We need to create a type of custom shapes where viewBox follows only a handle
Another great feature would be to add the ability to set the viewBox through the handles variables, so that the handles can act as if you move nodes
In the attached file it is also a rectangle for the displacement of the nodes and a CustomShapes rectangle in which the viewBox does not follow the nodes
There is a misunderstanding in the purpose of the attribute svg:viewBox. A viewBox defines a transformation from the outer coordinatesystem given by the svg:width, svg:height, svg:x and svg:y attributes to the internal, unit less coordinate system of the geometry of the shape. Therefore you always need the attribute svg:viewBox.
You should not use predefined draw:type values, because they are used for those shapes, which correspond to the predefined shapes of OOXML, and import and export code relays on those values.
You cannot define a dependency of the values of svg:viewBox from the values of handles. That is not possible in ODF. You only can make a UI, which will help you calculate suitable values for the svg:viewBox element. But currently there exist no UI at all for defining own custom shapes, therefore adding such feature is yet not possible.
And to be honest, I do not understand, why the viewBox is a problem for you.
sportegioco: any comments?
Custom shape creation feature request is bug 101862
(In reply to Buovjaga from comment #2)
> sportegioco: any comments?
> Custom shape creation feature request is bug 101862
Could you please answer the question above?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the question is answered
Dear Bug Submitter,
This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INSUFFICIENTDATA
due to lack of needed information.
For more information about our NEEDINFO policy please read the
wiki located here:
If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
Thank you for helping us make LibreOffice even better for everyone!
Dear Bug Submitter,
Please read this message in its entirety before proceeding.
Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):
a) Provide details of your system including your operating
system and the latest version of LibreOffice that you have
confirmed the bug to be present
b) Provide easy to reproduce steps – the simpler the better
c) Provide any test case(s) which will help us confirm the problem
d) Provide screenshots of the problem if you think it might help
e) Read all comments and provide any requested information
Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:
a) respond via email
b) update the version field in the bug or any of the other details
on the top section of our bug tracker