Struggling with the draw:enhanced-geometry
section that involves draw:enhanced-path
and draw:equation
. I'm working on an OOo converter but can't seem to find any concrete solutions or extensive documentation about this part. Any suggestions on how to approach it?
The following is a snippet of the code that has me stuck (drawing a balloon):
"draw:enhanced-geometry": [{
"$": {
"svg:viewBox": "0 0 21600 21600",
"draw:text-areas": "800 800 20800 20800",
"draw:type": "round-rectangular-callout",
"draw:modifiers": "3289.58566629339 27438.6415787058",
"draw:enhanced-path": "M 3590 0 X 0 3590 L ?f2 ?f3 0 8970 0 12630 ?f4 ?f5 0 18010 Y 3590 21600 L ?f6 ?f7 8970 21600 12630 21600 ?f8 ?f9 18010 21600 X 21600 18010 L ?f10 ?f11 21600 12630 21600 8970 ?f12 ?f13 21600 3590 Y 18010 0 L ?f14 ?f15 12630 0 8970 0 ?f16 ?f17 Z N"
},
"draw:equation": [
{
"$": {
"draw:name": "f0",
"draw:formula": "$0 -10800"
}
},
...
// Remaining equations have been omitted for brevity
],
"draw:handle": [{
"$": {
"draw:handle-position": "$0 $1"
}
}]
}]