penrose/penrose

SVG output is giving Text a random (and unused) rotation

Open

#874 建立於 2022年2月2日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Haskell (4,756 star) (224 fork)batch import
good first issue

描述

This is the output of a Style program that doesn't specify any rotation for the Text GPI. Note the totally random numbers under transform (which seem to have no effect on the appearance of the SVG):

<text fill="#000000" fill-opacity="1" stroke="none" transform="rotate(0, 104.90760531430058, 71.40385032616138)" style="font:     12px Palatino;" x="131.00526156430058" y="79.89994407616138" width="52.1953125" height="8.677734375" ascent="8.49609375" descent="0.181640625" text-anchor="middle" alignment-baseline="middle" dominant-baseline="middle" ensureOnCanvas="true">
<title>
w.text</title>
Some text</text>

These random numbers shouldn't be assigned—and the default sampler shouldn't try assigning a random rotation to text. That definitely violates the principle of least surprise! :-)

貢獻者指南