kopia lustrzana https://github.com/backface/turtlestitch
				
				
				
			tweaked contributed code and updated history
							rodzic
							
								
									e052d21126
								
							
						
					
					
						commit
						9ab71592aa
					
				|  | @ -2797,3 +2797,6 @@ v4.0.4 draft features: | |||
| end - bulk of 151215 | ||||
| ++++++++++++++++++++++++++ | ||||
| 
 | ||||
| 151215 - contributions | ||||
| ------ | ||||
| * Objects, Paint: Automatic Sprite Center Detection, Thanks, Craxic!! | ||||
|  |  | |||
|  | @ -6497,7 +6497,7 @@ Costume.prototype.canvasBoundingBox = function (pic) { | |||
| 
 | ||||
| Costume.prototype.boundingBox = function () { | ||||
|     return this.canvasBoundingBox(this.contents); | ||||
| } | ||||
| }; | ||||
| 
 | ||||
| // Costume duplication
 | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										5
									
								
								paint.js
								
								
								
								
							
							
						
						
									
										5
									
								
								paint.js
								
								
								
								
							|  | @ -59,6 +59,7 @@ | |||
|     Sep 29 - tweaks (Jens) | ||||
|     Sep 28 [of the following year :)] - Try to prevent antialiasing (Kartik) | ||||
|     Oct 02 - revert disable smoothing (Jens) | ||||
|     Dec 15 - center rotation point on costume creating (Craxic) | ||||
|  */ | ||||
| 
 | ||||
| /*global Point, Rectangle, DialogBoxMorph, fontHeight, AlignmentMorph, | ||||
|  | @ -71,7 +72,7 @@ | |||
| 
 | ||||
| // Global stuff ////////////////////////////////////////////////////////
 | ||||
| 
 | ||||
| modules.paint = '2015-October-02'; | ||||
| modules.paint = '2015-December-15'; | ||||
| 
 | ||||
| // Declarations
 | ||||
| 
 | ||||
|  | @ -607,7 +608,7 @@ PaintCanvasMorph.prototype.updateAutomaticCenter = function () { | |||
|     if (this.automaticCrosshairs) { | ||||
|         // Calculate this.rotationCenter from this.paper
 | ||||
|         var rotationCenter = this.calculateCanvasCenter(this.paper); | ||||
|         if (rotationCenter != null) { | ||||
|         if (rotationCenter !== null) { | ||||
|             this.rotationCenter = rotationCenter; | ||||
|         } | ||||
|     } | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Jens Mönig
						Jens Mönig