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")
10000.4361944350252467Wikicontroltrue
10000.20589113469959128Wikicontroltrue
LKCore40false
Widget16
Text16
dupilcatethisobjects
null
null-1.5707963267948966nullfalse
false
WorldMorph16
false
SVGNode16null
View16
Model16
depricated
Wrapper16
false
null
null-1.5558124342040205nullfalse
true
PasteUpMorph16
false
null-1.6201524745578975nullfalse
true
Morph16
false
null-1.6961854312263749nullfalse
true
null-1.556456966350908nullfalse
true
Shape16
false
Node16
false
Record16
null-0.9529866041114866nullfalse
true
PlainRecord16null
false
null-1.9670870462860957nullfalse
true
NodeRecord16null
false
MetaNotes:-addorthangonallayouttoconnectors-makearrowheadscustomizablevialmenu-whataboutsettingpropertiesofaselection-howtochangethestyleofmanyobjects?7
nulltrue
nulltrueClass.isClass(Morph)TextMorph.superclasses().collect(function(ea){returnea.name})4truetruefalsetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
null40