penrose/penrose

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

開放

#874 建立於 2022年2月2日

 (1 則留言) (0 個反應) (0 位負責人)Haskell (224 個分叉)batch import
good first issue

倉庫指標

星標
 (4,756 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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! :-)

貢獻者指南