[squeak-dev] The Trunk: Graphics-mt.441.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Oct 23 09:16:52 UTC 2020


Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.441.mcz

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

Name: Graphics-mt.441
Author: mt
Time: 23 October 2020, 11:16:33.855975 am
UUID: f361d2b2-6806-6147-a702-9ae9b4a6f9ec
Ancestors: Graphics-mt.440

Some clean up around DisplayTransform. Thanks to Stephan Lutz (stlu)!

=============== Diff against Graphics-mt.440 ===============

Item was changed:
  ----- Method: CompositeTransform>>asMorphicTransform (in category 'converting') -----
  asMorphicTransform
  	"Squash a composite transform down to a simple one"
+ 	^ MorphicTransform
+ 		offset: (self localPointToGlobal: 0 at 0) negated
+ 		angle: self angle
+ 		scale: self scale!
- 	^ MorphicTransform offset: self offset angle: self angle scale: self scale!

Item was removed:
- ----- Method: CompositeTransform>>offset (in category 'accessing') -----
- offset
- 	^ (self localPointToGlobal: 0 at 0) negated!

Item was removed:
- ----- Method: IdentityTransform>>offset (in category 'accessing') -----
- offset
- 	^0 at 0!

Item was changed:
  ----- Method: MatrixTransform2x3>>offset (in category 'accessing') -----
  offset
+ 	"The translation applied to all transformed points."
+ 	"Note: While other transform types also implement this method their actual behavior can differ. Only use it if you know what kind of transform you have on hand. Otherwise, use #localPointToGlobal: instead."
  	^self a13 @ self a23!

Item was changed:
  ----- Method: MorphicTransform class>>offset:angle:scale: (in category 'instance creation') -----
+ offset: aPoint angle: radians scale: factor
- offset: aPoint angle: a scale: s
  
+ 	^ self basicNew setOffset: aPoint angle: radians scale: factor!
- 	^ self basicNew setOffset: aPoint angle: a scale: s!

Item was changed:
  ----- Method: MorphicTransform>>offset (in category 'accessing') -----
  offset
+ 	"The translation applied to the transformed coordinate system's origin."
+ 	"Note: While other transform types also implement this method their actual behavior can differ. Only use it if you know what kind of transform you have on hand. Otherwise, use #localPointToGlobal: instead."
  	^ offset
  !



More information about the Squeak-dev mailing list