Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
spot-web-app
Commits
68270242
Commit
68270242
authored
Apr 19, 2021
by
Alexandre Duret-Lutz
Browse files
adjust the SVG returned for incomparable formulas
the w₃ label could have the bottom of its "3" clipped
parent
0ccfb56d
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/spotapi.py
View file @
68270242
...
...
@@ -558,12 +558,12 @@ def translate(ltlformula, method='GET'):
svg_compare_list
=
[
(
"""<svg width="200px" height="100px" viewBox="0 0 200 100">
<ellipse cx="66" cy="
50
" rx="60" ry="40" style='fill:cyan;opacity:0.3' />
<ellipse cx="132" cy="
50
" rx="60" ry="40" style='fill:magenta;opacity:0.2' />
<text text-anchor="middle" x="50" y="5
3
">w₄</text>
<text text-anchor="middle" x="150" y="5
3
">w₂</text>
<text text-anchor="middle" x="100" y="5
3
">w₁</text>
<text text-anchor="middle" x="100" y="9
9
">w₃</text>
<ellipse cx="66" cy="
48
" rx="60" ry="40" style='fill:cyan;opacity:0.3' />
<ellipse cx="132" cy="
48
" rx="60" ry="40" style='fill:magenta;opacity:0.2' />
<text text-anchor="middle" x="50" y="5
1
">w₄</text>
<text text-anchor="middle" x="150" y="5
1
">w₂</text>
<text text-anchor="middle" x="100" y="5
1
">w₁</text>
<text text-anchor="middle" x="100" y="9
6
">w₃</text>
</svg>"""
,
"The two formulas are incomparable."
),
(
"""<svg width="200px" height="100px" viewBox="0 0 200 100">
<ellipse cx="100" cy="50" rx="90" ry="40" style='fill:cyan;opacity:0.3' />
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment