It is possible to show the value of a variable when you create a custom shapes? It would be very important to help in debugging.
There is a way to draw something like this: draw:enhanced-geometry with a draw:text-areas and in the text area print the variable value?
...or any other way to show variable or to debug?
This is neither an enhancement request nor a bug report, but a support request. Please use a forum or mailing list for these kind of questions.
Furthermore the question is not clear. What kind of "variable"? What kind of "creating", via macro, via UI? What is the exact situation of "when create"?
You can use a Basic macro and the Basic IDE to examine the shape, and you can save the document in flat file format and look at the stored values with an editor.
The status of this issue is surely not "NEW".
I forgot: What do you want to "debug"?
Created attachment 131402 [details]
Sorry for mistake in question category,
This is a simple custom shapes, an arrow that have this code:
<draw:custom-shape draw:name="Arrow" draw:style-name="gr1" draw:text-style-name="P1"
draw:layer="layout" svg:width="10cm" svg:height="2cm" svg:x="1cm" svg:y="8cm">
<draw:enhanced-geometry svg:viewBox="0 0 6 9" draw:type="non-primitive"
draw:modifiers="0 0 6 0" draw:enhanced-path="L $0 $1 $2 $3">
<draw:handle draw:handle-position="$0 $1" />
<draw:handle draw:handle-position="$2 $3" />
The question is:
When i move an handle, is possible to print in real time in the page (... in a text area or in other way) the value of $0 or $1 or other variable ...if there were like ?f0 ?f1
...like in the example in attachment
From my experiences with custom shape creation, I can understand the need: Is is very tedious to (mentally) match the appearance of a shape to its numerical coordinates, particularly if they are expressed in variables.
Allowing to show the variables may be one solution (like debugging with console print statements) there may be other ways, too, like having a live, tabular overview of points in a shape or some firebug-like introspection tools…
OK, ma there is now a way to show the variable like a text in the page or in a consol or via macro or in other way?
...and there is a way or a workaround to not show the svg:viewBox but only the draw?
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
Thank you to reply
sportegioco: check out what the design team has been up to, with Jan D here: http://listarchives.libreoffice.org/global/design/msg08219.html
* Custom Shapes
+ Had a kick-off today
Jan: I guess it would make sense to involve sportegioco in the custom shapes work somehow as existing users of the feature are pretty rare?