The Inbox: Morphic-dtl.1449.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Morphic-dtl.1449.mcz

commits-2
David T. Lewis uploaded a new version of Morphic to project The Inbox:
http://source.squeak.org/inbox/Morphic-dtl.1449.mcz

==================== Summary ====================

Name: Morphic-dtl.1449
Author: dtl
Time: 11 June 2018, 11:44:21.415017 pm
UUID: de56abb6-cb20-4f20-94e8-d046fb1ea057
Ancestors: Morphic-pre.1448

Move methods Morph rotationCenter and rotationCenter: from 'Etoys-geometry' to 'geometry eToy' for consistency with other implementers in Morphic, and also as required for unloading package Etoys. See also EToys-hjh.333.

=============== Diff against Morphic-pre.1448 ===============

Item was added:
+ ----- Method: Morph>>rotationCenter (in category 'geometry eToy') -----
+ rotationCenter
+ "Return the rotation center of the receiver. The rotation center defines the relative offset inside the receiver's bounds for locating the reference position."
+ ^self valueOfProperty: #rotationCenter ifAbsent:[0.5@0.5]
+ !

Item was added:
+ ----- Method: Morph>>rotationCenter: (in category 'geometry eToy') -----
+ rotationCenter: aPointOrNil
+ "Set the new rotation center of the receiver. The rotation center defines the relative offset inside the receiver's bounds for locating the reference position."
+ aPointOrNil isNil
+ ifTrue:[self removeProperty: #rotationCenter]
+ ifFalse:[self setProperty: #rotationCenter toValue: aPointOrNil]
+ !