Dynamic-Book / drgeo

GNU Dr. Geo, a Dynamic Knowledge Model on geometry
https://www.gnu.org/s/dr-geo
GNU General Public License v3.0
18 stars 1 forks source link

Show the angle name #7

Closed hilaire closed 9 months ago

hilaire commented 9 months ago

When defined, the name of the angle is not displayed. Adjust the method as below:

DrGAngleGeometricMorph>>roundedValueString
    | roundedValueString |
    roundedValueString := mathItem degreeAngle rounded asString, '°'.
    mathItem name isEmptyOrNil ifFalse: [
        roundedValueString := String streamContents: [ :str |
                str nextPutAll: mathItem name;
                    nextPutAll: ' = ';
                    nextPutAll: roundedValueString] ].
    ^roundedValueString