Lively Kernel canvas
// this script is evaluated on world load
MyConsole = WorldMorph.current().submorphs.detect(function(ea){return ea.name == "MyConsole"});
if(!MyConsole) return;
MyConsole = MyConsole.component;
MyConsole.setText("-- start --");
MyConsole.log = function(s) {
this.setText(this.formalModel.getText() + "\n" + s);
};
MyConsole.log("My Console initialized!");
MyConsole.morph.resetScrollPane = function() {
var sp = this.enclosingScrollPane();
if (sp) sp.scrollToBottom();
};
// console.consumers seems to be broken... so we go the hard waz
console.log = console.log.wrap(function(proceed, s) {
MyConsole.log(s)
proceed(s)})
console.log("wrapped console for MyConsole successfully")
ComputeObject-specificLayers40
//DebuggingBehaviorcreateLayer("DebugMorphLayer");layerClass(DebugMorphLayer,TextMorph,{onKeyDown:function(proceed,evt){console.log("onKeyDown:"+evt)returnproceed(evt);}})Morph.prototype.getActivatedLayers=function(){if(this.debugThisMorph){return[DebugMorphLayer]}}1420
10000.4274038891706003Wikicontroltrue
10000.038159041273888986Wikicontroltrue
10002.685557597638385Wikicontroltrue
-----falsetruefalse0
worldis1:WorldMorph([0,0,1289,866])falsetruefalse0
Errorevaluatinginitializer:SyntaxError:Invalidreturnstatement.falsetruefalse0
startingWikiNavigatorfalsetruefalse0
status207onPROPFINDhttp://lively-kernel.org/repository/webwerkstatt/ContextJSComputeLayerExample.xhtmlfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_2loadedin27msfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_1loadedin413msfalsetruefalse0
fontHelvetica40:spacewidth11from51xWidth20falsetruefalse0
fontCourier14:spacewidth8from24xWidth8falsetruefalse0
fontCourier14:spacewidth8from24xWidth8falsetruefalse0
fontHelvetica18:spacewidth5from23xWidth9falsetruefalse0
fontHelvetica18:spacewidth5from23xWidth9falsetruefalse0
fontHelvetica14:spacewidth4from18xWidth7falsetruefalse0
fontHelvetica14:spacewidth4from18xWidth7falsetruefalse0
ResizingSVGcanvasfalsetruefalse0
Moduleloadcheckdone.26modulesloaded.falsetruefalse0
LayerDebugMorphLayerisalreadytherefalsetruefalse0
onKeyDown:#<Event:KeyDown32>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown32>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown8>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown8>"]]>falsetruefalse0
-------------------------------------------falsetruefalse0
invoke54850:TextMorph([0,0,475,53.400001525878906])falsetruefalse0
-------------------------------------------falsetruefalse0
invoke56360:TextMorph([0,0,475,24.733333587646484])falsetruefalse0
LayerDebugMorphLayerisalreadytherefalsetruefalse0
-------------------------------------------falsetruefalse0
invoke55225:TextMorph([0,0,103.59200286865234,21.200000762939453])falsetruefalse0
copied65161:TextMorph([0,0,103.59200286865234,21.200000762939453])falsetruefalse0
-------------------------------------------falsetruefalse0
invoke65161:TextMorph([0,0,103.59200286865234,21.200000762939453])falsetruefalse0
Can'tfindcurrentpositionintextfalsetruefalse0
onKeyDown:#<Event:KeyDown8>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown37>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown37>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown37>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown37>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown37>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown37>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown37>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown37>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown39>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown8>"]]>falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,1289,866])falsetruefalse0
status200onGEThttp://lively-kernel.org/repository/webwerkstatt/ContextJSComputeLayerExample.xhtml?1259660486496falsetruefalse0
extendForSerializationundefinedfalsetruefalse0813-1nulltrue0falsetruetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
true100false
truefalsenull050
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
firsttextmorphnull
true
secondtextmorphnull
falsenull38