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")
BetterSelectionMorph40
Textnull
true
null
true
null0.4636476090008061null
null
true
null
true
null
true
null
true
null
true
true
true
true
Text
14
-selectionshouldwraparoundobjects-shouldcatchtheevents,sothatitcanstillbepickedup-changestostyleetcshouldbepropagedtomembers-shouldbeinteractivlygrownandshrinkable-objectsinotherobjectsshouldbeselectabletoo-aselectionshouldnotbecreatedonmousdownbutondrag145
10000.760007529222939Wikicontroltrue
10008.720038878104187Wikicontroltrue
-----falsetruefalse0
worldis1:WorldMorph([0,0,1548,1056])falsetruefalse0
Errorevaluatinginitializer:SyntaxError:Invalidreturnstatement.falsetruefalse0
startingWikiNavigatorfalsetruefalse0
status207onPROPFINDhttp://lively-kernel.org/repository/webwerkstatt/DraftSelectionMorph.xhtmlfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_2loadedin30msfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_1loadedin421msfalsetruefalse0
fontHelvetica40:spacewidth11from51xWidth20falsetruefalse0
fontHelvetica14:spacewidth4from18xWidth7falsetruefalse0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalse0
ResizingSVGcanvasfalsetruefalse0
Moduleloadcheckdone.28modulesloaded.falsetruefalse0
fontCourier12:spacewidth7from21xWidth7falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,1548,1056])falsetruefalse0
Clipboardactionnotsuccessfulfalsetruefalse0
Warn:ERROR:86273:HandMorph([0,0,9,9]),anemptyhand,local=true,id=86273:HandMorph.EventHandler([objectKeyboardEvent]):err:ReferenceError:Can'tfindvariable:ensureIndicatorMorphfalsetruefalse0
==Stack==0:$logErrorsAdvice1:HandMorph.handleEvent2falsetruefalse0
Warn:ERROR:86273:HandMorph([0,0,9,9]),anemptyhand,local=true,id=86273:HandMorph.EventHandler([objectKeyboardEvent]):err:ReferenceError:Can'tfindvariable:ensureIndicatorMorphfalsetruefalse0
==Stack==0:$logErrorsAdvice1:HandMorph.handleEvent2falsetruefalse0
LayerSelectionMorphDraftisalreadytherefalsetruefalse0
Warn:ERROR:86273:HandMorph([0,0,9,9]),anemptyhand,local=true,id=86273:HandMorph.EventHandler([objectKeyboardEvent]):err:ReferenceError:Can'tfindvariable:ensureIndicatorMorphfalsetruefalse0
==Stack==0:$logErrorsAdvice1:HandMorph.handleEvent2falsetruefalse0
Warn:ERROR:86273:HandMorph([0,0,9,9]),anemptyhand,local=true,id=86273:HandMorph.EventHandler([objectKeyboardEvent]):err:ReferenceError:Can'tfindvariable:ensureIndicatorMorphfalsetruefalse0
==Stack==0:$logErrorsAdvice1:HandMorph.handleEvent2falsetruefalse0
LayerSelectionMorphDraftisalreadytherefalsetruefalse0
Warn:ERROR:86273:HandMorph([0,0,9,9]),anemptyhand,local=true,id=86273:HandMorph.EventHandler([objectKeyboardEvent]):err:ReferenceError:Can'tfindvariable:ensureIndicatorMorphfalsetruefalse0
==Stack==0:$logErrorsAdvice1:HandMorph.handleEvent2falsetruefalse0
LayerSelectionMorphDraftisalreadytherefalsetruefalse0
LayerSelectionMorphDraftisalreadytherefalsetruefalse0
LayerSelectionMorphDraftisalreadytherefalsetruefalse0
LayerSelectionMorphDraftisalreadytherefalsetruefalse0
LayerSelectionMorphDraftisalreadytherefalsetruefalse0
Warn:ERROR:86273:HandMorph([0,0,9,9]),anemptyhand,local=true,id=86273:HandMorph.EventHandler([objectKeyboardEvent]):err:TypeError:Resultofexpression'replacement.truncate'[undefined]isnotafunction.falsetruefalse0
==Stack==0:$logErrorsAdvice1:HandMorph.handleEvent2falsetruefalse0
LayerSelectionMorphDraftisalreadytherefalsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,1548,1056])falsetruefalse0
status200onGEThttp://lively-kernel.org/repository/webwerkstatt/DraftSelectionMorph.xhtml?1265041648870falsetruefalse0
extendForSerializationundefinedfalsetruefalse01126-1nulltrue0falsetruetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
WorldMorph.current().hands[0].ensureIndicatorMorph().setTextString("g")truetrue100false
truefalsenull050
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
createLayer("SelectionMorphDraft");enableLayer(SelectionMorphDraft);layerClass(SelectionMorphDraft,SelectionMorph,{onKeyDown:function(proceed,evt){varchar=evt.getKeyChar();varmap={S:"shape",C:"connect",T:"text"};varmode=map[char];if(mode)evt.hand.ensureIndicatorMorph().setTextString(mode);returnproceed(evt)},onKeyUp:function(proceed,evt){evt.hand.ensureIndicatorMorph().setTextString("")returnproceed(evt)}})7truetruefalsetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
null43