[squeak-dev] The Trunk: Morphic-dtl.1449.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jun 12 12:23:07 UTC 2018


David T. Lewis uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/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 at 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]
+ !



More information about the Squeak-dev mailing list