{"id":0,"registry":{"0":{"submorphs":[],"scripts":[],"id":"2218969D-71CA-4642-93FD-9513ED5EDF09","shape":{"__isSmartRef__":true,"id":1},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"__serializedExpressions__":["_Position","originalExtent","distanceToDragEvent"],"showsHalos":false,"name":"ScalingCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":2},"draggingEnabled":true,"dragStartPoint":null,"originalTargetExtent":null,"eventHandler":{"__isSmartRef__":true,"id":6},"originalTargetInnerBounds":null,"relativeOrigin":null,"derivationIds":[7147,"16E962DF-21E9-4FE6-8B9B-953F0E908113","ADD0B5C0-0DC6-4D8E-9C2A-0EC7E3C71F21"],"moved":true,"attributeConnections":[{"__isSmartRef__":true,"id":7}],"doNotSerialize":["$$cornerName"],"doNotCopyProperties":["$$cornerName"],"originalTargetBounds":null,"cornerName":"bottomRight","_ClipMode":"visible","prevScroll":[0,0],"grabbingEnabled":false,"originalScale":1,"isScaleCorner":true,"_Rotation":0,"_Scale":0.9978308026030369,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","originalExtent":"lively.pt(239.0,138.0)","distanceToDragEvent":"lively.pt(34.8,-13.5)"},"1":{"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"_BorderWidth":0,"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(28.0,26.0)","_BorderColor":"Color.rgb(145,145,145)","_Fill":"Color.rgb(66,66,66)","_Padding":"lively.rect(0,0,0,0)"},"2":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":4,"comment":"Scale a morph without using halos. ","partName":"ScalingCorner","lastModifiedDate":{"__isSmartRef__":true,"id":3},"revisionOnLoad":148786,"changes":[{"__isSmartRef__":true,"id":4}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3":{"isSerializedDate":true,"string":"Thu Feb 28 2013 11:51:13 GMT+0100 (CET)"},"4":{"date":{"__isSmartRef__":true,"id":5},"author":"jenslincke","message":"no comment","id":"ED4E6270-A26D-4AA4-9C85-F1C2A8D6152D"},"5":{"isSerializedDate":true,"string":"Wed Mar 06 2013 15:12:56 GMT+0100 (CET)"},"6":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"cornerName","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"alignToOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"8":{"onDrag":{"__isSmartRef__":true,"id":9},"onDragEnd":{"__isSmartRef__":true,"id":17},"onDragStart":{"__isSmartRef__":true,"id":25},"reset":{"__isSmartRef__":true,"id":33}},"9":{"varMapping":{"__isSmartRef__":true,"id":10},"source":"function onDrag(evt) {\n    var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n    this.owner.setScale(this.originalScale + (moveDelta.x / this.owner.getExtent().x))\n\n}","funcProperties":{"__isSmartRef__":true,"id":15},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11}},"11":{"$super":{"__isSmartRef__":true,"id":12}},"12":{"varMapping":{"__isSmartRef__":true,"id":13},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world)\n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":14},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13":{"obj":{"__isSmartRef__":true,"id":0},"name":"onDrag"},"14":{},"15":{"timestamp":{"__isSmartRef__":true,"id":16},"user":"jenslincke","tags":[]},"16":{"isSerializedDate":true,"string":"Wed Mar 06 2013 15:10:01 GMT+0100 (CET)"},"17":{"varMapping":{"__isSmartRef__":true,"id":18},"source":"function onDragEnd(evt) {\n    this.dragStartPoint = null;\n    this.originalScale = 1;\n}","funcProperties":{"__isSmartRef__":true,"id":23},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19}},"19":{"$super":{"__isSmartRef__":true,"id":20}},"20":{"varMapping":{"__isSmartRef__":true,"id":21},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world)\n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":22},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21":{"obj":{"__isSmartRef__":true,"id":0},"name":"onDragEnd"},"22":{},"23":{"timestamp":{"__isSmartRef__":true,"id":24},"user":"jenslincke","tags":[]},"24":{"isSerializedDate":true,"string":"Wed Mar 06 2013 15:11:23 GMT+0100 (CET)"},"25":{"varMapping":{"__isSmartRef__":true,"id":26},"source":"function onDragStart(evt) {\n    this.originalScale = this.owner.getScale();\n    this.dragStartPoint = evt.mousePoint;\n}","funcProperties":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27}},"27":{"$super":{"__isSmartRef__":true,"id":28}},"28":{"varMapping":{"__isSmartRef__":true,"id":29},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world)\n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":30},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29":{"obj":{"__isSmartRef__":true,"id":0},"name":"onDragStart"},"30":{},"31":{"timestamp":{"__isSmartRef__":true,"id":32},"user":"jenslincke","tags":[]},"32":{"isSerializedDate":true,"string":"Wed Mar 06 2013 15:10:56 GMT+0100 (CET)"},"33":{"varMapping":{"__isSmartRef__":true,"id":34},"source":"function reset() {\n    this.isScaleCorner = true\n    this.setExtent(pt(10,10));\n    this.setPosition(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":35},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34":{"this":{"__isSmartRef__":true,"id":0}},"35":{"timestamp":{"__isSmartRef__":true,"id":36},"user":"jenslincke","tags":[]},"36":{"isSerializedDate":true,"string":"Wed Mar 06 2013 15:11:55 GMT+0100 (CET)"},"isSimplifiedRegistry":true}}