<div dir="ltr"><div>I'm a little late here. <br></div><div>TextMorph does not really need TextAnchor I think.<br></div><div>You can just drop morphs on the text and select avoid occlusions in the menu. <br></div><div>What are the use of text anchors instead just dropped in morphs ?</div><div>I filed in TextAnchorPlacement change set and it interferes somewhat with the avoid occlusions functions.</div><div><br></div><div>Best,</div><div>Karl</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 28, 2019 at 4:42 PM <<a href="mailto:patrick.rein@hpi.uni-potsdam.de">patrick.rein@hpi.uni-potsdam.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi everyone,<br>
<br>
please find attached a new version of the change including an improved protocol for setting the alignment added by Chris (basically as discussed below). :) <br>
<br>
Bests<br>
Patrick<br>
<br>
>Hi Chris,<br>
><br>
>thanks for the recommendations!<br>
><br>
>>The only thing that gave me pause was that API for #verticalAlignment:.  Initially, I just saw the selector and thought about it the same as the API for regular horizontal text alignment (e.g., #left, #center, #right, justified), and so tried:<br>
>>    self verticalAlignment: #bottom<br>
>>but this informed me that this single-argument selector is actually looking for two arguments.  That's some great flexibility that I didn't even consider, but I wonder whether this detracts from the usability of the common cases:<br>
>>   #bottom, expected to do what #(#bottom #bottom) does,   #center, to do what, uh, #(#middle #middle) does, and   #top, would do what, #top #top does.<br>
>>#verticalAlignment: handle the above, while #verticalAlignmentMorph: and #verticalAlignmentLine: could be used for advanced customizations.  Even once I figured out it wanted a two-element Array for input, I had to go back look at the method to remind myself which is first and which is second.  Separate attributes would be more readable.<br>
><br>
>That is a good point. I myself had some difficulties remembering which way they have to go... I have added a convenience case which now allows for just sending a symbol and the method takes care of converting it to the array internally (so #top results in #(top top)).<br>
><br>
>>Lastly, #middle vs. #center.  #center is what we have _everywhere_ to refer to geometric centers, all over the image, including even for horizontal text-alignment.  The only #middle in the whole image relates to a Collection element access.  Could we use #center?<br>
><br>
>Yes, that makes sense :) I renamed #middle to #center.<br>
><br>
>The new changeset includes these changes.<br>
><br>
>Bests<br>
>Patrick<br>
><br>
><br>
>["TextAnchorPlacement.cs"]<br>
><br>
><br>
>[TextAnchorPlacement.cs]<br>
["TextAnchorPlacement.cs"]<br>
</blockquote></div>