$.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","attributeConnections":[{"__isSmartRef__":true,"id":770},{"__isSmartRef__":true,"id":772}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":89,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":774},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"518":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__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(527.8,235.5)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"519":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":520},{"__isSmartRef__":true,"id":522},{"__isSmartRef__":true,"id":524},{"__isSmartRef__":true,"id":526},{"__isSmartRef__":true,"id":528},{"__isSmartRef__":true,"id":530},{"__isSmartRef__":true,"id":532}],"lastModifiedDate":{"__isSmartRef__":true,"id":534},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"520":{"date":{"__isSmartRef__":true,"id":521},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"521":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"522":{"date":{"__isSmartRef__":true,"id":523},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"523":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"524":{"date":{"__isSmartRef__":true,"id":525},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"525":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"526":{"date":{"__isSmartRef__":true,"id":527},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"527":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"528":{"date":{"__isSmartRef__":true,"id":529},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"529":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"530":{"date":{"__isSmartRef__":true,"id":531},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"531":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"532":{"date":{"__isSmartRef__":true,"id":533},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"533":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"534":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"535":{"style":{"__isSmartRef__":true,"id":536},"chunkOwner":{"__isSmartRef__":true,"id":517},"_id":"_17","storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"536":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"537":{"_id":"_430","style":{"__isSmartRef__":true,"id":538},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" full =","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"538":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"539":{"_id":"_528","style":{"__isSmartRef__":true,"id":540},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"540":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"541":{"_id":"_529","style":{"__isSmartRef__":true,"id":542},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"542":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"543":{"_id":"_527","style":{"__isSmartRef__":true,"id":544},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"544":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"545":{"_id":"_531","style":{"__isSmartRef__":true,"id":546},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"546":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"547":{"_id":"_532","style":{"__isSmartRef__":true,"id":548},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Factor","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"548":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"549":{"_id":"_530","style":{"__isSmartRef__":true,"id":550},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"550":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"551":{"_id":"_431","style":{"__isSmartRef__":true,"id":552},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"552":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"553":{"_id":"_432","style":{"__isSmartRef__":true,"id":554},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"554":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"555":{"_id":"_534","style":{"__isSmartRef__":true,"id":556},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"($.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"556":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"557":{"_id":"_535","style":{"__isSmartRef__":true,"id":558},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"558":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"559":{"_id":"_533","style":{"__isSmartRef__":true,"id":560},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" < full && ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"560":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"561":{"_id":"_492","style":{"__isSmartRef__":true,"id":562},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"562":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"563":{"_id":"_494","style":{"__isSmartRef__":true,"id":564},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Fuel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"564":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":565},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"565":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Fuel\")","context":{"__isSmartRef__":true,"id":492}},"566":{"_id":"_493","style":{"__isSmartRef__":true,"id":567},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"567":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"568":{"_id":"_495","style":{"__isSmartRef__":true,"id":569},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"569":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"570":{"_id":"_496","style":{"__isSmartRef__":true,"id":571},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" >","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"571":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"572":{"_id":"_537","style":{"__isSmartRef__":true,"id":573},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"573":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"574":{"_id":"_538","style":{"__isSmartRef__":true,"id":575},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"575":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"576":{"_id":"_536","style":{"__isSmartRef__":true,"id":577},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"577":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"578":{"_id":"_563","style":{"__isSmartRef__":true,"id":579},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" dt ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"579":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"580":{"_id":"_564","style":{"__isSmartRef__":true,"id":581},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"&&\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"581":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"582":{"_id":"_497","style":{"__isSmartRef__":true,"id":583},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"583":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"584":{"_id":"_499","style":{"__isSmartRef__":true,"id":585},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"585":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":586},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"586":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":492}},"587":{"_id":"_498","style":{"__isSmartRef__":true,"id":588},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"588":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"589":{"_id":"_500","style":{"__isSmartRef__":true,"id":590},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"590":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"591":{"_id":"_501","style":{"__isSmartRef__":true,"id":592},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"592":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"593":{"_id":"_433","style":{"__isSmartRef__":true,"id":594},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"0.3","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"594":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"595":{"_id":"_434","style":{"__isSmartRef__":true,"id":596},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"596":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"597":{"_id":"_502","style":{"__isSmartRef__":true,"id":598},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"598":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"599":{"_id":"_504","style":{"__isSmartRef__":true,"id":600},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"600":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":601},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"601":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":492}},"602":{"_id":"_503","style":{"__isSmartRef__":true,"id":603},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"603":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"604":{"_id":"_505","style":{"__isSmartRef__":true,"id":605},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"605":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"606":{"_id":"_506","style":{"__isSmartRef__":true,"id":607},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"607":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"608":{"_id":"_435","style":{"__isSmartRef__":true,"id":609},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"609":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"610":{"_id":"_436","style":{"__isSmartRef__":true,"id":611},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"611":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"612":{"_id":"_437","style":{"__isSmartRef__":true,"id":613},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"613":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"614":{"_id":"_438","style":{"__isSmartRef__":true,"id":615},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" gas =","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"615":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"616":{"_id":"_540","style":{"__isSmartRef__":true,"id":617},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"617":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"618":{"_id":"_541","style":{"__isSmartRef__":true,"id":619},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"619":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"620":{"_id":"_539","style":{"__isSmartRef__":true,"id":621},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"621":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"622":{"_id":"_565","style":{"__isSmartRef__":true,"id":623},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"623":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"624":{"_id":"_566","style":{"__isSmartRef__":true,"id":625},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"625":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"626":{"_id":"_507","style":{"__isSmartRef__":true,"id":627},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"627":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"628":{"_id":"_509","style":{"__isSmartRef__":true,"id":629},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Fuel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"629":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":630},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"630":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Fuel\")","context":{"__isSmartRef__":true,"id":492}},"631":{"_id":"_508","style":{"__isSmartRef__":true,"id":632},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"632":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"633":{"_id":"_510","style":{"__isSmartRef__":true,"id":634},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"634":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"635":{"_id":"_511","style":{"__isSmartRef__":true,"id":636},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" -= gas\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"636":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"637":{"_id":"_543","style":{"__isSmartRef__":true,"id":638},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"638":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"639":{"_id":"_544","style":{"__isSmartRef__":true,"id":640},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"640":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"641":{"_id":"_542","style":{"__isSmartRef__":true,"id":642},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" += gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"642":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"643":{"_id":"_439","style":{"__isSmartRef__":true,"id":644},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"644":{"__serializedExpressions__":["backgroundColor"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","backgroundColor":"Color.rgba(204,204,0,0.4)"},"645":{"_id":"_440","style":{"__isSmartRef__":true,"id":646},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"646":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"647":{"_id":"_441","style":{"__isSmartRef__":true,"id":648},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"\n\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"648":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"649":{"_id":"_442","style":{"__isSmartRef__":true,"id":650},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"650":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"651":{"_id":"_443","style":{"__isSmartRef__":true,"id":652},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" delta = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"652":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"653":{"_id":"_546","style":{"__isSmartRef__":true,"id":654},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"($.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"654":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"655":{"_id":"_547","style":{"__isSmartRef__":true,"id":656},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"656":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"657":{"_id":"_545","style":{"__isSmartRef__":true,"id":658},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" /","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"658":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"659":{"_id":"_549","style":{"__isSmartRef__":true,"id":660},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"660":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"661":{"_id":"_550","style":{"__isSmartRef__":true,"id":662},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Factor","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"662":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"663":{"_id":"_548","style":{"__isSmartRef__":true,"id":664},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":") *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"664":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"665":{"_id":"_567","style":{"__isSmartRef__":true,"id":666},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"666":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"667":{"_id":"_444","style":{"__isSmartRef__":true,"id":668},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"668":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"669":{"_id":"_445","style":{"__isSmartRef__":true,"id":670},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"670":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"671":{"_id":"_552","style":{"__isSmartRef__":true,"id":672},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"($.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"672":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"673":{"_id":"_553","style":{"__isSmartRef__":true,"id":674},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"674":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"675":{"_id":"_551","style":{"__isSmartRef__":true,"id":676},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" > ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"676":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"677":{"_id":"_446","style":{"__isSmartRef__":true,"id":678},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"678":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"679":{"_id":"_447","style":{"__isSmartRef__":true,"id":680},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"680":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"681":{"_id":"_555","style":{"__isSmartRef__":true,"id":682},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"682":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"683":{"_id":"_556","style":{"__isSmartRef__":true,"id":684},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"684":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"685":{"_id":"_554","style":{"__isSmartRef__":true,"id":686},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" && ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"686":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"687":{"_id":"_512","style":{"__isSmartRef__":true,"id":688},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"688":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"689":{"_id":"_514","style":{"__isSmartRef__":true,"id":690},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"690":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":691},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"691":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":492}},"692":{"_id":"_513","style":{"__isSmartRef__":true,"id":693},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"693":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"694":{"_id":"_515","style":{"__isSmartRef__":true,"id":695},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"695":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"696":{"_id":"_516","style":{"__isSmartRef__":true,"id":697},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"697":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"698":{"_id":"_517","style":{"__isSmartRef__":true,"id":699},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"699":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"700":{"_id":"_519","style":{"__isSmartRef__":true,"id":701},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"701":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":702},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"702":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":492}},"703":{"_id":"_518","style":{"__isSmartRef__":true,"id":704},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"704":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"705":{"_id":"_520","style":{"__isSmartRef__":true,"id":706},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"706":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"707":{"_id":"_521","style":{"__isSmartRef__":true,"id":708},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" ) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"708":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"709":{"_id":"_448","style":{"__isSmartRef__":true,"id":710},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"710":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"711":{"_id":"_449","style":{"__isSmartRef__":true,"id":712},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"712":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"713":{"_id":"_558","style":{"__isSmartRef__":true,"id":714},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"714":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"715":{"_id":"_559","style":{"__isSmartRef__":true,"id":716},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"716":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"717":{"_id":"_557","style":{"__isSmartRef__":true,"id":718},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" -= delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"718":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"719":{"_id":"_522","style":{"__isSmartRef__":true,"id":720},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"720":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"721":{"_id":"_524","style":{"__isSmartRef__":true,"id":722},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"722":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":723},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"723":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":492}},"724":{"_id":"_523","style":{"__isSmartRef__":true,"id":725},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"725":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"726":{"_id":"_525","style":{"__isSmartRef__":true,"id":727},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"727":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"728":{"_id":"_526","style":{"__isSmartRef__":true,"id":729},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" += ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"729":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"730":{"_id":"_450","style":{"__isSmartRef__":true,"id":731},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"0.8","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"731":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"732":{"_id":"_451","style":{"__isSmartRef__":true,"id":733},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" * delta\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"733":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"734":{"_id":"_452","style":{"__isSmartRef__":true,"id":735},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"735":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"736":{"_id":"_453","style":{"__isSmartRef__":true,"id":737},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"737":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"738":{"_id":"_454","style":{"__isSmartRef__":true,"id":739},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"739":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"740":{"_id":"_455","style":{"__isSmartRef__":true,"id":741},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"741":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"742":{"_id":"_456","style":{"__isSmartRef__":true,"id":743},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"743":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"744":{"_id":"_457","style":{"__isSmartRef__":true,"id":745},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"745":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"746":{"_id":"_561","style":{"__isSmartRef__":true,"id":747},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"747":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"748":{"_id":"_562","style":{"__isSmartRef__":true,"id":749},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"749":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"750":{"_id":"_560","style":{"__isSmartRef__":true,"id":751},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" -= ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"751":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"752":{"_id":"_458","style":{"__isSmartRef__":true,"id":753},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"0.2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"753":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"754":{"_id":"_459","style":{"__isSmartRef__":true,"id":755},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":" * delta\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"755":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"756":{"_id":"_460","style":{"__isSmartRef__":true,"id":757},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"757":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"758":{"_id":"_461","style":{"__isSmartRef__":true,"id":759},"chunkOwner":{"__isSmartRef__":true,"id":517},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"759":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"760":{"morph":{"__isSmartRef__":true,"id":517},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"761":{"morph":{"__isSmartRef__":true,"id":517},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"762":{"morph":{"__isSmartRef__":true,"id":517},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"763":{"morph":{"__isSmartRef__":true,"id":517},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"764":{"morph":{"__isSmartRef__":true,"id":517},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"765":{"morph":{"__isSmartRef__":true,"id":517},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"766":{"morph":{"__isSmartRef__":true,"id":517},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"767":{"morph":{"__isSmartRef__":true,"id":517},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"768":{"morph":{"__isSmartRef__":true,"id":517},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"769":{"resizeWidth":true,"resizeHeight":true},"770":{"sourceObj":{"__isSmartRef__":true,"id":517},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":492},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":771},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"771":{"source":{"__isSmartRef__":true,"id":517},"target":{"__isSmartRef__":true,"id":492}},"772":{"sourceObj":{"__isSmartRef__":true,"id":517},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":517},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":773},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"773":{"source":{"__isSmartRef__":true,"id":517},"target":{"__isSmartRef__":true,"id":517}},"774":{"boundEval":{"__isSmartRef__":true,"id":775},"getDoitContext":{"__isSmartRef__":true,"id":783},"installLayers":{"__isSmartRef__":true,"id":791},"onLoad":{"__isSmartRef__":true,"id":795},"highligtScriptNames":{"__isSmartRef__":true,"id":799},"getAutoCompletion":{"__isSmartRef__":true,"id":803},"reset":{"__isSmartRef__":true,"id":811},"getLastWordRange":{"__isSmartRef__":true,"id":815}},"775":{"varMapping":{"__isSmartRef__":true,"id":776},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"776":{"this":{"__isSmartRef__":true,"id":517},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":777}},"777":{"$super":{"__isSmartRef__":true,"id":778}},"778":{"varMapping":{"__isSmartRef__":true,"id":779},"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":780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"779":{"obj":{"__isSmartRef__":true,"id":517},"name":"boundEval"},"780":{},"781":{"timestamp":{"__isSmartRef__":true,"id":782},"user":"jenslincke","tags":[]},"782":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:28:47 GMT-0800 (PST)"},"783":{"varMapping":{"__isSmartRef__":true,"id":784},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"784":{"this":{"__isSmartRef__":true,"id":517},"__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":517},"name":"getDoitContext"},"788":{},"789":{"timestamp":{"__isSmartRef__":true,"id":790},"user":"jenslincke","tags":[]},"790":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:42:09 GMT-0800 (PST)"},"791":{"varMapping":{"__isSmartRef__":true,"id":792},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"792":{"this":{"__isSmartRef__":true,"id":517}},"793":{"timestamp":{"__isSmartRef__":true,"id":794},"user":"jenslincke","tags":[]},"794":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:44 GMT-0800 (PST)"},"795":{"varMapping":{"__isSmartRef__":true,"id":796},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"796":{"this":{"__isSmartRef__":true,"id":517}},"797":{"timestamp":{"__isSmartRef__":true,"id":798},"user":"jenslincke","tags":[]},"798":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:45 GMT-0800 (PST)"},"799":{"varMapping":{"__isSmartRef__":true,"id":800},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"800":{"this":{"__isSmartRef__":true,"id":517}},"801":{"timestamp":{"__isSmartRef__":true,"id":802},"user":"jenslincke","tags":[]},"802":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:25:07 GMT-0800 (PST)"},"803":{"varMapping":{"__isSmartRef__":true,"id":804},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"804":{"this":{"__isSmartRef__":true,"id":517},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":805}},"805":{"$super":{"__isSmartRef__":true,"id":806}},"806":{"varMapping":{"__isSmartRef__":true,"id":807},"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":808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"807":{"obj":{"__isSmartRef__":true,"id":517},"name":"getAutoCompletion"},"808":{},"809":{"timestamp":{"__isSmartRef__":true,"id":810},"user":"jenslincke","tags":[]},"810":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:33:17 GMT-0800 (PST)"},"811":{"varMapping":{"__isSmartRef__":true,"id":812},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"812":{"this":{"__isSmartRef__":true,"id":517}},"813":{"timestamp":{"__isSmartRef__":true,"id":814},"user":"jenslincke","tags":[]},"814":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:58:01 GMT-0800 (PST)"},"815":{"varMapping":{"__isSmartRef__":true,"id":816},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"816":{"this":{"__isSmartRef__":true,"id":517},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":817}},"817":{"$super":{"__isSmartRef__":true,"id":818}},"818":{"varMapping":{"__isSmartRef__":true,"id":819},"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":820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"819":{"obj":{"__isSmartRef__":true,"id":517},"name":"getLastWordRange"},"820":{},"821":{"timestamp":{"__isSmartRef__":true,"id":822},"user":"jenslincke","tags":[]},"822":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:59:58 GMT-0800 (PST)"},"823":{"submorphs":[],"scripts":[],"id":"07D195A1-33DA-4A4D-B3EA-B51C03BACF39","shape":{"__isSmartRef__":true,"id":824},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":825},"textChunks":[{"__isSmartRef__":true,"id":841}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":843},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":492},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":844},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,320.5)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"824":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(519.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"825":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":826},{"__isSmartRef__":true,"id":828},{"__isSmartRef__":true,"id":830},{"__isSmartRef__":true,"id":832},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":836},{"__isSmartRef__":true,"id":838}],"lastModifiedDate":{"__isSmartRef__":true,"id":840},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"826":{"date":{"__isSmartRef__":true,"id":827},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"827":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"828":{"date":{"__isSmartRef__":true,"id":829},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"829":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"830":{"date":{"__isSmartRef__":true,"id":831},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"831":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"832":{"date":{"__isSmartRef__":true,"id":833},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"833":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"834":{"date":{"__isSmartRef__":true,"id":835},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"835":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"836":{"date":{"__isSmartRef__":true,"id":837},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"837":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"838":{"date":{"__isSmartRef__":true,"id":839},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"839":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"840":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"841":{"style":{"__isSmartRef__":true,"id":842},"chunkOwner":{"__isSmartRef__":true,"id":823},"_id":"_11226","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"842":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"843":{"morph":{"__isSmartRef__":true,"id":823},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"844":{"moveVertical":true,"resizeWidth":true},"845":{"submorphs":[],"scripts":[],"id":"88E27517-6524-49AD-AF69-936DADF77DDD","shape":{"__isSmartRef__":true,"id":846},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":847},"textChunks":[{"__isSmartRef__":true,"id":863}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":865},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":492},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":866}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":868},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"846":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(513.4,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"847":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":848},{"__isSmartRef__":true,"id":850},{"__isSmartRef__":true,"id":852},{"__isSmartRef__":true,"id":854},{"__isSmartRef__":true,"id":856},{"__isSmartRef__":true,"id":858},{"__isSmartRef__":true,"id":860}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":862},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"848":{"date":{"__isSmartRef__":true,"id":849},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"849":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"850":{"date":{"__isSmartRef__":true,"id":851},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"851":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"852":{"date":{"__isSmartRef__":true,"id":853},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"853":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"854":{"date":{"__isSmartRef__":true,"id":855},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"855":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"856":{"date":{"__isSmartRef__":true,"id":857},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"857":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"858":{"date":{"__isSmartRef__":true,"id":859},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"859":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"860":{"date":{"__isSmartRef__":true,"id":861},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"861":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"862":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"863":{"style":{"__isSmartRef__":true,"id":864},"chunkOwner":{"__isSmartRef__":true,"id":845},"_id":"_11200","storedString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 20\nMax: 5 [kW]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"864":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"865":{"morph":{"__isSmartRef__":true,"id":845},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"866":{"sourceObj":{"__isSmartRef__":true,"id":845},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":492},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":867},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"867":{"source":{"__isSmartRef__":true,"id":845},"target":{"__isSmartRef__":true,"id":492}},"868":{"resizeWidth":true},"869":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(541.7,338.3)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"870":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":871},{"__isSmartRef__":true,"id":873},{"__isSmartRef__":true,"id":875},{"__isSmartRef__":true,"id":877},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":881},{"__isSmartRef__":true,"id":883},{"__isSmartRef__":true,"id":885},{"__isSmartRef__":true,"id":887},{"__isSmartRef__":true,"id":889},{"__isSmartRef__":true,"id":891},{"__isSmartRef__":true,"id":893},{"__isSmartRef__":true,"id":895},{"__isSmartRef__":true,"id":897},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":901},{"__isSmartRef__":true,"id":903},{"__isSmartRef__":true,"id":905},{"__isSmartRef__":true,"id":907},{"__isSmartRef__":true,"id":909},{"__isSmartRef__":true,"id":911},{"__isSmartRef__":true,"id":913},{"__isSmartRef__":true,"id":915},{"__isSmartRef__":true,"id":917},{"__isSmartRef__":true,"id":919},{"__isSmartRef__":true,"id":921},{"__isSmartRef__":true,"id":923},{"__isSmartRef__":true,"id":925},{"__isSmartRef__":true,"id":927}],"lastModifiedDate":{"__isSmartRef__":true,"id":929},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"871":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":872}},"872":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"873":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":874}},"874":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"875":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":876}},"876":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"877":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":878}},"878":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"879":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":880}},"880":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"881":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":882}},"882":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"883":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":884}},"884":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"885":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":886}},"886":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"887":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":888}},"888":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"889":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":890}},"890":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"891":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":892}},"892":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"893":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":894}},"894":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"895":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":896}},"896":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"897":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":898}},"898":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"899":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":900}},"900":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"901":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":902}},"902":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"903":{"date":{"__isSmartRef__":true,"id":904},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"904":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:02:28 GMT-0800 (PST)"},"905":{"date":{"__isSmartRef__":true,"id":906},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"906":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:10:08 GMT-0800 (PST)"},"907":{"date":{"__isSmartRef__":true,"id":908},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"908":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:24:55 GMT-0800 (PST)"},"909":{"date":{"__isSmartRef__":true,"id":910},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"910":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:29:33 GMT-0800 (PST)"},"911":{"date":{"__isSmartRef__":true,"id":912},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"912":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:07:26 GMT-0800 (PST)"},"913":{"date":{"__isSmartRef__":true,"id":914},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"914":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:23:13 GMT-0800 (PST)"},"915":{"date":{"__isSmartRef__":true,"id":916},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"916":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:58:48 GMT-0800 (PST)"},"917":{"date":{"__isSmartRef__":true,"id":918},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"918":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:59:27 GMT-0800 (PST)"},"919":{"date":{"__isSmartRef__":true,"id":920},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"920":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:03:44 GMT-0800 (PST)"},"921":{"date":{"__isSmartRef__":true,"id":922},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"922":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:24:12 GMT-0800 (PST)"},"923":{"date":{"__isSmartRef__":true,"id":924},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"924":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:26:15 GMT-0800 (PST)"},"925":{"date":{"__isSmartRef__":true,"id":926},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"926":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:35:38 GMT-0800 (PST)"},"927":{"date":{"__isSmartRef__":true,"id":928},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"928":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:51 GMT-0800 (PST)"},"929":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:15 GMT-0800 (PST)"},"930":{"morph":{"__isSmartRef__":true,"id":492},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"931":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":932}},"932":{"test01IsMorph":{"__isSmartRef__":true,"id":933}},"933":{"varMapping":{"__isSmartRef__":true,"id":934},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"934":{"this":{"__isSmartRef__":true,"id":931}},"935":{},"936":{"morph":{"__isSmartRef__":true,"id":492},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"937":{"morph":{"__isSmartRef__":true,"id":492},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"938":{"morph":{"__isSmartRef__":true,"id":492},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"939":{"morph":{"__isSmartRef__":true,"id":492},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"940":{"morph":{"__isSmartRef__":true,"id":492},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"941":{"morph":{"__isSmartRef__":true,"id":492},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"942":{"morph":{"__isSmartRef__":true,"id":492},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"943":{"morph":{"__isSmartRef__":true,"id":492},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"944":{"adjustForNewBounds":true},"945":{"Heat":0,"Stopped":false,"Factor":20,"Max":5},"946":{"sourceObj":{"__isSmartRef__":true,"id":492},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":493},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":947},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"947":{"source":{"__isSmartRef__":true,"id":492},"target":{"__isSmartRef__":true,"id":493}},"948":{"Heat":"kW/s","Max":"kW"},"949":{"referencedBy":{"__isSmartRef__":true,"id":950},"references":{"__isSmartRef__":true,"id":951}},"950":{},"951":{},"952":{"submorphs":[{"__isSmartRef__":true,"id":953},{"__isSmartRef__":true,"id":1288},{"__isSmartRef__":true,"id":1679},{"__isSmartRef__":true,"id":2244},{"__isSmartRef__":true,"id":2553},{"__isSmartRef__":true,"id":2862},{"__isSmartRef__":true,"id":3468},{"__isSmartRef__":true,"id":3706},{"__isSmartRef__":true,"id":3847},{"__isSmartRef__":true,"id":4117},{"__isSmartRef__":true,"id":492},{"__isSmartRef__":true,"id":4520}],"scripts":[],"id":"22930405-15F8-450C-AB32-1E33682FD139","shape":{"__isSmartRef__":true,"id":5035},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"EnergySimulation","partsBinMetaInfo":{"__isSmartRef__":true,"id":5036},"eventHandler":{"__isSmartRef__":true,"id":5080},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","88213761-056A-4183-A3FB-45D9996AFE2F"],"partTests":{"__isSmartRef__":true,"id":5081},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"isCopyMorphRef":true,"morphRefId":2,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":0},"deltaTime":0.1,"simStepsAtOnce":50,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5086},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(1220.8,-7.6)","_Position":"lively.pt(17.9,101.5)"},"953":{"submorphs":[{"__isSmartRef__":true,"id":954},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":1087},{"__isSmartRef__":true,"id":1109}],"scripts":[],"id":"DFB2A7FC-7718-4796-AB3E-FF2AB6D08B51","shape":{"__isSmartRef__":true,"id":1133},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1134},"eventHandler":{"__isSmartRef__":true,"id":1194},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":1195},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":1200},{"__isSmartRef__":true,"id":1201},{"__isSmartRef__":true,"id":1202},{"__isSmartRef__":true,"id":1203},{"__isSmartRef__":true,"id":1204},{"__isSmartRef__":true,"id":1205},{"__isSmartRef__":true,"id":1206},{"__isSmartRef__":true,"id":1207}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":1208},"$":{"__isSmartRef__":true,"id":1209},"name":"Fuel","attributeConnections":[{"__isSmartRef__":true,"id":1210}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":1212},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":1213},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":952},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1216},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(143.6,-16.2)","_Position":"lively.pt(389.6,242.3)"},"954":{"submorphs":[],"scripts":[],"id":"AC207BEE-E5D2-4103-8C3F-615D27D85EBA","shape":{"__isSmartRef__":true,"id":955},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":956},"textChunks":[{"__isSmartRef__":true,"id":958}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":960},{"__isSmartRef__":true,"id":961}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":962},"owner":{"__isSmartRef__":true,"id":953},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":953},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"priorSelectionRange":[4,4],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":963},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"955":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"956":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":957},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"957":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"958":{"style":{"__isSmartRef__":true,"id":959},"chunkOwner":{"__isSmartRef__":true,"id":954},"_id":"_5507","storedString":"Fuel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"959":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"960":{"sourceObj":{"__isSmartRef__":true,"id":954},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":954},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"961":{"sourceObj":{"__isSmartRef__":true,"id":954},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":954},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"962":{"morph":{"__isSmartRef__":true,"id":954},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"963":{"updateLabel":{"__isSmartRef__":true,"id":964},"renameOwner":{"__isSmartRef__":true,"id":967},"onFocus":{"__isSmartRef__":true,"id":970}},"964":{"varMapping":{"__isSmartRef__":true,"id":965},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"965":{"this":{"__isSmartRef__":true,"id":954}},"966":{},"967":{"varMapping":{"__isSmartRef__":true,"id":968},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"968":{"this":{"__isSmartRef__":true,"id":954}},"969":{},"970":{"varMapping":{"__isSmartRef__":true,"id":971},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"971":{"this":{"__isSmartRef__":true,"id":954},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":972}},"972":{"$super":{"__isSmartRef__":true,"id":973}},"973":{"varMapping":{"__isSmartRef__":true,"id":974},"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":975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"974":{"obj":{"__isSmartRef__":true,"id":954},"name":"onFocus"},"975":{},"976":{"timestamp":{"__isSmartRef__":true,"id":977},"user":"jenslincke","tags":[]},"977":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:45:12 GMT-0800 (PST)"},"978":{"submorphs":[],"scripts":[],"id":"A4F14F4B-C9F5-48B9-AA63-DA98330BE9B1","shape":{"__isSmartRef__":true,"id":979},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":980},"textChunks":[{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":998},{"__isSmartRef__":true,"id":1000},{"__isSmartRef__":true,"id":1002},{"__isSmartRef__":true,"id":1004},{"__isSmartRef__":true,"id":1006},{"__isSmartRef__":true,"id":1008},{"__isSmartRef__":true,"id":1010},{"__isSmartRef__":true,"id":1012},{"__isSmartRef__":true,"id":1014},{"__isSmartRef__":true,"id":1016},{"__isSmartRef__":true,"id":1018},{"__isSmartRef__":true,"id":1020},{"__isSmartRef__":true,"id":1022}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1024},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":1025},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":1027},{"__isSmartRef__":true,"id":1028},{"__isSmartRef__":true,"id":1029},{"__isSmartRef__":true,"id":1030},{"__isSmartRef__":true,"id":1031},{"__isSmartRef__":true,"id":1032}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":1033},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":953},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","attributeConnections":[{"__isSmartRef__":true,"id":1034},{"__isSmartRef__":true,"id":1036}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":40,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[301,301],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"if ($.Gas < 0) {\n problem(\"GasEmpty\")\n}","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1038},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"979":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__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(205.7,59.9)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"980":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":981},{"__isSmartRef__":true,"id":983},{"__isSmartRef__":true,"id":985},{"__isSmartRef__":true,"id":987},{"__isSmartRef__":true,"id":989},{"__isSmartRef__":true,"id":991},{"__isSmartRef__":true,"id":993}],"lastModifiedDate":{"__isSmartRef__":true,"id":995},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"981":{"date":{"__isSmartRef__":true,"id":982},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"982":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"983":{"date":{"__isSmartRef__":true,"id":984},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"984":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"985":{"date":{"__isSmartRef__":true,"id":986},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"986":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"987":{"date":{"__isSmartRef__":true,"id":988},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"988":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"989":{"date":{"__isSmartRef__":true,"id":990},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"990":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"991":{"date":{"__isSmartRef__":true,"id":992},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"992":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"993":{"date":{"__isSmartRef__":true,"id":994},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"994":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"995":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"996":{"style":{"__isSmartRef__":true,"id":997},"chunkOwner":{"__isSmartRef__":true,"id":978},"_id":"_12","storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"997":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"998":{"_id":"_23","style":{"__isSmartRef__":true,"id":999},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"999":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1000":{"_id":"_36","style":{"__isSmartRef__":true,"id":1001},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"($.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1001":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1002":{"_id":"_37","style":{"__isSmartRef__":true,"id":1003},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"Gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1003":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1004":{"_id":"_35","style":{"__isSmartRef__":true,"id":1005},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":" < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1005":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1006":{"_id":"_24","style":{"__isSmartRef__":true,"id":1007},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1007":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1008":{"_id":"_25","style":{"__isSmartRef__":true,"id":1009},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1009":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1010":{"_id":"_26","style":{"__isSmartRef__":true,"id":1011},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1011":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1012":{"_id":"_27","style":{"__isSmartRef__":true,"id":1013},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1013":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1014":{"_id":"_33","style":{"__isSmartRef__":true,"id":1015},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"problem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1015":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"1016":{"_id":"_34","style":{"__isSmartRef__":true,"id":1017},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1017":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1018":{"_id":"_28","style":{"__isSmartRef__":true,"id":1019},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"\"GasEmpty\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1019":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,128)"},"1020":{"_id":"_29","style":{"__isSmartRef__":true,"id":1021},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1021":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1022":{"_id":"_30","style":{"__isSmartRef__":true,"id":1023},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1023":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1024":{"morph":{"__isSmartRef__":true,"id":978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1025":{"morph":{"__isSmartRef__":true,"id":978},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"1026":{"morph":{"__isSmartRef__":true,"id":978},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"1027":{"morph":{"__isSmartRef__":true,"id":978},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"1028":{"morph":{"__isSmartRef__":true,"id":978},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"1029":{"morph":{"__isSmartRef__":true,"id":978},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"1030":{"morph":{"__isSmartRef__":true,"id":978},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"1031":{"morph":{"__isSmartRef__":true,"id":978},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"1032":{"morph":{"__isSmartRef__":true,"id":978},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"1033":{"resizeWidth":true,"resizeHeight":true},"1034":{"sourceObj":{"__isSmartRef__":true,"id":978},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":953},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":1035},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1035":{"source":{"__isSmartRef__":true,"id":978},"target":{"__isSmartRef__":true,"id":953}},"1036":{"sourceObj":{"__isSmartRef__":true,"id":978},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":978},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1037":{"source":{"__isSmartRef__":true,"id":978},"target":{"__isSmartRef__":true,"id":978}},"1038":{"boundEval":{"__isSmartRef__":true,"id":1039},"getDoitContext":{"__isSmartRef__":true,"id":1047},"installLayers":{"__isSmartRef__":true,"id":1055},"onLoad":{"__isSmartRef__":true,"id":1059},"highligtScriptNames":{"__isSmartRef__":true,"id":1063},"getAutoCompletion":{"__isSmartRef__":true,"id":1067},"reset":{"__isSmartRef__":true,"id":1075},"getLastWordRange":{"__isSmartRef__":true,"id":1079}},"1039":{"varMapping":{"__isSmartRef__":true,"id":1040},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1040":{"this":{"__isSmartRef__":true,"id":978},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1041}},"1041":{"$super":{"__isSmartRef__":true,"id":1042}},"1042":{"varMapping":{"__isSmartRef__":true,"id":1043},"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":1044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1043":{"obj":{"__isSmartRef__":true,"id":978},"name":"boundEval"},"1044":{},"1045":{"timestamp":{"__isSmartRef__":true,"id":1046},"user":"jenslincke","tags":[]},"1046":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:28:47 GMT-0800 (PST)"},"1047":{"varMapping":{"__isSmartRef__":true,"id":1048},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1048":{"this":{"__isSmartRef__":true,"id":978},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1049}},"1049":{"$super":{"__isSmartRef__":true,"id":1050}},"1050":{"varMapping":{"__isSmartRef__":true,"id":1051},"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":1052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1051":{"obj":{"__isSmartRef__":true,"id":978},"name":"getDoitContext"},"1052":{},"1053":{"timestamp":{"__isSmartRef__":true,"id":1054},"user":"jenslincke","tags":[]},"1054":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:42:09 GMT-0800 (PST)"},"1055":{"varMapping":{"__isSmartRef__":true,"id":1056},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":1057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1056":{"this":{"__isSmartRef__":true,"id":978}},"1057":{"timestamp":{"__isSmartRef__":true,"id":1058},"user":"jenslincke","tags":[]},"1058":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:44 GMT-0800 (PST)"},"1059":{"varMapping":{"__isSmartRef__":true,"id":1060},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":1061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1060":{"this":{"__isSmartRef__":true,"id":978}},"1061":{"timestamp":{"__isSmartRef__":true,"id":1062},"user":"jenslincke","tags":[]},"1062":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:45 GMT-0800 (PST)"},"1063":{"varMapping":{"__isSmartRef__":true,"id":1064},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":1065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1064":{"this":{"__isSmartRef__":true,"id":978}},"1065":{"timestamp":{"__isSmartRef__":true,"id":1066},"user":"jenslincke","tags":[]},"1066":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:25:07 GMT-0800 (PST)"},"1067":{"varMapping":{"__isSmartRef__":true,"id":1068},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":1073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1068":{"this":{"__isSmartRef__":true,"id":978},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1069}},"1069":{"$super":{"__isSmartRef__":true,"id":1070}},"1070":{"varMapping":{"__isSmartRef__":true,"id":1071},"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":1072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1071":{"obj":{"__isSmartRef__":true,"id":978},"name":"getAutoCompletion"},"1072":{},"1073":{"timestamp":{"__isSmartRef__":true,"id":1074},"user":"jenslincke","tags":[]},"1074":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:33:17 GMT-0800 (PST)"},"1075":{"varMapping":{"__isSmartRef__":true,"id":1076},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":1077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1076":{"this":{"__isSmartRef__":true,"id":978}},"1077":{"timestamp":{"__isSmartRef__":true,"id":1078},"user":"jenslincke","tags":[]},"1078":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:58:01 GMT-0800 (PST)"},"1079":{"varMapping":{"__isSmartRef__":true,"id":1080},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1080":{"this":{"__isSmartRef__":true,"id":978},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1081}},"1081":{"$super":{"__isSmartRef__":true,"id":1082}},"1082":{"varMapping":{"__isSmartRef__":true,"id":1083},"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":1084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1083":{"obj":{"__isSmartRef__":true,"id":978},"name":"getLastWordRange"},"1084":{},"1085":{"timestamp":{"__isSmartRef__":true,"id":1086},"user":"jenslincke","tags":[]},"1086":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:59:58 GMT-0800 (PST)"},"1087":{"submorphs":[],"scripts":[],"id":"B613E79A-2A6A-4074-9269-4E84C970988E","shape":{"__isSmartRef__":true,"id":1088},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":1089},"textChunks":[{"__isSmartRef__":true,"id":1105}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1107},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":953},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":1108},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,144.9)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"1088":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(197.8,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1089":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1090},{"__isSmartRef__":true,"id":1092},{"__isSmartRef__":true,"id":1094},{"__isSmartRef__":true,"id":1096},{"__isSmartRef__":true,"id":1098},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1102}],"lastModifiedDate":{"__isSmartRef__":true,"id":1104},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1090":{"date":{"__isSmartRef__":true,"id":1091},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1091":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"1092":{"date":{"__isSmartRef__":true,"id":1093},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1093":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"1094":{"date":{"__isSmartRef__":true,"id":1095},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1095":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"1096":{"date":{"__isSmartRef__":true,"id":1097},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1097":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"1098":{"date":{"__isSmartRef__":true,"id":1099},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1099":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"1100":{"date":{"__isSmartRef__":true,"id":1101},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1101":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"1102":{"date":{"__isSmartRef__":true,"id":1103},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1103":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"1104":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"1105":{"style":{"__isSmartRef__":true,"id":1106},"chunkOwner":{"__isSmartRef__":true,"id":1087},"_id":"_11212","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1106":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1107":{"morph":{"__isSmartRef__":true,"id":1087},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1108":{"moveVertical":true,"resizeWidth":true},"1109":{"submorphs":[],"scripts":[],"id":"2DDFF527-AE15-4EA6-B4D6-6696C2A21A21","shape":{"__isSmartRef__":true,"id":1110},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1111},"textChunks":[{"__isSmartRef__":true,"id":1127}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1129},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":953},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":1130}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":1132},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"1110":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(191.3,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1111":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1112},{"__isSmartRef__":true,"id":1114},{"__isSmartRef__":true,"id":1116},{"__isSmartRef__":true,"id":1118},{"__isSmartRef__":true,"id":1120},{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1124}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":1126},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1112":{"date":{"__isSmartRef__":true,"id":1113},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1113":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"1114":{"date":{"__isSmartRef__":true,"id":1115},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1115":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"1116":{"date":{"__isSmartRef__":true,"id":1117},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1117":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"1118":{"date":{"__isSmartRef__":true,"id":1119},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1119":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"1120":{"date":{"__isSmartRef__":true,"id":1121},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1121":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"1122":{"date":{"__isSmartRef__":true,"id":1123},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1123":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"1124":{"date":{"__isSmartRef__":true,"id":1125},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1125":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"1126":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"1127":{"style":{"__isSmartRef__":true,"id":1128},"chunkOwner":{"__isSmartRef__":true,"id":1109},"_id":"_11193","storedString":"Gas: 36000 [kWs]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1128":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1129":{"morph":{"__isSmartRef__":true,"id":1109},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1130":{"sourceObj":{"__isSmartRef__":true,"id":1109},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":953},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":1131},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1131":{"source":{"__isSmartRef__":true,"id":1109},"target":{"__isSmartRef__":true,"id":953}},"1132":{"resizeWidth":true},"1133":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(219.6,162.7)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"1134":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":1135},{"__isSmartRef__":true,"id":1137},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1141},{"__isSmartRef__":true,"id":1143},{"__isSmartRef__":true,"id":1145},{"__isSmartRef__":true,"id":1147},{"__isSmartRef__":true,"id":1149},{"__isSmartRef__":true,"id":1151},{"__isSmartRef__":true,"id":1153},{"__isSmartRef__":true,"id":1155},{"__isSmartRef__":true,"id":1157},{"__isSmartRef__":true,"id":1159},{"__isSmartRef__":true,"id":1161},{"__isSmartRef__":true,"id":1163},{"__isSmartRef__":true,"id":1165},{"__isSmartRef__":true,"id":1167},{"__isSmartRef__":true,"id":1169},{"__isSmartRef__":true,"id":1171},{"__isSmartRef__":true,"id":1173},{"__isSmartRef__":true,"id":1175},{"__isSmartRef__":true,"id":1177},{"__isSmartRef__":true,"id":1179},{"__isSmartRef__":true,"id":1181},{"__isSmartRef__":true,"id":1183},{"__isSmartRef__":true,"id":1185},{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1189},{"__isSmartRef__":true,"id":1191}],"lastModifiedDate":{"__isSmartRef__":true,"id":1193},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1135":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":1136}},"1136":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"1137":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":1138}},"1138":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"1139":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":1140}},"1140":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"1141":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":1142}},"1142":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"1143":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":1144}},"1144":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"1145":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":1146}},"1146":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"1147":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":1148}},"1148":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"1149":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":1150}},"1150":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"1151":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":1152}},"1152":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"1153":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":1154}},"1154":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"1155":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":1156}},"1156":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"1157":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":1158}},"1158":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"1159":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":1160}},"1160":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"1161":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":1162}},"1162":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"1163":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":1164}},"1164":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"1165":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":1166}},"1166":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"1167":{"date":{"__isSmartRef__":true,"id":1168},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"1168":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:02:28 GMT-0800 (PST)"},"1169":{"date":{"__isSmartRef__":true,"id":1170},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"1170":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:10:08 GMT-0800 (PST)"},"1171":{"date":{"__isSmartRef__":true,"id":1172},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"1172":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:24:55 GMT-0800 (PST)"},"1173":{"date":{"__isSmartRef__":true,"id":1174},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"1174":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:29:33 GMT-0800 (PST)"},"1175":{"date":{"__isSmartRef__":true,"id":1176},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"1176":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:07:26 GMT-0800 (PST)"},"1177":{"date":{"__isSmartRef__":true,"id":1178},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"1178":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:23:13 GMT-0800 (PST)"},"1179":{"date":{"__isSmartRef__":true,"id":1180},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"1180":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:58:48 GMT-0800 (PST)"},"1181":{"date":{"__isSmartRef__":true,"id":1182},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"1182":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:59:27 GMT-0800 (PST)"},"1183":{"date":{"__isSmartRef__":true,"id":1184},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"1184":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:03:44 GMT-0800 (PST)"},"1185":{"date":{"__isSmartRef__":true,"id":1186},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"1186":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:24:12 GMT-0800 (PST)"},"1187":{"date":{"__isSmartRef__":true,"id":1188},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"1188":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:26:15 GMT-0800 (PST)"},"1189":{"date":{"__isSmartRef__":true,"id":1190},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"1190":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:35:38 GMT-0800 (PST)"},"1191":{"date":{"__isSmartRef__":true,"id":1192},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"1192":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:51 GMT-0800 (PST)"},"1193":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:15 GMT-0800 (PST)"},"1194":{"morph":{"__isSmartRef__":true,"id":953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1195":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1196}},"1196":{"test01IsMorph":{"__isSmartRef__":true,"id":1197}},"1197":{"varMapping":{"__isSmartRef__":true,"id":1198},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1198":{"this":{"__isSmartRef__":true,"id":1195}},"1199":{},"1200":{"morph":{"__isSmartRef__":true,"id":953},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"1201":{"morph":{"__isSmartRef__":true,"id":953},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"1202":{"morph":{"__isSmartRef__":true,"id":953},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"1203":{"morph":{"__isSmartRef__":true,"id":953},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"1204":{"morph":{"__isSmartRef__":true,"id":953},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"1205":{"morph":{"__isSmartRef__":true,"id":953},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"1206":{"morph":{"__isSmartRef__":true,"id":953},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"1207":{"morph":{"__isSmartRef__":true,"id":953},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"1208":{"adjustForNewBounds":true},"1209":{"Gas":36000},"1210":{"sourceObj":{"__isSmartRef__":true,"id":953},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":954},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":1211},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1211":{"source":{"__isSmartRef__":true,"id":953},"target":{"__isSmartRef__":true,"id":954}},"1212":{"Gas":"kWs"},"1213":{"referencedBy":{"__isSmartRef__":true,"id":1214},"references":{"__isSmartRef__":true,"id":1215}},"1214":{},"1215":{},"1216":{"migrateFrom":{"__isSmartRef__":true,"id":1217},"parsePropeties":{"__isSmartRef__":true,"id":1221},"printProperties":{"__isSmartRef__":true,"id":1225},"parseSimulationSource":{"__isSmartRef__":true,"id":1229},"simulateStep":{"__isSmartRef__":true,"id":1233},"showError":{"__isSmartRef__":true,"id":1236},"throwSimulationProblem":{"__isSmartRef__":true,"id":1240},"updateUI":{"__isSmartRef__":true,"id":1244},"resetStatus":{"__isSmartRef__":true,"id":1248},"simulateOneStep":{"__isSmartRef__":true,"id":1252},"reset":{"__isSmartRef__":true,"id":1256},"resetScriptAnalysis":{"__isSmartRef__":true,"id":1260},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":1264},"logReference":{"__isSmartRef__":true,"id":1268},"showScriptAnalysis":{"__isSmartRef__":true,"id":1272},"showReferenceTo":{"__isSmartRef__":true,"id":1276},"resetSourceHighlighting":{"__isSmartRef__":true,"id":1280},"showNameReference":{"__isSmartRef__":true,"id":1284}},"1217":{"varMapping":{"__isSmartRef__":true,"id":1218},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":1219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1218":{"this":{"__isSmartRef__":true,"id":953}},"1219":{"timestamp":{"__isSmartRef__":true,"id":1220},"user":"jenslincke","tags":[]},"1220":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:59 GMT-0800 (PST)"},"1221":{"varMapping":{"__isSmartRef__":true,"id":1222},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":1223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1222":{"this":{"__isSmartRef__":true,"id":953}},"1223":{"timestamp":{"__isSmartRef__":true,"id":1224},"user":"jenslincke","tags":[]},"1224":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:03 GMT-0800 (PST)"},"1225":{"varMapping":{"__isSmartRef__":true,"id":1226},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":1227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1226":{"this":{"__isSmartRef__":true,"id":953}},"1227":{"timestamp":{"__isSmartRef__":true,"id":1228},"user":"jenslincke","tags":[]},"1228":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:34:48 GMT-0800 (PST)"},"1229":{"varMapping":{"__isSmartRef__":true,"id":1230},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":1231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1230":{"this":{"__isSmartRef__":true,"id":953}},"1231":{"timestamp":{"__isSmartRef__":true,"id":1232},"user":"jenslincke","tags":[]},"1232":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:12:57 GMT-0800 (PST)"},"1233":{"varMapping":{"__isSmartRef__":true,"id":1234},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nif ($.Gas < 0) {\n problem(\"GasEmpty\")\n}\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":1235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1234":{"this":{"__isSmartRef__":true,"id":953}},"1235":{},"1236":{"varMapping":{"__isSmartRef__":true,"id":1237},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1237":{"this":{"__isSmartRef__":true,"id":953}},"1238":{"timestamp":{"__isSmartRef__":true,"id":1239},"user":"jenslincke","tags":[]},"1239":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:11:23 GMT-0800 (PST)"},"1240":{"varMapping":{"__isSmartRef__":true,"id":1241},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":1242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1241":{"this":{"__isSmartRef__":true,"id":953}},"1242":{"timestamp":{"__isSmartRef__":true,"id":1243},"user":"jenslincke","tags":[]},"1243":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:32:56 GMT-0800 (PST)"},"1244":{"varMapping":{"__isSmartRef__":true,"id":1245},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":1246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1245":{"this":{"__isSmartRef__":true,"id":953}},"1246":{"timestamp":{"__isSmartRef__":true,"id":1247},"user":"jenslincke","tags":[]},"1247":{"isSerializedDate":true,"string":"Sun Jan 26 2014 06:22:09 GMT-0800 (PST)"},"1248":{"varMapping":{"__isSmartRef__":true,"id":1249},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":1250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1249":{"this":{"__isSmartRef__":true,"id":953}},"1250":{"timestamp":{"__isSmartRef__":true,"id":1251},"user":"jenslincke","tags":[]},"1251":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:54:04 GMT-0800 (PST)"},"1252":{"varMapping":{"__isSmartRef__":true,"id":1253},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1253":{"this":{"__isSmartRef__":true,"id":953}},"1254":{"timestamp":{"__isSmartRef__":true,"id":1255},"user":"jenslincke","tags":[]},"1255":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:58 GMT-0800 (PST)"},"1256":{"varMapping":{"__isSmartRef__":true,"id":1257},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":1258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1257":{"this":{"__isSmartRef__":true,"id":953}},"1258":{"timestamp":{"__isSmartRef__":true,"id":1259},"user":"jenslincke","tags":[]},"1259":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:35:44 GMT-0800 (PST)"},"1260":{"varMapping":{"__isSmartRef__":true,"id":1261},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":1262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1261":{"this":{"__isSmartRef__":true,"id":953}},"1262":{"timestamp":{"__isSmartRef__":true,"id":1263},"user":"jenslincke","tags":[]},"1263":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:36:12 GMT-0800 (PST)"},"1264":{"varMapping":{"__isSmartRef__":true,"id":1265},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":1266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1265":{"this":{"__isSmartRef__":true,"id":953}},"1266":{"timestamp":{"__isSmartRef__":true,"id":1267},"user":"jenslincke","tags":[]},"1267":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:09 GMT-0800 (PST)"},"1268":{"varMapping":{"__isSmartRef__":true,"id":1269},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":1270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1269":{"this":{"__isSmartRef__":true,"id":953}},"1270":{"timestamp":{"__isSmartRef__":true,"id":1271},"user":"jenslincke","tags":[]},"1271":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:15 GMT-0800 (PST)"},"1272":{"varMapping":{"__isSmartRef__":true,"id":1273},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":1274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1273":{"this":{"__isSmartRef__":true,"id":953}},"1274":{"timestamp":{"__isSmartRef__":true,"id":1275},"user":"jenslincke","tags":[]},"1275":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:26 GMT-0800 (PST)"},"1276":{"varMapping":{"__isSmartRef__":true,"id":1277},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1277":{"this":{"__isSmartRef__":true,"id":953}},"1278":{"timestamp":{"__isSmartRef__":true,"id":1279},"user":"jenslincke","tags":[]},"1279":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:25 GMT-0800 (PST)"},"1280":{"varMapping":{"__isSmartRef__":true,"id":1281},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":1282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1281":{"this":{"__isSmartRef__":true,"id":953}},"1282":{"timestamp":{"__isSmartRef__":true,"id":1283},"user":"jenslincke","tags":[]},"1283":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:53:47 GMT-0800 (PST)"},"1284":{"varMapping":{"__isSmartRef__":true,"id":1285},"source":"function showNameReference(name) {\n\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n this.lastNameReference = name;\n\n var morph = this.get(name)\n if (morph) {\n morph.show().invoke(\"setBorderColor\", Color.yellow)\n morph.showScriptAnalysis()\n }\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":1286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1285":{"this":{"__isSmartRef__":true,"id":953}},"1286":{"timestamp":{"__isSmartRef__":true,"id":1287},"user":"jenslincke","tags":[]},"1287":{"isSerializedDate":true,"string":"Thu Jan 30 2014 02:13:25 GMT-0800 (PST)"},"1288":{"submorphs":[{"__isSmartRef__":true,"id":1289},{"__isSmartRef__":true,"id":1313},{"__isSmartRef__":true,"id":1478},{"__isSmartRef__":true,"id":1500}],"scripts":[],"id":"C17BC36A-2052-4D78-861A-4433B5322C93","shape":{"__isSmartRef__":true,"id":1524},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1525},"eventHandler":{"__isSmartRef__":true,"id":1585},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":1586},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":1591},{"__isSmartRef__":true,"id":1592},{"__isSmartRef__":true,"id":1593},{"__isSmartRef__":true,"id":1594},{"__isSmartRef__":true,"id":1595},{"__isSmartRef__":true,"id":1596},{"__isSmartRef__":true,"id":1597},{"__isSmartRef__":true,"id":1598}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":1599},"$":{"__isSmartRef__":true,"id":1600},"name":"HeatConsumer","attributeConnections":[{"__isSmartRef__":true,"id":1601}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":1603},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":1604},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":952},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1607},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(1391.7,23.4)"},"1289":{"submorphs":[],"scripts":[],"id":"028257A2-46D8-488C-B785-18F6100942A2","shape":{"__isSmartRef__":true,"id":1290},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":1291},"textChunks":[{"__isSmartRef__":true,"id":1293}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1295},{"__isSmartRef__":true,"id":1296}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":1297},"owner":{"__isSmartRef__":true,"id":1288},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":1288},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1298},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"1290":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1291":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":1292},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1292":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"1293":{"style":{"__isSmartRef__":true,"id":1294},"chunkOwner":{"__isSmartRef__":true,"id":1289},"_id":"_5517","storedString":"HeatConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1294":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1295":{"sourceObj":{"__isSmartRef__":true,"id":1289},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1289},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1296":{"sourceObj":{"__isSmartRef__":true,"id":1289},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1289},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1297":{"morph":{"__isSmartRef__":true,"id":1289},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1298":{"updateLabel":{"__isSmartRef__":true,"id":1299},"renameOwner":{"__isSmartRef__":true,"id":1302},"onFocus":{"__isSmartRef__":true,"id":1305}},"1299":{"varMapping":{"__isSmartRef__":true,"id":1300},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1300":{"this":{"__isSmartRef__":true,"id":1289}},"1301":{},"1302":{"varMapping":{"__isSmartRef__":true,"id":1303},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1303":{"this":{"__isSmartRef__":true,"id":1289}},"1304":{},"1305":{"varMapping":{"__isSmartRef__":true,"id":1306},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":1311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1306":{"this":{"__isSmartRef__":true,"id":1289},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1307}},"1307":{"$super":{"__isSmartRef__":true,"id":1308}},"1308":{"varMapping":{"__isSmartRef__":true,"id":1309},"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":1310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1309":{"obj":{"__isSmartRef__":true,"id":1289},"name":"onFocus"},"1310":{},"1311":{"timestamp":{"__isSmartRef__":true,"id":1312},"user":"jenslincke","tags":[]},"1312":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:45:12 GMT-0800 (PST)"},"1313":{"submorphs":[],"scripts":[],"id":"7FD2ACC3-C78D-4023-9A4A-16E4430F60BA","shape":{"__isSmartRef__":true,"id":1314},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1315},"textChunks":[{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1333},{"__isSmartRef__":true,"id":1335},{"__isSmartRef__":true,"id":1337},{"__isSmartRef__":true,"id":1339},{"__isSmartRef__":true,"id":1341},{"__isSmartRef__":true,"id":1343},{"__isSmartRef__":true,"id":1345},{"__isSmartRef__":true,"id":1347},{"__isSmartRef__":true,"id":1349},{"__isSmartRef__":true,"id":1352},{"__isSmartRef__":true,"id":1354},{"__isSmartRef__":true,"id":1356},{"__isSmartRef__":true,"id":1358},{"__isSmartRef__":true,"id":1360},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1364},{"__isSmartRef__":true,"id":1367},{"__isSmartRef__":true,"id":1369},{"__isSmartRef__":true,"id":1371},{"__isSmartRef__":true,"id":1373},{"__isSmartRef__":true,"id":1375},{"__isSmartRef__":true,"id":1377},{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1381},{"__isSmartRef__":true,"id":1383},{"__isSmartRef__":true,"id":1385},{"__isSmartRef__":true,"id":1387},{"__isSmartRef__":true,"id":1389},{"__isSmartRef__":true,"id":1391},{"__isSmartRef__":true,"id":1393},{"__isSmartRef__":true,"id":1395},{"__isSmartRef__":true,"id":1397},{"__isSmartRef__":true,"id":1399},{"__isSmartRef__":true,"id":1401},{"__isSmartRef__":true,"id":1403},{"__isSmartRef__":true,"id":1405},{"__isSmartRef__":true,"id":1407},{"__isSmartRef__":true,"id":1409},{"__isSmartRef__":true,"id":1411},{"__isSmartRef__":true,"id":1413}],"charsReplaced":"#","lastFindLoc":209,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1415},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":1416},{"__isSmartRef__":true,"id":1417},{"__isSmartRef__":true,"id":1418},{"__isSmartRef__":true,"id":1419},{"__isSmartRef__":true,"id":1420},{"__isSmartRef__":true,"id":1421},{"__isSmartRef__":true,"id":1422},{"__isSmartRef__":true,"id":1423}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":1424},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":1288},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","attributeConnections":[{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1427}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":74,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[190,190],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"var delta = $.Demand * dt\nif (#HeatStorage.$.Energy > delta) {\n #HeatStorage.$.Energy -= delta\n $.Consumed += delta\n // TODO consume Extra\n} else {\n $.Extra += delta\n problem(\"RoomToCold\")\n}\n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1429},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"1314":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__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(396.1,187.2)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1315":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1316},{"__isSmartRef__":true,"id":1318},{"__isSmartRef__":true,"id":1320},{"__isSmartRef__":true,"id":1322},{"__isSmartRef__":true,"id":1324},{"__isSmartRef__":true,"id":1326},{"__isSmartRef__":true,"id":1328}],"lastModifiedDate":{"__isSmartRef__":true,"id":1330},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1316":{"date":{"__isSmartRef__":true,"id":1317},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1317":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"1318":{"date":{"__isSmartRef__":true,"id":1319},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1319":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"1320":{"date":{"__isSmartRef__":true,"id":1321},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1321":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"1322":{"date":{"__isSmartRef__":true,"id":1323},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1323":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"1324":{"date":{"__isSmartRef__":true,"id":1325},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1325":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"1326":{"date":{"__isSmartRef__":true,"id":1327},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1327":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"1328":{"date":{"__isSmartRef__":true,"id":1329},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1329":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"1330":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"1331":{"style":{"__isSmartRef__":true,"id":1332},"chunkOwner":{"__isSmartRef__":true,"id":1313},"_id":"_13","storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1332":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1333":{"_id":"_38","style":{"__isSmartRef__":true,"id":1334},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" delta =","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1334":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1335":{"_id":"_77","style":{"__isSmartRef__":true,"id":1336},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1336":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1337":{"_id":"_78","style":{"__isSmartRef__":true,"id":1338},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"Demand","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1338":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1339":{"_id":"_76","style":{"__isSmartRef__":true,"id":1340},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1340":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1341":{"_id":"_85","style":{"__isSmartRef__":true,"id":1342},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1342":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"1343":{"_id":"_39","style":{"__isSmartRef__":true,"id":1344},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1344":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1345":{"_id":"_40","style":{"__isSmartRef__":true,"id":1346},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1346":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1347":{"_id":"_66","style":{"__isSmartRef__":true,"id":1348},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1348":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1349":{"_id":"_68","style":{"__isSmartRef__":true,"id":1350},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1350":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1351},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1351":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":1288}},"1352":{"_id":"_67","style":{"__isSmartRef__":true,"id":1353},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1353":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1354":{"_id":"_69","style":{"__isSmartRef__":true,"id":1355},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1355":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1356":{"_id":"_70","style":{"__isSmartRef__":true,"id":1357},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" > delta) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1357":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1358":{"_id":"_41","style":{"__isSmartRef__":true,"id":1359},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1359":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1360":{"_id":"_42","style":{"__isSmartRef__":true,"id":1361},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1361":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1362":{"_id":"_71","style":{"__isSmartRef__":true,"id":1363},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1363":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1364":{"_id":"_73","style":{"__isSmartRef__":true,"id":1365},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1365":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1366},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1366":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":1288}},"1367":{"_id":"_72","style":{"__isSmartRef__":true,"id":1368},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1368":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1369":{"_id":"_74","style":{"__isSmartRef__":true,"id":1370},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1370":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1371":{"_id":"_75","style":{"__isSmartRef__":true,"id":1372},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" -= delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1372":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1373":{"_id":"_80","style":{"__isSmartRef__":true,"id":1374},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1374":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1375":{"_id":"_81","style":{"__isSmartRef__":true,"id":1376},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"Consumed","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1376":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1377":{"_id":"_79","style":{"__isSmartRef__":true,"id":1378},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" += delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1378":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1379":{"_id":"_43","style":{"__isSmartRef__":true,"id":1380},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1380":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"1381":{"_id":"_44","style":{"__isSmartRef__":true,"id":1382},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" TODO consume Extra","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1382":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1383":{"_id":"_45","style":{"__isSmartRef__":true,"id":1384},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1384":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1385":{"_id":"_46","style":{"__isSmartRef__":true,"id":1386},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1386":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1387":{"_id":"_47","style":{"__isSmartRef__":true,"id":1388},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1388":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1389":{"_id":"_48","style":{"__isSmartRef__":true,"id":1390},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1390":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1391":{"_id":"_49","style":{"__isSmartRef__":true,"id":1392},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1392":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1393":{"_id":"_50","style":{"__isSmartRef__":true,"id":1394},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1394":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1395":{"_id":"_51","style":{"__isSmartRef__":true,"id":1396},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1396":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1397":{"_id":"_83","style":{"__isSmartRef__":true,"id":1398},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1398":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1399":{"_id":"_84","style":{"__isSmartRef__":true,"id":1400},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"Extra","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1400":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1401":{"_id":"_82","style":{"__isSmartRef__":true,"id":1402},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":" += delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1402":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1403":{"_id":"_64","style":{"__isSmartRef__":true,"id":1404},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"problem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1404":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"1405":{"_id":"_65","style":{"__isSmartRef__":true,"id":1406},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1406":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1407":{"_id":"_52","style":{"__isSmartRef__":true,"id":1408},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"\"RoomToCold\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1408":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,128)"},"1409":{"_id":"_53","style":{"__isSmartRef__":true,"id":1410},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1410":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1411":{"_id":"_54","style":{"__isSmartRef__":true,"id":1412},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1412":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1413":{"_id":"_55","style":{"__isSmartRef__":true,"id":1414},"chunkOwner":{"__isSmartRef__":true,"id":1313},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1414":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1415":{"morph":{"__isSmartRef__":true,"id":1313},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1416":{"morph":{"__isSmartRef__":true,"id":1313},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"1417":{"morph":{"__isSmartRef__":true,"id":1313},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"1418":{"morph":{"__isSmartRef__":true,"id":1313},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"1419":{"morph":{"__isSmartRef__":true,"id":1313},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"1420":{"morph":{"__isSmartRef__":true,"id":1313},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"1421":{"morph":{"__isSmartRef__":true,"id":1313},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"1422":{"morph":{"__isSmartRef__":true,"id":1313},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"1423":{"morph":{"__isSmartRef__":true,"id":1313},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"1424":{"resizeWidth":true,"resizeHeight":true},"1425":{"sourceObj":{"__isSmartRef__":true,"id":1313},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1288},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":1426},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1426":{"source":{"__isSmartRef__":true,"id":1313},"target":{"__isSmartRef__":true,"id":1288}},"1427":{"sourceObj":{"__isSmartRef__":true,"id":1313},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":1313},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":1428},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1428":{"source":{"__isSmartRef__":true,"id":1313},"target":{"__isSmartRef__":true,"id":1313}},"1429":{"boundEval":{"__isSmartRef__":true,"id":1430},"getDoitContext":{"__isSmartRef__":true,"id":1438},"installLayers":{"__isSmartRef__":true,"id":1446},"onLoad":{"__isSmartRef__":true,"id":1450},"highligtScriptNames":{"__isSmartRef__":true,"id":1454},"getAutoCompletion":{"__isSmartRef__":true,"id":1458},"reset":{"__isSmartRef__":true,"id":1466},"getLastWordRange":{"__isSmartRef__":true,"id":1470}},"1430":{"varMapping":{"__isSmartRef__":true,"id":1431},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1431":{"this":{"__isSmartRef__":true,"id":1313},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1432}},"1432":{"$super":{"__isSmartRef__":true,"id":1433}},"1433":{"varMapping":{"__isSmartRef__":true,"id":1434},"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":1435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1434":{"obj":{"__isSmartRef__":true,"id":1313},"name":"boundEval"},"1435":{},"1436":{"timestamp":{"__isSmartRef__":true,"id":1437},"user":"jenslincke","tags":[]},"1437":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:28:47 GMT-0800 (PST)"},"1438":{"varMapping":{"__isSmartRef__":true,"id":1439},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1439":{"this":{"__isSmartRef__":true,"id":1313},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1440}},"1440":{"$super":{"__isSmartRef__":true,"id":1441}},"1441":{"varMapping":{"__isSmartRef__":true,"id":1442},"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":1443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1442":{"obj":{"__isSmartRef__":true,"id":1313},"name":"getDoitContext"},"1443":{},"1444":{"timestamp":{"__isSmartRef__":true,"id":1445},"user":"jenslincke","tags":[]},"1445":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:42:09 GMT-0800 (PST)"},"1446":{"varMapping":{"__isSmartRef__":true,"id":1447},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":1448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1447":{"this":{"__isSmartRef__":true,"id":1313}},"1448":{"timestamp":{"__isSmartRef__":true,"id":1449},"user":"jenslincke","tags":[]},"1449":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:44 GMT-0800 (PST)"},"1450":{"varMapping":{"__isSmartRef__":true,"id":1451},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":1452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1451":{"this":{"__isSmartRef__":true,"id":1313}},"1452":{"timestamp":{"__isSmartRef__":true,"id":1453},"user":"jenslincke","tags":[]},"1453":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:45 GMT-0800 (PST)"},"1454":{"varMapping":{"__isSmartRef__":true,"id":1455},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":1456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1455":{"this":{"__isSmartRef__":true,"id":1313}},"1456":{"timestamp":{"__isSmartRef__":true,"id":1457},"user":"jenslincke","tags":[]},"1457":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:25:07 GMT-0800 (PST)"},"1458":{"varMapping":{"__isSmartRef__":true,"id":1459},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":1464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1459":{"this":{"__isSmartRef__":true,"id":1313},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1460}},"1460":{"$super":{"__isSmartRef__":true,"id":1461}},"1461":{"varMapping":{"__isSmartRef__":true,"id":1462},"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":1463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1462":{"obj":{"__isSmartRef__":true,"id":1313},"name":"getAutoCompletion"},"1463":{},"1464":{"timestamp":{"__isSmartRef__":true,"id":1465},"user":"jenslincke","tags":[]},"1465":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:33:17 GMT-0800 (PST)"},"1466":{"varMapping":{"__isSmartRef__":true,"id":1467},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":1468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1467":{"this":{"__isSmartRef__":true,"id":1313}},"1468":{"timestamp":{"__isSmartRef__":true,"id":1469},"user":"jenslincke","tags":[]},"1469":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:58:01 GMT-0800 (PST)"},"1470":{"varMapping":{"__isSmartRef__":true,"id":1471},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1471":{"this":{"__isSmartRef__":true,"id":1313},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1472}},"1472":{"$super":{"__isSmartRef__":true,"id":1473}},"1473":{"varMapping":{"__isSmartRef__":true,"id":1474},"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":1475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1474":{"obj":{"__isSmartRef__":true,"id":1313},"name":"getLastWordRange"},"1475":{},"1476":{"timestamp":{"__isSmartRef__":true,"id":1477},"user":"jenslincke","tags":[]},"1477":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:59:58 GMT-0800 (PST)"},"1478":{"submorphs":[],"scripts":[],"id":"758E8FEB-F86A-4F5F-8EE1-4A44688757F1","shape":{"__isSmartRef__":true,"id":1479},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":1480},"textChunks":[{"__isSmartRef__":true,"id":1496}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1498},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1288},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":1499},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,272.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"1479":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(388.2,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1480":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__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}],"lastModifiedDate":{"__isSmartRef__":true,"id":1495},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1481":{"date":{"__isSmartRef__":true,"id":1482},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1482":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"1483":{"date":{"__isSmartRef__":true,"id":1484},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1484":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"1485":{"date":{"__isSmartRef__":true,"id":1486},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1486":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"1487":{"date":{"__isSmartRef__":true,"id":1488},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1488":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"1489":{"date":{"__isSmartRef__":true,"id":1490},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1490":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"1491":{"date":{"__isSmartRef__":true,"id":1492},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1492":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"1493":{"date":{"__isSmartRef__":true,"id":1494},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1494":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"1495":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"1496":{"style":{"__isSmartRef__":true,"id":1497},"chunkOwner":{"__isSmartRef__":true,"id":1478},"_id":"_11214","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1497":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1498":{"morph":{"__isSmartRef__":true,"id":1478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1499":{"moveVertical":true,"resizeWidth":true},"1500":{"submorphs":[],"scripts":[],"id":"D18C793C-5EBA-4D3A-8CE5-7FD0749B6B5E","shape":{"__isSmartRef__":true,"id":1501},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1502},"textChunks":[{"__isSmartRef__":true,"id":1518}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1520},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1288},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":1521}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":1523},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"1501":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(381.7,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1502":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__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}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":1517},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1503":{"date":{"__isSmartRef__":true,"id":1504},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1504":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"1505":{"date":{"__isSmartRef__":true,"id":1506},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1506":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"1507":{"date":{"__isSmartRef__":true,"id":1508},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1508":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"1509":{"date":{"__isSmartRef__":true,"id":1510},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1510":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"1511":{"date":{"__isSmartRef__":true,"id":1512},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1512":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"1513":{"date":{"__isSmartRef__":true,"id":1514},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1514":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"1515":{"date":{"__isSmartRef__":true,"id":1516},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1516":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"1517":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"1518":{"style":{"__isSmartRef__":true,"id":1519},"chunkOwner":{"__isSmartRef__":true,"id":1500},"_id":"_11194","storedString":"Consumed: 0 [kWs]\nExtra: 0 [kWs]\nDemand: 3 [kW]\nStopped: false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1519":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1520":{"morph":{"__isSmartRef__":true,"id":1500},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1521":{"sourceObj":{"__isSmartRef__":true,"id":1500},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1288},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":1522},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1522":{"source":{"__isSmartRef__":true,"id":1500},"target":{"__isSmartRef__":true,"id":1288}},"1523":{"resizeWidth":true},"1524":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(410.0,290.0)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"1525":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":1526},{"__isSmartRef__":true,"id":1528},{"__isSmartRef__":true,"id":1530},{"__isSmartRef__":true,"id":1532},{"__isSmartRef__":true,"id":1534},{"__isSmartRef__":true,"id":1536},{"__isSmartRef__":true,"id":1538},{"__isSmartRef__":true,"id":1540},{"__isSmartRef__":true,"id":1542},{"__isSmartRef__":true,"id":1544},{"__isSmartRef__":true,"id":1546},{"__isSmartRef__":true,"id":1548},{"__isSmartRef__":true,"id":1550},{"__isSmartRef__":true,"id":1552},{"__isSmartRef__":true,"id":1554},{"__isSmartRef__":true,"id":1556},{"__isSmartRef__":true,"id":1558},{"__isSmartRef__":true,"id":1560},{"__isSmartRef__":true,"id":1562},{"__isSmartRef__":true,"id":1564},{"__isSmartRef__":true,"id":1566},{"__isSmartRef__":true,"id":1568},{"__isSmartRef__":true,"id":1570},{"__isSmartRef__":true,"id":1572},{"__isSmartRef__":true,"id":1574},{"__isSmartRef__":true,"id":1576},{"__isSmartRef__":true,"id":1578},{"__isSmartRef__":true,"id":1580},{"__isSmartRef__":true,"id":1582}],"lastModifiedDate":{"__isSmartRef__":true,"id":1584},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1526":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":1527}},"1527":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"1528":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":1529}},"1529":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"1530":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":1531}},"1531":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"1532":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":1533}},"1533":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"1534":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":1535}},"1535":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"1536":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":1537}},"1537":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"1538":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":1539}},"1539":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"1540":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":1541}},"1541":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"1542":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":1543}},"1543":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"1544":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":1545}},"1545":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"1546":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":1547}},"1547":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"1548":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":1549}},"1549":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"1550":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":1551}},"1551":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"1552":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":1553}},"1553":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"1554":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":1555}},"1555":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"1556":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":1557}},"1557":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"1558":{"date":{"__isSmartRef__":true,"id":1559},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"1559":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:02:28 GMT-0800 (PST)"},"1560":{"date":{"__isSmartRef__":true,"id":1561},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"1561":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:10:08 GMT-0800 (PST)"},"1562":{"date":{"__isSmartRef__":true,"id":1563},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"1563":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:24:55 GMT-0800 (PST)"},"1564":{"date":{"__isSmartRef__":true,"id":1565},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"1565":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:29:33 GMT-0800 (PST)"},"1566":{"date":{"__isSmartRef__":true,"id":1567},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"1567":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:07:26 GMT-0800 (PST)"},"1568":{"date":{"__isSmartRef__":true,"id":1569},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"1569":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:23:13 GMT-0800 (PST)"},"1570":{"date":{"__isSmartRef__":true,"id":1571},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"1571":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:58:48 GMT-0800 (PST)"},"1572":{"date":{"__isSmartRef__":true,"id":1573},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"1573":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:59:27 GMT-0800 (PST)"},"1574":{"date":{"__isSmartRef__":true,"id":1575},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"1575":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:03:44 GMT-0800 (PST)"},"1576":{"date":{"__isSmartRef__":true,"id":1577},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"1577":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:24:12 GMT-0800 (PST)"},"1578":{"date":{"__isSmartRef__":true,"id":1579},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"1579":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:26:15 GMT-0800 (PST)"},"1580":{"date":{"__isSmartRef__":true,"id":1581},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"1581":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:35:38 GMT-0800 (PST)"},"1582":{"date":{"__isSmartRef__":true,"id":1583},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"1583":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:51 GMT-0800 (PST)"},"1584":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:15 GMT-0800 (PST)"},"1585":{"morph":{"__isSmartRef__":true,"id":1288},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1586":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1587}},"1587":{"test01IsMorph":{"__isSmartRef__":true,"id":1588}},"1588":{"varMapping":{"__isSmartRef__":true,"id":1589},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1589":{"this":{"__isSmartRef__":true,"id":1586}},"1590":{},"1591":{"morph":{"__isSmartRef__":true,"id":1288},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"1592":{"morph":{"__isSmartRef__":true,"id":1288},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"1593":{"morph":{"__isSmartRef__":true,"id":1288},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"1594":{"morph":{"__isSmartRef__":true,"id":1288},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"1595":{"morph":{"__isSmartRef__":true,"id":1288},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"1596":{"morph":{"__isSmartRef__":true,"id":1288},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"1597":{"morph":{"__isSmartRef__":true,"id":1288},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"1598":{"morph":{"__isSmartRef__":true,"id":1288},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"1599":{"adjustForNewBounds":true},"1600":{"Consumed":0,"Extra":0,"Demand":3,"Stopped":false},"1601":{"sourceObj":{"__isSmartRef__":true,"id":1288},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1289},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":1602},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1602":{"source":{"__isSmartRef__":true,"id":1288},"target":{"__isSmartRef__":true,"id":1289}},"1603":{"Consumed":"kWs","Extra":"kWs","Demand":"kW"},"1604":{"referencedBy":{"__isSmartRef__":true,"id":1605},"references":{"__isSmartRef__":true,"id":1606}},"1605":{},"1606":{},"1607":{"migrateFrom":{"__isSmartRef__":true,"id":1608},"parsePropeties":{"__isSmartRef__":true,"id":1612},"printProperties":{"__isSmartRef__":true,"id":1616},"parseSimulationSource":{"__isSmartRef__":true,"id":1620},"simulateStep":{"__isSmartRef__":true,"id":1624},"showError":{"__isSmartRef__":true,"id":1627},"throwSimulationProblem":{"__isSmartRef__":true,"id":1631},"updateUI":{"__isSmartRef__":true,"id":1635},"resetStatus":{"__isSmartRef__":true,"id":1639},"simulateOneStep":{"__isSmartRef__":true,"id":1643},"reset":{"__isSmartRef__":true,"id":1647},"resetScriptAnalysis":{"__isSmartRef__":true,"id":1651},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":1655},"logReference":{"__isSmartRef__":true,"id":1659},"showScriptAnalysis":{"__isSmartRef__":true,"id":1663},"showReferenceTo":{"__isSmartRef__":true,"id":1667},"resetSourceHighlighting":{"__isSmartRef__":true,"id":1671},"showNameReference":{"__isSmartRef__":true,"id":1675}},"1608":{"varMapping":{"__isSmartRef__":true,"id":1609},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":1610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1609":{"this":{"__isSmartRef__":true,"id":1288}},"1610":{"timestamp":{"__isSmartRef__":true,"id":1611},"user":"jenslincke","tags":[]},"1611":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:59 GMT-0800 (PST)"},"1612":{"varMapping":{"__isSmartRef__":true,"id":1613},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":1614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1613":{"this":{"__isSmartRef__":true,"id":1288}},"1614":{"timestamp":{"__isSmartRef__":true,"id":1615},"user":"jenslincke","tags":[]},"1615":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:03 GMT-0800 (PST)"},"1616":{"varMapping":{"__isSmartRef__":true,"id":1617},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":1618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1617":{"this":{"__isSmartRef__":true,"id":1288}},"1618":{"timestamp":{"__isSmartRef__":true,"id":1619},"user":"jenslincke","tags":[]},"1619":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:34:48 GMT-0800 (PST)"},"1620":{"varMapping":{"__isSmartRef__":true,"id":1621},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":1622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1621":{"this":{"__isSmartRef__":true,"id":1288}},"1622":{"timestamp":{"__isSmartRef__":true,"id":1623},"user":"jenslincke","tags":[]},"1623":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:12:57 GMT-0800 (PST)"},"1624":{"varMapping":{"__isSmartRef__":true,"id":1625},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nvar delta = $.Demand * dt\nif (this.get('HeatStorage').$.Energy > delta) {\n this.get('HeatStorage').$.Energy -= delta\n $.Consumed += delta\n // TODO consume Extra\n} else {\n $.Extra += delta\n problem(\"RoomToCold\")\n}\n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":1626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1625":{"this":{"__isSmartRef__":true,"id":1288}},"1626":{},"1627":{"varMapping":{"__isSmartRef__":true,"id":1628},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1628":{"this":{"__isSmartRef__":true,"id":1288}},"1629":{"timestamp":{"__isSmartRef__":true,"id":1630},"user":"jenslincke","tags":[]},"1630":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:11:23 GMT-0800 (PST)"},"1631":{"varMapping":{"__isSmartRef__":true,"id":1632},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":1633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1632":{"this":{"__isSmartRef__":true,"id":1288}},"1633":{"timestamp":{"__isSmartRef__":true,"id":1634},"user":"jenslincke","tags":[]},"1634":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:32:56 GMT-0800 (PST)"},"1635":{"varMapping":{"__isSmartRef__":true,"id":1636},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":1637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1636":{"this":{"__isSmartRef__":true,"id":1288}},"1637":{"timestamp":{"__isSmartRef__":true,"id":1638},"user":"jenslincke","tags":[]},"1638":{"isSerializedDate":true,"string":"Sun Jan 26 2014 06:22:09 GMT-0800 (PST)"},"1639":{"varMapping":{"__isSmartRef__":true,"id":1640},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":1641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1640":{"this":{"__isSmartRef__":true,"id":1288}},"1641":{"timestamp":{"__isSmartRef__":true,"id":1642},"user":"jenslincke","tags":[]},"1642":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:54:04 GMT-0800 (PST)"},"1643":{"varMapping":{"__isSmartRef__":true,"id":1644},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1644":{"this":{"__isSmartRef__":true,"id":1288}},"1645":{"timestamp":{"__isSmartRef__":true,"id":1646},"user":"jenslincke","tags":[]},"1646":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:58 GMT-0800 (PST)"},"1647":{"varMapping":{"__isSmartRef__":true,"id":1648},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":1649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1648":{"this":{"__isSmartRef__":true,"id":1288}},"1649":{"timestamp":{"__isSmartRef__":true,"id":1650},"user":"jenslincke","tags":[]},"1650":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:35:44 GMT-0800 (PST)"},"1651":{"varMapping":{"__isSmartRef__":true,"id":1652},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":1653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1652":{"this":{"__isSmartRef__":true,"id":1288}},"1653":{"timestamp":{"__isSmartRef__":true,"id":1654},"user":"jenslincke","tags":[]},"1654":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:36:12 GMT-0800 (PST)"},"1655":{"varMapping":{"__isSmartRef__":true,"id":1656},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":1657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1656":{"this":{"__isSmartRef__":true,"id":1288}},"1657":{"timestamp":{"__isSmartRef__":true,"id":1658},"user":"jenslincke","tags":[]},"1658":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:09 GMT-0800 (PST)"},"1659":{"varMapping":{"__isSmartRef__":true,"id":1660},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":1661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1660":{"this":{"__isSmartRef__":true,"id":1288}},"1661":{"timestamp":{"__isSmartRef__":true,"id":1662},"user":"jenslincke","tags":[]},"1662":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:15 GMT-0800 (PST)"},"1663":{"varMapping":{"__isSmartRef__":true,"id":1664},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":1665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1664":{"this":{"__isSmartRef__":true,"id":1288}},"1665":{"timestamp":{"__isSmartRef__":true,"id":1666},"user":"jenslincke","tags":[]},"1666":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:26 GMT-0800 (PST)"},"1667":{"varMapping":{"__isSmartRef__":true,"id":1668},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1668":{"this":{"__isSmartRef__":true,"id":1288}},"1669":{"timestamp":{"__isSmartRef__":true,"id":1670},"user":"jenslincke","tags":[]},"1670":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:25 GMT-0800 (PST)"},"1671":{"varMapping":{"__isSmartRef__":true,"id":1672},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":1673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1672":{"this":{"__isSmartRef__":true,"id":1288}},"1673":{"timestamp":{"__isSmartRef__":true,"id":1674},"user":"jenslincke","tags":[]},"1674":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:53:47 GMT-0800 (PST)"},"1675":{"varMapping":{"__isSmartRef__":true,"id":1676},"source":"function showNameReference(name) {\n\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n this.lastNameReference = name;\n\n var morph = this.get(name)\n if (morph) {\n morph.show().invoke(\"setBorderColor\", Color.yellow)\n morph.showScriptAnalysis()\n }\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":1677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1676":{"this":{"__isSmartRef__":true,"id":1288}},"1677":{"timestamp":{"__isSmartRef__":true,"id":1678},"user":"jenslincke","tags":[]},"1678":{"isSerializedDate":true,"string":"Thu Jan 30 2014 02:13:25 GMT-0800 (PST)"},"1679":{"submorphs":[{"__isSmartRef__":true,"id":1680},{"__isSmartRef__":true,"id":1704},{"__isSmartRef__":true,"id":2043},{"__isSmartRef__":true,"id":2065}],"scripts":[],"id":"55E48E12-6AFB-4713-B559-6D274AE38720","shape":{"__isSmartRef__":true,"id":2089},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2090},"eventHandler":{"__isSmartRef__":true,"id":2150},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":2151},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":2156},{"__isSmartRef__":true,"id":2157},{"__isSmartRef__":true,"id":2158},{"__isSmartRef__":true,"id":2159},{"__isSmartRef__":true,"id":2160},{"__isSmartRef__":true,"id":2161},{"__isSmartRef__":true,"id":2162},{"__isSmartRef__":true,"id":2163}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":2164},"$":{"__isSmartRef__":true,"id":2165},"name":"ThermalPowerStation","attributeConnections":[{"__isSmartRef__":true,"id":2166}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":2168},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":2169},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":952},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2172},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(368.9,-10.3)","_Position":"lively.pt(634.3,380.4)"},"1680":{"submorphs":[],"scripts":[],"id":"97786E64-2B0C-4D1B-8A26-12310AA31A88","shape":{"__isSmartRef__":true,"id":1681},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":1682},"textChunks":[{"__isSmartRef__":true,"id":1684}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1686},{"__isSmartRef__":true,"id":1687}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":1688},"owner":{"__isSmartRef__":true,"id":1679},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":1679},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1689},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"1681":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1682":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":1683},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1683":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"1684":{"style":{"__isSmartRef__":true,"id":1685},"chunkOwner":{"__isSmartRef__":true,"id":1680},"_id":"_5527","storedString":"ThermalPowerStation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1686":{"sourceObj":{"__isSmartRef__":true,"id":1680},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1680},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1687":{"sourceObj":{"__isSmartRef__":true,"id":1680},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1680},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1688":{"morph":{"__isSmartRef__":true,"id":1680},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1689":{"updateLabel":{"__isSmartRef__":true,"id":1690},"renameOwner":{"__isSmartRef__":true,"id":1693},"onFocus":{"__isSmartRef__":true,"id":1696}},"1690":{"varMapping":{"__isSmartRef__":true,"id":1691},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1691":{"this":{"__isSmartRef__":true,"id":1680}},"1692":{},"1693":{"varMapping":{"__isSmartRef__":true,"id":1694},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1694":{"this":{"__isSmartRef__":true,"id":1680}},"1695":{},"1696":{"varMapping":{"__isSmartRef__":true,"id":1697},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":1702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1697":{"this":{"__isSmartRef__":true,"id":1680},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1698}},"1698":{"$super":{"__isSmartRef__":true,"id":1699}},"1699":{"varMapping":{"__isSmartRef__":true,"id":1700},"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":1701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1700":{"obj":{"__isSmartRef__":true,"id":1680},"name":"onFocus"},"1701":{},"1702":{"timestamp":{"__isSmartRef__":true,"id":1703},"user":"jenslincke","tags":[]},"1703":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:45:12 GMT-0800 (PST)"},"1704":{"submorphs":[],"scripts":[],"id":"E83E86A3-24AF-4722-AD2E-E4B86E5F3E11","shape":{"__isSmartRef__":true,"id":1705},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1706},"textChunks":[{"__isSmartRef__":true,"id":1722},{"__isSmartRef__":true,"id":1724},{"__isSmartRef__":true,"id":1726},{"__isSmartRef__":true,"id":1728},{"__isSmartRef__":true,"id":1730},{"__isSmartRef__":true,"id":1732},{"__isSmartRef__":true,"id":1734},{"__isSmartRef__":true,"id":1736},{"__isSmartRef__":true,"id":1738},{"__isSmartRef__":true,"id":1740},{"__isSmartRef__":true,"id":1742},{"__isSmartRef__":true,"id":1744},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1748},{"__isSmartRef__":true,"id":1750},{"__isSmartRef__":true,"id":1753},{"__isSmartRef__":true,"id":1755},{"__isSmartRef__":true,"id":1757},{"__isSmartRef__":true,"id":1759},{"__isSmartRef__":true,"id":1761},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1765},{"__isSmartRef__":true,"id":1767},{"__isSmartRef__":true,"id":1769},{"__isSmartRef__":true,"id":1771},{"__isSmartRef__":true,"id":1774},{"__isSmartRef__":true,"id":1776},{"__isSmartRef__":true,"id":1778},{"__isSmartRef__":true,"id":1780},{"__isSmartRef__":true,"id":1782},{"__isSmartRef__":true,"id":1784},{"__isSmartRef__":true,"id":1786},{"__isSmartRef__":true,"id":1789},{"__isSmartRef__":true,"id":1791},{"__isSmartRef__":true,"id":1793},{"__isSmartRef__":true,"id":1795},{"__isSmartRef__":true,"id":1797},{"__isSmartRef__":true,"id":1799},{"__isSmartRef__":true,"id":1801},{"__isSmartRef__":true,"id":1803},{"__isSmartRef__":true,"id":1805},{"__isSmartRef__":true,"id":1807},{"__isSmartRef__":true,"id":1809},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":1813},{"__isSmartRef__":true,"id":1815},{"__isSmartRef__":true,"id":1818},{"__isSmartRef__":true,"id":1820},{"__isSmartRef__":true,"id":1822},{"__isSmartRef__":true,"id":1824},{"__isSmartRef__":true,"id":1826},{"__isSmartRef__":true,"id":1828},{"__isSmartRef__":true,"id":1830},{"__isSmartRef__":true,"id":1832},{"__isSmartRef__":true,"id":1834},{"__isSmartRef__":true,"id":1836},{"__isSmartRef__":true,"id":1838},{"__isSmartRef__":true,"id":1840},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1844},{"__isSmartRef__":true,"id":1846},{"__isSmartRef__":true,"id":1848},{"__isSmartRef__":true,"id":1850},{"__isSmartRef__":true,"id":1852},{"__isSmartRef__":true,"id":1854},{"__isSmartRef__":true,"id":1856},{"__isSmartRef__":true,"id":1858},{"__isSmartRef__":true,"id":1860},{"__isSmartRef__":true,"id":1862},{"__isSmartRef__":true,"id":1864},{"__isSmartRef__":true,"id":1866},{"__isSmartRef__":true,"id":1868},{"__isSmartRef__":true,"id":1870},{"__isSmartRef__":true,"id":1872},{"__isSmartRef__":true,"id":1874},{"__isSmartRef__":true,"id":1876},{"__isSmartRef__":true,"id":1878},{"__isSmartRef__":true,"id":1880},{"__isSmartRef__":true,"id":1882},{"__isSmartRef__":true,"id":1884},{"__isSmartRef__":true,"id":1886},{"__isSmartRef__":true,"id":1889},{"__isSmartRef__":true,"id":1891},{"__isSmartRef__":true,"id":1893},{"__isSmartRef__":true,"id":1895},{"__isSmartRef__":true,"id":1897},{"__isSmartRef__":true,"id":1900},{"__isSmartRef__":true,"id":1902},{"__isSmartRef__":true,"id":1904},{"__isSmartRef__":true,"id":1906},{"__isSmartRef__":true,"id":1908},{"__isSmartRef__":true,"id":1910},{"__isSmartRef__":true,"id":1912},{"__isSmartRef__":true,"id":1915},{"__isSmartRef__":true,"id":1917},{"__isSmartRef__":true,"id":1919},{"__isSmartRef__":true,"id":1921},{"__isSmartRef__":true,"id":1923},{"__isSmartRef__":true,"id":1925},{"__isSmartRef__":true,"id":1927},{"__isSmartRef__":true,"id":1929},{"__isSmartRef__":true,"id":1931},{"__isSmartRef__":true,"id":1933},{"__isSmartRef__":true,"id":1935},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1940},{"__isSmartRef__":true,"id":1942},{"__isSmartRef__":true,"id":1944},{"__isSmartRef__":true,"id":1946},{"__isSmartRef__":true,"id":1949},{"__isSmartRef__":true,"id":1951},{"__isSmartRef__":true,"id":1953},{"__isSmartRef__":true,"id":1955},{"__isSmartRef__":true,"id":1957},{"__isSmartRef__":true,"id":1959},{"__isSmartRef__":true,"id":1961},{"__isSmartRef__":true,"id":1964},{"__isSmartRef__":true,"id":1966},{"__isSmartRef__":true,"id":1968},{"__isSmartRef__":true,"id":1970},{"__isSmartRef__":true,"id":1972},{"__isSmartRef__":true,"id":1974},{"__isSmartRef__":true,"id":1976},{"__isSmartRef__":true,"id":1978}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1980},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":1981},{"__isSmartRef__":true,"id":1982},{"__isSmartRef__":true,"id":1983},{"__isSmartRef__":true,"id":1984},{"__isSmartRef__":true,"id":1985},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1987},{"__isSmartRef__":true,"id":1988}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":1989},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":1679},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","attributeConnections":[{"__isSmartRef__":true,"id":1990},{"__isSmartRef__":true,"id":1992}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":130,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[301,301],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt\n && (#Battery.$.Energy < 0.9 * #Battery.$.Max )) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += 1.0 * gas\n}\nvar delta = $.Heat / $.Factor * dt\nif ($.Heat > 2) {\n $.Heat -= delta\n if(#HeatStorage.$.Energy < #HeatStorage.$.Max) {\n #HeatStorage.$.Energy += 0.5 * delta\n }\n if (#Battery.$.Energy < #Battery.$.Max ) {\n #Battery.$.Energy += 0.4 * delta\n }\n}","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1994},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"1705":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__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(527.1,279.8)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1706":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1707},{"__isSmartRef__":true,"id":1709},{"__isSmartRef__":true,"id":1711},{"__isSmartRef__":true,"id":1713},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1717},{"__isSmartRef__":true,"id":1719}],"lastModifiedDate":{"__isSmartRef__":true,"id":1721},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1707":{"date":{"__isSmartRef__":true,"id":1708},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1708":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"1709":{"date":{"__isSmartRef__":true,"id":1710},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1710":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"1711":{"date":{"__isSmartRef__":true,"id":1712},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1712":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"1713":{"date":{"__isSmartRef__":true,"id":1714},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1714":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"1715":{"date":{"__isSmartRef__":true,"id":1716},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1716":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"1717":{"date":{"__isSmartRef__":true,"id":1718},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1718":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"1719":{"date":{"__isSmartRef__":true,"id":1720},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1720":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"1721":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"1722":{"style":{"__isSmartRef__":true,"id":1723},"chunkOwner":{"__isSmartRef__":true,"id":1704},"_id":"_14","storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1723":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1724":{"_id":"_86","style":{"__isSmartRef__":true,"id":1725},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" full =","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1725":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1726":{"_id":"_201","style":{"__isSmartRef__":true,"id":1727},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1727":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1728":{"_id":"_202","style":{"__isSmartRef__":true,"id":1729},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1729":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1730":{"_id":"_200","style":{"__isSmartRef__":true,"id":1731},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1731":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1732":{"_id":"_204","style":{"__isSmartRef__":true,"id":1733},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1733":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1734":{"_id":"_205","style":{"__isSmartRef__":true,"id":1735},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Factor","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1735":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1736":{"_id":"_203","style":{"__isSmartRef__":true,"id":1737},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1737":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1738":{"_id":"_87","style":{"__isSmartRef__":true,"id":1739},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1739":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1740":{"_id":"_88","style":{"__isSmartRef__":true,"id":1741},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1741":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1742":{"_id":"_207","style":{"__isSmartRef__":true,"id":1743},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"($.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1743":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1744":{"_id":"_208","style":{"__isSmartRef__":true,"id":1745},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1745":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1746":{"_id":"_206","style":{"__isSmartRef__":true,"id":1747},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" < full && ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1747":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1748":{"_id":"_150","style":{"__isSmartRef__":true,"id":1749},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1749":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1750":{"_id":"_152","style":{"__isSmartRef__":true,"id":1751},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Fuel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1751":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1752},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1752":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Fuel\")","context":{"__isSmartRef__":true,"id":1679}},"1753":{"_id":"_151","style":{"__isSmartRef__":true,"id":1754},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1754":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1755":{"_id":"_153","style":{"__isSmartRef__":true,"id":1756},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1756":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1757":{"_id":"_154","style":{"__isSmartRef__":true,"id":1758},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" >","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1758":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1759":{"_id":"_210","style":{"__isSmartRef__":true,"id":1760},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1760":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1761":{"_id":"_211","style":{"__isSmartRef__":true,"id":1762},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1762":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1763":{"_id":"_209","style":{"__isSmartRef__":true,"id":1764},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1764":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1765":{"_id":"_230","style":{"__isSmartRef__":true,"id":1766},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1766":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"1767":{"_id":"_231","style":{"__isSmartRef__":true,"id":1768},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" && (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1768":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1769":{"_id":"_155","style":{"__isSmartRef__":true,"id":1770},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1770":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1771":{"_id":"_157","style":{"__isSmartRef__":true,"id":1772},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1772":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1773},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1773":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":1679}},"1774":{"_id":"_156","style":{"__isSmartRef__":true,"id":1775},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1775":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1776":{"_id":"_158","style":{"__isSmartRef__":true,"id":1777},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1777":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1778":{"_id":"_159","style":{"__isSmartRef__":true,"id":1779},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1779":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1780":{"_id":"_89","style":{"__isSmartRef__":true,"id":1781},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"0.9","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1781":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1782":{"_id":"_90","style":{"__isSmartRef__":true,"id":1783},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1783":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1784":{"_id":"_160","style":{"__isSmartRef__":true,"id":1785},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1785":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1786":{"_id":"_162","style":{"__isSmartRef__":true,"id":1787},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1787":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1788},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1788":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":1679}},"1789":{"_id":"_161","style":{"__isSmartRef__":true,"id":1790},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1790":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1791":{"_id":"_163","style":{"__isSmartRef__":true,"id":1792},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1792":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1793":{"_id":"_164","style":{"__isSmartRef__":true,"id":1794},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" )) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1794":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1795":{"_id":"_91","style":{"__isSmartRef__":true,"id":1796},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1796":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1797":{"_id":"_92","style":{"__isSmartRef__":true,"id":1798},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1798":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1799":{"_id":"_93","style":{"__isSmartRef__":true,"id":1800},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1800":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1801":{"_id":"_94","style":{"__isSmartRef__":true,"id":1802},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" gas =","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1802":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1803":{"_id":"_213","style":{"__isSmartRef__":true,"id":1804},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1804":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1805":{"_id":"_214","style":{"__isSmartRef__":true,"id":1806},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1806":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1807":{"_id":"_212","style":{"__isSmartRef__":true,"id":1808},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1808":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1809":{"_id":"_232","style":{"__isSmartRef__":true,"id":1810},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1810":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"1811":{"_id":"_233","style":{"__isSmartRef__":true,"id":1812},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1812":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1813":{"_id":"_165","style":{"__isSmartRef__":true,"id":1814},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1814":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1815":{"_id":"_167","style":{"__isSmartRef__":true,"id":1816},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Fuel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1816":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1817},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1817":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Fuel\")","context":{"__isSmartRef__":true,"id":1679}},"1818":{"_id":"_166","style":{"__isSmartRef__":true,"id":1819},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1819":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1820":{"_id":"_168","style":{"__isSmartRef__":true,"id":1821},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1821":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1822":{"_id":"_169","style":{"__isSmartRef__":true,"id":1823},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" -= gas\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1823":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1824":{"_id":"_216","style":{"__isSmartRef__":true,"id":1825},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1825":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1826":{"_id":"_217","style":{"__isSmartRef__":true,"id":1827},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1827":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1828":{"_id":"_215","style":{"__isSmartRef__":true,"id":1829},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" += ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1829":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1830":{"_id":"_95","style":{"__isSmartRef__":true,"id":1831},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"1.0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1831":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1832":{"_id":"_96","style":{"__isSmartRef__":true,"id":1833},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" * gas\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1833":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1834":{"_id":"_97","style":{"__isSmartRef__":true,"id":1835},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1835":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1836":{"_id":"_98","style":{"__isSmartRef__":true,"id":1837},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1837":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1838":{"_id":"_99","style":{"__isSmartRef__":true,"id":1839},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1839":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1840":{"_id":"_100","style":{"__isSmartRef__":true,"id":1841},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" delta =","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1841":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1842":{"_id":"_219","style":{"__isSmartRef__":true,"id":1843},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1843":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1844":{"_id":"_220","style":{"__isSmartRef__":true,"id":1845},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1845":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1846":{"_id":"_218","style":{"__isSmartRef__":true,"id":1847},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" /","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1847":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1848":{"_id":"_222","style":{"__isSmartRef__":true,"id":1849},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1849":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1850":{"_id":"_223","style":{"__isSmartRef__":true,"id":1851},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Factor","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1851":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1852":{"_id":"_221","style":{"__isSmartRef__":true,"id":1853},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1853":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1854":{"_id":"_234","style":{"__isSmartRef__":true,"id":1855},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1855":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"1856":{"_id":"_101","style":{"__isSmartRef__":true,"id":1857},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1857":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1858":{"_id":"_102","style":{"__isSmartRef__":true,"id":1859},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1859":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1860":{"_id":"_225","style":{"__isSmartRef__":true,"id":1861},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"($.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1861":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1862":{"_id":"_226","style":{"__isSmartRef__":true,"id":1863},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1863":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1864":{"_id":"_224","style":{"__isSmartRef__":true,"id":1865},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" > ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1865":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1866":{"_id":"_103","style":{"__isSmartRef__":true,"id":1867},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1867":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1868":{"_id":"_104","style":{"__isSmartRef__":true,"id":1869},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1869":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1870":{"_id":"_105","style":{"__isSmartRef__":true,"id":1871},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1871":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1872":{"_id":"_106","style":{"__isSmartRef__":true,"id":1873},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1873":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1874":{"_id":"_228","style":{"__isSmartRef__":true,"id":1875},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1875":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1876":{"_id":"_229","style":{"__isSmartRef__":true,"id":1877},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1877":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1878":{"_id":"_227","style":{"__isSmartRef__":true,"id":1879},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" -= delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1879":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1880":{"_id":"_107","style":{"__isSmartRef__":true,"id":1881},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1881":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1882":{"_id":"_108","style":{"__isSmartRef__":true,"id":1883},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1883":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1884":{"_id":"_170","style":{"__isSmartRef__":true,"id":1885},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1885":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1886":{"_id":"_172","style":{"__isSmartRef__":true,"id":1887},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1887":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1888},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1888":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":1679}},"1889":{"_id":"_171","style":{"__isSmartRef__":true,"id":1890},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1890":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1891":{"_id":"_173","style":{"__isSmartRef__":true,"id":1892},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1892":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1893":{"_id":"_174","style":{"__isSmartRef__":true,"id":1894},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1894":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1895":{"_id":"_175","style":{"__isSmartRef__":true,"id":1896},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1896":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1897":{"_id":"_177","style":{"__isSmartRef__":true,"id":1898},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1898":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1899},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1899":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":1679}},"1900":{"_id":"_176","style":{"__isSmartRef__":true,"id":1901},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1901":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1902":{"_id":"_178","style":{"__isSmartRef__":true,"id":1903},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1903":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1904":{"_id":"_179","style":{"__isSmartRef__":true,"id":1905},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1905":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1906":{"_id":"_109","style":{"__isSmartRef__":true,"id":1907},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1907":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1908":{"_id":"_110","style":{"__isSmartRef__":true,"id":1909},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1909":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1910":{"_id":"_180","style":{"__isSmartRef__":true,"id":1911},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1911":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1912":{"_id":"_182","style":{"__isSmartRef__":true,"id":1913},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1913":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1914},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1914":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":1679}},"1915":{"_id":"_181","style":{"__isSmartRef__":true,"id":1916},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1916":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1917":{"_id":"_183","style":{"__isSmartRef__":true,"id":1918},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1918":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1919":{"_id":"_184","style":{"__isSmartRef__":true,"id":1920},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" += ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1920":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1921":{"_id":"_111","style":{"__isSmartRef__":true,"id":1922},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"0.5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1922":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1923":{"_id":"_112","style":{"__isSmartRef__":true,"id":1924},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" * delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1924":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1925":{"_id":"_113","style":{"__isSmartRef__":true,"id":1926},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1926":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1927":{"_id":"_114","style":{"__isSmartRef__":true,"id":1928},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1928":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1929":{"_id":"_115","style":{"__isSmartRef__":true,"id":1930},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1930":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1931":{"_id":"_116","style":{"__isSmartRef__":true,"id":1932},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1932":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1933":{"_id":"_185","style":{"__isSmartRef__":true,"id":1934},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1934":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1935":{"_id":"_187","style":{"__isSmartRef__":true,"id":1936},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1936":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1937},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1937":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":1679}},"1938":{"_id":"_186","style":{"__isSmartRef__":true,"id":1939},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1939":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1940":{"_id":"_188","style":{"__isSmartRef__":true,"id":1941},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1941":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1942":{"_id":"_189","style":{"__isSmartRef__":true,"id":1943},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1943":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1944":{"_id":"_190","style":{"__isSmartRef__":true,"id":1945},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1945":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1946":{"_id":"_192","style":{"__isSmartRef__":true,"id":1947},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1947":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1948},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1948":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":1679}},"1949":{"_id":"_191","style":{"__isSmartRef__":true,"id":1950},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1950":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1951":{"_id":"_193","style":{"__isSmartRef__":true,"id":1952},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1952":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1953":{"_id":"_194","style":{"__isSmartRef__":true,"id":1954},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" ) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1954":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1955":{"_id":"_117","style":{"__isSmartRef__":true,"id":1956},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1956":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1957":{"_id":"_118","style":{"__isSmartRef__":true,"id":1958},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1958":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1959":{"_id":"_195","style":{"__isSmartRef__":true,"id":1960},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1960":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1961":{"_id":"_197","style":{"__isSmartRef__":true,"id":1962},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1962":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1963},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1963":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":1679}},"1964":{"_id":"_196","style":{"__isSmartRef__":true,"id":1965},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1965":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1966":{"_id":"_198","style":{"__isSmartRef__":true,"id":1967},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1967":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1968":{"_id":"_199","style":{"__isSmartRef__":true,"id":1969},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" += ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1969":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1970":{"_id":"_119","style":{"__isSmartRef__":true,"id":1971},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"0.4","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1971":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1972":{"_id":"_120","style":{"__isSmartRef__":true,"id":1973},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":" * delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1973":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1974":{"_id":"_121","style":{"__isSmartRef__":true,"id":1975},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1975":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1976":{"_id":"_122","style":{"__isSmartRef__":true,"id":1977},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1977":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1978":{"_id":"_123","style":{"__isSmartRef__":true,"id":1979},"chunkOwner":{"__isSmartRef__":true,"id":1704},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1979":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1980":{"morph":{"__isSmartRef__":true,"id":1704},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1981":{"morph":{"__isSmartRef__":true,"id":1704},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"1982":{"morph":{"__isSmartRef__":true,"id":1704},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"1983":{"morph":{"__isSmartRef__":true,"id":1704},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"1984":{"morph":{"__isSmartRef__":true,"id":1704},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"1985":{"morph":{"__isSmartRef__":true,"id":1704},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"1986":{"morph":{"__isSmartRef__":true,"id":1704},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"1987":{"morph":{"__isSmartRef__":true,"id":1704},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"1988":{"morph":{"__isSmartRef__":true,"id":1704},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"1989":{"resizeWidth":true,"resizeHeight":true},"1990":{"sourceObj":{"__isSmartRef__":true,"id":1704},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1679},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":1991},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1991":{"source":{"__isSmartRef__":true,"id":1704},"target":{"__isSmartRef__":true,"id":1679}},"1992":{"sourceObj":{"__isSmartRef__":true,"id":1704},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":1704},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":1993},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1993":{"source":{"__isSmartRef__":true,"id":1704},"target":{"__isSmartRef__":true,"id":1704}},"1994":{"boundEval":{"__isSmartRef__":true,"id":1995},"getDoitContext":{"__isSmartRef__":true,"id":2003},"installLayers":{"__isSmartRef__":true,"id":2011},"onLoad":{"__isSmartRef__":true,"id":2015},"highligtScriptNames":{"__isSmartRef__":true,"id":2019},"getAutoCompletion":{"__isSmartRef__":true,"id":2023},"reset":{"__isSmartRef__":true,"id":2031},"getLastWordRange":{"__isSmartRef__":true,"id":2035}},"1995":{"varMapping":{"__isSmartRef__":true,"id":1996},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1996":{"this":{"__isSmartRef__":true,"id":1704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1997}},"1997":{"$super":{"__isSmartRef__":true,"id":1998}},"1998":{"varMapping":{"__isSmartRef__":true,"id":1999},"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":2000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1999":{"obj":{"__isSmartRef__":true,"id":1704},"name":"boundEval"},"2000":{},"2001":{"timestamp":{"__isSmartRef__":true,"id":2002},"user":"jenslincke","tags":[]},"2002":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:28:47 GMT-0800 (PST)"},"2003":{"varMapping":{"__isSmartRef__":true,"id":2004},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2004":{"this":{"__isSmartRef__":true,"id":1704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2005}},"2005":{"$super":{"__isSmartRef__":true,"id":2006}},"2006":{"varMapping":{"__isSmartRef__":true,"id":2007},"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":2008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2007":{"obj":{"__isSmartRef__":true,"id":1704},"name":"getDoitContext"},"2008":{},"2009":{"timestamp":{"__isSmartRef__":true,"id":2010},"user":"jenslincke","tags":[]},"2010":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:42:09 GMT-0800 (PST)"},"2011":{"varMapping":{"__isSmartRef__":true,"id":2012},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":2013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2012":{"this":{"__isSmartRef__":true,"id":1704}},"2013":{"timestamp":{"__isSmartRef__":true,"id":2014},"user":"jenslincke","tags":[]},"2014":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:44 GMT-0800 (PST)"},"2015":{"varMapping":{"__isSmartRef__":true,"id":2016},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":2017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2016":{"this":{"__isSmartRef__":true,"id":1704}},"2017":{"timestamp":{"__isSmartRef__":true,"id":2018},"user":"jenslincke","tags":[]},"2018":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:45 GMT-0800 (PST)"},"2019":{"varMapping":{"__isSmartRef__":true,"id":2020},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":2021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2020":{"this":{"__isSmartRef__":true,"id":1704}},"2021":{"timestamp":{"__isSmartRef__":true,"id":2022},"user":"jenslincke","tags":[]},"2022":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:25:07 GMT-0800 (PST)"},"2023":{"varMapping":{"__isSmartRef__":true,"id":2024},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":2029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2024":{"this":{"__isSmartRef__":true,"id":1704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2025}},"2025":{"$super":{"__isSmartRef__":true,"id":2026}},"2026":{"varMapping":{"__isSmartRef__":true,"id":2027},"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":2028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2027":{"obj":{"__isSmartRef__":true,"id":1704},"name":"getAutoCompletion"},"2028":{},"2029":{"timestamp":{"__isSmartRef__":true,"id":2030},"user":"jenslincke","tags":[]},"2030":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:33:17 GMT-0800 (PST)"},"2031":{"varMapping":{"__isSmartRef__":true,"id":2032},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":2033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2032":{"this":{"__isSmartRef__":true,"id":1704}},"2033":{"timestamp":{"__isSmartRef__":true,"id":2034},"user":"jenslincke","tags":[]},"2034":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:58:01 GMT-0800 (PST)"},"2035":{"varMapping":{"__isSmartRef__":true,"id":2036},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2036":{"this":{"__isSmartRef__":true,"id":1704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2037}},"2037":{"$super":{"__isSmartRef__":true,"id":2038}},"2038":{"varMapping":{"__isSmartRef__":true,"id":2039},"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":2040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2039":{"obj":{"__isSmartRef__":true,"id":1704},"name":"getLastWordRange"},"2040":{},"2041":{"timestamp":{"__isSmartRef__":true,"id":2042},"user":"jenslincke","tags":[]},"2042":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:59:58 GMT-0800 (PST)"},"2043":{"submorphs":[],"scripts":[],"id":"991C7669-A6BD-4EC6-BC32-728789FC6E4B","shape":{"__isSmartRef__":true,"id":2044},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":2045},"textChunks":[{"__isSmartRef__":true,"id":2061}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2063},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1679},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2064},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,364.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"2044":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(519.2,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2045":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2046},{"__isSmartRef__":true,"id":2048},{"__isSmartRef__":true,"id":2050},{"__isSmartRef__":true,"id":2052},{"__isSmartRef__":true,"id":2054},{"__isSmartRef__":true,"id":2056},{"__isSmartRef__":true,"id":2058}],"lastModifiedDate":{"__isSmartRef__":true,"id":2060},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2046":{"date":{"__isSmartRef__":true,"id":2047},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2047":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"2048":{"date":{"__isSmartRef__":true,"id":2049},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2049":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"2050":{"date":{"__isSmartRef__":true,"id":2051},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2051":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"2052":{"date":{"__isSmartRef__":true,"id":2053},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2053":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"2054":{"date":{"__isSmartRef__":true,"id":2055},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2055":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"2056":{"date":{"__isSmartRef__":true,"id":2057},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2057":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"2058":{"date":{"__isSmartRef__":true,"id":2059},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2059":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"2060":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"2061":{"style":{"__isSmartRef__":true,"id":2062},"chunkOwner":{"__isSmartRef__":true,"id":2043},"_id":"_11216","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2062":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2063":{"morph":{"__isSmartRef__":true,"id":2043},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2064":{"moveVertical":true,"resizeWidth":true},"2065":{"submorphs":[],"scripts":[],"id":"A2F622AF-C486-4D83-BDB9-7B5019D7C7B5","shape":{"__isSmartRef__":true,"id":2066},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2067},"textChunks":[{"__isSmartRef__":true,"id":2083}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2085},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1679},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":2086}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2088},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"2066":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(512.7,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2067":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2068},{"__isSmartRef__":true,"id":2070},{"__isSmartRef__":true,"id":2072},{"__isSmartRef__":true,"id":2074},{"__isSmartRef__":true,"id":2076},{"__isSmartRef__":true,"id":2078},{"__isSmartRef__":true,"id":2080}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":2082},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2068":{"date":{"__isSmartRef__":true,"id":2069},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2069":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"2070":{"date":{"__isSmartRef__":true,"id":2071},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2071":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"2072":{"date":{"__isSmartRef__":true,"id":2073},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2073":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"2074":{"date":{"__isSmartRef__":true,"id":2075},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2075":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"2076":{"date":{"__isSmartRef__":true,"id":2077},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2077":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"2078":{"date":{"__isSmartRef__":true,"id":2079},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2079":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"2080":{"date":{"__isSmartRef__":true,"id":2081},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2081":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"2082":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"2083":{"style":{"__isSmartRef__":true,"id":2084},"chunkOwner":{"__isSmartRef__":true,"id":2065},"_id":"_11195","storedString":"Heat: 0\nFactor: 10\nMax: 7.5\nStopped: false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2084":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2085":{"morph":{"__isSmartRef__":true,"id":2065},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2086":{"sourceObj":{"__isSmartRef__":true,"id":2065},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1679},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":2087},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2087":{"source":{"__isSmartRef__":true,"id":2065},"target":{"__isSmartRef__":true,"id":1679}},"2088":{"resizeWidth":true},"2089":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(541.0,382.6)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"2090":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":2091},{"__isSmartRef__":true,"id":2093},{"__isSmartRef__":true,"id":2095},{"__isSmartRef__":true,"id":2097},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2101},{"__isSmartRef__":true,"id":2103},{"__isSmartRef__":true,"id":2105},{"__isSmartRef__":true,"id":2107},{"__isSmartRef__":true,"id":2109},{"__isSmartRef__":true,"id":2111},{"__isSmartRef__":true,"id":2113},{"__isSmartRef__":true,"id":2115},{"__isSmartRef__":true,"id":2117},{"__isSmartRef__":true,"id":2119},{"__isSmartRef__":true,"id":2121},{"__isSmartRef__":true,"id":2123},{"__isSmartRef__":true,"id":2125},{"__isSmartRef__":true,"id":2127},{"__isSmartRef__":true,"id":2129},{"__isSmartRef__":true,"id":2131},{"__isSmartRef__":true,"id":2133},{"__isSmartRef__":true,"id":2135},{"__isSmartRef__":true,"id":2137},{"__isSmartRef__":true,"id":2139},{"__isSmartRef__":true,"id":2141},{"__isSmartRef__":true,"id":2143},{"__isSmartRef__":true,"id":2145},{"__isSmartRef__":true,"id":2147}],"lastModifiedDate":{"__isSmartRef__":true,"id":2149},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2091":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":2092}},"2092":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"2093":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":2094}},"2094":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"2095":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":2096}},"2096":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"2097":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":2098}},"2098":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"2099":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":2100}},"2100":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"2101":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":2102}},"2102":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"2103":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":2104}},"2104":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"2105":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":2106}},"2106":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"2107":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":2108}},"2108":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"2109":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":2110}},"2110":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"2111":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":2112}},"2112":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"2113":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":2114}},"2114":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"2115":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":2116}},"2116":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"2117":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":2118}},"2118":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"2119":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":2120}},"2120":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"2121":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":2122}},"2122":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"2123":{"date":{"__isSmartRef__":true,"id":2124},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"2124":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:02:28 GMT-0800 (PST)"},"2125":{"date":{"__isSmartRef__":true,"id":2126},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"2126":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:10:08 GMT-0800 (PST)"},"2127":{"date":{"__isSmartRef__":true,"id":2128},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"2128":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:24:55 GMT-0800 (PST)"},"2129":{"date":{"__isSmartRef__":true,"id":2130},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"2130":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:29:33 GMT-0800 (PST)"},"2131":{"date":{"__isSmartRef__":true,"id":2132},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"2132":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:07:26 GMT-0800 (PST)"},"2133":{"date":{"__isSmartRef__":true,"id":2134},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"2134":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:23:13 GMT-0800 (PST)"},"2135":{"date":{"__isSmartRef__":true,"id":2136},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"2136":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:58:48 GMT-0800 (PST)"},"2137":{"date":{"__isSmartRef__":true,"id":2138},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"2138":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:59:27 GMT-0800 (PST)"},"2139":{"date":{"__isSmartRef__":true,"id":2140},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"2140":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:03:44 GMT-0800 (PST)"},"2141":{"date":{"__isSmartRef__":true,"id":2142},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"2142":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:24:12 GMT-0800 (PST)"},"2143":{"date":{"__isSmartRef__":true,"id":2144},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"2144":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:26:15 GMT-0800 (PST)"},"2145":{"date":{"__isSmartRef__":true,"id":2146},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"2146":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:35:38 GMT-0800 (PST)"},"2147":{"date":{"__isSmartRef__":true,"id":2148},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"2148":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:51 GMT-0800 (PST)"},"2149":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:15 GMT-0800 (PST)"},"2150":{"morph":{"__isSmartRef__":true,"id":1679},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2151":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2152}},"2152":{"test01IsMorph":{"__isSmartRef__":true,"id":2153}},"2153":{"varMapping":{"__isSmartRef__":true,"id":2154},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2154":{"this":{"__isSmartRef__":true,"id":2151}},"2155":{},"2156":{"morph":{"__isSmartRef__":true,"id":1679},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"2157":{"morph":{"__isSmartRef__":true,"id":1679},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"2158":{"morph":{"__isSmartRef__":true,"id":1679},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"2159":{"morph":{"__isSmartRef__":true,"id":1679},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"2160":{"morph":{"__isSmartRef__":true,"id":1679},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"2161":{"morph":{"__isSmartRef__":true,"id":1679},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"2162":{"morph":{"__isSmartRef__":true,"id":1679},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"2163":{"morph":{"__isSmartRef__":true,"id":1679},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"2164":{"adjustForNewBounds":true},"2165":{"Heat":0,"Factor":10,"Max":7.5,"Stopped":false},"2166":{"sourceObj":{"__isSmartRef__":true,"id":1679},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1680},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":2167},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2167":{"source":{"__isSmartRef__":true,"id":1679},"target":{"__isSmartRef__":true,"id":1680}},"2168":{},"2169":{"referencedBy":{"__isSmartRef__":true,"id":2170},"references":{"__isSmartRef__":true,"id":2171}},"2170":{},"2171":{},"2172":{"migrateFrom":{"__isSmartRef__":true,"id":2173},"parsePropeties":{"__isSmartRef__":true,"id":2177},"printProperties":{"__isSmartRef__":true,"id":2181},"parseSimulationSource":{"__isSmartRef__":true,"id":2185},"simulateStep":{"__isSmartRef__":true,"id":2189},"showError":{"__isSmartRef__":true,"id":2192},"throwSimulationProblem":{"__isSmartRef__":true,"id":2196},"updateUI":{"__isSmartRef__":true,"id":2200},"resetStatus":{"__isSmartRef__":true,"id":2204},"simulateOneStep":{"__isSmartRef__":true,"id":2208},"reset":{"__isSmartRef__":true,"id":2212},"resetScriptAnalysis":{"__isSmartRef__":true,"id":2216},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":2220},"logReference":{"__isSmartRef__":true,"id":2224},"showScriptAnalysis":{"__isSmartRef__":true,"id":2228},"showReferenceTo":{"__isSmartRef__":true,"id":2232},"resetSourceHighlighting":{"__isSmartRef__":true,"id":2236},"showNameReference":{"__isSmartRef__":true,"id":2240}},"2173":{"varMapping":{"__isSmartRef__":true,"id":2174},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":2175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2174":{"this":{"__isSmartRef__":true,"id":1679}},"2175":{"timestamp":{"__isSmartRef__":true,"id":2176},"user":"jenslincke","tags":[]},"2176":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:59 GMT-0800 (PST)"},"2177":{"varMapping":{"__isSmartRef__":true,"id":2178},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":2179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2178":{"this":{"__isSmartRef__":true,"id":1679}},"2179":{"timestamp":{"__isSmartRef__":true,"id":2180},"user":"jenslincke","tags":[]},"2180":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:03 GMT-0800 (PST)"},"2181":{"varMapping":{"__isSmartRef__":true,"id":2182},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":2183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2182":{"this":{"__isSmartRef__":true,"id":1679}},"2183":{"timestamp":{"__isSmartRef__":true,"id":2184},"user":"jenslincke","tags":[]},"2184":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:34:48 GMT-0800 (PST)"},"2185":{"varMapping":{"__isSmartRef__":true,"id":2186},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":2187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2186":{"this":{"__isSmartRef__":true,"id":1679}},"2187":{"timestamp":{"__isSmartRef__":true,"id":2188},"user":"jenslincke","tags":[]},"2188":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:12:57 GMT-0800 (PST)"},"2189":{"varMapping":{"__isSmartRef__":true,"id":2190},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nvar full = $.Max * $.Factor\nif ($.Heat < full && this.get('Fuel').$.Gas > $.Max * dt\n && (this.get('Battery').$.Energy < 0.9 * this.get('Battery').$.Max )) {\n var gas = $.Max * dt\n this.get('Fuel').$.Gas -= gas\n $.Heat += 1.0 * gas\n}\nvar delta = $.Heat / $.Factor * dt\nif ($.Heat > 2) {\n $.Heat -= delta\n if(this.get('HeatStorage').$.Energy < this.get('HeatStorage').$.Max) {\n this.get('HeatStorage').$.Energy += 0.5 * delta\n }\n if (this.get('Battery').$.Energy < this.get('Battery').$.Max ) {\n this.get('Battery').$.Energy += 0.4 * delta\n }\n}\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":2191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2190":{"this":{"__isSmartRef__":true,"id":1679}},"2191":{},"2192":{"varMapping":{"__isSmartRef__":true,"id":2193},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2193":{"this":{"__isSmartRef__":true,"id":1679}},"2194":{"timestamp":{"__isSmartRef__":true,"id":2195},"user":"jenslincke","tags":[]},"2195":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:11:23 GMT-0800 (PST)"},"2196":{"varMapping":{"__isSmartRef__":true,"id":2197},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":2198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2197":{"this":{"__isSmartRef__":true,"id":1679}},"2198":{"timestamp":{"__isSmartRef__":true,"id":2199},"user":"jenslincke","tags":[]},"2199":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:32:56 GMT-0800 (PST)"},"2200":{"varMapping":{"__isSmartRef__":true,"id":2201},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":2202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2201":{"this":{"__isSmartRef__":true,"id":1679}},"2202":{"timestamp":{"__isSmartRef__":true,"id":2203},"user":"jenslincke","tags":[]},"2203":{"isSerializedDate":true,"string":"Sun Jan 26 2014 06:22:09 GMT-0800 (PST)"},"2204":{"varMapping":{"__isSmartRef__":true,"id":2205},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":2206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2205":{"this":{"__isSmartRef__":true,"id":1679}},"2206":{"timestamp":{"__isSmartRef__":true,"id":2207},"user":"jenslincke","tags":[]},"2207":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:54:04 GMT-0800 (PST)"},"2208":{"varMapping":{"__isSmartRef__":true,"id":2209},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2209":{"this":{"__isSmartRef__":true,"id":1679}},"2210":{"timestamp":{"__isSmartRef__":true,"id":2211},"user":"jenslincke","tags":[]},"2211":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:58 GMT-0800 (PST)"},"2212":{"varMapping":{"__isSmartRef__":true,"id":2213},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":2214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2213":{"this":{"__isSmartRef__":true,"id":1679}},"2214":{"timestamp":{"__isSmartRef__":true,"id":2215},"user":"jenslincke","tags":[]},"2215":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:35:44 GMT-0800 (PST)"},"2216":{"varMapping":{"__isSmartRef__":true,"id":2217},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":2218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2217":{"this":{"__isSmartRef__":true,"id":1679}},"2218":{"timestamp":{"__isSmartRef__":true,"id":2219},"user":"jenslincke","tags":[]},"2219":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:36:12 GMT-0800 (PST)"},"2220":{"varMapping":{"__isSmartRef__":true,"id":2221},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":2222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2221":{"this":{"__isSmartRef__":true,"id":1679}},"2222":{"timestamp":{"__isSmartRef__":true,"id":2223},"user":"jenslincke","tags":[]},"2223":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:09 GMT-0800 (PST)"},"2224":{"varMapping":{"__isSmartRef__":true,"id":2225},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":2226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2225":{"this":{"__isSmartRef__":true,"id":1679}},"2226":{"timestamp":{"__isSmartRef__":true,"id":2227},"user":"jenslincke","tags":[]},"2227":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:15 GMT-0800 (PST)"},"2228":{"varMapping":{"__isSmartRef__":true,"id":2229},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":2230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2229":{"this":{"__isSmartRef__":true,"id":1679}},"2230":{"timestamp":{"__isSmartRef__":true,"id":2231},"user":"jenslincke","tags":[]},"2231":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:26 GMT-0800 (PST)"},"2232":{"varMapping":{"__isSmartRef__":true,"id":2233},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2233":{"this":{"__isSmartRef__":true,"id":1679}},"2234":{"timestamp":{"__isSmartRef__":true,"id":2235},"user":"jenslincke","tags":[]},"2235":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:25 GMT-0800 (PST)"},"2236":{"varMapping":{"__isSmartRef__":true,"id":2237},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":2238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2237":{"this":{"__isSmartRef__":true,"id":1679}},"2238":{"timestamp":{"__isSmartRef__":true,"id":2239},"user":"jenslincke","tags":[]},"2239":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:53:47 GMT-0800 (PST)"},"2240":{"varMapping":{"__isSmartRef__":true,"id":2241},"source":"function showNameReference(name) {\n\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n this.lastNameReference = name;\n\n var morph = this.get(name)\n if (morph) {\n morph.show().invoke(\"setBorderColor\", Color.yellow)\n morph.showScriptAnalysis()\n }\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":2242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2241":{"this":{"__isSmartRef__":true,"id":1679}},"2242":{"timestamp":{"__isSmartRef__":true,"id":2243},"user":"jenslincke","tags":[]},"2243":{"isSerializedDate":true,"string":"Thu Jan 30 2014 02:13:25 GMT-0800 (PST)"},"2244":{"submorphs":[{"__isSmartRef__":true,"id":2245},{"__isSmartRef__":true,"id":2269},{"__isSmartRef__":true,"id":2352},{"__isSmartRef__":true,"id":2374}],"scripts":[],"id":"3DE20567-958A-46B7-9C99-DA0DBD9B9403","shape":{"__isSmartRef__":true,"id":2398},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2399},"eventHandler":{"__isSmartRef__":true,"id":2459},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":2460},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":2465},{"__isSmartRef__":true,"id":2466},{"__isSmartRef__":true,"id":2467},{"__isSmartRef__":true,"id":2468},{"__isSmartRef__":true,"id":2469},{"__isSmartRef__":true,"id":2470},{"__isSmartRef__":true,"id":2471},{"__isSmartRef__":true,"id":2472}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":2473},"$":{"__isSmartRef__":true,"id":2474},"name":"HeatStorage","attributeConnections":[{"__isSmartRef__":true,"id":2475}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":2477},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":2478},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":952},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2481},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(1198.3,122.0)"},"2245":{"submorphs":[],"scripts":[],"id":"9B89107A-90AA-4B8C-9C2B-3A6CB95BEDA4","shape":{"__isSmartRef__":true,"id":2246},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":2247},"textChunks":[{"__isSmartRef__":true,"id":2249}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":2251},{"__isSmartRef__":true,"id":2252}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":2253},"owner":{"__isSmartRef__":true,"id":2244},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":2244},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"priorSelectionRange":[11,11],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2254},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"2246":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2247":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":2248},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2248":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"2249":{"style":{"__isSmartRef__":true,"id":2250},"chunkOwner":{"__isSmartRef__":true,"id":2245},"_id":"_5537","storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2250":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2251":{"sourceObj":{"__isSmartRef__":true,"id":2245},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2245},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2252":{"sourceObj":{"__isSmartRef__":true,"id":2245},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2245},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2253":{"morph":{"__isSmartRef__":true,"id":2245},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2254":{"updateLabel":{"__isSmartRef__":true,"id":2255},"renameOwner":{"__isSmartRef__":true,"id":2258},"onFocus":{"__isSmartRef__":true,"id":2261}},"2255":{"varMapping":{"__isSmartRef__":true,"id":2256},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":2257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2256":{"this":{"__isSmartRef__":true,"id":2245}},"2257":{},"2258":{"varMapping":{"__isSmartRef__":true,"id":2259},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":2260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2259":{"this":{"__isSmartRef__":true,"id":2245}},"2260":{},"2261":{"varMapping":{"__isSmartRef__":true,"id":2262},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":2267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2262":{"this":{"__isSmartRef__":true,"id":2245},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2263}},"2263":{"$super":{"__isSmartRef__":true,"id":2264}},"2264":{"varMapping":{"__isSmartRef__":true,"id":2265},"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":2266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2265":{"obj":{"__isSmartRef__":true,"id":2245},"name":"onFocus"},"2266":{},"2267":{"timestamp":{"__isSmartRef__":true,"id":2268},"user":"jenslincke","tags":[]},"2268":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:45:12 GMT-0800 (PST)"},"2269":{"submorphs":[],"scripts":[],"id":"86BDFE3B-DCC3-4613-933A-30BC33AF3EE4","shape":{"__isSmartRef__":true,"id":2270},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2271},"textChunks":[{"__isSmartRef__":true,"id":2287}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2289},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":2290},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2292},{"__isSmartRef__":true,"id":2293},{"__isSmartRef__":true,"id":2294},{"__isSmartRef__":true,"id":2295},{"__isSmartRef__":true,"id":2296},{"__isSmartRef__":true,"id":2297}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2298},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":2244},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","attributeConnections":[{"__isSmartRef__":true,"id":2299},{"__isSmartRef__":true,"id":2301}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":2,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[301,301],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2303},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"2270":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__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(152.3,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2271":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2272},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2276},{"__isSmartRef__":true,"id":2278},{"__isSmartRef__":true,"id":2280},{"__isSmartRef__":true,"id":2282},{"__isSmartRef__":true,"id":2284}],"lastModifiedDate":{"__isSmartRef__":true,"id":2286},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2272":{"date":{"__isSmartRef__":true,"id":2273},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2273":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"2274":{"date":{"__isSmartRef__":true,"id":2275},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2275":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"2276":{"date":{"__isSmartRef__":true,"id":2277},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2277":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"2278":{"date":{"__isSmartRef__":true,"id":2279},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2279":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"2280":{"date":{"__isSmartRef__":true,"id":2281},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2281":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"2282":{"date":{"__isSmartRef__":true,"id":2283},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2283":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"2284":{"date":{"__isSmartRef__":true,"id":2285},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2285":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"2286":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"2287":{"style":{"__isSmartRef__":true,"id":2288},"chunkOwner":{"__isSmartRef__":true,"id":2269},"_id":"_5","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2288":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2289":{"morph":{"__isSmartRef__":true,"id":2269},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2290":{"morph":{"__isSmartRef__":true,"id":2269},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"2291":{"morph":{"__isSmartRef__":true,"id":2269},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"2292":{"morph":{"__isSmartRef__":true,"id":2269},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"2293":{"morph":{"__isSmartRef__":true,"id":2269},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"2294":{"morph":{"__isSmartRef__":true,"id":2269},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"2295":{"morph":{"__isSmartRef__":true,"id":2269},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"2296":{"morph":{"__isSmartRef__":true,"id":2269},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"2297":{"morph":{"__isSmartRef__":true,"id":2269},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"2298":{"resizeWidth":true,"resizeHeight":true},"2299":{"sourceObj":{"__isSmartRef__":true,"id":2269},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2244},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":2300},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2300":{"source":{"__isSmartRef__":true,"id":2269},"target":{"__isSmartRef__":true,"id":2244}},"2301":{"sourceObj":{"__isSmartRef__":true,"id":2269},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":2269},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":2302},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2302":{"source":{"__isSmartRef__":true,"id":2269},"target":{"__isSmartRef__":true,"id":2269}},"2303":{"boundEval":{"__isSmartRef__":true,"id":2304},"getDoitContext":{"__isSmartRef__":true,"id":2312},"installLayers":{"__isSmartRef__":true,"id":2320},"onLoad":{"__isSmartRef__":true,"id":2324},"highligtScriptNames":{"__isSmartRef__":true,"id":2328},"getAutoCompletion":{"__isSmartRef__":true,"id":2332},"reset":{"__isSmartRef__":true,"id":2340},"getLastWordRange":{"__isSmartRef__":true,"id":2344}},"2304":{"varMapping":{"__isSmartRef__":true,"id":2305},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2305":{"this":{"__isSmartRef__":true,"id":2269},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2306}},"2306":{"$super":{"__isSmartRef__":true,"id":2307}},"2307":{"varMapping":{"__isSmartRef__":true,"id":2308},"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":2309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2308":{"obj":{"__isSmartRef__":true,"id":2269},"name":"boundEval"},"2309":{},"2310":{"timestamp":{"__isSmartRef__":true,"id":2311},"user":"jenslincke","tags":[]},"2311":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:28:47 GMT-0800 (PST)"},"2312":{"varMapping":{"__isSmartRef__":true,"id":2313},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2313":{"this":{"__isSmartRef__":true,"id":2269},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2314}},"2314":{"$super":{"__isSmartRef__":true,"id":2315}},"2315":{"varMapping":{"__isSmartRef__":true,"id":2316},"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":2317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2316":{"obj":{"__isSmartRef__":true,"id":2269},"name":"getDoitContext"},"2317":{},"2318":{"timestamp":{"__isSmartRef__":true,"id":2319},"user":"jenslincke","tags":[]},"2319":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:42:09 GMT-0800 (PST)"},"2320":{"varMapping":{"__isSmartRef__":true,"id":2321},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":2322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2321":{"this":{"__isSmartRef__":true,"id":2269}},"2322":{"timestamp":{"__isSmartRef__":true,"id":2323},"user":"jenslincke","tags":[]},"2323":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:44 GMT-0800 (PST)"},"2324":{"varMapping":{"__isSmartRef__":true,"id":2325},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":2326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2325":{"this":{"__isSmartRef__":true,"id":2269}},"2326":{"timestamp":{"__isSmartRef__":true,"id":2327},"user":"jenslincke","tags":[]},"2327":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:45 GMT-0800 (PST)"},"2328":{"varMapping":{"__isSmartRef__":true,"id":2329},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":2330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2329":{"this":{"__isSmartRef__":true,"id":2269}},"2330":{"timestamp":{"__isSmartRef__":true,"id":2331},"user":"jenslincke","tags":[]},"2331":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:25:07 GMT-0800 (PST)"},"2332":{"varMapping":{"__isSmartRef__":true,"id":2333},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":2338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2333":{"this":{"__isSmartRef__":true,"id":2269},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2334}},"2334":{"$super":{"__isSmartRef__":true,"id":2335}},"2335":{"varMapping":{"__isSmartRef__":true,"id":2336},"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":2337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2336":{"obj":{"__isSmartRef__":true,"id":2269},"name":"getAutoCompletion"},"2337":{},"2338":{"timestamp":{"__isSmartRef__":true,"id":2339},"user":"jenslincke","tags":[]},"2339":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:33:17 GMT-0800 (PST)"},"2340":{"varMapping":{"__isSmartRef__":true,"id":2341},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":2342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2341":{"this":{"__isSmartRef__":true,"id":2269}},"2342":{"timestamp":{"__isSmartRef__":true,"id":2343},"user":"jenslincke","tags":[]},"2343":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:58:01 GMT-0800 (PST)"},"2344":{"varMapping":{"__isSmartRef__":true,"id":2345},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2345":{"this":{"__isSmartRef__":true,"id":2269},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2346}},"2346":{"$super":{"__isSmartRef__":true,"id":2347}},"2347":{"varMapping":{"__isSmartRef__":true,"id":2348},"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":2349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2348":{"obj":{"__isSmartRef__":true,"id":2269},"name":"getLastWordRange"},"2349":{},"2350":{"timestamp":{"__isSmartRef__":true,"id":2351},"user":"jenslincke","tags":[]},"2351":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:59:58 GMT-0800 (PST)"},"2352":{"submorphs":[],"scripts":[],"id":"BAA664DE-443A-4E48-B90E-C835D15C15D1","shape":{"__isSmartRef__":true,"id":2353},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":2354},"textChunks":[{"__isSmartRef__":true,"id":2370}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2372},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2244},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2373},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,61.9)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"2353":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(144.4,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2354":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2355},{"__isSmartRef__":true,"id":2357},{"__isSmartRef__":true,"id":2359},{"__isSmartRef__":true,"id":2361},{"__isSmartRef__":true,"id":2363},{"__isSmartRef__":true,"id":2365},{"__isSmartRef__":true,"id":2367}],"lastModifiedDate":{"__isSmartRef__":true,"id":2369},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2355":{"date":{"__isSmartRef__":true,"id":2356},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2356":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"2357":{"date":{"__isSmartRef__":true,"id":2358},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2358":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"2359":{"date":{"__isSmartRef__":true,"id":2360},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2360":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"2361":{"date":{"__isSmartRef__":true,"id":2362},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2362":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"2363":{"date":{"__isSmartRef__":true,"id":2364},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2364":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"2365":{"date":{"__isSmartRef__":true,"id":2366},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2366":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"2367":{"date":{"__isSmartRef__":true,"id":2368},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2368":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"2369":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"2370":{"style":{"__isSmartRef__":true,"id":2371},"chunkOwner":{"__isSmartRef__":true,"id":2352},"_id":"_11218","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2371":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2372":{"morph":{"__isSmartRef__":true,"id":2352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2373":{"moveVertical":true,"resizeWidth":true},"2374":{"submorphs":[],"scripts":[],"id":"F6EEDD0F-7F83-47ED-8009-A582351C2A3F","shape":{"__isSmartRef__":true,"id":2375},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2376},"textChunks":[{"__isSmartRef__":true,"id":2392}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2394},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2244},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":2395}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2397},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"2375":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(137.9,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2376":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2377},{"__isSmartRef__":true,"id":2379},{"__isSmartRef__":true,"id":2381},{"__isSmartRef__":true,"id":2383},{"__isSmartRef__":true,"id":2385},{"__isSmartRef__":true,"id":2387},{"__isSmartRef__":true,"id":2389}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":2391},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2377":{"date":{"__isSmartRef__":true,"id":2378},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2378":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"2379":{"date":{"__isSmartRef__":true,"id":2380},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2380":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"2381":{"date":{"__isSmartRef__":true,"id":2382},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2382":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"2383":{"date":{"__isSmartRef__":true,"id":2384},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2384":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"2385":{"date":{"__isSmartRef__":true,"id":2386},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2386":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"2387":{"date":{"__isSmartRef__":true,"id":2388},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2388":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"2389":{"date":{"__isSmartRef__":true,"id":2390},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2390":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"2391":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"2392":{"style":{"__isSmartRef__":true,"id":2393},"chunkOwner":{"__isSmartRef__":true,"id":2374},"_id":"_11196","storedString":"Energy: 0 [kWs]\nMax: 360 [kWs]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2393":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2394":{"morph":{"__isSmartRef__":true,"id":2374},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2395":{"sourceObj":{"__isSmartRef__":true,"id":2374},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2244},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":2396},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2396":{"source":{"__isSmartRef__":true,"id":2374},"target":{"__isSmartRef__":true,"id":2244}},"2397":{"resizeWidth":true},"2398":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(166.2,79.7)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"2399":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":2400},{"__isSmartRef__":true,"id":2402},{"__isSmartRef__":true,"id":2404},{"__isSmartRef__":true,"id":2406},{"__isSmartRef__":true,"id":2408},{"__isSmartRef__":true,"id":2410},{"__isSmartRef__":true,"id":2412},{"__isSmartRef__":true,"id":2414},{"__isSmartRef__":true,"id":2416},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2420},{"__isSmartRef__":true,"id":2422},{"__isSmartRef__":true,"id":2424},{"__isSmartRef__":true,"id":2426},{"__isSmartRef__":true,"id":2428},{"__isSmartRef__":true,"id":2430},{"__isSmartRef__":true,"id":2432},{"__isSmartRef__":true,"id":2434},{"__isSmartRef__":true,"id":2436},{"__isSmartRef__":true,"id":2438},{"__isSmartRef__":true,"id":2440},{"__isSmartRef__":true,"id":2442},{"__isSmartRef__":true,"id":2444},{"__isSmartRef__":true,"id":2446},{"__isSmartRef__":true,"id":2448},{"__isSmartRef__":true,"id":2450},{"__isSmartRef__":true,"id":2452},{"__isSmartRef__":true,"id":2454},{"__isSmartRef__":true,"id":2456}],"lastModifiedDate":{"__isSmartRef__":true,"id":2458},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2400":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":2401}},"2401":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"2402":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":2403}},"2403":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"2404":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":2405}},"2405":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"2406":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":2407}},"2407":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"2408":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":2409}},"2409":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"2410":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":2411}},"2411":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"2412":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":2413}},"2413":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"2414":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":2415}},"2415":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"2416":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":2417}},"2417":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"2418":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":2419}},"2419":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"2420":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":2421}},"2421":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"2422":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":2423}},"2423":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"2424":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":2425}},"2425":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"2426":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":2427}},"2427":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"2428":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":2429}},"2429":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"2430":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":2431}},"2431":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"2432":{"date":{"__isSmartRef__":true,"id":2433},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"2433":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:02:28 GMT-0800 (PST)"},"2434":{"date":{"__isSmartRef__":true,"id":2435},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"2435":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:10:08 GMT-0800 (PST)"},"2436":{"date":{"__isSmartRef__":true,"id":2437},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"2437":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:24:55 GMT-0800 (PST)"},"2438":{"date":{"__isSmartRef__":true,"id":2439},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"2439":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:29:33 GMT-0800 (PST)"},"2440":{"date":{"__isSmartRef__":true,"id":2441},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"2441":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:07:26 GMT-0800 (PST)"},"2442":{"date":{"__isSmartRef__":true,"id":2443},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"2443":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:23:13 GMT-0800 (PST)"},"2444":{"date":{"__isSmartRef__":true,"id":2445},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"2445":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:58:48 GMT-0800 (PST)"},"2446":{"date":{"__isSmartRef__":true,"id":2447},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"2447":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:59:27 GMT-0800 (PST)"},"2448":{"date":{"__isSmartRef__":true,"id":2449},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"2449":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:03:44 GMT-0800 (PST)"},"2450":{"date":{"__isSmartRef__":true,"id":2451},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"2451":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:24:12 GMT-0800 (PST)"},"2452":{"date":{"__isSmartRef__":true,"id":2453},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"2453":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:26:15 GMT-0800 (PST)"},"2454":{"date":{"__isSmartRef__":true,"id":2455},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"2455":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:35:38 GMT-0800 (PST)"},"2456":{"date":{"__isSmartRef__":true,"id":2457},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"2457":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:51 GMT-0800 (PST)"},"2458":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:15 GMT-0800 (PST)"},"2459":{"morph":{"__isSmartRef__":true,"id":2244},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2460":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2461}},"2461":{"test01IsMorph":{"__isSmartRef__":true,"id":2462}},"2462":{"varMapping":{"__isSmartRef__":true,"id":2463},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2463":{"this":{"__isSmartRef__":true,"id":2460}},"2464":{},"2465":{"morph":{"__isSmartRef__":true,"id":2244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"2466":{"morph":{"__isSmartRef__":true,"id":2244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"2467":{"morph":{"__isSmartRef__":true,"id":2244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"2468":{"morph":{"__isSmartRef__":true,"id":2244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"2469":{"morph":{"__isSmartRef__":true,"id":2244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"2470":{"morph":{"__isSmartRef__":true,"id":2244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"2471":{"morph":{"__isSmartRef__":true,"id":2244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"2472":{"morph":{"__isSmartRef__":true,"id":2244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"2473":{"adjustForNewBounds":true},"2474":{"Energy":0,"Max":360},"2475":{"sourceObj":{"__isSmartRef__":true,"id":2244},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":2245},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":2476},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2476":{"source":{"__isSmartRef__":true,"id":2244},"target":{"__isSmartRef__":true,"id":2245}},"2477":{"Energy":"kWs","Max":"kWs"},"2478":{"referencedBy":{"__isSmartRef__":true,"id":2479},"references":{"__isSmartRef__":true,"id":2480}},"2479":{},"2480":{},"2481":{"migrateFrom":{"__isSmartRef__":true,"id":2482},"parsePropeties":{"__isSmartRef__":true,"id":2486},"printProperties":{"__isSmartRef__":true,"id":2490},"parseSimulationSource":{"__isSmartRef__":true,"id":2494},"simulateStep":{"__isSmartRef__":true,"id":2498},"showError":{"__isSmartRef__":true,"id":2501},"throwSimulationProblem":{"__isSmartRef__":true,"id":2505},"updateUI":{"__isSmartRef__":true,"id":2509},"resetStatus":{"__isSmartRef__":true,"id":2513},"simulateOneStep":{"__isSmartRef__":true,"id":2517},"reset":{"__isSmartRef__":true,"id":2521},"resetScriptAnalysis":{"__isSmartRef__":true,"id":2525},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":2529},"logReference":{"__isSmartRef__":true,"id":2533},"showScriptAnalysis":{"__isSmartRef__":true,"id":2537},"showReferenceTo":{"__isSmartRef__":true,"id":2541},"resetSourceHighlighting":{"__isSmartRef__":true,"id":2545},"showNameReference":{"__isSmartRef__":true,"id":2549}},"2482":{"varMapping":{"__isSmartRef__":true,"id":2483},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":2484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2483":{"this":{"__isSmartRef__":true,"id":2244}},"2484":{"timestamp":{"__isSmartRef__":true,"id":2485},"user":"jenslincke","tags":[]},"2485":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:59 GMT-0800 (PST)"},"2486":{"varMapping":{"__isSmartRef__":true,"id":2487},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":2488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2487":{"this":{"__isSmartRef__":true,"id":2244}},"2488":{"timestamp":{"__isSmartRef__":true,"id":2489},"user":"jenslincke","tags":[]},"2489":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:03 GMT-0800 (PST)"},"2490":{"varMapping":{"__isSmartRef__":true,"id":2491},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":2492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2491":{"this":{"__isSmartRef__":true,"id":2244}},"2492":{"timestamp":{"__isSmartRef__":true,"id":2493},"user":"jenslincke","tags":[]},"2493":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:34:48 GMT-0800 (PST)"},"2494":{"varMapping":{"__isSmartRef__":true,"id":2495},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":2496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2495":{"this":{"__isSmartRef__":true,"id":2244}},"2496":{"timestamp":{"__isSmartRef__":true,"id":2497},"user":"jenslincke","tags":[]},"2497":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:12:57 GMT-0800 (PST)"},"2498":{"varMapping":{"__isSmartRef__":true,"id":2499},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":2500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2499":{"this":{"__isSmartRef__":true,"id":2244}},"2500":{},"2501":{"varMapping":{"__isSmartRef__":true,"id":2502},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2502":{"this":{"__isSmartRef__":true,"id":2244}},"2503":{"timestamp":{"__isSmartRef__":true,"id":2504},"user":"jenslincke","tags":[]},"2504":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:11:23 GMT-0800 (PST)"},"2505":{"varMapping":{"__isSmartRef__":true,"id":2506},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":2507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2506":{"this":{"__isSmartRef__":true,"id":2244}},"2507":{"timestamp":{"__isSmartRef__":true,"id":2508},"user":"jenslincke","tags":[]},"2508":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:32:56 GMT-0800 (PST)"},"2509":{"varMapping":{"__isSmartRef__":true,"id":2510},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":2511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2510":{"this":{"__isSmartRef__":true,"id":2244}},"2511":{"timestamp":{"__isSmartRef__":true,"id":2512},"user":"jenslincke","tags":[]},"2512":{"isSerializedDate":true,"string":"Sun Jan 26 2014 06:22:09 GMT-0800 (PST)"},"2513":{"varMapping":{"__isSmartRef__":true,"id":2514},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":2515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2514":{"this":{"__isSmartRef__":true,"id":2244}},"2515":{"timestamp":{"__isSmartRef__":true,"id":2516},"user":"jenslincke","tags":[]},"2516":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:54:04 GMT-0800 (PST)"},"2517":{"varMapping":{"__isSmartRef__":true,"id":2518},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2518":{"this":{"__isSmartRef__":true,"id":2244}},"2519":{"timestamp":{"__isSmartRef__":true,"id":2520},"user":"jenslincke","tags":[]},"2520":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:58 GMT-0800 (PST)"},"2521":{"varMapping":{"__isSmartRef__":true,"id":2522},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":2523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2522":{"this":{"__isSmartRef__":true,"id":2244}},"2523":{"timestamp":{"__isSmartRef__":true,"id":2524},"user":"jenslincke","tags":[]},"2524":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:35:44 GMT-0800 (PST)"},"2525":{"varMapping":{"__isSmartRef__":true,"id":2526},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":2527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2526":{"this":{"__isSmartRef__":true,"id":2244}},"2527":{"timestamp":{"__isSmartRef__":true,"id":2528},"user":"jenslincke","tags":[]},"2528":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:36:12 GMT-0800 (PST)"},"2529":{"varMapping":{"__isSmartRef__":true,"id":2530},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":2531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2530":{"this":{"__isSmartRef__":true,"id":2244}},"2531":{"timestamp":{"__isSmartRef__":true,"id":2532},"user":"jenslincke","tags":[]},"2532":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:09 GMT-0800 (PST)"},"2533":{"varMapping":{"__isSmartRef__":true,"id":2534},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":2535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2534":{"this":{"__isSmartRef__":true,"id":2244}},"2535":{"timestamp":{"__isSmartRef__":true,"id":2536},"user":"jenslincke","tags":[]},"2536":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:15 GMT-0800 (PST)"},"2537":{"varMapping":{"__isSmartRef__":true,"id":2538},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":2539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2538":{"this":{"__isSmartRef__":true,"id":2244}},"2539":{"timestamp":{"__isSmartRef__":true,"id":2540},"user":"jenslincke","tags":[]},"2540":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:26 GMT-0800 (PST)"},"2541":{"varMapping":{"__isSmartRef__":true,"id":2542},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2542":{"this":{"__isSmartRef__":true,"id":2244}},"2543":{"timestamp":{"__isSmartRef__":true,"id":2544},"user":"jenslincke","tags":[]},"2544":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:25 GMT-0800 (PST)"},"2545":{"varMapping":{"__isSmartRef__":true,"id":2546},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":2547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2546":{"this":{"__isSmartRef__":true,"id":2244}},"2547":{"timestamp":{"__isSmartRef__":true,"id":2548},"user":"jenslincke","tags":[]},"2548":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:53:47 GMT-0800 (PST)"},"2549":{"varMapping":{"__isSmartRef__":true,"id":2550},"source":"function showNameReference(name) {\n\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n this.lastNameReference = name;\n\n var morph = this.get(name)\n if (morph) {\n morph.show().invoke(\"setBorderColor\", Color.yellow)\n morph.showScriptAnalysis()\n }\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":2551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2550":{"this":{"__isSmartRef__":true,"id":2244}},"2551":{"timestamp":{"__isSmartRef__":true,"id":2552},"user":"jenslincke","tags":[]},"2552":{"isSerializedDate":true,"string":"Thu Jan 30 2014 02:13:25 GMT-0800 (PST)"},"2553":{"submorphs":[{"__isSmartRef__":true,"id":2554},{"__isSmartRef__":true,"id":2578},{"__isSmartRef__":true,"id":2661},{"__isSmartRef__":true,"id":2683}],"scripts":[],"id":"B46482DF-F599-459F-BAC6-B55F595A02B7","shape":{"__isSmartRef__":true,"id":2707},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2708},"eventHandler":{"__isSmartRef__":true,"id":2768},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":2769},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":2774},{"__isSmartRef__":true,"id":2775},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2777},{"__isSmartRef__":true,"id":2778},{"__isSmartRef__":true,"id":2779},{"__isSmartRef__":true,"id":2780},{"__isSmartRef__":true,"id":2781}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":2782},"$":{"__isSmartRef__":true,"id":2783},"name":"Battery","attributeConnections":[{"__isSmartRef__":true,"id":2784}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":2786},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":2787},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":952},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2790},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(1205.8,414.3)"},"2554":{"submorphs":[],"scripts":[],"id":"D24675DE-5988-4570-A7C8-FA553D365D0E","shape":{"__isSmartRef__":true,"id":2555},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":2556},"textChunks":[{"__isSmartRef__":true,"id":2558}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":2560},{"__isSmartRef__":true,"id":2561}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":2562},"owner":{"__isSmartRef__":true,"id":2553},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":2553},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2563},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"2555":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2556":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":2557},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2557":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"2558":{"style":{"__isSmartRef__":true,"id":2559},"chunkOwner":{"__isSmartRef__":true,"id":2554},"_id":"_5547","storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2559":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2560":{"sourceObj":{"__isSmartRef__":true,"id":2554},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2554},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2561":{"sourceObj":{"__isSmartRef__":true,"id":2554},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2554},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2562":{"morph":{"__isSmartRef__":true,"id":2554},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2563":{"updateLabel":{"__isSmartRef__":true,"id":2564},"renameOwner":{"__isSmartRef__":true,"id":2567},"onFocus":{"__isSmartRef__":true,"id":2570}},"2564":{"varMapping":{"__isSmartRef__":true,"id":2565},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":2566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2565":{"this":{"__isSmartRef__":true,"id":2554}},"2566":{},"2567":{"varMapping":{"__isSmartRef__":true,"id":2568},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":2569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2568":{"this":{"__isSmartRef__":true,"id":2554}},"2569":{},"2570":{"varMapping":{"__isSmartRef__":true,"id":2571},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":2576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2571":{"this":{"__isSmartRef__":true,"id":2554},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2572}},"2572":{"$super":{"__isSmartRef__":true,"id":2573}},"2573":{"varMapping":{"__isSmartRef__":true,"id":2574},"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":2575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2574":{"obj":{"__isSmartRef__":true,"id":2554},"name":"onFocus"},"2575":{},"2576":{"timestamp":{"__isSmartRef__":true,"id":2577},"user":"jenslincke","tags":[]},"2577":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:45:12 GMT-0800 (PST)"},"2578":{"submorphs":[],"scripts":[],"id":"DCB60234-D592-4BB2-B929-65859D645FB0","shape":{"__isSmartRef__":true,"id":2579},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2580},"textChunks":[{"__isSmartRef__":true,"id":2596}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2598},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":2599},{"__isSmartRef__":true,"id":2600},{"__isSmartRef__":true,"id":2601},{"__isSmartRef__":true,"id":2602},{"__isSmartRef__":true,"id":2603},{"__isSmartRef__":true,"id":2604},{"__isSmartRef__":true,"id":2605},{"__isSmartRef__":true,"id":2606}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2607},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":2553},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","attributeConnections":[{"__isSmartRef__":true,"id":2608},{"__isSmartRef__":true,"id":2610}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":1,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[301,301],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2612},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"2579":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__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(146.2,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2580":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2581},{"__isSmartRef__":true,"id":2583},{"__isSmartRef__":true,"id":2585},{"__isSmartRef__":true,"id":2587},{"__isSmartRef__":true,"id":2589},{"__isSmartRef__":true,"id":2591},{"__isSmartRef__":true,"id":2593}],"lastModifiedDate":{"__isSmartRef__":true,"id":2595},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2581":{"date":{"__isSmartRef__":true,"id":2582},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2582":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"2583":{"date":{"__isSmartRef__":true,"id":2584},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2584":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"2585":{"date":{"__isSmartRef__":true,"id":2586},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2586":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"2587":{"date":{"__isSmartRef__":true,"id":2588},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2588":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"2589":{"date":{"__isSmartRef__":true,"id":2590},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2590":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"2591":{"date":{"__isSmartRef__":true,"id":2592},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2592":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"2593":{"date":{"__isSmartRef__":true,"id":2594},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2594":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"2595":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"2596":{"style":{"__isSmartRef__":true,"id":2597},"chunkOwner":{"__isSmartRef__":true,"id":2578},"_id":"_6","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2597":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2598":{"morph":{"__isSmartRef__":true,"id":2578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2599":{"morph":{"__isSmartRef__":true,"id":2578},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"2600":{"morph":{"__isSmartRef__":true,"id":2578},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"2601":{"morph":{"__isSmartRef__":true,"id":2578},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"2602":{"morph":{"__isSmartRef__":true,"id":2578},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"2603":{"morph":{"__isSmartRef__":true,"id":2578},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"2604":{"morph":{"__isSmartRef__":true,"id":2578},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"2605":{"morph":{"__isSmartRef__":true,"id":2578},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"2606":{"morph":{"__isSmartRef__":true,"id":2578},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"2607":{"resizeWidth":true,"resizeHeight":true},"2608":{"sourceObj":{"__isSmartRef__":true,"id":2578},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2553},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":2609},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2609":{"source":{"__isSmartRef__":true,"id":2578},"target":{"__isSmartRef__":true,"id":2553}},"2610":{"sourceObj":{"__isSmartRef__":true,"id":2578},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":2578},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":2611},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2611":{"source":{"__isSmartRef__":true,"id":2578},"target":{"__isSmartRef__":true,"id":2578}},"2612":{"boundEval":{"__isSmartRef__":true,"id":2613},"getDoitContext":{"__isSmartRef__":true,"id":2621},"installLayers":{"__isSmartRef__":true,"id":2629},"onLoad":{"__isSmartRef__":true,"id":2633},"highligtScriptNames":{"__isSmartRef__":true,"id":2637},"getAutoCompletion":{"__isSmartRef__":true,"id":2641},"reset":{"__isSmartRef__":true,"id":2649},"getLastWordRange":{"__isSmartRef__":true,"id":2653}},"2613":{"varMapping":{"__isSmartRef__":true,"id":2614},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2614":{"this":{"__isSmartRef__":true,"id":2578},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2615}},"2615":{"$super":{"__isSmartRef__":true,"id":2616}},"2616":{"varMapping":{"__isSmartRef__":true,"id":2617},"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":2618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2617":{"obj":{"__isSmartRef__":true,"id":2578},"name":"boundEval"},"2618":{},"2619":{"timestamp":{"__isSmartRef__":true,"id":2620},"user":"jenslincke","tags":[]},"2620":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:28:47 GMT-0800 (PST)"},"2621":{"varMapping":{"__isSmartRef__":true,"id":2622},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2622":{"this":{"__isSmartRef__":true,"id":2578},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2623}},"2623":{"$super":{"__isSmartRef__":true,"id":2624}},"2624":{"varMapping":{"__isSmartRef__":true,"id":2625},"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":2626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2625":{"obj":{"__isSmartRef__":true,"id":2578},"name":"getDoitContext"},"2626":{},"2627":{"timestamp":{"__isSmartRef__":true,"id":2628},"user":"jenslincke","tags":[]},"2628":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:42:09 GMT-0800 (PST)"},"2629":{"varMapping":{"__isSmartRef__":true,"id":2630},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":2631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2630":{"this":{"__isSmartRef__":true,"id":2578}},"2631":{"timestamp":{"__isSmartRef__":true,"id":2632},"user":"jenslincke","tags":[]},"2632":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:44 GMT-0800 (PST)"},"2633":{"varMapping":{"__isSmartRef__":true,"id":2634},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":2635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2634":{"this":{"__isSmartRef__":true,"id":2578}},"2635":{"timestamp":{"__isSmartRef__":true,"id":2636},"user":"jenslincke","tags":[]},"2636":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:45 GMT-0800 (PST)"},"2637":{"varMapping":{"__isSmartRef__":true,"id":2638},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":2639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2638":{"this":{"__isSmartRef__":true,"id":2578}},"2639":{"timestamp":{"__isSmartRef__":true,"id":2640},"user":"jenslincke","tags":[]},"2640":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:25:07 GMT-0800 (PST)"},"2641":{"varMapping":{"__isSmartRef__":true,"id":2642},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":2647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2642":{"this":{"__isSmartRef__":true,"id":2578},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2643}},"2643":{"$super":{"__isSmartRef__":true,"id":2644}},"2644":{"varMapping":{"__isSmartRef__":true,"id":2645},"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":2646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2645":{"obj":{"__isSmartRef__":true,"id":2578},"name":"getAutoCompletion"},"2646":{},"2647":{"timestamp":{"__isSmartRef__":true,"id":2648},"user":"jenslincke","tags":[]},"2648":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:33:17 GMT-0800 (PST)"},"2649":{"varMapping":{"__isSmartRef__":true,"id":2650},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":2651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2650":{"this":{"__isSmartRef__":true,"id":2578}},"2651":{"timestamp":{"__isSmartRef__":true,"id":2652},"user":"jenslincke","tags":[]},"2652":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:58:01 GMT-0800 (PST)"},"2653":{"varMapping":{"__isSmartRef__":true,"id":2654},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2654":{"this":{"__isSmartRef__":true,"id":2578},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2655}},"2655":{"$super":{"__isSmartRef__":true,"id":2656}},"2656":{"varMapping":{"__isSmartRef__":true,"id":2657},"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":2658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2657":{"obj":{"__isSmartRef__":true,"id":2578},"name":"getLastWordRange"},"2658":{},"2659":{"timestamp":{"__isSmartRef__":true,"id":2660},"user":"jenslincke","tags":[]},"2660":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:59:58 GMT-0800 (PST)"},"2661":{"submorphs":[],"scripts":[],"id":"4D073D66-DB15-40AF-8DA8-E42C4F578967","shape":{"__isSmartRef__":true,"id":2662},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":2663},"textChunks":[{"__isSmartRef__":true,"id":2679}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2681},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2553},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2682},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,66.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"2662":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(138.3,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2663":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2664},{"__isSmartRef__":true,"id":2666},{"__isSmartRef__":true,"id":2668},{"__isSmartRef__":true,"id":2670},{"__isSmartRef__":true,"id":2672},{"__isSmartRef__":true,"id":2674},{"__isSmartRef__":true,"id":2676}],"lastModifiedDate":{"__isSmartRef__":true,"id":2678},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2664":{"date":{"__isSmartRef__":true,"id":2665},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2665":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"2666":{"date":{"__isSmartRef__":true,"id":2667},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2667":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"2668":{"date":{"__isSmartRef__":true,"id":2669},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2669":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"2670":{"date":{"__isSmartRef__":true,"id":2671},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2671":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"2672":{"date":{"__isSmartRef__":true,"id":2673},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2673":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"2674":{"date":{"__isSmartRef__":true,"id":2675},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2675":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"2676":{"date":{"__isSmartRef__":true,"id":2677},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2677":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"2678":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"2679":{"style":{"__isSmartRef__":true,"id":2680},"chunkOwner":{"__isSmartRef__":true,"id":2661},"_id":"_11220","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2680":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2681":{"morph":{"__isSmartRef__":true,"id":2661},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2682":{"moveVertical":true,"resizeWidth":true},"2683":{"submorphs":[],"scripts":[],"id":"3283E591-2114-41FE-89C7-E10861706124","shape":{"__isSmartRef__":true,"id":2684},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2685},"textChunks":[{"__isSmartRef__":true,"id":2701}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2703},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2553},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":2704}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2706},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"2684":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(131.8,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2685":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2686},{"__isSmartRef__":true,"id":2688},{"__isSmartRef__":true,"id":2690},{"__isSmartRef__":true,"id":2692},{"__isSmartRef__":true,"id":2694},{"__isSmartRef__":true,"id":2696},{"__isSmartRef__":true,"id":2698}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":2700},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2686":{"date":{"__isSmartRef__":true,"id":2687},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2687":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"2688":{"date":{"__isSmartRef__":true,"id":2689},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2689":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"2690":{"date":{"__isSmartRef__":true,"id":2691},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2691":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"2692":{"date":{"__isSmartRef__":true,"id":2693},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2693":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"2694":{"date":{"__isSmartRef__":true,"id":2695},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2695":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"2696":{"date":{"__isSmartRef__":true,"id":2697},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2697":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"2698":{"date":{"__isSmartRef__":true,"id":2699},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2699":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"2700":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"2701":{"style":{"__isSmartRef__":true,"id":2702},"chunkOwner":{"__isSmartRef__":true,"id":2683},"_id":"_11197","storedString":"Energy: 0\nMax: 360","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2702":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2703":{"morph":{"__isSmartRef__":true,"id":2683},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2704":{"sourceObj":{"__isSmartRef__":true,"id":2683},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2553},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":2705},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2705":{"source":{"__isSmartRef__":true,"id":2683},"target":{"__isSmartRef__":true,"id":2553}},"2706":{"resizeWidth":true},"2707":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(160.1,84.6)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"2708":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":2709},{"__isSmartRef__":true,"id":2711},{"__isSmartRef__":true,"id":2713},{"__isSmartRef__":true,"id":2715},{"__isSmartRef__":true,"id":2717},{"__isSmartRef__":true,"id":2719},{"__isSmartRef__":true,"id":2721},{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2725},{"__isSmartRef__":true,"id":2727},{"__isSmartRef__":true,"id":2729},{"__isSmartRef__":true,"id":2731},{"__isSmartRef__":true,"id":2733},{"__isSmartRef__":true,"id":2735},{"__isSmartRef__":true,"id":2737},{"__isSmartRef__":true,"id":2739},{"__isSmartRef__":true,"id":2741},{"__isSmartRef__":true,"id":2743},{"__isSmartRef__":true,"id":2745},{"__isSmartRef__":true,"id":2747},{"__isSmartRef__":true,"id":2749},{"__isSmartRef__":true,"id":2751},{"__isSmartRef__":true,"id":2753},{"__isSmartRef__":true,"id":2755},{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":2759},{"__isSmartRef__":true,"id":2761},{"__isSmartRef__":true,"id":2763},{"__isSmartRef__":true,"id":2765}],"lastModifiedDate":{"__isSmartRef__":true,"id":2767},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2709":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":2710}},"2710":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"2711":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":2712}},"2712":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"2713":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":2714}},"2714":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"2715":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":2716}},"2716":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"2717":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":2718}},"2718":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"2719":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":2720}},"2720":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"2721":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":2722}},"2722":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"2723":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":2724}},"2724":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"2725":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":2726}},"2726":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"2727":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":2728}},"2728":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"2729":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":2730}},"2730":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"2731":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":2732}},"2732":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"2733":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":2734}},"2734":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"2735":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":2736}},"2736":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"2737":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":2738}},"2738":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"2739":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":2740}},"2740":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"2741":{"date":{"__isSmartRef__":true,"id":2742},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"2742":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:02:28 GMT-0800 (PST)"},"2743":{"date":{"__isSmartRef__":true,"id":2744},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"2744":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:10:08 GMT-0800 (PST)"},"2745":{"date":{"__isSmartRef__":true,"id":2746},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"2746":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:24:55 GMT-0800 (PST)"},"2747":{"date":{"__isSmartRef__":true,"id":2748},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"2748":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:29:33 GMT-0800 (PST)"},"2749":{"date":{"__isSmartRef__":true,"id":2750},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"2750":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:07:26 GMT-0800 (PST)"},"2751":{"date":{"__isSmartRef__":true,"id":2752},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"2752":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:23:13 GMT-0800 (PST)"},"2753":{"date":{"__isSmartRef__":true,"id":2754},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"2754":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:58:48 GMT-0800 (PST)"},"2755":{"date":{"__isSmartRef__":true,"id":2756},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"2756":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:59:27 GMT-0800 (PST)"},"2757":{"date":{"__isSmartRef__":true,"id":2758},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"2758":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:03:44 GMT-0800 (PST)"},"2759":{"date":{"__isSmartRef__":true,"id":2760},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"2760":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:24:12 GMT-0800 (PST)"},"2761":{"date":{"__isSmartRef__":true,"id":2762},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"2762":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:26:15 GMT-0800 (PST)"},"2763":{"date":{"__isSmartRef__":true,"id":2764},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"2764":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:35:38 GMT-0800 (PST)"},"2765":{"date":{"__isSmartRef__":true,"id":2766},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"2766":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:51 GMT-0800 (PST)"},"2767":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:15 GMT-0800 (PST)"},"2768":{"morph":{"__isSmartRef__":true,"id":2553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2769":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2770}},"2770":{"test01IsMorph":{"__isSmartRef__":true,"id":2771}},"2771":{"varMapping":{"__isSmartRef__":true,"id":2772},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2772":{"this":{"__isSmartRef__":true,"id":2769}},"2773":{},"2774":{"morph":{"__isSmartRef__":true,"id":2553},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"2775":{"morph":{"__isSmartRef__":true,"id":2553},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"2776":{"morph":{"__isSmartRef__":true,"id":2553},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"2777":{"morph":{"__isSmartRef__":true,"id":2553},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"2778":{"morph":{"__isSmartRef__":true,"id":2553},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"2779":{"morph":{"__isSmartRef__":true,"id":2553},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"2780":{"morph":{"__isSmartRef__":true,"id":2553},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"2781":{"morph":{"__isSmartRef__":true,"id":2553},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"2782":{"adjustForNewBounds":true},"2783":{"Energy":0,"Max":360},"2784":{"sourceObj":{"__isSmartRef__":true,"id":2553},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":2554},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":2785},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2785":{"source":{"__isSmartRef__":true,"id":2553},"target":{"__isSmartRef__":true,"id":2554}},"2786":{},"2787":{"referencedBy":{"__isSmartRef__":true,"id":2788},"references":{"__isSmartRef__":true,"id":2789}},"2788":{},"2789":{},"2790":{"migrateFrom":{"__isSmartRef__":true,"id":2791},"parsePropeties":{"__isSmartRef__":true,"id":2795},"printProperties":{"__isSmartRef__":true,"id":2799},"parseSimulationSource":{"__isSmartRef__":true,"id":2803},"simulateStep":{"__isSmartRef__":true,"id":2807},"showError":{"__isSmartRef__":true,"id":2810},"throwSimulationProblem":{"__isSmartRef__":true,"id":2814},"updateUI":{"__isSmartRef__":true,"id":2818},"resetStatus":{"__isSmartRef__":true,"id":2822},"simulateOneStep":{"__isSmartRef__":true,"id":2826},"reset":{"__isSmartRef__":true,"id":2830},"resetScriptAnalysis":{"__isSmartRef__":true,"id":2834},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":2838},"logReference":{"__isSmartRef__":true,"id":2842},"showScriptAnalysis":{"__isSmartRef__":true,"id":2846},"showReferenceTo":{"__isSmartRef__":true,"id":2850},"resetSourceHighlighting":{"__isSmartRef__":true,"id":2854},"showNameReference":{"__isSmartRef__":true,"id":2858}},"2791":{"varMapping":{"__isSmartRef__":true,"id":2792},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":2793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2792":{"this":{"__isSmartRef__":true,"id":2553}},"2793":{"timestamp":{"__isSmartRef__":true,"id":2794},"user":"jenslincke","tags":[]},"2794":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:59 GMT-0800 (PST)"},"2795":{"varMapping":{"__isSmartRef__":true,"id":2796},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":2797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2796":{"this":{"__isSmartRef__":true,"id":2553}},"2797":{"timestamp":{"__isSmartRef__":true,"id":2798},"user":"jenslincke","tags":[]},"2798":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:03 GMT-0800 (PST)"},"2799":{"varMapping":{"__isSmartRef__":true,"id":2800},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":2801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2800":{"this":{"__isSmartRef__":true,"id":2553}},"2801":{"timestamp":{"__isSmartRef__":true,"id":2802},"user":"jenslincke","tags":[]},"2802":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:34:48 GMT-0800 (PST)"},"2803":{"varMapping":{"__isSmartRef__":true,"id":2804},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":2805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2804":{"this":{"__isSmartRef__":true,"id":2553}},"2805":{"timestamp":{"__isSmartRef__":true,"id":2806},"user":"jenslincke","tags":[]},"2806":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:12:57 GMT-0800 (PST)"},"2807":{"varMapping":{"__isSmartRef__":true,"id":2808},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":2809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2808":{"this":{"__isSmartRef__":true,"id":2553}},"2809":{},"2810":{"varMapping":{"__isSmartRef__":true,"id":2811},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2811":{"this":{"__isSmartRef__":true,"id":2553}},"2812":{"timestamp":{"__isSmartRef__":true,"id":2813},"user":"jenslincke","tags":[]},"2813":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:11:23 GMT-0800 (PST)"},"2814":{"varMapping":{"__isSmartRef__":true,"id":2815},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":2816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2815":{"this":{"__isSmartRef__":true,"id":2553}},"2816":{"timestamp":{"__isSmartRef__":true,"id":2817},"user":"jenslincke","tags":[]},"2817":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:32:56 GMT-0800 (PST)"},"2818":{"varMapping":{"__isSmartRef__":true,"id":2819},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":2820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2819":{"this":{"__isSmartRef__":true,"id":2553}},"2820":{"timestamp":{"__isSmartRef__":true,"id":2821},"user":"jenslincke","tags":[]},"2821":{"isSerializedDate":true,"string":"Sun Jan 26 2014 06:22:09 GMT-0800 (PST)"},"2822":{"varMapping":{"__isSmartRef__":true,"id":2823},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":2824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2823":{"this":{"__isSmartRef__":true,"id":2553}},"2824":{"timestamp":{"__isSmartRef__":true,"id":2825},"user":"jenslincke","tags":[]},"2825":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:54:04 GMT-0800 (PST)"},"2826":{"varMapping":{"__isSmartRef__":true,"id":2827},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2827":{"this":{"__isSmartRef__":true,"id":2553}},"2828":{"timestamp":{"__isSmartRef__":true,"id":2829},"user":"jenslincke","tags":[]},"2829":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:58 GMT-0800 (PST)"},"2830":{"varMapping":{"__isSmartRef__":true,"id":2831},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":2832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2831":{"this":{"__isSmartRef__":true,"id":2553}},"2832":{"timestamp":{"__isSmartRef__":true,"id":2833},"user":"jenslincke","tags":[]},"2833":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:35:44 GMT-0800 (PST)"},"2834":{"varMapping":{"__isSmartRef__":true,"id":2835},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":2836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2835":{"this":{"__isSmartRef__":true,"id":2553}},"2836":{"timestamp":{"__isSmartRef__":true,"id":2837},"user":"jenslincke","tags":[]},"2837":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:36:12 GMT-0800 (PST)"},"2838":{"varMapping":{"__isSmartRef__":true,"id":2839},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":2840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2839":{"this":{"__isSmartRef__":true,"id":2553}},"2840":{"timestamp":{"__isSmartRef__":true,"id":2841},"user":"jenslincke","tags":[]},"2841":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:09 GMT-0800 (PST)"},"2842":{"varMapping":{"__isSmartRef__":true,"id":2843},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":2844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2843":{"this":{"__isSmartRef__":true,"id":2553}},"2844":{"timestamp":{"__isSmartRef__":true,"id":2845},"user":"jenslincke","tags":[]},"2845":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:15 GMT-0800 (PST)"},"2846":{"varMapping":{"__isSmartRef__":true,"id":2847},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":2848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2847":{"this":{"__isSmartRef__":true,"id":2553}},"2848":{"timestamp":{"__isSmartRef__":true,"id":2849},"user":"jenslincke","tags":[]},"2849":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:26 GMT-0800 (PST)"},"2850":{"varMapping":{"__isSmartRef__":true,"id":2851},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2851":{"this":{"__isSmartRef__":true,"id":2553}},"2852":{"timestamp":{"__isSmartRef__":true,"id":2853},"user":"jenslincke","tags":[]},"2853":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:25 GMT-0800 (PST)"},"2854":{"varMapping":{"__isSmartRef__":true,"id":2855},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":2856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2855":{"this":{"__isSmartRef__":true,"id":2553}},"2856":{"timestamp":{"__isSmartRef__":true,"id":2857},"user":"jenslincke","tags":[]},"2857":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:53:47 GMT-0800 (PST)"},"2858":{"varMapping":{"__isSmartRef__":true,"id":2859},"source":"function showNameReference(name) {\n\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n this.lastNameReference = name;\n\n var morph = this.get(name)\n if (morph) {\n morph.show().invoke(\"setBorderColor\", Color.yellow)\n morph.showScriptAnalysis()\n }\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":2860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2859":{"this":{"__isSmartRef__":true,"id":2553}},"2860":{"timestamp":{"__isSmartRef__":true,"id":2861},"user":"jenslincke","tags":[]},"2861":{"isSerializedDate":true,"string":"Thu Jan 30 2014 02:13:25 GMT-0800 (PST)"},"2862":{"submorphs":[{"__isSmartRef__":true,"id":2863},{"__isSmartRef__":true,"id":2887},{"__isSmartRef__":true,"id":3267},{"__isSmartRef__":true,"id":3289}],"scripts":[],"id":"294A616D-161E-4DE5-8CA2-592699707F67","shape":{"__isSmartRef__":true,"id":3313},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3314},"eventHandler":{"__isSmartRef__":true,"id":3374},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":3375},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":3380},{"__isSmartRef__":true,"id":3381},{"__isSmartRef__":true,"id":3382},{"__isSmartRef__":true,"id":3383},{"__isSmartRef__":true,"id":3384},{"__isSmartRef__":true,"id":3385},{"__isSmartRef__":true,"id":3386},{"__isSmartRef__":true,"id":3387}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":3388},"$":{"__isSmartRef__":true,"id":3389},"name":"ResetSimulation","attributeConnections":[{"__isSmartRef__":true,"id":3390}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":3392},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":3393},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":952},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3396},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(6.8,173.3)"},"2863":{"submorphs":[],"scripts":[],"id":"10B2CDDD-702E-4088-A6A6-624D89F22D94","shape":{"__isSmartRef__":true,"id":2864},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":2865},"textChunks":[{"__isSmartRef__":true,"id":2867}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":2869},{"__isSmartRef__":true,"id":2870}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":2871},"owner":{"__isSmartRef__":true,"id":2862},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":2862},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2872},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"2864":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2865":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":2866},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2866":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"2867":{"style":{"__isSmartRef__":true,"id":2868},"chunkOwner":{"__isSmartRef__":true,"id":2863},"_id":"_5557","storedString":"ResetSimulation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2868":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2869":{"sourceObj":{"__isSmartRef__":true,"id":2863},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2863},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2870":{"sourceObj":{"__isSmartRef__":true,"id":2863},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2863},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2871":{"morph":{"__isSmartRef__":true,"id":2863},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2872":{"updateLabel":{"__isSmartRef__":true,"id":2873},"renameOwner":{"__isSmartRef__":true,"id":2876},"onFocus":{"__isSmartRef__":true,"id":2879}},"2873":{"varMapping":{"__isSmartRef__":true,"id":2874},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":2875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2874":{"this":{"__isSmartRef__":true,"id":2863}},"2875":{},"2876":{"varMapping":{"__isSmartRef__":true,"id":2877},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":2878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2877":{"this":{"__isSmartRef__":true,"id":2863}},"2878":{},"2879":{"varMapping":{"__isSmartRef__":true,"id":2880},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":2885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2880":{"this":{"__isSmartRef__":true,"id":2863},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2881}},"2881":{"$super":{"__isSmartRef__":true,"id":2882}},"2882":{"varMapping":{"__isSmartRef__":true,"id":2883},"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":2884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2883":{"obj":{"__isSmartRef__":true,"id":2863},"name":"onFocus"},"2884":{},"2885":{"timestamp":{"__isSmartRef__":true,"id":2886},"user":"jenslincke","tags":[]},"2886":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:45:12 GMT-0800 (PST)"},"2887":{"submorphs":[],"scripts":[],"id":"3FF23545-3528-45F0-9673-6E078BDA19CA","shape":{"__isSmartRef__":true,"id":2888},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2889},"textChunks":[{"__isSmartRef__":true,"id":2905},{"__isSmartRef__":true,"id":2907},{"__isSmartRef__":true,"id":2910},{"__isSmartRef__":true,"id":2912},{"__isSmartRef__":true,"id":2914},{"__isSmartRef__":true,"id":2916},{"__isSmartRef__":true,"id":2918},{"__isSmartRef__":true,"id":2920},{"__isSmartRef__":true,"id":2922},{"__isSmartRef__":true,"id":2924},{"__isSmartRef__":true,"id":2926},{"__isSmartRef__":true,"id":2929},{"__isSmartRef__":true,"id":2931},{"__isSmartRef__":true,"id":2933},{"__isSmartRef__":true,"id":2935},{"__isSmartRef__":true,"id":2937},{"__isSmartRef__":true,"id":2940},{"__isSmartRef__":true,"id":2942},{"__isSmartRef__":true,"id":2944},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":2948},{"__isSmartRef__":true,"id":2951},{"__isSmartRef__":true,"id":2953},{"__isSmartRef__":true,"id":2955},{"__isSmartRef__":true,"id":2957},{"__isSmartRef__":true,"id":2959},{"__isSmartRef__":true,"id":2961},{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":2965},{"__isSmartRef__":true,"id":2967},{"__isSmartRef__":true,"id":2969},{"__isSmartRef__":true,"id":2971},{"__isSmartRef__":true,"id":2973},{"__isSmartRef__":true,"id":2975},{"__isSmartRef__":true,"id":2977},{"__isSmartRef__":true,"id":2980},{"__isSmartRef__":true,"id":2982},{"__isSmartRef__":true,"id":2984},{"__isSmartRef__":true,"id":2986},{"__isSmartRef__":true,"id":2988},{"__isSmartRef__":true,"id":2990},{"__isSmartRef__":true,"id":2992},{"__isSmartRef__":true,"id":2995},{"__isSmartRef__":true,"id":2997},{"__isSmartRef__":true,"id":2999},{"__isSmartRef__":true,"id":3001},{"__isSmartRef__":true,"id":3003},{"__isSmartRef__":true,"id":3005},{"__isSmartRef__":true,"id":3007},{"__isSmartRef__":true,"id":3010},{"__isSmartRef__":true,"id":3012},{"__isSmartRef__":true,"id":3014},{"__isSmartRef__":true,"id":3016},{"__isSmartRef__":true,"id":3018},{"__isSmartRef__":true,"id":3020},{"__isSmartRef__":true,"id":3022},{"__isSmartRef__":true,"id":3025},{"__isSmartRef__":true,"id":3027},{"__isSmartRef__":true,"id":3029},{"__isSmartRef__":true,"id":3031},{"__isSmartRef__":true,"id":3033},{"__isSmartRef__":true,"id":3035},{"__isSmartRef__":true,"id":3037},{"__isSmartRef__":true,"id":3040},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3046},{"__isSmartRef__":true,"id":3048},{"__isSmartRef__":true,"id":3050},{"__isSmartRef__":true,"id":3052},{"__isSmartRef__":true,"id":3055},{"__isSmartRef__":true,"id":3057},{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3061},{"__isSmartRef__":true,"id":3063},{"__isSmartRef__":true,"id":3065},{"__isSmartRef__":true,"id":3067},{"__isSmartRef__":true,"id":3070},{"__isSmartRef__":true,"id":3072},{"__isSmartRef__":true,"id":3074},{"__isSmartRef__":true,"id":3076},{"__isSmartRef__":true,"id":3078},{"__isSmartRef__":true,"id":3080},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":3085},{"__isSmartRef__":true,"id":3087},{"__isSmartRef__":true,"id":3089},{"__isSmartRef__":true,"id":3091},{"__isSmartRef__":true,"id":3093},{"__isSmartRef__":true,"id":3095},{"__isSmartRef__":true,"id":3097},{"__isSmartRef__":true,"id":3100},{"__isSmartRef__":true,"id":3102},{"__isSmartRef__":true,"id":3104},{"__isSmartRef__":true,"id":3106},{"__isSmartRef__":true,"id":3108},{"__isSmartRef__":true,"id":3110},{"__isSmartRef__":true,"id":3112},{"__isSmartRef__":true,"id":3115},{"__isSmartRef__":true,"id":3117},{"__isSmartRef__":true,"id":3119},{"__isSmartRef__":true,"id":3121},{"__isSmartRef__":true,"id":3123},{"__isSmartRef__":true,"id":3125},{"__isSmartRef__":true,"id":3127},{"__isSmartRef__":true,"id":3130},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":3134},{"__isSmartRef__":true,"id":3136},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3140},{"__isSmartRef__":true,"id":3142},{"__isSmartRef__":true,"id":3145},{"__isSmartRef__":true,"id":3147},{"__isSmartRef__":true,"id":3149},{"__isSmartRef__":true,"id":3151},{"__isSmartRef__":true,"id":3153},{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3157},{"__isSmartRef__":true,"id":3159},{"__isSmartRef__":true,"id":3161},{"__isSmartRef__":true,"id":3163},{"__isSmartRef__":true,"id":3165},{"__isSmartRef__":true,"id":3167},{"__isSmartRef__":true,"id":3170},{"__isSmartRef__":true,"id":3172},{"__isSmartRef__":true,"id":3174},{"__isSmartRef__":true,"id":3176},{"__isSmartRef__":true,"id":3178},{"__isSmartRef__":true,"id":3180},{"__isSmartRef__":true,"id":3182},{"__isSmartRef__":true,"id":3184},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3188},{"__isSmartRef__":true,"id":3190},{"__isSmartRef__":true,"id":3192},{"__isSmartRef__":true,"id":3195},{"__isSmartRef__":true,"id":3197},{"__isSmartRef__":true,"id":3199},{"__isSmartRef__":true,"id":3202}],"charsReplaced":"","lastFindLoc":584,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3204},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":3205},{"__isSmartRef__":true,"id":3206},{"__isSmartRef__":true,"id":3207},{"__isSmartRef__":true,"id":3208},{"__isSmartRef__":true,"id":3209},{"__isSmartRef__":true,"id":3210},{"__isSmartRef__":true,"id":3211},{"__isSmartRef__":true,"id":3212}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3213},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":2862},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","attributeConnections":[{"__isSmartRef__":true,"id":3214},{"__isSmartRef__":true,"id":3216}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":117,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"#MeasureData.$.Time = Date.now() / 1000\n#MeasureData.$.Start = #MeasureData.$.Time\n#Fuel.$.Gas = 5 * 2 * 3600 // two hours gas\n#HeatStorage.$.Energy = 0\n#Battery.$.Energy = 0 \n#ElectricConsumer.$.Consumed = 0\n#ElectricConsumer.$.Demand = 1.5\n#ElectricConsumer.$.Extra = 0\n#HeatConsumer.$.Consumed = 0\n#HeatConsumer.$.Demand = 3\n#HeatConsumer.$.Extra = 0\n#ThermalPowerStation.$.Heat = 0\n#HeatingSystem.$.Heat = 0\n#MeasureData.$.Counter = 10000\n#Battery.$.Max = 0.1 * 3600 // 1h 2kw\n#HeatStorage.$.Max = 0.1 * 3600 // 1h 3kw\n#SimulationResults.resetData()\n#SimulationResults.showData()\n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3218},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"2888":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__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(327.5,291.4)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2889":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2890},{"__isSmartRef__":true,"id":2892},{"__isSmartRef__":true,"id":2894},{"__isSmartRef__":true,"id":2896},{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2900},{"__isSmartRef__":true,"id":2902}],"lastModifiedDate":{"__isSmartRef__":true,"id":2904},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2890":{"date":{"__isSmartRef__":true,"id":2891},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2891":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"2892":{"date":{"__isSmartRef__":true,"id":2893},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2893":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"2894":{"date":{"__isSmartRef__":true,"id":2895},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2895":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"2896":{"date":{"__isSmartRef__":true,"id":2897},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2897":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"2898":{"date":{"__isSmartRef__":true,"id":2899},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2899":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"2900":{"date":{"__isSmartRef__":true,"id":2901},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2901":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"2902":{"date":{"__isSmartRef__":true,"id":2903},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2903":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"2904":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"2905":{"style":{"__isSmartRef__":true,"id":2906},"chunkOwner":{"__isSmartRef__":true,"id":2887},"_id":"_15","storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2906":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2907":{"_id":"_286","style":{"__isSmartRef__":true,"id":2908},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"MeasureData","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2908":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":2909},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2909":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"MeasureData\")","context":{"__isSmartRef__":true,"id":2862}},"2910":{"_id":"_285","style":{"__isSmartRef__":true,"id":2911},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2911":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"2912":{"_id":"_287","style":{"__isSmartRef__":true,"id":2913},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Time","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2913":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2914":{"_id":"_288","style":{"__isSmartRef__":true,"id":2915},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2915":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2916":{"_id":"_235","style":{"__isSmartRef__":true,"id":2917},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Date","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2917":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(255,20,147)"},"2918":{"_id":"_236","style":{"__isSmartRef__":true,"id":2919},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".now() / ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2919":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2920":{"_id":"_237","style":{"__isSmartRef__":true,"id":2921},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"1000","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2921":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"2922":{"_id":"_238","style":{"__isSmartRef__":true,"id":2923},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2923":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2924":{"_id":"_289","style":{"__isSmartRef__":true,"id":2925},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2925":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2926":{"_id":"_291","style":{"__isSmartRef__":true,"id":2927},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"MeasureData","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2927":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":2928},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2928":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"MeasureData\")","context":{"__isSmartRef__":true,"id":2862}},"2929":{"_id":"_290","style":{"__isSmartRef__":true,"id":2930},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2930":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"2931":{"_id":"_292","style":{"__isSmartRef__":true,"id":2932},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Start","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2932":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2933":{"_id":"_293","style":{"__isSmartRef__":true,"id":2934},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2934":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2935":{"_id":"_294","style":{"__isSmartRef__":true,"id":2936},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2936":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2937":{"_id":"_296","style":{"__isSmartRef__":true,"id":2938},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"MeasureData","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2938":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":2939},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2939":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"MeasureData\")","context":{"__isSmartRef__":true,"id":2862}},"2940":{"_id":"_295","style":{"__isSmartRef__":true,"id":2941},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2941":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"2942":{"_id":"_297","style":{"__isSmartRef__":true,"id":2943},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Time","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2943":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2944":{"_id":"_298","style":{"__isSmartRef__":true,"id":2945},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2945":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2946":{"_id":"_299","style":{"__isSmartRef__":true,"id":2947},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2947":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2948":{"_id":"_301","style":{"__isSmartRef__":true,"id":2949},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Fuel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2949":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":2950},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2950":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Fuel\")","context":{"__isSmartRef__":true,"id":2862}},"2951":{"_id":"_300","style":{"__isSmartRef__":true,"id":2952},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2952":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"2953":{"_id":"_302","style":{"__isSmartRef__":true,"id":2954},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2954":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2955":{"_id":"_303","style":{"__isSmartRef__":true,"id":2956},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2956":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2957":{"_id":"_239","style":{"__isSmartRef__":true,"id":2958},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2958":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"2959":{"_id":"_240","style":{"__isSmartRef__":true,"id":2960},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2960":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2961":{"_id":"_241","style":{"__isSmartRef__":true,"id":2962},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2962":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"2963":{"_id":"_242","style":{"__isSmartRef__":true,"id":2964},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2964":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2965":{"_id":"_243","style":{"__isSmartRef__":true,"id":2966},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"3600","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2966":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"2967":{"_id":"_244","style":{"__isSmartRef__":true,"id":2968},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2968":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2969":{"_id":"_245","style":{"__isSmartRef__":true,"id":2970},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2970":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"2971":{"_id":"_246","style":{"__isSmartRef__":true,"id":2972},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" two hours gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2972":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"2973":{"_id":"_247","style":{"__isSmartRef__":true,"id":2974},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2974":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2975":{"_id":"_304","style":{"__isSmartRef__":true,"id":2976},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2976":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2977":{"_id":"_306","style":{"__isSmartRef__":true,"id":2978},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2978":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":2979},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2979":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":2862}},"2980":{"_id":"_305","style":{"__isSmartRef__":true,"id":2981},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2981":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"2982":{"_id":"_307","style":{"__isSmartRef__":true,"id":2983},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2983":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2984":{"_id":"_308","style":{"__isSmartRef__":true,"id":2985},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2985":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2986":{"_id":"_248","style":{"__isSmartRef__":true,"id":2987},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2987":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"2988":{"_id":"_249","style":{"__isSmartRef__":true,"id":2989},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2989":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2990":{"_id":"_309","style":{"__isSmartRef__":true,"id":2991},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2991":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2992":{"_id":"_311","style":{"__isSmartRef__":true,"id":2993},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2993":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":2994},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2994":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":2862}},"2995":{"_id":"_310","style":{"__isSmartRef__":true,"id":2996},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2996":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"2997":{"_id":"_312","style":{"__isSmartRef__":true,"id":2998},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2998":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"2999":{"_id":"_313","style":{"__isSmartRef__":true,"id":3000},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3000":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3001":{"_id":"_250","style":{"__isSmartRef__":true,"id":3002},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3002":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3003":{"_id":"_251","style":{"__isSmartRef__":true,"id":3004},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3004":{"__serializedExpressions__":["backgroundColor"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","backgroundColor":"Color.rgba(204,204,0,0.4)"},"3005":{"_id":"_252","style":{"__isSmartRef__":true,"id":3006},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3006":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3007":{"_id":"_315","style":{"__isSmartRef__":true,"id":3008},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"ElectricConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3008":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3009},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3009":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"ElectricConsumer\")","context":{"__isSmartRef__":true,"id":2862}},"3010":{"_id":"_314","style":{"__isSmartRef__":true,"id":3011},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3011":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3012":{"_id":"_316","style":{"__isSmartRef__":true,"id":3013},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Consumed","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3013":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3014":{"_id":"_317","style":{"__isSmartRef__":true,"id":3015},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3015":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3016":{"_id":"_253","style":{"__isSmartRef__":true,"id":3017},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3017":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3018":{"_id":"_254","style":{"__isSmartRef__":true,"id":3019},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3019":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3020":{"_id":"_318","style":{"__isSmartRef__":true,"id":3021},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3021":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3022":{"_id":"_320","style":{"__isSmartRef__":true,"id":3023},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"ElectricConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3023":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3024},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3024":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"ElectricConsumer\")","context":{"__isSmartRef__":true,"id":2862}},"3025":{"_id":"_319","style":{"__isSmartRef__":true,"id":3026},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3026":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3027":{"_id":"_321","style":{"__isSmartRef__":true,"id":3028},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Demand","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3028":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3029":{"_id":"_322","style":{"__isSmartRef__":true,"id":3030},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3030":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3031":{"_id":"_255","style":{"__isSmartRef__":true,"id":3032},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"1.5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3032":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3033":{"_id":"_256","style":{"__isSmartRef__":true,"id":3034},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3034":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3035":{"_id":"_323","style":{"__isSmartRef__":true,"id":3036},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3036":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3037":{"_id":"_325","style":{"__isSmartRef__":true,"id":3038},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"ElectricConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3038":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3039},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3039":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"ElectricConsumer\")","context":{"__isSmartRef__":true,"id":2862}},"3040":{"_id":"_324","style":{"__isSmartRef__":true,"id":3041},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3041":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3042":{"_id":"_326","style":{"__isSmartRef__":true,"id":3043},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Extra","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3043":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3044":{"_id":"_327","style":{"__isSmartRef__":true,"id":3045},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3045":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3046":{"_id":"_257","style":{"__isSmartRef__":true,"id":3047},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3047":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3048":{"_id":"_258","style":{"__isSmartRef__":true,"id":3049},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3049":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3050":{"_id":"_328","style":{"__isSmartRef__":true,"id":3051},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3051":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3052":{"_id":"_330","style":{"__isSmartRef__":true,"id":3053},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"HeatConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3053":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3054},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3054":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatConsumer\")","context":{"__isSmartRef__":true,"id":2862}},"3055":{"_id":"_329","style":{"__isSmartRef__":true,"id":3056},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3056":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3057":{"_id":"_331","style":{"__isSmartRef__":true,"id":3058},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Consumed","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3058":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3059":{"_id":"_332","style":{"__isSmartRef__":true,"id":3060},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3060":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3061":{"_id":"_259","style":{"__isSmartRef__":true,"id":3062},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3062":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3063":{"_id":"_260","style":{"__isSmartRef__":true,"id":3064},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3064":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3065":{"_id":"_333","style":{"__isSmartRef__":true,"id":3066},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3066":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3067":{"_id":"_335","style":{"__isSmartRef__":true,"id":3068},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"HeatConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3068":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3069},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3069":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatConsumer\")","context":{"__isSmartRef__":true,"id":2862}},"3070":{"_id":"_334","style":{"__isSmartRef__":true,"id":3071},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3071":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3072":{"_id":"_336","style":{"__isSmartRef__":true,"id":3073},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Demand","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3073":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3074":{"_id":"_337","style":{"__isSmartRef__":true,"id":3075},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3075":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3076":{"_id":"_261","style":{"__isSmartRef__":true,"id":3077},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"3","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3077":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3078":{"_id":"_262","style":{"__isSmartRef__":true,"id":3079},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3079":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3080":{"_id":"_338","style":{"__isSmartRef__":true,"id":3081},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3081":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3082":{"_id":"_340","style":{"__isSmartRef__":true,"id":3083},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"HeatConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3083":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3084},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3084":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatConsumer\")","context":{"__isSmartRef__":true,"id":2862}},"3085":{"_id":"_339","style":{"__isSmartRef__":true,"id":3086},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3086":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3087":{"_id":"_341","style":{"__isSmartRef__":true,"id":3088},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Extra","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3088":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3089":{"_id":"_342","style":{"__isSmartRef__":true,"id":3090},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3090":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3091":{"_id":"_263","style":{"__isSmartRef__":true,"id":3092},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3092":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3093":{"_id":"_264","style":{"__isSmartRef__":true,"id":3094},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3094":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3095":{"_id":"_343","style":{"__isSmartRef__":true,"id":3096},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3096":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3097":{"_id":"_345","style":{"__isSmartRef__":true,"id":3098},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"ThermalPowerStation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3098":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3099},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3099":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"ThermalPowerStation\")","context":{"__isSmartRef__":true,"id":2862}},"3100":{"_id":"_344","style":{"__isSmartRef__":true,"id":3101},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3101":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3102":{"_id":"_346","style":{"__isSmartRef__":true,"id":3103},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3103":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3104":{"_id":"_347","style":{"__isSmartRef__":true,"id":3105},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3105":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3106":{"_id":"_265","style":{"__isSmartRef__":true,"id":3107},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3107":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3108":{"_id":"_266","style":{"__isSmartRef__":true,"id":3109},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3109":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3110":{"_id":"_348","style":{"__isSmartRef__":true,"id":3111},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3111":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3112":{"_id":"_350","style":{"__isSmartRef__":true,"id":3113},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"HeatingSystem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3113":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3114},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3114":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatingSystem\")","context":{"__isSmartRef__":true,"id":2862}},"3115":{"_id":"_349","style":{"__isSmartRef__":true,"id":3116},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3116":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3117":{"_id":"_351","style":{"__isSmartRef__":true,"id":3118},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3118":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3119":{"_id":"_352","style":{"__isSmartRef__":true,"id":3120},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3120":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3121":{"_id":"_267","style":{"__isSmartRef__":true,"id":3122},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3122":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3123":{"_id":"_268","style":{"__isSmartRef__":true,"id":3124},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3124":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3125":{"_id":"_353","style":{"__isSmartRef__":true,"id":3126},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3126":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3127":{"_id":"_355","style":{"__isSmartRef__":true,"id":3128},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"MeasureData","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3128":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3129},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3129":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"MeasureData\")","context":{"__isSmartRef__":true,"id":2862}},"3130":{"_id":"_354","style":{"__isSmartRef__":true,"id":3131},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3131":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3132":{"_id":"_356","style":{"__isSmartRef__":true,"id":3133},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Counter","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3133":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3134":{"_id":"_357","style":{"__isSmartRef__":true,"id":3135},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3135":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3136":{"_id":"_269","style":{"__isSmartRef__":true,"id":3137},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"10000","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3137":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3138":{"_id":"_270","style":{"__isSmartRef__":true,"id":3139},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3139":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3140":{"_id":"_358","style":{"__isSmartRef__":true,"id":3141},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3141":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3142":{"_id":"_360","style":{"__isSmartRef__":true,"id":3143},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3143":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3144},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3144":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":2862}},"3145":{"_id":"_359","style":{"__isSmartRef__":true,"id":3146},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3146":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3147":{"_id":"_361","style":{"__isSmartRef__":true,"id":3148},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3148":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3149":{"_id":"_362","style":{"__isSmartRef__":true,"id":3150},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3150":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3151":{"_id":"_271","style":{"__isSmartRef__":true,"id":3152},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0.1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3152":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3153":{"_id":"_272","style":{"__isSmartRef__":true,"id":3154},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3154":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3155":{"_id":"_273","style":{"__isSmartRef__":true,"id":3156},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"3600","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3156":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3157":{"_id":"_274","style":{"__isSmartRef__":true,"id":3158},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3158":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3159":{"_id":"_275","style":{"__isSmartRef__":true,"id":3160},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3160":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"3161":{"_id":"_276","style":{"__isSmartRef__":true,"id":3162},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" 1h 2kw","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3162":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3163":{"_id":"_277","style":{"__isSmartRef__":true,"id":3164},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3164":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3165":{"_id":"_363","style":{"__isSmartRef__":true,"id":3166},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3166":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3167":{"_id":"_365","style":{"__isSmartRef__":true,"id":3168},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3168":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3169},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3169":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":2862}},"3170":{"_id":"_364","style":{"__isSmartRef__":true,"id":3171},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3171":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"3172":{"_id":"_366","style":{"__isSmartRef__":true,"id":3173},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"Max","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3173":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3174":{"_id":"_367","style":{"__isSmartRef__":true,"id":3175},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3175":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3176":{"_id":"_278","style":{"__isSmartRef__":true,"id":3177},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"0.1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3177":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3178":{"_id":"_279","style":{"__isSmartRef__":true,"id":3179},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3179":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3180":{"_id":"_280","style":{"__isSmartRef__":true,"id":3181},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"3600","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3181":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3182":{"_id":"_281","style":{"__isSmartRef__":true,"id":3183},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3183":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3184":{"_id":"_282","style":{"__isSmartRef__":true,"id":3185},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3185":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"3186":{"_id":"_283","style":{"__isSmartRef__":true,"id":3187},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":" 1h 3kw","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3187":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3188":{"_id":"_284","style":{"__isSmartRef__":true,"id":3189},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3189":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3190":{"_id":"_368","style":{"__isSmartRef__":true,"id":3191},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3191":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3192":{"_id":"_370","style":{"__isSmartRef__":true,"id":3193},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"SimulationResults","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3193":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3194},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3194":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"SimulationResults\")","context":{"__isSmartRef__":true,"id":2862}},"3195":{"_id":"_369","style":{"__isSmartRef__":true,"id":3196},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".resetData()\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3196":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3197":{"_id":"_371","style":{"__isSmartRef__":true,"id":3198},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3198":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3199":{"_id":"_373","style":{"__isSmartRef__":true,"id":3200},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":"SimulationResults","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3200":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":3201},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"3201":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"SimulationResults\")","context":{"__isSmartRef__":true,"id":2862}},"3202":{"_id":"_372","style":{"__isSmartRef__":true,"id":3203},"chunkOwner":{"__isSmartRef__":true,"id":2887},"storedString":".showData()\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3203":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3204":{"morph":{"__isSmartRef__":true,"id":2887},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3205":{"morph":{"__isSmartRef__":true,"id":2887},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"3206":{"morph":{"__isSmartRef__":true,"id":2887},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"3207":{"morph":{"__isSmartRef__":true,"id":2887},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"3208":{"morph":{"__isSmartRef__":true,"id":2887},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"3209":{"morph":{"__isSmartRef__":true,"id":2887},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"3210":{"morph":{"__isSmartRef__":true,"id":2887},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"3211":{"morph":{"__isSmartRef__":true,"id":2887},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"3212":{"morph":{"__isSmartRef__":true,"id":2887},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"3213":{"resizeWidth":true,"resizeHeight":true},"3214":{"sourceObj":{"__isSmartRef__":true,"id":2887},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2862},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":3215},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3215":{"source":{"__isSmartRef__":true,"id":2887},"target":{"__isSmartRef__":true,"id":2862}},"3216":{"sourceObj":{"__isSmartRef__":true,"id":2887},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":2887},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":3217},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3217":{"source":{"__isSmartRef__":true,"id":2887},"target":{"__isSmartRef__":true,"id":2887}},"3218":{"boundEval":{"__isSmartRef__":true,"id":3219},"getDoitContext":{"__isSmartRef__":true,"id":3227},"installLayers":{"__isSmartRef__":true,"id":3235},"onLoad":{"__isSmartRef__":true,"id":3239},"highligtScriptNames":{"__isSmartRef__":true,"id":3243},"getAutoCompletion":{"__isSmartRef__":true,"id":3247},"reset":{"__isSmartRef__":true,"id":3255},"getLastWordRange":{"__isSmartRef__":true,"id":3259}},"3219":{"varMapping":{"__isSmartRef__":true,"id":3220},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3220":{"this":{"__isSmartRef__":true,"id":2887},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3221}},"3221":{"$super":{"__isSmartRef__":true,"id":3222}},"3222":{"varMapping":{"__isSmartRef__":true,"id":3223},"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":3224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3223":{"obj":{"__isSmartRef__":true,"id":2887},"name":"boundEval"},"3224":{},"3225":{"timestamp":{"__isSmartRef__":true,"id":3226},"user":"jenslincke","tags":[]},"3226":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:28:47 GMT-0800 (PST)"},"3227":{"varMapping":{"__isSmartRef__":true,"id":3228},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3228":{"this":{"__isSmartRef__":true,"id":2887},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3229}},"3229":{"$super":{"__isSmartRef__":true,"id":3230}},"3230":{"varMapping":{"__isSmartRef__":true,"id":3231},"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":3232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3231":{"obj":{"__isSmartRef__":true,"id":2887},"name":"getDoitContext"},"3232":{},"3233":{"timestamp":{"__isSmartRef__":true,"id":3234},"user":"jenslincke","tags":[]},"3234":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:42:09 GMT-0800 (PST)"},"3235":{"varMapping":{"__isSmartRef__":true,"id":3236},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":3237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3236":{"this":{"__isSmartRef__":true,"id":2887}},"3237":{"timestamp":{"__isSmartRef__":true,"id":3238},"user":"jenslincke","tags":[]},"3238":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:44 GMT-0800 (PST)"},"3239":{"varMapping":{"__isSmartRef__":true,"id":3240},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":3241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3240":{"this":{"__isSmartRef__":true,"id":2887}},"3241":{"timestamp":{"__isSmartRef__":true,"id":3242},"user":"jenslincke","tags":[]},"3242":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:45 GMT-0800 (PST)"},"3243":{"varMapping":{"__isSmartRef__":true,"id":3244},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":3245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3244":{"this":{"__isSmartRef__":true,"id":2887}},"3245":{"timestamp":{"__isSmartRef__":true,"id":3246},"user":"jenslincke","tags":[]},"3246":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:25:07 GMT-0800 (PST)"},"3247":{"varMapping":{"__isSmartRef__":true,"id":3248},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":3253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3248":{"this":{"__isSmartRef__":true,"id":2887},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3249}},"3249":{"$super":{"__isSmartRef__":true,"id":3250}},"3250":{"varMapping":{"__isSmartRef__":true,"id":3251},"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":3252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3251":{"obj":{"__isSmartRef__":true,"id":2887},"name":"getAutoCompletion"},"3252":{},"3253":{"timestamp":{"__isSmartRef__":true,"id":3254},"user":"jenslincke","tags":[]},"3254":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:33:17 GMT-0800 (PST)"},"3255":{"varMapping":{"__isSmartRef__":true,"id":3256},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":3257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3256":{"this":{"__isSmartRef__":true,"id":2887}},"3257":{"timestamp":{"__isSmartRef__":true,"id":3258},"user":"jenslincke","tags":[]},"3258":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:58:01 GMT-0800 (PST)"},"3259":{"varMapping":{"__isSmartRef__":true,"id":3260},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3260":{"this":{"__isSmartRef__":true,"id":2887},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3261}},"3261":{"$super":{"__isSmartRef__":true,"id":3262}},"3262":{"varMapping":{"__isSmartRef__":true,"id":3263},"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":3264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3263":{"obj":{"__isSmartRef__":true,"id":2887},"name":"getLastWordRange"},"3264":{},"3265":{"timestamp":{"__isSmartRef__":true,"id":3266},"user":"jenslincke","tags":[]},"3266":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:59:58 GMT-0800 (PST)"},"3267":{"submorphs":[],"scripts":[],"id":"63BCCD66-A3EA-4C8E-8F37-69A233EE6D4C","shape":{"__isSmartRef__":true,"id":3268},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":3269},"textChunks":[{"__isSmartRef__":true,"id":3285}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3287},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2862},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3288},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,376.4)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"3268":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(319.6,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3269":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3270},{"__isSmartRef__":true,"id":3272},{"__isSmartRef__":true,"id":3274},{"__isSmartRef__":true,"id":3276},{"__isSmartRef__":true,"id":3278},{"__isSmartRef__":true,"id":3280},{"__isSmartRef__":true,"id":3282}],"lastModifiedDate":{"__isSmartRef__":true,"id":3284},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3270":{"date":{"__isSmartRef__":true,"id":3271},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3271":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"3272":{"date":{"__isSmartRef__":true,"id":3273},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3273":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"3274":{"date":{"__isSmartRef__":true,"id":3275},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3275":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"3276":{"date":{"__isSmartRef__":true,"id":3277},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3277":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"3278":{"date":{"__isSmartRef__":true,"id":3279},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3279":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"3280":{"date":{"__isSmartRef__":true,"id":3281},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3281":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"3282":{"date":{"__isSmartRef__":true,"id":3283},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3283":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"3284":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"3285":{"style":{"__isSmartRef__":true,"id":3286},"chunkOwner":{"__isSmartRef__":true,"id":3267},"_id":"_11222","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3286":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3287":{"morph":{"__isSmartRef__":true,"id":3267},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3288":{"moveVertical":true,"resizeWidth":true},"3289":{"submorphs":[],"scripts":[],"id":"7325C08F-7DFE-484C-96CF-EB88EA38F2A5","shape":{"__isSmartRef__":true,"id":3290},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":3291},"textChunks":[{"__isSmartRef__":true,"id":3307}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3309},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2862},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":3310}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3312},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"3290":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(313.1,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3291":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3292},{"__isSmartRef__":true,"id":3294},{"__isSmartRef__":true,"id":3296},{"__isSmartRef__":true,"id":3298},{"__isSmartRef__":true,"id":3300},{"__isSmartRef__":true,"id":3302},{"__isSmartRef__":true,"id":3304}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":3306},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3292":{"date":{"__isSmartRef__":true,"id":3293},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3293":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"3294":{"date":{"__isSmartRef__":true,"id":3295},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3295":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"3296":{"date":{"__isSmartRef__":true,"id":3297},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3297":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"3298":{"date":{"__isSmartRef__":true,"id":3299},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3299":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"3300":{"date":{"__isSmartRef__":true,"id":3301},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3301":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"3302":{"date":{"__isSmartRef__":true,"id":3303},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3303":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"3304":{"date":{"__isSmartRef__":true,"id":3305},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3305":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"3306":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"3307":{"style":{"__isSmartRef__":true,"id":3308},"chunkOwner":{"__isSmartRef__":true,"id":3289},"_id":"_11198","storedString":"Stopped: true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3308":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3309":{"morph":{"__isSmartRef__":true,"id":3289},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3310":{"sourceObj":{"__isSmartRef__":true,"id":3289},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2862},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":3311},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3311":{"source":{"__isSmartRef__":true,"id":3289},"target":{"__isSmartRef__":true,"id":2862}},"3312":{"resizeWidth":true},"3313":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(341.4,394.2)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"3314":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":3315},{"__isSmartRef__":true,"id":3317},{"__isSmartRef__":true,"id":3319},{"__isSmartRef__":true,"id":3321},{"__isSmartRef__":true,"id":3323},{"__isSmartRef__":true,"id":3325},{"__isSmartRef__":true,"id":3327},{"__isSmartRef__":true,"id":3329},{"__isSmartRef__":true,"id":3331},{"__isSmartRef__":true,"id":3333},{"__isSmartRef__":true,"id":3335},{"__isSmartRef__":true,"id":3337},{"__isSmartRef__":true,"id":3339},{"__isSmartRef__":true,"id":3341},{"__isSmartRef__":true,"id":3343},{"__isSmartRef__":true,"id":3345},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":3349},{"__isSmartRef__":true,"id":3351},{"__isSmartRef__":true,"id":3353},{"__isSmartRef__":true,"id":3355},{"__isSmartRef__":true,"id":3357},{"__isSmartRef__":true,"id":3359},{"__isSmartRef__":true,"id":3361},{"__isSmartRef__":true,"id":3363},{"__isSmartRef__":true,"id":3365},{"__isSmartRef__":true,"id":3367},{"__isSmartRef__":true,"id":3369},{"__isSmartRef__":true,"id":3371}],"lastModifiedDate":{"__isSmartRef__":true,"id":3373},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3315":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":3316}},"3316":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"3317":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":3318}},"3318":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"3319":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":3320}},"3320":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"3321":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":3322}},"3322":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"3323":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":3324}},"3324":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"3325":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":3326}},"3326":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"3327":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":3328}},"3328":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"3329":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":3330}},"3330":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"3331":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":3332}},"3332":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"3333":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":3334}},"3334":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"3335":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":3336}},"3336":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"3337":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":3338}},"3338":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"3339":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":3340}},"3340":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"3341":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":3342}},"3342":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"3343":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":3344}},"3344":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"3345":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":3346}},"3346":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"3347":{"date":{"__isSmartRef__":true,"id":3348},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"3348":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:02:28 GMT-0800 (PST)"},"3349":{"date":{"__isSmartRef__":true,"id":3350},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"3350":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:10:08 GMT-0800 (PST)"},"3351":{"date":{"__isSmartRef__":true,"id":3352},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"3352":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:24:55 GMT-0800 (PST)"},"3353":{"date":{"__isSmartRef__":true,"id":3354},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"3354":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:29:33 GMT-0800 (PST)"},"3355":{"date":{"__isSmartRef__":true,"id":3356},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"3356":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:07:26 GMT-0800 (PST)"},"3357":{"date":{"__isSmartRef__":true,"id":3358},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"3358":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:23:13 GMT-0800 (PST)"},"3359":{"date":{"__isSmartRef__":true,"id":3360},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"3360":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:58:48 GMT-0800 (PST)"},"3361":{"date":{"__isSmartRef__":true,"id":3362},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"3362":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:59:27 GMT-0800 (PST)"},"3363":{"date":{"__isSmartRef__":true,"id":3364},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"3364":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:03:44 GMT-0800 (PST)"},"3365":{"date":{"__isSmartRef__":true,"id":3366},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"3366":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:24:12 GMT-0800 (PST)"},"3367":{"date":{"__isSmartRef__":true,"id":3368},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"3368":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:26:15 GMT-0800 (PST)"},"3369":{"date":{"__isSmartRef__":true,"id":3370},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"3370":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:35:38 GMT-0800 (PST)"},"3371":{"date":{"__isSmartRef__":true,"id":3372},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"3372":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:51 GMT-0800 (PST)"},"3373":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:15 GMT-0800 (PST)"},"3374":{"morph":{"__isSmartRef__":true,"id":2862},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3375":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3376}},"3376":{"test01IsMorph":{"__isSmartRef__":true,"id":3377}},"3377":{"varMapping":{"__isSmartRef__":true,"id":3378},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3378":{"this":{"__isSmartRef__":true,"id":3375}},"3379":{},"3380":{"morph":{"__isSmartRef__":true,"id":2862},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"3381":{"morph":{"__isSmartRef__":true,"id":2862},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"3382":{"morph":{"__isSmartRef__":true,"id":2862},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"3383":{"morph":{"__isSmartRef__":true,"id":2862},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"3384":{"morph":{"__isSmartRef__":true,"id":2862},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"3385":{"morph":{"__isSmartRef__":true,"id":2862},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"3386":{"morph":{"__isSmartRef__":true,"id":2862},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"3387":{"morph":{"__isSmartRef__":true,"id":2862},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"3388":{"adjustForNewBounds":true},"3389":{"Stopped":true},"3390":{"sourceObj":{"__isSmartRef__":true,"id":2862},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":2863},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":3391},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3391":{"source":{"__isSmartRef__":true,"id":2862},"target":{"__isSmartRef__":true,"id":2863}},"3392":{},"3393":{"referencedBy":{"__isSmartRef__":true,"id":3394},"references":{"__isSmartRef__":true,"id":3395}},"3394":{},"3395":{},"3396":{"migrateFrom":{"__isSmartRef__":true,"id":3397},"parsePropeties":{"__isSmartRef__":true,"id":3401},"printProperties":{"__isSmartRef__":true,"id":3405},"parseSimulationSource":{"__isSmartRef__":true,"id":3409},"simulateStep":{"__isSmartRef__":true,"id":3413},"showError":{"__isSmartRef__":true,"id":3416},"throwSimulationProblem":{"__isSmartRef__":true,"id":3420},"updateUI":{"__isSmartRef__":true,"id":3424},"resetStatus":{"__isSmartRef__":true,"id":3428},"simulateOneStep":{"__isSmartRef__":true,"id":3432},"reset":{"__isSmartRef__":true,"id":3436},"resetScriptAnalysis":{"__isSmartRef__":true,"id":3440},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":3444},"logReference":{"__isSmartRef__":true,"id":3448},"showScriptAnalysis":{"__isSmartRef__":true,"id":3452},"showReferenceTo":{"__isSmartRef__":true,"id":3456},"resetSourceHighlighting":{"__isSmartRef__":true,"id":3460},"showNameReference":{"__isSmartRef__":true,"id":3464}},"3397":{"varMapping":{"__isSmartRef__":true,"id":3398},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":3399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3398":{"this":{"__isSmartRef__":true,"id":2862}},"3399":{"timestamp":{"__isSmartRef__":true,"id":3400},"user":"jenslincke","tags":[]},"3400":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:59 GMT-0800 (PST)"},"3401":{"varMapping":{"__isSmartRef__":true,"id":3402},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":3403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3402":{"this":{"__isSmartRef__":true,"id":2862}},"3403":{"timestamp":{"__isSmartRef__":true,"id":3404},"user":"jenslincke","tags":[]},"3404":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:03 GMT-0800 (PST)"},"3405":{"varMapping":{"__isSmartRef__":true,"id":3406},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":3407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3406":{"this":{"__isSmartRef__":true,"id":2862}},"3407":{"timestamp":{"__isSmartRef__":true,"id":3408},"user":"jenslincke","tags":[]},"3408":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:34:48 GMT-0800 (PST)"},"3409":{"varMapping":{"__isSmartRef__":true,"id":3410},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":3411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3410":{"this":{"__isSmartRef__":true,"id":2862}},"3411":{"timestamp":{"__isSmartRef__":true,"id":3412},"user":"jenslincke","tags":[]},"3412":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:12:57 GMT-0800 (PST)"},"3413":{"varMapping":{"__isSmartRef__":true,"id":3414},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nthis.get('MeasureData').$.Time = Date.now() / 1000\nthis.get('MeasureData').$.Start = this.get('MeasureData').$.Time\nthis.get('Fuel').$.Gas = 5 * 2 * 3600 // two hours gas\nthis.get('HeatStorage').$.Energy = 0\nthis.get('Battery').$.Energy = 0 \nthis.get('ElectricConsumer').$.Consumed = 0\nthis.get('ElectricConsumer').$.Demand = 1.5\nthis.get('ElectricConsumer').$.Extra = 0\nthis.get('HeatConsumer').$.Consumed = 0\nthis.get('HeatConsumer').$.Demand = 3\nthis.get('HeatConsumer').$.Extra = 0\nthis.get('ThermalPowerStation').$.Heat = 0\nthis.get('HeatingSystem').$.Heat = 0\nthis.get('MeasureData').$.Counter = 10000\nthis.get('Battery').$.Max = 0.1 * 3600 // 1h 2kw\nthis.get('HeatStorage').$.Max = 0.1 * 3600 // 1h 3kw\nthis.get('SimulationResults').resetData()\nthis.get('SimulationResults').showData()\n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":3415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3414":{"this":{"__isSmartRef__":true,"id":2862}},"3415":{},"3416":{"varMapping":{"__isSmartRef__":true,"id":3417},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3417":{"this":{"__isSmartRef__":true,"id":2862}},"3418":{"timestamp":{"__isSmartRef__":true,"id":3419},"user":"jenslincke","tags":[]},"3419":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:11:23 GMT-0800 (PST)"},"3420":{"varMapping":{"__isSmartRef__":true,"id":3421},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":3422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3421":{"this":{"__isSmartRef__":true,"id":2862}},"3422":{"timestamp":{"__isSmartRef__":true,"id":3423},"user":"jenslincke","tags":[]},"3423":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:32:56 GMT-0800 (PST)"},"3424":{"varMapping":{"__isSmartRef__":true,"id":3425},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":3426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3425":{"this":{"__isSmartRef__":true,"id":2862}},"3426":{"timestamp":{"__isSmartRef__":true,"id":3427},"user":"jenslincke","tags":[]},"3427":{"isSerializedDate":true,"string":"Sun Jan 26 2014 06:22:09 GMT-0800 (PST)"},"3428":{"varMapping":{"__isSmartRef__":true,"id":3429},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":3430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3429":{"this":{"__isSmartRef__":true,"id":2862}},"3430":{"timestamp":{"__isSmartRef__":true,"id":3431},"user":"jenslincke","tags":[]},"3431":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:54:04 GMT-0800 (PST)"},"3432":{"varMapping":{"__isSmartRef__":true,"id":3433},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3433":{"this":{"__isSmartRef__":true,"id":2862}},"3434":{"timestamp":{"__isSmartRef__":true,"id":3435},"user":"jenslincke","tags":[]},"3435":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:58 GMT-0800 (PST)"},"3436":{"varMapping":{"__isSmartRef__":true,"id":3437},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":3438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3437":{"this":{"__isSmartRef__":true,"id":2862}},"3438":{"timestamp":{"__isSmartRef__":true,"id":3439},"user":"jenslincke","tags":[]},"3439":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:35:44 GMT-0800 (PST)"},"3440":{"varMapping":{"__isSmartRef__":true,"id":3441},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":3442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3441":{"this":{"__isSmartRef__":true,"id":2862}},"3442":{"timestamp":{"__isSmartRef__":true,"id":3443},"user":"jenslincke","tags":[]},"3443":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:36:12 GMT-0800 (PST)"},"3444":{"varMapping":{"__isSmartRef__":true,"id":3445},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":3446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3445":{"this":{"__isSmartRef__":true,"id":2862}},"3446":{"timestamp":{"__isSmartRef__":true,"id":3447},"user":"jenslincke","tags":[]},"3447":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:09 GMT-0800 (PST)"},"3448":{"varMapping":{"__isSmartRef__":true,"id":3449},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":3450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3449":{"this":{"__isSmartRef__":true,"id":2862}},"3450":{"timestamp":{"__isSmartRef__":true,"id":3451},"user":"jenslincke","tags":[]},"3451":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:15 GMT-0800 (PST)"},"3452":{"varMapping":{"__isSmartRef__":true,"id":3453},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":3454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3453":{"this":{"__isSmartRef__":true,"id":2862}},"3454":{"timestamp":{"__isSmartRef__":true,"id":3455},"user":"jenslincke","tags":[]},"3455":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:26 GMT-0800 (PST)"},"3456":{"varMapping":{"__isSmartRef__":true,"id":3457},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3457":{"this":{"__isSmartRef__":true,"id":2862}},"3458":{"timestamp":{"__isSmartRef__":true,"id":3459},"user":"jenslincke","tags":[]},"3459":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:25 GMT-0800 (PST)"},"3460":{"varMapping":{"__isSmartRef__":true,"id":3461},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":3462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3461":{"this":{"__isSmartRef__":true,"id":2862}},"3462":{"timestamp":{"__isSmartRef__":true,"id":3463},"user":"jenslincke","tags":[]},"3463":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:53:47 GMT-0800 (PST)"},"3464":{"varMapping":{"__isSmartRef__":true,"id":3465},"source":"function showNameReference(name) {\n\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n this.lastNameReference = name;\n\n var morph = this.get(name)\n if (morph) {\n morph.show().invoke(\"setBorderColor\", Color.yellow)\n morph.showScriptAnalysis()\n }\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":3466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3465":{"this":{"__isSmartRef__":true,"id":2862}},"3466":{"timestamp":{"__isSmartRef__":true,"id":3467},"user":"jenslincke","tags":[]},"3467":{"isSerializedDate":true,"string":"Thu Jan 30 2014 02:13:25 GMT-0800 (PST)"},"3468":{"submorphs":[{"__isSmartRef__":true,"id":3469},{"__isSmartRef__":true,"id":3503}],"scripts":[],"id":"45437653-A6FB-4518-BAD1-87B0A18EDDD2","shape":{"__isSmartRef__":true,"id":3649},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"SimulationResults","partsBinMetaInfo":{"__isSmartRef__":true,"id":3650},"eventHandler":{"__isSmartRef__":true,"id":3686},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37"],"partTests":{"__isSmartRef__":true,"id":3687},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":952},"prevScroll":[0,0],"data":null,"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":3692},"#startLetters":"","table":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3693},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(17.8,1261.9)","distanceToDragEvent":"lively.pt(612.8,-8.8)"},"3469":{"submorphs":[{"__isSmartRef__":true,"id":3470}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3475},"eventHandler":{"__isSmartRef__":true,"id":3476},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D"],"id":"F5FBFDD0-C41E-421E-AE1C-5FE734F0DFB4","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":3470},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":3477},{"__isSmartRef__":true,"id":3479}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button6","partsBinMetaInfo":{"__isSmartRef__":true,"id":3481},"pinSpecs":[{"__isSmartRef__":true,"id":3497}],"owner":{"__isSmartRef__":true,"id":3468},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3498},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(10.5,5.0)","distanceToDragEvent":"lively.pt(73.9,-15.2)"},"3470":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3471},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3472}],"eventHandler":{"__isSmartRef__":true,"id":3474},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4"],"id":"B538602E-A8F5-4C41-AE03-E692939D44B4","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":3469},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"3471":{"_BorderWidth":0,"_Fill":null,"__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,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3472":{"style":{"__isSmartRef__":true,"id":3473},"chunkOwner":{"__isSmartRef__":true,"id":3470},"_id":"_1301000","storedString":"show","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3473":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3474":{"morph":{"__isSmartRef__":true,"id":3470},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3475":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"3476":{"morph":{"__isSmartRef__":true,"id":3469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3477":{"sourceObj":{"__isSmartRef__":true,"id":3469},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3469},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":3478},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3478":{"source":{"__isSmartRef__":true,"id":3469},"target":{"__isSmartRef__":true,"id":3469}},"3479":{"sourceObj":{"__isSmartRef__":true,"id":3469},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3468},"targetMethodName":"showData","varMapping":{"__isSmartRef__":true,"id":3480},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3480":{"source":{"__isSmartRef__":true,"id":3469},"target":{"__isSmartRef__":true,"id":3468}},"3481":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":3482},{"__isSmartRef__":true,"id":3484},{"__isSmartRef__":true,"id":3486},{"__isSmartRef__":true,"id":3488},{"__isSmartRef__":true,"id":3490},{"__isSmartRef__":true,"id":3492},{"__isSmartRef__":true,"id":3494}],"migrationLevel":7,"lastModifiedDate":{"__isSmartRef__":true,"id":3496},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3482":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","date":{"__isSmartRef__":true,"id":3483}},"3483":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:15:42 GMT-0800 (PST)"},"3484":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","date":{"__isSmartRef__":true,"id":3485}},"3485":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:53:16 GMT-0800 (PST)"},"3486":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","date":{"__isSmartRef__":true,"id":3487}},"3487":{"isSerializedDate":true,"string":"Tue Apr 30 2013 20:34:25 GMT-0700 (PDT)"},"3488":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","date":{"__isSmartRef__":true,"id":3489}},"3489":{"isSerializedDate":true,"string":"Tue Apr 30 2013 20:35:59 GMT-0700 (PDT)"},"3490":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","date":{"__isSmartRef__":true,"id":3491}},"3491":{"isSerializedDate":true,"string":"Tue Apr 30 2013 20:36:30 GMT-0700 (PDT)"},"3492":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","date":{"__isSmartRef__":true,"id":3493}},"3493":{"isSerializedDate":true,"string":"Mon Jun 17 2013 10:22:38 GMT-0700 (PDT)"},"3494":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","date":{"__isSmartRef__":true,"id":3495}},"3495":{"isSerializedDate":true,"string":"Mon Jun 17 2013 10:24:50 GMT-0700 (PDT)"},"3496":{"isSerializedDate":true,"string":"Thu Jan 16 2014 01:23:15 GMT-0800 (PST)"},"3497":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"3498":{"doAction":{"__isSmartRef__":true,"id":3499}},"3499":{"varMapping":{"__isSmartRef__":true,"id":3500},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":3501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3500":{"this":{"__isSmartRef__":true,"id":3469}},"3501":{"user":"undefined","tags":[],"timestamp":{"__isSmartRef__":true,"id":3502}},"3502":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:14:29 GMT-0800 (PST)"},"3503":{"submorphs":[{"__isSmartRef__":true,"id":3504}],"scripts":[],"id":"8A39C369-64F2-49E2-B969-300BE3FA2DAD","shape":{"__isSmartRef__":true,"id":3599},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"SelectTableClip","partsBinMetaInfo":{"__isSmartRef__":true,"id":3600},"eventHandler":{"__isSmartRef__":true,"id":3642},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","01E4B3FC-1FF3-4030-B17B-68C1E63857DE","702671A1-58AC-4555-BA71-A799379EDB23","1FAC1CD2-DD8D-43E3-9C3C-E9FD1B994F42"],"partTests":{"__isSmartRef__":true,"id":3643},"_ClipMode":"scroll","moved":true,"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":3648},"owner":{"__isSmartRef__":true,"id":3468},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(41.6,59.6)","distanceToDragEvent":"lively.pt(895.0,-14.0)"},"3504":{"submorphs":[],"scripts":[],"id":"5602496D-C9FB-4C09-9EA7-08E1F179B848","shape":{"__isSmartRef__":true,"id":3505},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Courier","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"Table","partsBinMetaInfo":{"__isSmartRef__":true,"id":3506},"textChunks":[{"__isSmartRef__":true,"id":3526}],"charsReplaced":"0 filename new\n1 Blade/Blade\n3 Blade/Blade Trinity [2004] German DL 1080p.mkv ","lastFindLoc":119,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3528},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","D7847D8B-6A94-44E4-9674-5D9847579898","C84228AF-D934-4BA0-ACAF-843BBB52C480","70140DE5-4179-4E6B-90ED-B8A521019735","54742FA7-B6B6-4441-9AF1-1AA2A4B96873","193F5EE1-9971-4FE2-A34F-3E297F6F50DD","3C2B04B5-D0A6-4065-8C57-A4B5285FC622","47E58543-F10B-4D1F-86D6-A66923C94EF9","83240154-4862-4990-B400-25457100B2CD","554559E9-30A7-43C4-9805-B20D79A01D42","D387334C-E2F0-471A-AC44-3AA59785DEA0"],"_WhiteSpaceHandling":"pre","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"_WordBreak":null,"layout":{"__isSmartRef__":true,"id":3529},"#startLetters":"empha","undoSelectionRange":[110306,110306],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_PreviousBorderWidth":1.48,"table":{"__isSmartRef__":true,"id":3530},"lastSortedColumn":"Time","owner":{"__isSmartRef__":true,"id":3503},"previousSelection":[0,1265],"selectedIndex":5,"connections":{"__isSmartRef__":true,"id":3531},"isSelectingOnClick":true,"textStrint":"mv -v 'Agora 1of2.avi' 'Agora [2009] 1of2.avi'\nmv -v 'Agora 2of2.avi' 'Agora [2009] 2of2.avi'\nmv -v 'Alien/Aliens vs. Predator 2 [De].avi' 'Alien/Monsters vs Aliens [2009] De.avi'\nmv -v 'An Education [2010].avi' 'An Education [2009].avi'\nmv -v 'Aufstand der Tiere.avi' 'Koka, Terror und der Inka-Aufstand [2009].avi'\nmv -v 'Besouro [2009] de.mkv' 'The Assailant [2009] de.mkv'\nmv -v 'Bud Spencer Terence Hill Collection/Bomber [en].avi' 'Bud Spencer Terence Hill Collection/Bomber [2009] en.avi'\nmv -v 'Der fantastische Mr Fox [2009] en de.mkv' 'Fantastic Mr Fox [2009] en de.mkv'\nmv -v 'Der Hobbit - Eine Unerwartete Reise [2012] DL 1080p.mkv' 'Kolonialmama - Eine Reise in die Gegenwart der Vergangenheit [2009] DL 1080p.mkv'\nmv -v 'Der Staatsfeind Nr1 1von2 [de].avi' 'Chinas Staatsfeindin Nr1 - Rebiya Kadeers Kampf für die Uiguren [2009] de.avi'\nmv -v 'Der Staatsfeind Nr1 2von2 [de].avi' 'Chinas Staatsfeindin Nr1 - Rebiya Kadeers Kampf für die Uiguren [2009] de.avi'\nmv -v 'Die Logan Verschwoerung [2012] DL 1080p.mkv' 'Verschwörung gegen die Republik [2009] DL 1080p.mkv'\nmv -v 'Die Monster AG [2001] DL 1080p.mkv' 'Monsieur Noir und die Monster aus dem Keller [2009] DL 1080p.mkv'\nmv -v 'Die Päpstin [2009] en de.mkv' 'Pope Joan [2009] en de.mkv'\nmv -v 'Eine wie keine [de].avi' 'Eine wie Keine [2009] de.avi'\nmv -v 'Hachiko [2009] en de.mkv' 'Hachi A Dogs Tale [2009] en de.mkv'\nmv -v 'Hangover [2009] DL 1080p.mkv' 'The Hangover [2009] DL 1080p.mkv'\nmv -v 'Illuminati 720p.mkv' 'The Conspiracy to Rule the World From 911 to the Illuminati [2009].mkv'\nmv -v 'I Love You Man [2009] Eng.mkv' 'I Love You, Man [2009] Eng.mkv'\nmv -v 'La Teta Asustada [esp comment].avi' 'The Milk of Sorrow [2009] esp comment.avi'\nmv -v 'Millenium 1 - Verblendung [2009] de swe.mkv' 'The Girl with the Dragon Tattoo [2009] de swe.mkv'\nmv -v 'Monty Python Movies/Monty Python - Jabberwocky [1977].avi' 'Monty Python Movies/Monty Python Almost the Truth - Lawyers Cut [2009].avi'\nmv -v 'Monty Python Movies/wunderbare welt der schwerkraft [de].avi' 'Monty Python Movies/Die wundersame Welt der Waschkraft [2009] de.avi'\nmv -v 'Ondine [2008] en de.mkv' 'Ondine [2009] en de.mkv'\nmv -v 'Pelham 123 720p.mkv' 'The Taking of Pelham 1 2 3 [2009].mkv'\nmv -v 'Public Enemies.mkv' 'Public Enemies [2009].mkv'\nmv -v 'Schwerkraft [2009] de.mkv' 'Gravity [2009] de.mkv'\nmv -v 'Star Trek XI [2009] German BASTIAN CUT.mkv' 'Star Trek [2009] German BASTIAN CUT.mkv'\nmv -v 'Terminator/Terminator 4 Die Erloesung [2009] DL 1080p.mkv' 'Terminator/Terminator Salvation [2009] DL 1080p.mkv'\nmv -v 'The Bad Lieutenant Port of Call New Orleans.avi' 'The Bad Lieutenant Port of Call - New Orleans [2009].avi'\nmv -v 'The Boat That Rocked [2009] en de.mkv' 'Pirate Radio [2009] en de.mkv'\nmv -v 'The Imaginarium of Doctor Parnassus.mkv' 'The Imaginarium of Doctor Parnassus [2009].mkv'\nmv -v 'The Princess And The Frog.avi' 'The Princess and the Frog [2009].avi'\nmv -v 'Up In The Air [2009].avi' 'Up in the Air [2009].avi'\nmv -v 'Verblendung [2011] German DL 1080p.mkv' 'The Girl with the Dragon Tattoo [2009] German DL 1080p.mkv'\nmv -v 'Walhalla [1986] de.avi' 'Valhalla Rising [2009] de.avi'\nmv -v 'Watchmen [2008] en de.mkv' 'Watchmen [2009] en de.mkv'\nmv -v 'Wiedersehen in St. Petersburg [De].avi' 'Here and There [2009] De.avi'\nmv -v 'Wild Things 1of2 [de].avi' 'Where the Wild Things Are [2009] 1of2 de.avi'\nmv -v 'Wild Things 2of2 [de].avi' 'Where the Wild Things Are [2009] 2of2 de.avi'","draggingEnabled":false,"attributeConnections":[{"__isSmartRef__":true,"id":3534}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":{"__isSmartRef__":true,"id":3536},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3538},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(7.0,12.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(982.0,-15.0)"},"3505":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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(15.0,433.0)","_BorderColor":"Color.rgb(174,174,174)","_Padding":"lively.rect(4,2,0,0)"},"3506":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":4,"comment":"A Lively quick and dirty text based table, with sorting support. ","partName":"QuickTable","changes":[{"__isSmartRef__":true,"id":3507},{"__isSmartRef__":true,"id":3509},{"__isSmartRef__":true,"id":3511},{"__isSmartRef__":true,"id":3513},{"__isSmartRef__":true,"id":3515},{"__isSmartRef__":true,"id":3517},{"__isSmartRef__":true,"id":3519},{"__isSmartRef__":true,"id":3521},{"__isSmartRef__":true,"id":3523}],"lastModifiedDate":{"__isSmartRef__":true,"id":3525},"revisionOnLoad":198869,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3507":{"date":{"__isSmartRef__":true,"id":3508},"author":"jenslincke","message":"no comment","id":"F894103D-2AFC-4A59-B45B-FD2194723ECC"},"3508":{"isSerializedDate":true,"string":"Sat Aug 17 2013 10:54:22 GMT-0700 (PDT)"},"3509":{"date":{"__isSmartRef__":true,"id":3510},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3510":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"3511":{"date":{"__isSmartRef__":true,"id":3512},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3512":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"3513":{"date":{"__isSmartRef__":true,"id":3514},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3514":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"3515":{"date":{"__isSmartRef__":true,"id":3516},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3516":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"3517":{"date":{"__isSmartRef__":true,"id":3518},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3518":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"3519":{"date":{"__isSmartRef__":true,"id":3520},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3520":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"3521":{"date":{"__isSmartRef__":true,"id":3522},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3522":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"3523":{"date":{"__isSmartRef__":true,"id":3524},"author":"jenslincke","message":"no comment","id":"93CE95E3-4E54-4AEF-AF54-7EF6CA88FE4E"},"3524":{"isSerializedDate":true,"string":"Tue Aug 13 2013 08:32:37 GMT-0700 (PDT)"},"3525":{"isSerializedDate":true,"string":"Sat Aug 17 2013 10:49:33 GMT-0700 (PDT)"},"3526":{"style":{"__isSmartRef__":true,"id":3527},"chunkOwner":{"__isSmartRef__":true,"id":3504},"_id":"_11192","storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3527":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3528":{"morph":{"__isSmartRef__":true,"id":3504},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3529":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"3530":{"columns":[],"data":[]},"3531":{"selection":{"__isSmartRef__":true,"id":3532},"selectionIndex":{"__isSmartRef__":true,"id":3533}},"3532":{},"3533":{},"3534":{"sourceObj":{"__isSmartRef__":true,"id":3504},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":3535},"targetMethodName":"selectFile","varMapping":{"__isSmartRef__":true,"id":3537},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3535":{"isCopyMorphRef":true,"morphRefId":1,"selectFile":{"__isSmartRef__":true,"id":3536}},"3536":{"Gas":89.36,"Heat":0.27488,"Battery":0.103267,"ConsumedPower":0.039087,"ConsumedHeat":0.084038,"TWP":31.970143,"HS":17.254357,"Total":89.979152,"Time":1390819607.6749947,"lastIndex":5},"3537":{"source":{"__isSmartRef__":true,"id":3504},"target":{"__isSmartRef__":true,"id":3535}},"3538":{"onrestore":{"__isSmartRef__":true,"id":3539},"setTableTSV":{"__isSmartRef__":true,"id":3547},"setTable":{"__isSmartRef__":true,"id":3551},"printTableSortedBy":{"__isSmartRef__":true,"id":3555},"sortTableBy":{"__isSmartRef__":true,"id":3559},"onMouseUp":{"__isSmartRef__":true,"id":3563},"reset":{"__isSmartRef__":true,"id":3571},"setPlainText":{"__isSmartRef__":true,"id":3575},"selectRow":{"__isSmartRef__":true,"id":3579},"onDownPressed":{"__isSmartRef__":true,"id":3583},"onUpPressed":{"__isSmartRef__":true,"id":3591}},"3539":{"varMapping":{"__isSmartRef__":true,"id":3540},"source":"function onrestore() {\n // hack, is fixedWidth not persisted?\n this.applyStyle({fixedWidth: false})\n}","funcProperties":{"__isSmartRef__":true,"id":3545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3540":{"this":{"__isSmartRef__":true,"id":3504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3541}},"3541":{"$super":{"__isSmartRef__":true,"id":3542}},"3542":{"varMapping":{"__isSmartRef__":true,"id":3543},"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":3544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3543":{"obj":{"__isSmartRef__":true,"id":3504},"name":"onrestore"},"3544":{},"3545":{"timestamp":{"__isSmartRef__":true,"id":3546},"user":"jenslincke","tags":[]},"3546":{"isSerializedDate":true,"string":"Thu Apr 18 2013 02:53:11 GMT-0700 (PDT)"},"3547":{"varMapping":{"__isSmartRef__":true,"id":3548},"source":"function setTableTSV(string) {\n var table = Strings.lines(string).collect(function(ea) {\n return ea.split(\"\\t\")\n })\n this.setTable(table)\n}","funcProperties":{"__isSmartRef__":true,"id":3549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3548":{"this":{"__isSmartRef__":true,"id":3504}},"3549":{"timestamp":{"__isSmartRef__":true,"id":3550},"user":"jenslincke","tags":[]},"3550":{"isSerializedDate":true,"string":"Tue Aug 13 2013 08:16:18 GMT-0700 (PDT)"},"3551":{"varMapping":{"__isSmartRef__":true,"id":3552},"source":"function setTable(table) {\n this.table = table\n this.printTableSortedBy(table)\n}","funcProperties":{"__isSmartRef__":true,"id":3553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3552":{"this":{"__isSmartRef__":true,"id":3504}},"3553":{"timestamp":{"__isSmartRef__":true,"id":3554},"user":"jenslincke","tags":[]},"3554":{"isSerializedDate":true,"string":"Tue Aug 13 2013 08:19:21 GMT-0700 (PDT)"},"3555":{"varMapping":{"__isSmartRef__":true,"id":3556},"source":"function printTableSortedBy(table, column) {\n if (!table) return \n this.isSelectingOnClick = true\n this.currenColumnName = column;\n var header = this.table.columns;\n var data = this.table.data\n if (column) {\n data = data.sortBy(function(ea) { return ea[column]})\n if (this.lastSortedColumn == column) {\n this.lastSortedColumn = null\n data = data.reverse()\n } else {\n this.lastSortedColumn = column \n }\n }\n data.each(function(ea, index) { ea.lastIndex = index})\n\n table = data.collect(function(row) {\n return header.collect(function(column) { return row[column]})\n })\n\n table = [header].concat(table)\n var indexedTable = table.collect(function(ea, index) { return [index].concat(ea)})\n this.textString = Strings.printTable(indexedTable);\n var s = this.textString\n var columnNames = table.first();\n columnNames.each(function(ea) {\n this.emphasize(\n {\n fontWeight: 'bold',\n doit: {code: 'this.sortTableBy(\"' + ea + '\")', context: this}\n },\n s.indexOf(ea), s.indexOf(ea) + ea.length\n )\n }, this)\n\n this.setFixedWidth(false)\n\n}","funcProperties":{"__isSmartRef__":true,"id":3557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3556":{"this":{"__isSmartRef__":true,"id":3504}},"3557":{"timestamp":{"__isSmartRef__":true,"id":3558},"user":"jenslincke","tags":[]},"3558":{"isSerializedDate":true,"string":"Sat Jan 04 2014 14:17:38 GMT-0800 (PST)"},"3559":{"varMapping":{"__isSmartRef__":true,"id":3560},"source":"function sortTableBy(columnName) {\n this.printTableSortedBy(this.table, columnName);\n}","funcProperties":{"__isSmartRef__":true,"id":3561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3560":{"this":{"__isSmartRef__":true,"id":3504}},"3561":{"timestamp":{"__isSmartRef__":true,"id":3562},"user":"jenslincke","tags":[]},"3562":{"isSerializedDate":true,"string":"Tue Aug 13 2013 08:19:30 GMT-0700 (PDT)"},"3563":{"varMapping":{"__isSmartRef__":true,"id":3564},"source":"function onMouseUp(evt) {\n if(!this.isSelectingOnClick) return $super(evt)\n this.selectCurrentLine()\n this.selectedIndex = new Number(this.getSelectionOrLineString().replace(/ .*/,\"\"))\n // alertOK(\"\" + this.getSelectionOrLineString() +\": \"+ this.selectedIndex)\n this.selectRow(this.selectedIndex)\n}","funcProperties":{"__isSmartRef__":true,"id":3569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3564":{"this":{"__isSmartRef__":true,"id":3504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3565}},"3565":{"$super":{"__isSmartRef__":true,"id":3566}},"3566":{"varMapping":{"__isSmartRef__":true,"id":3567},"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":3568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3567":{"obj":{"__isSmartRef__":true,"id":3504},"name":"onMouseUp"},"3568":{},"3569":{"timestamp":{"__isSmartRef__":true,"id":3570},"user":"jenslincke","tags":[]},"3570":{"isSerializedDate":true,"string":"Sat Jan 04 2014 14:29:28 GMT-0800 (PST)"},"3571":{"varMapping":{"__isSmartRef__":true,"id":3572},"source":"function reset() {\n this.connections = {selection: {}, selectionIndex: {}}\n}","funcProperties":{"__isSmartRef__":true,"id":3573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3572":{"this":{"__isSmartRef__":true,"id":3504}},"3573":{"timestamp":{"__isSmartRef__":true,"id":3574},"user":"jenslincke","tags":[]},"3574":{"isSerializedDate":true,"string":"Fri Dec 20 2013 05:40:39 GMT-0800 (PST)"},"3575":{"varMapping":{"__isSmartRef__":true,"id":3576},"source":"function setPlainText(s) {\n this.isSelectingOnClick = false\n this.textString = s\n}","funcProperties":{"__isSmartRef__":true,"id":3577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3576":{"this":{"__isSmartRef__":true,"id":3504}},"3577":{"timestamp":{"__isSmartRef__":true,"id":3578},"user":"jenslincke","tags":[]},"3578":{"isSerializedDate":true,"string":"Tue Dec 31 2013 06:24:12 GMT-0800 (PST)"},"3579":{"varMapping":{"__isSmartRef__":true,"id":3580},"source":"function selectRow(index) {\n this.emphasizeAll({backgroundColor: null})\n this.selectedIndex = Math.max(1, Math.min(this.table.data.length - 1, index))\n this.selection = this.table.data.detect(function(ea) { return ea.lastIndex == this.selectedIndex }.bind(this))\n this.emphasizeRegex(new RegExp(\"(^|\\n)\"+ this.selectedIndex + \" .+(\\n|$)\",'g'), {backgroundColor: Color.gray})\n}","funcProperties":{"__isSmartRef__":true,"id":3581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3580":{"this":{"__isSmartRef__":true,"id":3504}},"3581":{"timestamp":{"__isSmartRef__":true,"id":3582},"user":"jenslincke","tags":[]},"3582":{"isSerializedDate":true,"string":"Sat Jan 04 2014 14:27:27 GMT-0800 (PST)"},"3583":{"varMapping":{"__isSmartRef__":true,"id":3584},"source":"function onDownPressed() {\n if(!this.isSelectingOnClick) return $super(evt)\n this.selectRow(this.selectedIndex + 1)\n}","funcProperties":{"__isSmartRef__":true,"id":3589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3584":{"this":{"__isSmartRef__":true,"id":3504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3585}},"3585":{"$super":{"__isSmartRef__":true,"id":3586}},"3586":{"varMapping":{"__isSmartRef__":true,"id":3587},"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":3588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3587":{"obj":{"__isSmartRef__":true,"id":3504},"name":"onDownPressed"},"3588":{},"3589":{"timestamp":{"__isSmartRef__":true,"id":3590},"user":"jenslincke","tags":[]},"3590":{"isSerializedDate":true,"string":"Wed Jan 01 2014 14:38:26 GMT-0800 (PST)"},"3591":{"varMapping":{"__isSmartRef__":true,"id":3592},"source":"function onUpPressed() {\n if(!this.isSelectingOnClick) return $super(evt)\n this.selectRow(this.selectedIndex - 1)\n}","funcProperties":{"__isSmartRef__":true,"id":3597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3592":{"this":{"__isSmartRef__":true,"id":3504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3593}},"3593":{"$super":{"__isSmartRef__":true,"id":3594}},"3594":{"varMapping":{"__isSmartRef__":true,"id":3595},"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":3596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3595":{"obj":{"__isSmartRef__":true,"id":3504},"name":"onUpPressed"},"3596":{},"3597":{"timestamp":{"__isSmartRef__":true,"id":3598},"user":"jenslincke","tags":[]},"3598":{"isSerializedDate":true,"string":"Wed Jan 01 2014 14:38:40 GMT-0800 (PST)"},"3599":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(1010.0,568.9)","_BorderColor":"Color.rgb(219,219,219)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"3600":{"partsSpaceName":"PartsBin/Widgets/","comment":"A quick and dirty table with clip","migrationLevel":4,"partName":"SelectTableClip","changes":[{"__isSmartRef__":true,"id":3601},{"__isSmartRef__":true,"id":3603},{"__isSmartRef__":true,"id":3605},{"__isSmartRef__":true,"id":3607},{"__isSmartRef__":true,"id":3609},{"__isSmartRef__":true,"id":3611},{"__isSmartRef__":true,"id":3613},{"__isSmartRef__":true,"id":3615},{"__isSmartRef__":true,"id":3617},{"__isSmartRef__":true,"id":3619},{"__isSmartRef__":true,"id":3621},{"__isSmartRef__":true,"id":3623},{"__isSmartRef__":true,"id":3625},{"__isSmartRef__":true,"id":3627},{"__isSmartRef__":true,"id":3629},{"__isSmartRef__":true,"id":3631},{"__isSmartRef__":true,"id":3633},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3637},{"__isSmartRef__":true,"id":3639}],"lastModifiedDate":{"__isSmartRef__":true,"id":3641},"revisionOnLoad":204376,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3601":{"date":{"__isSmartRef__":true,"id":3602},"author":"jenslincke","message":"no comment","id":"B9BE1BEE-DAE1-4747-9D07-40017E825BC0"},"3602":{"isSerializedDate":true,"string":"Sat Jan 25 2014 03:37:34 GMT-0800 (PST)"},"3603":{"date":{"__isSmartRef__":true,"id":3604},"author":"jenslincke","message":"no comment","id":"E4C7498C-EAC9-4C91-A754-EE39F951E6F8"},"3604":{"isSerializedDate":true,"string":"Wed Dec 04 2013 06:26:15 GMT-0800 (PST)"},"3605":{"date":{"__isSmartRef__":true,"id":3606},"author":"jenslincke","message":"no comment","id":"711F9AD5-2F47-444A-883D-F445555F6B29"},"3606":{"isSerializedDate":true,"string":"Wed Dec 04 2013 06:25:56 GMT-0800 (PST)"},"3607":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":3608}},"3608":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"3609":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":3610}},"3610":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"3611":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":3612}},"3612":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"3613":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":3614}},"3614":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"3615":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":3616}},"3616":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"3617":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":3618}},"3618":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"3619":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":3620}},"3620":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"3621":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":3622}},"3622":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"3623":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":3624}},"3624":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"3625":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":3626}},"3626":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"3627":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":3628}},"3628":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"3629":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":3630}},"3630":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"3631":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":3632}},"3632":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"3633":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":3634}},"3634":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"3635":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":3636}},"3636":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"3637":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":3638}},"3638":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"3639":{"date":{"__isSmartRef__":true,"id":3640},"author":"jenslincke","message":"no comment","id":"CD00CB2E-7C38-470A-AFBD-420B0B8E7A73"},"3640":{"isSerializedDate":true,"string":"Sat Jan 04 2014 13:05:34 GMT-0800 (PST)"},"3641":{"isSerializedDate":true,"string":"Sat Jan 25 2014 03:36:33 GMT-0800 (PST)"},"3642":{"morph":{"__isSmartRef__":true,"id":3503},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3643":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3644}},"3644":{"test01IsMorph":{"__isSmartRef__":true,"id":3645}},"3645":{"varMapping":{"__isSmartRef__":true,"id":3646},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3646":{"this":{"__isSmartRef__":true,"id":3643}},"3647":{},"3648":{"resizeWidth":true,"resizeHeight":true},"3649":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(1065.1,635.6)","_BorderColor":"Color.rgb(200,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"3650":{"partsSpaceName":"PartsBin/Basic","comment":"A plain simple rectangle","migrationLevel":4,"partName":"ValueInput","changes":[{"__isSmartRef__":true,"id":3651},{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":3655},{"__isSmartRef__":true,"id":3657},{"__isSmartRef__":true,"id":3659},{"__isSmartRef__":true,"id":3661},{"__isSmartRef__":true,"id":3663},{"__isSmartRef__":true,"id":3665},{"__isSmartRef__":true,"id":3667},{"__isSmartRef__":true,"id":3669},{"__isSmartRef__":true,"id":3671},{"__isSmartRef__":true,"id":3673},{"__isSmartRef__":true,"id":3675},{"__isSmartRef__":true,"id":3677},{"__isSmartRef__":true,"id":3679},{"__isSmartRef__":true,"id":3681},{"__isSmartRef__":true,"id":3683}],"lastModifiedDate":{"__isSmartRef__":true,"id":3685},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3651":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":3652}},"3652":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"3653":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":3654}},"3654":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"3655":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":3656}},"3656":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"3657":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":3658}},"3658":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"3659":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":3660}},"3660":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"3661":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":3662}},"3662":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"3663":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":3664}},"3664":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"3665":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":3666}},"3666":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"3667":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":3668}},"3668":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"3669":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":3670}},"3670":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"3671":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":3672}},"3672":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"3673":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":3674}},"3674":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"3675":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":3676}},"3676":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"3677":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":3678}},"3678":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"3679":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":3680}},"3680":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"3681":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":3682}},"3682":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"3683":{"date":{"__isSmartRef__":true,"id":3684},"author":"jenslincke","message":"no comment","id":"D32C43BE-72DA-4F02-84D0-AFA7B3DFFA74"},"3684":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:19:45 GMT-0800 (PST)"},"3685":{"isSerializedDate":true,"string":"Thu Aug 15 2013 12:21:30 GMT-0700 (PDT)"},"3686":{"morph":{"__isSmartRef__":true,"id":3468},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3687":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3688}},"3688":{"test01IsMorph":{"__isSmartRef__":true,"id":3689}},"3689":{"varMapping":{"__isSmartRef__":true,"id":3690},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3690":{"this":{"__isSmartRef__":true,"id":3687}},"3691":{},"3692":{"adjustForNewBounds":true},"3693":{"addData":{"__isSmartRef__":true,"id":3694},"resetData":{"__isSmartRef__":true,"id":3698},"showData":{"__isSmartRef__":true,"id":3702}},"3694":{"varMapping":{"__isSmartRef__":true,"id":3695},"source":"function addData(date) {\n if(!this.table) this.table = { columns: Properties.own(date), data: []}\n this.table.data.push(date)\n}","funcProperties":{"__isSmartRef__":true,"id":3696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3695":{"this":{"__isSmartRef__":true,"id":3468}},"3696":{"timestamp":{"__isSmartRef__":true,"id":3697},"user":"jenslincke","tags":[]},"3697":{"isSerializedDate":true,"string":"Sat Jan 25 2014 03:43:11 GMT-0800 (PST)"},"3698":{"varMapping":{"__isSmartRef__":true,"id":3699},"source":"function resetData(date) {\n this.table = null\n}","funcProperties":{"__isSmartRef__":true,"id":3700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3699":{"this":{"__isSmartRef__":true,"id":3468}},"3700":{"timestamp":{"__isSmartRef__":true,"id":3701},"user":"jenslincke","tags":[]},"3701":{"isSerializedDate":true,"string":"Sat Jan 25 2014 07:51:34 GMT-0800 (PST)"},"3702":{"varMapping":{"__isSmartRef__":true,"id":3703},"source":"function showData() {\n this.get(\"Table\").setTable(this.table || {columns: [], data: []})\n if (!this.table) {\n this.get(\"Visualization\").clear()\n } else {\n this.get(\"Visualization\").draw()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3703":{"this":{"__isSmartRef__":true,"id":3468}},"3704":{"timestamp":{"__isSmartRef__":true,"id":3705},"user":"jenslincke","tags":[]},"3705":{"isSerializedDate":true,"string":"Sat Jan 25 2014 14:21:11 GMT-0800 (PST)"},"3706":{"#startLetters":"d3","_ClipMode":"visible","_traitConfig_":[{"__isSmartRef__":true,"id":3707},{"__isSmartRef__":true,"id":3709}],"derivationIds":[null,"3C1D17F3-0044-4726-B85A-A251A1F703B8","E43FA7DD-9693-40B9-8E88-821D5DCC0811","9FB8D17D-9023-44E8-9410-8AD268E25C75","9BD8C9A7-2A05-43C2-B96B-5EBD5ED44A95","54E9039F-4D91-48B7-B91C-8338A0BEC1F7","1A5EB7AE-1AC3-4FA6-8CF2-0835DF44CFA1","70EF3E19-6C17-4AF7-8C9B-406C7086FDB9","F339FE29-2DCB-412C-AC2A-3427836D8E01","1C09A3B2-9BEC-4791-8140-328F82C79025","717B61B6-1ED9-4352-89F1-215B0148A491","7C62382C-A5E1-4302-BA7E-79A1EAB06592","D7236C84-FA4D-4A12-A484-272D5B76E919","10F38E43-8F87-4ED9-B839-C55255A3C121","2AC30033-165B-4812-9CFE-3056BB5B211B","CFB6B1E6-8C7E-4A34-BFE7-27D8FB6E9570","4628B9BA-F948-4874-95EC-B0E1E6615699","51FD6EA3-83B2-4E5B-985E-88F399944801","1E1F9B91-A691-4B7F-B963-AFC5B3A6A38F","46F2A1FD-11EA-41D1-945E-A857D86982B0"],"__layered_droppingEnabled__":false,"eventHandler":{"__isSmartRef__":true,"id":3711},"halosEnabled":true,"id":"D5302711-DBC5-4969-ADA0-F60EDC50FAA8","isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":3712},"name":"Visualization","partsBinMetaInfo":{"__isSmartRef__":true,"id":3713},"prevScroll":[0,0],"scripts":[],"shape":{"__isSmartRef__":true,"id":3733},"showsHalos":false,"submorphs":[],"xUnit":"words","yUnit":"ms","yValues":[1,0,2,4,4,2,2,6,6,5,1],"doNotSerialize":["chart","svgNode","data","lastNode"],"isLockOwner":false,"grabbingEnabled":false,"nextDataIndex":6,"nextDataInde":0,"nextDataIndex2":null,"moved":true,"_StyleSheet":{"__isSmartRef__":true,"id":3779},"_StyleClassNames":["Morph","HtmlWrapperMorph"],"isCopyMorphRef":true,"morphRefId":1,"owner":{"__isSmartRef__":true,"id":952},"scaleDetail":0.045,"attributeConnections":[{"__isSmartRef__":true,"id":3736},{"__isSmartRef__":true,"id":3767}],"target":{"__isSmartRef__":true,"id":3789},"_Visible":true,"nodeSizeFuncions":[],"nodeSizeFunctions":null,"lastD3Translate":[-67,-117],"lastD3Scale":0.206,"_PreviousBorderWidth":0,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","updateDelayed","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3790},"__LivelyClassName__":"lively.morphic.HtmlWrapperMorph","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(713.8,-7.0)","updateDelayed":"lively.pt(1071.0,465.0)","_Position":"lively.pt(14.6,779.7)"},"3707":{"options":{"__isSmartRef__":true,"id":3708},"traitName":"d3WrapperTrait"},"3708":{},"3709":{"options":{"__isSmartRef__":true,"id":3710},"traitName":"apps.d3Interface.d3WrapperTrait"},"3710":{},"3711":{"morph":{"__isSmartRef__":true,"id":3706},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3712":{"resizeHeight":true,"resizeWidth":true,"adjustForNewBounds":true},"3713":{"#startLetters":"","partName":"MultiLineChart","requiredModules":["apps.d3Interface"],"partsSpaceName":"PartsBin/Visualization/","comment":"A simple D3 Line Chart","changes":[{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3716},{"__isSmartRef__":true,"id":3718},{"__isSmartRef__":true,"id":3720},{"__isSmartRef__":true,"id":3722},{"__isSmartRef__":true,"id":3724},{"__isSmartRef__":true,"id":3726},{"__isSmartRef__":true,"id":3728},{"__isSmartRef__":true,"id":3730}],"migrationLevel":4,"lastModifiedDate":{"__isSmartRef__":true,"id":3732},"revisionOnLoad":204389,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3714":{"date":{"__isSmartRef__":true,"id":3715},"author":"jenslincke","message":"no comment","id":"900E924E-3DCD-4D36-8A5E-D127326B5E11"},"3715":{"isSerializedDate":true,"string":"Fri Jan 18 2013 02:57:37 GMT-0800 (PST)"},"3716":{"date":{"__isSmartRef__":true,"id":3717},"author":"jenslincke","message":"no comment","id":"EA8F98BC-8C7A-4CAE-AE29-018891B193BD"},"3717":{"isSerializedDate":true,"string":"Tue Dec 18 2012 04:13:31 GMT-0800 (PST)"},"3718":{"date":{"__isSmartRef__":true,"id":3719},"author":"jenslincke","message":"no comment","id":"0755F3DA-DF64-42F7-ABDB-3C44A0BB26AE"},"3719":{"isSerializedDate":true,"string":"Tue Dec 18 2012 04:13:06 GMT-0800 (PST)"},"3720":{"date":{"__isSmartRef__":true,"id":3721},"author":"jenslincke","message":"no comment","id":"7D1101AA-8EAA-45A3-815A-CD8CA3E33E22"},"3721":{"isSerializedDate":true,"string":"Fri Jan 18 2013 05:24:46 GMT-0800 (PST)"},"3722":{"date":{"__isSmartRef__":true,"id":3723},"author":"jenslincke","message":"no comment","id":"1DF7B5DC-D35D-48A1-96CC-D41D3A09E32D"},"3723":{"isSerializedDate":true,"string":"Fri Jan 18 2013 05:26:16 GMT-0800 (PST)"},"3724":{"date":{"__isSmartRef__":true,"id":3725},"author":"jenslincke","message":"no comment","id":"49533FF8-27AF-4D61-AF07-8C2333C56248"},"3725":{"isSerializedDate":true,"string":"Fri Jan 18 2013 06:16:13 GMT-0800 (PST)"},"3726":{"date":{"__isSmartRef__":true,"id":3727},"author":"jenslincke","message":"no comment","id":"A98DE527-3D34-4333-9255-890015DC8B5E"},"3727":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:24:08 GMT-0800 (PST)"},"3728":{"date":{"__isSmartRef__":true,"id":3729},"author":"jenslincke","message":"no comment","id":"77112C1B-2C37-4754-B188-C360914F510C"},"3729":{"isSerializedDate":true,"string":"Sat Jan 25 2014 02:01:33 GMT-0800 (PST)"},"3730":{"date":{"__isSmartRef__":true,"id":3731},"author":"jenslincke","message":"no comment","id":"561EE98D-611F-4EBF-B30F-A46912687098"},"3731":{"isSerializedDate":true,"string":"Sat Jan 25 2014 07:24:57 GMT-0800 (PST)"},"3732":{"isSerializedDate":true,"string":"Sat Jan 25 2014 07:23:56 GMT-0800 (PST)"},"3733":{"_BorderRadius":0,"_BorderStyle":"solid","_BorderWidth":0,"_Opacity":1,"stringifiedShapeNode":"","_AppearanceStylingMode":false,"_BorderStylingMode":true,"attributeConnections":[{"__isSmartRef__":true,"id":3734},{"__isSmartRef__":true,"id":3765},{"__isSmartRef__":true,"id":3743},{"__isSmartRef__":true,"id":3769}],"doNotSerialize":["$$_Extent"],"doNotCopyProperties":["$$_Extent"],"__serializedExpressions__":["_BorderColor","_Fill","_Padding","_Position","extent","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(222,222,222)","_Fill":"Color.rgb(244,244,244)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,-3.0)","extent":"lively.pt(1071.0,465.0)","_Extent":"lively.pt(1071.0,465.0)"},"3734":{"sourceObj":{"__isSmartRef__":true,"id":3733},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3706},"targetMethodName":"updateDelayed","varMapping":{"__isSmartRef__":true,"id":3735},"dependedBy":{"__isSmartRef__":true,"id":3736},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3735":{"source":{"__isSmartRef__":true,"id":3733},"target":{"__isSmartRef__":true,"id":3706}},"3736":{"dependendConnections":[{"__isSmartRef__":true,"id":3737},{"__isSmartRef__":true,"id":3737},{"__isSmartRef__":true,"id":3737},{"__isSmartRef__":true,"id":3737},{"__isSmartRef__":true,"id":3740},{"__isSmartRef__":true,"id":3734},{"__isSmartRef__":true,"id":3743}],"sourceAttrName":"extent","sourceObj":{"__isSmartRef__":true,"id":3706},"targetMethodName":"updateDelayed","targetObj":{"__isSmartRef__":true,"id":3706},"attributeConnections":[{"__isSmartRef__":true,"id":3745},{"__isSmartRef__":true,"id":3747},{"__isSmartRef__":true,"id":3749},{"__isSmartRef__":true,"id":3751},{"__isSmartRef__":true,"id":3753},{"__isSmartRef__":true,"id":3755},{"__isSmartRef__":true,"id":3757},{"__isSmartRef__":true,"id":3759},{"__isSmartRef__":true,"id":3761},{"__isSmartRef__":true,"id":3763}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"3737":{"dependedBy":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"_Extent","sourceObj":{"__isSmartRef__":true,"id":3738},"targetMethodName":"updateDelayed","targetObj":{"__isSmartRef__":true,"id":3706},"varMapping":{"__isSmartRef__":true,"id":3739},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3738":{"_BorderRadius":0,"_BorderStyle":"solid","_BorderWidth":0,"_Opacity":1,"attributeConnections":[{"__isSmartRef__":true,"id":3737}],"doNotCopyProperties":["$$_Extent"],"doNotSerialize":["$$_Extent"],"stringifiedShapeNode":"","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__serializedExpressions__":["_BorderColor","_Extent","_Fill","_Padding","_Position","extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(222,222,222)","_Extent":"lively.pt(1299.0,962.0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,-3.0)","extent":"lively.pt(0.0,0.0)"},"3739":{"source":{"__isSmartRef__":true,"id":3738},"target":{"__isSmartRef__":true,"id":3706}},"3740":{"sourceObj":{"__isSmartRef__":true,"id":3741},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3706},"targetMethodName":"updateDelayed","varMapping":{"__isSmartRef__":true,"id":3742},"dependedBy":{"__isSmartRef__":true,"id":3736},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3741":{"_BorderRadius":0,"_BorderStyle":"solid","_BorderWidth":0,"_Opacity":1,"stringifiedShapeNode":"","_AppearanceStylingMode":false,"_BorderStylingMode":true,"attributeConnections":[{"__isSmartRef__":true,"id":3740}],"doNotSerialize":["$$_Extent"],"doNotCopyProperties":["$$_Extent"],"__serializedExpressions__":["_BorderColor","_Fill","_Padding","_Position","extent","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(222,222,222)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,-3.0)","extent":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1299.0,962.0)"},"3742":{"source":{"__isSmartRef__":true,"id":3741},"target":{"__isSmartRef__":true,"id":3706}},"3743":{"sourceObj":{"__isSmartRef__":true,"id":3733},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3736},"targetMethodName":"update","varMapping":{"__isSmartRef__":true,"id":3744},"dependedBy":{"__isSmartRef__":true,"id":3736},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3744":{"source":{"__isSmartRef__":true,"id":3733},"target":{"__isSmartRef__":true,"id":3736}},"3745":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":3737},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":3746},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3746":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3737}},"3747":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":3737},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":3748},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3748":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3737}},"3749":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":3737},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":3750},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3750":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3737}},"3751":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":3740},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":3752},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3752":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3740}},"3753":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":3740},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":3754},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3754":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3740}},"3755":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":3740},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":3756},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3756":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3740}},"3757":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":3734},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":3758},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3758":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3734}},"3759":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":3734},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":3760},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3760":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3734}},"3761":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":3734},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":3762},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3762":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3734}},"3763":{"sourceObj":{"__isSmartRef__":true,"id":3736},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":3743},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":3764},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3764":{"source":{"__isSmartRef__":true,"id":3736},"target":{"__isSmartRef__":true,"id":3743}},"3765":{"sourceObj":{"__isSmartRef__":true,"id":3733},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3706},"targetMethodName":"draw","varMapping":{"__isSmartRef__":true,"id":3766},"dependedBy":{"__isSmartRef__":true,"id":3767},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3766":{"source":{"__isSmartRef__":true,"id":3733},"target":{"__isSmartRef__":true,"id":3706}},"3767":{"sourceObj":{"__isSmartRef__":true,"id":3706},"sourceAttrName":"extent","targetObj":{"__isSmartRef__":true,"id":3706},"targetMethodName":"draw","varMapping":{"__isSmartRef__":true,"id":3768},"dependendConnections":[{"__isSmartRef__":true,"id":3765},{"__isSmartRef__":true,"id":3769}],"attributeConnections":[{"__isSmartRef__":true,"id":3771},{"__isSmartRef__":true,"id":3773},{"__isSmartRef__":true,"id":3775},{"__isSmartRef__":true,"id":3777}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"3768":{"source":{"__isSmartRef__":true,"id":3706},"target":{"__isSmartRef__":true,"id":3706}},"3769":{"sourceObj":{"__isSmartRef__":true,"id":3733},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3767},"targetMethodName":"update","varMapping":{"__isSmartRef__":true,"id":3770},"dependedBy":{"__isSmartRef__":true,"id":3767},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3770":{"source":{"__isSmartRef__":true,"id":3733},"target":{"__isSmartRef__":true,"id":3767}},"3771":{"sourceObj":{"__isSmartRef__":true,"id":3767},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":3765},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":3772},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3772":{"source":{"__isSmartRef__":true,"id":3767},"target":{"__isSmartRef__":true,"id":3765}},"3773":{"sourceObj":{"__isSmartRef__":true,"id":3767},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":3765},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":3774},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3774":{"source":{"__isSmartRef__":true,"id":3767},"target":{"__isSmartRef__":true,"id":3765}},"3775":{"sourceObj":{"__isSmartRef__":true,"id":3767},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":3765},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":3776},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3776":{"source":{"__isSmartRef__":true,"id":3767},"target":{"__isSmartRef__":true,"id":3765}},"3777":{"sourceObj":{"__isSmartRef__":true,"id":3767},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":3769},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":3778},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3778":{"source":{"__isSmartRef__":true,"id":3767},"target":{"__isSmartRef__":true,"id":3769}},"3779":{"rules":[{"__isSmartRef__":true,"id":3780},{"__isSmartRef__":true,"id":3784},{"__isSmartRef__":true,"id":3785}],"originMorph":{"__isSmartRef__":true,"id":3706},"__LivelyClassName__":"lively.morphic.StyleSheet","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3780":{"declarations":[{"__isSmartRef__":true,"id":3781},{"__isSmartRef__":true,"id":3782},{"__isSmartRef__":true,"id":3783}],"styleSheet":{"__isSmartRef__":true,"id":3779},"selector":".axis path, .axis line","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3781":{"values":["none"],"rule":{"__isSmartRef__":true,"id":3780},"property":"fill","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3782":{"values":["#000"],"rule":{"__isSmartRef__":true,"id":3780},"property":"stroke","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3783":{"values":["crispEdges"],"rule":{"__isSmartRef__":true,"id":3780},"property":"shape-rendering","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3784":{"declarations":[],"styleSheet":{"__isSmartRef__":true,"id":3779},"selector":".x.axis path","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3785":{"declarations":[{"__isSmartRef__":true,"id":3786},{"__isSmartRef__":true,"id":3787},{"__isSmartRef__":true,"id":3788}],"styleSheet":{"__isSmartRef__":true,"id":3779},"selector":".line","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3786":{"values":["none"],"rule":{"__isSmartRef__":true,"id":3785},"property":"fill","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3787":{"values":["steelblue"],"rule":{"__isSmartRef__":true,"id":3785},"property":"stroke","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3788":{"values":["1.5px"],"rule":{"__isSmartRef__":true,"id":3785},"property":"stroke-width","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3789":{"name":"root","submorphs":[null]},"3790":{"reset":{"__isSmartRef__":true,"id":3791},"update":{"__isSmartRef__":true,"id":3795},"draw":{"__isSmartRef__":true,"id":3799},"getChart":{"__isSmartRef__":true,"id":3803},"onrestore":{"__isSmartRef__":true,"id":3807},"installLayers":{"__isSmartRef__":true,"id":3815},"clear":{"__isSmartRef__":true,"id":3819},"getD3Transform":{"__isSmartRef__":true,"id":3823},"setD3Transform":{"__isSmartRef__":true,"id":3827},"onExport":{"__isSmartRef__":true,"id":3831},"catchErrors":{"__isSmartRef__":true,"id":3835},"getData":{"__isSmartRef__":true,"id":3839},"getExampleData":{"__isSmartRef__":true,"id":3843}},"3791":{"varMapping":{"__isSmartRef__":true,"id":3792},"source":"function reset() {\n this.doNotSerialize = ['chart', 'svgNode', 'data', 'lastNode'];\n this.data = null;\n this.startStepping(1000, 'redraw');\n this.stopStepping()\n this.scaleDetail = 1\n \n}","funcProperties":{"__isSmartRef__":true,"id":3793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3792":{"this":{"__isSmartRef__":true,"id":3706}},"3793":{"timestamp":{"__isSmartRef__":true,"id":3794},"tags":[]},"3794":{"isSerializedDate":true,"string":"Sat Jan 25 2014 01:03:49 GMT-0800 (PST)"},"3795":{"varMapping":{"__isSmartRef__":true,"id":3796},"source":"function update() {\n\n this.draw();\n\n this.d3TransistionNodes()\n}","funcProperties":{"__isSmartRef__":true,"id":3797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3796":{"this":{"__isSmartRef__":true,"id":3706}},"3797":{"timestamp":{"__isSmartRef__":true,"id":3798},"user":"jenslincke","tags":[]},"3798":{"isSerializedDate":true,"string":"Wed Oct 02 2013 09:22:41 GMT-0700 (PDT)"},"3799":{"varMapping":{"__isSmartRef__":true,"id":3800},"source":"function draw() {\n if (!this.chart) this.chart = this.getChart();\n this.clear()\n\n var margin = {top: 30, right: 130, bottom: 30, left: 80},\n width = this.getExtent().x - margin.left - margin.right,\n height = this.getExtent().y - margin.top - margin.bottom;\n\n // var x = d3.scale.linear().range([0, width]);\n var x = d3.time.scale().range([0, width]);\n var y = d3.scale.linear().range([height, 0]);\n var color = d3.scale.category10();\n\n var xAxis = d3.svg.axis()\n .scale(x)\n .orient(\"bottom\");\n var yAxis = d3.svg.axis()\n .scale(y)\n .orient(\"left\");\n\n\n\ncop.withLayers([NoPrettyArrayPrintingLayer], function() { \n\n var dataAndTimes = this.getData()\n var times = dataAndTimes.detect(function(ea) {\n return ea.name == \"Time\"}).values.collect(function(ea) { return new Date(ea * 1000)});\n var line = d3.svg.line()\n .interpolate(\"line\")\n .x(function(d, index) { return x(times[index]); })\n .y(function(d) { return y(d); });\n\n var svg = this.chart.append(\"svg\")\n .attr(\"width\", width + margin.left + margin.right)\n .attr(\"height\", height + margin.top + margin.bottom)\n .append(\"g\")\n .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\");\n\n\n var data = dataAndTimes.reject(function(ea) { return ea.name == \"Time\"});\n color.domain(data.pluck(\"name\"))\n\n\n \n x.domain([times.first(), times.last() ]);\n\n d3.min(data[0].values, function(v) { return v; })\n\n y.domain([\n d3.min(data, function(c) { return d3.min(c.values, function(v) { return v; }); }),\n d3.max(data, function(c) { return d3.max(c.values, function(v) { return v; }); })\n ]);\n\n svg.append(\"g\")\n .attr(\"class\", \"x axis\")\n .attr(\"transform\", \"translate(0,\" + height + \")\")\n .call(xAxis);\n\n svg.append(\"g\")\n .attr(\"class\", \"y axis\")\n .call(yAxis)\n\n\n var column = svg.selectAll(\".measurement\")\n .data(data)\n .enter().append(\"g\")\n .attr(\"class\", \"city\");\n\n column.append(\"path\")\n .attr(\"class\", \"line\")\n .attr(\"d\", function(d) { return line(d.values); })\n .style(\"stroke\", function(d) { return color(d.name); });\n\n column.append(\"text\")\n .datum(function(d) { return {name: d.name, value: d.values[d.values.length - 1]}; })\n .attr(\"transform\", function(d) { return \"translate(\" + x(times.last()) + \",\" + y(d.value) + \")\"; })\n .attr(\"x\", 3)\n .attr(\"dy\", \".35em\")\n .text(function(d) { return d.name; });\n\n}.bind(this))\n\n}","funcProperties":{"__isSmartRef__":true,"id":3801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3800":{"this":{"__isSmartRef__":true,"id":3706}},"3801":{"timestamp":{"__isSmartRef__":true,"id":3802},"user":"jenslincke","tags":[]},"3802":{"isSerializedDate":true,"string":"Sun Jan 26 2014 14:34:19 GMT-0800 (PST)"},"3803":{"varMapping":{"__isSmartRef__":true,"id":3804},"source":"function getChart() {\n return d3.select(this.renderContext().shapeNode);\n}","funcProperties":{"__isSmartRef__":true,"id":3805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3804":{"this":{"__isSmartRef__":true,"id":3706}},"3805":{"timestamp":{"__isSmartRef__":true,"id":3806},"user":"markoroeder","tags":[]},"3806":{"isSerializedDate":true,"string":"Mon Dec 17 2012 02:04:18 GMT-0800 (PST)"},"3807":{"varMapping":{"__isSmartRef__":true,"id":3808},"source":"function onrestore() {\n \n // D3 is not loaded yet\n // d3.transition.prototype.attr\n lively.bindings.callWhenPathNotNull(Global, [\"d3\", \"transition\"], \n function() {\n this.installLayers.bind(this).delay(0)\n }.bind(this), \"call\")\n \n}","funcProperties":{"__isSmartRef__":true,"id":3813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3808":{"this":{"__isSmartRef__":true,"id":3706},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3809}},"3809":{"$super":{"__isSmartRef__":true,"id":3810}},"3810":{"varMapping":{"__isSmartRef__":true,"id":3811},"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":3812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3811":{"obj":{"__isSmartRef__":true,"id":3706},"name":"onrestore"},"3812":{},"3813":{"timestamp":{"__isSmartRef__":true,"id":3814},"user":"jenslincke","tags":[]},"3814":{"isSerializedDate":true,"string":"Thu Jul 18 2013 07:44:41 GMT-0700 (PDT)"},"3815":{"varMapping":{"__isSmartRef__":true,"id":3816},"source":"function installLayers() {\n cop.create(\"NoPrettyArrayPrintingLayer\").refineObject(Global, {\n printOn: function(objOrArray, ws) {\n // work around OMeta and D3 array printing incompatibilities\n if (Object.isArray(objOrArray)) {\n for (var idx = 0; idx < objOrArray.length; idx++) {\n if (idx > 0)\n ws.nextPutAll(\", \")\n printOn(objOrArray[idx], ws);\n }\n } else {\n return cop.proceed(objOrArray, ws)\n }\n }\n })\n \n // d3.transition.prototype.attr\n console.log(\"INSTALL D3 Error handler\")\n var errorHandlerFunc = function(key, value) {\n if (Object.isFunction(value)) {\n return cop.proceed(key, function() {\n try {\n return value.apply(this, arguments)\n } catch(e) {\n $world.logError(e)\n }\n })\n }\n return cop.proceed(key, value)\n }\n // Damn it, it error handling seems to be a homogenous concern\n // and AOP would be more appropriate here\n // but, higher order functions are also viable\n cop.create(\"CaptureD3Errors\").refineClass(d3.transition, {\n attr: errorHandlerFunc,\n style: errorHandlerFunc,\n }).refineClass(d3.selection, {\n attr: errorHandlerFunc,\n style: errorHandlerFunc,\n }).beGlobal()\n \n \n \n \n}","funcProperties":{"__isSmartRef__":true,"id":3817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3816":{"this":{"__isSmartRef__":true,"id":3706}},"3817":{"timestamp":{"__isSmartRef__":true,"id":3818},"user":"jenslincke","tags":[]},"3818":{"isSerializedDate":true,"string":"Thu Jul 18 2013 07:48:40 GMT-0700 (PDT)"},"3819":{"varMapping":{"__isSmartRef__":true,"id":3820},"source":"function clear() {\n if (!this.chart) return;\n this.chart.selectAll('svg').remove();\n this.chart.selectAll('div').remove();\n}","funcProperties":{"__isSmartRef__":true,"id":3821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3820":{"this":{"__isSmartRef__":true,"id":3706}},"3821":{"timestamp":{"__isSmartRef__":true,"id":3822},"user":"jenslincke","tags":[]},"3822":{"isSerializedDate":true,"string":"Wed Oct 02 2013 06:55:11 GMT-0700 (PDT)"},"3823":{"varMapping":{"__isSmartRef__":true,"id":3824},"source":"function getD3Transform() {\n if (!this.svgNode) return;\n return this.svgNode.attr(\"transform\")\n\n}","funcProperties":{"__isSmartRef__":true,"id":3825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3824":{"this":{"__isSmartRef__":true,"id":3706}},"3825":{"timestamp":{"__isSmartRef__":true,"id":3826},"user":"jenslincke","tags":[]},"3826":{"isSerializedDate":true,"string":"Tue Jul 16 2013 07:32:35 GMT-0700 (PDT)"},"3827":{"varMapping":{"__isSmartRef__":true,"id":3828},"source":"function setD3Transform(value) {\n if (!this.svgNode || !value) return;\n\n return this.svgNode.attr(\"transform\", value)\n\n}","funcProperties":{"__isSmartRef__":true,"id":3829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3828":{"this":{"__isSmartRef__":true,"id":3706}},"3829":{"timestamp":{"__isSmartRef__":true,"id":3830},"user":"jenslincke","tags":[]},"3830":{"isSerializedDate":true,"string":"Tue Jul 16 2013 07:32:45 GMT-0700 (PDT)"},"3831":{"varMapping":{"__isSmartRef__":true,"id":3832},"source":"function onExport() {\n \n\n var s = \"\" +\n Exporter.stringify(this.chart[0][0]) + \"\"\n\n\n var fileName = this.get(\"ExportFilename\").textString\n \n var url = URL.source.withFilename(fileName + \".html\");\n var wr = new WebResource(url)\n wr.put(s)\n \n $world.confirm(\"exported \" + url +\". Visit it?\", function(bool) {\n if (bool) {\n window.open(url)\n }\n \n })\n \n}","funcProperties":{"__isSmartRef__":true,"id":3833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3832":{"this":{"__isSmartRef__":true,"id":3706}},"3833":{"timestamp":{"__isSmartRef__":true,"id":3834},"user":"jenslincke","tags":[]},"3834":{"isSerializedDate":true,"string":"Wed Jul 17 2013 08:50:09 GMT-0700 (PDT)"},"3835":{"varMapping":{"__isSmartRef__":true,"id":3836},"source":"function catchErrors(f) {\n // D3 does not like to handle errors. It just stops working. So we be helpful\n // and handle them for it. \n return function() {\n try {\n return f.apply(this, arguments)\n } catch(e) {\n $world.logError(e)\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3836":{"this":{"__isSmartRef__":true,"id":3706}},"3837":{"timestamp":{"__isSmartRef__":true,"id":3838},"user":"jenslincke","tags":[]},"3838":{"isSerializedDate":true,"string":"Thu Jul 18 2013 04:52:05 GMT-0700 (PDT)"},"3839":{"varMapping":{"__isSmartRef__":true,"id":3840},"source":"function getData() {\n // this.getData()\n \n // column = \"TP\"\n if (this.get(\"SimulationResults\")) {\n var table = this.get(\"SimulationResults\").table\n return table.columns.collect(function(column) {\n return {\n name: column,\n values: table.data.collect(function(ea) {\n return ea[column]\n })\n }\n })\n }\n // fallback\n return this.getExampleData()\n\n}","funcProperties":{"__isSmartRef__":true,"id":3841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3840":{"this":{"__isSmartRef__":true,"id":3706}},"3841":{"timestamp":{"__isSmartRef__":true,"id":3842},"user":"jenslincke","tags":[]},"3842":{"isSerializedDate":true,"string":"Sat Jan 25 2014 07:43:31 GMT-0800 (PST)"},"3843":{"varMapping":{"__isSmartRef__":true,"id":3844},"source":"function getExampleData() {\n // this.getExampleData()\n var randomValues = function(n) {\n var last = 0\n return range(0,n).collect(function(x) { return last += Math.random() - 0.3})\n }\n return [\n {name: \"A\", values: randomValues(100)},\n {name: \"B\", values: randomValues(100)},\n {name: \"C\", values: randomValues(100)},\n ]\n}","funcProperties":{"__isSmartRef__":true,"id":3845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3844":{"this":{"__isSmartRef__":true,"id":3706}},"3845":{"timestamp":{"__isSmartRef__":true,"id":3846},"user":"jenslincke","tags":[]},"3846":{"isSerializedDate":true,"string":"Sat Jan 25 2014 07:20:52 GMT-0800 (PST)"},"3847":{"submorphs":[{"__isSmartRef__":true,"id":3848},{"__isSmartRef__":true,"id":3882},{"__isSmartRef__":true,"id":3898},{"__isSmartRef__":true,"id":3940},{"__isSmartRef__":true,"id":3962},{"__isSmartRef__":true,"id":3967},{"__isSmartRef__":true,"id":3988},{"__isSmartRef__":true,"id":4011},{"__isSmartRef__":true,"id":4032}],"scripts":[],"id":"E219886F-77C6-49BC-A9C7-F23E4ADA38C9","shape":{"__isSmartRef__":true,"id":4055},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Buttons","partsBinMetaInfo":{"__isSmartRef__":true,"id":4056},"eventHandler":{"__isSmartRef__":true,"id":4090},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","B1BE7C15-9E53-497B-A4E6-DD2B86983196"],"partTests":{"__isSmartRef__":true,"id":4091},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":952},"prevScroll":[0,0],"isBeingDragged":false,"startTime":1391552228953,"steps":12,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4096},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(11.3,16.6)","distanceToDragEvent":"lively.pt(167.6,-12.6)"},"3848":{"submorphs":[{"__isSmartRef__":true,"id":3849}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3854},"eventHandler":{"__isSmartRef__":true,"id":3855},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D","C588532D-80AE-4B22-A023-EED1306BC47F"],"id":"9372C719-A9EF-4FD1-B343-DDAD8253AB0A","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":3849},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":3856},{"__isSmartRef__":true,"id":3858}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button3","partsBinMetaInfo":{"__isSmartRef__":true,"id":3860},"pinSpecs":[{"__isSmartRef__":true,"id":3876}],"owner":{"__isSmartRef__":true,"id":3847},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3877},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(87.5,7.3)","distanceToDragEvent":"lively.pt(36.7,-10.2)"},"3849":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3850},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3851}],"eventHandler":{"__isSmartRef__":true,"id":3853},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4","1E07DB58-5249-4ADB-B5A4-B84D80123207"],"id":"33983F2C-B5FE-47F7-B0E7-987A84B14776","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":3848},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"3850":{"_BorderWidth":0,"_Fill":null,"__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(35.2,20.9)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3851":{"style":{"__isSmartRef__":true,"id":3852},"chunkOwner":{"__isSmartRef__":true,"id":3849},"_id":"_222753","storedString":"Step","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3852":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3853":{"morph":{"__isSmartRef__":true,"id":3849},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3854":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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(35.2,20.9)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"3855":{"morph":{"__isSmartRef__":true,"id":3848},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3856":{"sourceObj":{"__isSmartRef__":true,"id":3848},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3848},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":3857},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3857":{"source":{"__isSmartRef__":true,"id":3848},"target":{"__isSmartRef__":true,"id":3848}},"3858":{"sourceObj":{"__isSmartRef__":true,"id":3848},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3847},"targetMethodName":"onStep","varMapping":{"__isSmartRef__":true,"id":3859},"isAutoConnected":true,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3859":{"source":{"__isSmartRef__":true,"id":3848},"target":{"__isSmartRef__":true,"id":3847}},"3860":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":3861},{"__isSmartRef__":true,"id":3863},{"__isSmartRef__":true,"id":3865},{"__isSmartRef__":true,"id":3867},{"__isSmartRef__":true,"id":3869},{"__isSmartRef__":true,"id":3871},{"__isSmartRef__":true,"id":3873}],"migrationLevel":7,"lastModifiedDate":{"__isSmartRef__":true,"id":3875},"revisionOnLoad":203770,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3861":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","date":{"__isSmartRef__":true,"id":3862}},"3862":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:15:42 GMT-0800 (PST)"},"3863":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","date":{"__isSmartRef__":true,"id":3864}},"3864":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:53:16 GMT-0800 (PST)"},"3865":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","date":{"__isSmartRef__":true,"id":3866}},"3866":{"isSerializedDate":true,"string":"Tue Apr 30 2013 20:34:25 GMT-0700 (PDT)"},"3867":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","date":{"__isSmartRef__":true,"id":3868}},"3868":{"isSerializedDate":true,"string":"Tue Apr 30 2013 20:35:59 GMT-0700 (PDT)"},"3869":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","date":{"__isSmartRef__":true,"id":3870}},"3870":{"isSerializedDate":true,"string":"Tue Apr 30 2013 20:36:30 GMT-0700 (PDT)"},"3871":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","date":{"__isSmartRef__":true,"id":3872}},"3872":{"isSerializedDate":true,"string":"Mon Jun 17 2013 10:22:38 GMT-0700 (PDT)"},"3873":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","date":{"__isSmartRef__":true,"id":3874}},"3874":{"isSerializedDate":true,"string":"Mon Jun 17 2013 10:24:50 GMT-0700 (PDT)"},"3875":{"isSerializedDate":true,"string":"Thu Jan 16 2014 01:23:15 GMT-0800 (PST)"},"3876":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"3877":{"doAction":{"__isSmartRef__":true,"id":3878}},"3878":{"varMapping":{"__isSmartRef__":true,"id":3879},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":3880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3879":{"this":{"__isSmartRef__":true,"id":3848}},"3880":{"user":"undefined","tags":[],"timestamp":{"__isSmartRef__":true,"id":3881}},"3881":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:14:29 GMT-0800 (PST)"},"3882":{"submorphs":[{"__isSmartRef__":true,"id":3883}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3888},"eventHandler":{"__isSmartRef__":true,"id":3889},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D"],"id":"B1C5D77B-D7CA-4908-B108-70BC656F04D7","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":3883},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":3890}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button5","partsBinMetaInfo":{"__isSmartRef__":true,"id":3481},"pinSpecs":[{"__isSmartRef__":true,"id":3892}],"owner":{"__isSmartRef__":true,"id":3847},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3893},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(131.6,6.0)","distanceToDragEvent":"lively.pt(77.4,-9.9)"},"3883":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3884},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3885}],"eventHandler":{"__isSmartRef__":true,"id":3887},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4"],"id":"500D5F20-3A4B-472D-8E6D-AD135D66F62E","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":3882},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"3884":{"_BorderWidth":0,"_Fill":null,"__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,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3885":{"style":{"__isSmartRef__":true,"id":3886},"chunkOwner":{"__isSmartRef__":true,"id":3883},"_id":"_578952","storedString":"Reset","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3886":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3887":{"morph":{"__isSmartRef__":true,"id":3883},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3888":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"3889":{"morph":{"__isSmartRef__":true,"id":3882},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3890":{"sourceObj":{"__isSmartRef__":true,"id":3882},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3882},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":3891},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3891":{"source":{"__isSmartRef__":true,"id":3882},"target":{"__isSmartRef__":true,"id":3882}},"3892":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"3893":{"doAction":{"__isSmartRef__":true,"id":3894}},"3894":{"varMapping":{"__isSmartRef__":true,"id":3895},"source":"function doAction() {\n this.get(\"ResetSimulation\").parseSimulationSource()\n cop.withLayers([ForceNameFoundLayer], function() {\n this.get(\"ResetSimulation\").simulateStep()\n }.bind(this))\n this.get(\"EnergySimulation\").showAllProperties()\n this.get(\"EnergySimulation\").initSimulation()\n}","funcProperties":{"__isSmartRef__":true,"id":3896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3895":{"this":{"__isSmartRef__":true,"id":3882}},"3896":{"timestamp":{"__isSmartRef__":true,"id":3897},"user":"jenslincke","tags":[]},"3897":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:32:04 GMT-0800 (PST)"},"3898":{"submorphs":[{"__isSmartRef__":true,"id":3899}],"scripts":[],"id":"9531A49F-3442-403E-B66C-71EC48F827BA","shape":{"__isSmartRef__":true,"id":3904},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":3905},"lighterFill":{"__isSmartRef__":true,"id":3910},"label":{"__isSmartRef__":true,"id":3899},"name":"ToggleButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3915},"attributeConnections":[{"__isSmartRef__":true,"id":3921},{"__isSmartRef__":true,"id":3922},{"__isSmartRef__":true,"id":3924}],"doNotSerialize":["$$fire","$$enable","$$disable"],"doNotCopyProperties":["$$fire","$$enable","$$disable"],"eventHandler":{"__isSmartRef__":true,"id":3926},"derivationIds":[2588,"C96F474C-1F3A-4E42-844C-DD2EB76BDD7E","E36FA68D-6317-416A-99FA-0ED81E4193DA","06258075-AC5A-4CAB-A248-A66D3213816C"],"_ClipMode":"visible","isPressed":false,"isToggled":true,"connections":{"__isSmartRef__":true,"id":3927},"moved":true,"owner":{"__isSmartRef__":true,"id":3847},"prevScroll":[0,0],"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3931},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(9.1,6.2)","distanceToDragEvent":"lively.pt(50.5,-10.1)"},"3899":{"submorphs":[],"scripts":[],"id":"017079A3-BC59-4CF2-AEE6-7C2E5A94E864","shape":{"__isSmartRef__":true,"id":3900},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":105,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":3898},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":3901}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":3903},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"44787449-DE07-40ED-B4D3-89A4A185AE29","F4BC3D0F-FF03-4EFC-B727-951442606730","277CDAEF-77E0-49F1-BD6F-1630D7ECC2E1"],"_MinTextWidth":105,"_MinTextHeight":null,"_WordBreak":"break-all","_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__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)","_TextColor":"Color.rgb(0,0,0)"},"3900":{"_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(70.3,20.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"3901":{"style":{"__isSmartRef__":true,"id":3902},"chunkOwner":{"__isSmartRef__":true,"id":3899},"_id":"_11169","storedString":"start","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3902":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3903":{"morph":{"__isSmartRef__":true,"id":3899},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3904":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":3905},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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(70.3,20.7)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"3905":{"stops":[{"__isSmartRef__":true,"id":3906},{"__isSmartRef__":true,"id":3907},{"__isSmartRef__":true,"id":3908},{"__isSmartRef__":true,"id":3909}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"3906":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"3907":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"3908":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"3909":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"3910":{"stops":[{"__isSmartRef__":true,"id":3911},{"__isSmartRef__":true,"id":3912},{"__isSmartRef__":true,"id":3913},{"__isSmartRef__":true,"id":3914}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"3911":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"3912":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"3913":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"3914":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"3915":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"ToggleButton","comment":"A toggle button:\n- emits, toggle, enable, disable on pressed.\n- changes label","changes":[{"__isSmartRef__":true,"id":3916},{"__isSmartRef__":true,"id":3918}],"lastModifiedDate":{"__isSmartRef__":true,"id":3920},"revisionOnLoad":203770,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3916":{"date":{"__isSmartRef__":true,"id":3917},"author":"jenslincke","message":"no comment","id":"7471CE07-F2C0-4149-9684-90E843DB8DCE"},"3917":{"isSerializedDate":true,"string":"Fri Feb 08 2013 01:43:34 GMT-0800 (PST)"},"3918":{"date":{"__isSmartRef__":true,"id":3919},"author":"jenslincke","message":"no comment","id":"02AB5A6F-7748-4A48-8C36-D334F97FC321"},"3919":{"isSerializedDate":true,"string":"Thu Feb 07 2013 08:57:46 GMT-0800 (PST)"},"3920":{"isSerializedDate":true,"string":"Thu Jan 16 2014 01:23:15 GMT-0800 (PST)"},"3921":{"sourceObj":{"__isSmartRef__":true,"id":3898},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3898},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3922":{"sourceObj":{"__isSmartRef__":true,"id":3898},"sourceAttrName":"enable","targetObj":{"__isSmartRef__":true,"id":3847},"targetMethodName":"onStart","varMapping":{"__isSmartRef__":true,"id":3923},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3923":{"source":{"__isSmartRef__":true,"id":3898},"target":{"__isSmartRef__":true,"id":3847}},"3924":{"sourceObj":{"__isSmartRef__":true,"id":3898},"sourceAttrName":"disable","targetObj":{"__isSmartRef__":true,"id":3847},"targetMethodName":"onStop","varMapping":{"__isSmartRef__":true,"id":3925},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3925":{"source":{"__isSmartRef__":true,"id":3898},"target":{"__isSmartRef__":true,"id":3847}},"3926":{"morph":{"__isSmartRef__":true,"id":3898},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3927":{"enable":{"__isSmartRef__":true,"id":3928},"disable":{"__isSmartRef__":true,"id":3929},"toggle":{"__isSmartRef__":true,"id":3930}},"3928":{},"3929":{},"3930":{},"3931":{"onFire":{"__isSmartRef__":true,"id":3932},"reset":{"__isSmartRef__":true,"id":3936}},"3932":{"varMapping":{"__isSmartRef__":true,"id":3933},"source":"function onFire() {\n\t\n if (this.isToggled) {\n this.setLabel(\"stop\")\n lively.bindings.signal(this, 'enable', true)\n lively.bindings.signal(this, 'toggle', true)\n } else {\n this.setLabel(\"start\")\n lively.bindings.signal(this, 'disable', true)\n lively.bindings.signal(this, 'toggle', false)\n }\n this.isToggled = !this.isToggled;\n}","funcProperties":{"__isSmartRef__":true,"id":3934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3933":{"this":{"__isSmartRef__":true,"id":3898}},"3934":{"timestamp":{"__isSmartRef__":true,"id":3935},"user":"jenslincke","tags":[]},"3935":{"isSerializedDate":true,"string":"Fri Jan 24 2014 13:29:42 GMT-0800 (PST)"},"3936":{"varMapping":{"__isSmartRef__":true,"id":3937},"source":"function reset() {\n this.connections = {\"enable\": { }, \"disable\": { }, \"toggle\": { }}\n}","funcProperties":{"__isSmartRef__":true,"id":3938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3937":{"this":{"__isSmartRef__":true,"id":3898}},"3938":{"timestamp":{"__isSmartRef__":true,"id":3939},"user":"jenslincke","tags":[]},"3939":{"isSerializedDate":true,"string":"Fri Feb 08 2013 01:42:06 GMT-0800 (PST)"},"3940":{"submorphs":[{"__isSmartRef__":true,"id":3941}],"scripts":[],"id":"206DC5DE-6B6B-47EA-A4D8-A113837EC22F","shape":{"__isSmartRef__":true,"id":3948},"__layered_droppingEnabled__":true,"halosEnabled":true,"attributeConnections":[{"__isSmartRef__":true,"id":3953},{"__isSmartRef__":true,"id":3954}],"doNotSerialize":["$$value"],"doNotCopyProperties":["$$value"],"value":1,"sliderExtent":0.1,"valueScale":1,"sliderKnob":{"__isSmartRef__":true,"id":3941},"styleClass":["slider_background_horizontal"],"showsHalos":false,"name":"SimulationVelocity","partsBinMetaInfo":{"__isSmartRef__":true,"id":3956},"eventHandler":{"__isSmartRef__":true,"id":3960},"layout":{"__isSmartRef__":true,"id":3961},"derivationIds":[2631,"E6C0AF56-6D3E-41C8-AE8E-A0520F495C6B"],"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":3847},"prevScroll":[0,0],"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Slider","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(8.2,30.7)","distanceToDragEvent":"lively.pt(147.3,-14.4)"},"3941":{"submorphs":[],"scripts":[],"id":"86092F15-D80F-4ED6-B68F-803BF755D102","shape":{"__isSmartRef__":true,"id":3942},"__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":true,"slider":{"__isSmartRef__":true,"id":3940},"owner":{"__isSmartRef__":true,"id":3940},"styleClass":["slider_horizontal"],"eventHandler":{"__isSmartRef__":true,"id":3947},"derivationIds":[2632,"A8917D7B-B083-4C54-AFA0-5443B4DEF9E4"],"_ClipMode":"visible","isBeingDragged":false,"prevScroll":[0,0],"__serializedExpressions__":["_Position","hitPoint"],"__LivelyClassName__":"lively.morphic.SliderKnob","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(202.1,0.0)","hitPoint":"lively.pt(1059.7,499.8)"},"3942":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":3943},"_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(22.5,18.9)","_BorderColor":"Color.rgb(102,102,102)","_Padding":"lively.rect(0,0,0,0)"},"3943":{"stops":[{"__isSmartRef__":true,"id":3944},{"__isSmartRef__":true,"id":3945},{"__isSmartRef__":true,"id":3946}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"3944":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(196,211,221)"},"3945":{"offset":0.5,"__serializedExpressions__":["color"],"color":"Color.rgb(137,167,187)"},"3946":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(96,130,153)"},"3947":{"morph":{"__isSmartRef__":true,"id":3941},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3948":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":3949},"_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(224.6,18.9)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)"},"3949":{"stops":[{"__isSmartRef__":true,"id":3950},{"__isSmartRef__":true,"id":3951},{"__isSmartRef__":true,"id":3952}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"3950":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"3951":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"3952":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"3953":{"sourceObj":{"__isSmartRef__":true,"id":3940},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":3940},"targetMethodName":"adjustSliderParts","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3954":{"sourceObj":{"__isSmartRef__":true,"id":3940},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":3847},"targetMethodName":"updateVelocity","varMapping":{"__isSmartRef__":true,"id":3955},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3955":{"source":{"__isSmartRef__":true,"id":3940},"target":{"__isSmartRef__":true,"id":3847}},"3956":{"requiredModules":[],"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Slider","comment":"The connection point \"value\" can be used to read/write the slider knob position.","changes":[{"__isSmartRef__":true,"id":3957}],"lastModifiedDate":{"__isSmartRef__":true,"id":3959},"revisionOnLoad":186558,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3957":{"date":{"__isSmartRef__":true,"id":3958},"author":"dustin.glaeser","message":"no comment","id":"9CD9677C-9A79-4D71-85C1-E5C72C253D16"},"3958":{"isSerializedDate":true,"string":"Thu Dec 13 2012 02:34:16 GMT-0800 (PST)"},"3959":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"3960":{"morph":{"__isSmartRef__":true,"id":3940},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3961":{},"3962":{"submorphs":[],"scripts":[],"id":"03173221-CA46-4D80-A388-2397892B3B8B","shape":{"__isSmartRef__":true,"id":3963},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":309},"textChunks":[{"__isSmartRef__":true,"id":3964}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3966},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3847},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.1,90.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(141.3,-9.4)"},"3963":{"fill":null,"_BorderWidth":0,"_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(217.4,16.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3964":{"style":{"__isSmartRef__":true,"id":3965},"chunkOwner":{"__isSmartRef__":true,"id":3962},"_id":"_11170","storedString":"stopped","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3965":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3966":{"morph":{"__isSmartRef__":true,"id":3962},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3967":{"submorphs":[],"scripts":[],"id":"6553D65D-D821-4102-BD21-F597B1283D3A","shape":{"__isSmartRef__":true,"id":3968},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3969},"textChunks":[{"__isSmartRef__":true,"id":3985}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3987},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3847},"priorSelectionRange":[3,3],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,60.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(51.5,-18.2)"},"3968":{"fill":null,"_BorderWidth":0,"_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(72.2,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3969":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3970},{"__isSmartRef__":true,"id":3972},{"__isSmartRef__":true,"id":3974},{"__isSmartRef__":true,"id":3976},{"__isSmartRef__":true,"id":3978},{"__isSmartRef__":true,"id":3980},{"__isSmartRef__":true,"id":3982}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":3984},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3970":{"date":{"__isSmartRef__":true,"id":3971},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3971":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"3972":{"date":{"__isSmartRef__":true,"id":3973},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3973":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"3974":{"date":{"__isSmartRef__":true,"id":3975},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3975":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"3976":{"date":{"__isSmartRef__":true,"id":3977},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3977":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"3978":{"date":{"__isSmartRef__":true,"id":3979},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3979":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"3980":{"date":{"__isSmartRef__":true,"id":3981},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3981":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"3982":{"date":{"__isSmartRef__":true,"id":3983},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3983":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"3984":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"3985":{"style":{"__isSmartRef__":true,"id":3986},"morph":{"__isSmartRef__":true,"id":3967},"chunkOwner":{"__isSmartRef__":true,"id":3967},"storedString":"Steps:","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3986":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3987":{"morph":{"__isSmartRef__":true,"id":3967},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3988":{"submorphs":[],"scripts":[],"id":"EBC3B0E5-7768-43D9-92A0-75AA9B71C8F9","shape":{"__isSmartRef__":true,"id":3989},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":3990},"textChunks":[{"__isSmartRef__":true,"id":4006}],"charsReplaced":"50","lastFindLoc":2,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4008},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","6553D65D-D821-4102-BD21-F597B1283D3A"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3847},"isInputLine":true,"_WordBreak":"break-all","_InputAllowed":true,"_HandStyle":null,"allowInput":true,"attributeConnections":[{"__isSmartRef__":true,"id":4009}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"50","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(100.0,60.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(35.3,-14.1)"},"3989":{"fill":null,"_BorderWidth":0,"_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(28.0,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3990":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3991},{"__isSmartRef__":true,"id":3993},{"__isSmartRef__":true,"id":3995},{"__isSmartRef__":true,"id":3997},{"__isSmartRef__":true,"id":3999},{"__isSmartRef__":true,"id":4001},{"__isSmartRef__":true,"id":4003}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":4005},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3991":{"date":{"__isSmartRef__":true,"id":3992},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3992":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"3993":{"date":{"__isSmartRef__":true,"id":3994},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3994":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"3995":{"date":{"__isSmartRef__":true,"id":3996},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3996":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"3997":{"date":{"__isSmartRef__":true,"id":3998},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3998":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"3999":{"date":{"__isSmartRef__":true,"id":4000},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4000":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"4001":{"date":{"__isSmartRef__":true,"id":4002},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4002":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"4003":{"date":{"__isSmartRef__":true,"id":4004},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4004":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"4005":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"4006":{"style":{"__isSmartRef__":true,"id":4007},"morph":{"__isSmartRef__":true,"id":3988},"chunkOwner":{"__isSmartRef__":true,"id":3988},"storedString":"50","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4007":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4008":{"morph":{"__isSmartRef__":true,"id":3988},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4009":{"sourceObj":{"__isSmartRef__":true,"id":3988},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":952},"targetMethodName":"simStepsAtOnce","varMapping":{"__isSmartRef__":true,"id":4010},"converterString":"function converter(value) {\n return Number(value)\n}","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4010":{"source":{"__isSmartRef__":true,"id":3988},"target":{"__isSmartRef__":true,"id":952}},"4011":{"submorphs":[],"scripts":[],"id":"58A0F8ED-8A21-46C8-BE4F-3D83815957F1","shape":{"__isSmartRef__":true,"id":4012},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text3","partsBinMetaInfo":{"__isSmartRef__":true,"id":4013},"textChunks":[{"__isSmartRef__":true,"id":4029}],"charsReplaced":"Steps","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4031},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","6553D65D-D821-4102-BD21-F597B1283D3A"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[1,1],"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3847},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(150.0,60.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(49.5,-15.1)"},"4012":{"fill":null,"_BorderWidth":0,"_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(72.2,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4013":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4014},{"__isSmartRef__":true,"id":4016},{"__isSmartRef__":true,"id":4018},{"__isSmartRef__":true,"id":4020},{"__isSmartRef__":true,"id":4022},{"__isSmartRef__":true,"id":4024},{"__isSmartRef__":true,"id":4026}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":4028},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4014":{"date":{"__isSmartRef__":true,"id":4015},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4015":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"4016":{"date":{"__isSmartRef__":true,"id":4017},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4017":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"4018":{"date":{"__isSmartRef__":true,"id":4019},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4019":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"4020":{"date":{"__isSmartRef__":true,"id":4021},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4021":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"4022":{"date":{"__isSmartRef__":true,"id":4023},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4023":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"4024":{"date":{"__isSmartRef__":true,"id":4025},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4025":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"4026":{"date":{"__isSmartRef__":true,"id":4027},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4027":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"4028":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"4029":{"style":{"__isSmartRef__":true,"id":4030},"morph":{"__isSmartRef__":true,"id":4011},"chunkOwner":{"__isSmartRef__":true,"id":4011},"storedString":"Time:","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4030":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4031":{"morph":{"__isSmartRef__":true,"id":4011},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4032":{"submorphs":[],"scripts":[],"id":"6E626760-6587-4CAD-9293-F6DC453C190B","shape":{"__isSmartRef__":true,"id":4033},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text4","partsBinMetaInfo":{"__isSmartRef__":true,"id":4034},"textChunks":[{"__isSmartRef__":true,"id":4050}],"charsReplaced":"0.2","lastFindLoc":3,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4052},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","6553D65D-D821-4102-BD21-F597B1283D3A","58A0F8ED-8A21-46C8-BE4F-3D83815957F1"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3847},"isInputLine":true,"_WordBreak":"break-all","_InputAllowed":true,"_HandStyle":null,"allowInput":true,"attributeConnections":[{"__isSmartRef__":true,"id":4053}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"0.1","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,60.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(48.4,-14.1)"},"4033":{"fill":null,"_BorderWidth":0,"_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(76.0,28.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4034":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4035},{"__isSmartRef__":true,"id":4037},{"__isSmartRef__":true,"id":4039},{"__isSmartRef__":true,"id":4041},{"__isSmartRef__":true,"id":4043},{"__isSmartRef__":true,"id":4045},{"__isSmartRef__":true,"id":4047}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":4049},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4035":{"date":{"__isSmartRef__":true,"id":4036},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4036":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"4037":{"date":{"__isSmartRef__":true,"id":4038},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4038":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"4039":{"date":{"__isSmartRef__":true,"id":4040},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4040":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"4041":{"date":{"__isSmartRef__":true,"id":4042},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4042":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"4043":{"date":{"__isSmartRef__":true,"id":4044},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4044":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"4045":{"date":{"__isSmartRef__":true,"id":4046},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4046":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"4047":{"date":{"__isSmartRef__":true,"id":4048},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4048":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"4049":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"4050":{"style":{"__isSmartRef__":true,"id":4051},"morph":{"__isSmartRef__":true,"id":4032},"chunkOwner":{"__isSmartRef__":true,"id":4032},"storedString":"0.1","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4051":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4052":{"morph":{"__isSmartRef__":true,"id":4032},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4053":{"sourceObj":{"__isSmartRef__":true,"id":4032},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":952},"targetMethodName":"deltaTime","varMapping":{"__isSmartRef__":true,"id":4054},"converterString":"function converter(value) {\n return Number(value)\n}","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4054":{"source":{"__isSmartRef__":true,"id":4032},"target":{"__isSmartRef__":true,"id":952}},"4055":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(337.3,146.6)","_BorderColor":"Color.rgb(178,178,178)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"4056":{"partsSpaceName":"PartsBin/Basic","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4057},{"__isSmartRef__":true,"id":4059},{"__isSmartRef__":true,"id":4061},{"__isSmartRef__":true,"id":4063},{"__isSmartRef__":true,"id":4065},{"__isSmartRef__":true,"id":4067},{"__isSmartRef__":true,"id":4069},{"__isSmartRef__":true,"id":4071},{"__isSmartRef__":true,"id":4073},{"__isSmartRef__":true,"id":4075},{"__isSmartRef__":true,"id":4077},{"__isSmartRef__":true,"id":4079},{"__isSmartRef__":true,"id":4081},{"__isSmartRef__":true,"id":4083},{"__isSmartRef__":true,"id":4085},{"__isSmartRef__":true,"id":4087}],"lastModifiedDate":{"__isSmartRef__":true,"id":4089},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4057":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":4058}},"4058":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"4059":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":4060}},"4060":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"4061":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":4062}},"4062":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"4063":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":4064}},"4064":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"4065":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":4066}},"4066":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"4067":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":4068}},"4068":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"4069":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":4070}},"4070":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"4071":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":4072}},"4072":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"4073":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":4074}},"4074":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"4075":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":4076}},"4076":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"4077":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":4078}},"4078":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"4079":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":4080}},"4080":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"4081":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":4082}},"4082":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"4083":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":4084}},"4084":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"4085":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":4086}},"4086":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"4087":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":4088}},"4088":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"4089":{"isSerializedDate":true,"string":"Thu Aug 15 2013 12:21:30 GMT-0700 (PDT)"},"4090":{"morph":{"__isSmartRef__":true,"id":3847},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4091":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4092}},"4092":{"test01IsMorph":{"__isSmartRef__":true,"id":4093}},"4093":{"varMapping":{"__isSmartRef__":true,"id":4094},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4094":{"this":{"__isSmartRef__":true,"id":4091}},"4095":{},"4096":{"onStart":{"__isSmartRef__":true,"id":4097},"onStop":{"__isSmartRef__":true,"id":4101},"updateVelocity":{"__isSmartRef__":true,"id":4105},"countSteps":{"__isSmartRef__":true,"id":4109},"onStep":{"__isSmartRef__":true,"id":4113}},"4097":{"varMapping":{"__isSmartRef__":true,"id":4098},"source":"function onStart() {\n this.updateVelocity()\n}","funcProperties":{"__isSmartRef__":true,"id":4099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4098":{"this":{"__isSmartRef__":true,"id":3847}},"4099":{"timestamp":{"__isSmartRef__":true,"id":4100},"user":"jenslincke","tags":[]},"4100":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:54:10 GMT-0800 (PST)"},"4101":{"varMapping":{"__isSmartRef__":true,"id":4102},"source":"function onStop() {\n this.owner.stopStepping()\n this.stopStepping()\n this.get(\"Status\").textString = \"stopped\"\n this.get(\"SimulationResults\").showData()\n}","funcProperties":{"__isSmartRef__":true,"id":4103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4102":{"this":{"__isSmartRef__":true,"id":3847}},"4103":{"timestamp":{"__isSmartRef__":true,"id":4104},"user":"jenslincke","tags":[]},"4104":{"isSerializedDate":true,"string":"Fri Jan 24 2014 13:27:05 GMT-0800 (PST)"},"4105":{"varMapping":{"__isSmartRef__":true,"id":4106},"source":"function updateVelocity() {\n this.owner.stopStepping()\n this.startTime = Date.now()\n this.steps = 0\n var speed = (1 - this.get(\"SimulationVelocity\").value) * 1000\n this.owner.startStepping(speed, \"simulateStep\")\n this.startStepping(speed, \"countSteps\")\n}","funcProperties":{"__isSmartRef__":true,"id":4107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4106":{"this":{"__isSmartRef__":true,"id":3847}},"4107":{"timestamp":{"__isSmartRef__":true,"id":4108},"user":"jenslincke","tags":[]},"4108":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:59:39 GMT-0800 (PST)"},"4109":{"varMapping":{"__isSmartRef__":true,"id":4110},"source":"function countSteps() {\n this.steps ++\n var stepsPerSec = this.steps / (Date.now() - this.startTime) * 1000,\n simStepsPerSec = this.steps * this.owner.simStepsAtOnce / (Date.now() - this.startTime) * 1000\n this.get(\"Status\").textString =\"running\\n\" + this.steps + \" frames \\n\" + stepsPerSec.roundTo(0.1) + \" fps\\n\" +\n simStepsPerSec.roundTo(0.1) + \" steps/s\"\n\n\n this.get(\"SimulationResults\").showData()\n}","funcProperties":{"__isSmartRef__":true,"id":4111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4110":{"this":{"__isSmartRef__":true,"id":3847}},"4111":{"timestamp":{"__isSmartRef__":true,"id":4112},"user":"jenslincke","tags":[]},"4112":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:44:32 GMT-0800 (PST)"},"4113":{"varMapping":{"__isSmartRef__":true,"id":4114},"source":"function onStep() {\n this.owner.resetStatus()\n this.owner.simulateOneStep()\n this.get(\"SimulationResults\").showData()\n \n}","funcProperties":{"__isSmartRef__":true,"id":4115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4114":{"this":{"__isSmartRef__":true,"id":3847}},"4115":{"timestamp":{"__isSmartRef__":true,"id":4116},"user":"jenslincke","tags":[]},"4116":{"isSerializedDate":true,"string":"Tue Jan 28 2014 05:37:50 GMT-0800 (PST)"},"4117":{"submorphs":[{"__isSmartRef__":true,"id":4118},{"__isSmartRef__":true,"id":4142},{"__isSmartRef__":true,"id":4319},{"__isSmartRef__":true,"id":4341}],"scripts":[],"id":"1333BEC5-C3E6-4A43-85C8-E0D4C2AB5DD6","shape":{"__isSmartRef__":true,"id":4365},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4366},"eventHandler":{"__isSmartRef__":true,"id":4426},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":4427},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":4432},{"__isSmartRef__":true,"id":4433},{"__isSmartRef__":true,"id":4434},{"__isSmartRef__":true,"id":4435},{"__isSmartRef__":true,"id":4436},{"__isSmartRef__":true,"id":4437},{"__isSmartRef__":true,"id":4438},{"__isSmartRef__":true,"id":4439}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":4440},"$":{"__isSmartRef__":true,"id":4441},"name":"ElectricConsumer","attributeConnections":[{"__isSmartRef__":true,"id":4442}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":4444},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":4445},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":952},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4448},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(1396.4,352.4)"},"4118":{"submorphs":[],"scripts":[],"id":"A4A28463-72F5-4D4D-AF1A-06CA03942AF6","shape":{"__isSmartRef__":true,"id":4119},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":4120},"textChunks":[{"__isSmartRef__":true,"id":4122}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":4124},{"__isSmartRef__":true,"id":4125}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":4126},"owner":{"__isSmartRef__":true,"id":4117},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":4117},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4127},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"4119":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"4120":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":4121},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4121":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"4122":{"style":{"__isSmartRef__":true,"id":4123},"chunkOwner":{"__isSmartRef__":true,"id":4118},"_id":"_5567","storedString":"ElectricConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4123":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4124":{"sourceObj":{"__isSmartRef__":true,"id":4118},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4118},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4125":{"sourceObj":{"__isSmartRef__":true,"id":4118},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4118},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4126":{"morph":{"__isSmartRef__":true,"id":4118},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4127":{"updateLabel":{"__isSmartRef__":true,"id":4128},"renameOwner":{"__isSmartRef__":true,"id":4131},"onFocus":{"__isSmartRef__":true,"id":4134}},"4128":{"varMapping":{"__isSmartRef__":true,"id":4129},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":4130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4129":{"this":{"__isSmartRef__":true,"id":4118}},"4130":{},"4131":{"varMapping":{"__isSmartRef__":true,"id":4132},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":4133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4132":{"this":{"__isSmartRef__":true,"id":4118}},"4133":{},"4134":{"varMapping":{"__isSmartRef__":true,"id":4135},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":4140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4135":{"this":{"__isSmartRef__":true,"id":4118},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4136}},"4136":{"$super":{"__isSmartRef__":true,"id":4137}},"4137":{"varMapping":{"__isSmartRef__":true,"id":4138},"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":4139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4138":{"obj":{"__isSmartRef__":true,"id":4118},"name":"onFocus"},"4139":{},"4140":{"timestamp":{"__isSmartRef__":true,"id":4141},"user":"jenslincke","tags":[]},"4141":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:45:12 GMT-0800 (PST)"},"4142":{"submorphs":[],"scripts":[],"id":"6B0C49CD-BB3B-49A2-963F-9EBEE96E4CF6","shape":{"__isSmartRef__":true,"id":4143},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":4144},"textChunks":[{"__isSmartRef__":true,"id":4160},{"__isSmartRef__":true,"id":4162},{"__isSmartRef__":true,"id":4164},{"__isSmartRef__":true,"id":4166},{"__isSmartRef__":true,"id":4168},{"__isSmartRef__":true,"id":4170},{"__isSmartRef__":true,"id":4172},{"__isSmartRef__":true,"id":4174},{"__isSmartRef__":true,"id":4176},{"__isSmartRef__":true,"id":4178},{"__isSmartRef__":true,"id":4180},{"__isSmartRef__":true,"id":4182},{"__isSmartRef__":true,"id":4184},{"__isSmartRef__":true,"id":4186},{"__isSmartRef__":true,"id":4188},{"__isSmartRef__":true,"id":4190},{"__isSmartRef__":true,"id":4192},{"__isSmartRef__":true,"id":4194},{"__isSmartRef__":true,"id":4196},{"__isSmartRef__":true,"id":4199},{"__isSmartRef__":true,"id":4201},{"__isSmartRef__":true,"id":4203},{"__isSmartRef__":true,"id":4205},{"__isSmartRef__":true,"id":4207},{"__isSmartRef__":true,"id":4209},{"__isSmartRef__":true,"id":4211},{"__isSmartRef__":true,"id":4214},{"__isSmartRef__":true,"id":4216},{"__isSmartRef__":true,"id":4218},{"__isSmartRef__":true,"id":4220},{"__isSmartRef__":true,"id":4222},{"__isSmartRef__":true,"id":4224},{"__isSmartRef__":true,"id":4226},{"__isSmartRef__":true,"id":4228},{"__isSmartRef__":true,"id":4230},{"__isSmartRef__":true,"id":4232},{"__isSmartRef__":true,"id":4234},{"__isSmartRef__":true,"id":4236},{"__isSmartRef__":true,"id":4238},{"__isSmartRef__":true,"id":4240},{"__isSmartRef__":true,"id":4242},{"__isSmartRef__":true,"id":4244},{"__isSmartRef__":true,"id":4246},{"__isSmartRef__":true,"id":4248},{"__isSmartRef__":true,"id":4250},{"__isSmartRef__":true,"id":4252},{"__isSmartRef__":true,"id":4254}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4256},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":4257},{"__isSmartRef__":true,"id":4258},{"__isSmartRef__":true,"id":4259},{"__isSmartRef__":true,"id":4260},{"__isSmartRef__":true,"id":4261},{"__isSmartRef__":true,"id":4262},{"__isSmartRef__":true,"id":4263},{"__isSmartRef__":true,"id":4264}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4265},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":4117},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","attributeConnections":[{"__isSmartRef__":true,"id":4266},{"__isSmartRef__":true,"id":4268}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":81,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[301,301],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"$.Demand += (Math.random() - 0.5) * 0.01 * dt\nvar delta = $.Demand * dt\nif (#Battery.$.Energy > delta) {\n #Battery.$.Energy -= delta\n $.Consumed += delta\n} else {\n $.Extra += delta\n problem(\"EngeryToLow\")\n}\n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4270},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"4143":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__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(396.1,147.2)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4144":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4145},{"__isSmartRef__":true,"id":4147},{"__isSmartRef__":true,"id":4149},{"__isSmartRef__":true,"id":4151},{"__isSmartRef__":true,"id":4153},{"__isSmartRef__":true,"id":4155},{"__isSmartRef__":true,"id":4157}],"lastModifiedDate":{"__isSmartRef__":true,"id":4159},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4145":{"date":{"__isSmartRef__":true,"id":4146},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4146":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"4147":{"date":{"__isSmartRef__":true,"id":4148},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4148":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"4149":{"date":{"__isSmartRef__":true,"id":4150},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4150":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"4151":{"date":{"__isSmartRef__":true,"id":4152},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4152":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"4153":{"date":{"__isSmartRef__":true,"id":4154},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4154":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"4155":{"date":{"__isSmartRef__":true,"id":4156},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4156":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"4157":{"date":{"__isSmartRef__":true,"id":4158},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4158":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"4159":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"4160":{"style":{"__isSmartRef__":true,"id":4161},"chunkOwner":{"__isSmartRef__":true,"id":4142},"_id":"_16","storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4161":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4162":{"_id":"_396","style":{"__isSmartRef__":true,"id":4163},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":".Demand += (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4163":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4164":{"_id":"_374","style":{"__isSmartRef__":true,"id":4165},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"Math","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4165":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(255,20,147)"},"4166":{"_id":"_375","style":{"__isSmartRef__":true,"id":4167},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":".random() - ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4167":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4168":{"_id":"_376","style":{"__isSmartRef__":true,"id":4169},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"0.5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4169":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"4170":{"_id":"_377","style":{"__isSmartRef__":true,"id":4171},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":") * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4171":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4172":{"_id":"_378","style":{"__isSmartRef__":true,"id":4173},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"0.01","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4173":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"4174":{"_id":"_379","style":{"__isSmartRef__":true,"id":4175},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4175":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4176":{"_id":"_428","style":{"__isSmartRef__":true,"id":4177},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4177":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"4178":{"_id":"_380","style":{"__isSmartRef__":true,"id":4179},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4179":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4180":{"_id":"_381","style":{"__isSmartRef__":true,"id":4181},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" delta =","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4181":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4182":{"_id":"_420","style":{"__isSmartRef__":true,"id":4183},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4183":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4184":{"_id":"_421","style":{"__isSmartRef__":true,"id":4185},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"Demand","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4185":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4186":{"_id":"_419","style":{"__isSmartRef__":true,"id":4187},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" *","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4187":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4188":{"_id":"_429","style":{"__isSmartRef__":true,"id":4189},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4189":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"4190":{"_id":"_382","style":{"__isSmartRef__":true,"id":4191},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4191":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4192":{"_id":"_383","style":{"__isSmartRef__":true,"id":4193},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4193":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4194":{"_id":"_409","style":{"__isSmartRef__":true,"id":4195},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4195":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4196":{"_id":"_411","style":{"__isSmartRef__":true,"id":4197},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4197":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4198},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4198":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":4117}},"4199":{"_id":"_410","style":{"__isSmartRef__":true,"id":4200},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4200":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4201":{"_id":"_412","style":{"__isSmartRef__":true,"id":4202},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4202":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4203":{"_id":"_413","style":{"__isSmartRef__":true,"id":4204},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" > delta) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4204":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4205":{"_id":"_384","style":{"__isSmartRef__":true,"id":4206},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4206":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4207":{"_id":"_385","style":{"__isSmartRef__":true,"id":4208},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4208":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4209":{"_id":"_414","style":{"__isSmartRef__":true,"id":4210},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4210":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4211":{"_id":"_416","style":{"__isSmartRef__":true,"id":4212},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4212":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4213},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4213":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":4117}},"4214":{"_id":"_415","style":{"__isSmartRef__":true,"id":4215},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4215":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4216":{"_id":"_417","style":{"__isSmartRef__":true,"id":4217},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4217":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4218":{"_id":"_418","style":{"__isSmartRef__":true,"id":4219},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" -= delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4219":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4220":{"_id":"_423","style":{"__isSmartRef__":true,"id":4221},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4221":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4222":{"_id":"_424","style":{"__isSmartRef__":true,"id":4223},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"Consumed","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4223":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4224":{"_id":"_422","style":{"__isSmartRef__":true,"id":4225},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" += delta\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4225":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4226":{"_id":"_386","style":{"__isSmartRef__":true,"id":4227},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4227":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4228":{"_id":"_387","style":{"__isSmartRef__":true,"id":4229},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4229":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4230":{"_id":"_388","style":{"__isSmartRef__":true,"id":4231},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4231":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4232":{"_id":"_389","style":{"__isSmartRef__":true,"id":4233},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4233":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4234":{"_id":"_390","style":{"__isSmartRef__":true,"id":4235},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4235":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4236":{"_id":"_391","style":{"__isSmartRef__":true,"id":4237},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4237":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4238":{"_id":"_426","style":{"__isSmartRef__":true,"id":4239},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4239":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4240":{"_id":"_427","style":{"__isSmartRef__":true,"id":4241},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"Extra","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4241":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4242":{"_id":"_425","style":{"__isSmartRef__":true,"id":4243},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":" += delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4243":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4244":{"_id":"_407","style":{"__isSmartRef__":true,"id":4245},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"problem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4245":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4246":{"_id":"_408","style":{"__isSmartRef__":true,"id":4247},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4247":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4248":{"_id":"_392","style":{"__isSmartRef__":true,"id":4249},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"\"EngeryToLow\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4249":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,128)"},"4250":{"_id":"_393","style":{"__isSmartRef__":true,"id":4251},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4251":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4252":{"_id":"_394","style":{"__isSmartRef__":true,"id":4253},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4253":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4254":{"_id":"_395","style":{"__isSmartRef__":true,"id":4255},"chunkOwner":{"__isSmartRef__":true,"id":4142},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4255":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4256":{"morph":{"__isSmartRef__":true,"id":4142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4257":{"morph":{"__isSmartRef__":true,"id":4142},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"4258":{"morph":{"__isSmartRef__":true,"id":4142},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"4259":{"morph":{"__isSmartRef__":true,"id":4142},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"4260":{"morph":{"__isSmartRef__":true,"id":4142},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"4261":{"morph":{"__isSmartRef__":true,"id":4142},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"4262":{"morph":{"__isSmartRef__":true,"id":4142},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"4263":{"morph":{"__isSmartRef__":true,"id":4142},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"4264":{"morph":{"__isSmartRef__":true,"id":4142},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"4265":{"resizeWidth":true,"resizeHeight":true},"4266":{"sourceObj":{"__isSmartRef__":true,"id":4142},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4117},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":4267},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4267":{"source":{"__isSmartRef__":true,"id":4142},"target":{"__isSmartRef__":true,"id":4117}},"4268":{"sourceObj":{"__isSmartRef__":true,"id":4142},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":4142},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":4269},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4269":{"source":{"__isSmartRef__":true,"id":4142},"target":{"__isSmartRef__":true,"id":4142}},"4270":{"boundEval":{"__isSmartRef__":true,"id":4271},"getDoitContext":{"__isSmartRef__":true,"id":4279},"installLayers":{"__isSmartRef__":true,"id":4287},"onLoad":{"__isSmartRef__":true,"id":4291},"highligtScriptNames":{"__isSmartRef__":true,"id":4295},"getAutoCompletion":{"__isSmartRef__":true,"id":4299},"reset":{"__isSmartRef__":true,"id":4307},"getLastWordRange":{"__isSmartRef__":true,"id":4311}},"4271":{"varMapping":{"__isSmartRef__":true,"id":4272},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4272":{"this":{"__isSmartRef__":true,"id":4142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4273}},"4273":{"$super":{"__isSmartRef__":true,"id":4274}},"4274":{"varMapping":{"__isSmartRef__":true,"id":4275},"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":4276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4275":{"obj":{"__isSmartRef__":true,"id":4142},"name":"boundEval"},"4276":{},"4277":{"timestamp":{"__isSmartRef__":true,"id":4278},"user":"jenslincke","tags":[]},"4278":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:28:47 GMT-0800 (PST)"},"4279":{"varMapping":{"__isSmartRef__":true,"id":4280},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4280":{"this":{"__isSmartRef__":true,"id":4142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4281}},"4281":{"$super":{"__isSmartRef__":true,"id":4282}},"4282":{"varMapping":{"__isSmartRef__":true,"id":4283},"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":4284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4283":{"obj":{"__isSmartRef__":true,"id":4142},"name":"getDoitContext"},"4284":{},"4285":{"timestamp":{"__isSmartRef__":true,"id":4286},"user":"jenslincke","tags":[]},"4286":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:42:09 GMT-0800 (PST)"},"4287":{"varMapping":{"__isSmartRef__":true,"id":4288},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":4289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4288":{"this":{"__isSmartRef__":true,"id":4142}},"4289":{"timestamp":{"__isSmartRef__":true,"id":4290},"user":"jenslincke","tags":[]},"4290":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:44 GMT-0800 (PST)"},"4291":{"varMapping":{"__isSmartRef__":true,"id":4292},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":4293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4292":{"this":{"__isSmartRef__":true,"id":4142}},"4293":{"timestamp":{"__isSmartRef__":true,"id":4294},"user":"jenslincke","tags":[]},"4294":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:45 GMT-0800 (PST)"},"4295":{"varMapping":{"__isSmartRef__":true,"id":4296},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":4297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4296":{"this":{"__isSmartRef__":true,"id":4142}},"4297":{"timestamp":{"__isSmartRef__":true,"id":4298},"user":"jenslincke","tags":[]},"4298":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:25:07 GMT-0800 (PST)"},"4299":{"varMapping":{"__isSmartRef__":true,"id":4300},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":4305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4300":{"this":{"__isSmartRef__":true,"id":4142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4301}},"4301":{"$super":{"__isSmartRef__":true,"id":4302}},"4302":{"varMapping":{"__isSmartRef__":true,"id":4303},"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":4304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4303":{"obj":{"__isSmartRef__":true,"id":4142},"name":"getAutoCompletion"},"4304":{},"4305":{"timestamp":{"__isSmartRef__":true,"id":4306},"user":"jenslincke","tags":[]},"4306":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:33:17 GMT-0800 (PST)"},"4307":{"varMapping":{"__isSmartRef__":true,"id":4308},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":4309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4308":{"this":{"__isSmartRef__":true,"id":4142}},"4309":{"timestamp":{"__isSmartRef__":true,"id":4310},"user":"jenslincke","tags":[]},"4310":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:58:01 GMT-0800 (PST)"},"4311":{"varMapping":{"__isSmartRef__":true,"id":4312},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4312":{"this":{"__isSmartRef__":true,"id":4142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4313}},"4313":{"$super":{"__isSmartRef__":true,"id":4314}},"4314":{"varMapping":{"__isSmartRef__":true,"id":4315},"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":4316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4315":{"obj":{"__isSmartRef__":true,"id":4142},"name":"getLastWordRange"},"4316":{},"4317":{"timestamp":{"__isSmartRef__":true,"id":4318},"user":"jenslincke","tags":[]},"4318":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:59:58 GMT-0800 (PST)"},"4319":{"submorphs":[],"scripts":[],"id":"3906791B-AC62-4F73-B484-F7D1749C2CF5","shape":{"__isSmartRef__":true,"id":4320},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":4321},"textChunks":[{"__isSmartRef__":true,"id":4337}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4339},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":4117},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4340},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,232.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"4320":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(388.2,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4321":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4322},{"__isSmartRef__":true,"id":4324},{"__isSmartRef__":true,"id":4326},{"__isSmartRef__":true,"id":4328},{"__isSmartRef__":true,"id":4330},{"__isSmartRef__":true,"id":4332},{"__isSmartRef__":true,"id":4334}],"lastModifiedDate":{"__isSmartRef__":true,"id":4336},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4322":{"date":{"__isSmartRef__":true,"id":4323},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4323":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"4324":{"date":{"__isSmartRef__":true,"id":4325},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4325":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"4326":{"date":{"__isSmartRef__":true,"id":4327},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4327":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"4328":{"date":{"__isSmartRef__":true,"id":4329},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4329":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"4330":{"date":{"__isSmartRef__":true,"id":4331},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4331":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"4332":{"date":{"__isSmartRef__":true,"id":4333},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4333":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"4334":{"date":{"__isSmartRef__":true,"id":4335},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4335":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"4336":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"4337":{"style":{"__isSmartRef__":true,"id":4338},"chunkOwner":{"__isSmartRef__":true,"id":4319},"_id":"_11224","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4338":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4339":{"morph":{"__isSmartRef__":true,"id":4319},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4340":{"moveVertical":true,"resizeWidth":true},"4341":{"submorphs":[],"scripts":[],"id":"43ED00FA-7F58-4EC0-B415-844A99B2F484","shape":{"__isSmartRef__":true,"id":4342},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":4343},"textChunks":[{"__isSmartRef__":true,"id":4359}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4361},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":4117},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":4362}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4364},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"4342":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(381.7,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4343":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4344},{"__isSmartRef__":true,"id":4346},{"__isSmartRef__":true,"id":4348},{"__isSmartRef__":true,"id":4350},{"__isSmartRef__":true,"id":4352},{"__isSmartRef__":true,"id":4354},{"__isSmartRef__":true,"id":4356}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":4358},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4344":{"date":{"__isSmartRef__":true,"id":4345},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4345":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"4346":{"date":{"__isSmartRef__":true,"id":4347},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4347":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"4348":{"date":{"__isSmartRef__":true,"id":4349},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4349":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"4350":{"date":{"__isSmartRef__":true,"id":4351},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4351":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"4352":{"date":{"__isSmartRef__":true,"id":4353},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4353":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"4354":{"date":{"__isSmartRef__":true,"id":4355},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4355":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"4356":{"date":{"__isSmartRef__":true,"id":4357},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4357":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"4358":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"4359":{"style":{"__isSmartRef__":true,"id":4360},"chunkOwner":{"__isSmartRef__":true,"id":4341},"_id":"_11199","storedString":"Consumed: 0\nDemand: 1.5\nExtra: 0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4360":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4361":{"morph":{"__isSmartRef__":true,"id":4341},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4362":{"sourceObj":{"__isSmartRef__":true,"id":4341},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4117},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":4363},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4363":{"source":{"__isSmartRef__":true,"id":4341},"target":{"__isSmartRef__":true,"id":4117}},"4364":{"resizeWidth":true},"4365":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(410.0,250.0)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"4366":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":4367},{"__isSmartRef__":true,"id":4369},{"__isSmartRef__":true,"id":4371},{"__isSmartRef__":true,"id":4373},{"__isSmartRef__":true,"id":4375},{"__isSmartRef__":true,"id":4377},{"__isSmartRef__":true,"id":4379},{"__isSmartRef__":true,"id":4381},{"__isSmartRef__":true,"id":4383},{"__isSmartRef__":true,"id":4385},{"__isSmartRef__":true,"id":4387},{"__isSmartRef__":true,"id":4389},{"__isSmartRef__":true,"id":4391},{"__isSmartRef__":true,"id":4393},{"__isSmartRef__":true,"id":4395},{"__isSmartRef__":true,"id":4397},{"__isSmartRef__":true,"id":4399},{"__isSmartRef__":true,"id":4401},{"__isSmartRef__":true,"id":4403},{"__isSmartRef__":true,"id":4405},{"__isSmartRef__":true,"id":4407},{"__isSmartRef__":true,"id":4409},{"__isSmartRef__":true,"id":4411},{"__isSmartRef__":true,"id":4413},{"__isSmartRef__":true,"id":4415},{"__isSmartRef__":true,"id":4417},{"__isSmartRef__":true,"id":4419},{"__isSmartRef__":true,"id":4421},{"__isSmartRef__":true,"id":4423}],"lastModifiedDate":{"__isSmartRef__":true,"id":4425},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4367":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":4368}},"4368":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"4369":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":4370}},"4370":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"4371":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":4372}},"4372":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"4373":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":4374}},"4374":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"4375":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":4376}},"4376":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"4377":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":4378}},"4378":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"4379":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":4380}},"4380":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"4381":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":4382}},"4382":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"4383":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":4384}},"4384":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"4385":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":4386}},"4386":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"4387":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":4388}},"4388":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"4389":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":4390}},"4390":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"4391":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":4392}},"4392":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"4393":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":4394}},"4394":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"4395":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":4396}},"4396":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"4397":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":4398}},"4398":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"4399":{"date":{"__isSmartRef__":true,"id":4400},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"4400":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:02:28 GMT-0800 (PST)"},"4401":{"date":{"__isSmartRef__":true,"id":4402},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"4402":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:10:08 GMT-0800 (PST)"},"4403":{"date":{"__isSmartRef__":true,"id":4404},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"4404":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:24:55 GMT-0800 (PST)"},"4405":{"date":{"__isSmartRef__":true,"id":4406},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"4406":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:29:33 GMT-0800 (PST)"},"4407":{"date":{"__isSmartRef__":true,"id":4408},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"4408":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:07:26 GMT-0800 (PST)"},"4409":{"date":{"__isSmartRef__":true,"id":4410},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"4410":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:23:13 GMT-0800 (PST)"},"4411":{"date":{"__isSmartRef__":true,"id":4412},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"4412":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:58:48 GMT-0800 (PST)"},"4413":{"date":{"__isSmartRef__":true,"id":4414},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"4414":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:59:27 GMT-0800 (PST)"},"4415":{"date":{"__isSmartRef__":true,"id":4416},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"4416":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:03:44 GMT-0800 (PST)"},"4417":{"date":{"__isSmartRef__":true,"id":4418},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"4418":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:24:12 GMT-0800 (PST)"},"4419":{"date":{"__isSmartRef__":true,"id":4420},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"4420":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:26:15 GMT-0800 (PST)"},"4421":{"date":{"__isSmartRef__":true,"id":4422},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"4422":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:35:38 GMT-0800 (PST)"},"4423":{"date":{"__isSmartRef__":true,"id":4424},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"4424":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:51 GMT-0800 (PST)"},"4425":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:15 GMT-0800 (PST)"},"4426":{"morph":{"__isSmartRef__":true,"id":4117},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4427":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4428}},"4428":{"test01IsMorph":{"__isSmartRef__":true,"id":4429}},"4429":{"varMapping":{"__isSmartRef__":true,"id":4430},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4430":{"this":{"__isSmartRef__":true,"id":4427}},"4431":{},"4432":{"morph":{"__isSmartRef__":true,"id":4117},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"4433":{"morph":{"__isSmartRef__":true,"id":4117},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"4434":{"morph":{"__isSmartRef__":true,"id":4117},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"4435":{"morph":{"__isSmartRef__":true,"id":4117},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"4436":{"morph":{"__isSmartRef__":true,"id":4117},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"4437":{"morph":{"__isSmartRef__":true,"id":4117},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"4438":{"morph":{"__isSmartRef__":true,"id":4117},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"4439":{"morph":{"__isSmartRef__":true,"id":4117},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"4440":{"adjustForNewBounds":true},"4441":{"Consumed":0,"Demand":1.5,"Extra":0},"4442":{"sourceObj":{"__isSmartRef__":true,"id":4117},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":4118},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":4443},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4443":{"source":{"__isSmartRef__":true,"id":4117},"target":{"__isSmartRef__":true,"id":4118}},"4444":{},"4445":{"referencedBy":{"__isSmartRef__":true,"id":4446},"references":{"__isSmartRef__":true,"id":4447}},"4446":{},"4447":{},"4448":{"migrateFrom":{"__isSmartRef__":true,"id":4449},"parsePropeties":{"__isSmartRef__":true,"id":4453},"printProperties":{"__isSmartRef__":true,"id":4457},"parseSimulationSource":{"__isSmartRef__":true,"id":4461},"simulateStep":{"__isSmartRef__":true,"id":4465},"showError":{"__isSmartRef__":true,"id":4468},"throwSimulationProblem":{"__isSmartRef__":true,"id":4472},"updateUI":{"__isSmartRef__":true,"id":4476},"resetStatus":{"__isSmartRef__":true,"id":4480},"simulateOneStep":{"__isSmartRef__":true,"id":4484},"reset":{"__isSmartRef__":true,"id":4488},"resetScriptAnalysis":{"__isSmartRef__":true,"id":4492},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":4496},"logReference":{"__isSmartRef__":true,"id":4500},"showScriptAnalysis":{"__isSmartRef__":true,"id":4504},"showReferenceTo":{"__isSmartRef__":true,"id":4508},"resetSourceHighlighting":{"__isSmartRef__":true,"id":4512},"showNameReference":{"__isSmartRef__":true,"id":4516}},"4449":{"varMapping":{"__isSmartRef__":true,"id":4450},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":4451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4450":{"this":{"__isSmartRef__":true,"id":4117}},"4451":{"timestamp":{"__isSmartRef__":true,"id":4452},"user":"jenslincke","tags":[]},"4452":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:59 GMT-0800 (PST)"},"4453":{"varMapping":{"__isSmartRef__":true,"id":4454},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":4455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4454":{"this":{"__isSmartRef__":true,"id":4117}},"4455":{"timestamp":{"__isSmartRef__":true,"id":4456},"user":"jenslincke","tags":[]},"4456":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:03 GMT-0800 (PST)"},"4457":{"varMapping":{"__isSmartRef__":true,"id":4458},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":4459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4458":{"this":{"__isSmartRef__":true,"id":4117}},"4459":{"timestamp":{"__isSmartRef__":true,"id":4460},"user":"jenslincke","tags":[]},"4460":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:34:48 GMT-0800 (PST)"},"4461":{"varMapping":{"__isSmartRef__":true,"id":4462},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":4463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4462":{"this":{"__isSmartRef__":true,"id":4117}},"4463":{"timestamp":{"__isSmartRef__":true,"id":4464},"user":"jenslincke","tags":[]},"4464":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:12:57 GMT-0800 (PST)"},"4465":{"varMapping":{"__isSmartRef__":true,"id":4466},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\n$.Demand += (Math.random() - 0.5) * 0.01 * dt\nvar delta = $.Demand * dt\nif (this.get('Battery').$.Energy > delta) {\n this.get('Battery').$.Energy -= delta\n $.Consumed += delta\n} else {\n $.Extra += delta\n problem(\"EngeryToLow\")\n}\n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":4467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4466":{"this":{"__isSmartRef__":true,"id":4117}},"4467":{},"4468":{"varMapping":{"__isSmartRef__":true,"id":4469},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4469":{"this":{"__isSmartRef__":true,"id":4117}},"4470":{"timestamp":{"__isSmartRef__":true,"id":4471},"user":"jenslincke","tags":[]},"4471":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:11:23 GMT-0800 (PST)"},"4472":{"varMapping":{"__isSmartRef__":true,"id":4473},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":4474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4473":{"this":{"__isSmartRef__":true,"id":4117}},"4474":{"timestamp":{"__isSmartRef__":true,"id":4475},"user":"jenslincke","tags":[]},"4475":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:32:56 GMT-0800 (PST)"},"4476":{"varMapping":{"__isSmartRef__":true,"id":4477},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":4478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4477":{"this":{"__isSmartRef__":true,"id":4117}},"4478":{"timestamp":{"__isSmartRef__":true,"id":4479},"user":"jenslincke","tags":[]},"4479":{"isSerializedDate":true,"string":"Sun Jan 26 2014 06:22:09 GMT-0800 (PST)"},"4480":{"varMapping":{"__isSmartRef__":true,"id":4481},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":4482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4481":{"this":{"__isSmartRef__":true,"id":4117}},"4482":{"timestamp":{"__isSmartRef__":true,"id":4483},"user":"jenslincke","tags":[]},"4483":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:54:04 GMT-0800 (PST)"},"4484":{"varMapping":{"__isSmartRef__":true,"id":4485},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4485":{"this":{"__isSmartRef__":true,"id":4117}},"4486":{"timestamp":{"__isSmartRef__":true,"id":4487},"user":"jenslincke","tags":[]},"4487":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:58 GMT-0800 (PST)"},"4488":{"varMapping":{"__isSmartRef__":true,"id":4489},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":4490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4489":{"this":{"__isSmartRef__":true,"id":4117}},"4490":{"timestamp":{"__isSmartRef__":true,"id":4491},"user":"jenslincke","tags":[]},"4491":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:35:44 GMT-0800 (PST)"},"4492":{"varMapping":{"__isSmartRef__":true,"id":4493},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":4494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4493":{"this":{"__isSmartRef__":true,"id":4117}},"4494":{"timestamp":{"__isSmartRef__":true,"id":4495},"user":"jenslincke","tags":[]},"4495":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:36:12 GMT-0800 (PST)"},"4496":{"varMapping":{"__isSmartRef__":true,"id":4497},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":4498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4497":{"this":{"__isSmartRef__":true,"id":4117}},"4498":{"timestamp":{"__isSmartRef__":true,"id":4499},"user":"jenslincke","tags":[]},"4499":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:09 GMT-0800 (PST)"},"4500":{"varMapping":{"__isSmartRef__":true,"id":4501},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":4502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4501":{"this":{"__isSmartRef__":true,"id":4117}},"4502":{"timestamp":{"__isSmartRef__":true,"id":4503},"user":"jenslincke","tags":[]},"4503":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:15 GMT-0800 (PST)"},"4504":{"varMapping":{"__isSmartRef__":true,"id":4505},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4505":{"this":{"__isSmartRef__":true,"id":4117}},"4506":{"timestamp":{"__isSmartRef__":true,"id":4507},"user":"jenslincke","tags":[]},"4507":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:26 GMT-0800 (PST)"},"4508":{"varMapping":{"__isSmartRef__":true,"id":4509},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4509":{"this":{"__isSmartRef__":true,"id":4117}},"4510":{"timestamp":{"__isSmartRef__":true,"id":4511},"user":"jenslincke","tags":[]},"4511":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:25 GMT-0800 (PST)"},"4512":{"varMapping":{"__isSmartRef__":true,"id":4513},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":4514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4513":{"this":{"__isSmartRef__":true,"id":4117}},"4514":{"timestamp":{"__isSmartRef__":true,"id":4515},"user":"jenslincke","tags":[]},"4515":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:53:47 GMT-0800 (PST)"},"4516":{"varMapping":{"__isSmartRef__":true,"id":4517},"source":"function showNameReference(name) {\n\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n this.lastNameReference = name;\n\n var morph = this.get(name)\n if (morph) {\n morph.show().invoke(\"setBorderColor\", Color.yellow)\n morph.showScriptAnalysis()\n }\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":4518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4517":{"this":{"__isSmartRef__":true,"id":4117}},"4518":{"timestamp":{"__isSmartRef__":true,"id":4519},"user":"jenslincke","tags":[]},"4519":{"isSerializedDate":true,"string":"Thu Jan 30 2014 02:13:25 GMT-0800 (PST)"},"4520":{"submorphs":[{"__isSmartRef__":true,"id":4521},{"__isSmartRef__":true,"id":4545},{"__isSmartRef__":true,"id":4834},{"__isSmartRef__":true,"id":4856}],"scripts":[],"id":"2594256E-78F8-49F2-8433-0673979C9CD8","shape":{"__isSmartRef__":true,"id":4880},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4881},"eventHandler":{"__isSmartRef__":true,"id":4941},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":4942},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":4947},{"__isSmartRef__":true,"id":4948},{"__isSmartRef__":true,"id":4949},{"__isSmartRef__":true,"id":4950},{"__isSmartRef__":true,"id":4951},{"__isSmartRef__":true,"id":4952},{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":4954}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":4955},"$":{"__isSmartRef__":true,"id":4956},"name":"MeasureData","attributeConnections":[{"__isSmartRef__":true,"id":4957}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":4959},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":4960},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":952},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(1254.7,787.1)"},"4521":{"submorphs":[],"scripts":[],"id":"F58E973D-2DF4-4961-9947-5391954FDA4D","shape":{"__isSmartRef__":true,"id":4522},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":4523},"textChunks":[{"__isSmartRef__":true,"id":4525}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":4527},{"__isSmartRef__":true,"id":4528}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":4529},"owner":{"__isSmartRef__":true,"id":4520},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":4520},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4530},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"4522":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"4523":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":4524},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4524":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"4525":{"style":{"__isSmartRef__":true,"id":4526},"chunkOwner":{"__isSmartRef__":true,"id":4521},"_id":"_5578","storedString":"MeasureData","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4526":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4527":{"sourceObj":{"__isSmartRef__":true,"id":4521},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4521},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4528":{"sourceObj":{"__isSmartRef__":true,"id":4521},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4521},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4529":{"morph":{"__isSmartRef__":true,"id":4521},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4530":{"updateLabel":{"__isSmartRef__":true,"id":4531},"renameOwner":{"__isSmartRef__":true,"id":4534},"onFocus":{"__isSmartRef__":true,"id":4537}},"4531":{"varMapping":{"__isSmartRef__":true,"id":4532},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":4533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4532":{"this":{"__isSmartRef__":true,"id":4521}},"4533":{},"4534":{"varMapping":{"__isSmartRef__":true,"id":4535},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":4536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4535":{"this":{"__isSmartRef__":true,"id":4521}},"4536":{},"4537":{"varMapping":{"__isSmartRef__":true,"id":4538},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":4543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4538":{"this":{"__isSmartRef__":true,"id":4521},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4539}},"4539":{"$super":{"__isSmartRef__":true,"id":4540}},"4540":{"varMapping":{"__isSmartRef__":true,"id":4541},"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":4542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4541":{"obj":{"__isSmartRef__":true,"id":4521},"name":"onFocus"},"4542":{},"4543":{"timestamp":{"__isSmartRef__":true,"id":4544},"user":"jenslincke","tags":[]},"4544":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:45:12 GMT-0800 (PST)"},"4545":{"submorphs":[],"scripts":[],"id":"330888AC-84F2-44A7-AC40-A79BA756AFEE","shape":{"__isSmartRef__":true,"id":4546},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":4547},"textChunks":[{"__isSmartRef__":true,"id":4563},{"__isSmartRef__":true,"id":4565},{"__isSmartRef__":true,"id":4567},{"__isSmartRef__":true,"id":4569},{"__isSmartRef__":true,"id":4571},{"__isSmartRef__":true,"id":4573},{"__isSmartRef__":true,"id":4575},{"__isSmartRef__":true,"id":4577},{"__isSmartRef__":true,"id":4579},{"__isSmartRef__":true,"id":4581},{"__isSmartRef__":true,"id":4583},{"__isSmartRef__":true,"id":4585},{"__isSmartRef__":true,"id":4587},{"__isSmartRef__":true,"id":4589},{"__isSmartRef__":true,"id":4591},{"__isSmartRef__":true,"id":4593},{"__isSmartRef__":true,"id":4595},{"__isSmartRef__":true,"id":4597},{"__isSmartRef__":true,"id":4599},{"__isSmartRef__":true,"id":4601},{"__isSmartRef__":true,"id":4603},{"__isSmartRef__":true,"id":4605},{"__isSmartRef__":true,"id":4607},{"__isSmartRef__":true,"id":4609},{"__isSmartRef__":true,"id":4611},{"__isSmartRef__":true,"id":4613},{"__isSmartRef__":true,"id":4615},{"__isSmartRef__":true,"id":4617},{"__isSmartRef__":true,"id":4620},{"__isSmartRef__":true,"id":4622},{"__isSmartRef__":true,"id":4624},{"__isSmartRef__":true,"id":4626},{"__isSmartRef__":true,"id":4628},{"__isSmartRef__":true,"id":4630},{"__isSmartRef__":true,"id":4632},{"__isSmartRef__":true,"id":4635},{"__isSmartRef__":true,"id":4637},{"__isSmartRef__":true,"id":4639},{"__isSmartRef__":true,"id":4641},{"__isSmartRef__":true,"id":4643},{"__isSmartRef__":true,"id":4645},{"__isSmartRef__":true,"id":4647},{"__isSmartRef__":true,"id":4650},{"__isSmartRef__":true,"id":4652},{"__isSmartRef__":true,"id":4654},{"__isSmartRef__":true,"id":4656},{"__isSmartRef__":true,"id":4658},{"__isSmartRef__":true,"id":4660},{"__isSmartRef__":true,"id":4662},{"__isSmartRef__":true,"id":4665},{"__isSmartRef__":true,"id":4667},{"__isSmartRef__":true,"id":4669},{"__isSmartRef__":true,"id":4671},{"__isSmartRef__":true,"id":4673},{"__isSmartRef__":true,"id":4675},{"__isSmartRef__":true,"id":4677},{"__isSmartRef__":true,"id":4680},{"__isSmartRef__":true,"id":4682},{"__isSmartRef__":true,"id":4684},{"__isSmartRef__":true,"id":4686},{"__isSmartRef__":true,"id":4688},{"__isSmartRef__":true,"id":4690},{"__isSmartRef__":true,"id":4692},{"__isSmartRef__":true,"id":4695},{"__isSmartRef__":true,"id":4697},{"__isSmartRef__":true,"id":4699},{"__isSmartRef__":true,"id":4701},{"__isSmartRef__":true,"id":4703},{"__isSmartRef__":true,"id":4705},{"__isSmartRef__":true,"id":4707},{"__isSmartRef__":true,"id":4710},{"__isSmartRef__":true,"id":4712},{"__isSmartRef__":true,"id":4714},{"__isSmartRef__":true,"id":4716},{"__isSmartRef__":true,"id":4718},{"__isSmartRef__":true,"id":4720},{"__isSmartRef__":true,"id":4722},{"__isSmartRef__":true,"id":4724},{"__isSmartRef__":true,"id":4726},{"__isSmartRef__":true,"id":4728},{"__isSmartRef__":true,"id":4730},{"__isSmartRef__":true,"id":4732},{"__isSmartRef__":true,"id":4734},{"__isSmartRef__":true,"id":4736},{"__isSmartRef__":true,"id":4738},{"__isSmartRef__":true,"id":4740},{"__isSmartRef__":true,"id":4742},{"__isSmartRef__":true,"id":4744},{"__isSmartRef__":true,"id":4746},{"__isSmartRef__":true,"id":4748},{"__isSmartRef__":true,"id":4750},{"__isSmartRef__":true,"id":4752},{"__isSmartRef__":true,"id":4754},{"__isSmartRef__":true,"id":4756},{"__isSmartRef__":true,"id":4758},{"__isSmartRef__":true,"id":4760},{"__isSmartRef__":true,"id":4762},{"__isSmartRef__":true,"id":4764},{"__isSmartRef__":true,"id":4766},{"__isSmartRef__":true,"id":4769}],"charsReplaced":"#HeatConsumer","lastFindLoc":685,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4771},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":4772},{"__isSmartRef__":true,"id":4773},{"__isSmartRef__":true,"id":4774},{"__isSmartRef__":true,"id":4775},{"__isSmartRef__":true,"id":4776},{"__isSmartRef__":true,"id":4777},{"__isSmartRef__":true,"id":4778},{"__isSmartRef__":true,"id":4779}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4780},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":4520},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","attributeConnections":[{"__isSmartRef__":true,"id":4781},{"__isSmartRef__":true,"id":4783}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":93,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[696,696],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"$.Time += dt\n$.Counter += dt\nif ($.Counter < 5) return\n$.Counter = 0\nvar data = {\n Gas: #Fuel.$.Gas,\n Heat: #HeatStorage.$.Energy,\n Battery: #Battery.$.Energy,\n ConsumedPower: #ElectricConsumer.$.Consumed,\n ConsumedHeat: #HeatConsumer.$.Consumed,\n TWP: #ThermalPowerStation.$.Heat,\n HS: #HeatingSystem.$.Heat,\n}\ndata.Total = Properties.values(data).sum()\nvar factor = 0.01 // scale, so that it fits into vis\ndata.Gas *= factor\ndata.ConsumedPower *= factor\ndata.ConsumedHeat *= factor\ndata.Total *= factor\nProperties.own(data).each(function(ea) {\n data[ea] = data[ea].roundTo(0.000001)\n})\ndata.Time = $.Time,\n#SimulationResults.addData(data)\n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4785},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"4546":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__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(491.4,359.3)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4547":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4548},{"__isSmartRef__":true,"id":4550},{"__isSmartRef__":true,"id":4552},{"__isSmartRef__":true,"id":4554},{"__isSmartRef__":true,"id":4556},{"__isSmartRef__":true,"id":4558},{"__isSmartRef__":true,"id":4560}],"lastModifiedDate":{"__isSmartRef__":true,"id":4562},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4548":{"date":{"__isSmartRef__":true,"id":4549},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4549":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"4550":{"date":{"__isSmartRef__":true,"id":4551},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4551":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"4552":{"date":{"__isSmartRef__":true,"id":4553},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4553":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"4554":{"date":{"__isSmartRef__":true,"id":4555},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4555":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"4556":{"date":{"__isSmartRef__":true,"id":4557},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4557":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"4558":{"date":{"__isSmartRef__":true,"id":4559},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4559":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"4560":{"date":{"__isSmartRef__":true,"id":4561},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4561":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"4562":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"4563":{"style":{"__isSmartRef__":true,"id":4564},"chunkOwner":{"__isSmartRef__":true,"id":4545},"_id":"_18","storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4564":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4565":{"_id":"_611","style":{"__isSmartRef__":true,"id":4566},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".Time +=","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4566":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4567":{"_id":"_676","style":{"__isSmartRef__":true,"id":4568},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4568":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"4569":{"_id":"_677","style":{"__isSmartRef__":true,"id":4570},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4570":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4571":{"_id":"_667","style":{"__isSmartRef__":true,"id":4572},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Counter","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4572":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4573":{"_id":"_666","style":{"__isSmartRef__":true,"id":4574},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" +=","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4574":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4575":{"_id":"_678","style":{"__isSmartRef__":true,"id":4576},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4576":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"4577":{"_id":"_568","style":{"__isSmartRef__":true,"id":4578},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4578":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4579":{"_id":"_569","style":{"__isSmartRef__":true,"id":4580},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4580":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4581":{"_id":"_669","style":{"__isSmartRef__":true,"id":4582},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"($.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4582":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4583":{"_id":"_670","style":{"__isSmartRef__":true,"id":4584},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Counter","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4584":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4585":{"_id":"_668","style":{"__isSmartRef__":true,"id":4586},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4586":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4587":{"_id":"_570","style":{"__isSmartRef__":true,"id":4588},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4588":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"4589":{"_id":"_571","style":{"__isSmartRef__":true,"id":4590},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4590":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4591":{"_id":"_572","style":{"__isSmartRef__":true,"id":4592},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4592":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4593":{"_id":"_573","style":{"__isSmartRef__":true,"id":4594},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"\n$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4594":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4595":{"_id":"_672","style":{"__isSmartRef__":true,"id":4596},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Counter","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4596":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4597":{"_id":"_671","style":{"__isSmartRef__":true,"id":4598},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4598":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4599":{"_id":"_574","style":{"__isSmartRef__":true,"id":4600},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4600":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"4601":{"_id":"_575","style":{"__isSmartRef__":true,"id":4602},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4602":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4603":{"_id":"_576","style":{"__isSmartRef__":true,"id":4604},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4604":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4605":{"_id":"_577","style":{"__isSmartRef__":true,"id":4606},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" data = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4606":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4607":{"_id":"_578","style":{"__isSmartRef__":true,"id":4608},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4608":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4609":{"_id":"_579","style":{"__isSmartRef__":true,"id":4610},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4610":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4611":{"_id":"_580","style":{"__isSmartRef__":true,"id":4612},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Gas:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4612":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"4613":{"_id":"_581","style":{"__isSmartRef__":true,"id":4614},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4614":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4615":{"_id":"_628","style":{"__isSmartRef__":true,"id":4616},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4616":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4617":{"_id":"_630","style":{"__isSmartRef__":true,"id":4618},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Fuel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4618":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4619},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4619":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Fuel\")","context":{"__isSmartRef__":true,"id":4520}},"4620":{"_id":"_629","style":{"__isSmartRef__":true,"id":4621},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4621":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4622":{"_id":"_631","style":{"__isSmartRef__":true,"id":4623},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4623":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4624":{"_id":"_632","style":{"__isSmartRef__":true,"id":4625},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4625":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4626":{"_id":"_582","style":{"__isSmartRef__":true,"id":4627},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Heat:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4627":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"4628":{"_id":"_583","style":{"__isSmartRef__":true,"id":4629},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4629":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4630":{"_id":"_633","style":{"__isSmartRef__":true,"id":4631},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4631":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4632":{"_id":"_635","style":{"__isSmartRef__":true,"id":4633},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4633":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4634},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4634":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":4520}},"4635":{"_id":"_634","style":{"__isSmartRef__":true,"id":4636},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4636":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4637":{"_id":"_636","style":{"__isSmartRef__":true,"id":4638},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4638":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4639":{"_id":"_637","style":{"__isSmartRef__":true,"id":4640},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4640":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4641":{"_id":"_584","style":{"__isSmartRef__":true,"id":4642},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Battery:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4642":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"4643":{"_id":"_585","style":{"__isSmartRef__":true,"id":4644},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4644":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4645":{"_id":"_638","style":{"__isSmartRef__":true,"id":4646},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4646":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4647":{"_id":"_640","style":{"__isSmartRef__":true,"id":4648},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4648":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4649},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4649":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":4520}},"4650":{"_id":"_639","style":{"__isSmartRef__":true,"id":4651},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4651":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4652":{"_id":"_641","style":{"__isSmartRef__":true,"id":4653},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4653":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4654":{"_id":"_642","style":{"__isSmartRef__":true,"id":4655},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4655":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4656":{"_id":"_586","style":{"__isSmartRef__":true,"id":4657},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"ConsumedPower:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4657":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"4658":{"_id":"_587","style":{"__isSmartRef__":true,"id":4659},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4659":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4660":{"_id":"_643","style":{"__isSmartRef__":true,"id":4661},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4661":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4662":{"_id":"_645","style":{"__isSmartRef__":true,"id":4663},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"ElectricConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4663":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4664},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4664":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"ElectricConsumer\")","context":{"__isSmartRef__":true,"id":4520}},"4665":{"_id":"_644","style":{"__isSmartRef__":true,"id":4666},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4666":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4667":{"_id":"_646","style":{"__isSmartRef__":true,"id":4668},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Consumed","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4668":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4669":{"_id":"_647","style":{"__isSmartRef__":true,"id":4670},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4670":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4671":{"_id":"_588","style":{"__isSmartRef__":true,"id":4672},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"ConsumedHeat:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4672":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"4673":{"_id":"_589","style":{"__isSmartRef__":true,"id":4674},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4674":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4675":{"_id":"_648","style":{"__isSmartRef__":true,"id":4676},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4676":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4677":{"_id":"_650","style":{"__isSmartRef__":true,"id":4678},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"HeatConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4678":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4679},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4679":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatConsumer\")","context":{"__isSmartRef__":true,"id":4520}},"4680":{"_id":"_649","style":{"__isSmartRef__":true,"id":4681},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4681":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4682":{"_id":"_651","style":{"__isSmartRef__":true,"id":4683},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Consumed","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4683":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4684":{"_id":"_652","style":{"__isSmartRef__":true,"id":4685},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4685":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4686":{"_id":"_590","style":{"__isSmartRef__":true,"id":4687},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"TWP:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4687":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"4688":{"_id":"_591","style":{"__isSmartRef__":true,"id":4689},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4689":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4690":{"_id":"_653","style":{"__isSmartRef__":true,"id":4691},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4691":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4692":{"_id":"_655","style":{"__isSmartRef__":true,"id":4693},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"ThermalPowerStation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4693":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4694},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4694":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"ThermalPowerStation\")","context":{"__isSmartRef__":true,"id":4520}},"4695":{"_id":"_654","style":{"__isSmartRef__":true,"id":4696},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4696":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4697":{"_id":"_656","style":{"__isSmartRef__":true,"id":4698},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4698":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4699":{"_id":"_657","style":{"__isSmartRef__":true,"id":4700},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4700":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4701":{"_id":"_592","style":{"__isSmartRef__":true,"id":4702},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"HS:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4702":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"4703":{"_id":"_593","style":{"__isSmartRef__":true,"id":4704},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4704":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4705":{"_id":"_658","style":{"__isSmartRef__":true,"id":4706},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4706":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4707":{"_id":"_660","style":{"__isSmartRef__":true,"id":4708},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"HeatingSystem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4708":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4709},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4709":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatingSystem\")","context":{"__isSmartRef__":true,"id":4520}},"4710":{"_id":"_659","style":{"__isSmartRef__":true,"id":4711},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4711":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4712":{"_id":"_661","style":{"__isSmartRef__":true,"id":4713},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4713":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4714":{"_id":"_662","style":{"__isSmartRef__":true,"id":4715},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":",\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4715":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4716":{"_id":"_594","style":{"__isSmartRef__":true,"id":4717},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4717":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4718":{"_id":"_595","style":{"__isSmartRef__":true,"id":4719},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"\ndata.Total = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4719":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4720":{"_id":"_622","style":{"__isSmartRef__":true,"id":4721},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4721":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4722":{"_id":"_623","style":{"__isSmartRef__":true,"id":4723},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".values(data).sum()\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4723":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4724":{"_id":"_596","style":{"__isSmartRef__":true,"id":4725},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4725":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4726":{"_id":"_597","style":{"__isSmartRef__":true,"id":4727},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" factor = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4727":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4728":{"_id":"_598","style":{"__isSmartRef__":true,"id":4729},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"0.01","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4729":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"4730":{"_id":"_599","style":{"__isSmartRef__":true,"id":4731},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4731":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4732":{"_id":"_600","style":{"__isSmartRef__":true,"id":4733},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4733":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"4734":{"_id":"_601","style":{"__isSmartRef__":true,"id":4735},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" scale, so that it fits into vis","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4735":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4736":{"_id":"_602","style":{"__isSmartRef__":true,"id":4737},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"\ndata.Gas *= factor\ndata.ConsumedPower *= factor\ndata.ConsumedHeat *= factor\ndata.Total *= factor\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4737":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4738":{"_id":"_624","style":{"__isSmartRef__":true,"id":4739},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4739":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4740":{"_id":"_625","style":{"__isSmartRef__":true,"id":4741},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".own(data).each(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4741":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4742":{"_id":"_603","style":{"__isSmartRef__":true,"id":4743},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4743":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"4744":{"_id":"_604","style":{"__isSmartRef__":true,"id":4745},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"(ea) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4745":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4746":{"_id":"_605","style":{"__isSmartRef__":true,"id":4747},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4747":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4748":{"_id":"_606","style":{"__isSmartRef__":true,"id":4749},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"\n data[ea] = data[ea].roundTo(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4749":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4750":{"_id":"_607","style":{"__isSmartRef__":true,"id":4751},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"0.000001","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4751":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"4752":{"_id":"_608","style":{"__isSmartRef__":true,"id":4753},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4753":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4754":{"_id":"_609","style":{"__isSmartRef__":true,"id":4755},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4755":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4756":{"_id":"_610","style":{"__isSmartRef__":true,"id":4757},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":")\ndata.Time =","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4757":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4758":{"_id":"_674","style":{"__isSmartRef__":true,"id":4759},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4759":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"4760":{"_id":"_675","style":{"__isSmartRef__":true,"id":4761},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"Time","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4761":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4762":{"_id":"_673","style":{"__isSmartRef__":true,"id":4763},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":",\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4763":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4764":{"_id":"_663","style":{"__isSmartRef__":true,"id":4765},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4765":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4766":{"_id":"_665","style":{"__isSmartRef__":true,"id":4767},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":"SimulationResults","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4767":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":4768},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"4768":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"SimulationResults\")","context":{"__isSmartRef__":true,"id":4520}},"4769":{"_id":"_664","style":{"__isSmartRef__":true,"id":4770},"chunkOwner":{"__isSmartRef__":true,"id":4545},"storedString":".addData(data)\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4770":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4771":{"morph":{"__isSmartRef__":true,"id":4545},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4772":{"morph":{"__isSmartRef__":true,"id":4545},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"4773":{"morph":{"__isSmartRef__":true,"id":4545},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"4774":{"morph":{"__isSmartRef__":true,"id":4545},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"4775":{"morph":{"__isSmartRef__":true,"id":4545},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"4776":{"morph":{"__isSmartRef__":true,"id":4545},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"4777":{"morph":{"__isSmartRef__":true,"id":4545},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"4778":{"morph":{"__isSmartRef__":true,"id":4545},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"4779":{"morph":{"__isSmartRef__":true,"id":4545},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"4780":{"resizeWidth":true,"resizeHeight":true},"4781":{"sourceObj":{"__isSmartRef__":true,"id":4545},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4520},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":4782},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4782":{"source":{"__isSmartRef__":true,"id":4545},"target":{"__isSmartRef__":true,"id":4520}},"4783":{"sourceObj":{"__isSmartRef__":true,"id":4545},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":4545},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":4784},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4784":{"source":{"__isSmartRef__":true,"id":4545},"target":{"__isSmartRef__":true,"id":4545}},"4785":{"boundEval":{"__isSmartRef__":true,"id":4786},"getDoitContext":{"__isSmartRef__":true,"id":4794},"installLayers":{"__isSmartRef__":true,"id":4802},"onLoad":{"__isSmartRef__":true,"id":4806},"highligtScriptNames":{"__isSmartRef__":true,"id":4810},"getAutoCompletion":{"__isSmartRef__":true,"id":4814},"reset":{"__isSmartRef__":true,"id":4822},"getLastWordRange":{"__isSmartRef__":true,"id":4826}},"4786":{"varMapping":{"__isSmartRef__":true,"id":4787},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4787":{"this":{"__isSmartRef__":true,"id":4545},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4788}},"4788":{"$super":{"__isSmartRef__":true,"id":4789}},"4789":{"varMapping":{"__isSmartRef__":true,"id":4790},"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":4791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4790":{"obj":{"__isSmartRef__":true,"id":4545},"name":"boundEval"},"4791":{},"4792":{"timestamp":{"__isSmartRef__":true,"id":4793},"user":"jenslincke","tags":[]},"4793":{"isSerializedDate":true,"string":"Tue Jan 28 2014 02:28:47 GMT-0800 (PST)"},"4794":{"varMapping":{"__isSmartRef__":true,"id":4795},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4795":{"this":{"__isSmartRef__":true,"id":4545},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4796}},"4796":{"$super":{"__isSmartRef__":true,"id":4797}},"4797":{"varMapping":{"__isSmartRef__":true,"id":4798},"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":4799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4798":{"obj":{"__isSmartRef__":true,"id":4545},"name":"getDoitContext"},"4799":{},"4800":{"timestamp":{"__isSmartRef__":true,"id":4801},"user":"jenslincke","tags":[]},"4801":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:42:09 GMT-0800 (PST)"},"4802":{"varMapping":{"__isSmartRef__":true,"id":4803},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":4804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4803":{"this":{"__isSmartRef__":true,"id":4545}},"4804":{"timestamp":{"__isSmartRef__":true,"id":4805},"user":"jenslincke","tags":[]},"4805":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:44 GMT-0800 (PST)"},"4806":{"varMapping":{"__isSmartRef__":true,"id":4807},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":4808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4807":{"this":{"__isSmartRef__":true,"id":4545}},"4808":{"timestamp":{"__isSmartRef__":true,"id":4809},"user":"jenslincke","tags":[]},"4809":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:41:45 GMT-0800 (PST)"},"4810":{"varMapping":{"__isSmartRef__":true,"id":4811},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":4812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4811":{"this":{"__isSmartRef__":true,"id":4545}},"4812":{"timestamp":{"__isSmartRef__":true,"id":4813},"user":"jenslincke","tags":[]},"4813":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:25:07 GMT-0800 (PST)"},"4814":{"varMapping":{"__isSmartRef__":true,"id":4815},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":4820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4815":{"this":{"__isSmartRef__":true,"id":4545},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4816}},"4816":{"$super":{"__isSmartRef__":true,"id":4817}},"4817":{"varMapping":{"__isSmartRef__":true,"id":4818},"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":4819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4818":{"obj":{"__isSmartRef__":true,"id":4545},"name":"getAutoCompletion"},"4819":{},"4820":{"timestamp":{"__isSmartRef__":true,"id":4821},"user":"jenslincke","tags":[]},"4821":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:33:17 GMT-0800 (PST)"},"4822":{"varMapping":{"__isSmartRef__":true,"id":4823},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":4824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4823":{"this":{"__isSmartRef__":true,"id":4545}},"4824":{"timestamp":{"__isSmartRef__":true,"id":4825},"user":"jenslincke","tags":[]},"4825":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:58:01 GMT-0800 (PST)"},"4826":{"varMapping":{"__isSmartRef__":true,"id":4827},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4827":{"this":{"__isSmartRef__":true,"id":4545},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4828}},"4828":{"$super":{"__isSmartRef__":true,"id":4829}},"4829":{"varMapping":{"__isSmartRef__":true,"id":4830},"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":4831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4830":{"obj":{"__isSmartRef__":true,"id":4545},"name":"getLastWordRange"},"4831":{},"4832":{"timestamp":{"__isSmartRef__":true,"id":4833},"user":"jenslincke","tags":[]},"4833":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:59:58 GMT-0800 (PST)"},"4834":{"submorphs":[],"scripts":[],"id":"85F01E95-D0C7-40F8-8EE2-669CE924EB38","shape":{"__isSmartRef__":true,"id":4835},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":4836},"textChunks":[{"__isSmartRef__":true,"id":4852}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4854},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":4520},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4855},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,444.3)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"4835":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(483.5,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4836":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4837},{"__isSmartRef__":true,"id":4839},{"__isSmartRef__":true,"id":4841},{"__isSmartRef__":true,"id":4843},{"__isSmartRef__":true,"id":4845},{"__isSmartRef__":true,"id":4847},{"__isSmartRef__":true,"id":4849}],"lastModifiedDate":{"__isSmartRef__":true,"id":4851},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4837":{"date":{"__isSmartRef__":true,"id":4838},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4838":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"4839":{"date":{"__isSmartRef__":true,"id":4840},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4840":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"4841":{"date":{"__isSmartRef__":true,"id":4842},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4842":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"4843":{"date":{"__isSmartRef__":true,"id":4844},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4844":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"4845":{"date":{"__isSmartRef__":true,"id":4846},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4846":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"4847":{"date":{"__isSmartRef__":true,"id":4848},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4848":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"4849":{"date":{"__isSmartRef__":true,"id":4850},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4850":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"4851":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"4852":{"style":{"__isSmartRef__":true,"id":4853},"chunkOwner":{"__isSmartRef__":true,"id":4834},"_id":"_11228","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4853":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4854":{"morph":{"__isSmartRef__":true,"id":4834},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4855":{"moveVertical":true,"resizeWidth":true},"4856":{"submorphs":[],"scripts":[],"id":"7888BA1C-640E-4E1F-B85E-5E773E9BFE9A","shape":{"__isSmartRef__":true,"id":4857},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":4858},"textChunks":[{"__isSmartRef__":true,"id":4874}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4876},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":4520},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":4877}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4879},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"4857":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(477.0,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4858":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4859},{"__isSmartRef__":true,"id":4861},{"__isSmartRef__":true,"id":4863},{"__isSmartRef__":true,"id":4865},{"__isSmartRef__":true,"id":4867},{"__isSmartRef__":true,"id":4869},{"__isSmartRef__":true,"id":4871}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":4873},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4859":{"date":{"__isSmartRef__":true,"id":4860},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4860":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"4861":{"date":{"__isSmartRef__":true,"id":4862},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4862":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"4863":{"date":{"__isSmartRef__":true,"id":4864},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4864":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"4865":{"date":{"__isSmartRef__":true,"id":4866},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4866":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"4867":{"date":{"__isSmartRef__":true,"id":4868},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4868":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"4869":{"date":{"__isSmartRef__":true,"id":4870},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4870":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"4871":{"date":{"__isSmartRef__":true,"id":4872},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4872":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"4873":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"4874":{"style":{"__isSmartRef__":true,"id":4875},"chunkOwner":{"__isSmartRef__":true,"id":4856},"_id":"_11201","storedString":"Counter: 10000\nTime: 1391552235.949\nStart: 1391552235.949","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4875":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4876":{"morph":{"__isSmartRef__":true,"id":4856},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4877":{"sourceObj":{"__isSmartRef__":true,"id":4856},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4520},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":4878},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4878":{"source":{"__isSmartRef__":true,"id":4856},"target":{"__isSmartRef__":true,"id":4520}},"4879":{"resizeWidth":true},"4880":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(505.3,462.1)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"4881":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":4882},{"__isSmartRef__":true,"id":4884},{"__isSmartRef__":true,"id":4886},{"__isSmartRef__":true,"id":4888},{"__isSmartRef__":true,"id":4890},{"__isSmartRef__":true,"id":4892},{"__isSmartRef__":true,"id":4894},{"__isSmartRef__":true,"id":4896},{"__isSmartRef__":true,"id":4898},{"__isSmartRef__":true,"id":4900},{"__isSmartRef__":true,"id":4902},{"__isSmartRef__":true,"id":4904},{"__isSmartRef__":true,"id":4906},{"__isSmartRef__":true,"id":4908},{"__isSmartRef__":true,"id":4910},{"__isSmartRef__":true,"id":4912},{"__isSmartRef__":true,"id":4914},{"__isSmartRef__":true,"id":4916},{"__isSmartRef__":true,"id":4918},{"__isSmartRef__":true,"id":4920},{"__isSmartRef__":true,"id":4922},{"__isSmartRef__":true,"id":4924},{"__isSmartRef__":true,"id":4926},{"__isSmartRef__":true,"id":4928},{"__isSmartRef__":true,"id":4930},{"__isSmartRef__":true,"id":4932},{"__isSmartRef__":true,"id":4934},{"__isSmartRef__":true,"id":4936},{"__isSmartRef__":true,"id":4938}],"lastModifiedDate":{"__isSmartRef__":true,"id":4940},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4882":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":4883}},"4883":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"4884":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":4885}},"4885":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"4886":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":4887}},"4887":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"4888":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":4889}},"4889":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"4890":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":4891}},"4891":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"4892":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":4893}},"4893":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"4894":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":4895}},"4895":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"4896":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":4897}},"4897":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"4898":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":4899}},"4899":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"4900":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":4901}},"4901":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"4902":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":4903}},"4903":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"4904":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":4905}},"4905":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"4906":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":4907}},"4907":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"4908":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":4909}},"4909":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"4910":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":4911}},"4911":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"4912":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":4913}},"4913":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"4914":{"date":{"__isSmartRef__":true,"id":4915},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"4915":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:02:28 GMT-0800 (PST)"},"4916":{"date":{"__isSmartRef__":true,"id":4917},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"4917":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:10:08 GMT-0800 (PST)"},"4918":{"date":{"__isSmartRef__":true,"id":4919},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"4919":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:24:55 GMT-0800 (PST)"},"4920":{"date":{"__isSmartRef__":true,"id":4921},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"4921":{"isSerializedDate":true,"string":"Wed Jan 22 2014 09:29:33 GMT-0800 (PST)"},"4922":{"date":{"__isSmartRef__":true,"id":4923},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"4923":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:07:26 GMT-0800 (PST)"},"4924":{"date":{"__isSmartRef__":true,"id":4925},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"4925":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:23:13 GMT-0800 (PST)"},"4926":{"date":{"__isSmartRef__":true,"id":4927},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"4927":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:58:48 GMT-0800 (PST)"},"4928":{"date":{"__isSmartRef__":true,"id":4929},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"4929":{"isSerializedDate":true,"string":"Fri Jan 24 2014 09:59:27 GMT-0800 (PST)"},"4930":{"date":{"__isSmartRef__":true,"id":4931},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"4931":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:03:44 GMT-0800 (PST)"},"4932":{"date":{"__isSmartRef__":true,"id":4933},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"4933":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:24:12 GMT-0800 (PST)"},"4934":{"date":{"__isSmartRef__":true,"id":4935},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"4935":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:26:15 GMT-0800 (PST)"},"4936":{"date":{"__isSmartRef__":true,"id":4937},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"4937":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:35:38 GMT-0800 (PST)"},"4938":{"date":{"__isSmartRef__":true,"id":4939},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"4939":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:51 GMT-0800 (PST)"},"4940":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:15 GMT-0800 (PST)"},"4941":{"morph":{"__isSmartRef__":true,"id":4520},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4942":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4943}},"4943":{"test01IsMorph":{"__isSmartRef__":true,"id":4944}},"4944":{"varMapping":{"__isSmartRef__":true,"id":4945},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4945":{"this":{"__isSmartRef__":true,"id":4942}},"4946":{},"4947":{"morph":{"__isSmartRef__":true,"id":4520},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"4948":{"morph":{"__isSmartRef__":true,"id":4520},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"4949":{"morph":{"__isSmartRef__":true,"id":4520},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"4950":{"morph":{"__isSmartRef__":true,"id":4520},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"4951":{"morph":{"__isSmartRef__":true,"id":4520},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"4952":{"morph":{"__isSmartRef__":true,"id":4520},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"4953":{"morph":{"__isSmartRef__":true,"id":4520},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"4954":{"morph":{"__isSmartRef__":true,"id":4520},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"4955":{"adjustForNewBounds":true},"4956":{"Counter":10000,"Time":1391552235.949,"Start":1391552235.949},"4957":{"sourceObj":{"__isSmartRef__":true,"id":4520},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":4521},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":4958},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4958":{"source":{"__isSmartRef__":true,"id":4520},"target":{"__isSmartRef__":true,"id":4521}},"4959":{},"4960":{"referencedBy":{"__isSmartRef__":true,"id":4961},"references":{"__isSmartRef__":true,"id":4962}},"4961":{},"4962":{},"4963":{"migrateFrom":{"__isSmartRef__":true,"id":4964},"parsePropeties":{"__isSmartRef__":true,"id":4968},"printProperties":{"__isSmartRef__":true,"id":4972},"parseSimulationSource":{"__isSmartRef__":true,"id":4976},"simulateStep":{"__isSmartRef__":true,"id":4980},"showError":{"__isSmartRef__":true,"id":4983},"throwSimulationProblem":{"__isSmartRef__":true,"id":4987},"updateUI":{"__isSmartRef__":true,"id":4991},"resetStatus":{"__isSmartRef__":true,"id":4995},"simulateOneStep":{"__isSmartRef__":true,"id":4999},"reset":{"__isSmartRef__":true,"id":5003},"resetScriptAnalysis":{"__isSmartRef__":true,"id":5007},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":5011},"logReference":{"__isSmartRef__":true,"id":5015},"showScriptAnalysis":{"__isSmartRef__":true,"id":5019},"showReferenceTo":{"__isSmartRef__":true,"id":5023},"resetSourceHighlighting":{"__isSmartRef__":true,"id":5027},"showNameReference":{"__isSmartRef__":true,"id":5031}},"4964":{"varMapping":{"__isSmartRef__":true,"id":4965},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":4966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4965":{"this":{"__isSmartRef__":true,"id":4520}},"4966":{"timestamp":{"__isSmartRef__":true,"id":4967},"user":"jenslincke","tags":[]},"4967":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:59 GMT-0800 (PST)"},"4968":{"varMapping":{"__isSmartRef__":true,"id":4969},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":4970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4969":{"this":{"__isSmartRef__":true,"id":4520}},"4970":{"timestamp":{"__isSmartRef__":true,"id":4971},"user":"jenslincke","tags":[]},"4971":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:03 GMT-0800 (PST)"},"4972":{"varMapping":{"__isSmartRef__":true,"id":4973},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":4974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4973":{"this":{"__isSmartRef__":true,"id":4520}},"4974":{"timestamp":{"__isSmartRef__":true,"id":4975},"user":"jenslincke","tags":[]},"4975":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:34:48 GMT-0800 (PST)"},"4976":{"varMapping":{"__isSmartRef__":true,"id":4977},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":4978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4977":{"this":{"__isSmartRef__":true,"id":4520}},"4978":{"timestamp":{"__isSmartRef__":true,"id":4979},"user":"jenslincke","tags":[]},"4979":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:12:57 GMT-0800 (PST)"},"4980":{"varMapping":{"__isSmartRef__":true,"id":4981},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\n$.Time += dt\n$.Counter += dt\nif ($.Counter < 5) return\n$.Counter = 0\nvar data = {\n Gas: this.get('Fuel').$.Gas,\n Heat: this.get('HeatStorage').$.Energy,\n Battery: this.get('Battery').$.Energy,\n ConsumedPower: this.get('ElectricConsumer').$.Consumed,\n ConsumedHeat: this.get('HeatConsumer').$.Consumed,\n TWP: this.get('ThermalPowerStation').$.Heat,\n HS: this.get('HeatingSystem').$.Heat,\n}\ndata.Total = Properties.values(data).sum()\nvar factor = 0.01 // scale, so that it fits into vis\ndata.Gas *= factor\ndata.ConsumedPower *= factor\ndata.ConsumedHeat *= factor\ndata.Total *= factor\nProperties.own(data).each(function(ea) {\n data[ea] = data[ea].roundTo(0.000001)\n})\ndata.Time = $.Time,\nthis.get('SimulationResults').addData(data)\n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":4982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4981":{"this":{"__isSmartRef__":true,"id":4520}},"4982":{},"4983":{"varMapping":{"__isSmartRef__":true,"id":4984},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4984":{"this":{"__isSmartRef__":true,"id":4520}},"4985":{"timestamp":{"__isSmartRef__":true,"id":4986},"user":"jenslincke","tags":[]},"4986":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:11:23 GMT-0800 (PST)"},"4987":{"varMapping":{"__isSmartRef__":true,"id":4988},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":4989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4988":{"this":{"__isSmartRef__":true,"id":4520}},"4989":{"timestamp":{"__isSmartRef__":true,"id":4990},"user":"jenslincke","tags":[]},"4990":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:32:56 GMT-0800 (PST)"},"4991":{"varMapping":{"__isSmartRef__":true,"id":4992},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":4993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4992":{"this":{"__isSmartRef__":true,"id":4520}},"4993":{"timestamp":{"__isSmartRef__":true,"id":4994},"user":"jenslincke","tags":[]},"4994":{"isSerializedDate":true,"string":"Sun Jan 26 2014 06:22:09 GMT-0800 (PST)"},"4995":{"varMapping":{"__isSmartRef__":true,"id":4996},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":4997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4996":{"this":{"__isSmartRef__":true,"id":4520}},"4997":{"timestamp":{"__isSmartRef__":true,"id":4998},"user":"jenslincke","tags":[]},"4998":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:54:04 GMT-0800 (PST)"},"4999":{"varMapping":{"__isSmartRef__":true,"id":5000},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5000":{"this":{"__isSmartRef__":true,"id":4520}},"5001":{"timestamp":{"__isSmartRef__":true,"id":5002},"user":"jenslincke","tags":[]},"5002":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:58 GMT-0800 (PST)"},"5003":{"varMapping":{"__isSmartRef__":true,"id":5004},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":5005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5004":{"this":{"__isSmartRef__":true,"id":4520}},"5005":{"timestamp":{"__isSmartRef__":true,"id":5006},"user":"jenslincke","tags":[]},"5006":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:35:44 GMT-0800 (PST)"},"5007":{"varMapping":{"__isSmartRef__":true,"id":5008},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":5009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5008":{"this":{"__isSmartRef__":true,"id":4520}},"5009":{"timestamp":{"__isSmartRef__":true,"id":5010},"user":"jenslincke","tags":[]},"5010":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:36:12 GMT-0800 (PST)"},"5011":{"varMapping":{"__isSmartRef__":true,"id":5012},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":5013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5012":{"this":{"__isSmartRef__":true,"id":4520}},"5013":{"timestamp":{"__isSmartRef__":true,"id":5014},"user":"jenslincke","tags":[]},"5014":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:09 GMT-0800 (PST)"},"5015":{"varMapping":{"__isSmartRef__":true,"id":5016},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":5017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5016":{"this":{"__isSmartRef__":true,"id":4520}},"5017":{"timestamp":{"__isSmartRef__":true,"id":5018},"user":"jenslincke","tags":[]},"5018":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:15 GMT-0800 (PST)"},"5019":{"varMapping":{"__isSmartRef__":true,"id":5020},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5020":{"this":{"__isSmartRef__":true,"id":4520}},"5021":{"timestamp":{"__isSmartRef__":true,"id":5022},"user":"jenslincke","tags":[]},"5022":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:26 GMT-0800 (PST)"},"5023":{"varMapping":{"__isSmartRef__":true,"id":5024},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5024":{"this":{"__isSmartRef__":true,"id":4520}},"5025":{"timestamp":{"__isSmartRef__":true,"id":5026},"user":"jenslincke","tags":[]},"5026":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:25 GMT-0800 (PST)"},"5027":{"varMapping":{"__isSmartRef__":true,"id":5028},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":5029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5028":{"this":{"__isSmartRef__":true,"id":4520}},"5029":{"timestamp":{"__isSmartRef__":true,"id":5030},"user":"jenslincke","tags":[]},"5030":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:53:47 GMT-0800 (PST)"},"5031":{"varMapping":{"__isSmartRef__":true,"id":5032},"source":"function showNameReference(name) {\n\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n this.lastNameReference = name;\n\n var morph = this.get(name)\n if (morph) {\n morph.show().invoke(\"setBorderColor\", Color.yellow)\n morph.showScriptAnalysis()\n }\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":5033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5032":{"this":{"__isSmartRef__":true,"id":4520}},"5033":{"timestamp":{"__isSmartRef__":true,"id":5034},"user":"jenslincke","tags":[]},"5034":{"isSerializedDate":true,"string":"Thu Jan 30 2014 02:13:25 GMT-0800 (PST)"},"5035":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(1831.4,1913.5)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"5036":{"partsSpaceName":"PartsBin/Jens/","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulation","changes":[{"__isSmartRef__":true,"id":5037},{"__isSmartRef__":true,"id":5039},{"__isSmartRef__":true,"id":5041},{"__isSmartRef__":true,"id":5043},{"__isSmartRef__":true,"id":5045},{"__isSmartRef__":true,"id":5047},{"__isSmartRef__":true,"id":5049},{"__isSmartRef__":true,"id":5051},{"__isSmartRef__":true,"id":5053},{"__isSmartRef__":true,"id":5055},{"__isSmartRef__":true,"id":5057},{"__isSmartRef__":true,"id":5059},{"__isSmartRef__":true,"id":5061},{"__isSmartRef__":true,"id":5063},{"__isSmartRef__":true,"id":5065},{"__isSmartRef__":true,"id":5067},{"__isSmartRef__":true,"id":5069},{"__isSmartRef__":true,"id":5071},{"__isSmartRef__":true,"id":5073},{"__isSmartRef__":true,"id":5075},{"__isSmartRef__":true,"id":5077}],"lastModifiedDate":{"__isSmartRef__":true,"id":5079},"revisionOnLoad":204760,"#startLetters":"addR","requiredModules":["lively.experimental.MorphAccessor","lively.experimental.Autocompletion","lively.ast.IDESupport"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5037":{"date":{"__isSmartRef__":true,"id":5038},"author":"jenslincke","message":"no comment","id":"33EE3DAC-F868-43CF-9597-A716E6AEED92"},"5038":{"isSerializedDate":true,"string":"Thu Jan 23 2014 05:03:44 GMT-0800 (PST)"},"5039":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":5040}},"5040":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"5041":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":5042}},"5042":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"5043":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":5044}},"5044":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"5045":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":5046}},"5046":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"5047":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":5048}},"5048":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"5049":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":5050}},"5050":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"5051":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":5052}},"5052":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"5053":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":5054}},"5054":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"5055":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":5056}},"5056":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"5057":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":5058}},"5058":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"5059":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":5060}},"5060":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"5061":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":5062}},"5062":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"5063":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":5064}},"5064":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"5065":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":5066}},"5066":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"5067":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":5068}},"5068":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"5069":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":5070}},"5070":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"5071":{"date":{"__isSmartRef__":true,"id":5072},"author":"jenslincke","message":"no comment","id":"D38B829D-47C7-49C3-A9A0-F84055B86575"},"5072":{"isSerializedDate":true,"string":"Fri Jan 24 2014 12:27:03 GMT-0800 (PST)"},"5073":{"date":{"__isSmartRef__":true,"id":5074},"author":"jenslincke","message":"no comment","id":"C0486ADB-A96C-42BD-8E5F-620F67E985F2"},"5074":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:54:33 GMT-0800 (PST)"},"5075":{"date":{"__isSmartRef__":true,"id":5076},"author":"jenslincke","message":"no comment","id":"44C71D6F-8ACE-49DF-B8E7-7BF3381E090F"},"5076":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:56:58 GMT-0800 (PST)"},"5077":{"date":{"__isSmartRef__":true,"id":5078},"author":"jenslincke","message":"no comment","id":"953778E2-A8B2-4B33-B485-031691989E11"},"5078":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:32:56 GMT-0800 (PST)"},"5079":{"isSerializedDate":true,"string":"Wed Jan 29 2014 02:31:01 GMT-0800 (PST)"},"5080":{"morph":{"__isSmartRef__":true,"id":952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5081":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5082}},"5082":{"test01IsMorph":{"__isSmartRef__":true,"id":5083}},"5083":{"varMapping":{"__isSmartRef__":true,"id":5084},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5084":{"this":{"__isSmartRef__":true,"id":5081}},"5085":{},"5086":{"onrestore":{"__isSmartRef__":true,"id":5087},"installLayers":{"__isSmartRef__":true,"id":5095},"simulateStep":{"__isSmartRef__":true,"id":5099},"log":{"__isSmartRef__":true,"id":5103},"clearLog":{"__isSmartRef__":true,"id":5107},"getSimParts":{"__isSmartRef__":true,"id":5111},"showAllProperties":{"__isSmartRef__":true,"id":5115},"initSimulation":{"__isSmartRef__":true,"id":5119},"simulateOneStep":{"__isSmartRef__":true,"id":5123},"resetStatus":{"__isSmartRef__":true,"id":5127},"reset":{"__isSmartRef__":true,"id":5131},"resetSourceHighlighting":{"__isSmartRef__":true,"id":5135}},"5087":{"varMapping":{"__isSmartRef__":true,"id":5088},"source":"function onrestore() {\n try {\n this.installLayers()\n } catch(e) {\n console.log(\"Error installing layers for object: \" + e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5088":{"this":{"__isSmartRef__":true,"id":952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5089}},"5089":{"$super":{"__isSmartRef__":true,"id":5090}},"5090":{"varMapping":{"__isSmartRef__":true,"id":5091},"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":5092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5091":{"obj":{"__isSmartRef__":true,"id":952},"name":"onrestore"},"5092":{},"5093":{"timestamp":{"__isSmartRef__":true,"id":5094},"user":"jenslincke","tags":[]},"5094":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:34:51 GMT-0800 (PST)"},"5095":{"varMapping":{"__isSmartRef__":true,"id":5096},"source":"function installLayers() { \n\nError.subclass(\"MorphNameNotFoundError\", {\n name: \"MorphNameNotFoundError\",\n initialize: function(name, object) {\n this.object = object\n this.morphName = name\n this.message = \"\\\"\" + name + \"\\\" not found\"\n }\n});\n\ncop.create(\"ScriptSyntaxHighlightingLayer\").refineClass(lively.ast.JSSyntaxHighlighter, {\n styleTextMorph: function(morph) {\n // console.log(\"start style \" + morph + \" \" + new Date())\n var r = cop.proceed(morph)\n if (morph.highligtScriptNames) {\n morph.highligtScriptNames()\n }\n // console.log(\"stop style \" + morph)\n return r\n }\n}).beGlobal();\n\ncop.create(\"ForceNameFoundLayer\").refineClass(lively.morphic.Morph, {\n get: function(name) {\n var result = cop.proceed(name)\n if (!result) throw new MorphNameNotFoundError(name)\n return result\n }\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":5097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5096":{"this":{"__isSmartRef__":true,"id":952}},"5097":{"timestamp":{"__isSmartRef__":true,"id":5098},"user":"jenslincke","tags":[]},"5098":{"isSerializedDate":true,"string":"Tue Feb 04 2014 14:14:10 GMT-0800 (PST)"},"5099":{"varMapping":{"__isSmartRef__":true,"id":5100},"source":"function simulateStep() {\n this.clearLog()\n this.resetStatus()\n var parts = this.getSimParts()\n // cop.withLayers([ForceNameFoundLayer], function() {\n for(var i=0; i< this.simStepsAtOnce; i++) {\n parts.each(function(ea) {\n try {\n if (ea.$ && ea.$.Stopped) {return }\n ea.simulateStep(this.deltaTime)\n } catch(e) {\n this.log(\"Error simulating \" + ea );\n }\n }, this)\n }\n // }.bind(this))\n this.showAllProperties()\n}","funcProperties":{"__isSmartRef__":true,"id":5101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5100":{"this":{"__isSmartRef__":true,"id":952}},"5101":{"timestamp":{"__isSmartRef__":true,"id":5102},"user":"jenslincke","tags":[]},"5102":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:50:29 GMT-0800 (PST)"},"5103":{"varMapping":{"__isSmartRef__":true,"id":5104},"source":"function log(s) {\n this.get(\"Log\").textString += s + \"\\n\"\n this.get(\"Log\").scrollToBottom()\n}","funcProperties":{"__isSmartRef__":true,"id":5105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5104":{"this":{"__isSmartRef__":true,"id":952}},"5105":{"timestamp":{"__isSmartRef__":true,"id":5106},"user":"jenslincke","tags":[]},"5106":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:39:54 GMT-0800 (PST)"},"5107":{"varMapping":{"__isSmartRef__":true,"id":5108},"source":"function clearLog() {\n this.get(\"Log\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":5109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5108":{"this":{"__isSmartRef__":true,"id":952}},"5109":{"timestamp":{"__isSmartRef__":true,"id":5110},"user":"jenslincke","tags":[]},"5110":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:40:14 GMT-0800 (PST)"},"5111":{"varMapping":{"__isSmartRef__":true,"id":5112},"source":"function getSimParts() {\n return this.submorphs.select(function(ea) {\n return ea.isEnergySimulationPart\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5112":{"this":{"__isSmartRef__":true,"id":952}},"5113":{"timestamp":{"__isSmartRef__":true,"id":5114},"user":"jenslincke","tags":[]},"5114":{"isSerializedDate":true,"string":"Fri Jan 24 2014 12:15:21 GMT-0800 (PST)"},"5115":{"varMapping":{"__isSmartRef__":true,"id":5116},"source":"function showAllProperties() {\n this.getSimParts().each(function(ea) {\n ea.printProperties()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5116":{"this":{"__isSmartRef__":true,"id":952}},"5117":{"timestamp":{"__isSmartRef__":true,"id":5118},"user":"jenslincke","tags":[]},"5118":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:46:27 GMT-0800 (PST)"},"5119":{"varMapping":{"__isSmartRef__":true,"id":5120},"source":"function initSimulation() {\n var simParts = this.getSimParts()\n simParts.each(function(ea) {\n ea.parsePropeties()\n })\n simParts.each(function(ea) {\n ea.parseSimulationSource()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5120":{"this":{"__isSmartRef__":true,"id":952}},"5121":{"timestamp":{"__isSmartRef__":true,"id":5122},"user":"jenslincke","tags":[]},"5122":{"isSerializedDate":true,"string":"Sat Jan 25 2014 14:11:49 GMT-0800 (PST)"},"5123":{"varMapping":{"__isSmartRef__":true,"id":5124},"source":"function simulateOneStep() {\n this.clearLog()\n this.getSimParts().each(function(ea) {\n if (ea.$ && ea.$.Stopped) { return };\n ea.simulateOneStep(this.deltaTime)\n }, this)\n this.showAllProperties()\n}","funcProperties":{"__isSmartRef__":true,"id":5125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5124":{"this":{"__isSmartRef__":true,"id":952}},"5125":{"timestamp":{"__isSmartRef__":true,"id":5126},"user":"jenslincke","tags":[]},"5126":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:35 GMT-0800 (PST)"},"5127":{"varMapping":{"__isSmartRef__":true,"id":5128},"source":"function resetStatus() {\n this.getSimParts().each(function(ea) {\n ea.resetStatus()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5128":{"this":{"__isSmartRef__":true,"id":952}},"5129":{"timestamp":{"__isSmartRef__":true,"id":5130},"user":"jenslincke","tags":[]},"5130":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:52:22 GMT-0800 (PST)"},"5131":{"varMapping":{"__isSmartRef__":true,"id":5132},"source":"function reset() {\n this.partsBinMetaInfo.addRequiredModule(\"lively.experimental.MorphAccessor\")\n this.partsBinMetaInfo.addRequiredModule(\"lively.experimental.Autocompletion\")\n this.partsBinMetaInfo.addRequiredModule(\"lively.ast.IDESupport\")\n}","funcProperties":{"__isSmartRef__":true,"id":5133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5132":{"this":{"__isSmartRef__":true,"id":952}},"5133":{"timestamp":{"__isSmartRef__":true,"id":5134},"user":"jenslincke","tags":[]},"5134":{"isSerializedDate":true,"string":"Tue Feb 04 2014 14:14:00 GMT-0800 (PST)"},"5135":{"varMapping":{"__isSmartRef__":true,"id":5136},"source":"function resetSourceHighlighting() {\n this.getSimParts().each(function(ea) {\n ea.resetSourceHighlighting()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5136":{"this":{"__isSmartRef__":true,"id":952}},"5137":{"timestamp":{"__isSmartRef__":true,"id":5138},"user":"jenslincke","tags":[]},"5138":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:10 GMT-0800 (PST)"},"5139":{"migrateFrom":{"__isSmartRef__":true,"id":5140},"parsePropeties":{"__isSmartRef__":true,"id":5144},"printProperties":{"__isSmartRef__":true,"id":5148},"parseSimulationSource":{"__isSmartRef__":true,"id":5152},"simulateStep":{"__isSmartRef__":true,"id":5156},"showError":{"__isSmartRef__":true,"id":5159},"throwSimulationProblem":{"__isSmartRef__":true,"id":5163},"updateUI":{"__isSmartRef__":true,"id":5167},"resetStatus":{"__isSmartRef__":true,"id":5171},"simulateOneStep":{"__isSmartRef__":true,"id":5175},"reset":{"__isSmartRef__":true,"id":5179},"resetScriptAnalysis":{"__isSmartRef__":true,"id":5183},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":5187},"logReference":{"__isSmartRef__":true,"id":5191},"showScriptAnalysis":{"__isSmartRef__":true,"id":5195},"showReferenceTo":{"__isSmartRef__":true,"id":5199},"resetSourceHighlighting":{"__isSmartRef__":true,"id":5203},"showNameReference":{"__isSmartRef__":true,"id":5207}},"5140":{"varMapping":{"__isSmartRef__":true,"id":5141},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n}","funcProperties":{"__isSmartRef__":true,"id":5142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5141":{"this":{"__isSmartRef__":true,"id":492}},"5142":{"timestamp":{"__isSmartRef__":true,"id":5143},"user":"jenslincke","tags":[]},"5143":{"isSerializedDate":true,"string":"Thu Jan 30 2014 03:48:02 GMT-0800 (PST)"},"5144":{"varMapping":{"__isSmartRef__":true,"id":5145},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":5146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5145":{"this":{"__isSmartRef__":true,"id":492}},"5146":{"timestamp":{"__isSmartRef__":true,"id":5147},"user":"jenslincke","tags":[]},"5147":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:32:03 GMT-0800 (PST)"},"5148":{"varMapping":{"__isSmartRef__":true,"id":5149},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":5150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5149":{"this":{"__isSmartRef__":true,"id":492}},"5150":{"timestamp":{"__isSmartRef__":true,"id":5151},"user":"jenslincke","tags":[]},"5151":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:34:48 GMT-0800 (PST)"},"5152":{"varMapping":{"__isSmartRef__":true,"id":5153},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":5154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5153":{"this":{"__isSmartRef__":true,"id":492}},"5154":{"timestamp":{"__isSmartRef__":true,"id":5155},"user":"jenslincke","tags":[]},"5155":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:12:57 GMT-0800 (PST)"},"5156":{"varMapping":{"__isSmartRef__":true,"id":5157},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nvar full = $.Max * $.Factor\nif ($.Heat < full && this.get('Fuel').$.Gas > $.Max * dt &&\n this.get('HeatStorage').$.Energy < 0.3 * this.get('HeatStorage').$.Max) {\n var gas = $.Max * dt\n this.get('Fuel').$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && this.get('HeatStorage').$.Energy < this.get('HeatStorage').$.Max ) {\n $.Heat -= delta\n this.get('HeatStorage').$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n \n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":5158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5157":{"this":{"__isSmartRef__":true,"id":492}},"5158":{},"5159":{"varMapping":{"__isSmartRef__":true,"id":5160},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5160":{"this":{"__isSmartRef__":true,"id":492}},"5161":{"timestamp":{"__isSmartRef__":true,"id":5162},"user":"jenslincke","tags":[]},"5162":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:11:23 GMT-0800 (PST)"},"5163":{"varMapping":{"__isSmartRef__":true,"id":5164},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":5165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5164":{"this":{"__isSmartRef__":true,"id":492}},"5165":{"timestamp":{"__isSmartRef__":true,"id":5166},"user":"jenslincke","tags":[]},"5166":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:32:56 GMT-0800 (PST)"},"5167":{"varMapping":{"__isSmartRef__":true,"id":5168},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":5169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5168":{"this":{"__isSmartRef__":true,"id":492}},"5169":{"timestamp":{"__isSmartRef__":true,"id":5170},"user":"jenslincke","tags":[]},"5170":{"isSerializedDate":true,"string":"Sun Jan 26 2014 06:22:09 GMT-0800 (PST)"},"5171":{"varMapping":{"__isSmartRef__":true,"id":5172},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":5173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5172":{"this":{"__isSmartRef__":true,"id":492}},"5173":{"timestamp":{"__isSmartRef__":true,"id":5174},"user":"jenslincke","tags":[]},"5174":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:54:04 GMT-0800 (PST)"},"5175":{"varMapping":{"__isSmartRef__":true,"id":5176},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5176":{"this":{"__isSmartRef__":true,"id":492}},"5177":{"timestamp":{"__isSmartRef__":true,"id":5178},"user":"jenslincke","tags":[]},"5178":{"isSerializedDate":true,"string":"Tue Jan 28 2014 06:05:58 GMT-0800 (PST)"},"5179":{"varMapping":{"__isSmartRef__":true,"id":5180},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":5181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5180":{"this":{"__isSmartRef__":true,"id":492}},"5181":{"timestamp":{"__isSmartRef__":true,"id":5182},"user":"jenslincke","tags":[]},"5182":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:35:44 GMT-0800 (PST)"},"5183":{"varMapping":{"__isSmartRef__":true,"id":5184},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":5185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5184":{"this":{"__isSmartRef__":true,"id":492}},"5185":{"timestamp":{"__isSmartRef__":true,"id":5186},"user":"jenslincke","tags":[]},"5186":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:36:12 GMT-0800 (PST)"},"5187":{"varMapping":{"__isSmartRef__":true,"id":5188},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":5189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5188":{"this":{"__isSmartRef__":true,"id":492}},"5189":{"timestamp":{"__isSmartRef__":true,"id":5190},"user":"jenslincke","tags":[]},"5190":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:09 GMT-0800 (PST)"},"5191":{"varMapping":{"__isSmartRef__":true,"id":5192},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":5193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5192":{"this":{"__isSmartRef__":true,"id":492}},"5193":{"timestamp":{"__isSmartRef__":true,"id":5194},"user":"jenslincke","tags":[]},"5194":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:42:15 GMT-0800 (PST)"},"5195":{"varMapping":{"__isSmartRef__":true,"id":5196},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5196":{"this":{"__isSmartRef__":true,"id":492}},"5197":{"timestamp":{"__isSmartRef__":true,"id":5198},"user":"jenslincke","tags":[]},"5198":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:55:26 GMT-0800 (PST)"},"5199":{"varMapping":{"__isSmartRef__":true,"id":5200},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5200":{"this":{"__isSmartRef__":true,"id":492}},"5201":{"timestamp":{"__isSmartRef__":true,"id":5202},"user":"jenslincke","tags":[]},"5202":{"isSerializedDate":true,"string":"Tue Jan 28 2014 08:53:25 GMT-0800 (PST)"},"5203":{"varMapping":{"__isSmartRef__":true,"id":5204},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":5205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5204":{"this":{"__isSmartRef__":true,"id":492}},"5205":{"timestamp":{"__isSmartRef__":true,"id":5206},"user":"jenslincke","tags":[]},"5206":{"isSerializedDate":true,"string":"Tue Jan 28 2014 09:53:47 GMT-0800 (PST)"},"5207":{"varMapping":{"__isSmartRef__":true,"id":5208},"source":"function showNameReference(name) {\n\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n this.lastNameReference = name;\n\n var morph = this.get(name)\n if (morph) {\n morph.show().invoke(\"setBorderColor\", Color.yellow)\n morph.showScriptAnalysis()\n }\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":5209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5208":{"this":{"__isSmartRef__":true,"id":492}},"5209":{"timestamp":{"__isSmartRef__":true,"id":5210},"user":"jenslincke","tags":[]},"5210":{"isSerializedDate":true,"string":"Thu Jan 30 2014 02:13:25 GMT-0800 (PST)"},"5211":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"List","comment":"a list morph","changes":[{"__isSmartRef__":true,"id":5212},{"__isSmartRef__":true,"id":5214},{"__isSmartRef__":true,"id":5216},{"__isSmartRef__":true,"id":5218}],"lastModifiedDate":{"__isSmartRef__":true,"id":5220},"revisionOnLoad":203793,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5212":{"author":"robertkrahn","message":"no comment","id":"3D0531CA-D241-4692-89F0-2FCC7621B8DE","date":{"__isSmartRef__":true,"id":5213}},"5213":{"isSerializedDate":true,"string":"Tue Oct 01 2013 15:29:07 GMT-0700 (PDT)"},"5214":{"author":"robertkrahn","message":"new morphic lists","id":"ACF81045-E200-4DA6-B0C6-B9AB94590E84","date":{"__isSmartRef__":true,"id":5215}},"5215":{"isSerializedDate":true,"string":"Mon Sep 30 2013 14:32:00 GMT-0700 (PDT)"},"5216":{"author":"undefined","message":"Click on scrollbar does not grab list","id":"16AABF98-2E7D-4875-9E66-CF86EB74AF93","date":{"__isSmartRef__":true,"id":5217}},"5217":{"isSerializedDate":true,"string":"Thu Mar 29 2012 05:39:24 GMT-0700 (PDT)"},"5218":{"date":{"__isSmartRef__":true,"id":5219},"author":"jenslincke","message":"reverted back ","id":"BD398F7A-14E2-4981-A43A-366A5B2AF5CD"},"5219":{"isSerializedDate":true,"string":"Thu Jan 16 2014 10:07:45 GMT-0800 (PST)"},"5220":{"isSerializedDate":true,"string":"Thu Jan 16 2014 10:05:34 GMT-0800 (PST)"},"5221":{"morph":{"__isSmartRef__":true,"id":489},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5222":{"removeCurrent":{"__isSmartRef__":true,"id":5223}},"5223":{"varMapping":{"__isSmartRef__":true,"id":5224},"source":"function removeCurrent() {\n this.setList(this.getList().without(this.getSelectedItem()))\n}","funcProperties":{"__isSmartRef__":true,"id":5225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5224":{"this":{"__isSmartRef__":true,"id":489}},"5225":{"timestamp":{"__isSmartRef__":true,"id":5226},"user":"jenslincke","tags":[]},"5226":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:39:46 GMT-0800 (PST)"},"5227":{"submorphs":[{"__isSmartRef__":true,"id":5228}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5233},"eventHandler":{"__isSmartRef__":true,"id":5234},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D"],"id":"FB8A2B3A-B30B-45D1-B92A-35D79DBCDA98","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":5228},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":5235},{"__isSmartRef__":true,"id":5237}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3481},"pinSpecs":[{"__isSmartRef__":true,"id":5239}],"owner":{"__isSmartRef__":true,"id":111},"_Rotation":0,"_Scale":1,"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5240},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(12.3,100.2)","distanceToDragEvent":"lively.pt(40.3,-15.1)"},"5228":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5229},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5230}],"eventHandler":{"__isSmartRef__":true,"id":5232},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4"],"id":"396F1E73-B8E8-4B92-A9A6-83A7EB13A565","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5227},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"5229":{"_BorderWidth":0,"_Fill":null,"__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(52.6,19.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5230":{"style":{"__isSmartRef__":true,"id":5231},"chunkOwner":{"__isSmartRef__":true,"id":5228},"_id":"_194144","storedString":"remove","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5231":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5232":{"morph":{"__isSmartRef__":true,"id":5228},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5233":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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(52.6,19.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"5234":{"morph":{"__isSmartRef__":true,"id":5227},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5235":{"sourceObj":{"__isSmartRef__":true,"id":5227},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5227},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":5236},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5236":{"source":{"__isSmartRef__":true,"id":5227},"target":{"__isSmartRef__":true,"id":5227}},"5237":{"sourceObj":{"__isSmartRef__":true,"id":5227},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":489},"targetMethodName":"removeCurrent","varMapping":{"__isSmartRef__":true,"id":5238},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5238":{"source":{"__isSmartRef__":true,"id":5227},"target":{"__isSmartRef__":true,"id":489}},"5239":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"5240":{"doAction":{"__isSmartRef__":true,"id":5241}},"5241":{"varMapping":{"__isSmartRef__":true,"id":5242},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":5243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5242":{"this":{"__isSmartRef__":true,"id":5227}},"5243":{"user":"undefined","tags":[],"timestamp":{"__isSmartRef__":true,"id":5244}},"5244":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:14:29 GMT-0800 (PST)"},"5245":{"submorphs":[],"scripts":[],"id":"F18B475B-97B1-48BF-BFE1-77338E2AF7A2","shape":{"__isSmartRef__":true,"id":5246},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":309},"textChunks":[{"__isSmartRef__":true,"id":5247}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5249},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":111},"_Rotation":0,"_Scale":1,"priorSelectionRange":[6,6],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(11.3,52.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(93.8,-10.1)"},"5246":{"fill":null,"_BorderWidth":0,"_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(128.7,19.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"5247":{"style":{"__isSmartRef__":true,"id":5248},"morph":{"__isSmartRef__":true,"id":5245},"chunkOwner":{"__isSmartRef__":true,"id":5245},"storedString":"prototypes","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5248":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5249":{"morph":{"__isSmartRef__":true,"id":5245},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5250":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(227.8,172.1)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(252,252,252)","_Padding":"lively.rect(0,0,0,0)"},"5251":{"partsSpaceName":"PartsBin/Jens","comment":"A helper tool....","migrationLevel":4,"partName":"PartMigrator","changes":[{"__isSmartRef__":true,"id":5252},{"__isSmartRef__":true,"id":5254},{"__isSmartRef__":true,"id":5256},{"__isSmartRef__":true,"id":5258},{"__isSmartRef__":true,"id":5260},{"__isSmartRef__":true,"id":5262},{"__isSmartRef__":true,"id":5264},{"__isSmartRef__":true,"id":5266},{"__isSmartRef__":true,"id":5268},{"__isSmartRef__":true,"id":5270},{"__isSmartRef__":true,"id":5272},{"__isSmartRef__":true,"id":5274},{"__isSmartRef__":true,"id":5276},{"__isSmartRef__":true,"id":5278},{"__isSmartRef__":true,"id":5280},{"__isSmartRef__":true,"id":5282},{"__isSmartRef__":true,"id":5284},{"__isSmartRef__":true,"id":5286},{"__isSmartRef__":true,"id":5288}],"lastModifiedDate":{"__isSmartRef__":true,"id":5290},"revisionOnLoad":204580,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5252":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":5253}},"5253":{"isSerializedDate":true,"string":"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)"},"5254":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":5255}},"5255":{"isSerializedDate":true,"string":"Thu May 30 2013 00:18:06 GMT-0700 (PDT)"},"5256":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":5257}},"5257":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"5258":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":5259}},"5259":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"5260":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":5261}},"5261":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"5262":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":5263}},"5263":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"5264":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":5265}},"5265":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"5266":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":5267}},"5267":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"5268":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":5269}},"5269":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"5270":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":5271}},"5271":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"5272":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":5273}},"5273":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"5274":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":5275}},"5275":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"5276":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":5277}},"5277":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"5278":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":5279}},"5279":{"isSerializedDate":true,"string":"Wed May 29 2013 15:36:50 GMT-0700 (PDT)"},"5280":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":5281}},"5281":{"isSerializedDate":true,"string":"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)"},"5282":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":5283}},"5283":{"isSerializedDate":true,"string":"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)"},"5284":{"date":{"__isSmartRef__":true,"id":5285},"author":"jenslincke","message":"no comment","id":"8DB648C0-0CE9-44EC-AD31-919E59DF4F79"},"5285":{"isSerializedDate":true,"string":"Thu Jan 23 2014 05:03:27 GMT-0800 (PST)"},"5286":{"date":{"__isSmartRef__":true,"id":5287},"author":"jenslincke","message":"no comment","id":"7C6FF70C-74BB-4079-B661-0BEEAFF0DF41"},"5287":{"isSerializedDate":true,"string":"Fri Jan 24 2014 12:27:11 GMT-0800 (PST)"},"5288":{"date":{"__isSmartRef__":true,"id":5289},"author":"jenslincke","message":"no comment","id":"F33DB561-7E24-4EFC-8723-C09E0F619A37"},"5289":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:57:37 GMT-0800 (PST)"},"5290":{"isSerializedDate":true,"string":"Mon Jan 27 2014 07:56:29 GMT-0800 (PST)"},"5291":{"morph":{"__isSmartRef__":true,"id":111},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5292":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5293}},"5293":{"test01IsMorph":{"__isSmartRef__":true,"id":5294}},"5294":{"varMapping":{"__isSmartRef__":true,"id":5295},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5295":{"this":{"__isSmartRef__":true,"id":5292}},"5296":{},"5297":{"migrateAllConnectors":{"__isSmartRef__":true,"id":5298},"clearWorld":{"__isSmartRef__":true,"id":5302},"migrateParts":{"__isSmartRef__":true,"id":5306},"migratePart":{"__isSmartRef__":true,"id":5310},"log":{"__isSmartRef__":true,"id":5314},"getTarget":{"__isSmartRef__":true,"id":5318},"clearLog":{"__isSmartRef__":true,"id":5322},"replaceReferencesInTargetAndSubmorphs":{"__isSmartRef__":true,"id":5326},"setTarget":{"__isSmartRef__":true,"id":5330},"addPrototype":{"__isSmartRef__":true,"id":5334}},"5298":{"varMapping":{"__isSmartRef__":true,"id":5299},"source":"function migrateAllConnectors() {\n\n var target = this.owner;\n\n var connectors = target.submorphs.select(function(ea) {\n return ea.partsBinMetaInfo && ea.partsBinMetaInfo.partName == \"Connector\"\n });\n\n connectors.each(function(ea) {\n var p = ea.partsBinMetaInfo.getPartsSpace().getPartItemNamed(ea.partsBinMetaInfo.getName()).loadPart().part\n var owner = ea.owner\n owner.addMorphBack(p)\n try {\n if (p.migrateFrom) p.migrateFrom(ea)\n } catch(e) {\n show(p)\n this.log(\"ERROR in \" + p + \" migrateFrom:\" + e)\n }\n p.setPosition(ea.getPosition())\n p.setName(ea.name)\n ea.remove()\n }.bind(this))\n}","funcProperties":{"__isSmartRef__":true,"id":5300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5299":{"this":{"__isSmartRef__":true,"id":111}},"5300":{"timestamp":{"__isSmartRef__":true,"id":5301},"user":"jenslincke","tags":[]},"5301":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:41:21 GMT-0800 (PST)"},"5302":{"varMapping":{"__isSmartRef__":true,"id":5303},"source":"function clearWorld() {\n $world.submorphs.select(function(ea) {\n return ea.isEpiMorph\n }).invoke(\"remove\")\n\n}","funcProperties":{"__isSmartRef__":true,"id":5304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5303":{"this":{"__isSmartRef__":true,"id":111}},"5304":{"timestamp":{"__isSmartRef__":true,"id":5305},"user":"jenslincke","tags":[]},"5305":{"isSerializedDate":true,"string":"Wed Jan 22 2014 07:52:31 GMT-0800 (PST)"},"5306":{"varMapping":{"__isSmartRef__":true,"id":5307},"source":"function migrateParts() {\n\n var target = this.getTarget();\n\n\n var partsToMigrate = [\"EnergySimulationPart\", \"Connector\"]\n var parts = target.submorphs.select(function(ea) {\n return ea.partsBinMetaInfo && partsToMigrate.include(ea.partsBinMetaInfo.partName)\n });\n\n parts.each(function(ea) {\n this.migratePart(ea)\n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5307":{"this":{"__isSmartRef__":true,"id":111}},"5308":{"timestamp":{"__isSmartRef__":true,"id":5309},"user":"jenslincke","tags":[]},"5309":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:41:44 GMT-0800 (PST)"},"5310":{"varMapping":{"__isSmartRef__":true,"id":5311},"source":"function migratePart(morph) {\n // this.migratePart(this.get(\"MigrateTest\"))\n // morph = this.get(\"MigrateTest\")\n // newMorph = this.get(\"MigrateTest\")\n this.log(\"migrate \" + morph)\n var partName = morph.partsBinMetaInfo.getName();\n var protoMorph = this.get(\"PrototypeList\").getValues().detect(function(ea) {\n return ea.partsBinMetaInfo.partName == partName\n })\n\n if (protoMorph) {\n if (protoMorph === morph) return;\n var newMorph = protoMorph.duplicate()\n this.log(\"found protoype \" + protoMorph)\n } else {\n newMorph = morph.partsBinMetaInfo.getPartsSpace().getPartItemNamed(partName).loadPart(partName).part\n };\n var owner = morph.owner\n owner.addMorph(newMorph, morph)\n if (newMorph.migrateFrom) newMorph.migrateFrom(morph)\n newMorph.setPosition(morph.getPosition())\n newMorph.setName(morph.name)\n morph.remove()\n\n // TODO: deal with references to submorphs / subobjects\n // Open Problem: Mapping old objects to new objects\n // approach: a) use name, use position, use derivation id\n // This problem is shared by diffing / merging parts\n // we assume here that only the toppart gets references from the outside\n // we could call this the DEEP REFERENCE PROBLEM\n\n // instead a list this should be a mapping... TODO\n var innerMorphs = []\n morph.withAllSubmorphsDo(function(ea) {\n innerMorphs.push(ea)\n })\n\n this.replaceReferencesInTargetAndSubmorphs(morph, newMorph, innerMorphs)\n\n\n if (morph.attributeConnections) {\n var outConnections = morph.attributeConnections.reject(function(con) {\n return innerMorphs.include(con.targetObj) || con.dependedBy\n })\n morph.attributeConnections.invoke(\"disconnect\")\n outConnections.each(function(ea) {\n ea.sourceObj = newMorph\n this.log(\"migrate attribute connection \" + morph + \" to \" + ea )\n ea.connect()\n }.bind(this))\n }\n\n // TODO: deal with attribute connections in submorphs\n\n}","funcProperties":{"__isSmartRef__":true,"id":5312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5311":{"this":{"__isSmartRef__":true,"id":111}},"5312":{"timestamp":{"__isSmartRef__":true,"id":5313},"user":"jenslincke","tags":[]},"5313":{"isSerializedDate":true,"string":"Fri Jan 24 2014 11:01:40 GMT-0800 (PST)"},"5314":{"varMapping":{"__isSmartRef__":true,"id":5315},"source":"function log(s) {\n this.get(\"Log\").textString += s + \"\\n\"\n}","funcProperties":{"__isSmartRef__":true,"id":5316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5315":{"this":{"__isSmartRef__":true,"id":111}},"5316":{"timestamp":{"__isSmartRef__":true,"id":5317},"user":"jenslincke","tags":[]},"5317":{"isSerializedDate":true,"string":"Wed Jan 22 2014 11:54:26 GMT-0800 (PST)"},"5318":{"varMapping":{"__isSmartRef__":true,"id":5319},"source":"function getTarget() {\n return this.target\n}","funcProperties":{"__isSmartRef__":true,"id":5320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5319":{"this":{"__isSmartRef__":true,"id":111}},"5320":{"timestamp":{"__isSmartRef__":true,"id":5321},"user":"jenslincke","tags":[]},"5321":{"isSerializedDate":true,"string":"Fri Jan 24 2014 12:44:46 GMT-0800 (PST)"},"5322":{"varMapping":{"__isSmartRef__":true,"id":5323},"source":"function clearLog() {\n this.get(\"Log\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":5324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5323":{"this":{"__isSmartRef__":true,"id":111}},"5324":{"timestamp":{"__isSmartRef__":true,"id":5325},"user":"jenslincke","tags":[]},"5325":{"isSerializedDate":true,"string":"Wed Jan 22 2014 12:39:12 GMT-0800 (PST)"},"5326":{"varMapping":{"__isSmartRef__":true,"id":5327},"source":"function replaceReferencesInTargetAndSubmorphs(morph, newMorph, innerMorphs) {\n this.getTarget().withAllSubmorphsDo(function(ea) {\n Properties.own(ea)\n .reject(function(ea) { return [\"owner\"].include(ea)})\n .each(function(prop) {\n if (ea[prop] === morph) {\n try {\n this.log(\"update \" + prop + \" from \" + ea[prop]+\" to \" + newMorph)\n ea[prop] = newMorph\n } catch(e) {\n this.log(\"ERROR update \" + prop + \" to \" + newMorph)\n }\n }\n }.bind(this))\n if (ea.attributeConnections) {\n var inConnections = ea.attributeConnections.select(function(con) {\n return innerMorphs.include(con.targetObj) && !con.dependedBy\n })\n inConnections.each(function(ea) {\n this.log(\"migrate attribute connection target \" + ea.targetObj + \" to \" + ea )\n ea.targetObj = newMorph\n ea.connect()\n }.bind(this))\n }\n }.bind(this))\n\n}","funcProperties":{"__isSmartRef__":true,"id":5328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5327":{"this":{"__isSmartRef__":true,"id":111}},"5328":{"timestamp":{"__isSmartRef__":true,"id":5329},"user":"jenslincke","tags":[]},"5329":{"isSerializedDate":true,"string":"Wed Jan 22 2014 13:11:19 GMT-0800 (PST)"},"5330":{"varMapping":{"__isSmartRef__":true,"id":5331},"source":"function setTarget(target) {\n this.target = target\n this.get(\"TargetNameText\").textString = target.name\n}","funcProperties":{"__isSmartRef__":true,"id":5332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5331":{"this":{"__isSmartRef__":true,"id":111}},"5332":{"timestamp":{"__isSmartRef__":true,"id":5333},"user":"jenslincke","tags":[]},"5333":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:29:49 GMT-0800 (PST)"},"5334":{"varMapping":{"__isSmartRef__":true,"id":5335},"source":"function addPrototype(object) {\n // this.get(\"PrototypeList\").setList([])\n this.get(\"PrototypeList\").addItem({\n string: object.getPartsBinMetaInfo().partName,\n value: object,\n isListItem: true\n })\n \n}","funcProperties":{"__isSmartRef__":true,"id":5336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5335":{"this":{"__isSmartRef__":true,"id":111}},"5336":{"timestamp":{"__isSmartRef__":true,"id":5337},"user":"jenslincke","tags":[]},"5337":{"isSerializedDate":true,"string":"Fri Jan 24 2014 10:46:00 GMT-0800 (PST)"},"5338":{"submorphs":[],"scripts":[],"id":"542E1246-898F-44A8-BBAD-6A562C65028F","shape":{"__isSmartRef__":true,"id":5339},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":662.1211211211211,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":5340},"textChunks":[{"__isSmartRef__":true,"id":5345}],"charsReplaced":"WriteFirst 2014-01-24","lastFindLoc":21,"prevScroll":[0,0],"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":662.1211211211211,"_MinTextHeight":null,"eventHandler":{"__isSmartRef__":true,"id":5347},"derivationIds":[683,"F43C5DBF-97D8-4835-8CB7-2B6EAB81E196","80C3E6E0-6D02-44B9-9C91-6F24AE370E2F","B661A806-84A1-4EB2-93DC-55E6C2B60136"],"moved":true,"owner":{"__isSmartRef__":true,"id":0},"isBeingDragged":false,"previousSelection":[0,10],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(17.9,46.5)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(447.0,1.0)"},"5339":{"fill":null,"_BorderWidth":0,"_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(662.1,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"5340":{"partsSpaceName":"PartsBin/Text/","partName":"Title","comment":"A title morph template","changes":[{"__isSmartRef__":true,"id":5341},{"__isSmartRef__":true,"id":5343}],"migrationLevel":4,"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5341":{"date":{"__isSmartRef__":true,"id":5342},"author":"jenslincke","message":"","id":"1390D6B7-2215-4E06-8C86-7500ED7702F2"},"5342":{"isSerializedDate":true,"string":"Wed Nov 09 2011 08:27:07 GMT-0800 (PST)"},"5343":{"date":{"__isSmartRef__":true,"id":5344},"author":"jenslincke","message":"initial","id":"2DA7C793-6A93-4D2F-A854-29DFAAE1BCE8"},"5344":{"isSerializedDate":true,"string":"Wed Nov 09 2011 08:26:44 GMT-0800 (PST)"},"5345":{"style":{"__isSmartRef__":true,"id":5346},"chunkOwner":{"__isSmartRef__":true,"id":5338},"_id":"_19","storedString":"Energy Simulation (Scripted)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5346":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5347":{"morph":{"__isSmartRef__":true,"id":5338},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5348":{"submorphs":[{"__isSmartRef__":true,"id":5349},{"__isSmartRef__":true,"id":5370},{"__isSmartRef__":true,"id":5408}],"scripts":[],"id":"01D508FD-D9AD-43B5-BEA2-345CC823FB4A","shape":{"__isSmartRef__":true,"id":5450},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Formatter","partsBinMetaInfo":{"__isSmartRef__":true,"id":5451},"eventHandler":{"__isSmartRef__":true,"id":5565},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","60EEC9BB-C633-4D94-91E3-6DA6FE53260C","61245879-6BB3-4DB2-A981-13FEFBC0690C","C2101192-5BA5-4707-9A73-E76BBEE3E728","326511FA-DA13-41EE-A295-1D9453585285","ED406134-93ED-475B-8A7C-2945C9F2CBE7","6A436784-FF02-451B-8393-B11F4D871D36","BC1C47C3-71DF-466A-B97A-83209D6584EE","BFF17E9A-328D-4697-848B-7A647E395BAC","0E2A8DC1-4D7F-404D-8852-A4C853EC5665","59DC87BB-0A7B-44A0-BCB4-BA5EBE9D0523","A1451A64-B67C-46E9-8695-846C5A15311D","8DA03179-8886-4623-9CC1-539D47E62E73","8B4BBAE9-F211-402D-B937-60C13DC8198E","643A38BD-7760-4E8D-A559-0F7F90AB302F","8D7AA1C6-943D-4A31-8CB7-F69731F5F4BB","B3F4964F-0DF3-4BD9-93A9-CA9A848A40A0","355257BD-1D2F-428B-B2C8-CAD0A6400CA1","18805E4A-C471-4EF0-AA4C-BCCCAFBF0059","2041833A-0803-4694-A462-A5FBB9CCF270","1FC304ED-9BDE-435A-B4DD-53707DAA0EEF","0A2A0424-D549-4F97-973E-C6A5D73A1A5D","01C14E3E-D50E-4E94-BC50-EF4A2952F362","F5268ADD-DCDD-432C-A940-26808CC830D7","B342A01A-FCA1-468F-AF9E-F2DF06118FAA","C17748DB-DE2A-414A-8828-2906A30DB2E7","A5B22D0C-330E-447D-89E7-22CF8D2806B5","EAFEF25E-5A36-4505-BA86-0B64FEA87F75","7DAF625D-E0B5-4830-B769-C198B53A78F1","D03C08C5-B123-4FBF-81D9-85D609E82966","D4999342-2616-44A2-8C2A-81035273A0FE","914BFB00-9B6A-4485-99E0-4F7008CD53D6"],"partTests":{"__isSmartRef__":true,"id":5566},"_ClipMode":"visible","moved":true,"#startLetters":"formatAllMorphsInM","isLockOwner":true,"isBeingDragged":false,"prevScroll":[0,0],"connections":{"__isSmartRef__":true,"id":5571},"attributeConnections":[{"__isSmartRef__":true,"id":5573}],"doNotSerialize":["$$ScriptAdded"],"doNotCopyProperties":["$$ScriptAdded"],"lastTextChunk":null,"isActive":true,"draggingEnabled":false,"grabbingEnabled":false,"_Rotation":0,"_Scale":1,"isCopyMorphRef":true,"morphRefId":1,"owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5575},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(2083.1,139.3)","distanceToDragEvent":"lively.pt(144.0,-7.0)"},"5349":{"submorphs":[],"scripts":[],"id":"B0E3DC08-00D7-4EE8-816E-D591F992E4C0","shape":{"__isSmartRef__":true,"id":5350},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":5351},"textChunks":[{"__isSmartRef__":true,"id":5367}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5369},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","F55BA3EA-22CD-48D6-B41A-B854EB9BFC64","CDD26262-32FF-4710-BEE0-4BA0C7EEABB9","3C96DEFC-98EC-4776-903C-F7665129EFE7","C9D9C11A-03C6-497D-9B50-AE83D2EF3E52","57709E31-C611-4398-BCF5-76958C49628D","EF9B4E38-09CF-4E88-A1A0-10C1E99404C0","B80B8D09-1321-4366-981C-FB57506D07BE","488CBCEC-EDAC-431B-8607-893D9B94E92D","22304054-9794-46E4-96AA-7C166329C288","936AF3B0-87CC-494B-B38E-B4EE4FFE62F6","6125A594-2D7F-4B3B-949D-BA5D290FE245","9FB9F9AA-1AAA-47CD-BF15-6F2725D031B6","B80931E7-AC5E-4FAD-B285-9DD4A085899A","86915E69-88F9-4C44-BBFA-53AC4C8AF1E3","E5743CA5-61A0-40A7-991E-410B66DF9BA6","F0F4CE6D-C62B-434F-9F9E-2E84CD2D12C9","5586722F-18A3-421E-8D16-207CFAC4E563","7D25A254-316A-4990-9961-34E6B7C8AF22","6429C36E-77E7-4EA5-BDB8-AEB56B42BB48","0B70107F-B681-49F0-BE54-2AF2751286B7","EE541B9C-20E6-4368-BA6E-65DBEB642395","67C96C86-0E46-474C-ACB5-F832713F1D66","ED235E43-74E2-44DF-A475-BAAF164760D0","01F832E9-AF58-4D13-9A2E-B03A36F82CEE","E87C4F24-8CB9-4EE8-8E15-EEC0CB915083","60E16C41-6092-4664-9C7C-D8F296DBA453","E6BC51D2-B8BC-4C3C-8261-841FD97E03FF","801FF08E-25BF-4A9C-8788-00F4B5026D42","38D955EE-AE4E-4686-81A8-A34DDCC6603D","403CD3A6-A3ED-4673-80C2-10542E030F5E","9FBB5EA7-7D70-493A-824C-61007A5E4BD2"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":5348},"isLockOwner":false,"previousSelection":[7,7],"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(4.6,3.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(66.4,-9.0)"},"5350":{"fill":null,"_BorderWidth":0,"_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(100.7,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"5351":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":5352},{"__isSmartRef__":true,"id":5354},{"__isSmartRef__":true,"id":5356},{"__isSmartRef__":true,"id":5358},{"__isSmartRef__":true,"id":5360},{"__isSmartRef__":true,"id":5362},{"__isSmartRef__":true,"id":5364}],"lastModifiedDate":{"__isSmartRef__":true,"id":5366},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5352":{"date":{"__isSmartRef__":true,"id":5353},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"5353":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5354":{"date":{"__isSmartRef__":true,"id":5355},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"5355":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5356":{"date":{"__isSmartRef__":true,"id":5357},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"5357":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5358":{"date":{"__isSmartRef__":true,"id":5359},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"5359":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5360":{"date":{"__isSmartRef__":true,"id":5361},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"5361":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5362":{"date":{"__isSmartRef__":true,"id":5363},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"5363":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5364":{"date":{"__isSmartRef__":true,"id":5365},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"5365":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5366":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5367":{"style":{"__isSmartRef__":true,"id":5368},"morph":{"__isSmartRef__":true,"id":5349},"chunkOwner":{"__isSmartRef__":true,"id":5349},"storedString":"Formatter","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5368":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(146,146,146)"},"5369":{"morph":{"__isSmartRef__":true,"id":5349},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5370":{"submorphs":[],"scripts":[],"id":"BDA24BBE-F537-480A-8074-711096263CA0","shape":{"__isSmartRef__":true,"id":5371},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":5,"name":"VersionLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":5372},"textChunks":[{"__isSmartRef__":true,"id":5388}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5390},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","DE7C6514-2635-46F0-B977-010AF2CA158A","C1038641-97C2-4250-810D-54A1028A1C6E","B3A30A07-1B69-45B4-84E0-955858FCDA2D","9CF2E8B9-2601-4263-A1C9-6633EAE8503B","1EF1CB51-4B4D-46FD-806E-D0DBF1A56D57","F38B25E2-0F26-49B4-81BF-38E2C0B3AD93","D6193C51-207E-4E07-8F5E-DF300D39EDB5","0100F042-0D69-40B5-8152-3499D33D6F85","26DE6FC0-8B4B-4986-AC4A-93F20B7C7B28","32CF1677-0DE7-4E57-AA37-CB94AB45A737","352353A9-2B46-40D4-9BC6-07F70D1B5D8A","11BC9434-E8C9-4FCB-9DF2-5D085F7D87A0","579A5E92-2C98-472C-9061-9C16060B835B","99C0518D-25A9-44FE-BB7B-01F038ACCA7C","FEB90AB9-68A6-4141-8F82-94094BCD0048","C81ADDF2-D919-4184-A5DE-ACB8D369F3E9","2C60F55F-DB72-4E5B-9ECE-04586DBEC92C","2B63DCFE-C814-4B7A-9172-EBE6BD721650","45A5A93C-7556-4467-B123-9F354C43B8FA","7981127D-77AB-449C-AB43-1F7CAC6B1FEB","12241BBE-EC90-4C23-A62F-95DAE3B58061","6708160E-E5BD-421E-9598-6C83E6260C50","F0EE07FD-3EE9-42D2-B02F-F1A050487A0B","1AD3ED74-FE01-426F-BA17-F76E2EE11264","3F3F1A08-EC0D-43A2-9B5A-DC6ACB3D4962","B9039E73-AC98-4890-AA8E-A7588AAA55A8","ED709A8A-A888-45D5-900D-CA2DDD5D15DC","4326AA2F-C5E0-46D7-947B-C924BB091339"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":5348},"draggingEnabled":false,"previousSelection":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.4,26.3)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(137.6,-12.3)"},"5371":{"fill":null,"_BorderWidth":0,"_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(200.1,11.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"5372":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":5373},{"__isSmartRef__":true,"id":5375},{"__isSmartRef__":true,"id":5377},{"__isSmartRef__":true,"id":5379},{"__isSmartRef__":true,"id":5381},{"__isSmartRef__":true,"id":5383},{"__isSmartRef__":true,"id":5385}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":5387},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5373":{"date":{"__isSmartRef__":true,"id":5374},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"5374":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5375":{"date":{"__isSmartRef__":true,"id":5376},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"5376":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5377":{"date":{"__isSmartRef__":true,"id":5378},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"5378":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5379":{"date":{"__isSmartRef__":true,"id":5380},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"5380":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5381":{"date":{"__isSmartRef__":true,"id":5382},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"5382":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5383":{"date":{"__isSmartRef__":true,"id":5384},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"5384":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5385":{"date":{"__isSmartRef__":true,"id":5386},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"5386":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5387":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5388":{"style":{"__isSmartRef__":true,"id":5389},"chunkOwner":{"__isSmartRef__":true,"id":5370},"_id":"_679","storedString":"Tue Jan 28 2014 13:26:26 GMT-0800 (PST)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5389":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5390":{"morph":{"__isSmartRef__":true,"id":5370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5391":{"onrestore":{"__isSmartRef__":true,"id":5392},"updateText":{"__isSmartRef__":true,"id":5400},"lastModifiedScriptOfOwner":{"__isSmartRef__":true,"id":5404}},"5392":{"varMapping":{"__isSmartRef__":true,"id":5393},"source":"function onrestore() {\n this.updateText.bind(this).delay(1)\n}","funcProperties":{"__isSmartRef__":true,"id":5398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5393":{"this":{"__isSmartRef__":true,"id":5370},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5394}},"5394":{"$super":{"__isSmartRef__":true,"id":5395}},"5395":{"varMapping":{"__isSmartRef__":true,"id":5396},"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":5397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5396":{"obj":{"__isSmartRef__":true,"id":5370},"name":"onrestore"},"5397":{},"5398":{"timestamp":{"__isSmartRef__":true,"id":5399},"user":"jenslincke","tags":[]},"5399":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5400":{"varMapping":{"__isSmartRef__":true,"id":5401},"source":"function updateText() {\n this.textString = this.lastModifiedScriptOfOwner()\n}","funcProperties":{"__isSmartRef__":true,"id":5402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5401":{"this":{"__isSmartRef__":true,"id":5370}},"5402":{"timestamp":{"__isSmartRef__":true,"id":5403},"user":"jenslincke","tags":[]},"5403":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5404":{"varMapping":{"__isSmartRef__":true,"id":5405},"source":"function lastModifiedScriptOfOwner() {\n // this.lastModifiedScriptOfOwner()\n var latest;\n Functions.own(this.owner).each(function(ea) {\n var t = this.owner[ea].timestamp;\n if (!latest || t > latest)\n latest = t;\n }, this)\n return latest\n}","funcProperties":{"__isSmartRef__":true,"id":5406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5405":{"this":{"__isSmartRef__":true,"id":5370}},"5406":{"timestamp":{"__isSmartRef__":true,"id":5407},"user":"jenslincke"},"5407":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5408":{"submorphs":[{"__isSmartRef__":true,"id":5409}],"scripts":[],"id":"E89964EA-437F-442D-A9CD-B7D07FE39BC5","shape":{"__isSmartRef__":true,"id":5414},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5415},"lighterFill":{"__isSmartRef__":true,"id":5420},"label":{"__isSmartRef__":true,"id":5409},"name":"ToggleButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5425},"attributeConnections":[{"__isSmartRef__":true,"id":5433},{"__isSmartRef__":true,"id":5434}],"doNotSerialize":["$$fire","$$toggle"],"doNotCopyProperties":["$$fire","$$toggle"],"eventHandler":{"__isSmartRef__":true,"id":5436},"derivationIds":[2588,"C96F474C-1F3A-4E42-844C-DD2EB76BDD7E","E36FA68D-6317-416A-99FA-0ED81E4193DA","06258075-AC5A-4CAB-A248-A66D3213816C","64801999-DFCE-4F54-974F-D68137E3178F","F7C108D2-C3FC-40BB-A7D2-C1E634F45107","096E44FC-0DC9-44C1-BFD5-17009B6482BC","00FFDED2-AB2D-4727-AC3D-2A3277BB0C11","D668A88D-7478-4356-845F-C91C0AA09852","73D645C4-502E-4CA1-BCFC-D7BF41AC2CC5","FD1ACFEB-984C-4BC5-BF01-DADB7D99571A","A1443BEE-BDD3-42D7-BBA9-ED94DAB58416","AB7854B1-85E4-43A2-97DA-DF3D89FB1F6E","C7B3A6EC-B093-44DF-83B6-CC7BD0529D7A","CAEAF7F9-DA32-4879-BB14-5B8DC852E81A","574C476E-4159-4297-9D08-303935E5FB76","DFC9F78E-2115-41C1-AC28-22F49623E8E0","25B278B5-069F-4376-9E5B-CC571CCDF39A","0EE2C9B7-91E5-4F83-977B-6C3AFF188ADF","7A983BB8-5129-4284-9C7F-605CB6F5DA30"],"_ClipMode":"visible","isPressed":false,"isToggled":false,"connections":{"__isSmartRef__":true,"id":5437},"moved":true,"prevScroll":[0,0],"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":5348},"_Rotation":0,"_Scale":0.7,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5441},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(158.0,6.0)","distanceToDragEvent":"lively.pt(35.0,-12.0)"},"5409":{"submorphs":[],"scripts":[],"id":"5AD0DD3D-2B2C-44E0-8AF9-311E4AD0C5A1","shape":{"__isSmartRef__":true,"id":5410},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":105,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":5408},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":5411}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":5413},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"44787449-DE07-40ED-B4D3-89A4A185AE29","F4BC3D0F-FF03-4EFC-B727-951442606730","277CDAEF-77E0-49F1-BD6F-1630D7ECC2E1","18C6D32F-6FC9-4BBD-9369-B33B5262D0BD","C47E37F8-5CF6-47A9-AFA1-A40A7AE84D49","263E0226-70CD-4FB4-8940-803DB41B14A4","BFDCA5F8-21BA-4D32-AB32-A2675F69B893","E05B45DC-5392-4CEE-8A8A-CDB9A6FEA02B","FC050265-3D45-4634-9BEC-325E0875CEF9","324C8FEE-5A64-42C3-8BD4-B19FDACFB256","0942A07F-7C9D-4202-A685-2680EB821A68","DA7A5615-6213-428E-BA6A-669FB082C23C","B227CE1E-6264-4FAB-85DB-C162F1003E9D","00345519-1674-4EB9-A990-0028D7D21A37","772EEB4C-729A-4A8E-BB81-7FB200FE81A8","7653280F-CD83-4BBF-9295-C6C867FC8A5A","A1F0F516-B851-4432-BD14-C8AD6250CCA0","E873A53D-3674-4F9F-9F1F-BE66111138DF","146D6FA1-67E9-4425-B1D6-DB0030692367"],"_MinTextWidth":105,"_MinTextHeight":null,"_WordBreak":"break-all","_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__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)","_TextColor":"Color.rgb(0,0,0)"},"5410":{"_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(70.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"5411":{"style":{"__isSmartRef__":true,"id":5412},"chunkOwner":{"__isSmartRef__":true,"id":5409},"_id":"_486","storedString":"enabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5412":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5413":{"morph":{"__isSmartRef__":true,"id":5409},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5414":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":5415},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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(70.0,22.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"5415":{"stops":[{"__isSmartRef__":true,"id":5416},{"__isSmartRef__":true,"id":5417},{"__isSmartRef__":true,"id":5418},{"__isSmartRef__":true,"id":5419}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"5416":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"5417":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"5418":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"5419":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"5420":{"stops":[{"__isSmartRef__":true,"id":5421},{"__isSmartRef__":true,"id":5422},{"__isSmartRef__":true,"id":5423},{"__isSmartRef__":true,"id":5424}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"5421":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"5422":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"5423":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"5424":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"5425":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"ToggleButton","comment":"A toggle button:\n- emits, toggle, enable, disable on pressed.\n- changes label","changes":[{"__isSmartRef__":true,"id":5426},{"__isSmartRef__":true,"id":5428},{"__isSmartRef__":true,"id":5430}],"lastModifiedDate":{"__isSmartRef__":true,"id":5432},"revisionOnLoad":200633,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5426":{"date":{"__isSmartRef__":true,"id":5427},"author":"jenslincke","message":"no comment","id":"497F3947-290E-4A97-A50D-3A5A7A186919"},"5427":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5428":{"date":{"__isSmartRef__":true,"id":5429},"author":"jenslincke","message":"no comment","id":"02AB5A6F-7748-4A48-8C36-D334F97FC321"},"5429":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5430":{"date":{"__isSmartRef__":true,"id":5431},"author":"jenslincke","message":"no comment","id":"7471CE07-F2C0-4149-9684-90E843DB8DCE"},"5431":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5432":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5433":{"sourceObj":{"__isSmartRef__":true,"id":5408},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5408},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5434":{"sourceObj":{"__isSmartRef__":true,"id":5408},"sourceAttrName":"toggle","targetObj":{"__isSmartRef__":true,"id":5348},"targetMethodName":"isActive","varMapping":{"__isSmartRef__":true,"id":5435},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5435":{"source":{"__isSmartRef__":true,"id":5408},"target":{"__isSmartRef__":true,"id":5348}},"5436":{"morph":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5437":{"enable":{"__isSmartRef__":true,"id":5438},"disable":{"__isSmartRef__":true,"id":5439},"toggle":{"__isSmartRef__":true,"id":5440}},"5438":{},"5439":{},"5440":{},"5441":{"onFire":{"__isSmartRef__":true,"id":5442},"reset":{"__isSmartRef__":true,"id":5446}},"5442":{"varMapping":{"__isSmartRef__":true,"id":5443},"source":"function onFire() {\n\t\n if (this.isToggled) {\n this.setLabel(\"enabled\")\n lively.bindings.signal(this, 'enable', true)\n lively.bindings.signal(this, 'toggle', true)\n } else {\n this.setLabel(\"disabled\")\n lively.bindings.signal(this, 'disable', true)\n lively.bindings.signal(this, 'toggle', false)\n }\n this.isToggled = !this.isToggled;\n}","funcProperties":{"__isSmartRef__":true,"id":5444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5443":{"this":{"__isSmartRef__":true,"id":5408}},"5444":{"timestamp":{"__isSmartRef__":true,"id":5445},"user":"jenslincke","tags":[]},"5445":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5446":{"varMapping":{"__isSmartRef__":true,"id":5447},"source":"function reset() {\n this.connections = {\"enable\": { }, \"disable\": { }, \"toggle\": { }}\n}","funcProperties":{"__isSmartRef__":true,"id":5448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5447":{"this":{"__isSmartRef__":true,"id":5408}},"5448":{"timestamp":{"__isSmartRef__":true,"id":5449},"user":"jenslincke","tags":[]},"5449":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5450":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_StrokeOpacity":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(209.0,42.1)","_BorderColor":"Color.rgb(172,172,172)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"5451":{"comment":"A morph hierarchy visualization with bundle view simulation of attribute connections.\nExample formats:\nHeading:\n #, ##, ##,\nLists:\n -, \nURLs:\n [Evaluation/Worlds]\nDoits:\n [PartsBin/Inputs/Button] \n","migrationLevel":4,"partName":"Formatter","changes":[{"__isSmartRef__":true,"id":5452},{"__isSmartRef__":true,"id":5454},{"__isSmartRef__":true,"id":5456},{"__isSmartRef__":true,"id":5458},{"__isSmartRef__":true,"id":5460},{"__isSmartRef__":true,"id":5462},{"__isSmartRef__":true,"id":5464},{"__isSmartRef__":true,"id":5466},{"__isSmartRef__":true,"id":5468},{"__isSmartRef__":true,"id":5470},{"__isSmartRef__":true,"id":5472},{"__isSmartRef__":true,"id":5474},{"__isSmartRef__":true,"id":5476},{"__isSmartRef__":true,"id":5478},{"__isSmartRef__":true,"id":5480},{"__isSmartRef__":true,"id":5482},{"__isSmartRef__":true,"id":5484},{"__isSmartRef__":true,"id":5486},{"__isSmartRef__":true,"id":5488},{"__isSmartRef__":true,"id":5490},{"__isSmartRef__":true,"id":5492},{"__isSmartRef__":true,"id":5494},{"__isSmartRef__":true,"id":5496},{"__isSmartRef__":true,"id":5498},{"__isSmartRef__":true,"id":5500},{"__isSmartRef__":true,"id":5502},{"__isSmartRef__":true,"id":5504},{"__isSmartRef__":true,"id":5506},{"__isSmartRef__":true,"id":5508},{"__isSmartRef__":true,"id":5510},{"__isSmartRef__":true,"id":5512},{"__isSmartRef__":true,"id":5514},{"__isSmartRef__":true,"id":5516},{"__isSmartRef__":true,"id":5518},{"__isSmartRef__":true,"id":5520},{"__isSmartRef__":true,"id":5522},{"__isSmartRef__":true,"id":5524},{"__isSmartRef__":true,"id":5526},{"__isSmartRef__":true,"id":5528},{"__isSmartRef__":true,"id":5530},{"__isSmartRef__":true,"id":5532},{"__isSmartRef__":true,"id":5534},{"__isSmartRef__":true,"id":5536},{"__isSmartRef__":true,"id":5538},{"__isSmartRef__":true,"id":5540},{"__isSmartRef__":true,"id":5542},{"__isSmartRef__":true,"id":5544},{"__isSmartRef__":true,"id":5546},{"__isSmartRef__":true,"id":5548},{"__isSmartRef__":true,"id":5550},{"__isSmartRef__":true,"id":5552},{"__isSmartRef__":true,"id":5554},{"__isSmartRef__":true,"id":5556},{"__isSmartRef__":true,"id":5558},{"__isSmartRef__":true,"id":5560},{"__isSmartRef__":true,"id":5562}],"lastModifiedDate":{"__isSmartRef__":true,"id":5564},"revisionOnLoad":204670,"partsSpaceName":"PartsBin/Jens/","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5452":{"date":{"__isSmartRef__":true,"id":5453},"author":"jenslincke","message":"no comment","id":"B2833A8B-AE64-4DBD-B301-CE1088DF777A"},"5453":{"isSerializedDate":true,"string":"Fri Jan 17 2014 08:12:41 GMT-0800 (PST)"},"5454":{"date":{"__isSmartRef__":true,"id":5455},"author":"jenslincke","message":"no comment","id":"FE4951E1-DBBD-45E1-8C8F-172CE4636B3C"},"5455":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5456":{"date":{"__isSmartRef__":true,"id":5457},"author":"jenslincke","message":"format citatated text in italics","id":"986705D7-3CD3-41C8-8AFF-36E9FE04A01A"},"5457":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5458":{"date":{"__isSmartRef__":true,"id":5459},"author":"jenslincke","message":"no comment","id":"911CF15E-6826-410E-AB61-CAE759E411AE"},"5459":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5460":{"date":{"__isSmartRef__":true,"id":5461},"author":"jenslincke","message":"no comment","id":"C07F91F1-FA58-4FAF-A7E8-DA04EB5D0F94"},"5461":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5462":{"date":{"__isSmartRef__":true,"id":5463},"author":"jenslincke","message":"no comment","id":"EDCC686C-126C-4523-8DC6-53817DD09673"},"5463":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5464":{"date":{"__isSmartRef__":true,"id":5465},"author":"jenslincke","message":"create page option, when following a link....","id":"003BCEA5-BE0C-4F90-A0A6-2FE8E3988057"},"5465":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5466":{"date":{"__isSmartRef__":true,"id":5467},"author":"jenslincke","message":"added creation of links to excerpts","id":"F7938E66-25E5-425F-9EEA-BC95819F3DD7"},"5467":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5468":{"date":{"__isSmartRef__":true,"id":5469},"author":"jenslincke","message":"no comment","id":"17C8A220-198C-4FC2-8CD2-2FFBFA193E3C"},"5469":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5470":{"date":{"__isSmartRef__":true,"id":5471},"author":"jenslincke","message":"no comment","id":"3CD68CC9-6FD9-412B-841C-3ECAE1BD12E6"},"5471":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5472":{"date":{"__isSmartRef__":true,"id":5473},"author":"jenslincke","message":"no comment","id":"FBBB3489-5BB0-4D6B-8C11-92D47A4D6C99"},"5473":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5474":{"date":{"__isSmartRef__":true,"id":5475},"author":"jenslincke","message":"no comment","id":"F71349C1-A74C-4AEF-B969-B6D3C92E07BE"},"5475":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5476":{"date":{"__isSmartRef__":true,"id":5477},"author":"jenslincke","message":"no comment","id":"EA270A92-A1A5-4FBA-89BB-D7BA1B6E49AD"},"5477":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5478":{"date":{"__isSmartRef__":true,"id":5479},"author":"jenslincke","message":"no comment","id":"3120B4F3-B8A2-4F2E-9793-547541BC4094"},"5479":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5480":{"date":{"__isSmartRef__":true,"id":5481},"author":"jenslincke","message":"layout","id":"34775C1C-7640-4A30-AD86-A5EB6945AA56"},"5481":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5482":{"date":{"__isSmartRef__":true,"id":5483},"author":"jenslincke","message":"no comment","id":"F9ED2AC4-98DC-4D7C-B9F5-01BED2619E8D"},"5483":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5484":{"date":{"__isSmartRef__":true,"id":5485},"author":"jenslincke","message":"no comment","id":"85068BB7-69E2-4265-A445-912DC98878A4"},"5485":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5486":{"date":{"__isSmartRef__":true,"id":5487},"author":"jenslincke","message":"no comment","id":"467FD050-EC26-4BA6-8480-17DB06F89C3D"},"5487":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5488":{"date":{"__isSmartRef__":true,"id":5489},"author":"jenslincke","message":"no comment","id":"874C31E7-EDDA-4583-8328-023A41910997"},"5489":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5490":{"date":{"__isSmartRef__":true,"id":5491},"author":"jenslincke","message":"more smoother delays....","id":"7B41794F-6219-42B1-9622-7A74AAB39DE7"},"5491":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5492":{"date":{"__isSmartRef__":true,"id":5493},"author":"jenslincke","message":"no comment","id":"69E07BCF-C0B2-42AF-883B-C3499482C513"},"5493":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5494":{"date":{"__isSmartRef__":true,"id":5495},"author":"jenslincke","message":"more hacks","id":"D627A82C-02CE-434C-BDE1-E2995108CDFB"},"5495":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5496":{"date":{"__isSmartRef__":true,"id":5497},"author":"jenslincke","message":"added fancy preview part and drag it out behavior!","id":"5DA6D4F8-847D-44FD-A1B2-2FE1607753A3"},"5497":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5498":{"date":{"__isSmartRef__":true,"id":5499},"author":"jenslincke","message":"removed logging","id":"B1ECB66A-62EB-4B40-AD28-4189AF04FAC2"},"5499":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5500":{"date":{"__isSmartRef__":true,"id":5501},"author":"jenslincke","message":"added ","id":"F15E32CE-83AA-44EB-8648-2930AFE1BD24"},"5501":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5502":{"date":{"__isSmartRef__":true,"id":5503},"author":"jenslincke","message":"adjust formatting for longer date print string under windows","id":"BCC989FA-3F5F-4958-AA2C-EC41D70E95EC"},"5503":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5504":{"date":{"__isSmartRef__":true,"id":5505},"author":"jenslincke","message":"no comment","id":"2DF7A585-CA70-4A3F-B651-3D3FAEC83992"},"5505":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5506":{"date":{"__isSmartRef__":true,"id":5507},"author":"jenslincke","message":"forgot new line","id":"3E39F5D1-9323-47D6-9D4B-A137B69CDEF9"},"5507":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5508":{"date":{"__isSmartRef__":true,"id":5509},"author":"jenslincke","message":"fixed hyperlink detection once and for all","id":"37234D72-3F50-4193-81EB-065791ADD196"},"5509":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5510":{"date":{"__isSmartRef__":true,"id":5511},"author":"jenslincke","message":"more url characters... should I look up what is actually allowed? No, I just update the regex every time!","id":"194E122C-7DFA-4AAE-A532-59107405FA48"},"5511":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5512":{"date":{"__isSmartRef__":true,"id":5513},"author":"jenslincke","message":"no comment","id":"E27B69E3-6E70-4599-9E87-2EDA8556BD02"},"5513":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5514":{"date":{"__isSmartRef__":true,"id":5515},"author":"jenslincke","message":"also create links for https:// ...","id":"563A198B-D7FD-49C6-B3D6-16B1C08B81E7"},"5515":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5516":{"date":{"__isSmartRef__":true,"id":5517},"author":"jenslincke","message":"fixed regex for hyperlinks","id":"C185A4DE-AC2A-4ECF-A031-1D9A88D6E5E5"},"5517":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5518":{"date":{"__isSmartRef__":true,"id":5519},"author":"jenslincke","message":"detect links...","id":"B23B1D23-E7B3-4D75-B45C-6DCA8A9B1082"},"5519":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5520":{"date":{"__isSmartRef__":true,"id":5521},"author":"jenslincke","message":"formatting does not include last newline","id":"3BB94A92-CE2F-4321-8555-9EFD675DD7C3"},"5521":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5522":{"date":{"__isSmartRef__":true,"id":5523},"author":"jenslincke","message":"some cleanup and removal of alert","id":"A60DACAC-F8A6-4086-BA0D-2C928481BA45"},"5523":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5524":{"date":{"__isSmartRef__":true,"id":5525},"author":"jenslincke","message":"no comment","id":"C79B033C-F702-4453-87D8-AA4393BC65D6"},"5525":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5526":{"date":{"__isSmartRef__":true,"id":5527},"author":"jenslincke","message":"no comment","id":"33475713-FEB1-4822-8736-773D8C69C299"},"5527":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5528":{"date":{"__isSmartRef__":true,"id":5529},"author":"jenslincke","message":"added hypertext recocnition for notes and excerpts","id":"F6C0EE1C-D944-4965-8DF3-38AE6BF9327E"},"5529":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5530":{"date":{"__isSmartRef__":true,"id":5531},"author":"jenslincke","message":"no comment","id":"676176DD-9D7D-4664-967C-DEAC93654136"},"5531":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5532":{"date":{"__isSmartRef__":true,"id":5533},"author":"jenslincke","message":"no comment","id":"B4AFCA0A-D381-4521-BA14-FA8B5B86C76A"},"5533":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5534":{"date":{"__isSmartRef__":true,"id":5535},"author":"jenslincke","message":"no comment","id":"70CE5D81-5B84-4B1D-9159-D13B85BAE00A"},"5535":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5536":{"date":{"__isSmartRef__":true,"id":5537},"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8"},"5537":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5538":{"date":{"__isSmartRef__":true,"id":5539},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"5539":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5540":{"date":{"__isSmartRef__":true,"id":5541},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"5541":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5542":{"date":{"__isSmartRef__":true,"id":5543},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5543":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5544":{"date":{"__isSmartRef__":true,"id":5545},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5545":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5546":{"date":{"__isSmartRef__":true,"id":5547},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5547":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5548":{"date":{"__isSmartRef__":true,"id":5549},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5549":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5550":{"date":{"__isSmartRef__":true,"id":5551},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"5551":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5552":{"date":{"__isSmartRef__":true,"id":5553},"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205"},"5553":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5554":{"date":{"__isSmartRef__":true,"id":5555},"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2"},"5555":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5556":{"date":{"__isSmartRef__":true,"id":5557},"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20"},"5557":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5558":{"date":{"__isSmartRef__":true,"id":5559},"author":"jenslincke","message":"added links to modules such as:\n \n module(\"lively.experimental.MorphAccessor\")\n","id":"3FB1C502-E4FA-4058-9190-8BC27D5F92E1"},"5559":{"isSerializedDate":true,"string":"Mon Jan 27 2014 05:49:52 GMT-0800 (PST)"},"5560":{"date":{"__isSmartRef__":true,"id":5561},"author":"jenslincke","message":"no comment","id":"9EC96A0F-CF43-4AB2-A6BB-E8D15050282A"},"5561":{"isSerializedDate":true,"string":"Tue Jan 28 2014 13:14:30 GMT-0800 (PST)"},"5562":{"date":{"__isSmartRef__":true,"id":5563},"author":"jenslincke","message":"no comment","id":"D3F2CCA3-EFB1-4ED8-A629-1DB74CB32DB7"},"5563":{"isSerializedDate":true,"string":"Tue Jan 28 2014 13:26:53 GMT-0800 (PST)"},"5564":{"isSerializedDate":true,"string":"Tue Jan 28 2014 13:25:49 GMT-0800 (PST)"},"5565":{"morph":{"__isSmartRef__":true,"id":5348},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5566":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5567}},"5567":{"test01IsMorph":{"__isSmartRef__":true,"id":5568}},"5568":{"varMapping":{"__isSmartRef__":true,"id":5569},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5569":{"this":{"__isSmartRef__":true,"id":5566}},"5570":{},"5571":{"ScriptAdded":{"__isSmartRef__":true,"id":5572}},"5572":{},"5573":{"sourceObj":{"__isSmartRef__":true,"id":5348},"sourceAttrName":"ScriptAdded","targetObj":{"__isSmartRef__":true,"id":5370},"targetMethodName":"updateText","varMapping":{"__isSmartRef__":true,"id":5574},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5574":{"source":{"__isSmartRef__":true,"id":5348},"target":{"__isSmartRef__":true,"id":5370}},"5575":{"onrestore":{"__isSmartRef__":true,"id":5576},"formatAllMorphsInMainColumn":{"__isSmartRef__":true,"id":5584},"formatTextMorph":{"__isSmartRef__":true,"id":5588},"addScript":{"__isSmartRef__":true,"id":5592},"emphasizeRegexFunc":{"__isSmartRef__":true,"id":5600},"reset":{"__isSmartRef__":true,"id":5604},"hidePart":{"__isSmartRef__":true,"id":5608},"showPart":{"__isSmartRef__":true,"id":5612},"followCitation":{"__isSmartRef__":true,"id":5616},"followURL":{"__isSmartRef__":true,"id":5620},"formatLinks":{"__isSmartRef__":true,"id":5624},"browseModule":{"__isSmartRef__":true,"id":5628}},"5576":{"varMapping":{"__isSmartRef__":true,"id":5577},"source":"function onrestore() {\n this.formatAllMorphsInMainColumn.bind(this).delay(1)\n}","funcProperties":{"__isSmartRef__":true,"id":5582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5577":{"this":{"__isSmartRef__":true,"id":5348},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5578}},"5578":{"$super":{"__isSmartRef__":true,"id":5579}},"5579":{"varMapping":{"__isSmartRef__":true,"id":5580},"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":5581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5580":{"obj":{"__isSmartRef__":true,"id":5348},"name":"onrestore"},"5581":{},"5582":{"timestamp":{"__isSmartRef__":true,"id":5583},"user":"jenslincke","tags":[]},"5583":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5584":{"varMapping":{"__isSmartRef__":true,"id":5585},"source":"function formatAllMorphsInMainColumn() {\n this.get('CheapWorldLayout').findMorphsToLayout().select(function(ea) {\n return ea.textString && ea.format // want's automatic formatting\n }).each(function(ea) {\n this.formatTextMorph(ea)\n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5585":{"this":{"__isSmartRef__":true,"id":5348}},"5586":{"timestamp":{"__isSmartRef__":true,"id":5587},"user":"jenslincke","tags":[]},"5587":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5588":{"varMapping":{"__isSmartRef__":true,"id":5589},"source":"function formatTextMorph(morph) {\n\n if (!this.isActive) return\n\n morph.emphasizeAll({color: Color.darkGray, fontSize: 12, uri: undefined, italics: 'normal'})\n morph.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformat) {\n ea.styleText({doit: ''})\n }\n })\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(# .*)/g, {fontSize: 20, color: CrayonColors.ocean})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(## .*)/g, {fontSize: 16, color: CrayonColors.ocean})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)([A-Z]+)\\:/g, {fontSize: 12, color: Color.black})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(\\*.*)/g, {fontSize: 12, color: Color.red.darker(1)})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(\\%.*)/g, {fontSize: 10, color: Color.green.darker(2)})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)([ \\t]*☐)/g, {color: Color.black})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)([ \\t]*✔)/g, {color: Color.green.darker(1)})\n this.emphasizeRegexFunc(morph, /(@done( ?\\([^)]+\\))?)/g, {fontSize: 8, color: Color.gray})\n this.emphasizeRegexFunc(morph, /(@time( ?\\([^)]+\\))?)/g, {fontSize: 8, color: CrayonColors.ocean})\n this.emphasizeRegexFunc(morph, /(@due( ?\\([^)]+\\))?)/g, {fontSize: 8, color: Color.red})\n\n this.emphasizeRegexFunc(morph, /(\"[^\"]*\")/g, {color: CrayonColors.tin, italics: 'italic'})\n\n\n this.formatLinks(morph)\n \n morph.emphasizeRegex(/(?:^|\\n)- .*/g, {color: Color.darkGray, fontSize: 12})\n morph.emphasizeRegex(/(?:^|\\n) - .*/g, {color: Color.darkGray, fontSize: 12})\n morph.emphasizeRegex(/(?:^|\\n) - .*/g, {color: Color.darkGray, fontSize: 10})\n morph.emphasizeRegex(/(?:^|\\n) - .*/g, {color: Color.darkGray, fontSize: 10})\n\n var self= this;\n morph.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformat && ea.style.doit.context && ea.style.doit.context.partName) {\n $(ea.chunkNode).mouseenter(function(data) {\n var partName = ea.style.doit.context.partName;\n var partSpace = ea.style.doit.context.partSpace\n self.lastTextChunk = ea;\n self.showPart.bind(self).curry(ea, partName, partSpace).delay(1)\n })\n $(ea.chunkNode).mouseout(function(data) {\n self.hidePartTarget = ea\n self.hidePart.bind(self).curry(ea).delay(1)\n })\n }\n })\n\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":5590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5589":{"this":{"__isSmartRef__":true,"id":5348}},"5590":{"timestamp":{"__isSmartRef__":true,"id":5591},"user":"jenslincke","tags":[]},"5591":{"isSerializedDate":true,"string":"Fri Jan 17 2014 08:12:30 GMT-0800 (PST)"},"5592":{"varMapping":{"__isSmartRef__":true,"id":5593},"source":"function addScript(s){\n\n var r = $super(s);\n try {\n // and now for some immediate feedback\n this.formatAllMorphsInMainColumn()\n } catch(e) {\n // ignore\n }\n lively.bindings.signal(this, 'ScriptAdded', s)\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":5598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5593":{"this":{"__isSmartRef__":true,"id":5348},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5594}},"5594":{"$super":{"__isSmartRef__":true,"id":5595}},"5595":{"varMapping":{"__isSmartRef__":true,"id":5596},"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":5597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5596":{"obj":{"__isSmartRef__":true,"id":5348},"name":"addScript"},"5597":{},"5598":{"timestamp":{"__isSmartRef__":true,"id":5599},"user":"jenslincke","tags":[]},"5599":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5600":{"varMapping":{"__isSmartRef__":true,"id":5601},"source":"function emphasizeRegexFunc(text, re, styleOrFunc, boundsArgs) {\n // special version of emphasizeRegex\n var m, counter = 0, string = text.textString;\n while ((m = re.exec(string))) {\n counter++; if (counter > 5000) throw new Error('emphasizeRegex endless loop?');\n var bounds\n if (!boundsArgs && m[1]) {\n var m1index = m[0].indexOf(m[1])\n bounds = [m1index, m[0].length - (m1index + m[1].length)]\n // alert(\"bounds \" + bounds + \" \" + m[0])\n } else {\n bounds = boundsArgs || [0,0]\n }\n var from = m.index, to = m.index + m[0].length,\n chunks = text.sliceTextChunks(from + bounds[0], to + bounds[1]);\n for (var i = 0; i < chunks.length; i++) {\n var style = Object.isFunction(styleOrFunc) ? styleOrFunc(m, chunks) : styleOrFunc;\n chunks[i].styleText(style);\n }\n }\n text.coalesceChunks();\n}","funcProperties":{"__isSmartRef__":true,"id":5602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5601":{"this":{"__isSmartRef__":true,"id":5348}},"5602":{"timestamp":{"__isSmartRef__":true,"id":5603},"user":"jenslincke","tags":[]},"5603":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5604":{"varMapping":{"__isSmartRef__":true,"id":5605},"source":"function reset() {\n this.connections = {ScriptAdded: {}}\n}","funcProperties":{"__isSmartRef__":true,"id":5606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5605":{"this":{"__isSmartRef__":true,"id":5348}},"5606":{"timestamp":{"__isSmartRef__":true,"id":5607},"user":"jenslincke","tags":[]},"5607":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5608":{"varMapping":{"__isSmartRef__":true,"id":5609},"source":"function hidePart(textChunk) {\n\n if (this.lastTextChunk !== textChunk) return;\n this.lastTextChunk = null;\n delete this.hidePartTarget\n\n if (!this.showsPart) return;\n this.showsPart.remove()\n delete this.showsPart\n\n}","funcProperties":{"__isSmartRef__":true,"id":5610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5609":{"this":{"__isSmartRef__":true,"id":5348}},"5610":{"timestamp":{"__isSmartRef__":true,"id":5611},"user":"jenslincke","tags":[]},"5611":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5612":{"varMapping":{"__isSmartRef__":true,"id":5613},"source":"function showPart(textChunk, partName, partSpace) {\n // alert(\"show \" + partName)\n if (this.lastTextChunk !== textChunk) return;\n\n if (this.hidePartTarget === textChunk) return; // don't bother with showing, we are hiding already\n if (this.showsPart) {\n this.showsPart.remove()\n };\n var container = lively.PartsBin.getPartItem(partName, partSpace).asPartsBinItem()\n container.isEpiMorph = true;\n container.openInWorld();\n container.setPosition(textChunk.bounds().bottomLeft())\n\n this.showsPart = container\n}","funcProperties":{"__isSmartRef__":true,"id":5614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5613":{"this":{"__isSmartRef__":true,"id":5348}},"5614":{"timestamp":{"__isSmartRef__":true,"id":5615},"user":"jenslincke","tags":[]},"5615":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5616":{"varMapping":{"__isSmartRef__":true,"id":5617},"source":"function followCitation(key) {\n var template = URL.root.withFilename(\"users/jenslincke/thesis/excerpts/template.xhtml\")\n var uri = URL.root.withFilename(\"users/jenslincke/thesis/excerpts/\" + key + \".xhtml\")\n if (uri.asWebResource().exists())\n window.open(uri)\n else {\n $world.confirm(\"no excerpt found for: \" + key +\". Create one?\", function(bool) {\n if (bool) {\n var content = template.asWebResource().get().content\n uri.asWebResource().put(content)\n window.open(uri)\n }\n })\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5617":{"this":{"__isSmartRef__":true,"id":5348}},"5618":{"timestamp":{"__isSmartRef__":true,"id":5619},"user":"jenslincke","tags":[]},"5619":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5620":{"varMapping":{"__isSmartRef__":true,"id":5621},"source":"function followURL(uri) {\n uri = new URL(uri)\n var template = uri.withFilename(\"template.xhtml\")\n if (uri.asWebResource().exists())\n window.open(uri)\n else {\n $world.confirm(\"\" + uri.filename() +\" does not exist. Create world?\", function(bool) {\n if (bool) {\n var content = template.asWebResource().get().content\n uri.asWebResource().put(content)\n window.open(uri)\n }\n })\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5621":{"this":{"__isSmartRef__":true,"id":5348}},"5622":{"timestamp":{"__isSmartRef__":true,"id":5623},"user":"jenslincke","tags":[]},"5623":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"5624":{"varMapping":{"__isSmartRef__":true,"id":5625},"source":"function formatLinks(morph) {\n // m.emphasizeRegex(/(?:^|\\n) [^*]*/g, {fontSize: 12, fontFamily: 'Courier'})\n this.emphasizeRegexFunc(morph, /\\[([a-zA-Z][a-zA-Z\\/.\\-0-9_]+?)\\]/g, function(m) {\n var uri;\n if (m[1].match(/^(documentation)|(projects)|(demos)|(draft)|(users)/)) {\n uri = URL.root.withFilename(\"\" + m[1] + \".xhtml\")};\n\n if (m[1].match(/^(notes)|(WriteFirst)|(Evaluation)/)) {\n uri = URL.root.withFilename(\"users/jenslincke/thesis/\" + m[1] + \".xhtml\")\n return {doit: {\n isAutoformat: true, \n code: 'this.followURL(\"'+ uri+'\")', \n context: this}}\n\n };\n\n if (m[1].match(/^[A-Z][a-z]+[0-9][0-9][0-9][0-9][A-Z]+/)) {\n return {doit: {\n isAutoformat: true, \n code: 'this.followCitation(\"'+ m[1]+'\")', \n context: this}}\n };\n // alert(\"found \" + m[1] + \" uri\" + uri)\n return { uri: uri}\n }.bind(this), [1,-1]);\n\n // format Module references\n var addModuleLink = function(m) {\n return { doit: {\n isAutoformat: true,\n code: 'this.browseModule(\"'+ m[1]+'\")',\n context: this}}\n }.bind(this)\n this.emphasizeRegexFunc(morph, /module\\(\"([^\"]+)\"\\)/g , addModuleLink,[8,-2]);\n this.emphasizeRegexFunc(morph, /module\\('([^']+)'\\)/g , addModuleLink,[8,-2]);\n\n\n\n // format Module references\n this.emphasizeRegexFunc(morph, /module\\(\"([^\"]+)\"\\)/g , function(m) {\n return { doit: {\n isAutoformat: true,\n code: 'this.browseModule(\"'+ m[1]+'\")',\n context: this}}\n }.bind(this),[8,-2]);\n\n\n // format hyperlinks\n this.emphasizeRegexFunc(morph, /\\[?(https?:\\/\\/[^ \\n\\]]*)\\]?/g, function(m) {\n var uri;\n return { uri: m[1]}\n }, [0,0])\n}","funcProperties":{"__isSmartRef__":true,"id":5626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5625":{"this":{"__isSmartRef__":true,"id":5348}},"5626":{"timestamp":{"__isSmartRef__":true,"id":5627},"user":"jenslincke","tags":[]},"5627":{"isSerializedDate":true,"string":"Tue Jan 28 2014 13:26:26 GMT-0800 (PST)"},"5628":{"varMapping":{"__isSmartRef__":true,"id":5629},"source":"function browseModule(str) {\n // this.browseModule(\"lively.experimental.MorphAccessor\")\n var url = new URL(module(str).uri())\n var moduleNode = lively.ide.startSourceControl().addModule(url.relativePathFrom(URL.codeBase))\n moduleNode.ast().browseIt()\n}","funcProperties":{"__isSmartRef__":true,"id":5630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5629":{"this":{"__isSmartRef__":true,"id":5348}},"5630":{"timestamp":{"__isSmartRef__":true,"id":5631},"user":"jenslincke","tags":[]},"5631":{"isSerializedDate":true,"string":"Mon Jan 27 2014 05:42:59 GMT-0800 (PST)"},"5632":{"submorphs":[{"__isSmartRef__":true,"id":5633},{"__isSmartRef__":true,"id":5680},{"__isSmartRef__":true,"id":5774},{"__isSmartRef__":true,"id":5778},{"__isSmartRef__":true,"id":5782}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5786},"derivationIds":[null,"86D29A35-1063-47AB-99AA-AA4A7E61A693","0AE61595-B0EC-41BB-B6DC-E59AE85BCE7A","D140973A-3EA2-41B5-B2D0-B2DE86F64D5C","7B559CB3-DB91-4027-90FB-7EB6D0A40AA7","7B0FDE0B-9571-407B-BB82-631FE14872C2","D71EA0A3-5662-40E0-A49F-122905E5ABDD","FC0A2F61-88F7-4823-AF53-40400FC729FD","08321F12-C671-4D4E-96F2-3C6F1045686F","AE2DFAC4-D869-42AC-B840-3CF34F82D3B1","04D7B8FC-588F-45F5-904E-C1C7AFCEEB69","3C73C8CD-F5DD-4EFF-B41F-5282FACFAC2B","77F84A78-5D91-44F8-AB44-50882B98FE57"],"id":"F0E45DCB-7D16-45BE-8790-4B01C2A76D12","eventHandler":{"__isSmartRef__":true,"id":5787},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":5788},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":5633},"reframeHandle":{"__isSmartRef__":true,"id":5774},"titleBar":{"__isSmartRef__":true,"id":5680},"collapsedTransform":{"__isSmartRef__":true,"id":5789},"expandedTransform":{"__isSmartRef__":true,"id":5790},"ignoreEventsOnExpand":false,"highlighted":true,"isBeingDragged":false,"showsHalos":false,"name":"SystemConsole","partsBinMetaInfo":{"__isSmartRef__":true,"id":5791},"moved":true,"isCopyMorphRef":true,"morphRefId":1,"#startLetters":"","helperMorphs":[{"__isSmartRef__":true,"id":5807}],"state":"expanded","cameForward":false,"rightReframeHandle":{"__isSmartRef__":true,"id":5782},"bottomReframeHandle":{"__isSmartRef__":true,"id":5778},"_Rotation":0,"_Scale":1.01,"_StyleClassNames":["Morph","Window","highlighted"],"owner":{"__isSmartRef__":true,"id":0},"prevScroll":[0,0],"__serializedExpressions__":["_Position","contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5813},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1896.4,552.6)","contentOffset":"lively.pt(0.0,21.0)","collapsedExtent":"lively.pt(699.0,22.0)","expandedExtent":"lively.pt(699.0,221.0)","prevDragPos":"lively.pt(2670.5,577.5)","expandedPosition":"lively.pt(33.0,437.0)","collapsedPosition":"lively.pt(33.0,437.0)","distanceToDragEvent":"lively.pt(434.8,-17.4)"},"5633":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5634},"derivationIds":[null,"4E5E2B48-0B47-4B2D-BC78-14E1BDBE0B57","1E8B0FF2-79E2-4C10-A156-4155F7653A1C","39B8534E-7236-4E9B-AE30-0E6BCBC6DF26","630E5BE3-7EEC-4C88-8285-FBC45C9F2DA9","E6CFAFE1-8BD8-4E27-AC2F-FEDD4D886BC5","DCB8C4E7-E368-477A-BAF9-A77655B6DD9C","4BD11753-BB6E-4350-804D-750082EC3AE8","D144FB1F-8A89-40DB-AABF-E3832EDD69CE","9569A8F7-B341-472E-A518-9F159CD2C1E9","E7DF3E53-4FF8-4094-AE45-8F3A24E75704","1DF9E6B2-9375-4C62-9274-CE4140C53D76","A9022E8C-DA20-409D-AA22-8EB5606FBCA4"],"id":"D1B314FE-A23F-4366-A343-F0670430FD21","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5635}],"eventHandler":{"__isSmartRef__":true,"id":5637},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Arial, sans-serif","_FontSize":9,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5632},"_MaxTextWidth":631,"_MinTextWidth":631,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":5638},"syntaxHighlightingWhileTyping":false,"doNotSerialize":["undoState"],"lastSyntaxHighlightTime":1337722418791,"accessibleInInactiveWindow":true,"charsReplaced":"","lastFindLoc":129,"isBeingDragged":false,"showsHalos":false,"parseErrors":null,"name":"SystemConsoleMain","#startLetters":"cl","_WordBreak":"break-all","prevScroll":[0,0],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5639},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,21.0)"},"5634":{"_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(1068.8,388.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"5635":{"style":{"__isSmartRef__":true,"id":5636},"chunkOwner":{"__isSmartRef__":true,"id":5633},"_id":"_10","storedString":"\n10:25:36 cannot deal with fill [object Object]\n10:25:43 The world is now completely loaded.\n10:25:43 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_5 loaded in 10756 ms\n10:25:45 INSTALL D3 Error handler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5636":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5637":{"morph":{"__isSmartRef__":true,"id":5633},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5638":{"resizeWidth":true,"resizeHeight":true},"5639":{"onrestore":{"__isSmartRef__":true,"id":5640},"reset":{"__isSmartRef__":true,"id":5648},"clear":{"__isSmartRef__":true,"id":5652},"log":{"__isSmartRef__":true,"id":5656},"addLine":{"__isSmartRef__":true,"id":5660},"error":{"__isSmartRef__":true,"id":5664},"warn":{"__isSmartRef__":true,"id":5668},"onLoadFromPartsBin":{"__isSmartRef__":true,"id":5672}},"5640":{"varMapping":{"__isSmartRef__":true,"id":5641},"source":"function onrestore() {\n this.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":5646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5641":{"this":{"__isSmartRef__":true,"id":5633},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5642}},"5642":{"$super":{"__isSmartRef__":true,"id":5643}},"5643":{"varMapping":{"__isSmartRef__":true,"id":5644},"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":5645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5644":{"obj":{"__isSmartRef__":true,"id":5633},"name":"onrestore"},"5645":{},"5646":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5647}},"5647":{"isSerializedDate":true,"string":"Wed May 23 2012 13:52:02 GMT-0700 (PDT)"},"5648":{"varMapping":{"__isSmartRef__":true,"id":5649},"source":"function reset() {\n this.clear();\n if (!window.console.consumers.include(this)) {\n window.console.addConsumer(this);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5649":{"this":{"__isSmartRef__":true,"id":5633}},"5650":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5651}},"5651":{"isSerializedDate":true,"string":"Tue May 22 2012 14:34:39 GMT-0700 (PDT)"},"5652":{"varMapping":{"__isSmartRef__":true,"id":5653},"source":"function clear() {\n this.setTextString('');\n}","funcProperties":{"__isSmartRef__":true,"id":5654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5653":{"this":{"__isSmartRef__":true,"id":5633}},"5654":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5655}},"5655":{"isSerializedDate":true,"string":"Tue May 22 2012 15:42:20 GMT-0700 (PDT)"},"5656":{"varMapping":{"__isSmartRef__":true,"id":5657},"source":"function log(msg) {\n this.addLine(Strings.format.call(null, msg, Array.from(arguments).splice(1)), {color: Color.web.darkgray.darker()});\n}","funcProperties":{"__isSmartRef__":true,"id":5658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5657":{"this":{"__isSmartRef__":true,"id":5633}},"5658":{"user":"ohshima","tags":[],"timestamp":{"__isSmartRef__":true,"id":5659}},"5659":{"isSerializedDate":true,"string":"Wed Jul 10 2013 10:33:41 GMT-0700 (PDT)"},"5660":{"varMapping":{"__isSmartRef__":true,"id":5661},"source":"function addLine(msg, style) {\n var chunk = this.createChunk();\n chunk.textString = \"\\n\" + new Date().format(\"HH:MM:ss\") + \" \" + msg;\n chunk.styleText(style);\n if (this.getScrollableNode()) this.scrollToBottom();\n}","funcProperties":{"__isSmartRef__":true,"id":5662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5661":{"this":{"__isSmartRef__":true,"id":5633}},"5662":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5663}},"5663":{"isSerializedDate":true,"string":"Tue May 22 2012 15:16:30 GMT-0700 (PDT)"},"5664":{"varMapping":{"__isSmartRef__":true,"id":5665},"source":"function error(msg) {\n this.addLine(msg, {color: Color.red});\n}","funcProperties":{"__isSmartRef__":true,"id":5666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5665":{"this":{"__isSmartRef__":true,"id":5633}},"5666":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5667}},"5667":{"isSerializedDate":true,"string":"Tue May 22 2012 15:21:44 GMT-0700 (PDT)"},"5668":{"varMapping":{"__isSmartRef__":true,"id":5669},"source":"function warn(msg) {\n this.addLine(Strings.format.call(null, msg, Array.from(arguments).splice(1)), {color: Color.yellow.darker()});\n}","funcProperties":{"__isSmartRef__":true,"id":5670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5669":{"this":{"__isSmartRef__":true,"id":5633}},"5670":{"user":"ohshima","tags":[],"timestamp":{"__isSmartRef__":true,"id":5671}},"5671":{"isSerializedDate":true,"string":"Fri Jul 12 2013 10:13:45 GMT-0700 (PDT)"},"5672":{"varMapping":{"__isSmartRef__":true,"id":5673},"source":"function onLoadFromPartsBin() {\n $super();\n this.reset();\n console.log('System console started successfully.');\n}","funcProperties":{"__isSmartRef__":true,"id":5678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5673":{"this":{"__isSmartRef__":true,"id":5633},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5674}},"5674":{"$super":{"__isSmartRef__":true,"id":5675}},"5675":{"varMapping":{"__isSmartRef__":true,"id":5676},"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":5677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5676":{"obj":{"__isSmartRef__":true,"id":5633},"name":"onLoadFromPartsBin"},"5677":{},"5678":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5679}},"5679":{"isSerializedDate":true,"string":"Tue May 22 2012 16:03:15 GMT-0700 (PDT)"},"5680":{"submorphs":[{"__isSmartRef__":true,"id":5681},{"__isSmartRef__":true,"id":5687},{"__isSmartRef__":true,"id":5700},{"__isSmartRef__":true,"id":5712},{"__isSmartRef__":true,"id":5725},{"__isSmartRef__":true,"id":5759}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5771},"eventHandler":{"__isSmartRef__":true,"id":5772},"_ClipMode":"visible","derivationIds":["76F18DA5-520E-44CA-ABC5-02415DC7B326","8A48DB59-5DA2-4F2F-9F16-DE53DB8DD581","6DF67AA9-B78F-433F-9651-02DF0FF3165B"],"id":"8C3EBA52-93AA-4A7E-BC3B-A66229B43BB2","__layered_droppingEnabled__":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5773},"windowMorph":{"__isSmartRef__":true,"id":5632},"label":{"__isSmartRef__":true,"id":5681},"closeButton":{"__isSmartRef__":true,"id":5687},"menuButton":{"__isSmartRef__":true,"id":5700},"collapseButton":{"__isSmartRef__":true,"id":5712},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":5632},"showsHalos":false,"prevScroll":[0,0],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"5681":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5682},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5683}],"eventHandler":{"__isSmartRef__":true,"id":5685},"_ClipMode":"hidden","derivationIds":["8B8F92D2-D177-498B-A2BA-04033A58B013","3D22A7E8-70EF-4099-85DA-AD0C04F70736","2CAF3618-23FD-4541-BEB8-D1C8BD9170A9"],"id":"D4A7D71B-B65C-4648-942C-0C7E91A17A31","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"layout":{"__isSmartRef__":true,"id":5686},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5680},"_StyleClassNames":["window-title"],"_TextStylingMode":true,"showsHalos":false,"prevScroll":[0,0],"__serializedExpressions__":["_TextColor","_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(20.0,3.0)","distanceToDragEvent":"lively.pt(404.6,-16.5)"},"5682":{"_BorderWidth":0,"_Fill":null,"__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(1009.8,18.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5683":{"style":{"__isSmartRef__":true,"id":5684},"chunkOwner":{"__isSmartRef__":true,"id":5681},"_id":"_19","storedString":"System Console","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5684":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5685":{"morph":{"__isSmartRef__":true,"id":5681},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5686":{"resizeWidth":true},"5687":{"submorphs":[{"__isSmartRef__":true,"id":5688}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5693},"eventHandler":{"__isSmartRef__":true,"id":5694},"_ClipMode":"visible","derivationIds":["A65991BD-FDAF-4014-875B-33E25997465F","48A886A3-D628-424E-86DD-C039A29F6D2B","A70332B7-A207-4016-8278-380069ADF08E"],"id":"B369EF14-79F8-45DB-BBD5-32B5BF60C223","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":5688},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":5680},"layout":{"__isSmartRef__":true,"id":5695},"_StyleClassNames":["close"],"attributeConnections":[{"__isSmartRef__":true,"id":5696},{"__isSmartRef__":true,"id":5698}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1048.8,3.0)"},"5688":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5689},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5690}],"eventHandler":{"__isSmartRef__":true,"id":5692},"_ClipMode":"hidden","derivationIds":["F8234BB5-3D02-4DA3-B2EE-717595293C01","9D26EC30-F95F-4193-BA91-2354D97B0E78","881D3F46-91C3-4215-8B79-B3E75895EB6C"],"id":"E2DAD389-9F4E-4E2B-BE16-19F6BE754136","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5687},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,-1.0)"},"5689":{"_BorderWidth":0,"_Fill":null,"__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(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5690":{"style":{"__isSmartRef__":true,"id":5691},"chunkOwner":{"__isSmartRef__":true,"id":5688},"_id":"_5187","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5691":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5692":{"morph":{"__isSmartRef__":true,"id":5688},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5693":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"5694":{"morph":{"__isSmartRef__":true,"id":5687},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5695":{"moveHorizontal":true},"5696":{"sourceObj":{"__isSmartRef__":true,"id":5687},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5632},"targetMethodName":"getCloseHelp","varMapping":{"__isSmartRef__":true,"id":5697},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5697":{"source":{"__isSmartRef__":true,"id":5687},"target":{"__isSmartRef__":true,"id":5632}},"5698":{"sourceObj":{"__isSmartRef__":true,"id":5687},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5632},"targetMethodName":"initiateShutdown","varMapping":{"__isSmartRef__":true,"id":5699},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5699":{"source":{"__isSmartRef__":true,"id":5687},"target":{"__isSmartRef__":true,"id":5632}},"5700":{"submorphs":[{"__isSmartRef__":true,"id":5701}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5706},"eventHandler":{"__isSmartRef__":true,"id":5707},"_ClipMode":"visible","derivationIds":["BCB64BF8-8AD7-4420-88F2-ADD56F1A6D42","72111849-8584-4984-A9DB-6E8D0621A92C","02056E2D-F38D-4775-A484-919892D64AAE"],"id":"D85C0565-1A69-443E-83E3-68108D517B75","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":5701},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":5680},"attributeConnections":[{"__isSmartRef__":true,"id":5708},{"__isSmartRef__":true,"id":5710}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"_StyleClassNames":["Morph","Button","WindowControl"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"5701":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5702},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5703}],"eventHandler":{"__isSmartRef__":true,"id":5705},"_ClipMode":"hidden","derivationIds":["A7A00620-E8E9-4E26-9177-A1E3B37D56F1","EBF5964E-10CC-45A5-931E-F7A3588BE93C","4F16C414-D8F6-4B9F-B802-94D50873EE38"],"id":"0311749C-2229-4374-9580-AD277C6A479F","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5700},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,0.0)"},"5702":{"_BorderWidth":0,"_Fill":null,"__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(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5703":{"style":{"__isSmartRef__":true,"id":5704},"chunkOwner":{"__isSmartRef__":true,"id":5701},"_id":"_5189","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5704":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5705":{"morph":{"__isSmartRef__":true,"id":5701},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5706":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"5707":{"morph":{"__isSmartRef__":true,"id":5700},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5708":{"sourceObj":{"__isSmartRef__":true,"id":5700},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5632},"targetMethodName":"getMenuHelp","varMapping":{"__isSmartRef__":true,"id":5709},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5709":{"source":{"__isSmartRef__":true,"id":5700},"target":{"__isSmartRef__":true,"id":5632}},"5710":{"sourceObj":{"__isSmartRef__":true,"id":5700},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5632},"targetMethodName":"showTargetMorphMenu","varMapping":{"__isSmartRef__":true,"id":5711},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5711":{"source":{"__isSmartRef__":true,"id":5700},"target":{"__isSmartRef__":true,"id":5632}},"5712":{"submorphs":[{"__isSmartRef__":true,"id":5713}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5718},"eventHandler":{"__isSmartRef__":true,"id":5719},"_ClipMode":"visible","derivationIds":["502DA455-175B-435A-B6BC-DEE9945D31FE","A3AFE353-A017-4063-9D3C-45D58A894D38","4D94D3DE-6CA5-4E84-A0BC-35F4FF377237"],"id":"A87A3651-2B1D-4414-B28A-45F68F948669","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":5713},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":5680},"layout":{"__isSmartRef__":true,"id":5720},"attributeConnections":[{"__isSmartRef__":true,"id":5721},{"__isSmartRef__":true,"id":5723}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1029.8,3.0)"},"5713":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5714},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5715}],"eventHandler":{"__isSmartRef__":true,"id":5717},"_ClipMode":"hidden","derivationIds":["3C05BF51-B056-4FE7-BC27-DFCFD0C11F8A","39A96408-DF86-4693-AFFF-3076947ED762","ECB59632-BCC7-4B24-8976-6DFB616D0EF3"],"id":"C9AEA3BE-43FA-4583-8E38-A88ECF0D74FA","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5712},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,1.0)"},"5714":{"_BorderWidth":0,"_Fill":null,"__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(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5715":{"style":{"__isSmartRef__":true,"id":5716},"chunkOwner":{"__isSmartRef__":true,"id":5713},"_id":"_5191","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5716":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5717":{"morph":{"__isSmartRef__":true,"id":5713},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5718":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__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(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"5719":{"morph":{"__isSmartRef__":true,"id":5712},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5720":{"moveHorizontal":true},"5721":{"sourceObj":{"__isSmartRef__":true,"id":5712},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5632},"targetMethodName":"getCollapseHelp","varMapping":{"__isSmartRef__":true,"id":5722},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5722":{"source":{"__isSmartRef__":true,"id":5712},"target":{"__isSmartRef__":true,"id":5632}},"5723":{"sourceObj":{"__isSmartRef__":true,"id":5712},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5632},"targetMethodName":"toggleCollapse","varMapping":{"__isSmartRef__":true,"id":5724},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5724":{"source":{"__isSmartRef__":true,"id":5712},"target":{"__isSmartRef__":true,"id":5632}},"5725":{"submorphs":[{"__isSmartRef__":true,"id":5726}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5731},"derivationIds":[null,"8DBAB1EA-9B8A-429A-9AF9-53F09F775741","74172FB9-0F53-4367-B358-67ED54AA3EC4","B5F8DB94-C434-4DE1-A232-C6CC4860A0AC","F88B9127-BBF9-4A6E-BE6F-0A8AA54A0346","B41404F8-6498-4AB6-8B80-5963FB1DA5FE","C6C74662-FB39-49DA-BB00-335D30DD7FAA","9781481D-52F0-485B-B3AB-30CC23A5D4B7","BEFC68A4-FE00-40AD-9E05-7AEA4E488638","3C190310-77A0-4EE4-BE1D-4DE1878CC35C","1D80DDED-264F-4D04-AB68-BAC5AA5B72AF","D75FC5A9-6E85-4A26-A825-3CF1BEB37D5B","43C1750A-39FC-43D9-8DCC-6C4690345487"],"id":"B4CA84D3-9E8B-4C1F-9382-D5DD89A4FF5E","eventHandler":{"__isSmartRef__":true,"id":5732},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":5726},"_ToolTip":"toggles display of global status messages","extraButton":true,"active":true,"attributeConnections":[{"__isSmartRef__":true,"id":5733}],"doNotSerialize":["layer"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"name":"ErrorHandlerButton","layout":{"__isSmartRef__":true,"id":5735},"orderInTaskBar":3,"owner":{"__isSmartRef__":true,"id":5680},"#startLetters":"get","isPressed":false,"_Rotation":0,"_Scale":0.9900990099009901,"lighterFill":{"__isSmartRef__":true,"id":5736},"normalFillInactive":{"__isSmartRef__":true,"id":5737},"__serializedExpressions__":["_Position","distanceToDragEvent","normalFill"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5738},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(40.0,1.1)","distanceToDragEvent":"lively.pt(34.3,-13.6)","normalFill":"Color.rgb(0,204,0)"},"5726":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5727},"derivationIds":[null,"4D9DA40E-38E0-46B6-9BCD-FBFFFABF3F81","66ADC9F1-A8EA-4E50-9D41-C78C31582EE0","EB0C121E-EFED-4AA5-BC65-35B5BDE8389A","8EE13917-775C-4E2A-92DC-0D65D8634994","10705F98-8DA6-4AD6-A427-4DF70E03ABE9","9E607BD3-84F7-40C7-A0FB-9D3A8F06A8D0","666E1259-9A56-41E9-91AA-63690F56662A","44761EFD-0A94-4170-9B86-55D968D54317","376E992E-7618-4A15-8EB8-3D65D63E4839","EBFFC21E-3C15-4914-8F80-45CC095A96D0","DB635E2C-E17A-48AE-A07F-06FB8A706ED6","40542DC7-DD79-4E93-B421-3E20D7A80899"],"id":"E75F5935-16BC-46CF-8548-B9F0751A78D1","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5728}],"eventHandler":{"__isSmartRef__":true,"id":5730},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5725},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"_MaxTextWidth":20,"_MinTextWidth":20,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","doNotSerialize":["undoState"],"_WordBreak":"break-all","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"5727":{"_BorderWidth":0,"_Fill":null,"__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(20.0,18.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5728":{"style":{"__isSmartRef__":true,"id":5729},"chunkOwner":{"__isSmartRef__":true,"id":5726},"storedString":"G","_id":"_4907","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5729":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5730":{"morph":{"__isSmartRef__":true,"id":5726},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5731":{"_BorderWidth":1,"_BorderRadius":5,"_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(20.0,18.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)","_Fill":"Color.rgb(0,204,0)"},"5732":{"morph":{"__isSmartRef__":true,"id":5725},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5733":{"sourceObj":{"__isSmartRef__":true,"id":5725},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5725},"targetMethodName":"onFire","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5734},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5734":{"source":{"__isSmartRef__":true,"id":5725},"target":{"__isSmartRef__":true,"id":5725}},"5735":{"resizeWidth":false,"resizeHeight":false,"moveHorizontal":false},"5736":{},"5737":{},"5738":{"onrestore":{"__isSmartRef__":true,"id":5739},"reset":{"__isSmartRef__":true,"id":5747},"onFire":{"__isSmartRef__":true,"id":5751},"createLayer":{"__isSmartRef__":true,"id":5755}},"5739":{"varMapping":{"__isSmartRef__":true,"id":5740},"source":"function onrestore() {\n this.reset();\n this.onFire();\n}","funcProperties":{"__isSmartRef__":true,"id":5745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5740":{"this":{"__isSmartRef__":true,"id":5725},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5741}},"5741":{"$super":{"__isSmartRef__":true,"id":5742}},"5742":{"varMapping":{"__isSmartRef__":true,"id":5743},"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":5744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5743":{"obj":{"__isSmartRef__":true,"id":5725},"name":"onrestore"},"5744":{},"5745":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5746}},"5746":{"isSerializedDate":true,"string":"Thu May 24 2012 10:08:39 GMT-0700 (PDT)"},"5747":{"varMapping":{"__isSmartRef__":true,"id":5748},"source":"function reset() {\n if (this.layer) this.layer.beNotGlobal();\n this.layer = null;\n this.setFill(this.normalFill = this.owner.menuButton.normalFill);\n this.doNotSerialize = ['layer'];\n}","funcProperties":{"__isSmartRef__":true,"id":5749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5748":{"this":{"__isSmartRef__":true,"id":5725}},"5749":{"user":"robertkrahn","tags":[],"timestamp":{"__isSmartRef__":true,"id":5750}},"5750":{"isSerializedDate":true,"string":"Wed Jun 06 2012 06:58:21 GMT-0700 (PDT)"},"5751":{"varMapping":{"__isSmartRef__":true,"id":5752},"source":"function onFire() {\n if (!this.layer) this.createLayer();\n if (this.layer.isGlobal()) {\n this.layer.beNotGlobal();\n } else {\n this.layer.beGlobal();\n }\n this.setFill(this.normalFill = (this.layer.isGlobal() ?\n Color.green : this.owner.menuButton.normalFill));\n}","funcProperties":{"__isSmartRef__":true,"id":5753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5752":{"this":{"__isSmartRef__":true,"id":5725}},"5753":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5754}},"5754":{"isSerializedDate":true,"string":"Tue May 22 2012 17:08:29 GMT-0700 (PDT)"},"5755":{"varMapping":{"__isSmartRef__":true,"id":5756},"source":"function createLayer() {\n var main = this.get(\"SystemConsoleMain\");\n this.layer = cop.createLayer(\"GlobalStatus\").refineClass(lively.morphic.World, {\n setStatusMessage: function (msg, color) {\n main.addLine(msg, {color: color});\n }\n });\n}","funcProperties":{"__isSmartRef__":true,"id":5757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5756":{"this":{"__isSmartRef__":true,"id":5725}},"5757":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5758}},"5758":{"isSerializedDate":true,"string":"Tue May 22 2012 17:06:13 GMT-0700 (PDT)"},"5759":{"submorphs":[{"__isSmartRef__":true,"id":5760}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5765},"derivationIds":[null,"ADC33688-68F4-4F07-BB55-2910235F3A5D","0B4877B5-7468-448D-85A4-B52DEC51384E","CDBD1F9D-B598-45D8-9B73-5DF9FCE358B6","6A412198-7AC2-4935-B396-5B73279BD8CA","07B28573-6267-4313-AC89-36B73BD961EA","4507B8AE-57F6-44F4-9F90-D5D04C49D724","CE9370C6-DB13-4DE3-9E04-9EA234BA94DE","B6CB1595-814A-4688-A370-4701670EAC2A","F2EF94ED-2B3E-4B41-A47F-B13BAE585ECA","217934D8-349C-4F26-B3CC-254D49DDFB39"],"id":"F2DDCA9C-2AA1-411A-8254-59A0949E4E72","eventHandler":{"__isSmartRef__":true,"id":5767},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":5760},"owner":{"__isSmartRef__":true,"id":5680},"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":5768}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"isPressed":false,"_Rotation":0,"_Scale":1,"_StyleClassNames":["Morph","Button","WindowControl"],"normalFill":{"__isSmartRef__":true,"id":5769},"lighterFill":{"__isSmartRef__":true,"id":5770},"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(20.0,0.9)","distanceToDragEvent":"lively.pt(30.5,-16.4)"},"5760":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5761},"derivationIds":[null,"E64FA17D-0B32-4CA4-9049-40F07154031A","82CCC5F4-5FCD-4B2B-BC4A-E628BA13E416","C1107766-61F9-4523-BF06-FF2A5BC53C03","46B8DE36-B448-4D66-BA40-0FEA6BA53EB6","EE80EF78-5817-482E-A968-D779F0124C4D","E8E0239B-6320-4729-A615-C50B5BB5FD37","8813AB8C-0CC2-4355-8024-C41BC03C740B","FC82D8EB-8F23-4045-B3FB-C13EE5BF26DB","64D437E5-AB51-4850-A745-0C1A2B60E721","0E6C9735-A0D6-4641-B408-7FDB9D0B20F4"],"id":"FD3246EA-7B0D-4BEB-BF71-1B6855E00DBE","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5762}],"eventHandler":{"__isSmartRef__":true,"id":5764},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5759},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"doNotSerialize":["undoState"],"_WordBreak":"break-all","_Rotation":0,"_Scale":1,"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.9,2.0)","distanceToDragEvent":"lively.pt(33.6,-13.4)"},"5761":{"_BorderWidth":0,"_Fill":null,"__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(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5762":{"style":{"__isSmartRef__":true,"id":5763},"chunkOwner":{"__isSmartRef__":true,"id":5760},"storedString":"C","_id":"_4904","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5763":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5764":{"morph":{"__isSmartRef__":true,"id":5760},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5765":{"_BorderWidth":0,"_StrokeOpacity":0,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":5766},"__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(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"5766":{},"5767":{"morph":{"__isSmartRef__":true,"id":5759},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5768":{"sourceObj":{"__isSmartRef__":true,"id":5759},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5633},"targetMethodName":"clear","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5769":{},"5770":{},"5771":{"_AppearanceStylingMode":true,"_BorderStylingMode":true,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1068.8,22.0)","_Padding":"lively.rect(0,0,0,0)"},"5772":{"morph":{"__isSmartRef__":true,"id":5680},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5773":{"resizeWidth":true,"adjustForNewBounds":true},"5774":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5775},"_ClipMode":"visible","derivationIds":["338C587C-6A11-432C-AE46-84705E55F859","174C71C2-A872-489C-9EB4-B1DC897E0545"],"id":"CF6F3301-623C-4A43-8E22-8675DD2097E2","__layered_droppingEnabled__":true,"halosEnabled":true,"type":"corner","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle corner"],"layout":{"__isSmartRef__":true,"id":5776},"owner":{"__isSmartRef__":true,"id":5632},"eventHandler":{"__isSmartRef__":true,"id":5777},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1054.8,395.0)"},"5775":{"__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)"},"5776":{"moveVertical":true,"moveHorizontal":true},"5777":{"morph":{"__isSmartRef__":true,"id":5774},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5779},"_ClipMode":"visible","derivationIds":["B002FD3B-4FFE-455B-811C-9D7EFE5A5215","41904F96-8B12-4A16-BCC4-7EC34999D799"],"id":"1539BD6B-7F4D-4490-AEBA-FAE8AF5F579C","__layered_droppingEnabled__":true,"halosEnabled":true,"type":"bottom","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle bottom"],"layout":{"__isSmartRef__":true,"id":5780},"owner":{"__isSmartRef__":true,"id":5632},"eventHandler":{"__isSmartRef__":true,"id":5781},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,405.0)"},"5779":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1054.8,4.0)","_Padding":"lively.rect(0,0,0,0)"},"5780":{"moveVertical":true},"5781":{"morph":{"__isSmartRef__":true,"id":5778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5782":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5783},"_ClipMode":"visible","derivationIds":["7EF76810-825B-463B-937C-79C09890DC9D","7A97F0A1-C7D7-4145-90AA-B7FB0F4D9794"],"id":"0B183372-C830-42E2-8431-065E45399900","__layered_droppingEnabled__":true,"halosEnabled":true,"type":"right","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle right"],"layout":{"__isSmartRef__":true,"id":5784},"owner":{"__isSmartRef__":true,"id":5632},"eventHandler":{"__isSmartRef__":true,"id":5785},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1064.8,0.0)"},"5783":{"__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,395.0)","_Padding":"lively.rect(0,0,0,0)"},"5784":{"moveHorizontal":true},"5785":{"morph":{"__isSmartRef__":true,"id":5782},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5786":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Padding","_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_Extent":"lively.pt(1068.8,409.0)","_Position":"lively.pt(0.0,0.0)"},"5787":{"morph":{"__isSmartRef__":true,"id":5632},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5788":{"adjustForNewBounds":true},"5789":{"a":1.002003004005006,"b":0,"c":0,"d":1.002003004005006,"e":33,"f":437,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5790":{"a":1.002003004005006,"b":0,"c":0,"d":1.002003004005006,"e":33,"f":437,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5791":{"partName":"SystemConsole","requiredModules":[],"comment":"a simple transcript to display console and log messages","changes":[{"__isSmartRef__":true,"id":5792},{"__isSmartRef__":true,"id":5794},{"__isSmartRef__":true,"id":5796},{"__isSmartRef__":true,"id":5798},{"__isSmartRef__":true,"id":5800},{"__isSmartRef__":true,"id":5802},{"__isSmartRef__":true,"id":5804}],"migrationLevel":8,"partsSpaceName":"PartsBin/Tools","lastModifiedDate":{"__isSmartRef__":true,"id":5806},"revisionOnLoad":196935,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5792":{"author":"jenslincke","message":"reset title bar","id":"2DCEBBF0-4B51-43BC-813B-CC370208C14F","date":{"__isSmartRef__":true,"id":5793}},"5793":{"isSerializedDate":true,"string":"Thu Nov 29 2012 01:09:19 GMT-0800 (PST)"},"5794":{"author":"robertkrahn","message":"fixed serialization issue created because of storing \"layer\"","id":"FDC20E55-9300-462B-9768-5311975F67FC","date":{"__isSmartRef__":true,"id":5795}},"5795":{"isSerializedDate":true,"string":"Wed Jun 06 2012 06:59:25 GMT-0700 (PDT)"},"5796":{"author":"cschuster","message":"better restore after save","id":"53EDF516-61FF-4F63-9601-7C8A47FAD9F8","date":{"__isSmartRef__":true,"id":5797}},"5797":{"isSerializedDate":true,"string":"Wed May 23 2012 13:54:32 GMT-0700 (PDT)"},"5798":{"author":"cschuster","message":"better restore after save","id":"49DAE26A-5B6A-4D19-958C-48F1BC2AAFB7","date":{"__isSmartRef__":true,"id":5799}},"5799":{"isSerializedDate":true,"string":"Wed May 23 2012 13:53:13 GMT-0700 (PDT)"},"5800":{"author":"cschuster","message":"better version","id":"CB2E74BB-718C-4318-8642-604779EA98B4","date":{"__isSmartRef__":true,"id":5801}},"5801":{"isSerializedDate":true,"string":"Tue May 22 2012 14:45:39 GMT-0700 (PDT)"},"5802":{"author":"ohshima","message":"no comment","id":"EF653486-890D-4844-893C-26263A869130","date":{"__isSmartRef__":true,"id":5803}},"5803":{"isSerializedDate":true,"string":"Wed Jul 10 2013 10:34:38 GMT-0700 (PDT)"},"5804":{"author":"ohshima","message":"no comment","id":"59FA34EA-90D8-4BF4-9682-86B3C0C518D8","date":{"__isSmartRef__":true,"id":5805}},"5805":{"isSerializedDate":true,"string":"Fri Jul 12 2013 10:14:45 GMT-0700 (PDT)"},"5806":{"isSerializedDate":true,"string":"Fri Jul 12 2013 10:13:03 GMT-0700 (PDT)"},"5807":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5808},"derivationIds":[null,"60D9F599-2A8A-48B6-AE1B-23259CD039DA","B438E22E-581E-4F93-9768-30F932E10F7E","6648EC8E-79A1-45B7-8FC4-E4A812580161","096FD08B-3229-4112-A4A6-C9950D1A9443","44EE103C-3F1C-49E3-B9E9-347F729B0660","3B8BBC58-2ACD-466C-8E53-F26BE83121FF","CCA2C1AC-FB82-46D7-90EF-5A31AE9D7A8A","1F89F387-760B-41AF-82B2-A5517D4841D3","5275EC39-C363-4361-97D2-56B35EEC5B31"],"id":"F31108F8-717F-42D5-986B-7526FE86B8C3","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5809}],"eventHandler":{"__isSmartRef__":true,"id":5811},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":5812},"_Align":"center","eventsAreIgnored":true,"owner":null,"_MaxTextWidth":555,"_MinTextWidth":555,"_MaxTextHeight":null,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":["undoState"],"doNotCopyProperties":[],"showsHalos":false,"_Rotation":0,"_Scale":1,"_WordBreak":"break-all","__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(180,20,20)","_Position":"lively.pt(60.0,3.0)"},"5808":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__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(555.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5809":{"style":{"__isSmartRef__":true,"id":5810},"chunkOwner":{"__isSmartRef__":true,"id":5807},"_id":"_4911","storedString":"System Console","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5810":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5811":{"morph":{"__isSmartRef__":true,"id":5807},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5812":{"resizeWidth":true},"5813":{"onLoadFromPartsBin":{"__isSmartRef__":true,"id":5814},"reset":{"__isSmartRef__":true,"id":5822},"onShutdown":{"__isSmartRef__":true,"id":5826}},"5814":{"varMapping":{"__isSmartRef__":true,"id":5815},"source":"function onLoadFromPartsBin() {\n $super();\n this.get(\"SystemConsoleMain\").onLoadFromPartsBin();\n}","funcProperties":{"__isSmartRef__":true,"id":5820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5815":{"this":{"__isSmartRef__":true,"id":5632},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5816}},"5816":{"$super":{"__isSmartRef__":true,"id":5817}},"5817":{"varMapping":{"__isSmartRef__":true,"id":5818},"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":5819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5818":{"obj":{"__isSmartRef__":true,"id":5632},"name":"onLoadFromPartsBin"},"5819":{},"5820":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5821}},"5821":{"isSerializedDate":true,"string":"Tue May 22 2012 16:03:53 GMT-0700 (PDT)"},"5822":{"varMapping":{"__isSmartRef__":true,"id":5823},"source":"function reset() {\n this.get(\"ErrorHandlerButton\").reset();\n this.get(\"SystemConsoleMain\").clear();\n}","funcProperties":{"__isSmartRef__":true,"id":5824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5823":{"this":{"__isSmartRef__":true,"id":5632}},"5824":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5825}},"5825":{"isSerializedDate":true,"string":"Tue May 22 2012 17:09:19 GMT-0700 (PDT)"},"5826":{"varMapping":{"__isSmartRef__":true,"id":5827},"source":"function onShutdown() {\n console.removeConsumer(this.get(\"SystemConsoleMain\"));\n}","funcProperties":{"__isSmartRef__":true,"id":5828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5827":{"this":{"__isSmartRef__":true,"id":5632}},"5828":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5829}},"5829":{"isSerializedDate":true,"string":"Thu May 24 2012 10:32:00 GMT-0700 (PDT)"},"5830":{"submorphs":[],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":5831},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":false,"registeredForMouseEvents":true,"_world":{"__isSmartRef__":true,"id":0},"carriesGrabbedMorphs":false,"eventHandler":{"__isSmartRef__":true,"id":5832},"_ClipMode":"visible","lastScrollTime":1397496738619,"prevScroll":[0,0],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":0},"doNotSerialize":["$$scrollFocusMorph"],"doNotCopyProperties":["$$scrollFocusMorph"],"highlightConnection":null,"attributeConnections":[],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.HandMorph","__SourceModuleName__":"Global.lively.morphic.Events","withLayers":["Global.NoMagnetsLayer"],"_Position":"lively.pt(898.8,434.0)"},"5831":{"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"__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)"},"5832":{"morph":{"__isSmartRef__":true,"id":5830},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5833":{"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16800.0,16900.0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"5834":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"5835":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5836":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","varMapping":{"__isSmartRef__":true,"id":5837},"updaterString":"function ($upd, v) {\n if (v && v.toString() !== URL.source.toString()) { $upd(v); }\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5837":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"5838":{"submorphs":[{"__isSmartRef__":true,"id":5839}],"scripts":[],"id":"239B20BA-9E22-4560-BFF1-DABBCA9A0E10","shape":{"__isSmartRef__":true,"id":5850},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LoadingMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":5851},"eventHandler":{"__isSmartRef__":true,"id":5951},"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":5952},"prevScroll":[0,0],"moved":true,"headRevision":146469,"_ClipMode":"visible","_Rotation":0,"_Scale":1,"isMetaTool":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5953},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(171.0,-13.0)"},"5839":{"submorphs":[{"__isSmartRef__":true,"id":5840}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5846},"id":"D1578085-7A95-4A6E-8BFB-BD86CB339D13","eventHandler":{"__isSmartRef__":true,"id":5847},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"ProgressIndicator","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5848},"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":5838},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":5849},"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)"},"5840":{"submorphs":[],"scripts":[],"id":"300E1E69-E8AF-47D0-914C-582B0ABAEA03","shape":{"__isSmartRef__":true,"id":5841},"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":5842},"textChunks":[{"__isSmartRef__":true,"id":5843}],"charsReplaced":"MorphName","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5845},"_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":5839},"_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)"},"5841":{"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)"},"5842":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5843":{"style":{"__isSmartRef__":true,"id":5844},"chunkOwner":{"__isSmartRef__":true,"id":5840},"storedString":"loading part","_id":"_4371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5844":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5845":{"morph":{"__isSmartRef__":true,"id":5840},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5846":{"_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)"},"5847":{"morph":{"__isSmartRef__":true,"id":5839},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5848":{"partName":"ProgressIndicator","requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5849":{"centeredHorizontal":true,"centeredVertical":true},"5850":{"_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)"},"5851":{"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":5852},{"__isSmartRef__":true,"id":5854},{"__isSmartRef__":true,"id":5856},{"__isSmartRef__":true,"id":5858},{"__isSmartRef__":true,"id":5860},{"__isSmartRef__":true,"id":5862},{"__isSmartRef__":true,"id":5864},{"__isSmartRef__":true,"id":5866},{"__isSmartRef__":true,"id":5868},{"__isSmartRef__":true,"id":5870},{"__isSmartRef__":true,"id":5872},{"__isSmartRef__":true,"id":5874},{"__isSmartRef__":true,"id":5876},{"__isSmartRef__":true,"id":5878},{"__isSmartRef__":true,"id":5880},{"__isSmartRef__":true,"id":5882},{"__isSmartRef__":true,"id":5884},{"__isSmartRef__":true,"id":5886},{"__isSmartRef__":true,"id":5888},{"__isSmartRef__":true,"id":5890},{"__isSmartRef__":true,"id":5892},{"__isSmartRef__":true,"id":5894},{"__isSmartRef__":true,"id":5896},{"__isSmartRef__":true,"id":5898},{"__isSmartRef__":true,"id":5900},{"__isSmartRef__":true,"id":5902},{"__isSmartRef__":true,"id":5904},{"__isSmartRef__":true,"id":5906},{"__isSmartRef__":true,"id":5908},{"__isSmartRef__":true,"id":5910},{"__isSmartRef__":true,"id":5912},{"__isSmartRef__":true,"id":5914},{"__isSmartRef__":true,"id":5916},{"__isSmartRef__":true,"id":5918},{"__isSmartRef__":true,"id":5920},{"__isSmartRef__":true,"id":5922},{"__isSmartRef__":true,"id":5924},{"__isSmartRef__":true,"id":5926},{"__isSmartRef__":true,"id":5928},{"__isSmartRef__":true,"id":5930},{"__isSmartRef__":true,"id":5932},{"__isSmartRef__":true,"id":5934},{"__isSmartRef__":true,"id":5936},{"__isSmartRef__":true,"id":5938},{"__isSmartRef__":true,"id":5940},{"__isSmartRef__":true,"id":5942},{"__isSmartRef__":true,"id":5944},{"__isSmartRef__":true,"id":5946},{"__isSmartRef__":true,"id":5948}],"lastModifiedDate":{"__isSmartRef__":true,"id":5950},"revisionOnLoad":194364,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5852":{"date":{"__isSmartRef__":true,"id":5853},"author":"sstamm","message":"","id":"1C1391AE-5722-4707-BE52-F0094FC56829"},"5853":{"isSerializedDate":true,"string":"Wed Feb 22 2012 05:02:04 GMT-0800 (PST)"},"5854":{"date":{"__isSmartRef__":true,"id":5855},"author":"sstamm","message":"","id":"663F147A-9084-4AC3-81A7-1E7BA6547F08"},"5855":{"isSerializedDate":true,"string":"Wed Feb 22 2012 03:43:10 GMT-0800 (PST)"},"5856":{"date":{"__isSmartRef__":true,"id":5857},"author":"sstamm","message":"","id":"F72B746E-B170-4EFB-9074-5E8770640B8A"},"5857":{"isSerializedDate":true,"string":"Wed Feb 22 2012 03:36:14 GMT-0800 (PST)"},"5858":{"date":{"__isSmartRef__":true,"id":5859},"author":"sstamm","message":"","id":"568D2EFD-C535-43AE-8944-6D8B967129F5"},"5859":{"isSerializedDate":true,"string":"Wed Feb 22 2012 03:23:04 GMT-0800 (PST)"},"5860":{"date":{"__isSmartRef__":true,"id":5861},"author":"sstamm","message":"","id":"AB2484A6-0707-4E13-845E-F0A5F48BBA3D"},"5861":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:59:45 GMT-0800 (PST)"},"5862":{"date":{"__isSmartRef__":true,"id":5863},"author":"sstamm","message":"","id":"97D20633-F76C-46A5-A32A-FFE9BC83CAB3"},"5863":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:59:10 GMT-0800 (PST)"},"5864":{"date":{"__isSmartRef__":true,"id":5865},"author":"sstamm","message":"","id":"8A697DF5-9A45-4A84-B709-9719BF55083E"},"5865":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:56:54 GMT-0800 (PST)"},"5866":{"date":{"__isSmartRef__":true,"id":5867},"author":"sstamm","message":"","id":"F2157D66-1571-4B9A-B325-6FA96488260F"},"5867":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:51:05 GMT-0800 (PST)"},"5868":{"date":{"__isSmartRef__":true,"id":5869},"author":"sstamm","message":"","id":"E5E808CA-06AB-47DC-A9C9-CA7967591545"},"5869":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:47:19 GMT-0800 (PST)"},"5870":{"date":{"__isSmartRef__":true,"id":5871},"author":"sstamm","message":"","id":"009DC4E0-23CA-485A-A796-801AA0F75049"},"5871":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:46:25 GMT-0800 (PST)"},"5872":{"date":{"__isSmartRef__":true,"id":5873},"author":"sstamm","message":"","id":"C0CE1397-6E2E-4E8C-AEFF-9017E24BB7E4"},"5873":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:45:05 GMT-0800 (PST)"},"5874":{"date":{"__isSmartRef__":true,"id":5875},"author":"sstamm","message":"","id":"FFE16986-548D-4AC2-A627-CF6416282BC4"},"5875":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:37:15 GMT-0800 (PST)"},"5876":{"date":{"__isSmartRef__":true,"id":5877},"author":"sstamm","message":"","id":"57213D63-7147-4057-ADC9-30994443B066"},"5877":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:35:29 GMT-0800 (PST)"},"5878":{"date":{"__isSmartRef__":true,"id":5879},"author":"sstamm","message":"","id":"75A31364-B380-4312-BB5B-F8F2DA1CE824"},"5879":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:31:52 GMT-0800 (PST)"},"5880":{"date":{"__isSmartRef__":true,"id":5881},"author":"sstamm","message":"","id":"5AA50B7E-7D33-44C4-807B-BF1ABA31D530"},"5881":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:14:10 GMT-0800 (PST)"},"5882":{"date":{"__isSmartRef__":true,"id":5883},"author":"sstamm","message":"","id":"BCDCC505-534C-45E5-9BB2-5238959A5AD0"},"5883":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:02:56 GMT-0800 (PST)"},"5884":{"date":{"__isSmartRef__":true,"id":5885},"author":"sstamm","message":"","id":"890D14F4-E89D-4E05-BFB9-875D6AB6C765"},"5885":{"isSerializedDate":true,"string":"Wed Feb 22 2012 02:01:50 GMT-0800 (PST)"},"5886":{"date":{"__isSmartRef__":true,"id":5887},"author":"sstamm","message":"","id":"B6FE0805-0D24-4267-8238-8B332352617E"},"5887":{"isSerializedDate":true,"string":"Wed Feb 22 2012 01:55:44 GMT-0800 (PST)"},"5888":{"date":{"__isSmartRef__":true,"id":5889},"author":"sstamm","message":"callbacks are working","id":"9348260A-3B55-4659-BC85-440BFBD98EA4"},"5889":{"isSerializedDate":true,"string":"Fri Feb 10 2012 00:45:55 GMT-0800 (PST)"},"5890":{"date":{"__isSmartRef__":true,"id":5891},"author":"sstamm","message":"made it more opaque","id":"1B84264C-2822-407F-A58F-19217BCD2762"},"5891":{"isSerializedDate":true,"string":"Wed Feb 08 2012 02:41:50 GMT-0800 (PST)"},"5892":{"date":{"__isSmartRef__":true,"id":5893},"author":"sstamm","message":"","id":"0FB41D7D-2A52-4782-814B-A66C24FCE569"},"5893":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:13:49 GMT-0800 (PST)"},"5894":{"date":{"__isSmartRef__":true,"id":5895},"author":"sstamm","message":"","id":"A0C2D7C1-04AF-493A-A7D7-70750F7D3E2F"},"5895":{"isSerializedDate":true,"string":"Thu Feb 02 2012 08:22:07 GMT-0800 (PST)"},"5896":{"date":{"__isSmartRef__":true,"id":5897},"author":"sstamm","message":"trollolol","id":"F6CFAD78-AC72-4DE2-9F38-79776C2E9462"},"5897":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:55:14 GMT-0800 (PST)"},"5898":{"date":{"__isSmartRef__":true,"id":5899},"author":"sstamm","message":"should be centered now","id":"EE366B4D-C272-477F-8C28-4EAE5A7EC7CB"},"5899":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:54:35 GMT-0800 (PST)"},"5900":{"date":{"__isSmartRef__":true,"id":5901},"author":"sstamm","message":"initial commit","id":"8920D925-DD16-4667-B8C7-FB74D78C2424"},"5901":{"isSerializedDate":true,"string":"Thu Feb 02 2012 04:26:01 GMT-0800 (PST)"},"5902":{"date":{"__isSmartRef__":true,"id":5903},"author":"sstamm","message":"changed text morph name","id":"80E88A3C-5AF3-48F2-A600-710877630997"},"5903":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:04:01 GMT-0800 (PST)"},"5904":{"date":{"__isSmartRef__":true,"id":5905},"author":"sstamm","message":"added loading script","id":"EE9B8F4D-1F03-4232-82E6-794046974F8F"},"5905":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:28:30 GMT-0800 (PST)"},"5906":{"date":{"__isSmartRef__":true,"id":5907},"author":"sstamm","message":"added disconnection","id":"11F19267-924E-4087-99ED-998245576BD2"},"5907":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:32:58 GMT-0800 (PST)"},"5908":{"date":{"__isSmartRef__":true,"id":5909},"author":"sstamm","message":"removed connections before deletion","id":"35A88218-6864-4D52-83A2-BFF7B9A6907C"},"5909":{"isSerializedDate":true,"string":"Thu Feb 02 2012 05:41:00 GMT-0800 (PST)"},"5910":{"date":{"__isSmartRef__":true,"id":5911},"author":"sstamm","message":"now able to load parts by name and category as well as per partItem","id":"F36A5782-461D-4813-95F8-0207990A261C"},"5911":{"isSerializedDate":true,"string":"Thu Feb 02 2012 06:24:30 GMT-0800 (PST)"},"5912":{"date":{"__isSmartRef__":true,"id":5913},"author":"sstamm","message":"now with round corners","id":"F42C39CB-CC37-467D-BF10-D362241F047E"},"5913":{"isSerializedDate":true,"string":"Thu Feb 02 2012 06:26:23 GMT-0800 (PST)"},"5914":{"date":{"__isSmartRef__":true,"id":5915},"author":"sstamm","message":"loadingMorph is sync now","id":"12ACFFC9-BA53-4A2A-ABD4-894A5ECE1145"},"5915":{"isSerializedDate":true,"string":"Thu Feb 02 2012 06:48:04 GMT-0800 (PST)"},"5916":{"date":{"__isSmartRef__":true,"id":5917},"author":"sstamm","message":"display the loadingMorph in new thread","id":"2BA51E30-F02B-4AF0-B3BE-52DD4ED522CC"},"5917":{"isSerializedDate":true,"string":"Thu Feb 02 2012 06:53:49 GMT-0800 (PST)"},"5918":{"date":{"__isSmartRef__":true,"id":5919},"author":"sstamm","message":"","id":"DF0AE4EA-1B08-4556-8BBE-E6488F23B8A3"},"5919":{"isSerializedDate":true,"string":"Thu Feb 02 2012 07:49:48 GMT-0800 (PST)"},"5920":{"date":{"__isSmartRef__":true,"id":5921},"author":"sstamm","message":"","id":"220821B3-C589-41C9-A324-8E7E6D9D6CEB"},"5921":{"isSerializedDate":true,"string":"Thu Feb 02 2012 07:58:43 GMT-0800 (PST)"},"5922":{"date":{"__isSmartRef__":true,"id":5923},"author":"sstamm","message":"","id":"DEBFACE2-7EC5-4A86-AD46-5A0A88A73707"},"5923":{"isSerializedDate":true,"string":"Thu Feb 02 2012 08:04:28 GMT-0800 (PST)"},"5924":{"date":{"__isSmartRef__":true,"id":5925},"author":"sstamm","message":"load request in new thread if loading should be async","id":"18282D28-D6D4-48C9-A508-6E3244449BD8"},"5925":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:10:27 GMT-0800 (PST)"},"5926":{"date":{"__isSmartRef__":true,"id":5927},"author":"sstamm","message":"added benchmarking output","id":"249CFF90-DDF5-4A83-9759-0289E96D7D58"},"5927":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:31:50 GMT-0800 (PST)"},"5928":{"date":{"__isSmartRef__":true,"id":5929},"author":"sstamm","message":"","id":"882082E1-29B6-418D-9B8B-672729D60619"},"5929":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:38:26 GMT-0800 (PST)"},"5930":{"date":{"__isSmartRef__":true,"id":5931},"author":"sstamm","message":"","id":"5179AEF9-E19F-4B0C-BBD8-556C5687988A"},"5931":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:44:11 GMT-0800 (PST)"},"5932":{"date":{"__isSmartRef__":true,"id":5933},"author":"sstamm","message":"","id":"1159C5B4-724E-4124-9D7B-5CD5DC4A8EE3"},"5933":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:48:14 GMT-0800 (PST)"},"5934":{"date":{"__isSmartRef__":true,"id":5935},"author":"sstamm","message":"","id":"2A718D1F-1036-41D6-999A-336F2B14E65D"},"5935":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:49:47 GMT-0800 (PST)"},"5936":{"date":{"__isSmartRef__":true,"id":5937},"author":"sstamm","message":"","id":"EB6BDD0C-7EEC-4124-B77F-2F106A601538"},"5937":{"isSerializedDate":true,"string":"Tue Feb 07 2012 02:59:48 GMT-0800 (PST)"},"5938":{"date":{"__isSmartRef__":true,"id":5939},"author":"sstamm","message":"","id":"63EC8D07-AB6A-450A-BB84-9B4D37E03647"},"5939":{"isSerializedDate":true,"string":"Tue Feb 07 2012 03:02:33 GMT-0800 (PST)"},"5940":{"date":{"__isSmartRef__":true,"id":5941},"author":"sstamm","message":"","id":"19CE12E4-5AA5-48DC-B1D1-B0EB0EDF1CB9"},"5941":{"isSerializedDate":true,"string":"Tue Feb 07 2012 03:03:42 GMT-0800 (PST)"},"5942":{"date":{"__isSmartRef__":true,"id":5943},"author":"sstamm","message":"first attempt to introduce callback functions to part loading","id":"22BD0B95-8948-411A-A56E-AD7CBE445F1D"},"5943":{"isSerializedDate":true,"string":"Thu Feb 09 2012 11:20:11 GMT-0800 (PST)"},"5944":{"date":{"__isSmartRef__":true,"id":5945},"author":"sstamm","message":"","id":"A216DFD2-9D1F-4E62-A22F-6B5472823E1B"},"5945":{"isSerializedDate":true,"string":"Fri Mar 16 2012 07:37:34 GMT-0700 (PDT)"},"5946":{"date":{"__isSmartRef__":true,"id":5947},"author":"sstamm","message":"","id":"464E723A-08DC-433C-AA5C-CEC850DBAF0B"},"5947":{"isSerializedDate":true,"string":"Fri Mar 16 2012 07:42:29 GMT-0700 (PDT)"},"5948":{"date":{"__isSmartRef__":true,"id":5949},"author":"jenslincke","message":"make it a meta tool","id":"8406E1E5-C48F-4F03-AC17-81AABDE9235E"},"5949":{"isSerializedDate":true,"string":"Fri Mar 22 2013 06:56:05 GMT-0700 (PDT)"},"5950":{"isSerializedDate":true,"string":"Wed Feb 05 2014 10:59:57 GMT-0800 (PST)"},"5951":{"morph":{"__isSmartRef__":true,"id":5838},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5952":{"adjustForNewBounds":true},"5953":{"loadPart":{"__isSmartRef__":true,"id":5954},"loadFinished":{"__isSmartRef__":true,"id":5958},"loadPartByName":{"__isSmartRef__":true,"id":5962}},"5954":{"varMapping":{"__isSmartRef__":true,"id":5955},"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":5956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5955":{"this":{"__isSmartRef__":true,"id":5838}},"5956":{"timestamp":{"__isSmartRef__":true,"id":5957},"user":"sstamm","tags":[]},"5957":{"isSerializedDate":true,"string":"Fri Mar 16 2012 07:42:18 GMT-0700 (PDT)"},"5958":{"varMapping":{"__isSmartRef__":true,"id":5959},"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":5960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5959":{"this":{"__isSmartRef__":true,"id":5838}},"5960":{"timestamp":{"__isSmartRef__":true,"id":5961},"user":"sstamm","tags":[]},"5961":{"isSerializedDate":true,"string":"Wed Feb 22 2012 05:01:53 GMT-0800 (PST)"},"5962":{"varMapping":{"__isSmartRef__":true,"id":5963},"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":5964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5963":{"this":{"__isSmartRef__":true,"id":5838}},"5964":{"timestamp":{"__isSmartRef__":true,"id":5965},"user":"sstamm","tags":[]},"5965":{"isSerializedDate":true,"string":"Thu Feb 02 2012 08:03:18 GMT-0800 (PST)"},"5966":{"isSerializedDate":true,"string":"Sat Mar 29 2014 23:48:26 GMT-0700 (PDT)"},"5967":{"rules":[{"__isSmartRef__":true,"id":5968},{"__isSmartRef__":true,"id":5970}],"originMorph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.StyleSheet","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5968":{"declarations":[{"__isSmartRef__":true,"id":5969}],"styleSheet":{"__isSmartRef__":true,"id":5967},"selector":".Window","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5969":{"values":["none"],"rule":{"__isSmartRef__":true,"id":5968},"property":"box-shadow","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5970":{"declarations":[{"__isSmartRef__":true,"id":5971}],"styleSheet":{"__isSmartRef__":true,"id":5967},"selector":".Window.highlighted","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5971":{"values":["none"],"rule":{"__isSmartRef__":true,"id":5970},"property":"box-shadow","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5972":{"clipboardData":{"__isSmartRef__":true,"id":5973},"cancelBubble":false,"returnValue":false,"defaultPrevented":true,"timeStamp":1391085629200,"cancelable":true,"bubbles":true,"eventPhase":0,"currentTarget":null,"type":"paste","hasLivelyPatch":true,"isMouseEvent":false,"isKeyboardEvent":false,"world":{"__isSmartRef__":true,"id":0},"hand":{"__isSmartRef__":true,"id":5830},"isStopped":true,"__serializedExpressions__":["mousePoint"],"mousePoint":"lively.pt(0.0,0.0)"},"5973":{"items":{"__isSmartRef__":true,"id":5974},"files":{"__isSmartRef__":true,"id":5975},"types":[],"effectAllowed":"uninitialized","dropEffect":"none"},"5974":{"length":0},"5975":{"length":0},"5976":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/demos/EnergySimulationScripted.xhtml","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"isSimplifiedRegistry":true}}]]>