Bug 107194 - Custom Shapes, set viewBox to follow an handle
Summary: Custom Shapes, set viewBox to follow an handle
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2017-04-15 21:44 UTC by sportegioco
Modified: 2018-05-30 16:48 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Two Arrow and two rectangle (9.57 KB, application/vnd.oasis.opendocument.graphics)
2017-04-15 21:44 UTC, sportegioco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sportegioco 2017-04-15 21:44:44 UTC
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
Comment 1 Regina Henschel 2017-04-15 23:15:23 UTC
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.
Comment 2 Buovjaga 2017-04-26 12:29:10 UTC
sportegioco: any comments?
Custom shape creation feature request is bug 101862
Comment 3 Xisco Faulí 2017-10-31 17:19:15 UTC
(In reply to Buovjaga from comment #2)
> sportegioco: any comments?
> Custom shape creation feature request is bug 101862

Dear Reporter,
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
Comment 4 QA Administrators 2018-05-02 15:47:21 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2018-05-30 16:48:26 UTC
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

Warm Regards,
QA Team

MassPing-NeedInfo-20180530