How do I control the labeling of a segment?

Bug #1796560 reported by hilaire on 2018-10-07
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Dr. Geo II
Hannes Hirzel

Bug Description

How to control it programmatically in Smalltalk sketch?

Full request:

Related branches

Changed in drgeo:
status: Confirmed → Fix Committed
hilaire (hilaire-fernandes) wrote :

See how to move the label position with a delta from the reference point.

| c ptA|
c := DrGeoCanvas new.
ptA := c point: 0@0.
ptA costume computeTextPositionDelta: 25@ -25.

Use the #constraintTextPosition: message to provide coordinates position, but it is tricky to use at it requires pixel position.

Changed in drgeo:
milestone: wip → 19.03
Changed in drgeo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers