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.00045971278779151896Wikicontroltrue
10000.000002615693763503748Wikicontroltrue
LKCore40false
null
null-0.9772623037322561nullfalse
true
null-1.6377601323505342nullfalse
true
null-1.5707963267948966nullfalse
true
null-1.5707963267948966nullfalse
true
null-1.4663639786415201nullfalse
true
null-1.9029723970710801nullfalse
true
NodeRecord16null
MetaNotes:-addorthangonallayouttoconnectors-makearrowheadscustomizablevialmenu-whataboutsettingpropertiesofaselection-howtochangethestyleofmanyobjects?1
nulltrue
10004.765273496889459e-16Wikicontroltrue
-----falsetruefalse0
worldis1:WorldMorph([0,0,2000,1000])falsetruefalse0
Errorevaluatinginitializer:SyntaxError:Invalidreturnstatement.falsetruefalse0
startingWikiNavigatorfalsetruefalse0
status207onPROPFINDhttp://lively-kernel.org/repository/webwerkstatt/documentation.xhtmlfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_2loadedin113msfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_1loadedin766msfalsetruefalse0
fontHelvetica40:spacewidth11from51xWidth20falsetruefalse0
fontHelvetica16:spacewidth4from20xWidth8falsetruefalse0
fontHelvetica12:spacewidth3from15xWidth6falsetruefalse0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalse0
ResizingSVGcanvasfalsetruefalse0
Moduleloadcheckdone.28modulesloaded.falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,2000,1000])falsetruefalse0
status200onGEThttp://lively-kernel.org/repository/webwerkstatt/documentation.xhtmlfalsetruefalse0
extendForSerializationundefinedfalsetruefalse0
status204onPUThttp://lively-kernel.org/repository/webwerkstatt/documentation.xhtmlfalsetruefalse0
successpublishingworldathttp://lively-kernel.org/repository/webwerkstatt/documentation.xhtml,status204falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,2000,1000])falsetruefalse0
status200onGEThttp://lively-kernel.org/repository/webwerkstatt/documentation.xhtmlfalsetruefalse0
extendForSerializationundefinedfalsetruefalse0810-1nulltrue0falsetruetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
truetrue100false
truefalse050
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
10004.362232595541853e-7Wikicontroltrue
Morph16
10001.9103631387339917e-12Wikicontroltrue
Wrapper16
null-2.0628915439657254nullfalse
true
Widget16
Record16
PlainRecord16null
Model16
10000.008727963568087723Wikicontroltrue
RESEARCHObjective-scope:Layersthatmodelarole,shouldsometimespropagetochildobjectsandsometimesnot.Thechildshouldknowthatitisinthecontextofroleandbeapartofthatrole,e.g.ahandleoftheconnector,butatthesametimethehandleisNOTtheconnector.Thisdistinctionisclearwhentherearedifferentclassesinvolved(liketheHandleMorphinsideaMorphbutthereneedstobeaddionalstatethatmakesonemorphbetheConnectorandnotonlysomepartofit...8
10000.000032791850478549305Wikicontroltrue
10000.00001836092271147821Wikicontroltrue
Shape16
- null
SVGNode16null
Node16
- null
PasteUpMorph16
- null
WorldMorph16
- null
Model16
View16
deprecatedtrue
deprecatedtrue
Model16
Text16
dupilcatethisobjects
null
null-1.5707963267948966nullfalse
false
deprecatedtrue
false
false
100020.6469753318247Wikicontroltrue
createLayer("MorphPrototypePanelLayer");layerClass(MorphPrototypePanelLayer,Morph,{getopenForDragAndDrop(){returnfalse;},okToBeGrabbedBy:function(){returnfalse},//handlesMouseDown:function(proceed){//returntrue//},onMouseDown:function(proceed,evt){console.log("onmousedownin"+this+"at"+evt)}});Morph.subclass("MorphPrototypePanel",{initalize:function($super,position){$super(newlively.scene.Rectangle(position.extent(pt(200,50))));this.applyStyle({borderWidth:2,borderColor:Color.gray,fill:Color.white});}})//position=pt(100,100)//m=newMorphPrototypePanel(pt(100,100));WorldMorph.current().addMorph(m)truetruefalsetrue38truetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
null46