TitleBar.setTitle missing'\n );\n this.assert(\n function () {\n var c = aPart.attributeConnections[1];\n return c.targetObj.name == \"ActiveButton\" &&\n c.targetMethodName == \"toggleState\" &&\n c.sourceAttrName == \"active\";\n },\n 'connection Whiteboard.channelName --> TitleBar.setTitle missing'\n );\n}","funcProperties":{"__isSmartRef__":true,"id":73},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"72":{"this":{"__isSmartRef__":true,"id":66}},"73":{},"74":{"varMapping":{"__isSmartRef__":true,"id":75},"source":"function test03ToolsPresent(aPart) {\n this.assert(\n function () {\n return aPart.chat.name == \"ChatPane\" &&\n aPart.chat instanceof lively.morphic.Box;\n },\n 'ChatPane is missing'\n );\n this.assert(\n function () {\n return aPart.pencilStyler.name == \"PencilStyler\" &&\n aPart.pencilStyler instanceof lively.morphic.Box;\n },\n 'PencilStyler is missing'\n );\n}","funcProperties":{"__isSmartRef__":true,"id":76},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"75":{"this":{"__isSmartRef__":true,"id":66}},"76":{},"77":{"varMapping":{"__isSmartRef__":true,"id":78},"source":"function test04DeactivatedOnStartup(aPart) {\n this.assert(!aPart.active, 'WhiteBoard should be inactive on startup');\n}","funcProperties":{"__isSmartRef__":true,"id":79},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"78":{"this":{"__isSmartRef__":true,"id":66}},"79":{},"80":{"varMapping":{"__isSmartRef__":true,"id":81},"source":"function test05DefaultChannelName(aPart) {\n this.assert(function () {\n return aPart.channelName == 'default';\n },\n 'The channel name should be default');\n}","funcProperties":{"__isSmartRef__":true,"id":82},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"81":{"this":{"__isSmartRef__":true,"id":66}},"82":{},"83":{"varMapping":{"__isSmartRef__":true,"id":84},"source":"function test06DefaultColorOnStartup(aPart) {\n this.assert(function () {\n return this.color == this.defaultColor() || this.color == null;\n },\n 'Initial color is not the default color');\n}","funcProperties":{"__isSmartRef__":true,"id":85},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"84":{"this":{"__isSmartRef__":true,"id":66}},"85":{},"86":{"varMapping":{"__isSmartRef__":true,"id":87},"source":"function test07DefaultPencilSizeOnStartup(aPart) {\n this.assert(function () {\n return this.pencilSize == this.defaultPencilSize() || this.pencilSize == null;\n },\n 'Initial pencil size is not the default pencil size');\n}","funcProperties":{"__isSmartRef__":true,"id":88},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"87":{"this":{"__isSmartRef__":true,"id":66}},"88":{},"89":{"varMapping":{"__isSmartRef__":true,"id":90},"source":"function test08DefaultPencilStyleOnStartup(aPart) {\n this.assert(function () {\n return this.pencilStyle == this.defaultPencilStyle() || this.pencilStyle == null;\n },\n 'Initial pencil style is not the default pencil style');\n}","funcProperties":{"__isSmartRef__":true,"id":91},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"90":{"this":{"__isSmartRef__":true,"id":66}},"91":{},"92":{"varMapping":{"__isSmartRef__":true,"id":93},"source":"function test09ClearWhiteboard(aPart) {\n aPart.clear();\n this.assert(function () {\n return aPart.submorphs.size() == 0;\n },\n 'Whiteboard should not hold any content after clear call');\n}","funcProperties":{"__isSmartRef__":true,"id":94},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"93":{"this":{"__isSmartRef__":true,"id":66}},"94":{},"95":{"varMapping":{"__isSmartRef__":true,"id":96},"source":"function test10CreateStrokeShape(aPart) {\n this.assert(function () {\n var dot = aPart.createStrokeShape({x: 10, y: 10});\n return (dot.eventsAreDisabled || dot.eventsAreDisabled === undefined) &&\n !dot.droppingEnabled &&\n dot.isStroke &&\n dot.shape instanceof lively.morphic.Shapes.Path &&\n dot.vertices().size() == 1;\n },\n 'createStrokeShape called with a point should return a dot shape');\n this.assert(function () {\n var square = aPart.createStrokeShape([pt(0,0), pt(10,0), pt(10,10), pt(0,10)]);\n return (square.eventsAreDisabled || square.eventsAreDisabled === undefined) &&\n !square.droppingEnabled &&\n square.isStroke &&\n square.shape instanceof lively.morphic.Shapes.Path &&\n square.vertices().size() == 4;\n },\n 'createStrokeShape should return a square shape');\n}","funcProperties":{"__isSmartRef__":true,"id":97},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"96":{"this":{"__isSmartRef__":true,"id":66}},"97":{},"98":{"varMapping":{"__isSmartRef__":true,"id":99},"source":"function test11CreateTitleBarButton(aPart) {\n var testObject,\n testButton;\n \n testObject.state = false;\n testObject.toggle = function () {\n this.testState = !this.testState;\n return this.testState;\n };\n \n // TODO call fails because aPart has no owner\n aPart.createTitleBarButton(\n \"TestButton\", \"for test purposes only\",\n testObject, \"state\", \"toggle\"\n );\n this.assert(true, 'true should be true');\n}","funcProperties":{"__isSmartRef__":true,"id":100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"99":{"this":{"__isSmartRef__":true,"id":66}},"100":{},"101":{"resizeWidth":true,"resizeHeight":true},"102":{"submorphs":[{"__isSmartRef__":true,"id":103},{"__isSmartRef__":true,"id":378},{"__isSmartRef__":true,"id":413},{"__isSmartRef__":true,"id":440},{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":481},{"__isSmartRef__":true,"id":488},{"__isSmartRef__":true,"id":495},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":542},{"__isSmartRef__":true,"id":549}],"scripts":[],"shape":{"__isSmartRef__":true,"id":575},"id":"B11C1878-EA0F-4B3C-A52B-D16BFA1D9F47","eventHandler":{"__isSmartRef__":true,"id":576},"__layered_droppingEnabled__":true,"halosEnabled":true,"colorChooser":{"__isSmartRef__":true,"id":103},"slider":{"__isSmartRef__":true,"id":495},"button":{"__isSmartRef__":true,"id":577},"showsHalos":false,"isBeingDragged":false,"name":"PencilStyler","isLockOwner":false,"layout":{"__isSmartRef__":true,"id":645},"prevScroll":[0,0],"moved":true,"alphaSlider":{"__isSmartRef__":true,"id":378},"moveTouch":false,"baseTouch":{"__isSmartRef__":true,"id":646},"selectable":false,"scrolled":false,"halosTemporaryInvisible":false,"headRevision":145365,"widthSlider":{"__isSmartRef__":true,"id":549},"borderStyleList":{"__isSmartRef__":true,"id":531},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":1},"target":null,"#startLetters":"be","whiteboard":{"__isSmartRef__":true,"id":63},"chat":{"__isSmartRef__":true,"id":648},"isCopyMorphRef":true,"morphRefId":1,"selectionDisabled":true,"_Visible":false,"__serializedExpressions__":["_Position","currentColor","distanceToDragEvent","updateBorderFillOfTarget"],"derivationIds":["00C0C3C8-927D-47D3-8C65-0C84AE5EA377"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":781},"_Rotation":0,"_Scale":0.9920279440699444,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":782},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","currentColor":"Color.rgb(160,0,152)","distanceToDragEvent":"lively.pt(212.0,-13.0)","updateBorderFillOfTarget":"Color.rgb(255,255,255)"},"103":{"submorphs":[{"__isSmartRef__":true,"id":104}],"scripts":[],"shape":{"__isSmartRef__":true,"id":297},"id":"C3C891AA-22C9-4C91-805A-AF9C0C60FE4C","eventHandler":{"__isSmartRef__":true,"id":298},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":299},"owner":{"__isSmartRef__":true,"id":102},"chooserWidget":{"__isSmartRef__":true,"id":102},"showsHalos":false,"name":"ColorChooserPane","isLockOwner":false,"selectable":false,"halosTemporaryInvisible":false,"originalScale":1,"originalRotation":0,"lastRotation":0,"slide":0,"activeSlide":{"__isSmartRef__":true,"id":105},"_ClipMode":"hidden","container":{"__isSmartRef__":true,"id":104},"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"derivationIds":["0059FAFD-A7F7-45C1-AC03-CB94C63F4849"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":301},"__LivelyClassName__":"lively.morphic.CrayonColorChooser","__SourceModuleName__":"Global.lively.morphic.ColorChooserDraft","_Position":"lively.pt(50.0,36.0)","distanceToDragEvent":"lively.pt(150.0,-12.0)"},"104":{"submorphs":[{"__isSmartRef__":true,"id":105}],"scripts":[],"id":"2A7CF12B-055D-4F0C-B9B2-5652903A08A9","shape":{"__isSmartRef__":true,"id":289},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"container","eventHandler":{"__isSmartRef__":true,"id":290},"partTests":{"__isSmartRef__":true,"id":291},"owner":{"__isSmartRef__":true,"id":103},"isLockOwner":false,"_ClipMode":"visible","prevScroll":[0,0],"__serializedExpressions__":["_Position"],"derivationIds":["797DF1CC-A658-4BAD-9679-82F97604542B"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":296},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"105":{"submorphs":[{"__isSmartRef__":true,"id":106},{"__isSmartRef__":true,"id":115},{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":133},{"__isSmartRef__":true,"id":142},{"__isSmartRef__":true,"id":151},{"__isSmartRef__":true,"id":160},{"__isSmartRef__":true,"id":169},{"__isSmartRef__":true,"id":178},{"__isSmartRef__":true,"id":187},{"__isSmartRef__":true,"id":196},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":214},{"__isSmartRef__":true,"id":223},{"__isSmartRef__":true,"id":232},{"__isSmartRef__":true,"id":241},{"__isSmartRef__":true,"id":250},{"__isSmartRef__":true,"id":259},{"__isSmartRef__":true,"id":268},{"__isSmartRef__":true,"id":277}],"scripts":[],"shape":{"__isSmartRef__":true,"id":286},"eventHandler":{"__isSmartRef__":true,"id":287},"_ClipMode":"visible","derivationIds":["D7E62680-48A5-4D3F-9E6F-560BECCD3944"],"id":"66AE6EF9-F258-4A75-87DF-9827314D44D9","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"owner":{"__isSmartRef__":true,"id":104},"partsBinMetaInfo":{"__isSmartRef__":true,"id":288},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"106":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":107},"eventHandler":{"__isSmartRef__":true,"id":113},"_ClipMode":"visible","derivationIds":["2C4D01C5-9A85-451A-B54D-96040E4D2398"],"id":"ADE32198-3137-463B-A15A-53ABBB73DF29","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":114},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"107":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":108},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"108":{"stops":[{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":110},{"__isSmartRef__":true,"id":111},{"__isSmartRef__":true,"id":112}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"109":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"110":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(127,127,127)"},"111":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,0,0)"},"112":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,0,0)"},"113":{"morph":{"__isSmartRef__":true,"id":106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"114":{"requiredModules":[],"idOnLoad":"ADE32198-3137-463B-A15A-53ABBB73DF29","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"115":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":116},"eventHandler":{"__isSmartRef__":true,"id":122},"_ClipMode":"visible","derivationIds":["6CF8C229-BD2C-4D0A-93F0-CF2C8A3C9966"],"id":"7673D529-7AB9-45DF-9678-4E17E8E73558","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":123},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(60.3,0.0)"},"116":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":117},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(95,94,95)"},"117":{"stops":[{"__isSmartRef__":true,"id":118},{"__isSmartRef__":true,"id":119},{"__isSmartRef__":true,"id":120},{"__isSmartRef__":true,"id":121}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"118":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"119":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(175,175,175)"},"120":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(95,94,95)"},"121":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(95,94,95)"},"122":{"morph":{"__isSmartRef__":true,"id":115},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"123":{"requiredModules":[],"idOnLoad":"7673D529-7AB9-45DF-9678-4E17E8E73558","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"124":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":125},"eventHandler":{"__isSmartRef__":true,"id":131},"_ClipMode":"visible","derivationIds":["83EE147A-4D39-4CF7-9C47-2C630088E83D"],"id":"1B780F85-FB4E-42C0-93CD-492809109309","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":132},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(120.5,0.0)"},"125":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":126},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(121,121,121)"},"126":{"stops":[{"__isSmartRef__":true,"id":127},{"__isSmartRef__":true,"id":128},{"__isSmartRef__":true,"id":129},{"__isSmartRef__":true,"id":130}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"127":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"128":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(188,188,188)"},"129":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(121,121,121)"},"130":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(121,121,121)"},"131":{"morph":{"__isSmartRef__":true,"id":124},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"132":{"requiredModules":[],"idOnLoad":"1B780F85-FB4E-42C0-93CD-492809109309","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"133":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":134},"eventHandler":{"__isSmartRef__":true,"id":140},"_ClipMode":"visible","derivationIds":["615A116C-279C-49F9-A281-8E9C570E7BAE"],"id":"F77ACE86-E875-4776-9C37-AAB0E44226EE","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":141},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(180.8,0.0)"},"134":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":135},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(255,255,255)"},"135":{"stops":[{"__isSmartRef__":true,"id":136},{"__isSmartRef__":true,"id":137},{"__isSmartRef__":true,"id":138},{"__isSmartRef__":true,"id":139}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"136":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"137":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"138":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"139":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"140":{"morph":{"__isSmartRef__":true,"id":133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"141":{"requiredModules":[],"idOnLoad":"F77ACE86-E875-4776-9C37-AAB0E44226EE","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"142":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":143},"eventHandler":{"__isSmartRef__":true,"id":149},"_ClipMode":"visible","derivationIds":["89D78D42-4DF9-42DD-8ABE-926DB54D3E2C"],"id":"B76156A3-C3F7-4BC1-91E3-D9DE1897C170","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":150},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,57.3)"},"143":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":144},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(255,0,0)"},"144":{"stops":[{"__isSmartRef__":true,"id":145},{"__isSmartRef__":true,"id":146},{"__isSmartRef__":true,"id":147},{"__isSmartRef__":true,"id":148}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"145":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"146":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(255,127,127)"},"147":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,0,0)"},"148":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,0,0)"},"149":{"morph":{"__isSmartRef__":true,"id":142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"150":{"requiredModules":[],"idOnLoad":"B76156A3-C3F7-4BC1-91E3-D9DE1897C170","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"151":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":152},"eventHandler":{"__isSmartRef__":true,"id":158},"_ClipMode":"visible","derivationIds":["A0809DF9-3142-4863-9E3B-30094192B4A4"],"id":"F7B64381-94C2-4F2A-89BF-D50D2ECA4103","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":159},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(60.3,57.3)"},"152":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":153},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,204,0)"},"153":{"stops":[{"__isSmartRef__":true,"id":154},{"__isSmartRef__":true,"id":155},{"__isSmartRef__":true,"id":156},{"__isSmartRef__":true,"id":157}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"154":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"155":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(127,230,127)"},"156":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,204,0)"},"157":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,204,0)"},"158":{"morph":{"__isSmartRef__":true,"id":151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"159":{"requiredModules":[],"idOnLoad":"F7B64381-94C2-4F2A-89BF-D50D2ECA4103","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"160":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":161},"eventHandler":{"__isSmartRef__":true,"id":167},"_ClipMode":"visible","derivationIds":["70C09E9B-345A-46C2-B463-AA6625BBF33A"],"id":"4D14B6AF-BFC4-4BE4-9B6F-7C9970D948A1","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":168},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(120.5,57.3)"},"161":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":162},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(58,0,255)"},"162":{"stops":[{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":164},{"__isSmartRef__":true,"id":165},{"__isSmartRef__":true,"id":166}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"163":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"164":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(157,127,255)"},"165":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(58,0,255)"},"166":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(58,0,255)"},"167":{"morph":{"__isSmartRef__":true,"id":160},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"168":{"requiredModules":[],"idOnLoad":"4D14B6AF-BFC4-4BE4-9B6F-7C9970D948A1","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"169":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":170},"eventHandler":{"__isSmartRef__":true,"id":176},"_ClipMode":"visible","derivationIds":["5FEE0DA8-33A4-476E-88BC-C7DBEBC6FCC2"],"id":"018B4A65-EC84-4826-8363-AE1359C16AED","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":177},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(180.8,57.3)"},"170":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":171},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(250,255,0)"},"171":{"stops":[{"__isSmartRef__":true,"id":172},{"__isSmartRef__":true,"id":173},{"__isSmartRef__":true,"id":174},{"__isSmartRef__":true,"id":175}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"172":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"173":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(253,255,127)"},"174":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(250,255,0)"},"175":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(250,255,0)"},"176":{"morph":{"__isSmartRef__":true,"id":169},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"177":{"requiredModules":[],"idOnLoad":"018B4A65-EC84-4826-8363-AE1359C16AED","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":179},"eventHandler":{"__isSmartRef__":true,"id":185},"_ClipMode":"visible","derivationIds":["DA2AC05D-EFAF-4483-B207-39982017A6CA"],"id":"BE264951-3EE3-4EB9-884B-3229A47F5F48","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":186},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,114.6)"},"179":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":180},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,255,133)"},"180":{"stops":[{"__isSmartRef__":true,"id":181},{"__isSmartRef__":true,"id":182},{"__isSmartRef__":true,"id":183},{"__isSmartRef__":true,"id":184}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"181":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"182":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(127,255,194)"},"183":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,255,133)"},"184":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,255,133)"},"185":{"morph":{"__isSmartRef__":true,"id":178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"186":{"requiredModules":[],"idOnLoad":"BE264951-3EE3-4EB9-884B-3229A47F5F48","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"187":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":188},"eventHandler":{"__isSmartRef__":true,"id":194},"_ClipMode":"visible","derivationIds":["7F1B5685-3F38-43A4-884C-CBC40394DC0B"],"id":"B7037539-514C-458C-BF94-ABF6637FEF1C","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":195},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(60.3,114.6)"},"188":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":189},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(255,0,255)"},"189":{"stops":[{"__isSmartRef__":true,"id":190},{"__isSmartRef__":true,"id":191},{"__isSmartRef__":true,"id":192},{"__isSmartRef__":true,"id":193}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"190":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"191":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(255,127,255)"},"192":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,0,255)"},"193":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,0,255)"},"194":{"morph":{"__isSmartRef__":true,"id":187},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"195":{"requiredModules":[],"idOnLoad":"B7037539-514C-458C-BF94-ABF6637FEF1C","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"196":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":197},"eventHandler":{"__isSmartRef__":true,"id":203},"_ClipMode":"visible","derivationIds":["396CF0C1-5BBD-4216-A4BA-F8B7F5826E6A"],"id":"95FDF321-2CD5-42DB-85AD-1E8EA9F76C35","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":204},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(120.5,114.6)"},"197":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":198},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,149,148)"},"198":{"stops":[{"__isSmartRef__":true,"id":199},{"__isSmartRef__":true,"id":200},{"__isSmartRef__":true,"id":201},{"__isSmartRef__":true,"id":202}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"199":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"200":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(127,202,202)"},"201":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,149,148)"},"202":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,149,148)"},"203":{"morph":{"__isSmartRef__":true,"id":196},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"204":{"requiredModules":[],"idOnLoad":"95FDF321-2CD5-42DB-85AD-1E8EA9F76C35","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"205":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":206},"eventHandler":{"__isSmartRef__":true,"id":212},"_ClipMode":"visible","derivationIds":["F1C2FBBB-79DA-4D93-8492-9E9A3593DDF5"],"id":"59C2DA1B-82E9-459D-A217-1B1C34067B96","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":213},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(180.8,114.6)"},"206":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":207},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(28,0,153)"},"207":{"stops":[{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":209},{"__isSmartRef__":true,"id":210},{"__isSmartRef__":true,"id":211}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"208":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"209":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(142,127,204)"},"210":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(28,0,153)"},"211":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(28,0,153)"},"212":{"morph":{"__isSmartRef__":true,"id":205},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"213":{"requiredModules":[],"idOnLoad":"59C2DA1B-82E9-459D-A217-1B1C34067B96","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"214":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":215},"eventHandler":{"__isSmartRef__":true,"id":221},"_ClipMode":"visible","derivationIds":["8E18196A-EF18-4E64-93BA-D26213793923"],"id":"2DB89205-8BD8-47BB-BE84-4986E7215372","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":222},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,172.0)"},"215":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":216},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(160,0,152)"},"216":{"stops":[{"__isSmartRef__":true,"id":217},{"__isSmartRef__":true,"id":218},{"__isSmartRef__":true,"id":219},{"__isSmartRef__":true,"id":220}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"217":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"218":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(208,127,204)"},"219":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(160,0,152)"},"220":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(160,0,152)"},"221":{"morph":{"__isSmartRef__":true,"id":214},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"222":{"requiredModules":[],"idOnLoad":"2DB89205-8BD8-47BB-BE84-4986E7215372","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"223":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":224},"eventHandler":{"__isSmartRef__":true,"id":230},"_ClipMode":"visible","derivationIds":["6CBD0989-9C8F-476E-A0A0-EA36B1D4FBC7"],"id":"BE5E030C-19F3-4CDD-B10C-281FAA0E608E","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":231},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(60.3,172.0)"},"224":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":225},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(154,79,0)"},"225":{"stops":[{"__isSmartRef__":true,"id":226},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":228},{"__isSmartRef__":true,"id":229}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"226":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"227":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(205,167,127)"},"228":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(154,79,0)"},"229":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(154,79,0)"},"230":{"morph":{"__isSmartRef__":true,"id":223},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"231":{"requiredModules":[],"idOnLoad":"BE5E030C-19F3-4CDD-B10C-281FAA0E608E","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"232":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":233},"eventHandler":{"__isSmartRef__":true,"id":239},"_ClipMode":"visible","derivationIds":["B643EDAC-88D7-4EEA-B7DC-493C307F3496"],"id":"61C7FF98-5DE9-4FCD-AF7B-91A06746CFD7","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":240},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(120.5,172.0)"},"233":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":234},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(255,112,116)"},"234":{"stops":[{"__isSmartRef__":true,"id":235},{"__isSmartRef__":true,"id":236},{"__isSmartRef__":true,"id":237},{"__isSmartRef__":true,"id":238}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"235":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"236":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(255,184,186)"},"237":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,112,116)"},"238":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,112,116)"},"239":{"morph":{"__isSmartRef__":true,"id":232},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"240":{"requiredModules":[],"idOnLoad":"61C7FF98-5DE9-4FCD-AF7B-91A06746CFD7","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"241":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":242},"eventHandler":{"__isSmartRef__":true,"id":248},"_ClipMode":"visible","derivationIds":["53955793-4FBE-45F4-85EA-7B307C8755F2"],"id":"5F955CE0-57CE-406D-A96C-F7595A59BE74","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":249},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(180.8,172.0)"},"242":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":243},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,151,0)"},"243":{"stops":[{"__isSmartRef__":true,"id":244},{"__isSmartRef__":true,"id":245},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":247}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"244":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"245":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(127,203,127)"},"246":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,151,0)"},"247":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,151,0)"},"248":{"morph":{"__isSmartRef__":true,"id":241},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"249":{"requiredModules":[],"idOnLoad":"5F955CE0-57CE-406D-A96C-F7595A59BE74","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"250":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":251},"eventHandler":{"__isSmartRef__":true,"id":257},"_ClipMode":"visible","derivationIds":["A4B43E1E-0123-498B-B87B-745686721B3F"],"id":"E2D29A34-F7CE-425F-B163-C5891994E587","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":258},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,229.3)"},"251":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":252},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(255,101,255)"},"252":{"stops":[{"__isSmartRef__":true,"id":253},{"__isSmartRef__":true,"id":254},{"__isSmartRef__":true,"id":255},{"__isSmartRef__":true,"id":256}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"253":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"254":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(255,178,255)"},"255":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,101,255)"},"256":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(255,101,255)"},"257":{"morph":{"__isSmartRef__":true,"id":250},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"258":{"requiredModules":[],"idOnLoad":"E2D29A34-F7CE-425F-B163-C5891994E587","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"259":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":260},"eventHandler":{"__isSmartRef__":true,"id":266},"_ClipMode":"visible","derivationIds":["DFE420EA-844A-4BC0-A9E2-294DB3CA385B"],"id":"746050FE-AB61-45C5-990B-1CB01674FF55","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":267},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(60.3,229.3)"},"260":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":261},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,142,255)"},"261":{"stops":[{"__isSmartRef__":true,"id":262},{"__isSmartRef__":true,"id":263},{"__isSmartRef__":true,"id":264},{"__isSmartRef__":true,"id":265}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"262":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"263":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(127,199,255)"},"264":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,142,255)"},"265":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,142,255)"},"266":{"morph":{"__isSmartRef__":true,"id":259},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"267":{"requiredModules":[],"idOnLoad":"746050FE-AB61-45C5-990B-1CB01674FF55","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"268":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":269},"eventHandler":{"__isSmartRef__":true,"id":275},"_ClipMode":"visible","derivationIds":["7EF565BC-5EA8-473F-9801-DC8B4E3D9FBC"],"id":"17FDD184-333D-4C5C-838D-E6A030CBD40B","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":276},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(120.5,229.3)"},"269":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":270},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(144,149,0)"},"270":{"stops":[{"__isSmartRef__":true,"id":271},{"__isSmartRef__":true,"id":272},{"__isSmartRef__":true,"id":273},{"__isSmartRef__":true,"id":274}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"271":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"272":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(200,202,127)"},"273":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(144,149,0)"},"274":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(144,149,0)"},"275":{"morph":{"__isSmartRef__":true,"id":268},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"276":{"requiredModules":[],"idOnLoad":"17FDD184-333D-4C5C-838D-E6A030CBD40B","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"277":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":278},"eventHandler":{"__isSmartRef__":true,"id":284},"_ClipMode":"visible","derivationIds":["867EF7F4-5511-4172-84F8-8D98A2E2892F"],"id":"A0178863-B59E-4BB4-91A1-434E96B615F2","__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":105},"partsBinMetaInfo":{"__isSmartRef__":true,"id":285},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(180.8,229.3)"},"278":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":279},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.3,49.3)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(229,105,255)"},"279":{"stops":[{"__isSmartRef__":true,"id":280},{"__isSmartRef__":true,"id":281},{"__isSmartRef__":true,"id":282},{"__isSmartRef__":true,"id":283}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"280":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"281":{"offset":0.05,"__serializedExpressions__":["color"],"color":"Color.rgb(242,180,255)"},"282":{"offset":0.1,"__serializedExpressions__":["color"],"color":"Color.rgb(229,105,255)"},"283":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(229,105,255)"},"284":{"morph":{"__isSmartRef__":true,"id":277},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"285":{"requiredModules":[],"idOnLoad":"A0178863-B59E-4BB4-91A1-434E96B615F2","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"286":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(241.0,286.6)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"287":{"morph":{"__isSmartRef__":true,"id":105},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"288":{"requiredModules":[],"idOnLoad":"66AE6EF9-F258-4A75-87DF-9827314D44D9","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"289":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,100.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"290":{"morph":{"__isSmartRef__":true,"id":104},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"291":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":292}},"292":{"test01IsMorph":{"__isSmartRef__":true,"id":293}},"293":{"varMapping":{"__isSmartRef__":true,"id":294},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"294":{"this":{"__isSmartRef__":true,"id":291}},"295":{},"296":{"partName":"container","requiredModules":[],"idOnLoad":"2A7CF12B-055D-4F0C-B9B2-5652903A08A9","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"297":{"_ClipMode":"hidden","_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(241.0,286.6)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(204,0,0)"},"298":{"morph":{"__isSmartRef__":true,"id":103},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"299":{"adjustForNewBounds":false,"moveVertical":false,"moveHorizontal":false,"centeredHorizontal":false},"300":{"partName":"ColorChooserPane","requiredModules":[],"idOnLoad":"C3C891AA-22C9-4C91-805A-AF9C0C60FE4C","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"301":{"reset":{"__isSmartRef__":true,"id":302},"build":{"__isSmartRef__":true,"id":306},"colorSet1":{"__isSmartRef__":true,"id":310},"colorNames":{"__isSmartRef__":true,"id":314},"gradientColor":{"__isSmartRef__":true,"id":322},"removeHiddenSlides":{"__isSmartRef__":true,"id":326},"onMouseUp":{"__isSmartRef__":true,"id":330},"colorForPos":{"__isSmartRef__":true,"id":338},"colorSet2":{"__isSmartRef__":true,"id":346},"colorSet3":{"__isSmartRef__":true,"id":350},"clear":{"__isSmartRef__":true,"id":354},"previousSlide":{"__isSmartRef__":true,"id":358},"nextSlide":{"__isSmartRef__":true,"id":362},"slides":{"__isSmartRef__":true,"id":366},"animateRight":{"__isSmartRef__":true,"id":370},"animateLeft":{"__isSmartRef__":true,"id":374}},"302":{"varMapping":{"__isSmartRef__":true,"id":303},"source":"function reset() {\n this.container = this.get(\"container\");\n this.container.setPosition(pt(0,0));\n this.slide = 0;\n var slide = this.build(this.colorSet1());\n this.container.addMorph(slide);\n this.activeSlide = slide;\n this.removeHiddenSlides(this.container);\n\n}","funcProperties":{"__isSmartRef__":true,"id":304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"303":{"this":{"__isSmartRef__":true,"id":103}},"304":{"timestamp":{"__isSmartRef__":true,"id":305},"user":"huberthesse","tags":[]},"305":{"isSerializedDate":true,"string":"Wed Mar 07 2012 06:51:11 GMT-0800 (PST)"},"306":{"varMapping":{"__isSmartRef__":true,"id":307},"source":"function build(table) {\n var slide = Morph.makeRectangle(0,0,this.getExtent().x,this.getExtent().y)\n slide.setFill(Color.rgba(255,255,255,0));\n slide.setBorderWidth(0);\n\n var colorNames = this.colorNames(table),\n x = 4, y = 5, // like MacOS colors\n extent = slide.innerBounds().extent().scaleByPt(pt(1/x, 1/y)).subPt(pt(8,8));\n //extent = pt(44,44)\n for (var j = 0; j < y; j++) {\n for (var i = 0; i < x; i++) {\n var idx = j*x+i, // running offset j*x^1 + i*y^0\n color = CrayonColors[colorNames[idx]],\n rect = extent.scaleByPt(pt(i, j)).extent(extent),\n morph = new lively.morphic.Box(rect);\n morph.applyStyle({borderColor: color, borderWidth: 1, borderRadius: 5});\n morph.setFill(this.gradientColor(color));\n morph.moveBy(pt(8*i,8*j));\n morph.ignoreEvents(); \n //morph.layout = {scaleHorizontal: true, scaleVertical: true};\n slide.addMorph(morph);\n }\n }\n //slide.layout = {adjustForNewBounds: true};\n slide.adjustForNewBounds();\n return slide;\n}","funcProperties":{"__isSmartRef__":true,"id":308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"307":{"this":{"__isSmartRef__":true,"id":103}},"308":{"timestamp":{"__isSmartRef__":true,"id":309},"user":"undefined","tags":[]},"309":{"isSerializedDate":true,"string":"Fri Mar 09 2012 03:20:35 GMT-0800 (PST)"},"310":{"varMapping":{"__isSmartRef__":true,"id":311},"source":"function colorSet1() {\n return [\"licorice iron steel snow\",\n \"maraschino spring blueberry lemon\",\n \"seafoam magenta teal midnight\",\n \"plum mocha salmon clover\",\n \"bubblegum aqua asparagus lavender\"\n ]\n}","funcProperties":{"__isSmartRef__":true,"id":312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"311":{"this":{"__isSmartRef__":true,"id":103}},"312":{"timestamp":{"__isSmartRef__":true,"id":313},"user":"huberthesse","tags":[]},"313":{"isSerializedDate":true,"string":"Fri Mar 02 2012 05:41:43 GMT-0800 (PST)"},"314":{"varMapping":{"__isSmartRef__":true,"id":315},"source":"function colorNames(table) {\n return table.join(' ').split(' ');\n}","funcProperties":{"__isSmartRef__":true,"id":320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"315":{"this":{"__isSmartRef__":true,"id":103},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":316}},"316":{"$super":{"__isSmartRef__":true,"id":317}},"317":{"varMapping":{"__isSmartRef__":true,"id":318},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"318":{"obj":{"__isSmartRef__":true,"id":103},"name":"colorNames"},"319":{},"320":{"timestamp":{"__isSmartRef__":true,"id":321},"user":"huberthesse","tags":[]},"321":{"isSerializedDate":true,"string":"Fri Mar 02 2012 05:41:30 GMT-0800 (PST)"},"322":{"varMapping":{"__isSmartRef__":true,"id":323},"source":"function gradientColor(color) {\n var gradient = new lively.morphic.LinearGradient(\n [\n {offset: 0, color: Color.white},\n {offset: 0.05, color: Color.white.mixedWith(color,0.5)},\n {offset: 0.1, color: color},\n {offset: 1, color: color}\n ],\n 'northSouth'\n );\n return gradient;\n}","funcProperties":{"__isSmartRef__":true,"id":324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"323":{"this":{"__isSmartRef__":true,"id":103}},"324":{"timestamp":{"__isSmartRef__":true,"id":325},"user":"huberthesse","tags":[]},"325":{"isSerializedDate":true,"string":"Tue Feb 21 2012 09:34:15 GMT-0800 (PST)"},"326":{"varMapping":{"__isSmartRef__":true,"id":327},"source":"function removeHiddenSlides(morph) {\n for(var i = 0; i < morph.submorphs.length; i++ ) {\n if(morph.submorphs[i] !== morph.owner.activeSlide) {\n morph.submorphs[i].remove();\n }\n }\n }","funcProperties":{"__isSmartRef__":true,"id":328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"327":{"this":{"__isSmartRef__":true,"id":103}},"328":{"timestamp":{"__isSmartRef__":true,"id":329},"user":"athomschke","tags":[]},"329":{"isSerializedDate":true,"string":"Sun May 20 2012 12:28:03 GMT-0700 (PDT)"},"330":{"varMapping":{"__isSmartRef__":true,"id":331},"source":"function onMouseUp(evt) {\n var color = this.colorForPos(this.localize(evt.getPosition()));\n this.chooserWidget.updateSliderColor(color);\n this.chooserWidget.currentColor = color;\n this.chooserWidget.button.setFill(color)\n}","funcProperties":{"__isSmartRef__":true,"id":336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"331":{"this":{"__isSmartRef__":true,"id":103},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":332}},"332":{"$super":{"__isSmartRef__":true,"id":333}},"333":{"varMapping":{"__isSmartRef__":true,"id":334},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"334":{"obj":{"__isSmartRef__":true,"id":103},"name":"onMouseUp"},"335":{},"336":{"timestamp":{"__isSmartRef__":true,"id":337},"user":"huberthesse","tags":[]},"337":{"isSerializedDate":true,"string":"Wed Mar 21 2012 08:29:45 GMT-0700 (PDT)"},"338":{"varMapping":{"__isSmartRef__":true,"id":339},"source":"function colorForPos(pos) {\n var r = this.shape.getBounds().insetBy(this.getBorderWidth()),\n pos = r.closestPointToPt(pos),\n m = this.activeSlide.submorphs.detect(function(ea) { return ea.bounds().containsPoint(pos) });\n color = m && m.getFill().stops.find(function(ea){return ea.offset == 1}).color;\n return color ? color : Color.black; \n}","funcProperties":{"__isSmartRef__":true,"id":344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"339":{"this":{"__isSmartRef__":true,"id":103},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":340}},"340":{"$super":{"__isSmartRef__":true,"id":341}},"341":{"varMapping":{"__isSmartRef__":true,"id":342},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"342":{"obj":{"__isSmartRef__":true,"id":103},"name":"colorForPos"},"343":{},"344":{"timestamp":{"__isSmartRef__":true,"id":345},"user":"huberthesse","tags":[]},"345":{"isSerializedDate":true,"string":"Wed Mar 07 2012 05:55:22 GMT-0800 (PST)"},"346":{"varMapping":{"__isSmartRef__":true,"id":347},"source":"function colorSet2() {\n return [\"licorice lead tungsten nickel\",\n \"silver magnesium aluminum tin\",\n \"mercury orchid grape eggplant\",\n \"aqua blueberry ocean midnight\",\n \"sky turquoise spindrift ice\"\n ]\n}","funcProperties":{"__isSmartRef__":true,"id":348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"347":{"this":{"__isSmartRef__":true,"id":103}},"348":{"timestamp":{"__isSmartRef__":true,"id":349},"user":"huberthesse","tags":[]},"349":{"isSerializedDate":true,"string":"Wed Mar 21 2012 08:29:45 GMT-0700 (PDT)"},"350":{"varMapping":{"__isSmartRef__":true,"id":351},"source":"function colorSet3() {\n return [\"maraschino cayenne maroon strawberry\",\n \"tangerine lemon cantaloupe banana\",\n \"fern asparagus asparagus spring\",\n \"lime seafoam flora moss\", \n \"clover aqua lavender bubblegum\"\n ]\n}","funcProperties":{"__isSmartRef__":true,"id":352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"351":{"this":{"__isSmartRef__":true,"id":103}},"352":{"timestamp":{"__isSmartRef__":true,"id":353},"user":"huberthesse","tags":[]},"353":{"isSerializedDate":true,"string":"Wed Mar 21 2012 08:29:45 GMT-0700 (PDT)"},"354":{"varMapping":{"__isSmartRef__":true,"id":355},"source":"function clear() {\n this.container.submorphs.invoke('remove')\n}","funcProperties":{"__isSmartRef__":true,"id":356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"355":{"this":{"__isSmartRef__":true,"id":103}},"356":{"timestamp":{"__isSmartRef__":true,"id":357},"user":"huberthesse","tags":[]},"357":{"isSerializedDate":true,"string":"Wed Mar 07 2012 06:20:41 GMT-0800 (PST)"},"358":{"varMapping":{"__isSmartRef__":true,"id":359},"source":"function previousSlide() {\n if (this.slide - 1 < 0) {\n this.slide = this.slide + 3;\n }\n this.slide = (this.slide - 1) % 3;\n //this.clear();\n var previous = this.build(this.slides()[this.slide]);\n previous.setPosition(pt(this.activeSlide.getPosition().x - this.activeSlide.getExtent().x,0));\n this.container.addMorph(previous)\n this.activeSlide = previous;\n\n this.animateLeft(1000);\n}","funcProperties":{"__isSmartRef__":true,"id":360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"359":{"this":{"__isSmartRef__":true,"id":103}},"360":{"timestamp":{"__isSmartRef__":true,"id":361},"user":"huberthesse","tags":[]},"361":{"isSerializedDate":true,"string":"Wed Mar 07 2012 06:54:40 GMT-0800 (PST)"},"362":{"varMapping":{"__isSmartRef__":true,"id":363},"source":"function nextSlide() {\n this.slide = (this.slide+1)%3\n //this.clear()\n var next = this.build(this.slides()[this.slide]);\n next.setPosition(pt(this.activeSlide.getPosition().x + this.activeSlide.getExtent().x,0));\n this.container.addMorph(next)\n this.activeSlide = next;\n\n this.animateRight(1000);\n\n}","funcProperties":{"__isSmartRef__":true,"id":364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"363":{"this":{"__isSmartRef__":true,"id":103}},"364":{"timestamp":{"__isSmartRef__":true,"id":365},"user":"athomschke","tags":[]},"365":{"isSerializedDate":true,"string":"Sun May 20 2012 11:43:57 GMT-0700 (PDT)"},"366":{"varMapping":{"__isSmartRef__":true,"id":367},"source":"function slides() {\n return [this.colorSet1(), this.colorSet2(), this.colorSet3()]\n}","funcProperties":{"__isSmartRef__":true,"id":368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"367":{"this":{"__isSmartRef__":true,"id":103}},"368":{"timestamp":{"__isSmartRef__":true,"id":369},"user":"huberthesse","tags":[]},"369":{"isSerializedDate":true,"string":"Fri Mar 02 2012 07:32:29 GMT-0800 (PST)"},"370":{"varMapping":{"__isSmartRef__":true,"id":371},"source":"function animateRight(timeout) {\n this.container.moveByAnimated(pt(-this.getExtent().x,0), timeout, this.removeHiddenSlides);\n}","funcProperties":{"__isSmartRef__":true,"id":372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"371":{"this":{"__isSmartRef__":true,"id":103}},"372":{"timestamp":{"__isSmartRef__":true,"id":373},"user":"undefined","tags":[]},"373":{"isSerializedDate":true,"string":"Fri Mar 09 2012 03:28:28 GMT-0800 (PST)"},"374":{"varMapping":{"__isSmartRef__":true,"id":375},"source":"function animateLeft(timeout) {\n this.container.moveByAnimated(pt(this.getExtent().x,0), timeout, this.removeHiddenSlides);\n}","funcProperties":{"__isSmartRef__":true,"id":376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"375":{"this":{"__isSmartRef__":true,"id":103}},"376":{"timestamp":{"__isSmartRef__":true,"id":377},"user":"undefined","tags":[]},"377":{"isSerializedDate":true,"string":"Fri Mar 09 2012 03:28:25 GMT-0800 (PST)"},"378":{"submorphs":[{"__isSmartRef__":true,"id":379}],"scripts":[],"shape":{"__isSmartRef__":true,"id":392},"id":"ED3465BD-9956-4E91-A396-8705F6764664","eventHandler":{"__isSmartRef__":true,"id":393},"__layered_droppingEnabled__":true,"halosEnabled":true,"attributeConnections":[{"__isSmartRef__":true,"id":394},{"__isSmartRef__":true,"id":396}],"doNotSerialize":["$$value"],"doNotCopyProperties":["$$value"],"sliderExtent":0.1,"valueScale":1,"sliderKnob":{"__isSmartRef__":true,"id":379},"styleClass":["slider_background_horizontal"],"showsHalos":false,"knobRatio":3,"isLockOwner":false,"layout":{"__isSmartRef__":true,"id":398},"isBeingDragged":false,"prevScroll":[0,0],"name":"AlphaSlider","owner":{"__isSmartRef__":true,"id":102},"value":1,"_ClipMode":"visible","__serializedExpressions__":["_Position","distanceToDragEvent","color","iPadColor","midColor"],"derivationIds":["5477660F-B00A-4F44-88E2-889D12AF2F69"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":399},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":400},"__LivelyClassName__":"lively.morphic.Slider","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(22.0,384.1)","distanceToDragEvent":"lively.pt(148.0,-8.0)","color":"Color.rgb(0,0,0)","iPadColor":"Color.rgb(0,0,0)","midColor":"Color.rgb(255,112,116)"},"379":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":380},"id":"2C9420DB-CBF1-4FFC-A030-19E5EAD6B4E8","eventHandler":{"__isSmartRef__":true,"id":381},"__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":true,"slider":{"__isSmartRef__":true,"id":378},"owner":{"__isSmartRef__":true,"id":378},"styleClass":["slider_horizontal"],"isBeingDragged":false,"draggableWithoutHalo":true,"showsHalos":false,"isLockOwner":false,"prevScroll":[0,0],"_ClipMode":"visible","__serializedExpressions__":["_Position","hitPoint"],"derivationIds":["7C8995E1-F932-4C19-BB04-9B6A28DF0B40"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":382},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":383},"__LivelyClassName__":"lively.morphic.SliderKnob","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(273.6,0.0)","hitPoint":"lively.pt(1398.0,493.0)"},"380":{"_ClipMode":"visible","_BorderWidth":2.7760000000000002,"_BorderRadius":13,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(30.4,7.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(146,146,146)","_Fill":"Color.rgba(235,235,235,0.6)"},"381":{"morph":{"__isSmartRef__":true,"id":379},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"382":{"requiredModules":[],"idOnLoad":"2C9420DB-CBF1-4FFC-A030-19E5EAD6B4E8","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"383":{"onrestore":{"__isSmartRef__":true,"id":384}},"384":{"varMapping":{"__isSmartRef__":true,"id":385},"source":"function onrestore() {\n $super();\n this.setFill(Color.rgba(235,235,235,0.6))\n}","funcProperties":{"__isSmartRef__":true,"id":390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"385":{"this":{"__isSmartRef__":true,"id":379},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":386}},"386":{"$super":{"__isSmartRef__":true,"id":387}},"387":{"varMapping":{"__isSmartRef__":true,"id":388},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"388":{"obj":{"__isSmartRef__":true,"id":379},"name":"onrestore"},"389":{},"390":{"timestamp":{"__isSmartRef__":true,"id":391},"user":"athomschke","tags":[]},"391":{"isSerializedDate":true,"string":"Wed Feb 22 2012 01:19:48 GMT-0800 (PST)"},"392":{"_ClipMode":"visible","_BorderWidth":1,"_BorderRadius":6,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(304.0,7.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(0,0,0)"},"393":{"morph":{"__isSmartRef__":true,"id":378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"394":{"sourceObj":{"__isSmartRef__":true,"id":378},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":378},"targetMethodName":"adjustSliderParts","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":395},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"395":{"source":{"__isSmartRef__":true,"id":378},"target":{"__isSmartRef__":true,"id":378}},"396":{"sourceObj":{"__isSmartRef__":true,"id":378},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":102},"targetMethodName":"setBorderFillOfTarget","converterString":"function (val) {return this.getSourceObj().getColor()}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":397},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"397":{"source":{"__isSmartRef__":true,"id":378},"target":{"__isSmartRef__":true,"id":102}},"398":{"resizeWidth":true,"moveVertical":true},"399":{"partName":"AlphaSlider","requiredModules":[],"idOnLoad":"ED3465BD-9956-4E91-A396-8705F6764664","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"400":{"getColor":{"__isSmartRef__":true,"id":401},"updateColor":{"__isSmartRef__":true,"id":405},"setKnobFill":{"__isSmartRef__":true,"id":409}},"401":{"varMapping":{"__isSmartRef__":true,"id":402},"source":"function getColor() {\n return this.color.withA(this.value)\n}","funcProperties":{"__isSmartRef__":true,"id":403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"402":{"this":{"__isSmartRef__":true,"id":378}},"403":{"timestamp":{"__isSmartRef__":true,"id":404},"user":"huberthesse","tags":[]},"404":{"isSerializedDate":true,"string":"Tue Feb 28 2012 08:27:35 GMT-0800 (PST)"},"405":{"varMapping":{"__isSmartRef__":true,"id":406},"source":"function updateColor(color) {\n this.iPadColor = color;\n this.color = color;\n this.setFill(color);\n if (this.updateFill) \n this.updateFill(this.value)\n}","funcProperties":{"__isSmartRef__":true,"id":407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"406":{"this":{"__isSmartRef__":true,"id":378}},"407":{"timestamp":{"__isSmartRef__":true,"id":408},"user":"athomschke","tags":[]},"408":{"isSerializedDate":true,"string":"Sun May 20 2012 11:52:00 GMT-0700 (PDT)"},"409":{"varMapping":{"__isSmartRef__":true,"id":410},"source":"function setKnobFill() {\n var knobStyle= new lively.morphic.LinearGradient(\n [\n {offset: 0, color: Color.darkGray.mixedWith(Color.white, 0.5)},\n {offset: 0.3, color: Color.lightGray},\n {offset: 1, color: Color.white}\n ]\n )\n this.sliderKnob.setFill(knobStyle);\n}","funcProperties":{"__isSmartRef__":true,"id":411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"410":{"this":{"__isSmartRef__":true,"id":378}},"411":{"timestamp":{"__isSmartRef__":true,"id":412},"user":"undefined","tags":[]},"412":{"isSerializedDate":true,"string":"Tue Mar 13 2012 03:54:12 GMT-0700 (PDT)"},"413":{"submorphs":[{"__isSmartRef__":true,"id":414}],"scripts":[],"id":"BC5C1810-BD8B-4D8C-A220-847E79AC7F1F","shape":{"__isSmartRef__":true,"id":420},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":421},"lighterFill":{"__isSmartRef__":true,"id":426},"label":{"__isSmartRef__":true,"id":414},"name":"ScriptableButton3","showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":431}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":432},"layout":{"__isSmartRef__":true,"id":433},"owner":{"__isSmartRef__":true,"id":102},"isLockOwner":false,"prevScroll":[0,0],"_ClipMode":"visible","isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"derivationIds":["709262DA-9E3A-4304-836D-0FE5F94B6A9B"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":434},"_Rotation":1.5707963267948966,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":435},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(320.5,63.4)","distanceToDragEvent":"lively.pt(24.1,-11.9)"},"414":{"submorphs":[],"scripts":[],"id":"E1B31AA6-12FE-48E2-B265-8B81307B4D0C","shape":{"__isSmartRef__":true,"id":415},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":271,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":413},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":416}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":418},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":271,"_MinTextHeight":null,"isLockOwner":false,"_WordBreak":"break-all","lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_Position","padding","_Padding"],"derivationIds":["8FEA935C-628F-40E5-B3E4-1E859712318E"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":419},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"415":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(271.0,18.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"416":{"style":{"__isSmartRef__":true,"id":417},"chunkOwner":{"__isSmartRef__":true,"id":414},"storedString":"^","_id":"_121","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"417":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"418":{"morph":{"__isSmartRef__":true,"id":414},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"419":{"requiredModules":[],"idOnLoad":"E1B31AA6-12FE-48E2-B265-8B81307B4D0C","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"420":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":421},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(271.0,18.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"421":{"stops":[{"__isSmartRef__":true,"id":422},{"__isSmartRef__":true,"id":423},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":425}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"422":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"423":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"424":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"425":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"426":{"stops":[{"__isSmartRef__":true,"id":427},{"__isSmartRef__":true,"id":428},{"__isSmartRef__":true,"id":429},{"__isSmartRef__":true,"id":430}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"427":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"428":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"429":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"430":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"431":{"sourceObj":{"__isSmartRef__":true,"id":413},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":413},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"432":{"morph":{"__isSmartRef__":true,"id":413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"433":{"centeredHorizontal":false,"centeredVertical":false,"adjustForNewBounds":true,"resizeWidth":false,"resizeHeight":false,"moveVertical":true,"moveHorizontal":true},"434":{"partName":"ScriptableButton3","requiredModules":[],"idOnLoad":"BC5C1810-BD8B-4D8C-A220-847E79AC7F1F","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"435":{"onFire":{"__isSmartRef__":true,"id":436}},"436":{"varMapping":{"__isSmartRef__":true,"id":437},"source":"function onFire() {\n this.owner.nextSlide();\n}","funcProperties":{"__isSmartRef__":true,"id":438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"437":{"this":{"__isSmartRef__":true,"id":413}},"438":{"timestamp":{"__isSmartRef__":true,"id":439},"user":"conradcalmez","tags":[]},"439":{"isSerializedDate":true,"string":"Thu May 03 2012 01:43:53 GMT-0700 (PDT)"},"440":{"submorphs":[{"__isSmartRef__":true,"id":441}],"scripts":[],"id":"B48D7003-AEAF-403B-AFB5-57BF1F0CE92F","shape":{"__isSmartRef__":true,"id":447},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":448},"lighterFill":{"__isSmartRef__":true,"id":453},"label":{"__isSmartRef__":true,"id":441},"name":"ScriptableButton2","showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":458}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":459},"layout":{"__isSmartRef__":true,"id":460},"owner":{"__isSmartRef__":true,"id":102},"isLockOwner":false,"_ClipMode":"visible","prevScroll":[0,0],"isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"derivationIds":["9099A2BE-6BF1-4711-B410-D041B4CB13E1"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":461},"_Rotation":-1.5707963267948966,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":462},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(19.5,332.4)","distanceToDragEvent":"lively.pt(36.7,-281.8)"},"441":{"submorphs":[],"scripts":[],"id":"A8EE8F0A-A519-4CBB-9231-BFCF8D166D27","shape":{"__isSmartRef__":true,"id":442},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":269,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":440},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":443}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":445},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":269,"_MinTextHeight":null,"isLockOwner":false,"_WordBreak":"break-all","lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_Position","padding","_Padding"],"derivationIds":["76E73E85-6C70-4762-9A30-C2A064EB18AA"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":446},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"442":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(269.0,16.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"443":{"style":{"__isSmartRef__":true,"id":444},"chunkOwner":{"__isSmartRef__":true,"id":441},"storedString":"^","_id":"_122","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"444":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"445":{"morph":{"__isSmartRef__":true,"id":441},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"446":{"requiredModules":[],"idOnLoad":"A8EE8F0A-A519-4CBB-9231-BFCF8D166D27","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"447":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":448},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(269.0,16.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"448":{"stops":[{"__isSmartRef__":true,"id":449},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":451},{"__isSmartRef__":true,"id":452}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"449":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"450":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"451":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"452":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"453":{"stops":[{"__isSmartRef__":true,"id":454},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":456},{"__isSmartRef__":true,"id":457}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"454":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"455":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"456":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"457":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"458":{"sourceObj":{"__isSmartRef__":true,"id":440},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":440},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"459":{"morph":{"__isSmartRef__":true,"id":440},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"460":{"centeredHorizontal":false,"centeredVertical":false,"adjustForNewBounds":true,"resizeWidth":false,"moveHorizontal":false,"moveVertical":true},"461":{"partName":"ScriptableButton2","requiredModules":[],"idOnLoad":"B48D7003-AEAF-403B-AFB5-57BF1F0CE92F","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"462":{"onFire":{"__isSmartRef__":true,"id":463}},"463":{"varMapping":{"__isSmartRef__":true,"id":464},"source":"function onFire() {\n this.owner.previousSlide();\n}","funcProperties":{"__isSmartRef__":true,"id":465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"464":{"this":{"__isSmartRef__":true,"id":440}},"465":{"timestamp":{"__isSmartRef__":true,"id":466},"user":"conradcalmez","tags":[]},"466":{"isSerializedDate":true,"string":"Thu May 03 2012 01:43:42 GMT-0700 (PDT)"},"467":{"submorphs":[],"scripts":[],"id":"7AF389D4-0F5A-4780-BC46-1A35E9A407BB","shape":{"__isSmartRef__":true,"id":468},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":null,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Label","textChunks":[{"__isSmartRef__":true,"id":469}],"charsReplaced":"Color","lastFindLoc":5,"priorSelectionRange":null,"prevScroll":[0,0],"isLabel":true,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","allowInput":false,"eventsAreIgnored":false,"eventHandler":{"__isSmartRef__":true,"id":471},"moved":true,"owner":{"__isSmartRef__":true,"id":102},"_MinTextWidth":null,"_MinTextHeight":null,"isLockOwner":false,"layout":{"__isSmartRef__":true,"id":472},"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"derivationIds":["051ACD2E-DBFB-4BE4-A00D-5632B6D3651C"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":473},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(141.9,8.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(43.6,-9.0)"},"468":{"fill":null,"_BorderWidth":0,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(50.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"469":{"style":{"__isSmartRef__":true,"id":470},"chunkOwner":{"__isSmartRef__":true,"id":467},"storedString":"Pencil","_id":"_123","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"470":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"471":{"morph":{"__isSmartRef__":true,"id":467},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"472":{"moveHorizontal":false,"centeredHorizontal":true,"moveVertical":false},"473":{"partName":"Label","requiredModules":[],"idOnLoad":"7AF389D4-0F5A-4780-BC46-1A35E9A407BB","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"474":{"submorphs":[],"scripts":[],"id":"F4AC2638-E250-4B53-A745-4885469BC5BC","shape":{"__isSmartRef__":true,"id":475},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":18.899550000000033,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"Text","textChunks":[{"__isSmartRef__":true,"id":476}],"charsReplaced":"some text ","lastFindLoc":20,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":478},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":18.899550000000033,"_MinTextHeight":null,"moved":true,"owner":{"__isSmartRef__":true,"id":102},"isBeingDragged":false,"isLockOwner":false,"layout":{"__isSmartRef__":true,"id":479},"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"derivationIds":["E196EE2C-7D74-4448-9F2F-FF610942B220"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":480},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(18.0,358.1)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(38.0,-15.0)"},"475":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(26.9,19.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"476":{"style":{"__isSmartRef__":true,"id":477},"morph":{"__isSmartRef__":true,"id":474},"chunkOwner":{"__isSmartRef__":true,"id":474},"storedString":"Fill","_id":"_124","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"477":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"478":{"morph":{"__isSmartRef__":true,"id":474},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"479":{"moveVertical":true},"480":{"partName":"Text","requiredModules":[],"idOnLoad":"F4AC2638-E250-4B53-A745-4885469BC5BC","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"481":{"submorphs":[],"scripts":[],"id":"AD1AC388-A719-4944-BE97-5CDBBAEBAF18","shape":{"__isSmartRef__":true,"id":482},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":37.861569000000024,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"Text1","textChunks":[{"__isSmartRef__":true,"id":483}],"charsReplaced":"FillOpacity","lastFindLoc":11,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":485},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":37.861569000000024,"_MinTextHeight":null,"moved":true,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":102},"isLockOwner":false,"layout":{"__isSmartRef__":true,"id":486},"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"derivationIds":["889880DA-424A-48BE-B073-D67F836D8BAA"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":487},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(20.0,395.1)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(36.0,-14.0)"},"482":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(45.9,19.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgb(255,255,255)"},"483":{"style":{"__isSmartRef__":true,"id":484},"morph":{"__isSmartRef__":true,"id":481},"chunkOwner":{"__isSmartRef__":true,"id":481},"storedString":"Alpha","_id":"_125","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"484":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"485":{"morph":{"__isSmartRef__":true,"id":481},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"486":{"moveVertical":true},"487":{"partName":"Text1","requiredModules":[],"idOnLoad":"AD1AC388-A719-4944-BE97-5CDBBAEBAF18","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"488":{"submorphs":[],"scripts":[],"id":"75D35869-4CCC-4BD3-893A-31A3F4C7FED9","shape":{"__isSmartRef__":true,"id":489},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":37.861569000000024,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"Text2","textChunks":[{"__isSmartRef__":true,"id":490}],"charsReplaced":"Alpha","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":492},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":37.861569000000024,"_MinTextHeight":null,"previousSelection":[0,5],"moved":true,"isBeingDragged":false,"isLockOwner":false,"layout":{"__isSmartRef__":true,"id":493},"owner":{"__isSmartRef__":true,"id":102},"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"derivationIds":["0E07EF22-4C43-47C3-9DB5-C6DC9E92006A"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":494},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(21.0,436.1)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(36.0,-14.0)"},"489":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(45.9,19.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgb(255,255,255)"},"490":{"style":{"__isSmartRef__":true,"id":491},"morph":{"__isSmartRef__":true,"id":488},"chunkOwner":{"__isSmartRef__":true,"id":488},"storedString":"Width","_id":"_126","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"491":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"492":{"morph":{"__isSmartRef__":true,"id":488},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"493":{"moveVertical":true},"494":{"partName":"Text2","requiredModules":[],"idOnLoad":"75D35869-4CCC-4BD3-893A-31A3F4C7FED9","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"495":{"submorphs":[{"__isSmartRef__":true,"id":496}],"scripts":[],"id":"725BB187-1FDA-4D37-A8F4-F3842F7AB54B","shape":{"__isSmartRef__":true,"id":500},"__layered_droppingEnabled__":true,"halosEnabled":true,"attributeConnections":[{"__isSmartRef__":true,"id":505},{"__isSmartRef__":true,"id":507},{"__isSmartRef__":true,"id":509}],"doNotSerialize":["$$value"],"doNotCopyProperties":["$$value"],"sliderExtent":0.1,"valueScale":1,"sliderKnob":{"__isSmartRef__":true,"id":496},"styleClass":["slider_background_horizontal"],"showsHalos":false,"name":"ColorSlider","eventHandler":{"__isSmartRef__":true,"id":511},"layout":{"__isSmartRef__":true,"id":512},"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":102},"headRevision":145293,"prevScroll":[0,0],"value":0.5,"_ClipMode":"visible","__serializedExpressions__":["_Position","midColor","distanceToDragEvent"],"derivationIds":["6768DA02-A9B2-4A69-A7A8-41FF690EAEC4"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":513},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":514},"__LivelyClassName__":"lively.morphic.Slider","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(21.0,346.2)","midColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(110.0,-24.0)"},"496":{"submorphs":[],"scripts":[],"id":"2573DCAD-CFC3-4AE3-98D2-F7F235A518AE","shape":{"__isSmartRef__":true,"id":497},"__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":true,"slider":{"__isSmartRef__":true,"id":495},"owner":{"__isSmartRef__":true,"id":495},"styleClass":["slider_horizontal"],"eventHandler":{"__isSmartRef__":true,"id":498},"isBeingDragged":false,"draggableWithoutHalo":true,"showsHalos":false,"_ClipMode":"visible","prevScroll":[0,0],"__serializedExpressions__":["_Position","hitPoint"],"derivationIds":["27A11FAE-76A3-42A3-BE32-C9D60C9B7886"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":499},"__LivelyClassName__":"lively.morphic.SliderKnob","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(136.8,0.0)","hitPoint":"lively.pt(1123.0,403.0)"},"497":{"_BorderWidth":2.7760000000000002,"_BorderRadius":13,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(30.4,7.0)","_BorderColor":"Color.rgb(146,146,146)","_Fill":"Color.rgba(235,235,235,0.6)","_Padding":"lively.rect(0,0,0,0)"},"498":{"morph":{"__isSmartRef__":true,"id":496},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"499":{"requiredModules":[],"idOnLoad":"2573DCAD-CFC3-4AE3-98D2-F7F235A518AE","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"500":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":501},"_BorderRadius":6,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(304.0,7.0)","_BorderColor":"Color.rgb(95,94,95)","_Padding":"lively.rect(0,0,0,0)"},"501":{"stops":[{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":503},{"__isSmartRef__":true,"id":504}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,1,0)"},"502":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"503":{"offset":0.5,"__serializedExpressions__":["color"],"color":"Color.rgb(0,0,0)"},"504":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,0,0)"},"505":{"sourceObj":{"__isSmartRef__":true,"id":495},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":495},"targetMethodName":"adjustSliderParts","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":506},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"506":{"source":{"__isSmartRef__":true,"id":495},"target":{"__isSmartRef__":true,"id":495}},"507":{"sourceObj":{"__isSmartRef__":true,"id":495},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":102},"targetMethodName":"setBorderFillOfTarget","converterString":"function (val) {return this.getSourceObj().getColor()}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":508},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"508":{"source":{"__isSmartRef__":true,"id":495},"target":{"__isSmartRef__":true,"id":102}},"509":{"sourceObj":{"__isSmartRef__":true,"id":495},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":102},"targetMethodName":"updateAlphaSlider","converterString":"function (val) {\n return this.getSourceObj().getColor()\n }","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":510},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"510":{"source":{"__isSmartRef__":true,"id":495},"target":{"__isSmartRef__":true,"id":102}},"511":{"morph":{"__isSmartRef__":true,"id":495},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"512":{"resizeWidth":true,"moveVertical":true},"513":{"partName":"ColorSlider","requiredModules":[],"idOnLoad":"725BB187-1FDA-4D37-A8F4-F3842F7AB54B","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"514":{"updateColor":{"__isSmartRef__":true,"id":515},"getColor":{"__isSmartRef__":true,"id":519},"updateFill":{"__isSmartRef__":true,"id":523},"setKnobFill":{"__isSmartRef__":true,"id":527}},"515":{"varMapping":{"__isSmartRef__":true,"id":516},"source":"function updateColor(color) {\n this.midColor = color;\n this.setFill(new lively.morphic.LinearGradient(\n [\n {offset: 0, color: color.mixedWith(Color.white, 0)},\n {offset: 0.5, color: color},\n {offset: 1, color: color.mixedWith(Color.black, 0)}\n ],\n 'eastWest'\n )); \n}","funcProperties":{"__isSmartRef__":true,"id":517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"516":{"this":{"__isSmartRef__":true,"id":495}},"517":{"timestamp":{"__isSmartRef__":true,"id":518},"user":"undefined","tags":[]},"518":{"isSerializedDate":true,"string":"Tue Mar 13 2012 03:49:04 GMT-0700 (PDT)"},"519":{"varMapping":{"__isSmartRef__":true,"id":520},"source":"function getColor() {\n var color = this.midColor;\n var alpha = this.get('AlphaSlider').getValue();\n if (this.value < 0.5) { \n return color.mixedWith(Color.white, 1-(0.5-this.value) * 2).withA(alpha)\n }\n else { \n return color.mixedWith(Color.black, 1-(this.value-0.5) * 2).withA(alpha)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"520":{"this":{"__isSmartRef__":true,"id":495}},"521":{"timestamp":{"__isSmartRef__":true,"id":522},"user":"undefined","tags":[]},"522":{"isSerializedDate":true,"string":"Tue Mar 13 2012 03:48:39 GMT-0700 (PDT)"},"523":{"varMapping":{"__isSmartRef__":true,"id":524},"source":"function updateFill(value) {\n\n}","funcProperties":{"__isSmartRef__":true,"id":525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"524":{"this":{"__isSmartRef__":true,"id":495}},"525":{"timestamp":{"__isSmartRef__":true,"id":526},"user":"undefined","tags":[]},"526":{"isSerializedDate":true,"string":"Tue Mar 13 2012 03:48:47 GMT-0700 (PDT)"},"527":{"varMapping":{"__isSmartRef__":true,"id":528},"source":"function setKnobFill() {\n var knobStyle= new lively.morphic.LinearGradient(\n [\n {offset: 0, color: Color.darkGray.mixedWith(Color.white, 0.5)},\n {offset: 0.3, color: Color.lightGray},\n {offset: 1, color: Color.white}\n ]\n )\n this.sliderKnob.setFill(knobStyle);\n}","funcProperties":{"__isSmartRef__":true,"id":529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"528":{"this":{"__isSmartRef__":true,"id":495}},"529":{"timestamp":{"__isSmartRef__":true,"id":530},"user":"undefined","tags":[]},"530":{"isSerializedDate":true,"string":"Tue Mar 13 2012 03:45:15 GMT-0700 (PDT)"},"531":{"submorphs":[],"scripts":[],"id":"002C2E2E-AFF3-4A8E-8571-6E56E4217045","shape":{"__isSmartRef__":true,"id":532},"__layered_droppingEnabled__":true,"halosEnabled":true,"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":533},"itemList":["solid","hidden","dotted","dashed","double","groove","ridge","inset","outset"],"selectOnMove":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":534}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"name":"BorderStyleList","prevScroll":[0,0],"selectedLineNo":0,"valueScale":1,"changeTriggered":true,"owner":{"__isSmartRef__":true,"id":102},"isLockOwner":false,"selection":"solid","layout":{"__isSmartRef__":true,"id":535},"isBeingDragged":false,"#startLetters":"sel","__serializedExpressions__":["_Position","distanceToDragEvent"],"derivationIds":["DCCF8FD0-3DFB-4E67-957E-BEF0EDCB36E0"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":536},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":537},"__LivelyClassName__":"lively.morphic.DropDownList","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(22.6,462.8)","distanceToDragEvent":"lively.pt(106.5,-16.1)"},"532":{"_BorderWidth":0,"_BorderRadius":0,"_BorderStyle":"solid","_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(304.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"533":{"morph":{"__isSmartRef__":true,"id":531},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"534":{"sourceObj":{"__isSmartRef__":true,"id":531},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":102},"targetMethodName":"setBorderStyleOfTarget","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"535":{"resizeWidth":true,"moveVertical":true},"536":{"partName":"BorderStyleList","requiredModules":[],"idOnLoad":"002C2E2E-AFF3-4A8E-8571-6E56E4217045","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"537":{"setupConnections":{"__isSmartRef__":true,"id":538}},"538":{"varMapping":{"__isSmartRef__":true,"id":539},"source":"function setupConnections() {\n connect(this, 'selection', this.owner, 'setBorderStyleOfTarget')\n}","funcProperties":{"__isSmartRef__":true,"id":540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"539":{"this":{"__isSmartRef__":true,"id":531}},"540":{"timestamp":{"__isSmartRef__":true,"id":541},"user":"undefined","tags":[]},"541":{"isSerializedDate":true,"string":"Tue Mar 13 2012 08:14:21 GMT-0700 (PDT)"},"542":{"submorphs":[],"scripts":[],"id":"4FCE4966-41B3-458C-BEF1-42D597585237","shape":{"__isSmartRef__":true,"id":543},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":37.861569000000024,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"Text3","textChunks":[{"__isSmartRef__":true,"id":544}],"charsReplaced":"Alpha","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":546},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":37.861569000000024,"_MinTextHeight":null,"previousSelection":[0,5],"moved":true,"isBeingDragged":false,"isLockOwner":false,"layout":{"__isSmartRef__":true,"id":547},"owner":{"__isSmartRef__":true,"id":102},"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"derivationIds":["FFC74087-876A-484E-B9AE-03263B84A6BC"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":548},"_Rotation":0,"_Scale":1.0100552207170068,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(16.0,483.6)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(33.1,-9.7)"},"543":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(45.9,19.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgb(255,255,255)"},"544":{"style":{"__isSmartRef__":true,"id":545},"chunkOwner":{"__isSmartRef__":true,"id":542},"storedString":"Style","_id":"_127","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"545":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"546":{"morph":{"__isSmartRef__":true,"id":542},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"547":{"moveVertical":true},"548":{"partName":"Text3","requiredModules":[],"idOnLoad":"4FCE4966-41B3-458C-BEF1-42D597585237","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"549":{"submorphs":[{"__isSmartRef__":true,"id":550}],"scripts":[],"id":"2FF87444-8455-4D94-96D1-A3F2963FCE20","shape":{"__isSmartRef__":true,"id":558},"__layered_droppingEnabled__":true,"halosEnabled":true,"attributeConnections":[{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":565}],"doNotSerialize":["$$value"],"doNotCopyProperties":["$$value"],"sliderExtent":0.1,"valueScale":20,"sliderKnob":{"__isSmartRef__":true,"id":550},"styleClass":["slider_background_horizontal"],"showsHalos":false,"name":"WidthSlider","eventHandler":{"__isSmartRef__":true,"id":567},"layout":{"__isSmartRef__":true,"id":568},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":102},"isBeingDragged":false,"value":0,"__serializedExpressions__":["_Position","distanceToDragEvent"],"derivationIds":["108C4B42-624C-4F9C-BBD9-C488A7976ECA"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":569},"_Rotation":0,"_Scale":1.0080361203307935,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":570},"__LivelyClassName__":"lively.morphic.Slider","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(20.4,423.4)","distanceToDragEvent":"lively.pt(208.0,-15.0)"},"550":{"submorphs":[],"scripts":[],"id":"D9694E88-5626-45F3-8634-5A0E0CA1F6C6","shape":{"__isSmartRef__":true,"id":551},"__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":true,"slider":{"__isSmartRef__":true,"id":549},"owner":{"__isSmartRef__":true,"id":549},"styleClass":["slider_horizontal"],"eventHandler":{"__isSmartRef__":true,"id":556},"_ClipMode":"visible","isBeingDragged":false,"__serializedExpressions__":["_Position","hitPoint"],"derivationIds":["739D71E1-6C80-4C4B-AA08-155FC0469AE7"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":557},"__LivelyClassName__":"lively.morphic.SliderKnob","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","hitPoint":"lively.pt(1322.0,531.0)"},"551":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":552},"_BorderRadius":6,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(30.4,7.0)","_BorderColor":"Color.rgb(102,102,102)","_Padding":"lively.rect(0,0,0,0)"},"552":{"stops":[{"__isSmartRef__":true,"id":553},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":555}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"553":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(196,211,221)"},"554":{"offset":0.5,"__serializedExpressions__":["color"],"color":"Color.rgb(137,167,187)"},"555":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(96,130,153)"},"556":{"morph":{"__isSmartRef__":true,"id":550},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"557":{"requiredModules":[],"idOnLoad":"D9694E88-5626-45F3-8634-5A0E0CA1F6C6","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"558":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":559},"_BorderRadius":6,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(304.0,7.0)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)"},"559":{"stops":[{"__isSmartRef__":true,"id":560},{"__isSmartRef__":true,"id":561},{"__isSmartRef__":true,"id":562}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"560":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"561":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"562":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"563":{"sourceObj":{"__isSmartRef__":true,"id":549},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":102},"targetMethodName":"setBorderWidthOfTarget","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":564},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"564":{"source":{"__isSmartRef__":true,"id":549},"target":{"__isSmartRef__":true,"id":102}},"565":{"sourceObj":{"__isSmartRef__":true,"id":549},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":549},"targetMethodName":"adjustSliderParts","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":566},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"566":{"source":{"__isSmartRef__":true,"id":549},"target":{"__isSmartRef__":true,"id":549}},"567":{"morph":{"__isSmartRef__":true,"id":549},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"568":{},"569":{"partName":"WidthSlider","requiredModules":[],"idOnLoad":"2FF87444-8455-4D94-96D1-A3F2963FCE20","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"570":{"setupConnections":{"__isSmartRef__":true,"id":571}},"571":{"varMapping":{"__isSmartRef__":true,"id":572},"source":"function setupConnections() {\n this.attributeConnections.invoke('disconnect')\n connect(this, 'value', this.owner, 'setBorderWidthOfTarget', {});\n connect(this, \"value\", this, \"adjustSliderParts\", {});\n}","funcProperties":{"__isSmartRef__":true,"id":573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"572":{"this":{"__isSmartRef__":true,"id":549}},"573":{"timestamp":{"__isSmartRef__":true,"id":574},"user":"athomschke","tags":[]},"574":{"isSerializedDate":true,"string":"Fri May 18 2012 05:12:32 GMT-0700 (PDT)"},"575":{"_ClipMode":"visible","_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(342.0,518.4)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(146,146,146)","_Fill":"Color.rgb(255,255,255)"},"576":{"morph":{"__isSmartRef__":true,"id":102},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"577":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":578},"derivationIds":[null,"3BFE1379-1F04-4D67-9EF7-5B4FBFDBA664","5D6C7189-578D-43F4-9CD7-1147488CC39A","B94896ED-7945-451C-A272-EA37CA082437","79E0E27D-35CD-4A03-B953-6F312765B235","D910A585-E632-4BF3-B5E2-3C8C154AE3CF","663F24FF-769C-4449-B930-428BC331F801","78E6C55C-74A8-40BE-8945-601B8A6A8DC5","8B22D49A-3C38-492E-BC57-A51B77BAC1AF","0CDF2390-AF1D-4F41-8CFD-A48C6F218004","541AD507-0755-4227-8E55-0AD0063413B0","96D6CBE3-A7CC-4B98-9085-1F8AC9094FBB","E7ADEEC3-05EA-4DAA-9123-4115A65E19D7","CEF69D58-911C-468E-8373-CFC838CA8ABB","DE4FC545-B285-4F44-923B-C98E6184A1E0","C9450FA0-D866-4133-8DD9-5BD20D41B1FE","DD1B8752-C7BD-4452-B9C8-94D3F0F07CFF","5728FB50-ECBE-41F8-9A2B-E303875FB2A9","50059C5E-6E8B-4386-B9DD-FC2FEC6A867D","65DBB414-A81E-4413-9D82-9F80F0D373F7","C170EE35-98E8-445C-B2E9-EA3968AC312A","58202EAC-1B7D-4B20-BEF0-DEB4A086E0B9"],"id":"D478DC86-5731-4215-B687-AAB4DA6B26A3","eventHandler":{"__isSmartRef__":true,"id":579},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":580},"chooserWidget":{"__isSmartRef__":true,"id":102},"owner":null,"attributeConnections":[{"__isSmartRef__":true,"id":586}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"layout":{"__isSmartRef__":true,"id":588},"isLockOwner":false,"showsHalos":false,"name":"ColorButton","colorSlider":{"__isSmartRef__":true,"id":589},"selectable":false,"__serializedExpressions__":["_Position","normalFill","lighterFill","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":628},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(120.5,396.0)","normalFill":"Color.rgb(121,121,121)","lighterFill":"Color.rgb(230,230,230)","distanceToDragEvent":"lively.pt(74.5,-9.0)"},"578":{"_ClipMode":"visible","_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,30.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(102,102,102)","_Fill":"Color.rgb(160,0,152)"},"579":{"morph":{"__isSmartRef__":true,"id":577},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"580":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":581},"derivationIds":[null,"409AFB2A-7C17-44E5-973E-DD024B4CD5F8","D5F9CE00-5FA6-4908-9AB4-0A7E3C77A700","BE9078C1-0F94-4812-9E6A-5FEBAF5CD444","70AE98EB-20F3-4475-838A-2B496B86064E","FE986E29-AA1F-40D8-A74A-E77F7552A745","BF036DBC-71B7-4D1C-8207-AB523600C020"],"id":"245B31E3-A914-450B-999C-72F26243A5F7","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":582}],"eventHandler":{"__isSmartRef__":true,"id":584},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_MaxTextWidth":100,"_MinTextWidth":100,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":null,"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"layout":{"__isSmartRef__":true,"id":585},"isLockOwner":false,"showsHalos":false,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,7.0)","_TextColor":"Color.rgb(26,41,127)"},"581":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,16.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"582":{"style":{"__isSmartRef__":true,"id":583},"chunkOwner":{"__isSmartRef__":true,"id":580},"storedString":"Apply","_id":"_128","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"583":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"584":{"morph":{"__isSmartRef__":true,"id":580},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"585":{"centeredVertical":true,"centeredHorizontal":true,"moveVertical":false},"586":{"sourceObj":{"__isSmartRef__":true,"id":577},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":577},"targetMethodName":"updateBorderFillOfTarget","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":587},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"587":{"source":{"__isSmartRef__":true,"id":577},"target":{"__isSmartRef__":true,"id":577}},"588":{"adjustForNewBounds":true,"centeredHorizontal":true,"moveVertical":true},"589":{"submorphs":[{"__isSmartRef__":true,"id":590}],"scripts":[],"shape":{"__isSmartRef__":true,"id":602},"derivationIds":[null,"364359B5-1B95-4042-A1C6-CC5B778FBAB2","E23C63BE-652E-40F7-8097-3DF7BED48B6C","A6A49117-8DAC-4A69-AF96-BA716A6C97EB","C0B5F763-CA00-4443-B9CD-2CA95B36429B","77B2DB00-1E0D-4B3E-B3C9-202137BF3133","942AB4D6-4180-4618-BFAE-FA77436A07EA","39BFE677-6965-447C-8920-74E41CF1199A","F945FF1B-1922-4BC1-8029-435B2E295162","7DCD9012-2605-495C-AD57-1C70B8F8EF89","755F7C9A-3821-4A3E-9BA7-CF67F715C9A9","576830D2-EAA2-4CE3-9267-49C3069C041B","615B5236-3080-4512-BD82-4E248EF48B72","7F3C54D5-8B7C-4B5D-AA97-62485D67B23F","3042EF8C-3796-43E2-92DB-3F6C9D9A479E","59A3F72B-B84A-4E6C-A251-AD4EA34C0BAD","66A534B9-6DCD-4F91-B586-CF1BA826557D","F6145A65-C9F9-4473-9FCA-0CB8760CFC99","80031AFD-1DED-4106-9F99-32C316B8A5DF","4D1F7850-8645-4D46-A6D8-D3B824D9FFF7","CA9EE9CE-6106-4B91-AB54-593C5557A152","DE940626-E2D2-40C4-A8DF-BB608552A705"],"id":"F64E7757-3E90-485B-BD5C-29DD01C7EA38","eventHandler":{"__isSmartRef__":true,"id":607},"__layered_droppingEnabled__":true,"halosEnabled":true,"attributeConnections":[{"__isSmartRef__":true,"id":608},{"__isSmartRef__":true,"id":610},{"__isSmartRef__":true,"id":612}],"doNotSerialize":["$$value"],"doNotCopyProperties":["$$value"],"sliderExtent":0.1,"valueScale":1,"sliderKnob":{"__isSmartRef__":true,"id":590},"styleClass":["slider_background_horizontal"],"owner":null,"showsHalos":false,"knobRatio":3,"isLockOwner":false,"layout":{"__isSmartRef__":true,"id":614},"isBeingDragged":false,"prevScroll":[0,0],"name":"ColorSlider","colorChooser":{"__isSmartRef__":true,"id":102},"value":0.5,"__serializedExpressions__":["_Position","distanceToDragEvent","midColor"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":615},"__LivelyClassName__":"lively.morphic.Slider","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(22.0,332.0)","distanceToDragEvent":"lively.pt(168.0,-10.0)","midColor":"Color.rgb(0,151,0)"},"590":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":591},"derivationIds":[null,"9C2384F5-91D1-4379-B620-DEA9D7F7CE18","F00A4628-8174-4DEC-BB3B-6775B129BB7D","B191BDB8-E5F9-4720-8E66-90DDF52C8722","2283BE9C-5ADC-489A-9A0B-D491138EFB8D","6FA7B465-1E0D-4582-8C58-2927A2EEDA4E","CCE7CD6F-56AF-48A3-BC41-8B9690F3B8DB","6B87CAB8-5613-48A2-89FC-1A97E946D601","AD2740EA-5C95-4785-A9E9-3E1574E4261A","A6A80ED9-FC6C-436C-9764-29F30AC73678","FF701D0F-6EA7-498A-8437-C9258F0C538A","90F2E11F-E3D9-4CF7-AB93-2D5B9660186B","0E2A0CA4-B53D-438D-A05C-5A10C6F94DC2","C73C8D0E-EEA3-40D6-9357-B1DA8D0FEE24","BC14E452-06DB-453A-987A-68CD11F501C7","6D3C62D7-7739-4DBB-91F4-20C0A3AFE16B","EDAF8BDF-C972-477A-9FD0-4DADB3466F4B","F269ECC8-D226-4173-AD4C-A263E89F78B4","23FBB672-4FD8-465D-A75B-C7E7F55628AD","0F556F96-3FEE-45F8-A9D7-786A9847D672","FACAD732-28A7-46C9-85CF-E2836B2E9E5B","E5B62663-9402-4137-9CE6-C294AB0F70C9"],"id":"46D79328-A9D0-4939-A9B2-C568EC3B6108","eventHandler":{"__isSmartRef__":true,"id":592},"__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":true,"slider":{"__isSmartRef__":true,"id":589},"owner":{"__isSmartRef__":true,"id":589},"styleClass":["slider_horizontal"],"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"draggableWithoutHalo":true,"showsHalos":false,"isLockOwner":false,"prevScroll":[0,0],"selectable":false,"__serializedExpressions__":["_Position","hitPoint"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":593},"__LivelyClassName__":"lively.morphic.SliderKnob","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(133.7,0.0)","hitPoint":"lively.pt(462.0,404.0)"},"591":{"_ClipMode":"visible","_BorderWidth":2.7760000000000002,"_BorderRadius":13,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(29.7,6.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(146,146,146)","_Fill":"Color.rgba(235,235,235,0.6)"},"592":{"morph":{"__isSmartRef__":true,"id":590},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"593":{"onrestore":{"__isSmartRef__":true,"id":594}},"594":{"varMapping":{"__isSmartRef__":true,"id":595},"source":"function onrestore() {\n $super();\n this.setFill(Color.rgba(235,235,235,0.6))\n}","funcProperties":{"__isSmartRef__":true,"id":600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"595":{"this":{"__isSmartRef__":true,"id":590},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":596}},"596":{"$super":{"__isSmartRef__":true,"id":597}},"597":{"varMapping":{"__isSmartRef__":true,"id":598},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"598":{"obj":{"__isSmartRef__":true,"id":590},"name":"onrestore"},"599":{},"600":{"timestamp":{"__isSmartRef__":true,"id":601},"user":"athomschke","tags":[]},"601":{"isSerializedDate":true,"string":"Wed Feb 22 2012 01:19:48 GMT-0800 (PST)"},"602":{"_ClipMode":"visible","_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":603},"_BorderRadius":6,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(297.0,6.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(95,94,95)"},"603":{"stops":[{"__isSmartRef__":true,"id":604},{"__isSmartRef__":true,"id":605},{"__isSmartRef__":true,"id":606}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,1,0)"},"604":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"605":{"offset":0.5,"__serializedExpressions__":["color"],"color":"Color.rgb(0,151,0)"},"606":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(0,0,0)"},"607":{"morph":{"__isSmartRef__":true,"id":589},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"608":{"sourceObj":{"__isSmartRef__":true,"id":589},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":589},"targetMethodName":"adjustSliderParts","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":609},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"609":{"source":{"__isSmartRef__":true,"id":589},"target":{"__isSmartRef__":true,"id":589}},"610":{"sourceObj":{"__isSmartRef__":true,"id":589},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":102},"targetMethodName":"updateAlphaSlider","converterString":"function (val) {return this.getSourceObj().getColor()}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":611},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"611":{"source":{"__isSmartRef__":true,"id":589},"target":{"__isSmartRef__":true,"id":102}},"612":{"sourceObj":{"__isSmartRef__":true,"id":589},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":102},"targetMethodName":"updateBorderFillOfTarget","converterString":"function (val) {return this.getSourceObj().getColor()}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":613},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"613":{"source":{"__isSmartRef__":true,"id":589},"target":{"__isSmartRef__":true,"id":102}},"614":{"resizeWidth":true,"moveVertical":true},"615":{"getColor":{"__isSmartRef__":true,"id":616},"updateColor":{"__isSmartRef__":true,"id":620},"updateFill":{"__isSmartRef__":true,"id":624}},"616":{"varMapping":{"__isSmartRef__":true,"id":617},"source":"function getColor() {\n var color = this.midColor;\n var alpha = this.get('AlphaSlider').getValue();\n if (this.value < 0.5) { \n return color.mixedWith(Color.white, 1-(0.5-this.value) * 2).withA(alpha)\n }\n else { \n return color.mixedWith(Color.black, 1-(this.value-0.5) * 2).withA(alpha)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"617":{"this":{"__isSmartRef__":true,"id":589}},"618":{"timestamp":{"__isSmartRef__":true,"id":619},"user":"huberthesse","tags":[]},"619":{"isSerializedDate":true,"string":"Tue Feb 28 2012 08:30:25 GMT-0800 (PST)"},"620":{"varMapping":{"__isSmartRef__":true,"id":621},"source":"function updateColor(color) {\n this.midColor = color;\n this.setFill(new lively.morphic.LinearGradient(\n [\n {offset: 0, color: color.mixedWith(Color.white, 0)},\n {offset: 0.5, color: color},\n {offset: 1, color: color.mixedWith(Color.black, 0)}\n ],\n 'eastWest'\n )); \n}","funcProperties":{"__isSmartRef__":true,"id":622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"621":{"this":{"__isSmartRef__":true,"id":589}},"622":{"timestamp":{"__isSmartRef__":true,"id":623},"user":"huberthesse","tags":[]},"623":{"isSerializedDate":true,"string":"Tue Feb 28 2012 08:57:12 GMT-0800 (PST)"},"624":{"varMapping":{"__isSmartRef__":true,"id":625},"source":"function updateFill() {\n //overwrite\n}","funcProperties":{"__isSmartRef__":true,"id":626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"625":{"this":{"__isSmartRef__":true,"id":589}},"626":{"timestamp":{"__isSmartRef__":true,"id":627},"user":"undefined","tags":[]},"627":{"isSerializedDate":true,"string":"Fri Mar 09 2012 03:39:43 GMT-0800 (PST)"},"628":{"onrestore":{"__isSmartRef__":true,"id":629},"updateColor":{"__isSmartRef__":true,"id":637},"updateBorderFillOfTarget":{"__isSmartRef__":true,"id":641}},"629":{"varMapping":{"__isSmartRef__":true,"id":630},"source":"function onrestore() {\n $super();\n this.applyStyle({borderRadius: 0})\n}","funcProperties":{"__isSmartRef__":true,"id":635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"630":{"this":{"__isSmartRef__":true,"id":577},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":631}},"631":{"$super":{"__isSmartRef__":true,"id":632}},"632":{"varMapping":{"__isSmartRef__":true,"id":633},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"633":{"obj":{"__isSmartRef__":true,"id":577},"name":"onrestore"},"634":{},"635":{"timestamp":{"__isSmartRef__":true,"id":636},"user":"huberthesse","tags":[]},"636":{"isSerializedDate":true,"string":"Wed Feb 22 2012 05:22:27 GMT-0800 (PST)"},"637":{"varMapping":{"__isSmartRef__":true,"id":638},"source":"function updateColor(color) {\n this.setFill(color);\n this.normalFill = this.getFill();\n this.lighterFill = Color.lightGray\n}","funcProperties":{"__isSmartRef__":true,"id":639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"638":{"this":{"__isSmartRef__":true,"id":577}},"639":{"timestamp":{"__isSmartRef__":true,"id":640},"user":"huberthesse","tags":[]},"640":{"isSerializedDate":true,"string":"Tue Feb 28 2012 09:04:43 GMT-0800 (PST)"},"641":{"varMapping":{"__isSmartRef__":true,"id":642},"source":"function updateBorderFillOfTarget() {\n this.getFill()\n $world.currentHaloTarget && $world.currentHaloTarget.setBorderColor(this.normalFill) \n}","funcProperties":{"__isSmartRef__":true,"id":643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"642":{"this":{"__isSmartRef__":true,"id":577}},"643":{"timestamp":{"__isSmartRef__":true,"id":644},"user":"undefined","tags":[]},"644":{"isSerializedDate":true,"string":"Fri Mar 09 2012 03:33:33 GMT-0800 (PST)"},"645":{"adjustForNewBounds":true,"moveVertical":true},"646":{"lastStart":{"__isSmartRef__":true,"id":647},"identifier":3753021798,"pageY":475,"screenX":459,"clientX":645,"clientY":439,"screenY":338,"pageX":645,"__serializedExpressions__":["touchStart","touchStartInClientCoordinates"],"touchStart":"lively.pt(645.0,475.0)","touchStartInClientCoordinates":"lively.pt(645.0,439.0)"},"647":{"isSerializedDate":true,"string":"Wed Feb 29 2012 09:19:15 GMT-0800 (PST)"},"648":{"submorphs":[{"__isSmartRef__":true,"id":649},{"__isSmartRef__":true,"id":673}],"scripts":[],"id":"0B7BB12D-37FB-450D-8AAF-054EA12062B4","shape":{"__isSmartRef__":true,"id":714},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ChatPane","eventHandler":{"__isSmartRef__":true,"id":715},"partTests":{"__isSmartRef__":true,"id":716},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":1},"layout":{"__isSmartRef__":true,"id":721},"prevScroll":[0,0],"whiteboard":{"__isSmartRef__":true,"id":63},"pencilStyler":{"__isSmartRef__":true,"id":102},"isCopyMorphRef":true,"morphRefId":2,"commands":{"__isSmartRef__":true,"id":722},"userName":"","visible":false,"_Visible":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"derivationIds":["38B24D22-B706-4604-83FE-ABB747BBD1D3"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":723},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":724},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(209.0,-16.0)"},"649":{"submorphs":[],"scripts":[],"id":"DA28C6B9-561E-44BA-B7BD-292E8DAB2A2A","shape":{"__isSmartRef__":true,"id":650},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":310.6757780000002,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"InputField","textChunks":[{"__isSmartRef__":true,"id":651}],"charsReplaced":"","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":653},"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":648},"_MinTextWidth":310.6757780000002,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":654},"savedTextString":"","isBeingDragged":false,"history":[],"historyPosition":0,"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"derivationIds":["BB61FCA1-6CE1-43FF-AA8B-4A1F26E16598"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":655},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":656},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,554.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(216.0,-13.0)"},"650":{"fill":null,"_BorderWidth":1.1840000000000002,"_BorderRadius":6.660000000000001,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(328.0,24.4)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)"},"651":{"style":{"__isSmartRef__":true,"id":652},"chunkOwner":{"__isSmartRef__":true,"id":649},"_id":"_21501","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"652":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"653":{"morph":{"__isSmartRef__":true,"id":649},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"654":{"resizeWidth":true,"moveVertical":true},"655":{"partName":"InputField","requiredModules":[],"idOnLoad":"DA28C6B9-561E-44BA-B7BD-292E8DAB2A2A","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"656":{"onrestore":{"__isSmartRef__":true,"id":657},"onKeyDown":{"__isSmartRef__":true,"id":665}},"657":{"varMapping":{"__isSmartRef__":true,"id":658},"source":"function onrestore() {\n this.history = [];\n this.historyPosition = 0;\n}","funcProperties":{"__isSmartRef__":true,"id":663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"658":{"this":{"__isSmartRef__":true,"id":649},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":659}},"659":{"$super":{"__isSmartRef__":true,"id":660}},"660":{"varMapping":{"__isSmartRef__":true,"id":661},"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":662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"661":{"obj":{"__isSmartRef__":true,"id":649},"name":"onrestore"},"662":{},"663":{"timestamp":{"__isSmartRef__":true,"id":664},"user":"conradcalmez","tags":[]},"664":{"isSerializedDate":true,"string":"Fri Apr 27 2012 11:59:12 GMT-0700 (PDT)"},"665":{"varMapping":{"__isSmartRef__":true,"id":666},"source":"function onKeyDown(evt) {\n //$super(evt);\n var text = this.getTextString();\n if (evt.keyCode === 13 && text) {\n this.history.push(text);\n this.historyPosition = this.history.length;\n if (text.slice(0,1) === \"/\") {\n this.owner.processCommand(text);\n } else {\n this.owner.sendMessage(text);\n }\n this.setTextString(\"\");\n } else if (evt.keyCode === 38) {\n this.historyPosition--;\n if (this.historyPosition >= 0) {\n this.setTextString(this.history[this.historyPosition]);\n } else {\n this.historyPosition = 0;\n }\n } else if (evt.keyCode === 40) {\n this.historyPosition++;\n if (this.historyPosition < this.history.length) {\n this.setTextString(this.history[this.historyPosition]);\n } else if (this.historyPosition == this.history.length) {\n this.setTextString(\"\");\n } else {\n this.historyPosition = this.history.length;\n }\n };\n //evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"666":{"this":{"__isSmartRef__":true,"id":649},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":667}},"667":{"$super":{"__isSmartRef__":true,"id":668}},"668":{"varMapping":{"__isSmartRef__":true,"id":669},"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":670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"669":{"obj":{"__isSmartRef__":true,"id":649},"name":"onKeyDown"},"670":{},"671":{"timestamp":{"__isSmartRef__":true,"id":672},"user":"conradcalmez","tags":[]},"672":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:32:02 GMT-0700 (PDT)"},"673":{"submorphs":[{"__isSmartRef__":true,"id":674}],"scripts":[],"id":"CF166CE0-7946-4B9C-9E5C-AE4F5BA2300A","shape":{"__isSmartRef__":true,"id":693},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ConsolePane","eventHandler":{"__isSmartRef__":true,"id":694},"partTests":{"__isSmartRef__":true,"id":695},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":648},"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"setRich","__serializedExpressions__":["_Position"],"derivationIds":["31A25F9D-D7CE-4115-AE58-A6CAEF09AA53"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":700},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":701},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1.2,1.0)"},"674":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":675},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":676}],"eventHandler":{"__isSmartRef__":true,"id":678},"_ClipMode":"visible","id":"D767FC0D-84B2-47DC-9852-C7AB9DEE7607","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":true,"_HandStyle":"default","allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"name":"TextPane","eventsAreDisabled":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":673},"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_TextColor"],"derivationIds":["0C69C8B8-32BF-4085-BAB5-9A0DB933E524"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":679},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":680},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)"},"675":{"_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(326.0,548.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"676":{"style":{"__isSmartRef__":true,"id":677},"chunkOwner":{"__isSmartRef__":true,"id":674},"_id":"_119","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"677":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"678":{"morph":{"__isSmartRef__":true,"id":674},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"679":{"partName":"TextPane","requiredModules":[],"idOnLoad":"D767FC0D-84B2-47DC-9852-C7AB9DEE7607","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"680":{"onrestore":{"__isSmartRef__":true,"id":681},"reset":{"__isSmartRef__":true,"id":689}},"681":{"varMapping":{"__isSmartRef__":true,"id":682},"source":"function onrestore() {\n this.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"682":{"this":{"__isSmartRef__":true,"id":674},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":683}},"683":{"$super":{"__isSmartRef__":true,"id":684}},"684":{"varMapping":{"__isSmartRef__":true,"id":685},"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":686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"685":{"obj":{"__isSmartRef__":true,"id":674},"name":"onrestore"},"686":{},"687":{"timestamp":{"__isSmartRef__":true,"id":688},"user":"conradcalmez","tags":[]},"688":{"isSerializedDate":true,"string":"Tue Feb 12 2013 09:53:48 GMT-0800 (PST)"},"689":{"varMapping":{"__isSmartRef__":true,"id":690},"source":"function reset() {\n var transparent = new Color.rgba(0, 0, 0, 0);\n this.disableEvents();\n this.setFill(transparent);\n this.setBorderColor(transparent);\n this.setExtent(pt(326,548));\n}","funcProperties":{"__isSmartRef__":true,"id":691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"690":{"this":{"__isSmartRef__":true,"id":674}},"691":{"timestamp":{"__isSmartRef__":true,"id":692},"user":"conradcalmez","tags":[]},"692":{"isSerializedDate":true,"string":"Tue Feb 12 2013 09:53:36 GMT-0800 (PST)"},"693":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(330.0,550.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(235,235,235)","_Padding":"lively.rect(0,0,0,0)"},"694":{"morph":{"__isSmartRef__":true,"id":673},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"695":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":696}},"696":{"test01IsMorph":{"__isSmartRef__":true,"id":697}},"697":{"varMapping":{"__isSmartRef__":true,"id":698},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"698":{"this":{"__isSmartRef__":true,"id":695}},"699":{},"700":{"partName":"ConsolePane","requiredModules":[],"idOnLoad":"CF166CE0-7946-4B9C-9E5C-AE4F5BA2300A","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"701":{"onrestore":{"__isSmartRef__":true,"id":702},"reset":{"__isSmartRef__":true,"id":710}},"702":{"varMapping":{"__isSmartRef__":true,"id":703},"source":"function onrestore() {\n this.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"703":{"this":{"__isSmartRef__":true,"id":673},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":704}},"704":{"$super":{"__isSmartRef__":true,"id":705}},"705":{"varMapping":{"__isSmartRef__":true,"id":706},"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":707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"706":{"obj":{"__isSmartRef__":true,"id":673},"name":"onrestore"},"707":{},"708":{"timestamp":{"__isSmartRef__":true,"id":709},"user":"conradcalmez","tags":[]},"709":{"isSerializedDate":true,"string":"Tue Feb 12 2013 09:54:16 GMT-0800 (PST)"},"710":{"varMapping":{"__isSmartRef__":true,"id":711},"source":"function reset() {\n this.setClipMode(\"auto\");\n this.get(\"TextPane\").reset();\n}","funcProperties":{"__isSmartRef__":true,"id":712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"711":{"this":{"__isSmartRef__":true,"id":673}},"712":{"timestamp":{"__isSmartRef__":true,"id":713},"user":"conradcalmez","tags":[]},"713":{"isSerializedDate":true,"string":"Tue Feb 12 2013 09:54:33 GMT-0800 (PST)"},"714":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(332.6,582.1)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"715":{"morph":{"__isSmartRef__":true,"id":648},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"716":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":717}},"717":{"test01IsMorph":{"__isSmartRef__":true,"id":718}},"718":{"varMapping":{"__isSmartRef__":true,"id":719},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"719":{"this":{"__isSmartRef__":true,"id":716}},"720":{},"721":{"adjustForNewBounds":true,"moveHorizontal":true,"resizeWidth":false,"resizeHeight":true},"722":{},"723":{"partName":"ChatPane","requiredModules":[],"idOnLoad":"0B7BB12D-37FB-450D-8AAF-054EA12062B4","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"724":{"onrestore":{"__isSmartRef__":true,"id":725},"hide":{"__isSmartRef__":true,"id":733},"initializeCommands":{"__isSmartRef__":true,"id":737},"setupConnections":{"__isSmartRef__":true,"id":741},"reset":{"__isSmartRef__":true,"id":745},"toggle":{"__isSmartRef__":true,"id":749},"show":{"__isSmartRef__":true,"id":753},"showMessage":{"__isSmartRef__":true,"id":761},"sendMessage":{"__isSmartRef__":true,"id":765},"processCommand":{"__isSmartRef__":true,"id":769},"callCommand":{"__isSmartRef__":true,"id":773},"createChatListeners":{"__isSmartRef__":true,"id":777}},"725":{"varMapping":{"__isSmartRef__":true,"id":726},"source":"function onrestore() {\n this.setExtent(pt(332.6,582.1));\n this.visible = false;\n this.hide();\n this.initializeCommands();\n}","funcProperties":{"__isSmartRef__":true,"id":731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"726":{"this":{"__isSmartRef__":true,"id":648},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":727}},"727":{"$super":{"__isSmartRef__":true,"id":728}},"728":{"varMapping":{"__isSmartRef__":true,"id":729},"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":730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"729":{"obj":{"__isSmartRef__":true,"id":648},"name":"onrestore"},"730":{},"731":{"timestamp":{"__isSmartRef__":true,"id":732},"user":"conradcalmez","tags":[]},"732":{"isSerializedDate":true,"string":"Mon May 07 2012 11:14:36 GMT-0700 (PDT)"},"733":{"varMapping":{"__isSmartRef__":true,"id":734},"source":"function hide() {\n this.setPosition(pt(0, 0));\n this.setVisible(false);\n}","funcProperties":{"__isSmartRef__":true,"id":735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"734":{"this":{"__isSmartRef__":true,"id":648}},"735":{"timestamp":{"__isSmartRef__":true,"id":736},"user":"conradcalmez","tags":[]},"736":{"isSerializedDate":true,"string":"Wed May 02 2012 06:40:19 GMT-0700 (PDT)"},"737":{"varMapping":{"__isSmartRef__":true,"id":738},"source":"function initializeCommands() {\n this.commands = {\n 'nick': function (name) {\n this.whiteboard.setUserName(name);\n this.showMessage(\"changed nick to \" + name);\n },\n 'names': function () {\n this.whiteboard.getConnectedUserNames();\n },\n 'channel': function (channel) {\n this.whiteboard.setChannel(channel);\n },\n 'chan': this.commands['channel'],\n 'clear': function () {\n this.whiteboard.clear();\n },\n 'activate': function () {\n this.whiteboard.activate();\n },\n 'a': this.commands['activate'],\n 'deactivate': function () {\n this.whiteboard.deactivate();\n },\n 'd': this.commands['deactivate'],\n 'color': function (r, g, b, a) {\n this.whiteboard.setColor(Color.rgba(r, g, b, a));\n },\n 'c': this.commands['color'],\n 'pencil': function (size) {\n this.whiteboard.setPencilSize(size);\n },\n 'p': this.commands['pencil'],\n 'pencilstyler': function () {\n this.pencilStyler.toggle();\n },\n 'ps': this.commands['pencilstyler'],\n 'chat': function () {\n this.toggle();\n },\n 'help': function () {\n var helpText = \"HELP :: (available commands)\\n\";\n helpText += \"----------------------------\\n\\n\"\n helpText += \"/help\\n :: prints this help text\\n\"\n helpText += \"/nick \\n :: sets your nick name\\n\"\n helpText += \"/names\\n :: shows the users in your channel\\n\"\n helpText += \"/chan \\n :: sets the channel you are in\\n\"\n helpText += \"/clear\\n :: clears your whiteboard\\n\"\n helpText += \"/activate\\n :: takes your whiteboard online\\n\"\n helpText += \"/deactivate\\n :: takes your whiteboard offline\\n\"\n helpText += \"/color \\n :: sets the color of your pencil\\n\"\n helpText += \"/pencil \\n :: sets the size of your pencil in pixels\\n\"\n helpText += \"/pencilstyler\\n :: toggles the pencil styler\\n\"\n helpText += \"/chat\\n :: toggles the chat pane\\n\"\n this.showMessage(helpText);\n },\n 'h': this.commands['help']\n };\n}","funcProperties":{"__isSmartRef__":true,"id":739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"738":{"this":{"__isSmartRef__":true,"id":648}},"739":{"timestamp":{"__isSmartRef__":true,"id":740},"user":"conradcalmez","tags":[]},"740":{"isSerializedDate":true,"string":"Thu Nov 08 2012 09:45:27 GMT-0800 (PST)"},"741":{"varMapping":{"__isSmartRef__":true,"id":742},"source":"function setupConnections() {\n this.attributeConnections && this.attributeConnections.invoke('disconnect');\n}","funcProperties":{"__isSmartRef__":true,"id":743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"742":{"this":{"__isSmartRef__":true,"id":648}},"743":{"timestamp":{"__isSmartRef__":true,"id":744},"user":"conradcalmez","tags":[]},"744":{"isSerializedDate":true,"string":"Thu Dec 20 2012 07:31:48 GMT-0800 (PST)"},"745":{"varMapping":{"__isSmartRef__":true,"id":746},"source":"function reset() {\n var empty = new lively.morphic.RichText(),\n console = this.get(\"ConsolePane\"),\n text = console.get(\"TextPane\");\n empty.initialize();\n \n console.reset();\n text.setRichText(empty);\n \n this.whiteboard = this.owner.get(\"WhiteBoard\");\n this.pencilStyler = this.owner.get(\"PencilStyler\");\n this.initializeCommands();\n this.hide();\n}","funcProperties":{"__isSmartRef__":true,"id":747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"746":{"this":{"__isSmartRef__":true,"id":648}},"747":{"timestamp":{"__isSmartRef__":true,"id":748},"user":"conradcalmez","tags":[]},"748":{"isSerializedDate":true,"string":"Tue Feb 12 2013 09:55:51 GMT-0800 (PST)"},"749":{"varMapping":{"__isSmartRef__":true,"id":750},"source":"function toggle() {\n if (this.visible) {\n this.hide();\n this.visible = false;\n } else {\n this.show();\n this.visible = true;\n this.get(\"InputField\").focus();\n }\n if (this.pencilStyler.isVisible()) {\n // rearrange the pencil styler\n this.pencilStyler.show();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"750":{"this":{"__isSmartRef__":true,"id":648}},"751":{"timestamp":{"__isSmartRef__":true,"id":752},"user":"conradcalmez","tags":[]},"752":{"isSerializedDate":true,"string":"Thu Nov 08 2012 10:04:16 GMT-0800 (PST)"},"753":{"varMapping":{"__isSmartRef__":true,"id":754},"source":"function show() {\n var titlebarOffset = this.owner.titleBar.getExtent().y;\n var windowOffset = this.owner.getExtent().x;\n this.setPosition(pt(windowOffset, titlebarOffset));\n this.setVisible(true);\n}","funcProperties":{"__isSmartRef__":true,"id":759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"754":{"this":{"__isSmartRef__":true,"id":648},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":755}},"755":{"$super":{"__isSmartRef__":true,"id":756}},"756":{"varMapping":{"__isSmartRef__":true,"id":757},"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":758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"757":{"obj":{"__isSmartRef__":true,"id":648},"name":"show"},"758":{},"759":{"timestamp":{"__isSmartRef__":true,"id":760},"user":"conradcalmez","tags":[]},"760":{"isSerializedDate":true,"string":"Thu Dec 20 2012 06:50:50 GMT-0800 (PST)"},"761":{"varMapping":{"__isSmartRef__":true,"id":762},"source":"function showMessage(txtAry) {\n var txtAry = typeof(arguments[0]) === 'string' ?\n [{message: arguments[0], color: Color.black}] : txtAry,\n pane = this.get(\"ConsolePane\").get(\"TextPane\"),\n currentText = pane.getRichText(),\n newText = new lively.morphic.RichText(),\n newTextChunks,\n content = new lively.morphic.RichText();\n newText.initialize();\n content.initialize();\n \n newTextChunks = txtAry.collect(function (ea) {\n var chunk = new lively.morphic.TextChunk(ea.message);\n chunk.styleText({color: ea.color});\n return chunk;\n });\n newText.setTextChunks(newTextChunks);\n\n content.setTextChunks(\n currentText.getTextChunks()\n .concat(newText.getTextChunks()) \n );\n pane.setRichText(content);\n pane.scrollToBottom();\n}","funcProperties":{"__isSmartRef__":true,"id":763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"762":{"this":{"__isSmartRef__":true,"id":648}},"763":{"timestamp":{"__isSmartRef__":true,"id":764},"user":"conradcalmez","tags":[]},"764":{"isSerializedDate":true,"string":"Sun Feb 10 2013 11:57:46 GMT-0800 (PST)"},"765":{"varMapping":{"__isSmartRef__":true,"id":766},"source":"function sendMessage(messageText) {\n if (this.whiteboard.active) {\n this.whiteboard.socket.emit('chat', {\n message: messageText,\n me: true,\n broadcast: true,\n });\n } else {\n this.showMessage(\"! You are not online !\"); \n }\n}","funcProperties":{"__isSmartRef__":true,"id":767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"766":{"this":{"__isSmartRef__":true,"id":648}},"767":{"timestamp":{"__isSmartRef__":true,"id":768},"user":"conradcalmez","tags":["message sending"]},"768":{"isSerializedDate":true,"string":"Sun Feb 10 2013 08:54:58 GMT-0800 (PST)"},"769":{"varMapping":{"__isSmartRef__":true,"id":770},"source":"function processCommand(commandString) {\n this.callCommand(commandString.slice(1).split(\" \"));\n}","funcProperties":{"__isSmartRef__":true,"id":771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"770":{"this":{"__isSmartRef__":true,"id":648}},"771":{"timestamp":{"__isSmartRef__":true,"id":772},"user":"conradcalmez","tags":[]},"772":{"isSerializedDate":true,"string":"Mon May 07 2012 11:36:33 GMT-0700 (PDT)"},"773":{"varMapping":{"__isSmartRef__":true,"id":774},"source":"function callCommand(command) {\n var func = this.commands[command[0]]\n if (func) {\n func.apply(this, command.slice(1));\n } else {\n this.showMessage(\"!ERROR :: command \\\"\" + command[0] + \"\\\" is not available\");\n }\n}","funcProperties":{"__isSmartRef__":true,"id":775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"774":{"this":{"__isSmartRef__":true,"id":648}},"775":{"timestamp":{"__isSmartRef__":true,"id":776},"user":"athomschke","tags":[]},"776":{"isSerializedDate":true,"string":"Sun May 20 2012 12:13:40 GMT-0700 (PDT)"},"777":{"varMapping":{"__isSmartRef__":true,"id":778},"source":"function createChatListeners() {\n var socket = this.whiteboard.socket,\n that = this;\n \n socket.on('chat', function (data) {\n var color = Color.hsb(\n data.message.color.h,\n data.message.color.s,\n data.message.color.b\n );\n \n that.showMessage([\n {message: '<', color: Color.black},\n {message: data.message.nick, color: color},\n {message: '> ' + data.message.text, color: Color.black}\n ]);\n });\n \n socket.on('names', function (data) {\n var txtAry = [{message: \"Currently connected users:\\n[\", color: Color.black}],\n newNick,\n comma = {\n message: \", \",\n color: Color.black\n };\n\n data.message.each(function (ea) {\n newNick = {\n message: ea.nick,\n color: Color.hsb(ea.color.h, ea.color.s, ea.color.b)\n };\n txtAry.push(newNick);\n txtAry.push(comma);\n });\n txtAry.pop(); // remove the last comma\n txtAry.push({message: ']', color: Color.black})\n that.showMessage(txtAry);\n });\n \n socket.on('nick', function (data) {\n var color = Color.hsb(\n data.message.color.h,\n data.message.color.s,\n data.message.color.b\n );\n \n that.showMessage([\n {message: data.message[\"old\"], color: color},\n {message: \" changed its name to \", color: Color.black},\n {message: data.message[\"new\"], color: color}\n ]);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"778":{"this":{"__isSmartRef__":true,"id":648}},"779":{"timestamp":{"__isSmartRef__":true,"id":780},"user":"conradcalmez","tags":[]},"780":{"isSerializedDate":true,"string":"Mon Feb 11 2013 10:39:18 GMT-0800 (PST)"},"781":{"partName":"PencilStyler","requiredModules":[],"idOnLoad":"B11C1878-EA0F-4B3C-A52B-D16BFA1D9F47","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"782":{"onrestore":{"__isSmartRef__":true,"id":783},"setupConnections":{"__isSmartRef__":true,"id":791},"reset":{"__isSmartRef__":true,"id":795},"hide":{"__isSmartRef__":true,"id":799},"setBorderWidthOfTarget":{"__isSmartRef__":true,"id":803},"setBorderFillOfTarget":{"__isSmartRef__":true,"id":807},"setBorderStyleOfTarget":{"__isSmartRef__":true,"id":811},"updateTarget":{"__isSmartRef__":true,"id":815},"updateSliderColor":{"__isSmartRef__":true,"id":819},"updateColorSlider":{"__isSmartRef__":true,"id":823},"updateAlphaSlider":{"__isSmartRef__":true,"id":827},"nextSlide":{"__isSmartRef__":true,"id":831},"previousSlide":{"__isSmartRef__":true,"id":835},"show":{"__isSmartRef__":true,"id":839},"toggle":{"__isSmartRef__":true,"id":847}},"783":{"varMapping":{"__isSmartRef__":true,"id":784},"source":"function onrestore() {\n $super();\n module('projects.BP2012.InteractionWithIPad.CSSTransitions').load(false);\n this.whiteboard = this.owner.get('WhiteBoard');\n}","funcProperties":{"__isSmartRef__":true,"id":789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"784":{"this":{"__isSmartRef__":true,"id":102},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":785}},"785":{"$super":{"__isSmartRef__":true,"id":786}},"786":{"varMapping":{"__isSmartRef__":true,"id":787},"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":788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"787":{"obj":{"__isSmartRef__":true,"id":102},"name":"onrestore"},"788":{},"789":{"timestamp":{"__isSmartRef__":true,"id":790},"user":"conradcalmez","tags":[]},"790":{"isSerializedDate":true,"string":"Thu Dec 20 2012 08:42:09 GMT-0800 (PST)"},"791":{"varMapping":{"__isSmartRef__":true,"id":792},"source":"function setupConnections() {\n this.attributeConnections && this.attributeConnections.invoke('disconnect');\n}","funcProperties":{"__isSmartRef__":true,"id":793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"792":{"this":{"__isSmartRef__":true,"id":102}},"793":{"timestamp":{"__isSmartRef__":true,"id":794},"user":"conradcalmez","tags":[]},"794":{"isSerializedDate":true,"string":"Thu Dec 20 2012 07:31:32 GMT-0800 (PST)"},"795":{"varMapping":{"__isSmartRef__":true,"id":796},"source":"function reset() {\n this.hide();\n this.chat = this.owner.get(\"ChatPane\");\n this.widthSlider = this.get('WidthSlider');\n this.alphaSlider = this.get('AlphaSlider');\n this.slider = this.get('ColorSlider');\n this.borderStyleList = this.get('BorderStyleList');\n this.colorChooser.reset();\n this.widthSlider.setValue(0);\n this.alphaSlider.setValue(1);\n this.borderStyleList.selectAt(0);\n this.updateTarget(this.whiteboard);\n this.updateSliderColor(Color.black)\n}","funcProperties":{"__isSmartRef__":true,"id":797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"796":{"this":{"__isSmartRef__":true,"id":102}},"797":{"timestamp":{"__isSmartRef__":true,"id":798},"user":"conradcalmez","tags":[]},"798":{"isSerializedDate":true,"string":"Thu Nov 08 2012 09:07:59 GMT-0800 (PST)"},"799":{"varMapping":{"__isSmartRef__":true,"id":800},"source":"function hide() {\n this.setPosition(pt(0, 0));\n this.setVisible(false);\n}","funcProperties":{"__isSmartRef__":true,"id":801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"800":{"this":{"__isSmartRef__":true,"id":102}},"801":{"timestamp":{"__isSmartRef__":true,"id":802},"user":"conradcalmez","tags":[]},"802":{"isSerializedDate":true,"string":"Thu Nov 08 2012 10:11:53 GMT-0800 (PST)"},"803":{"varMapping":{"__isSmartRef__":true,"id":804},"source":"function setBorderWidthOfTarget(value) {\n this.whiteboard.setPencilSize(value*5+1);\n}","funcProperties":{"__isSmartRef__":true,"id":805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"804":{"this":{"__isSmartRef__":true,"id":102}},"805":{"timestamp":{"__isSmartRef__":true,"id":806},"user":"athomschke","tags":[]},"806":{"isSerializedDate":true,"string":"Sun May 20 2012 05:14:21 GMT-0700 (PDT)"},"807":{"varMapping":{"__isSmartRef__":true,"id":808},"source":"function setBorderFillOfTarget(color) {\n this.whiteboard.setColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"808":{"this":{"__isSmartRef__":true,"id":102}},"809":{"timestamp":{"__isSmartRef__":true,"id":810},"user":"conradcalmez","tags":[]},"810":{"isSerializedDate":true,"string":"Wed May 02 2012 10:17:14 GMT-0700 (PDT)"},"811":{"varMapping":{"__isSmartRef__":true,"id":812},"source":"function setBorderStyleOfTarget(value) {\n this.whiteboard.setPencilStyle(value);\n}","funcProperties":{"__isSmartRef__":true,"id":813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"812":{"this":{"__isSmartRef__":true,"id":102}},"813":{"timestamp":{"__isSmartRef__":true,"id":814},"user":"athomschke","tags":[]},"814":{"isSerializedDate":true,"string":"Sun May 20 2012 05:13:48 GMT-0700 (PDT)"},"815":{"varMapping":{"__isSmartRef__":true,"id":816},"source":"function updateTarget(target) {\n if (target) {\n this.updateSliderColor(target.getColor());\n this.widthSlider.setValue(target.getPencilSize()-1);\n this.borderStyleList.setSelection(target.getPencilStyle());\n } else {\n this.updateSliderColor(Color.white);\n this.widthSlider.setValue(0);\n this.borderStyleList.setSelection(\"solid\");\n }\n}","funcProperties":{"__isSmartRef__":true,"id":817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"816":{"this":{"__isSmartRef__":true,"id":102}},"817":{"timestamp":{"__isSmartRef__":true,"id":818},"user":"conradcalmez","tags":[]},"818":{"isSerializedDate":true,"string":"Thu Nov 08 2012 09:31:01 GMT-0800 (PST)"},"819":{"varMapping":{"__isSmartRef__":true,"id":820},"source":"function updateSliderColor(color) {\n this.updateColorSlider(color);\n this.updateAlphaSlider(color);\n}","funcProperties":{"__isSmartRef__":true,"id":821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"820":{"this":{"__isSmartRef__":true,"id":102}},"821":{"timestamp":{"__isSmartRef__":true,"id":822},"user":"conradcalmez","tags":[]},"822":{"isSerializedDate":true,"string":"Wed May 02 2012 04:51:06 GMT-0700 (PDT)"},"823":{"varMapping":{"__isSmartRef__":true,"id":824},"source":"function updateColorSlider(color) {\n this.slider.updateColor(color);\n this.slider.setValue(0.5);\n}","funcProperties":{"__isSmartRef__":true,"id":825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"824":{"this":{"__isSmartRef__":true,"id":102}},"825":{"timestamp":{"__isSmartRef__":true,"id":826},"user":"athomschke","tags":[]},"826":{"isSerializedDate":true,"string":"Sun May 20 2012 11:46:21 GMT-0700 (PDT)"},"827":{"varMapping":{"__isSmartRef__":true,"id":828},"source":"function updateAlphaSlider(color) {\n this.alphaSlider.updateColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"828":{"this":{"__isSmartRef__":true,"id":102}},"829":{"timestamp":{"__isSmartRef__":true,"id":830},"user":"athomschke","tags":[]},"830":{"isSerializedDate":true,"string":"Fri May 18 2012 05:36:25 GMT-0700 (PDT)"},"831":{"varMapping":{"__isSmartRef__":true,"id":832},"source":"function nextSlide() {\n this.colorChooser.nextSlide();\n}","funcProperties":{"__isSmartRef__":true,"id":833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"832":{"this":{"__isSmartRef__":true,"id":102}},"833":{"timestamp":{"__isSmartRef__":true,"id":834},"user":"conradcalmez","tags":[]},"834":{"isSerializedDate":true,"string":"Wed May 02 2012 05:15:52 GMT-0700 (PDT)"},"835":{"varMapping":{"__isSmartRef__":true,"id":836},"source":"function previousSlide() {\n this.colorChooser.previousSlide();\n}","funcProperties":{"__isSmartRef__":true,"id":837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"836":{"this":{"__isSmartRef__":true,"id":102}},"837":{"timestamp":{"__isSmartRef__":true,"id":838},"user":"conradcalmez","tags":[]},"838":{"isSerializedDate":true,"string":"Wed May 02 2012 05:15:57 GMT-0700 (PDT)"},"839":{"varMapping":{"__isSmartRef__":true,"id":840},"source":"function show() {\n var titlebarOffset = this.owner.titleBar.getExtent().y;\n var windowOffset = this.owner.getExtent().x;\n if (this.chat.isVisible()) {\n windowOffset += this.chat.getExtent().x;\n }\n this.setPosition(pt(windowOffset, titlebarOffset));\n this.setVisible(true);\n this.updateTarget(this.whiteboard);\n}","funcProperties":{"__isSmartRef__":true,"id":845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"840":{"this":{"__isSmartRef__":true,"id":102},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":841}},"841":{"$super":{"__isSmartRef__":true,"id":842}},"842":{"varMapping":{"__isSmartRef__":true,"id":843},"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":844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"843":{"obj":{"__isSmartRef__":true,"id":102},"name":"show"},"844":{},"845":{"timestamp":{"__isSmartRef__":true,"id":846},"user":"conradcalmez","tags":[]},"846":{"isSerializedDate":true,"string":"Thu Dec 20 2012 06:51:02 GMT-0800 (PST)"},"847":{"varMapping":{"__isSmartRef__":true,"id":848},"source":"function toggle() {\n if (this._Visible) {\n this.hide();\n } else {\n this.show();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"848":{"this":{"__isSmartRef__":true,"id":102}},"849":{"timestamp":{"__isSmartRef__":true,"id":850},"user":"conradcalmez","tags":[]},"850":{"isSerializedDate":true,"string":"Thu Nov 08 2012 10:14:21 GMT-0800 (PST)"},"851":{"morph":{"__isSmartRef__":true,"id":63},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"852":{"morph":{"__isSmartRef__":true,"id":63},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"853":{"morph":{"__isSmartRef__":true,"id":63},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"854":{"morph":{"__isSmartRef__":true,"id":63},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"855":{"morph":{"__isSmartRef__":true,"id":63},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"856":{"morph":{"__isSmartRef__":true,"id":63},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"857":{"morph":{"__isSmartRef__":true,"id":63},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"858":{"morph":{"__isSmartRef__":true,"id":63},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"859":{"sourceObj":{"__isSmartRef__":true,"id":63},"sourceAttrName":"channelName","targetObj":{"__isSmartRef__":true,"id":2},"targetMethodName":"setTitle","varMapping":{"__isSmartRef__":true,"id":860},"converterString":"function (channelName) {\n return 'Channel: ' + channelName;\n }","visualConnector":{"__isSmartRef__":true,"id":861},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"860":{"source":{"__isSmartRef__":true,"id":63},"target":{"__isSmartRef__":true,"id":2}},"861":{"submorphs":[{"__isSmartRef__":true,"id":862}],"scripts":[],"shape":{"__isSmartRef__":true,"id":869},"eventHandler":{"__isSmartRef__":true,"id":872},"_ClipMode":"visible","derivationIds":[],"id":"F4CB8893-5E3B-4367-A9D9-6B7420B045D4","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":873},{"__isSmartRef__":true,"id":874}],"con":{"__isSmartRef__":true,"id":859},"showsMorphMenu":true,"attributeConnections":[{"__isSmartRef__":true,"id":875},{"__isSmartRef__":true,"id":919},{"__isSmartRef__":true,"id":921},{"__isSmartRef__":true,"id":923},{"__isSmartRef__":true,"id":925}],"doNotSerialize":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":927},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"862":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":863},"eventHandler":{"__isSmartRef__":true,"id":868},"_ClipMode":"visible","derivationIds":[],"id":"2AEAB14C-B73C-4CF9-9423-80F8E3C5734F","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":861},"_Rotation":-1.750649826587375,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(776.6,88.6)"},"863":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":864},{"__isSmartRef__":true,"id":865},{"__isSmartRef__":true,"id":866},{"__isSmartRef__":true,"id":867}],"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(17.0,13.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"864":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"865":{"isAbsolute":true,"x":-11,"y":7,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"866":{"isAbsolute":true,"x":5,"y":1,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"867":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"868":{"morph":{"__isSmartRef__":true,"id":862},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"869":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":870},{"__isSmartRef__":true,"id":871}],"_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(478.4,21.0)","_Extent":"lively.pt(1.0,1.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"870":{"isAbsolute":true,"x":780.6,"y":110.55000000000001,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"871":{"isAbsolute":true,"x":776.6,"y":88.55000000000001,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"872":{"morph":{"__isSmartRef__":true,"id":861},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"873":{"morph":{"__isSmartRef__":true,"id":861},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"874":{"morph":{"__isSmartRef__":true,"id":861},"index":1,"marker":{"__isSmartRef__":true,"id":862},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"875":{"sourceObj":{"__isSmartRef__":true,"id":861},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":876},"targetMethodName":"realignConnection","varMapping":{"__isSmartRef__":true,"id":918},"dependendConnections":[{"__isSmartRef__":true,"id":919},{"__isSmartRef__":true,"id":921},{"__isSmartRef__":true,"id":923},{"__isSmartRef__":true,"id":925}],"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"876":{"submorphs":[{"__isSmartRef__":true,"id":877}],"scripts":[],"shape":{"__isSmartRef__":true,"id":884},"eventHandler":{"__isSmartRef__":true,"id":887},"_ClipMode":"visible","derivationIds":[],"id":"B1D6C539-E7B6-4546-A26E-53DC1864542C","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":888},{"__isSmartRef__":true,"id":889}],"con":{"__isSmartRef__":true,"id":890},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":910},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"877":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":878},"eventHandler":{"__isSmartRef__":true,"id":883},"_ClipMode":"visible","derivationIds":[],"id":"507C855C-8E60-403F-9715-B5063A82237E","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":876},"_Rotation":-3.095734130837892,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"878":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":880},{"__isSmartRef__":true,"id":881},{"__isSmartRef__":true,"id":882}],"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(17.0,13.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"879":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"880":{"isAbsolute":true,"x":-11,"y":7,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"881":{"isAbsolute":true,"x":5,"y":1,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"882":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"883":{"morph":{"__isSmartRef__":true,"id":877},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"884":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":885},{"__isSmartRef__":true,"id":886}],"_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(480.4,23.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"885":{"isAbsolute":true,"x":479.4,"y":22,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"886":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"887":{"morph":{"__isSmartRef__":true,"id":876},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"888":{"morph":{"__isSmartRef__":true,"id":876},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"889":{"morph":{"__isSmartRef__":true,"id":876},"index":1,"marker":{"__isSmartRef__":true,"id":877},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"890":{"sourceObj":{"__isSmartRef__":true,"id":63},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":861},"targetMethodName":"realignConnection","varMapping":{"__isSmartRef__":true,"id":891},"dependendConnections":[{"__isSmartRef__":true,"id":892},{"__isSmartRef__":true,"id":894},{"__isSmartRef__":true,"id":896},{"__isSmartRef__":true,"id":898},{"__isSmartRef__":true,"id":900},{"__isSmartRef__":true,"id":902},{"__isSmartRef__":true,"id":904},{"__isSmartRef__":true,"id":906}],"visualConnector":{"__isSmartRef__":true,"id":876},"oldTransform":{"__isSmartRef__":true,"id":908},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"891":{"source":{"__isSmartRef__":true,"id":63},"target":{"__isSmartRef__":true,"id":861}},"892":{"sourceObj":{"__isSmartRef__":true,"id":63},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":890},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":893},"dependedBy":{"__isSmartRef__":true,"id":890},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"893":{"source":{"__isSmartRef__":true,"id":63},"target":{"__isSmartRef__":true,"id":890}},"894":{"sourceObj":{"__isSmartRef__":true,"id":63},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":890},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":895},"dependedBy":{"__isSmartRef__":true,"id":890},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"895":{"source":{"__isSmartRef__":true,"id":63},"target":{"__isSmartRef__":true,"id":890}},"896":{"sourceObj":{"__isSmartRef__":true,"id":63},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":890},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":897},"dependedBy":{"__isSmartRef__":true,"id":890},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"897":{"source":{"__isSmartRef__":true,"id":63},"target":{"__isSmartRef__":true,"id":890}},"898":{"sourceObj":{"__isSmartRef__":true,"id":63},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":890},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":899},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","dependedBy":{"__isSmartRef__":true,"id":890},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"899":{"source":{"__isSmartRef__":true,"id":63},"target":{"__isSmartRef__":true,"id":890}},"900":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":890},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":901},"dependedBy":{"__isSmartRef__":true,"id":890},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"901":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":890}},"902":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":890},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":903},"dependedBy":{"__isSmartRef__":true,"id":890},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"903":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":890}},"904":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":890},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":905},"dependedBy":{"__isSmartRef__":true,"id":890},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"905":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":890}},"906":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":890},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":907},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","dependedBy":{"__isSmartRef__":true,"id":890},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"907":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":890}},"908":{"d":1,"a":1,"f":63,"e":79,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":909},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"909":{"a":1,"b":0,"c":0,"d":1,"e":79,"f":63,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"910":{"morphMenuItems":{"__isSmartRef__":true,"id":911}},"911":{"varMapping":{"__isSmartRef__":true,"id":912},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = $world;\n var items = [\n ['Edit converter', function() {\n var window = lively.bindings.editConnection(con);\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['Hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['Disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['Cancel', function() {}]\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"912":{"this":{"__isSmartRef__":true,"id":876},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":913}},"913":{"$super":{"__isSmartRef__":true,"id":914}},"914":{"varMapping":{"__isSmartRef__":true,"id":915},"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":916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"915":{"obj":{"__isSmartRef__":true,"id":876},"name":"morphMenuItems"},"916":{},"917":{},"918":{"source":{"__isSmartRef__":true,"id":861},"target":{"__isSmartRef__":true,"id":876}},"919":{"sourceObj":{"__isSmartRef__":true,"id":861},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":875},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":920},"dependedBy":{"__isSmartRef__":true,"id":875},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"920":{"source":{"__isSmartRef__":true,"id":861},"target":{"__isSmartRef__":true,"id":875}},"921":{"sourceObj":{"__isSmartRef__":true,"id":861},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":875},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":922},"dependedBy":{"__isSmartRef__":true,"id":875},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"922":{"source":{"__isSmartRef__":true,"id":861},"target":{"__isSmartRef__":true,"id":875}},"923":{"sourceObj":{"__isSmartRef__":true,"id":861},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":875},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":924},"dependedBy":{"__isSmartRef__":true,"id":875},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"924":{"source":{"__isSmartRef__":true,"id":861},"target":{"__isSmartRef__":true,"id":875}},"925":{"sourceObj":{"__isSmartRef__":true,"id":861},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":875},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":926},"dependedBy":{"__isSmartRef__":true,"id":875},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"926":{"source":{"__isSmartRef__":true,"id":861},"target":{"__isSmartRef__":true,"id":875}},"927":{"morphMenuItems":{"__isSmartRef__":true,"id":928}},"928":{"varMapping":{"__isSmartRef__":true,"id":929},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = $world;\n var items = [\n ['Edit converter', function() {\n var window = lively.bindings.editConnection(con);\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['Hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['Disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['Cancel', function() {}]\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"929":{"this":{"__isSmartRef__":true,"id":861},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":930}},"930":{"$super":{"__isSmartRef__":true,"id":931}},"931":{"varMapping":{"__isSmartRef__":true,"id":932},"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":933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"932":{"obj":{"__isSmartRef__":true,"id":861},"name":"morphMenuItems"},"933":{},"934":{},"935":{"partName":"WhiteBoard","requiredModules":[],"idOnLoad":"A515593C-C242-4C48-B8E2-3F8B2D33C758","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"936":{"onrestore":{"__isSmartRef__":true,"id":937},"reset":{"__isSmartRef__":true,"id":945},"deactivate":{"__isSmartRef__":true,"id":949},"isOnline":{"__isSmartRef__":true,"id":953},"defaultDeactiveColor":{"__isSmartRef__":true,"id":957},"ensureButton":{"__isSmartRef__":true,"id":961},"clear":{"__isSmartRef__":true,"id":965},"setupButtons":{"__isSmartRef__":true,"id":969},"createTitleBarButton":{"__isSmartRef__":true,"id":973},"setupConnections":{"__isSmartRef__":true,"id":977},"onMouseOut":{"__isSmartRef__":true,"id":981},"setChannel":{"__isSmartRef__":true,"id":989},"setUserName":{"__isSmartRef__":true,"id":993},"getUserName":{"__isSmartRef__":true,"id":997},"setPencilSize":{"__isSmartRef__":true,"id":1001},"setColor":{"__isSmartRef__":true,"id":1005},"setPencilStyle":{"__isSmartRef__":true,"id":1009},"getColor":{"__isSmartRef__":true,"id":1013},"getPencilSize":{"__isSmartRef__":true,"id":1017},"getPencilStyle":{"__isSmartRef__":true,"id":1021},"$$isOnline":{"__isSmartRef__":true,"id":1025},"disconnectSocket":{"__isSmartRef__":true,"id":1029},"activate":{"__isSmartRef__":true,"id":1033},"initialSync":{"__isSmartRef__":true,"id":1037},"lineTo":{"__isSmartRef__":true,"id":1041},"morphMenuItems":{"__isSmartRef__":true,"id":1045},"onMouseDown":{"__isSmartRef__":true,"id":1053},"onMouseMove":{"__isSmartRef__":true,"id":1061},"onMouseUp":{"__isSmartRef__":true,"id":1069},"onTouchEnd":{"__isSmartRef__":true,"id":1077},"onTouchMove":{"__isSmartRef__":true,"id":1085},"onTouchStart":{"__isSmartRef__":true,"id":1089},"toggleActivation":{"__isSmartRef__":true,"id":1097},"transformPoint":{"__isSmartRef__":true,"id":1101},"getChannel":{"__isSmartRef__":true,"id":1105},"createStrokeShape":{"__isSmartRef__":true,"id":1109},"connectSocket":{"__isSmartRef__":true,"id":1113},"deleteMorphWith":{"__isSmartRef__":true,"id":1117},"createSocketListeners":{"__isSmartRef__":true,"id":1121},"addMorphFrom":{"__isSmartRef__":true,"id":1125},"deserializeMorph":{"__isSmartRef__":true,"id":1129},"defaultColor":{"__isSmartRef__":true,"id":1133},"getConnectedUserNames":{"__isSmartRef__":true,"id":1137},"defaultPencilSize":{"__isSmartRef__":true,"id":1141},"defaultPencilStyle":{"__isSmartRef__":true,"id":1145},"applyChanges":{"__isSmartRef__":true,"id":1149},"fakeCopy":{"__isSmartRef__":true,"id":1153},"observeChanges":{"__isSmartRef__":true,"id":1157},"sendChange":{"__isSmartRef__":true,"id":1161},"createMouseIndicator":{"__isSmartRef__":true,"id":1165},"updateMouseIndicators":{"__isSmartRef__":true,"id":1169},"onTouchOut":{"__isSmartRef__":true,"id":1173},"sendLine":{"__isSmartRef__":true,"id":1177},"sendMorph":{"__isSmartRef__":true,"id":1181},"handleStartEvent":{"__isSmartRef__":true,"id":1185},"handleEndEvent":{"__isSmartRef__":true,"id":1189},"handleMoveEvent":{"__isSmartRef__":true,"id":1193},"handleOutEvent":{"__isSmartRef__":true,"id":1197},"moveMorphInHand":{"__isSmartRef__":true,"id":1201},"serializeMorph":{"__isSmartRef__":true,"id":1205},"applySubmorphOrderChanges":{"__isSmartRef__":true,"id":1209},"loggedIn":{"__isSmartRef__":true,"id":1213},"packLine":{"__isSmartRef__":true,"id":1217},"drawLine":{"__isSmartRef__":true,"id":1221},"defaultActiveColor":{"__isSmartRef__":true,"id":1225},"createTestMorph":{"__isSmartRef__":true,"id":1229},"getCurrentStroke":{"__isSmartRef__":true,"id":1233}},"937":{"varMapping":{"__isSmartRef__":true,"id":938},"source":"function onrestore() {\n // this.deactivate();\n module('projects.BP2012.Whiteboard').load(true);\n module('projects.BP2012.DiffMerge').load(true);\n this.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"938":{"this":{"__isSmartRef__":true,"id":63},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":939}},"939":{"$super":{"__isSmartRef__":true,"id":940}},"940":{"varMapping":{"__isSmartRef__":true,"id":941},"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":942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"941":{"obj":{"__isSmartRef__":true,"id":63},"name":"onrestore"},"942":{},"943":{"timestamp":{"__isSmartRef__":true,"id":944},"user":"conradcalmez","tags":["initialization"]},"944":{"isSerializedDate":true,"string":"Thu Dec 20 2012 08:53:59 GMT-0800 (PST)"},"945":{"varMapping":{"__isSmartRef__":true,"id":946},"source":"function reset() {\n this.deactivate();\n this.clear();\n this.setupButtons();\n this.setupConnections();\n \n this.owner.addMorph(this);\n \n this.isWhiteboard = true;\n this.setChannel('default');\n this.setUserName('');\n this.enteredBefore = false;\n this.isDrawing = false;\n this.currentStroke = null;\n this.prevState = null;\n this.doNotSerializeList = [\n 'showsHalos', 'lastTap', 'lastTimeClickedOnIpad', 'lastUpdate',\n 'startDate', 'lastUpdate', 'showsPie', 'selectionMorph', 'pieItems',\n 'moved', 'scrolled', 'selectable', 'showTimeout', 'pieTouch',\n 'enteredItem', 'activatedPieItem', 'moveTouch', 'tapTouch',\n 'textChunks', 'previousOwner', 'previousPosition'\n ];\n\n this.pencilStyler.reset();\n this.chat.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"946":{"this":{"__isSmartRef__":true,"id":63}},"947":{"timestamp":{"__isSmartRef__":true,"id":948},"user":"conradcalmez","tags":["initialization"]},"948":{"isSerializedDate":true,"string":"Thu Nov 08 2012 08:18:13 GMT-0800 (PST)"},"949":{"varMapping":{"__isSmartRef__":true,"id":950},"source":"function deactivate() {\n if (this.isOnline()) {\n this.socket.emit('mouse', {\n message: {x: 0, y: 0, remove: []},\n me: false,\n broadcast: true\n });\n\n this.disconnectSocket();\n this.stopStepping();\n this.oldSubmorphs = [];\n this.userName = '';\n this.owner.submorphs.each(function (ea) {\n if (ea.isMouseIndicator) {\n ea.remove();\n }\n });\n }\n this.active = false;\n this.setBorderColor(this.defaultDeactiveColor());\n this.ensureButton(\"O\", \"ensureDepressed\");\n}","funcProperties":{"__isSmartRef__":true,"id":951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"950":{"this":{"__isSmartRef__":true,"id":63}},"951":{"timestamp":{"__isSmartRef__":true,"id":952},"user":"conradcalmez","tags":["user interaction"]},"952":{"isSerializedDate":true,"string":"Sun Feb 10 2013 08:01:53 GMT-0800 (PST)"},"953":{"varMapping":{"__isSmartRef__":true,"id":954},"source":"function isOnline() {\n return (this.active && this.socket !== undefined);\n}","funcProperties":{"__isSmartRef__":true,"id":955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"954":{"this":{"__isSmartRef__":true,"id":63}},"955":{"timestamp":{"__isSmartRef__":true,"id":956},"user":"conradcalmez","tags":["accessing"]},"956":{"isSerializedDate":true,"string":"Tue Feb 12 2013 05:55:44 GMT-0800 (PST)"},"957":{"varMapping":{"__isSmartRef__":true,"id":958},"source":"function defaultDeactiveColor() {\n return Color.black;\n}","funcProperties":{"__isSmartRef__":true,"id":959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"958":{"this":{"__isSmartRef__":true,"id":63}},"959":{"timestamp":{"__isSmartRef__":true,"id":960},"user":"conradcalmez","tags":["accessing"]},"960":{"isSerializedDate":true,"string":"Sun Feb 10 2013 04:18:26 GMT-0800 (PST)"},"961":{"varMapping":{"__isSmartRef__":true,"id":962},"source":"function ensureButton(name, ensureFunctionName) {\n this.owner.titleBar.submorphs.each(function (button) {\n if (button instanceof lively.morphic.Button\n && button.extraButton === true\n && button.getLabel() === name) {\n button[ensureFunctionName].call(button);\n }\n });\n}","funcProperties":{"__isSmartRef__":true,"id":963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"962":{"this":{"__isSmartRef__":true,"id":63}},"963":{"timestamp":{"__isSmartRef__":true,"id":964},"user":"conradcalmez","tags":["user interface"]},"964":{"isSerializedDate":true,"string":"Mon Feb 11 2013 10:35:19 GMT-0800 (PST)"},"965":{"varMapping":{"__isSmartRef__":true,"id":966},"source":"function clear() {\n if (this.isOnline()) {\n this.socket.emit('clear', {\n // TODO this is used very much -> refactor to a object factory\n me: true,\n broadcast: true\n });\n } else {\n this.submorphs.invoke('remove');\n }\n}","funcProperties":{"__isSmartRef__":true,"id":967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"966":{"this":{"__isSmartRef__":true,"id":63}},"967":{"timestamp":{"__isSmartRef__":true,"id":968},"user":"conradcalmez","tags":["user interaction","message sending"]},"968":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"969":{"varMapping":{"__isSmartRef__":true,"id":970},"source":"function setupButtons() {\n this.owner.titleBar.submorphs.select(function (ea) {\n if (ea.extraButton) {\n return ea;\n }\n }).each(function (ea) {\n ea.remove();\n });\n this.createTitleBarButton(\n \"O\",\n \"toggles online state\",\n this,\n \"active\",\n \"toggleActivation\"\n );\n this.createTitleBarButton(\n \"C\",\n \"opens the chat pane\",\n this.chat,\n \"_Visible\",\n \"toggle\"\n );\n this.createTitleBarButton(\n \"P\",\n \"opens the pencil styler\",\n this.pencilStyler,\n \"_Visible\",\n \"toggle\"\n );\n}","funcProperties":{"__isSmartRef__":true,"id":971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"970":{"this":{"__isSmartRef__":true,"id":63}},"971":{"timestamp":{"__isSmartRef__":true,"id":972},"user":"conradcalmez","tags":[]},"972":{"isSerializedDate":true,"string":"Mon Feb 11 2013 10:35:19 GMT-0800 (PST)"},"973":{"varMapping":{"__isSmartRef__":true,"id":974},"source":"function createTitleBarButton(name, tooltip,\n targetObject, targetState, toggleFunction) {\n var titleBar = this.owner.titleBar,\n size = titleBar.getExtent().y - 2,\n b = new lively.morphic.Button(),\n buttonCount;\n\n if (!this.owner) {\n // when whiteboard is not completely serialized\n // e.g. when loading it from the PartsBin\n return;\n }\n b.whiteboard = this;\n b.targetObject = targetObject;\n b.targetState = targetState;\n b.toggleFunction = toggleFunction;\n b.setToolTip(tooltip);\n b.extraButton = true;\n b.setExtent(pt(size, size));\n if (b.beToolbarButton) {\n b.beToolbarButton(name);\n } else {\n b.setLabel(name);\n }\n b.addScript(function ensurePressed() {\n if (this.isActive) {\n this.isPressed = true;\n this.changeAppearanceFor(true);\n }\n });\n b.addScript(function ensureDepressed() {\n this.isPressed = false;\n this.changeAppearanceFor(false);\n });\n b.addScript(function onFire() {\n this.targetObject[this.toggleFunction].apply(this.targetObject);\n });\n connect(b, \"fire\", b, \"onFire\");\n //redefine behaviour on mouse events\n b.onMouseDown = function (evt) {\n if (this.isValidClick(evt) && this.isActive) {\n this.isPressed = true;\n this.changeAppearanceFor(true);\n }\n return false;\n };\n b.onMouseOut = function (evt) {\n //this.isPressed && this.changeAppearanceFor(false);\n };\n b.onMouseUp = function (evt) {\n if (this.isValidClick(evt) && this.isPressed) {\n var newValue = this.toggle ? !this.value : false;\n this.setValue(newValue);\n var targetState = this.targetObject[this.targetState];\n this.changeAppearanceFor(targetState);\n this.isPressed = targetState;\n }\n return false;\n };\n b.openInWorld();\n titleBar.addMorphFront(b);\n buttonCount = titleBar.submorphs.select(function (ea) {\n return ea.extraButton;\n }).length;\n b.setPosition(pt((buttonCount + 1) * b.getExtent().x, 1));\n b.adjustForNewBounds();\n return b;\n}","funcProperties":{"__isSmartRef__":true,"id":975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"974":{"this":{"__isSmartRef__":true,"id":63}},"975":{"timestamp":{"__isSmartRef__":true,"id":976},"user":"conradcalmez","tags":["user interface"]},"976":{"isSerializedDate":true,"string":"Mon Feb 11 2013 10:35:19 GMT-0800 (PST)"},"977":{"varMapping":{"__isSmartRef__":true,"id":978},"source":"function setupConnections() {\n this.attributeConnections.invoke('disconnect');\n connect(this, 'channelName', this.owner.titleBar, 'setTitle', {\n converter: function (channelName) {\n return 'Channel: ' + channelName;\n }\n });\n this.chat.setupConnections();\n this.pencilStyler.setupConnections();\n}","funcProperties":{"__isSmartRef__":true,"id":979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"978":{"this":{"__isSmartRef__":true,"id":63}},"979":{"timestamp":{"__isSmartRef__":true,"id":980},"user":"conradcalmez","tags":[]},"980":{"isSerializedDate":true,"string":"Sun Nov 04 2012 11:38:36 GMT-0800 (PST)"},"981":{"varMapping":{"__isSmartRef__":true,"id":982},"source":"function onMouseOut(evt) {\n this.handleOutEvent(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"982":{"this":{"__isSmartRef__":true,"id":63},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":983}},"983":{"$super":{"__isSmartRef__":true,"id":984}},"984":{"varMapping":{"__isSmartRef__":true,"id":985},"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":986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"985":{"obj":{"__isSmartRef__":true,"id":63},"name":"onMouseOut"},"986":{},"987":{"timestamp":{"__isSmartRef__":true,"id":988},"user":"athomschke","tags":["user interaction","mouse actions"]},"988":{"isSerializedDate":true,"string":"Sun May 20 2012 09:55:58 GMT-0700 (PDT)"},"989":{"varMapping":{"__isSmartRef__":true,"id":990},"source":"function setChannel(channelName) {\n var that = this;\n\n this.channelName = channelName;\n // TODO: maybe we don't want this for proper offline/online switching\n // reasons.\n this.submorphs.each(function (ea) {\n ea.identifier = undefined;\n });\n\n if (this.isOnline()) {\n // this.submorphs.each(function (ea) {\n // ea.remove();\n // });\n this.socket.emit(\n 'channel',\n this.channelName,\n function (join, joinChannel, leave, leaveChannel, initialStrokes,\n initialMorphs, initialChanges) {\n if (join) {\n alertOK('Successfully joined channel ' +\n joinChannel + '.');\n that.initialSync(\n initialStrokes,\n initialMorphs,\n initialChanges\n );\n that.startStepping(1000, 'observeChanges');\n }\n if (leave) {\n alertOK('Successfully left channel ' + leaveChannel + '.');\n }\n }\n );\n }\n}","funcProperties":{"__isSmartRef__":true,"id":991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"990":{"this":{"__isSmartRef__":true,"id":63}},"991":{"timestamp":{"__isSmartRef__":true,"id":992},"user":"conradcalmez","tags":["message sending"]},"992":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"993":{"varMapping":{"__isSmartRef__":true,"id":994},"source":"function setUserName(name) {\n this.userName = name || this.getUserName();\n if (this.isOnline()) {\n this.socket.emit('nick', {message: name, me: false, broadcast: true});\n }\n}","funcProperties":{"__isSmartRef__":true,"id":995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"994":{"this":{"__isSmartRef__":true,"id":63}},"995":{"timestamp":{"__isSmartRef__":true,"id":996},"user":"conradcalmez","tags":["message sending"]},"996":{"isSerializedDate":true,"string":"Sun Feb 10 2013 04:13:25 GMT-0800 (PST)"},"997":{"varMapping":{"__isSmartRef__":true,"id":998},"source":"function getUserName() {\n return this.userName || lively.morphic.World.current().requestUserName();\n}","funcProperties":{"__isSmartRef__":true,"id":999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"998":{"this":{"__isSmartRef__":true,"id":63}},"999":{"timestamp":{"__isSmartRef__":true,"id":1000},"user":"athomschke","tags":["accessing"]},"1000":{"isSerializedDate":true,"string":"Mon May 21 2012 09:39:36 GMT-0700 (PDT)"},"1001":{"varMapping":{"__isSmartRef__":true,"id":1002},"source":"function setPencilSize(size) {\n this.pencilSize = size;\n}","funcProperties":{"__isSmartRef__":true,"id":1003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1002":{"this":{"__isSmartRef__":true,"id":63}},"1003":{"timestamp":{"__isSmartRef__":true,"id":1004},"user":"conradcalmez","tags":["accessing"]},"1004":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:57:47 GMT-0700 (PDT)"},"1005":{"varMapping":{"__isSmartRef__":true,"id":1006},"source":"function setColor(color) {\n this.color = color;\n}","funcProperties":{"__isSmartRef__":true,"id":1007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1006":{"this":{"__isSmartRef__":true,"id":63}},"1007":{"timestamp":{"__isSmartRef__":true,"id":1008},"user":"conradcalmez","tags":["accessing"]},"1008":{"isSerializedDate":true,"string":"Fri Apr 27 2012 11:45:41 GMT-0700 (PDT)"},"1009":{"varMapping":{"__isSmartRef__":true,"id":1010},"source":"function setPencilStyle(style) {\n this.pencilStyle = style;\n}","funcProperties":{"__isSmartRef__":true,"id":1011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1010":{"this":{"__isSmartRef__":true,"id":63}},"1011":{"timestamp":{"__isSmartRef__":true,"id":1012},"user":"conradcalmez","tags":["accessing"]},"1012":{"isSerializedDate":true,"string":"Wed May 02 2012 05:59:47 GMT-0700 (PDT)"},"1013":{"varMapping":{"__isSmartRef__":true,"id":1014},"source":"function getColor() {\n return this.color || this.defaultColor();\n}","funcProperties":{"__isSmartRef__":true,"id":1015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1014":{"this":{"__isSmartRef__":true,"id":63}},"1015":{"timestamp":{"__isSmartRef__":true,"id":1016},"user":"conradcalmez","tags":["accessing"]},"1016":{"isSerializedDate":true,"string":"Fri Apr 27 2012 11:44:47 GMT-0700 (PDT)"},"1017":{"varMapping":{"__isSmartRef__":true,"id":1018},"source":"function getPencilSize() {\n return this.pencilSize || this.defaultPencilSize();\n}","funcProperties":{"__isSmartRef__":true,"id":1019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1018":{"this":{"__isSmartRef__":true,"id":63}},"1019":{"timestamp":{"__isSmartRef__":true,"id":1020},"user":"conradcalmez","tags":["accessing"]},"1020":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:58:24 GMT-0700 (PDT)"},"1021":{"varMapping":{"__isSmartRef__":true,"id":1022},"source":"function getPencilStyle() {\n return this.pencilStyle || this.defaultPencilStyle();\n}","funcProperties":{"__isSmartRef__":true,"id":1023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1022":{"this":{"__isSmartRef__":true,"id":63}},"1023":{"timestamp":{"__isSmartRef__":true,"id":1024},"user":"conradcalmez","tags":["accessing"]},"1024":{"isSerializedDate":true,"string":"Wed May 02 2012 06:03:14 GMT-0700 (PDT)"},"1025":{"varMapping":{"__isSmartRef__":true,"id":1026},"source":"function isOnline() {\n return (this.active && this.socket !== undefined);\n}","funcProperties":{"__isSmartRef__":true,"id":1027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1026":{"this":{"__isSmartRef__":true,"id":63}},"1027":{"timestamp":{"__isSmartRef__":true,"id":1028},"user":"conradcalmez","tags":[]},"1028":{"isSerializedDate":true,"string":"Sun Nov 04 2012 10:01:24 GMT-0800 (PST)"},"1029":{"varMapping":{"__isSmartRef__":true,"id":1030},"source":"function disconnectSocket() {\n if (this.socket) {\n this.socket.disconnect();\n }\n this.socket = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1030":{"this":{"__isSmartRef__":true,"id":63}},"1031":{"timestamp":{"__isSmartRef__":true,"id":1032},"user":"conradcalmez","tags":["server connection","synchronization"]},"1032":{"isSerializedDate":true,"string":"Sun Feb 10 2013 08:16:30 GMT-0800 (PST)"},"1033":{"varMapping":{"__isSmartRef__":true,"id":1034},"source":"function activate() {\n if (!this.isOnline()) {\n this.connectSocket();\n // this.setUserName();\n this.active = true;\n this.setBorderColor(this.defaultActiveColor());\n this.ensureButton(\"O\", \"ensurePressed\");\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1034":{"this":{"__isSmartRef__":true,"id":63}},"1035":{"timestamp":{"__isSmartRef__":true,"id":1036},"user":"conradcalmez","tags":["user interaction"]},"1036":{"isSerializedDate":true,"string":"Sun Feb 10 2013 08:01:38 GMT-0800 (PST)"},"1037":{"varMapping":{"__isSmartRef__":true,"id":1038},"source":"function initialSync(initialStrokes, initialMorphs,\n initialChanges) {\n var that = this,\n m,\n existingIds;\n\n alertOK('Synchronizing with channel.');\n // sync new strokes and morphs\n this.submorphs.each(function (ea) {\n var color,\n line;\n\n if (ea.identifier === undefined) {\n ea.identifier = ea.id;\n if (ea.isStroke) {\n color = {\n r: ea.getBorderColor().r * 255,\n g: ea.getBorderColor().g * 255,\n b: ea.getBorderColor().b * 255,\n a: ea.getBorderColor().a\n };\n line = that.packLine(\n ea.shape.vertices(),\n ea.timestamp,\n ea.identifier,\n color,\n ea.getBorderWidth(),\n ea.getBorderStyle()\n );\n that.sendLine(line);\n } else {\n that.sendMorph(ea, false, true);\n }\n }\n });\n this.oldSubmorphs = this.submorphs.pluck('identifier');\n // pull strokes and morphs that are not already there\n existingIds = this.submorphs.pluck('identifier');\n initialStrokes.each(function (ea) {\n that.drawLine(ea);\n });\n initialMorphs.each(function (ea) {\n if (ea.morph && existingIds.indexOf(ea.identifier) < 0) {\n m = that.deserializeMorph(ea.morph);\n that.addMorph(m);\n m.setPosition(pt(ea.position.x, ea.position.y));\n }\n });\n initialChanges.each(function (ea) {\n that.applyChanges(ea, initialMorphs.pluck('identifier'));\n });\n}","funcProperties":{"__isSmartRef__":true,"id":1039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1038":{"this":{"__isSmartRef__":true,"id":63}},"1039":{"timestamp":{"__isSmartRef__":true,"id":1040},"user":"conradcalmez","tags":["server connection","user interaction"]},"1040":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1041":{"varMapping":{"__isSmartRef__":true,"id":1042},"source":"function lineTo(point, optTransform, optColor) {\n var stroke,\n color,\n line;\n\n if (optTransform) {\n point = this.transformPoint(point);\n }\n stroke = this.getCurrentStroke(point);\n if (optColor) {\n color = optColor;\n stroke.setBorderColor(color);\n } else {\n color = this.color;\n }\n stroke.setVertices(stroke.vertices().concat([point]));\n if (this.isOnline()) {\n line = this.packLine(\n stroke.identifier,\n point,\n {\n r: color.r * 255,\n g: color.g * 255,\n b: color.b * 255,\n a: color.a\n },\n stroke.getBorderWidth(),\n stroke.getBorderStyle()\n );\n this.sendLine(line);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1042":{"this":{"__isSmartRef__":true,"id":63}},"1043":{"timestamp":{"__isSmartRef__":true,"id":1044},"user":"conradcalmez","tags":["user interaction","drawing"]},"1044":{"isSerializedDate":true,"string":"Mon Feb 11 2013 10:35:19 GMT-0800 (PST)"},"1045":{"varMapping":{"__isSmartRef__":true,"id":1046},"source":"function morphMenuItems() {\n var world = lively.morphic.World.current(),\n items = $super(),\n itemString = \"activate sync\",\n penString = \" pencil styler\",\n chatString = \" chat\";\n\n items.push([\"get tester morph\", function () {\n this.createTestMorph();\n }.bind(this)]);\n if (this.isOnline()) {\n itemString = \"de\" + itemString;\n }\n items.push([itemString, function () {\n this.toggleActivation();\n }.bind(this)]);\n items.push([\"clear whiteboard\", function () {\n this.clear();\n }.bind(this)]);\n items.push([\n \"change channel\",\n function () {\n world.prompt(\n 'Enter a channel name',\n function (input) {\n this.setChannel(input);\n }.bind(this),\n this.getChannel()\n );\n }.bind(this)\n ]);\n if (this.pencilStyler.isVisible()) {\n penString = \"hide\" + penString;\n } else {\n penString = \"show\" + penString;\n }\n items.push([penString, function () {\n this.pencilStyler.toggle();\n }.bind(this)]);\n if (this.chat.isVisible()) {\n chatString = \"hide\" + chatString;\n } else {\n chatString = \"show\" + chatString;\n }\n items.push([chatString, function () { this.chat.toggle(); }.bind(this)]);\n return items;\n}","funcProperties":{"__isSmartRef__":true,"id":1051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1046":{"this":{"__isSmartRef__":true,"id":63},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1047}},"1047":{"$super":{"__isSmartRef__":true,"id":1048}},"1048":{"varMapping":{"__isSmartRef__":true,"id":1049},"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":1050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1049":{"obj":{"__isSmartRef__":true,"id":63},"name":"morphMenuItems"},"1050":{},"1051":{"timestamp":{"__isSmartRef__":true,"id":1052},"user":"conradcalmez","tags":["user interface"]},"1052":{"isSerializedDate":true,"string":"Mon Feb 11 2013 10:35:19 GMT-0800 (PST)"},"1053":{"varMapping":{"__isSmartRef__":true,"id":1054},"source":"function onMouseDown(evt) {\n var keyPressed = evt.altKet || evt.ctrlKey || evt.metaKey || evt.shiftKey;\n if (!keyPressed && evt.isLeftMouseButtonDown()) {\n this.handleStartEvent(evt);\n }\n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":1059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1054":{"this":{"__isSmartRef__":true,"id":63},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1055}},"1055":{"$super":{"__isSmartRef__":true,"id":1056}},"1056":{"varMapping":{"__isSmartRef__":true,"id":1057},"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":1058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1057":{"obj":{"__isSmartRef__":true,"id":63},"name":"onMouseDown"},"1058":{},"1059":{"timestamp":{"__isSmartRef__":true,"id":1060},"user":"conradcalmez","tags":["user interaction","mouse actions"]},"1060":{"isSerializedDate":true,"string":"Thu Dec 20 2012 09:04:52 GMT-0800 (PST)"},"1061":{"varMapping":{"__isSmartRef__":true,"id":1062},"source":"function onMouseMove(evt) {\n this.moveCounter = this.moveCounter || 0;\n if (this.moveCounter >= 20) {\n this.handleMoveEvent(evt);\n } else {\n this.moveCounter += 1;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1062":{"this":{"__isSmartRef__":true,"id":63},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1063}},"1063":{"$super":{"__isSmartRef__":true,"id":1064}},"1064":{"varMapping":{"__isSmartRef__":true,"id":1065},"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":1066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1065":{"obj":{"__isSmartRef__":true,"id":63},"name":"onMouseMove"},"1066":{},"1067":{"timestamp":{"__isSmartRef__":true,"id":1068},"user":"conradcalmez","tags":["user interaction","mouse actions"]},"1068":{"isSerializedDate":true,"string":"Thu Dec 20 2012 09:04:31 GMT-0800 (PST)"},"1069":{"varMapping":{"__isSmartRef__":true,"id":1070},"source":"function onMouseUp(evt) {\n this.handleEndEvent(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":1075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1070":{"this":{"__isSmartRef__":true,"id":63},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1071}},"1071":{"$super":{"__isSmartRef__":true,"id":1072}},"1072":{"varMapping":{"__isSmartRef__":true,"id":1073},"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":1074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1073":{"obj":{"__isSmartRef__":true,"id":63},"name":"onMouseUp"},"1074":{},"1075":{"timestamp":{"__isSmartRef__":true,"id":1076},"user":"athomschke","tags":["user interaction","mouse actions"]},"1076":{"isSerializedDate":true,"string":"Sun May 20 2012 07:51:50 GMT-0700 (PDT)"},"1077":{"varMapping":{"__isSmartRef__":true,"id":1078},"source":"function onTouchEnd(evt) {\n this.handleEndEvent(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":1083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1078":{"this":{"__isSmartRef__":true,"id":63},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1079}},"1079":{"$super":{"__isSmartRef__":true,"id":1080}},"1080":{"varMapping":{"__isSmartRef__":true,"id":1081},"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":1082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1081":{"obj":{"__isSmartRef__":true,"id":63},"name":"onTouchEnd"},"1082":{},"1083":{"timestamp":{"__isSmartRef__":true,"id":1084},"user":"athomschke","tags":["user interaction","touch actions"]},"1084":{"isSerializedDate":true,"string":"Sun May 20 2012 06:00:05 GMT-0700 (PDT)"},"1085":{"varMapping":{"__isSmartRef__":true,"id":1086},"source":"function onTouchMove(evt) {\n this.handleMoveEvent(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":1087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1086":{"this":{"__isSmartRef__":true,"id":63}},"1087":{"timestamp":{"__isSmartRef__":true,"id":1088},"user":"conradcalmez","tags":["user interaction","touch actions"]},"1088":{"isSerializedDate":true,"string":"Sun Nov 04 2012 02:44:04 GMT-0800 (PST)"},"1089":{"varMapping":{"__isSmartRef__":true,"id":1090},"source":"function onTouchStart(evt) {\n if (evt.touches.length === 1) {\n if (!this.handleStartEvent(evt)) {\n $super(evt);\n }\n } else {\n this.handleEndEvent(evt);\n $super(evt);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1090":{"this":{"__isSmartRef__":true,"id":63},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1091}},"1091":{"$super":{"__isSmartRef__":true,"id":1092}},"1092":{"varMapping":{"__isSmartRef__":true,"id":1093},"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":1094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1093":{"obj":{"__isSmartRef__":true,"id":63},"name":"onTouchStart"},"1094":{},"1095":{"timestamp":{"__isSmartRef__":true,"id":1096},"user":"conradcalmez","tags":["user interaction","touch actions"]},"1096":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1097":{"varMapping":{"__isSmartRef__":true,"id":1098},"source":"function toggleActivation() {\n if (!this.isOnline()) {\n this.loggedIn(function (status) {\n if (!status.isDone()) {\n return;\n }\n this.activate();\n });\n } else {\n this.deactivate();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1098":{"this":{"__isSmartRef__":true,"id":63}},"1099":{"timestamp":{"__isSmartRef__":true,"id":1100},"user":"conradcalmez","tags":[]},"1100":{"isSerializedDate":true,"string":"Sun Nov 04 2012 02:56:20 GMT-0800 (PST)"},"1101":{"varMapping":{"__isSmartRef__":true,"id":1102},"source":"function transformPoint(pagePoint) {\n var whiteboardPoint = pagePoint\n .addPt(this.getScrollBounds().topLeft())\n .subPt(this.getPositionInWorld());\n return whiteboardPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":1103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1102":{"this":{"__isSmartRef__":true,"id":63}},"1103":{"timestamp":{"__isSmartRef__":true,"id":1104},"user":"conradcalmez","tags":["drawing"]},"1104":{"isSerializedDate":true,"string":"Sun Nov 04 2012 02:57:15 GMT-0800 (PST)"},"1105":{"varMapping":{"__isSmartRef__":true,"id":1106},"source":"function getChannel() {\n return (this.channelName || 'example');\n}","funcProperties":{"__isSmartRef__":true,"id":1107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1106":{"this":{"__isSmartRef__":true,"id":63}},"1107":{"timestamp":{"__isSmartRef__":true,"id":1108},"user":"conradcalmez","tags":["accessing"]},"1108":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1109":{"varMapping":{"__isSmartRef__":true,"id":1110},"source":"function createStrokeShape(points, optSpec) {\n var pointArray,\n spec,\n stroke;\n\n if (points.constructor !== Array) {\n pointArray = [pt(points.x, points.y)];\n } else {\n pointArray = points;\n }\n if (optSpec === undefined) {\n spec = {\n timestamp: Date.now(),\n color: this.getColor(),\n width: this.getPencilSize(),\n style: this.getPencilStyle()\n };\n } else {\n spec = optSpec;\n spec.color = Color.rgba(\n optSpec.color.r,\n optSpec.color.g,\n optSpec.color.b,\n optSpec.color.a\n );\n }\n stroke = Morph.makePolygon(\n pointArray,\n 1,\n spec.color,\n Color.white.withA(0.0001)\n );\n stroke.setBorderWidth(spec.width);\n stroke.setBorderStyle(spec.style);\n stroke.disableEvents();\n stroke.disableDropping();\n stroke.isStroke = true;\n if (spec.identifier !== undefined) {\n stroke.identifier = spec.identifier;\n } else {\n stroke.identifier = stroke.id;\n }\n stroke.time = spec.timestamp;\n return stroke;\n}","funcProperties":{"__isSmartRef__":true,"id":1111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1110":{"this":{"__isSmartRef__":true,"id":63}},"1111":{"timestamp":{"__isSmartRef__":true,"id":1112},"user":"conradcalmez","tags":["user interaction","drawing"]},"1112":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1113":{"varMapping":{"__isSmartRef__":true,"id":1114},"source":"function connectSocket() {\n var resource = 'socket.io',\n socketIOpath = '/socket.io.js',\n socketioURL = 'http://lively-kernel.org:4000/' +\n resource +\n socketIOpath,\n source;\n\n // load Socket.io library if required\n if (window.io === undefined) {\n source = JSLoader.getSync(socketioURL);\n window.eval(source);\n }\n \n // connect to server\n this.socket = io.connect(\n 'lively-kernel.org:4000',\n {\n 'force new connection': true,\n 'reconnection delay': 1000\n }\n );\n \n this.createSocketListeners();\n}","funcProperties":{"__isSmartRef__":true,"id":1115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1114":{"this":{"__isSmartRef__":true,"id":63}},"1115":{"timestamp":{"__isSmartRef__":true,"id":1116},"user":"conradcalmez","tags":["server connection"]},"1116":{"isSerializedDate":true,"string":"Mon Feb 11 2013 10:35:19 GMT-0800 (PST)"},"1117":{"varMapping":{"__isSmartRef__":true,"id":1118},"source":"function deleteMorphWith(identifier) {\n var toDelete = this.submorphs.find(function (ea) {\n return (ea.identifier === identifier);\n });\n // remove toDelete from oldSubmorphs ary\n if (!toDelete) {\n return;\n }\n this.oldSubmorphs = this.oldSubmorphs.select(function (ea) {\n return toDelete.identifier !== ea;\n });\n toDelete.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":1119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1118":{"this":{"__isSmartRef__":true,"id":63}},"1119":{"timestamp":{"__isSmartRef__":true,"id":1120},"user":"conradcalmez","tags":["synchronization","message receiving"]},"1120":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1121":{"varMapping":{"__isSmartRef__":true,"id":1122},"source":"function createSocketListeners() {\n var that = this;\n\n // auth / (dis)connect + channel join\n this.socket.on('connect', function () {\n that.setUserName(that.getUserName()); // TODO somehow looks strange\n that.setChannel(that.getChannel()); // TODO somehow looks strange\n });\n\n this.socket.on('error', function (reason) {\n alert('Unable to connect socket.io on namespace ' +\n that.getChannel() + ': ' + reason);\n that.deactivate();\n });\n\n // client (dis)connects\n this.socket.on('clientConnect', function (data) {\n var dataColor = Color.hsb(data.message.color.h,\n data.message.color.s,\n data.message.color.b),\n color = data.message.color ? dataColor : Color.black;\n that.chat.showMessage([\n {message: data.message.nick, color: color},\n {message: ' connected', color: Color.black}\n ]);\n });\n \n this.socket.on('clientDisconnect', function (data) {\n var dataColor = Color.hsb(data.message.color.h,\n data.message.color.s,\n data.message.color.b),\n color = data.message.color ? dataColor : Color.black;\n that.chat.showMessage([\n {message: data.message.nick, color: color},\n {message: ' disconnected', color: Color.black}\n ]);\n that.owner.submorphs.each(function (ea) {\n if (ea.isMouseIndicator && ea.identifier === data.message.id) {\n ea.remove();\n }\n });\n });\n\n // ping pong example\n this.socket.on('ping', function (data) {\n that.socket.emit('pong');\n });\n \n this.socket.on('pong', function (data) {\n alertOK(data.message);\n });\n\n this.chat.createChatListeners();\n\n this.socket.on('draw', function (data) {\n that.drawLine(data.message);\n });\n\n this.socket.on('clear', function () {\n that.submorphs.invoke('remove');\n });\n\n this.socket.on('delete', function (data) {\n that.deleteMorphWith(data.message);\n });\n\n this.socket.on('morph', function (data) {\n that.addMorphFrom(data.message);\n });\n\n this.socket.on('mouse', function (data) {\n that.updateMouseIndicators(data);\n });\n\n this.socket.on('change', function (data) {\n that.applyChanges(data.message);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":1123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1122":{"this":{"__isSmartRef__":true,"id":63}},"1123":{"timestamp":{"__isSmartRef__":true,"id":1124},"user":"conradcalmez","tags":["server connection","synchronization"]},"1124":{"isSerializedDate":true,"string":"Tue Feb 12 2013 09:06:49 GMT-0800 (PST)"},"1125":{"varMapping":{"__isSmartRef__":true,"id":1126},"source":"function addMorphFrom(message) {\n var that = this,\n indicatorId = message.id,\n morph,\n indicator;\n\n if (message.serialized) {\n morph = that.deserializeMorph(message.serialized);\n that.addMorph(morph);\n } else {\n indicator = this.owner.submorphs.find(function (ea) {\n return ea.identifier === indicatorId;\n });\n if (!indicator) {\n return;\n }\n\n indicator.submorphs.each(function (ea) {\n that.addMorph(ea);\n ea.setPosition(pt(message.position.x, message.position.y));\n });\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1126":{"this":{"__isSmartRef__":true,"id":63}},"1127":{"timestamp":{"__isSmartRef__":true,"id":1128},"user":"conradcalmez","tags":["synchronization","message receiving"]},"1128":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1129":{"varMapping":{"__isSmartRef__":true,"id":1130},"source":"function deserializeMorph(JSONmorph) {\n var serializer = ObjectGraphLinearizer.forNewLivelyCopy(),\n jso = JSON.parse(JSONmorph.morph),\n morph = serializer.deserializeJso(jso);\n morph.withAllSubmorphsDo(function () {\n if (typeof this.setNewId === 'function') {\n this.setNewId();\n }\n });\n return morph;\n}","funcProperties":{"__isSmartRef__":true,"id":1131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1130":{"this":{"__isSmartRef__":true,"id":63}},"1131":{"timestamp":{"__isSmartRef__":true,"id":1132},"user":"conradcalmez","tags":["synchronization"]},"1132":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1133":{"varMapping":{"__isSmartRef__":true,"id":1134},"source":"function defaultColor() {\n return Color.black;\n}","funcProperties":{"__isSmartRef__":true,"id":1135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1134":{"this":{"__isSmartRef__":true,"id":63}},"1135":{"timestamp":{"__isSmartRef__":true,"id":1136},"user":"conradcalmez","tags":["accessing"]},"1136":{"isSerializedDate":true,"string":"Fri Apr 27 2012 11:45:03 GMT-0700 (PDT)"},"1137":{"varMapping":{"__isSmartRef__":true,"id":1138},"source":"function getConnectedUserNames() {\n if (this.isOnline()) {\n this.socket.emit('names');\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1138":{"this":{"__isSmartRef__":true,"id":63}},"1139":{"timestamp":{"__isSmartRef__":true,"id":1140},"user":"conradcalmez","tags":["user interaction","message sending"]},"1140":{"isSerializedDate":true,"string":"Sun Nov 04 2012 03:33:30 GMT-0800 (PST)"},"1141":{"varMapping":{"__isSmartRef__":true,"id":1142},"source":"function defaultPencilSize() {\n return 1;\n}","funcProperties":{"__isSmartRef__":true,"id":1143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1142":{"this":{"__isSmartRef__":true,"id":63}},"1143":{"timestamp":{"__isSmartRef__":true,"id":1144},"user":"conradcalmez","tags":["accessing"]},"1144":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:59:02 GMT-0700 (PDT)"},"1145":{"varMapping":{"__isSmartRef__":true,"id":1146},"source":"function defaultPencilStyle() {\n return \"solid\";\n}","funcProperties":{"__isSmartRef__":true,"id":1147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1146":{"this":{"__isSmartRef__":true,"id":63}},"1147":{"timestamp":{"__isSmartRef__":true,"id":1148},"user":"conradcalmez","tags":["accessing"]},"1148":{"isSerializedDate":true,"string":"Wed May 02 2012 06:03:39 GMT-0700 (PDT)"},"1149":{"varMapping":{"__isSmartRef__":true,"id":1150},"source":"function applyChanges(diffL, optInitialMorphIds) {\n var that = this,\n toRemove,\n morphChange,\n morph;\n\n if (diffL.removed) {\n toRemove = this.withAllSubmorphsDetect(function (ea) {\n return ea.identifier === diffL.removed;\n });\n if (toRemove) {\n toRemove.remove();\n }\n } else {\n Properties.own(diffL).each(function (ea) {\n if (diffL[ea] === 'null') {\n return false;\n }\n morphChange = lively.persistence.Serializer.deserialize(diffL[ea]);\n morph = that.withAllSubmorphsDetect(function (m) {\n return m.identifier === ea || m.id === ea;\n });\n\n if (!morph) {\n return false;\n }\n\n morph.applyModifications(morphChange.modified, true);\n that.fakeCopy(morph.identifier);\n\n that.applySubmorphOrderChanges(\n morph,\n morphChange.removed,\n morphChange.added,\n optInitialMorphIds\n );\n morph.refreshRenderContext();\n });\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1150":{"this":{"__isSmartRef__":true,"id":63}},"1151":{"timestamp":{"__isSmartRef__":true,"id":1152},"user":"conradcalmez","tags":["diffing","message receiving"]},"1152":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1153":{"varMapping":{"__isSmartRef__":true,"id":1154},"source":"function fakeCopy(optIdentifiers) {\n this.prevState = this.submorphs.collect(function (ea) {\n var m,\n identifierIndex;\n \n identifierIndex = optIdentifiers ?\n optIdentifiers.indexOf(ea.identifier) :\n -1;\n\n if (ea.isStroke) {\n return false;\n }\n if (!optIdentifiers || identifierIndex >= 0) {\n m = ea.copy(['attributeConnections']);\n m.identifier = ea.identifier;\n m.setName(ea.name);\n return m;\n }\n // TODO what is returned in this case here?\n }).select(function (ea) {\n return ea;\n });\n}","funcProperties":{"__isSmartRef__":true,"id":1155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1154":{"this":{"__isSmartRef__":true,"id":63}},"1155":{"timestamp":{"__isSmartRef__":true,"id":1156},"user":"conradcalmez","tags":["diffing"]},"1156":{"isSerializedDate":true,"string":"Tue Feb 12 2013 06:55:24 GMT-0800 (PST)"},"1157":{"varMapping":{"__isSmartRef__":true,"id":1158},"source":"function observeChanges() {\n var that = this,\n diffL = {},\n remove = false,\n diffLNotEmpty;\n\n if (this.prevState === undefined) {\n this.fakeCopy();\n }\n\n this.prevState && this.prevState.each(function (sub) {\n var world = lively.morphic.World.current(),\n match = that.submorphs.find(function (ea) {\n return (sub.identifier === ea.identifier);\n }),\n tmpDiffList,\n identifierHoldingMorph,\n morphInHand;\n\n if (match) {\n tmpDiffList = sub.twoWayDiff(\n match,\n that.doNotSerializeList.concat(['identifier'])\n );\n if (tmpDiffList &&\n tmpDiffList.isEmpty &&\n !tmpDiffList.isEmpty()) {\n Properties.own(tmpDiffList).each(function (ea) {\n var prop = tmpDiffList[ea];\n if (prop.isEmpty && !prop.isEmpty()) {\n diffL[prop.matchingId] = prop;\n diffL[prop.matchingId].flattenPropertyTree();\n }\n });\n }\n } else if (!sub.isStroke) {\n identifierHoldingMorph = that.owner.submorphs.find(function (ea) {\n var identifierIndex = ea.submorphs.pluck('identifier').indexOf(\n sub.identifier\n );\n return (ea.isMouseIndicator && identifierIndex >= 0);\n });\n morphInHand = world.firstHand().submorphs.find(function (ea) {\n return ea.identifier === sub.identifier;\n });\n if (!identifierHoldingMorph && !morphInHand) {\n diffL = sub.identifier;\n remove = true;\n }\n }\n });\n diffLNotEmpty = Properties.own(diffL).find(function (ea) {\n return diffL[ea].isEmpty && !diffL[ea].isEmpty();\n });\n if (diffLNotEmpty) {\n that.sendChange(diffL, remove);\n }\n this.fakeCopy.bind(this).delay(0);\n}","funcProperties":{"__isSmartRef__":true,"id":1159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1158":{"this":{"__isSmartRef__":true,"id":63}},"1159":{"timestamp":{"__isSmartRef__":true,"id":1160},"user":"conradcalmez","tags":["diffing"]},"1160":{"isSerializedDate":true,"string":"Sun Feb 10 2013 12:04:16 GMT-0800 (PST)"},"1161":{"varMapping":{"__isSmartRef__":true,"id":1162},"source":"function sendChange(change, optRemoved) {\n var that = this,\n serializedChange = {};\n\n if (this.isOnline()) {\n if (optRemoved) {\n serializedChange.removed = change;\n } else {\n Properties.own(change).each(function (ea) {\n if (Properties.own(change[ea].removed).length > 0) {\n that.sendMorph(\n {identifier: that.socket.socket.sessionid},\n true\n );\n }\n });\n Properties.own(change).each(function (ea) {\n var serializer = lively.persistence.Serializer;\n serializedChange[ea] = serializer.serialize(change[ea]);\n });\n }\n this.socket.emit('change', {\n message: serializedChange,\n me: false,\n broadcast: true\n });\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1162":{"this":{"__isSmartRef__":true,"id":63}},"1163":{"timestamp":{"__isSmartRef__":true,"id":1164},"user":"conradcalmez","tags":["message sending"]},"1164":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1165":{"varMapping":{"__isSmartRef__":true,"id":1166},"source":"function createMouseIndicator(id, colorCode, nick) {\n var world = lively.morphic.World.current(),\n indicator = Morph.makeRectangle(\n rect(world.getExtent().subXY(10, 10), world.getExtent())\n );\n\n indicator.identifier = id;\n indicator.isMouseIndicator = true;\n indicator.disableDropping();\n if (colorCode) {\n indicator.setFill(Color.hsb(colorCode.h, colorCode.s, colorCode.b));\n }\n indicator.setToolTip(nick);\n indicator.moveOnBorderFrom = function (ownerMorph, position) {\n var extent = ownerMorph.getExtent(),\n original = true;\n if (position.x > extent.x) { // TODO refactor magic numbers\n position.x = extent.x;\n original = false;\n } else if (position.x < 0) {\n position.x = 0;\n original = false;\n }\n if (position.y > extent.y) {\n position.y = extent.y;\n original = false;\n } else if (position.y < 21) {\n position.y = 21;\n original = false;\n }\n this.setPosition(position);\n if (original) {\n this.submorphs.invoke('setVisible', true);\n } else {\n this.submorphs.invoke('setVisible', false);\n }\n };\n this.owner.addMorph(indicator);\n return indicator;\n}","funcProperties":{"__isSmartRef__":true,"id":1167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1166":{"this":{"__isSmartRef__":true,"id":63}},"1167":{"timestamp":{"__isSmartRef__":true,"id":1168},"user":"conradcalmez","tags":["message response","user interface"]},"1168":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1169":{"varMapping":{"__isSmartRef__":true,"id":1170},"source":"function updateMouseIndicators(data) {\n var that = this,\n position = pt(data.message.x, data.message.y)\n .subPt(this.getScrollBounds().topLeft())\n .addPt(this.getPosition()),\n indicator = this.owner.submorphs.find(function (ea) {\n return ea.identifier === data.message.id;\n }) || this.createMouseIndicator(\n data.message.id,\n data.message.color,\n data.message.nick\n );\n\n if (data.message.remove) {\n indicator.remove();\n return;\n }\n\n indicator.moveOnBorderFrom(this, position);\n\n if (data.message.morphs) {\n data.message.morphs.each(function (ea) {\n var subMorph;\n if (ea.morph) {\n subMorph = that.deserializeMorph(ea.morph);\n } else {\n subMorph = that.withAllSubmorphsDetect(function (each) {\n return ea.identifier === each.identifier;\n });\n }\n if (!that.prevState) {\n that.prevState = [];\n }\n that.prevState = that.prevState.select(function (each) {\n return each.identifier !== subMorph.identifier;\n });\n indicator.addMorphBack(subMorph);\n // self repairing system could apply a submorph position here\n });\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1170":{"this":{"__isSmartRef__":true,"id":63}},"1171":{"timestamp":{"__isSmartRef__":true,"id":1172},"user":"conradcalmez","tags":["message receiving"]},"1172":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1173":{"varMapping":{"__isSmartRef__":true,"id":1174},"source":"function onTouchOut(evt) {\n this.handleOutEvent(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":1175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1174":{"this":{"__isSmartRef__":true,"id":63}},"1175":{"timestamp":{"__isSmartRef__":true,"id":1176},"user":"athomschke","tags":["user interaction"]},"1176":{"isSerializedDate":true,"string":"Sun May 20 2012 05:58:38 GMT-0700 (PDT)"},"1177":{"varMapping":{"__isSmartRef__":true,"id":1178},"source":"function sendLine(line) {\n if (this.isOnline()) {\n this.socket.emit('draw', {\n message: line,\n me: false, // drawn locally ...\n broadcast: true // sent to all others\n });\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1178":{"this":{"__isSmartRef__":true,"id":63}},"1179":{"timestamp":{"__isSmartRef__":true,"id":1180},"user":"conradcalmez","tags":["message sending"]},"1180":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1181":{"varMapping":{"__isSmartRef__":true,"id":1182},"source":"function sendMorph(aMorph, doNotAddToWhiteboard, optSerialize) {\n if (this.isOnline()) {\n this.socket.emit('morph', {\n message: {\n morphId: aMorph.identifier,\n doNotAddToWhiteboard: doNotAddToWhiteboard,\n serialized: optSerialize && aMorph.serialize()\n },\n me: false,\n broadcast: true\n });\n this.enteredBefore = false;\n }\n if (this.prevState !== undefined) {\n if (this.submorphs.length !== this.prevState.length) {\n this.fakeCopy();\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1182":{"this":{"__isSmartRef__":true,"id":63}},"1183":{"timestamp":{"__isSmartRef__":true,"id":1184},"user":"conradcalmez","tags":["message sending"]},"1184":{"isSerializedDate":true,"string":"Tue Feb 12 2013 06:27:06 GMT-0800 (PST)"},"1185":{"varMapping":{"__isSmartRef__":true,"id":1186},"source":"function handleStartEvent(evt) {\n var world = lively.morphic.World.current(),\n morphs = world.morphsContainingPoint(evt.getPosition()),\n whiteboardIndex = morphs.indexOf(this);\n if (whiteboardIndex < 0) {\n return false;\n }\n // TODO what is the implication of this?\n // all morphs behind the whiteboard will be ignored in the following check\n // what does array position mean?\n morphs.splice(whiteboardIndex);\n if (!morphs.find(function (ea) { return !ea.isStroke; }) &&\n world.firstHand().submorphs.length <= 0) {\n this.isDrawing = true;\n evt.stop();\n return true;\n }\n return false;\n}","funcProperties":{"__isSmartRef__":true,"id":1187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1186":{"this":{"__isSmartRef__":true,"id":63}},"1187":{"timestamp":{"__isSmartRef__":true,"id":1188},"user":"conradcalmez","tags":["user interaction"]},"1188":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1189":{"varMapping":{"__isSmartRef__":true,"id":1190},"source":"function handleEndEvent(evt) {\n if (this.isDrawing) {\n this.isDrawing = false;\n this.currentStroke = null;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1190":{"this":{"__isSmartRef__":true,"id":63}},"1191":{"timestamp":{"__isSmartRef__":true,"id":1192},"user":"conradcalmez","tags":["user interaction"]},"1192":{"isSerializedDate":true,"string":"Thu Dec 20 2012 09:13:25 GMT-0800 (PST)"},"1193":{"varMapping":{"__isSmartRef__":true,"id":1194},"source":"function handleMoveEvent(evt) {\n var point = this.transformPoint(evt.getPosition());\n if (this.isDrawing) {\n this.lineTo(point);\n }\n if (this.isOnline()) {\n this.moveMorphInHand(point);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1194":{"this":{"__isSmartRef__":true,"id":63}},"1195":{"timestamp":{"__isSmartRef__":true,"id":1196},"user":"conradcalmez","tags":["user interaction"]},"1196":{"isSerializedDate":true,"string":"Thu Dec 20 2012 08:55:45 GMT-0800 (PST)"},"1197":{"varMapping":{"__isSmartRef__":true,"id":1198},"source":"function handleOutEvent(evt) {\n var world = lively.morphic.World.current();\n if (world.morphsContainingPoint(evt.getPosition()).indexOf(this) < 0) {\n this.handleEndEvent(evt);\n if (this.isOnline()) {\n this.enteredBefore = false;\n this.socket.emit('mouse', {\n message: {\n x: evt.getPosition().x,\n y: evt.getPosition().y,\n remove: world.firstHand().submorphs.slice(1).collect(\n function (ea) {\n return ea.identifier;\n }\n )\n },\n me: false, // happens on client\n broadcast: true // get send to other clients\n });\n world.firstHand().withAllSubmorphsDo(function (ea) {\n ea.identifier = undefined;\n });\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1198":{"this":{"__isSmartRef__":true,"id":63}},"1199":{"timestamp":{"__isSmartRef__":true,"id":1200},"user":"conradcalmez","tags":["user interaction","message sending"]},"1200":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1201":{"varMapping":{"__isSmartRef__":true,"id":1202},"source":"function moveMorphInHand(point) {\n //sync mouse position\n var that = this,\n world = lively.morphic.World.current(),\n data = {x: point.x,\n y: point.y},\n submorphsOfHand = world.firstHand().submorphs.slice(1);\n\n if (submorphsOfHand.length > 0) { // sync new morph in hand\n if (this.enteredBefore) {// morph was in hand before\n data.isNewMorphPosition = true;\n data.offset = {\n x: submorphsOfHand[0].getPosition().x,\n y: submorphsOfHand[0].getPosition().y\n };\n data.ids = submorphsOfHand.pluck('identifier');\n } else { // morph must be given to hand\n this.enteredBefore = true;\n data.morphs = submorphsOfHand.map(function (ea) {\n var info = ea.identifier ?\n {} : {morph: that.serializeMorph(ea)};\n return Object.merge(\n [\n info,\n {identifier: ea.identifier},\n {offset: {\n x: ea.getPosition().x,\n y: ea.getPosition().y\n }}\n ]\n );\n });\n }\n }\n\n this.socket.emit('mouse', {\n message: data,\n me: false,\n broadcast: true\n });\n}","funcProperties":{"__isSmartRef__":true,"id":1203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1202":{"this":{"__isSmartRef__":true,"id":63}},"1203":{"timestamp":{"__isSmartRef__":true,"id":1204},"user":"conradcalmez","tags":["user interaction","message sending"]},"1204":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1205":{"varMapping":{"__isSmartRef__":true,"id":1206},"source":"function serializeMorph(morph) {\n var serialized;\n\n morph.withAllSubmorphsDo(function (ea) {\n ea.identifier = ea.id;\n });\n if (morph.selectionMorph) {\n disconnect(morph, \"extent\", morph.selectionMorph, \"setExtent\");\n disconnect(morph, \"_Position\", morph.selectionMorph, \"setPosition\");\n disconnect(morph, \"_Rotation\", morph.selectionMorph, \"setRotation\");\n disconnect(morph, \"_Scale\", morph.selectionMorph, \"setScale\");\n }\n serialized = morph.serialize(this.doNotSerializeList);\n if (morph.selectionMorph) {\n connect(morph, \"extent\", morph.selectionMorph, \"setExtent\");\n connect(morph, \"_Position\", morph.selectionMorph, \"setPosition\");\n connect(morph, \"_Rotation\", morph.selectionMorph, \"setRotation\");\n connect(morph, \"_Scale\", morph.selectionMorph, \"setScale\");\n }\n return serialized;\n}","funcProperties":{"__isSmartRef__":true,"id":1207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1206":{"this":{"__isSmartRef__":true,"id":63}},"1207":{"timestamp":{"__isSmartRef__":true,"id":1208},"user":"conradcalmez","tags":[]},"1208":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1209":{"varMapping":{"__isSmartRef__":true,"id":1210},"source":"function applySubmorphOrderChanges(morph, toAdd, toRemove,\n optInitialMorphIds) {\n var that = this,\n alreadyOnBoard,\n toRemoveIdentifier;\n\n Properties.own(toAdd).each(function (submorphId) {\n var morphId = toAdd[submorphId].identifier;\n if (optInitialMorphIds && optInitialMorphIds.indexOf(morphId) < 0) {\n return;\n }\n alreadyOnBoard = that.withAllSubmorphsDetect(function (ea) {\n return ea.identifier === toAdd[submorphId].identifier;\n });\n if (alreadyOnBoard) {\n morph.addMorph(alreadyOnBoard);\n } else {\n morph.addMorph(toAdd[submorphId]);\n }\n });\n Properties.own(toRemove).each(function (toRemoveId) {\n toRemoveIdentifier = toRemove[toRemoveId].identifier;\n morph.submorphs.find(function (toRemoveMorph) {\n if (toRemoveMorph.identifier === toRemoveIdentifier) {\n toRemoveMorph.remove();\n }\n });\n });\n}","funcProperties":{"__isSmartRef__":true,"id":1211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1210":{"this":{"__isSmartRef__":true,"id":63}},"1211":{"timestamp":{"__isSmartRef__":true,"id":1212},"user":"conradcalmez","tags":[]},"1212":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1213":{"varMapping":{"__isSmartRef__":true,"id":1214},"source":"function loggedIn(callback) {\n var that = this,\n world = lively.morphic.World.current(),\n wr,\n dummy;\n\n if (!world.requestUserName()) {\n wr = new WebResource(Config.userNameURL);\n dummy = {\n doItWith: function (input) {\n callback.apply(that, input);\n }\n };\n connect(wr, \"status\", dummy, \"doItWith\", {\n converter: function (status) {\n return [status];\n }\n });\n wr.beAsync();\n wr.post();\n return false;\n }\n callback.apply(this, [{isDone: function () { return true; }}]);\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":1215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1214":{"this":{"__isSmartRef__":true,"id":63}},"1215":{"timestamp":{"__isSmartRef__":true,"id":1216},"user":"conradcalmez","tags":["accessing","user interface"]},"1216":{"isSerializedDate":true,"string":"Sun Nov 04 2012 09:03:36 GMT-0800 (PST)"},"1217":{"varMapping":{"__isSmartRef__":true,"id":1218},"source":"function packLine(id, vertice, color, width, style) {\n var line = {\n identifier: id,\n vector: vertice,\n color: color,\n width: width,\n style: style\n };\n return line;\n}","funcProperties":{"__isSmartRef__":true,"id":1219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1218":{"this":{"__isSmartRef__":true,"id":63}},"1219":{"timestamp":{"__isSmartRef__":true,"id":1220},"user":"conradcalmez","tags":["synchronization"]},"1220":{"isSerializedDate":true,"string":"Mon Feb 11 2013 10:13:40 GMT-0800 (PST)"},"1221":{"varMapping":{"__isSmartRef__":true,"id":1222},"source":"function drawLine(line) {\n var stroke = this.submorphs.find(function (ea) {\n return line.identifier === ea.identifier;\n }),\n vector = line.vector;\n if (!stroke) {\n stroke = this.createStrokeShape(vector, line);\n this.addMorph(stroke);\n }\n if (!(vector instanceof Array)) {\n vector = [pt(vector.x, vector.y)];\n }\n debugger;\n stroke.setVertices(\n stroke.vertices().concat(\n vector.map(function (ea) {\n return pt(ea.x, ea.y);\n })\n )\n );\n}","funcProperties":{"__isSmartRef__":true,"id":1223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1222":{"this":{"__isSmartRef__":true,"id":63}},"1223":{"timestamp":{"__isSmartRef__":true,"id":1224},"user":"conradcalmez","tags":["user interaction","drawing","message receiving"]},"1224":{"isSerializedDate":true,"string":"Tue Feb 12 2013 08:32:23 GMT-0800 (PST)"},"1225":{"varMapping":{"__isSmartRef__":true,"id":1226},"source":"function defaultActiveColor() {\n return Color.green;\n}","funcProperties":{"__isSmartRef__":true,"id":1227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1226":{"this":{"__isSmartRef__":true,"id":63}},"1227":{"timestamp":{"__isSmartRef__":true,"id":1228},"user":"conradcalmez","tags":["accessing"]},"1228":{"isSerializedDate":true,"string":"Sun Feb 10 2013 04:12:51 GMT-0800 (PST)"},"1229":{"varMapping":{"__isSmartRef__":true,"id":1230},"source":"function createTestMorph() {\n var world = lively.morphic.World.current(),\n tester = world.loadPartItem(\"SyncMorphTester\", \"PartsBin/Collaboration\");\n tester.targetMorph.setSyncMorph(this);\n tester.openInHand();\n}","funcProperties":{"__isSmartRef__":true,"id":1231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1230":{"this":{"__isSmartRef__":true,"id":63}},"1231":{"timestamp":{"__isSmartRef__":true,"id":1232},"user":"conradcalmez","tags":["user interaction","testing"]},"1232":{"isSerializedDate":true,"string":"Sun Feb 10 2013 04:41:36 GMT-0800 (PST)"},"1233":{"varMapping":{"__isSmartRef__":true,"id":1234},"source":"function getCurrentStroke(point) {\n if (this.currentStroke === null) {\n this.currentStroke = this.createStrokeShape(point);\n this.addMorph(this.currentStroke);\n }\n return this.currentStroke;\n}","funcProperties":{"__isSmartRef__":true,"id":1235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1234":{"this":{"__isSmartRef__":true,"id":63}},"1235":{"timestamp":{"__isSmartRef__":true,"id":1236},"user":"conradcalmez","tags":["accessing"]},"1236":{"isSerializedDate":true,"string":"Tue Feb 12 2013 06:41:11 GMT-0800 (PST)"},"1237":{"sourceObj":{"__isSmartRef__":true,"id":54},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":54},"targetMethodName":"onFire","varMapping":{"__isSmartRef__":true,"id":1238},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1238":{"source":{"__isSmartRef__":true,"id":54},"target":{"__isSmartRef__":true,"id":54}},"1239":{"requiredModules":[],"idOnLoad":"A0E6E6F2-6FA8-4C1A-82C8-AC7E34E66C62","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1240":{"ensurePressed":{"__isSmartRef__":true,"id":1241},"ensureDepressed":{"__isSmartRef__":true,"id":1244},"onFire":{"__isSmartRef__":true,"id":1247}},"1241":{"varMapping":{"__isSmartRef__":true,"id":1242},"source":"function ensurePressed() {\n if (this.isActive) {\n this.isPressed = true;\n this.changeAppearanceFor(true);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1242":{"this":{"__isSmartRef__":true,"id":54}},"1243":{},"1244":{"varMapping":{"__isSmartRef__":true,"id":1245},"source":"function ensureDepressed() {\n this.isPressed = false;\n this.changeAppearanceFor(false);\n }","funcProperties":{"__isSmartRef__":true,"id":1246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1245":{"this":{"__isSmartRef__":true,"id":54}},"1246":{},"1247":{"varMapping":{"__isSmartRef__":true,"id":1248},"source":"function onFire() {\n this.targetObject[this.toggleFunction].apply(this.targetObject);\n }","funcProperties":{"__isSmartRef__":true,"id":1249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1248":{"this":{"__isSmartRef__":true,"id":54}},"1249":{},"1250":{"submorphs":[{"__isSmartRef__":true,"id":1251}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1257},"eventHandler":{"__isSmartRef__":true,"id":1258},"_ClipMode":"visible","derivationIds":["84794D71-7F87-4A64-998A-D80DBD9E989A"],"id":"BE08A698-F17E-4E61-BFD3-514C34C23C5E","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"draggingEnabled":false,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":1251},"_PreviousBorderWidth":1,"whiteboard":{"__isSmartRef__":true,"id":63},"targetObject":{"__isSmartRef__":true,"id":648},"targetState":"_Visible","toggleFunction":"toggle","_ToolTip":"opens the chat pane","extraButton":true,"attributeConnections":[{"__isSmartRef__":true,"id":1259}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":2},"__serializedExpressions__":["_Position"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":1261},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1262},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(60.0,1.0)"},"1251":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1252},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1253}],"eventHandler":{"__isSmartRef__":true,"id":1255},"_ClipMode":"hidden","derivationIds":["F605D0B0-33A1-4F97-B290-273520231C7A"],"id":"B0764A4E-B124-4000-91FA-2DCC9F163935","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"draggingEnabled":false,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1250},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1256},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"1252":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1253":{"style":{"__isSmartRef__":true,"id":1254},"chunkOwner":{"__isSmartRef__":true,"id":1251},"_id":"_122","storedString":"C","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1254":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1255":{"morph":{"__isSmartRef__":true,"id":1251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1256":{"requiredModules":[],"idOnLoad":"B0764A4E-B124-4000-91FA-2DCC9F163935","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1257":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"1258":{"morph":{"__isSmartRef__":true,"id":1250},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1259":{"sourceObj":{"__isSmartRef__":true,"id":1250},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1250},"targetMethodName":"onFire","varMapping":{"__isSmartRef__":true,"id":1260},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1260":{"source":{"__isSmartRef__":true,"id":1250},"target":{"__isSmartRef__":true,"id":1250}},"1261":{"requiredModules":[],"idOnLoad":"BE08A698-F17E-4E61-BFD3-514C34C23C5E","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1262":{"ensurePressed":{"__isSmartRef__":true,"id":1263},"ensureDepressed":{"__isSmartRef__":true,"id":1266},"onFire":{"__isSmartRef__":true,"id":1269}},"1263":{"varMapping":{"__isSmartRef__":true,"id":1264},"source":"function ensurePressed() {\n if (this.isActive) {\n this.isPressed = true;\n this.changeAppearanceFor(true);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1264":{"this":{"__isSmartRef__":true,"id":1250}},"1265":{},"1266":{"varMapping":{"__isSmartRef__":true,"id":1267},"source":"function ensureDepressed() {\n this.isPressed = false;\n this.changeAppearanceFor(false);\n }","funcProperties":{"__isSmartRef__":true,"id":1268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1267":{"this":{"__isSmartRef__":true,"id":1250}},"1268":{},"1269":{"varMapping":{"__isSmartRef__":true,"id":1270},"source":"function onFire() {\n this.targetObject[this.toggleFunction].apply(this.targetObject);\n }","funcProperties":{"__isSmartRef__":true,"id":1271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1270":{"this":{"__isSmartRef__":true,"id":1250}},"1271":{},"1272":{"submorphs":[{"__isSmartRef__":true,"id":1273}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1279},"eventHandler":{"__isSmartRef__":true,"id":1280},"_ClipMode":"visible","derivationIds":["38083625-4359-4DB2-93F7-D79E685AC25D"],"id":"A0BE4DE0-91F2-4120-A279-06CCF0EA9C32","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"draggingEnabled":false,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":1273},"_PreviousBorderWidth":1,"whiteboard":{"__isSmartRef__":true,"id":63},"targetObject":{"__isSmartRef__":true,"id":102},"targetState":"_Visible","toggleFunction":"toggle","_ToolTip":"opens the pencil styler","extraButton":true,"attributeConnections":[{"__isSmartRef__":true,"id":1281}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":2},"__serializedExpressions__":["_Position"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":1283},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1284},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(80.0,1.0)"},"1273":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1274},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1275}],"eventHandler":{"__isSmartRef__":true,"id":1277},"_ClipMode":"hidden","derivationIds":["1A5D49D1-27CD-42B1-A56E-519F69E80BB5"],"id":"09B0AB50-D35F-4049-8936-D8D10CBA690F","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"draggingEnabled":false,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1272},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1278},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"1274":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1275":{"style":{"__isSmartRef__":true,"id":1276},"chunkOwner":{"__isSmartRef__":true,"id":1273},"_id":"_123","storedString":"P","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1276":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1277":{"morph":{"__isSmartRef__":true,"id":1273},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1278":{"requiredModules":[],"idOnLoad":"09B0AB50-D35F-4049-8936-D8D10CBA690F","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1279":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"1280":{"morph":{"__isSmartRef__":true,"id":1272},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1281":{"sourceObj":{"__isSmartRef__":true,"id":1272},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1272},"targetMethodName":"onFire","varMapping":{"__isSmartRef__":true,"id":1282},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1282":{"source":{"__isSmartRef__":true,"id":1272},"target":{"__isSmartRef__":true,"id":1272}},"1283":{"requiredModules":[],"idOnLoad":"A0BE4DE0-91F2-4120-A279-06CCF0EA9C32","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1284":{"ensurePressed":{"__isSmartRef__":true,"id":1285},"ensureDepressed":{"__isSmartRef__":true,"id":1288},"onFire":{"__isSmartRef__":true,"id":1291}},"1285":{"varMapping":{"__isSmartRef__":true,"id":1286},"source":"function ensurePressed() {\n if (this.isActive) {\n this.isPressed = true;\n this.changeAppearanceFor(true);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1286":{"this":{"__isSmartRef__":true,"id":1272}},"1287":{},"1288":{"varMapping":{"__isSmartRef__":true,"id":1289},"source":"function ensureDepressed() {\n this.isPressed = false;\n this.changeAppearanceFor(false);\n }","funcProperties":{"__isSmartRef__":true,"id":1290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1289":{"this":{"__isSmartRef__":true,"id":1272}},"1290":{},"1291":{"varMapping":{"__isSmartRef__":true,"id":1292},"source":"function onFire() {\n this.targetObject[this.toggleFunction].apply(this.targetObject);\n }","funcProperties":{"__isSmartRef__":true,"id":1293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1292":{"this":{"__isSmartRef__":true,"id":1272}},"1293":{},"1294":{"_AppearanceStylingMode":true,"_BorderStylingMode":true,"_BorderWidth":0,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(958.8,22.0)","_Padding":"lively.rect(0,0,0,0)"},"1295":{"morph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1296":{"resizeWidth":true,"adjustForNewBounds":true},"1297":{"morph":{"__isSmartRef__":true,"id":2},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"1298":{"morph":{"__isSmartRef__":true,"id":2},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"1299":{"morph":{"__isSmartRef__":true,"id":2},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"1300":{"morph":{"__isSmartRef__":true,"id":2},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"1301":{"morph":{"__isSmartRef__":true,"id":2},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"1302":{"morph":{"__isSmartRef__":true,"id":2},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"1303":{"morph":{"__isSmartRef__":true,"id":2},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"1304":{"morph":{"__isSmartRef__":true,"id":2},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"1305":{"sourceObj":{"__isSmartRef__":true,"id":2},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":861},"targetMethodName":"realignConnection","varMapping":{"__isSmartRef__":true,"id":1306},"dependendConnections":[{"__isSmartRef__":true,"id":1307},{"__isSmartRef__":true,"id":1309},{"__isSmartRef__":true,"id":1311},{"__isSmartRef__":true,"id":1313},{"__isSmartRef__":true,"id":1315},{"__isSmartRef__":true,"id":1317},{"__isSmartRef__":true,"id":1319},{"__isSmartRef__":true,"id":1321}],"oldTransform":{"__isSmartRef__":true,"id":1323},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1306":{"source":{"__isSmartRef__":true,"id":2},"target":{"__isSmartRef__":true,"id":861}},"1307":{"sourceObj":{"__isSmartRef__":true,"id":2},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1305},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1308},"dependedBy":{"__isSmartRef__":true,"id":1305},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1308":{"source":{"__isSmartRef__":true,"id":2},"target":{"__isSmartRef__":true,"id":1305}},"1309":{"sourceObj":{"__isSmartRef__":true,"id":2},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1305},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1310},"dependedBy":{"__isSmartRef__":true,"id":1305},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1310":{"source":{"__isSmartRef__":true,"id":2},"target":{"__isSmartRef__":true,"id":1305}},"1311":{"sourceObj":{"__isSmartRef__":true,"id":2},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1305},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1312},"dependedBy":{"__isSmartRef__":true,"id":1305},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1312":{"source":{"__isSmartRef__":true,"id":2},"target":{"__isSmartRef__":true,"id":1305}},"1313":{"sourceObj":{"__isSmartRef__":true,"id":2},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1305},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1314},"dependedBy":{"__isSmartRef__":true,"id":1305},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1314":{"source":{"__isSmartRef__":true,"id":2},"target":{"__isSmartRef__":true,"id":1305}},"1315":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1305},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1316},"dependedBy":{"__isSmartRef__":true,"id":1305},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1316":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":1305}},"1317":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1305},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1318},"dependedBy":{"__isSmartRef__":true,"id":1305},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1318":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":1305}},"1319":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1305},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1320},"dependedBy":{"__isSmartRef__":true,"id":1305},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1320":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":1305}},"1321":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1305},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1322},"dependedBy":{"__isSmartRef__":true,"id":1305},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1322":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":1305}},"1323":{"d":1,"a":1,"f":41,"e":75,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1324},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1324":{"a":1,"b":0,"c":0,"d":1,"e":75,"f":41,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1325":{"requiredModules":[],"idOnLoad":"692FD9A6-178B-490C-A72F-45073228D04E","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1326":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1327},"eventHandler":{"__isSmartRef__":true,"id":1328},"_ClipMode":"visible","id":"65878A60-813F-45EE-9843-0F099E75440F","__layered_droppingEnabled__":true,"halosEnabled":true,"_StyleClassNames":["reframe-handle bottom"],"owner":{"__isSmartRef__":true,"id":1},"prevScroll":[0,0],"__serializedExpressions__":["_Position"],"derivationIds":["F6D4C48B-8DEC-496F-A4DA-C84DB79ECDB5"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":1329},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1330},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,605.9)"},"1327":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(944.8,4.0)","_Padding":"lively.rect(0,0,0,0)"},"1328":{"morph":{"__isSmartRef__":true,"id":1326},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1329":{"requiredModules":[],"idOnLoad":"65878A60-813F-45EE-9843-0F099E75440F","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1330":{"onDragStart":{"__isSmartRef__":true,"id":1331},"onDrag":{"__isSmartRef__":true,"id":1338},"onDragEnd":{"__isSmartRef__":true,"id":1345}},"1331":{"varMapping":{"__isSmartRef__":true,"id":1332},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n }","funcProperties":{"__isSmartRef__":true,"id":1337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1332":{"this":{"__isSmartRef__":true,"id":1326},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1333}},"1333":{"$super":{"__isSmartRef__":true,"id":1334}},"1334":{"varMapping":{"__isSmartRef__":true,"id":1335},"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":1336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1335":{"obj":{"__isSmartRef__":true,"id":1326},"name":"onDragStart"},"1336":{},"1337":{},"1338":{"varMapping":{"__isSmartRef__":true,"id":1339},"source":"function onDrag(evt) {\n var moveDelta = pt(0,evt.mousePoint.subPt(this.dragStartPoint).y);\n var newExtent = this.originalTargetExtent.addPt(moveDelta);\n if (newExtent.y < this.owner.minHeight) newExtent.y = this.owner.minHeight;\n this.owner.setExtent(newExtent);\n\n this.align(this.bounds().bottomLeft(), pt(0,this.owner.getExtent().y));\n }","funcProperties":{"__isSmartRef__":true,"id":1344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1339":{"this":{"__isSmartRef__":true,"id":1326},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1340}},"1340":{"$super":{"__isSmartRef__":true,"id":1341}},"1341":{"varMapping":{"__isSmartRef__":true,"id":1342},"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":1343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1342":{"obj":{"__isSmartRef__":true,"id":1326},"name":"onDrag"},"1343":{},"1344":{},"1345":{"varMapping":{"__isSmartRef__":true,"id":1346},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n this.owner.alignReframeHandle();\n this.owner.alignRightReframeHandle();\n }","funcProperties":{"__isSmartRef__":true,"id":1351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1346":{"this":{"__isSmartRef__":true,"id":1326},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1347}},"1347":{"$super":{"__isSmartRef__":true,"id":1348}},"1348":{"varMapping":{"__isSmartRef__":true,"id":1349},"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":1350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1349":{"obj":{"__isSmartRef__":true,"id":1326},"name":"onDragEnd"},"1350":{},"1351":{},"1352":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1353},"eventHandler":{"__isSmartRef__":true,"id":1354},"_ClipMode":"visible","id":"39AA125C-5A58-4246-BD56-5B9D249C371E","__layered_droppingEnabled__":true,"halosEnabled":true,"_StyleClassNames":["reframe-handle right"],"owner":{"__isSmartRef__":true,"id":1},"__serializedExpressions__":["_Position"],"derivationIds":["1610CD12-91AD-4148-AF1A-2673B9843A80"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":1355},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1356},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(954.8,0.0)"},"1353":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(4.0,595.9)","_Padding":"lively.rect(0,0,0,0)"},"1354":{"morph":{"__isSmartRef__":true,"id":1352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1355":{"requiredModules":[],"idOnLoad":"39AA125C-5A58-4246-BD56-5B9D249C371E","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1356":{"onDragStart":{"__isSmartRef__":true,"id":1357},"onDrag":{"__isSmartRef__":true,"id":1364},"onDragEnd":{"__isSmartRef__":true,"id":1371}},"1357":{"varMapping":{"__isSmartRef__":true,"id":1358},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n }","funcProperties":{"__isSmartRef__":true,"id":1363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1358":{"this":{"__isSmartRef__":true,"id":1352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1359}},"1359":{"$super":{"__isSmartRef__":true,"id":1360}},"1360":{"varMapping":{"__isSmartRef__":true,"id":1361},"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":1362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1361":{"obj":{"__isSmartRef__":true,"id":1352},"name":"onDragStart"},"1362":{},"1363":{},"1364":{"varMapping":{"__isSmartRef__":true,"id":1365},"source":"function onDrag(evt) {\n var moveDelta = pt(evt.mousePoint.subPt(this.dragStartPoint).x,0);\n var newExtent = this.originalTargetExtent.addPt(moveDelta);\n if (newExtent.x < this.owner.minWidth) newExtent.x = this.owner.minWidth;\n\n this.owner.setExtent(newExtent);\n this.align(this.bounds().topRight(), pt(this.owner.getExtent().x,0));\n }","funcProperties":{"__isSmartRef__":true,"id":1370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1365":{"this":{"__isSmartRef__":true,"id":1352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1366}},"1366":{"$super":{"__isSmartRef__":true,"id":1367}},"1367":{"varMapping":{"__isSmartRef__":true,"id":1368},"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":1369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1368":{"obj":{"__isSmartRef__":true,"id":1352},"name":"onDrag"},"1369":{},"1370":{},"1371":{"varMapping":{"__isSmartRef__":true,"id":1372},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n this.owner.alignReframeHandle();\n this.owner.alignBottomReframeHandle();\n }","funcProperties":{"__isSmartRef__":true,"id":1377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1372":{"this":{"__isSmartRef__":true,"id":1352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1373}},"1373":{"$super":{"__isSmartRef__":true,"id":1374}},"1374":{"varMapping":{"__isSmartRef__":true,"id":1375},"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":1376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1375":{"obj":{"__isSmartRef__":true,"id":1352},"name":"onDragEnd"},"1376":{},"1377":{},"1378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1379},"eventHandler":{"__isSmartRef__":true,"id":1380},"_ClipMode":"visible","id":"5851A24B-BF5C-4372-AB74-C8BA67E26849","__layered_droppingEnabled__":true,"halosEnabled":true,"_StyleClassNames":["reframe-handle corner"],"owner":{"__isSmartRef__":true,"id":1},"__serializedExpressions__":["_Position"],"derivationIds":["03A90CD9-699E-4CF8-91B7-AFCE92E9EC62"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":1381},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1382},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(944.8,595.9)"},"1379":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(14.0,14.0)","_Padding":"lively.rect(0,0,0,0)"},"1380":{"morph":{"__isSmartRef__":true,"id":1378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1381":{"requiredModules":[],"idOnLoad":"5851A24B-BF5C-4372-AB74-C8BA67E26849","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1382":{"onDragStart":{"__isSmartRef__":true,"id":1383},"onDrag":{"__isSmartRef__":true,"id":1390},"onDragEnd":{"__isSmartRef__":true,"id":1397}},"1383":{"varMapping":{"__isSmartRef__":true,"id":1384},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n }","funcProperties":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1384":{"this":{"__isSmartRef__":true,"id":1378},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1385}},"1385":{"$super":{"__isSmartRef__":true,"id":1386}},"1386":{"varMapping":{"__isSmartRef__":true,"id":1387},"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":1388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1387":{"obj":{"__isSmartRef__":true,"id":1378},"name":"onDragStart"},"1388":{},"1389":{},"1390":{"varMapping":{"__isSmartRef__":true,"id":1391},"source":"function onDrag(evt) {\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n var newExtent = this.originalTargetExtent.addPt(moveDelta);\n if (newExtent.x < this.owner.minWidth) newExtent.x = this.owner.minWidth;\n if (newExtent.y < this.owner.minHeight) newExtent.y = this.owner.minHeight;\n this.owner.setExtent(newExtent);\n //console.log(\"WindowExtent: \"+this.owner.getExtent().x+\" , \"+this.owner.getExtent().y);\n this.align(this.bounds().bottomRight(), this.owner.getExtent());\n }","funcProperties":{"__isSmartRef__":true,"id":1396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1391":{"this":{"__isSmartRef__":true,"id":1378},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1392}},"1392":{"$super":{"__isSmartRef__":true,"id":1393}},"1393":{"varMapping":{"__isSmartRef__":true,"id":1394},"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":1395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1394":{"obj":{"__isSmartRef__":true,"id":1378},"name":"onDrag"},"1395":{},"1396":{},"1397":{"varMapping":{"__isSmartRef__":true,"id":1398},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n this.owner.alignBottomReframeHandle();\n this.owner.alignRightReframeHandle();\n }","funcProperties":{"__isSmartRef__":true,"id":1403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1398":{"this":{"__isSmartRef__":true,"id":1378},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1399}},"1399":{"$super":{"__isSmartRef__":true,"id":1400}},"1400":{"varMapping":{"__isSmartRef__":true,"id":1401},"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":1402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1401":{"obj":{"__isSmartRef__":true,"id":1378},"name":"onDragEnd"},"1402":{},"1403":{},"1404":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Padding","_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_Extent":"lively.pt(958.8,609.9)","_Position":"lively.pt(0.0,0.0)"},"1405":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1406":{"adjustForNewBounds":true},"1407":{"a":1,"b":0,"c":0,"d":1,"e":10,"f":10,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1408":{"a":1,"b":0,"c":0,"d":1,"e":7,"f":7,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1409":{"partName":"SyncMorph","requiredModules":[],"partsSpaceName":"PartsBin/Collaboration/","comment":"A whiteboard designed for syncing with other worlds, based on svg paintings. It is able to sync whole morphs and changes on them, too.","changes":[{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1414},{"__isSmartRef__":true,"id":1416}],"migrationLevel":4,"lastModifiedDate":{"__isSmartRef__":true,"id":1418},"revisionOnLoad":192568,"idOnLoad":"F11CC2C3-ACC3-4410-AFDC-4B16445D30D2","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1410":{"date":{"__isSmartRef__":true,"id":1411},"author":"conradcalmez","message":"fixing text field boader colors when resetting","id":"F47C9409-FCD5-401B-BFBD-7D84A2EC16D0"},"1411":{"isSerializedDate":true,"string":"Tue Feb 12 2013 09:56:40 GMT-0800 (PST)"},"1412":{"date":{"__isSmartRef__":true,"id":1413},"author":"conradcalmez","message":"implemented reply on ping","id":"1732BE24-9C89-4047-BBDC-9942752E328E"},"1413":{"isSerializedDate":true,"string":"Tue Feb 12 2013 09:07:15 GMT-0800 (PST)"},"1414":{"date":{"__isSmartRef__":true,"id":1415},"author":"conradcalmez","message":"fixed not drawing on other clients bug","id":"1AE3BC29-8EBF-41F6-A9BB-36E53497652D"},"1415":{"isSerializedDate":true,"string":"Tue Feb 12 2013 08:33:08 GMT-0800 (PST)"},"1416":{"date":{"__isSmartRef__":true,"id":1417},"author":"conradcalmez","message":"cleaned w/ Jens' ObjectCleaner","id":"D2C96BF3-B1BE-4FEB-BCEA-F61614B3F3C9"},"1417":{"isSerializedDate":true,"string":"Tue Feb 12 2013 08:17:23 GMT-0800 (PST)"},"1418":{"isSerializedDate":true,"string":"Wed Feb 05 2014 10:59:57 GMT-0800 (PST)"},"1419":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1420},"id":2,"eventHandler":{"__isSmartRef__":true,"id":1421},"__layered_droppingEnabled__":false,"halosEnabled":false,"_world":{"__isSmartRef__":true,"id":0},"eventsAreIgnored":true,"_HandStyle":"default","_PointerEvents":"none","carriesGrabbedMorphs":false,"lastScrollTime":1341398039463,"doNotSerialize":["$$scrollFocusMorph"],"doNotCopyProperties":["$$scrollFocusMorph"],"_ClipMode":"visible","highlightConnection":null,"__serializedExpressions__":["_Position"],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.HandMorph","__SourceModuleName__":"Global.lively.morphic.Events","withLayers":["Global.NoMagnetsLayer"],"_Position":"lively.pt(1110.0,278.0)"},"1420":{"__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(2.0,2.0)","_Fill":"Color.rgb(204,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1421":{"morph":{"__isSmartRef__":true,"id":1419},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1422":{"__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"_ClipMode":"visible","_Opacity":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(3000.0,4000.0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"1423":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1424":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"1425":{"submorphs":[{"__isSmartRef__":true,"id":1426}],"scripts":[],"id":"B8AA2DDF-93B9-4F21-B76B-B267722ED5F0","shape":{"__isSmartRef__":true,"id":1437},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LoadingMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":1438},"eventHandler":{"__isSmartRef__":true,"id":1538},"derivationIds":[127,"59692BC3-6C7B-4E23-B820-8699260EA722","486BB935-1313-4103-B2A8-642B19437478","18AFFD44-46CD-489E-B1D6-DED43E2B6B06","2608C892-2204-4981-9A87-8E749F8944AB","5535861F-4EA2-44AB-8A40-0538124E0AAC","16C292B3-86E8-4622-B516-27C48263B8CC","87731A20-D455-44D0-97E5-98A7CFD4E417","A17081E7-E597-47ED-BD32-6E4D206BD7D7","CFB4A44C-BFEA-4584-BCBA-AE2A56739200","76B3DD9B-8D01-42BA-A574-AB99D5F899BB","1EBC5512-8F54-4B24-998C-69A285EC8533","DD1165C7-6C1A-4361-A4AE-FCF6F31152FD","4D6D36E8-48F3-408A-B03C-202E4DC182BD","5F3B3E0F-BBC6-4DDA-BAA0-7EFC05FF2011","E0A6B33B-767A-4532-9021-892414520200","F5F5E2B1-5FF0-4E09-B323-AE88A3920B8D","0C7E832A-A741-430F-B295-8BC181D066FE","472AED3B-CB76-49BD-BF49-354A2D568F86","A7C52F65-D140-4791-880F-F7584C7BB570","3516412B-8B36-4E52-9416-6B7FB358BDC2","1840CACC-078C-4795-AD3F-E9D6F8D557A0","1FEDCA25-0131-46FA-840F-DC5F1B05C6CA","C620CED3-0AE9-4097-9AA7-2706A042F9C9","679A861B-40E0-4DB2-B22F-95B454C6978D","FEF39B3C-E634-4825-BAB8-2D44FE647B03","0C359AB4-E7FF-46F2-B050-E84944AAC865"],"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":1539},"prevScroll":[0,0],"moved":true,"headRevision":146469,"_ClipMode":"visible","_Rotation":0,"_Scale":1,"isMetaTool":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1540},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(171.0,-13.0)"},"1426":{"submorphs":[{"__isSmartRef__":true,"id":1427}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1433},"id":"A62698A1-D2BB-4783-BA0D-70D6BFCE8778","eventHandler":{"__isSmartRef__":true,"id":1434},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"ProgressIndicator","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1435},"derivationIds":[520,"071F18BE-FF28-40F5-ACAD-1916E0D25C38","DF185A10-743D-45FC-B9C2-76E12D908BCF","BF125D2C-596A-4C1E-A5F8-DAE4801E9497","3CEE8CFF-B8F1-4B4B-A405-CB583080252A","D0652878-8F9C-4591-8A82-296898AACDB6","31441DDF-2220-43BE-A99F-69E1FEC68030","14A90039-0D3E-46DC-8445-D42B8E02EB42","681EF5DE-A344-4114-B2F3-B96CE3872524","C0381116-5116-4F33-B082-A411D0E4534E","24E9581E-B008-46EE-9CBC-D5190E100D98","C69D1041-2C5E-48FE-B04C-04E66450658A","4830945B-4FFF-4564-9424-34D7995DAE60","8602C233-B3E7-4682-9B0E-D7549761D934","B4E0E11F-2BED-462E-B708-89D63971856E","EE0144C2-D016-4390-8A67-4E7DEF171C83","F44DF6E4-5F27-440E-AB5F-3721C0A10CA6","73FC6648-DAAF-4673-8CF4-7DA219513F22","B78EB1B5-780C-45F7-B0A7-B988B52B1FF1","DFDB8CD1-72F7-40F4-849B-1F9B866277AB","66111105-B1FC-41F7-BF70-D45118C9E09F","02420416-1E35-4831-AABB-91CD0460CA1A","7C6B2EB2-4510-4A8E-BAFF-5CF0040DD7F5","0503F5A1-1732-4610-9A5A-920D658CA766","07C5AE03-36AD-4849-BACD-27D7D9A2CCF2","9FFF9D73-931C-404C-AA4B-5AC2E7C53504","B1D109CF-D403-4B0A-988D-50F79586DAC1"],"owner":{"__isSmartRef__":true,"id":1425},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":1436},"prevScroll":[0,0],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(113.5,81.0)","distanceToDragEvent":"lively.pt(39.0,-11.0)"},"1427":{"submorphs":[],"scripts":[],"id":"FABEE26E-453D-4AA4-AD74-CEDA52730966","shape":{"__isSmartRef__":true,"id":1428},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":257,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"loadedMorphName","partsBinMetaInfo":{"__isSmartRef__":true,"id":1429},"textChunks":[{"__isSmartRef__":true,"id":1430}],"charsReplaced":"MorphName","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1432},"_ClipMode":"visible","derivationIds":[355,"023045B3-2D6B-4425-89FB-F4806D527BE0","DC0C2365-868C-41AE-8369-51C31E91493E","C6D9D314-86A1-4015-970B-F6787F535E1A","6AA4552E-2E85-447E-9033-99D5AA1A94BC","D94BE49C-8A3E-4F1F-BF28-FEDD9B40D213","AA8F0470-654C-4AA2-8135-4607F5429AC5","E0BAABCC-FFB2-4EDF-BAE5-C63CC99B6A97","1A86AE17-73AE-442E-AB36-DD90C6DFC8BC","EF750075-E964-4CD3-B6A4-161511E1D058","CED69CBF-FFA5-45E7-B333-FBACE4F278AC","E56978C1-7424-4C10-8168-11FD3237B540","D5AB2532-A4DC-42D6-AF17-99CBBCEAA848","245866CB-598A-4172-A3A0-A06D4D26C6AD","43B0F12E-5793-43AA-80E1-496774E0EBA6","1B776A8C-0413-475F-8EBD-120BBD91D2BB","F84F2C9A-8003-4E81-833A-83F48C92F3B8","3124B389-9FA4-4348-BC5D-0DFF9C59CD1B","1A1BCBAC-D7CC-4BAE-B8C2-7C693F7327A1","1CB201BA-5E0B-4771-821A-139FA2AEFBC2","195520FA-4816-47A4-B0F5-BA890AFD9DF9","0D15F28A-24C9-46B7-89C5-6D2354728AC1","316FE9D3-62EC-4FD6-9B0F-FFA622B79575","739F3743-9BE1-48C8-813D-C0BFB0DCACA6","01877B3B-7DA7-4222-B011-7B5F4E501862","B8FE7DEE-9568-4BE6-BA12-EA674BA79E08","08EA4866-65F7-416E-810F-77F2E719663A"],"_WhiteSpaceHandling":"pre-wrap","owner":{"__isSmartRef__":true,"id":1426},"_MinTextWidth":257,"_MinTextHeight":null,"previousSelection":[6,6],"_Align":"center","isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-109.0,38.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(179.0,-11.0)"},"1428":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(257.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1429":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1430":{"style":{"__isSmartRef__":true,"id":1431},"chunkOwner":{"__isSmartRef__":true,"id":1427},"storedString":"loading part","_id":"_4371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1431":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1432":{"morph":{"__isSmartRef__":true,"id":1427},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1433":{"_ImageURL":"data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"_ClipMode":"visible","_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(31.0,31.0)","_Padding":"lively.rect(0,0,0,0)"},"1434":{"morph":{"__isSmartRef__":true,"id":1426},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1435":{"partName":"ProgressIndicator","requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1436":{"centeredHorizontal":true,"centeredVertical":true},"1437":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":8.515,"_Opacity":0.8146,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(266.0,223.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"1438":{"partsSpaceName":"PartsBin/iPadWidgets","comment":"This is a placeholder to indicate that a morph is being loaded. It will be replaced by the morph as soon as the requested morph finished loading.","migrationLevel":4,"partName":"LoadingMorph","changes":[{"__isSmartRef__":true,"id":1439},{"__isSmartRef__":true,"id":1441},{"__isSmartRef__":true,"id":1443},{"__isSmartRef__":true,"id":1445},{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1449},{"__isSmartRef__":true,"id":1451},{"__isSmartRef__":true,"id":1453},{"__isSmartRef__":true,"id":1455},{"__isSmartRef__":true,"id":1457},{"__isSmartRef__":true,"id":1459},{"__isSmartRef__":true,"id":1461},{"__isSmartRef__":true,"id":1463},{"__isSmartRef__":true,"id":1465},{"__isSmartRef__":true,"id":1467},{"__isSmartRef__":true,"id":1469},{"__isSmartRef__":true,"id":1471},{"__isSmartRef__":true,"id":1473},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1477},{"__isSmartRef__":true,"id":1479},{"__isSmartRef__":true,"id":1481},{"__isSmartRef__":true,"id":1483},{"__isSmartRef__":true,"id":1485},{"__isSmartRef__":true,"id":1487},{"__isSmartRef__":true,"id":1489},{"__isSmartRef__":true,"id":1491},{"__isSmartRef__":true,"id":1493},{"__isSmartRef__":true,"id":1495},{"__isSmartRef__":true,"id":1497},{"__isSmartRef__":true,"id":1499},{"__isSmartRef__":true,"id":1501},{"__isSmartRef__":true,"id":1503},{"__isSmartRef__":true,"id":1505},{"__isSmartRef__":true,"id":1507},{"__isSmartRef__":true,"id":1509},{"__isSmartRef__":true,"id":1511},{"__isSmartRef__":true,"id":1513},{"__isSmartRef__":true,"id":1515},{"__isSmartRef__":true,"id":1517},{"__isSmartRef__":true,"id":1519},{"__isSmartRef__":true,"id":1521},{"__isSmartRef__":true,"id":1523},{"__isSmartRef__":true,"id":1525},{"__isSmartRef__":true,"id":1527},{"__isSmartRef__":true,"id":1529},{"__isSmartRef__":true,"id":1531},{"__isSmartRef__":true,"id":1533},{"__isSmartRef__":true,"id":1535}],"lastModifiedDate":{"__isSmartRef__":true,"id":1537},"revisionOnLoad":194364,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1439":{"date":{"__isSmartRef__":true,"id":1440},"author":"sstamm","message":"","id":"1C1391AE-5722-4707-BE52-F0094FC56829"},"1440":{"isSerializedDate":true,"string":"Wed Feb 22 2012 05:02:04 GMT-0800 (PST)"},"1441":{"date":{"__isSmartRef__":true,"id":1442},"author":"sstamm","message":"","id":"663F147A-9084-4AC3-81A7-1E7BA6547F08"},"1442":{"isSerializedDate":true,"string":"Wed Feb 22 2012 03:43:10 GMT-0800 (PST)"},"1443":{"date":{"__isSmartRef__":true,"id":1444},"author":"sstamm","message":"","id":"F72B746E-B170-4EFB-9074-5E8770640B8A"},"1444":{"isSerializedDate":true,"string":"Wed Feb 22 2012 03:36:14 GMT-0800 (PST)"},"1445":{"date":{"__isSmartRef__":true,"id":1446},"author":"sstamm","message":"","id":"568D2EFD-C535-43AE-8944-6D8B967129F5"},"1446":{"isSerializedDate":true,"string":"Wed Feb 22 2012 03:23:04 GMT-0800 (PST)"},"1447":{"date":{"__isSmartRef__":true,"id":1448},"author":"sstamm","message":"","id":"AB2484A6-0707-4E13-845E-F0A5F48BBA3D"},"1448":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:59:45 GMT-0800 (PST)"},"1449":{"date":{"__isSmartRef__":true,"id":1450},"author":"sstamm","message":"","id":"97D20633-F76C-46A5-A32A-FFE9BC83CAB3"},"1450":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:59:10 GMT-0800 (PST)"},"1451":{"date":{"__isSmartRef__":true,"id":1452},"author":"sstamm","message":"","id":"8A697DF5-9A45-4A84-B709-9719BF55083E"},"1452":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:56:54 GMT-0800 (PST)"},"1453":{"date":{"__isSmartRef__":true,"id":1454},"author":"sstamm","message":"","id":"F2157D66-1571-4B9A-B325-6FA96488260F"},"1454":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:51:05 GMT-0800 (PST)"},"1455":{"date":{"__isSmartRef__":true,"id":1456},"author":"sstamm","message":"","id":"E5E808CA-06AB-47DC-A9C9-CA7967591545"},"1456":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:47:19 GMT-0800 (PST)"},"1457":{"date":{"__isSmartRef__":true,"id":1458},"author":"sstamm","message":"","id":"009DC4E0-23CA-485A-A796-801AA0F75049"},"1458":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:46:25 GMT-0800 (PST)"},"1459":{"date":{"__isSmartRef__":true,"id":1460},"author":"sstamm","message":"","id":"C0CE1397-6E2E-4E8C-AEFF-9017E24BB7E4"},"1460":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:45:05 GMT-0800 (PST)"},"1461":{"date":{"__isSmartRef__":true,"id":1462},"author":"sstamm","message":"","id":"FFE16986-548D-4AC2-A627-CF6416282BC4"},"1462":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:37:15 GMT-0800 (PST)"},"1463":{"date":{"__isSmartRef__":true,"id":1464},"author":"sstamm","message":"","id":"57213D63-7147-4057-ADC9-30994443B066"},"1464":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:35:29 GMT-0800 (PST)"},"1465":{"date":{"__isSmartRef__":true,"id":1466},"author":"sstamm","message":"","id":"75A31364-B380-4312-BB5B-F8F2DA1CE824"},"1466":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:31:52 GMT-0800 (PST)"},"1467":{"date":{"__isSmartRef__":true,"id":1468},"author":"sstamm","message":"","id":"5AA50B7E-7D33-44C4-807B-BF1ABA31D530"},"1468":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:14:10 GMT-0800 (PST)"},"1469":{"date":{"__isSmartRef__":true,"id":1470},"author":"sstamm","message":"","id":"BCDCC505-534C-45E5-9BB2-5238959A5AD0"},"1470":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:02:56 GMT-0800 (PST)"},"1471":{"date":{"__isSmartRef__":true,"id":1472},"author":"sstamm","message":"","id":"890D14F4-E89D-4E05-BFB9-875D6AB6C765"},"1472":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:01:50 GMT-0800 (PST)"},"1473":{"date":{"__isSmartRef__":true,"id":1474},"author":"sstamm","message":"","id":"B6FE0805-0D24-4267-8238-8B332352617E"},"1474":{"isSerializedDate":true,"string":"Wed Feb 22 2012 01:55:44 GMT-0800 (PST)"},"1475":{"date":{"__isSmartRef__":true,"id":1476},"author":"sstamm","message":"callbacks are working","id":"9348260A-3B55-4659-BC85-440BFBD98EA4"},"1476":{"isSerializedDate":true,"string":"Fri Feb 10 2012 00:45:55 GMT-0800 (PST)"},"1477":{"date":{"__isSmartRef__":true,"id":1478},"author":"sstamm","message":"made it more opaque","id":"1B84264C-2822-407F-A58F-19217BCD2762"},"1478":{"isSerializedDate":true,"string":"Wed Feb 08 2012 02:41:50 GMT-0800 (PST)"},"1479":{"date":{"__isSmartRef__":true,"id":1480},"author":"sstamm","message":"","id":"0FB41D7D-2A52-4782-814B-A66C24FCE569"},"1480":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:13:49 GMT-0800 (PST)"},"1481":{"date":{"__isSmartRef__":true,"id":1482},"author":"sstamm","message":"","id":"A0C2D7C1-04AF-493A-A7D7-70750F7D3E2F"},"1482":{"isSerializedDate":true,"string":"Thu Feb 02 2012 08:22:07 GMT-0800 (PST)"},"1483":{"date":{"__isSmartRef__":true,"id":1484},"author":"sstamm","message":"trollolol","id":"F6CFAD78-AC72-4DE2-9F38-79776C2E9462"},"1484":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:55:14 GMT-0800 (PST)"},"1485":{"date":{"__isSmartRef__":true,"id":1486},"author":"sstamm","message":"should be centered now","id":"EE366B4D-C272-477F-8C28-4EAE5A7EC7CB"},"1486":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:54:35 GMT-0800 (PST)"},"1487":{"date":{"__isSmartRef__":true,"id":1488},"author":"sstamm","message":"initial commit","id":"8920D925-DD16-4667-B8C7-FB74D78C2424"},"1488":{"isSerializedDate":true,"string":"Thu Feb 02 2012 04:26:01 GMT-0800 (PST)"},"1489":{"date":{"__isSmartRef__":true,"id":1490},"author":"sstamm","message":"changed text morph name","id":"80E88A3C-5AF3-48F2-A600-710877630997"},"1490":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:04:01 GMT-0800 (PST)"},"1491":{"date":{"__isSmartRef__":true,"id":1492},"author":"sstamm","message":"added loading script","id":"EE9B8F4D-1F03-4232-82E6-794046974F8F"},"1492":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:28:30 GMT-0800 (PST)"},"1493":{"date":{"__isSmartRef__":true,"id":1494},"author":"sstamm","message":"added disconnection","id":"11F19267-924E-4087-99ED-998245576BD2"},"1494":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:32:58 GMT-0800 (PST)"},"1495":{"date":{"__isSmartRef__":true,"id":1496},"author":"sstamm","message":"removed connections before deletion","id":"35A88218-6864-4D52-83A2-BFF7B9A6907C"},"1496":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:41:00 GMT-0800 (PST)"},"1497":{"date":{"__isSmartRef__":true,"id":1498},"author":"sstamm","message":"now able to load parts by name and category as well as per partItem","id":"F36A5782-461D-4813-95F8-0207990A261C"},"1498":{"isSerializedDate":true,"string":"Thu Feb 02 2012 06:24:30 GMT-0800 (PST)"},"1499":{"date":{"__isSmartRef__":true,"id":1500},"author":"sstamm","message":"now with round corners","id":"F42C39CB-CC37-467D-BF10-D362241F047E"},"1500":{"isSerializedDate":true,"string":"Thu Feb 02 2012 06:26:23 GMT-0800 (PST)"},"1501":{"date":{"__isSmartRef__":true,"id":1502},"author":"sstamm","message":"loadingMorph is sync now","id":"12ACFFC9-BA53-4A2A-ABD4-894A5ECE1145"},"1502":{"isSerializedDate":true,"string":"Thu Feb 02 2012 06:48:04 GMT-0800 (PST)"},"1503":{"date":{"__isSmartRef__":true,"id":1504},"author":"sstamm","message":"display the loadingMorph in new thread","id":"2BA51E30-F02B-4AF0-B3BE-52DD4ED522CC"},"1504":{"isSerializedDate":true,"string":"Thu Feb 02 2012 06:53:49 GMT-0800 (PST)"},"1505":{"date":{"__isSmartRef__":true,"id":1506},"author":"sstamm","message":"","id":"DF0AE4EA-1B08-4556-8BBE-E6488F23B8A3"},"1506":{"isSerializedDate":true,"string":"Thu Feb 02 2012 07:49:48 GMT-0800 (PST)"},"1507":{"date":{"__isSmartRef__":true,"id":1508},"author":"sstamm","message":"","id":"220821B3-C589-41C9-A324-8E7E6D9D6CEB"},"1508":{"isSerializedDate":true,"string":"Thu Feb 02 2012 07:58:43 GMT-0800 (PST)"},"1509":{"date":{"__isSmartRef__":true,"id":1510},"author":"sstamm","message":"","id":"DEBFACE2-7EC5-4A86-AD46-5A0A88A73707"},"1510":{"isSerializedDate":true,"string":"Thu Feb 02 2012 08:04:28 GMT-0800 (PST)"},"1511":{"date":{"__isSmartRef__":true,"id":1512},"author":"sstamm","message":"load request in new thread if loading should be async","id":"18282D28-D6D4-48C9-A508-6E3244449BD8"},"1512":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:10:27 GMT-0800 (PST)"},"1513":{"date":{"__isSmartRef__":true,"id":1514},"author":"sstamm","message":"added benchmarking output","id":"249CFF90-DDF5-4A83-9759-0289E96D7D58"},"1514":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:31:50 GMT-0800 (PST)"},"1515":{"date":{"__isSmartRef__":true,"id":1516},"author":"sstamm","message":"","id":"882082E1-29B6-418D-9B8B-672729D60619"},"1516":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:38:26 GMT-0800 (PST)"},"1517":{"date":{"__isSmartRef__":true,"id":1518},"author":"sstamm","message":"","id":"5179AEF9-E19F-4B0C-BBD8-556C5687988A"},"1518":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:44:11 GMT-0800 (PST)"},"1519":{"date":{"__isSmartRef__":true,"id":1520},"author":"sstamm","message":"","id":"1159C5B4-724E-4124-9D7B-5CD5DC4A8EE3"},"1520":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:48:14 GMT-0800 (PST)"},"1521":{"date":{"__isSmartRef__":true,"id":1522},"author":"sstamm","message":"","id":"2A718D1F-1036-41D6-999A-336F2B14E65D"},"1522":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:49:47 GMT-0800 (PST)"},"1523":{"date":{"__isSmartRef__":true,"id":1524},"author":"sstamm","message":"","id":"EB6BDD0C-7EEC-4124-B77F-2F106A601538"},"1524":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:59:48 GMT-0800 (PST)"},"1525":{"date":{"__isSmartRef__":true,"id":1526},"author":"sstamm","message":"","id":"63EC8D07-AB6A-450A-BB84-9B4D37E03647"},"1526":{"isSerializedDate":true,"string":"Tue Feb 07 2012 03:02:33 GMT-0800 (PST)"},"1527":{"date":{"__isSmartRef__":true,"id":1528},"author":"sstamm","message":"","id":"19CE12E4-5AA5-48DC-B1D1-B0EB0EDF1CB9"},"1528":{"isSerializedDate":true,"string":"Tue Feb 07 2012 03:03:42 GMT-0800 (PST)"},"1529":{"date":{"__isSmartRef__":true,"id":1530},"author":"sstamm","message":"first attempt to introduce callback functions to part loading","id":"22BD0B95-8948-411A-A56E-AD7CBE445F1D"},"1530":{"isSerializedDate":true,"string":"Thu Feb 09 2012 11:20:11 GMT-0800 (PST)"},"1531":{"date":{"__isSmartRef__":true,"id":1532},"author":"sstamm","message":"","id":"A216DFD2-9D1F-4E62-A22F-6B5472823E1B"},"1532":{"isSerializedDate":true,"string":"Fri Mar 16 2012 07:37:34 GMT-0700 (PDT)"},"1533":{"date":{"__isSmartRef__":true,"id":1534},"author":"sstamm","message":"","id":"464E723A-08DC-433C-AA5C-CEC850DBAF0B"},"1534":{"isSerializedDate":true,"string":"Fri Mar 16 2012 07:42:29 GMT-0700 (PDT)"},"1535":{"date":{"__isSmartRef__":true,"id":1536},"author":"jenslincke","message":"make it a meta tool","id":"8406E1E5-C48F-4F03-AC17-81AABDE9235E"},"1536":{"isSerializedDate":true,"string":"Fri Mar 22 2013 06:56:05 GMT-0700 (PDT)"},"1537":{"isSerializedDate":true,"string":"Wed Feb 05 2014 10:59:57 GMT-0800 (PST)"},"1538":{"morph":{"__isSmartRef__":true,"id":1425},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1539":{"adjustForNewBounds":true},"1540":{"loadPart":{"__isSmartRef__":true,"id":1541},"loadFinished":{"__isSmartRef__":true,"id":1545},"loadPartByName":{"__isSmartRef__":true,"id":1549}},"1541":{"varMapping":{"__isSmartRef__":true,"id":1542},"source":"function loadPart(partItem, isAsync) {\n this.partItem = partItem;\n \n this.openInWorld();\n if(partItem.part) {\n this.setExtent(partItem.part.getExtent());\n }\n this.align(this.bounds().center(), $world.visibleBounds().center());\n \n \n if(typeof isAsync === \"function\") {\n this.callback = isAsync;\n }\n\n connect(partItem, 'part', this, \"loadFinished\");\n\n partItem.loadPart(isAsync);\n\n return partItem.part;\n\n}","funcProperties":{"__isSmartRef__":true,"id":1543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1542":{"this":{"__isSmartRef__":true,"id":1425}},"1543":{"timestamp":{"__isSmartRef__":true,"id":1544},"user":"sstamm","tags":[]},"1544":{"isSerializedDate":true,"string":"Fri Mar 16 2012 07:42:18 GMT-0700 (PDT)"},"1545":{"varMapping":{"__isSmartRef__":true,"id":1546},"source":"function loadFinished(part) {\n if(this.owner === $world.firstHand()) {\n $world.firstHand().removeAllMorphs();\n } else {\n this.owner.addMorph(part);\n part.align(part.bounds().center(), this.bounds().center());\n this.remove();\n }\n disconnect(this.partItem, 'part', this, \"loadFinished\");\n if(this.callback) {\n this.callback(part);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1546":{"this":{"__isSmartRef__":true,"id":1425}},"1547":{"timestamp":{"__isSmartRef__":true,"id":1548},"user":"sstamm","tags":[]},"1548":{"isSerializedDate":true,"string":"Wed Feb 22 2012 05:01:53 GMT-0800 (PST)"},"1549":{"varMapping":{"__isSmartRef__":true,"id":1550},"source":"function loadPartByName(partName, optPartsSpaceName, isAsync) {\n var partItem = lively.PartsBin.getPartItem(partName, optPartsSpaceName);\n return this.loadPart(partItem, isAsync);\n}","funcProperties":{"__isSmartRef__":true,"id":1551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1550":{"this":{"__isSmartRef__":true,"id":1425}},"1551":{"timestamp":{"__isSmartRef__":true,"id":1552},"user":"sstamm","tags":[]},"1552":{"isSerializedDate":true,"string":"Thu Feb 02 2012 08:03:18 GMT-0800 (PST)"},"1553":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","converterString":null,"updaterString":"function ($upd, v) {\n if (v && v.toString() !== URL.source.toString()) {\n $upd(v)\n }\n }","varMapping":{"__isSmartRef__":true,"id":1554},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1554":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"1555":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/projects/BP2012/blank.xhtml","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1556":{"isSerializedDate":true,"string":"Wed Feb 05 2014 10:59:57 GMT-0800 (PST)"},"isSimplifiedRegistry":true}}]]>