Lively Kernel canvas
// this script is evaluated on world load
DuplicatorPanel40false
10000.4753422254375715Wikicontroltrue
10002.2662288031085946e-16Wikicontroltrue
10000.07235388864440732Wikicontroltrue
10000.0000157569977756877Wikicontroltrue
10002.6990290288829593e-11Wikicontroltrue
10000.03865958215309741Wikicontroltrue
10000.0002427496910269451Wikicontroltrue
10005.303456375681178e-8Wikicontroltrue
10002.7374565551507287e-8Wikicontroltrue
10004.4205626366290366e-13Wikicontroltrue
FirstVersion:PureObjectComposition16
dupilcatethisobjects
depricated
null
Text16
null1.7126933813990606null
FirstVersion:PureObjectComposition16
TheproblemofthePrototypepanelseemedaeasylysolveablebyuseingactiveLayersandsetWithLayersincombination.ButHandlesarealsochildrenofthePrototypePanelandtheyshouldnotreactascontent.PerhapseachobjectshouldexplicitlygettheDuplicatebehavior....AnonLayersolutioncouldbetouseacontainermorphforeachobject.5
-----falsetruefalse0
worldis1:WorldMorph([0,0,2000,1000])falsetruefalse0
startingWikiNavigatorfalsetruefalse0
status207onPROPFINDhttp://lively-kernel.org/repository/webwerkstatt/ContextJSPrototypePanel.xhtmlfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_2loadedin37msfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_1loadedin506msfalsetruefalse0
fontHelvetica40:spacewidth11from51xWidth20falsetruefalse0
fontHelvetica16:spacewidth4from20xWidth8falsetruefalse0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalse0
scale0.44565217391304346falsetruefalse0
scale1.4642857142857142falsetruefalse0
scale0.5774647887323944falsetruefalse0
scale1.5769230769230769falsetruefalse0
scale0.8723404255319149falsetruefalse0
ResizingSVGcanvasfalsetruefalse0
Moduleloadcheckdone.28modulesloaded.falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,2000,1000])falsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_3loadedin15msfalsetruefalse0
-------------------------------------------falsetruefalse0
invoke179544:TextMorph([0,52,62,28.266666412353516])falsetruefalse0
-------------------------------------------falsetruefalse0
invoke179811:Morph([0,0,114,42])falsetruefalse0
-------------------------------------------falsetruefalse0
invoke179544:TextMorph([0,52,62,28.266666412353516])falsetruefalse0
scale0.6612903225806451falsetruefalse0
scale0.6612903225806451falsetruefalse0
scale0.5256410256410257falsetruefalse0
scale0.5256410256410257falsetruefalse0
scale0.47674418604651164falsetruefalse0
scale0.7592592592592593falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,2000,1000])falsetruefalse0
-------------------------------------------falsetruefalse0
invoke181763:Morph([-50,-47.552825927734375,90.45085144042969,95.10565185546875])falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,2000,1000])falsetruefalse0
scale0.3867924528301887falsetruefalse0
-------------------------------------------falsetruefalse0
invoke182099:SelectionMorph([0,0,689,404])falsetruefalse0
-------------------------------------------falsetruefalse0
invoke179344:TextMorph([0,15,71,21.200000762939453])falsetruefalse0
-------------------------------------------falsetruefalse0
invoke176618:TextMorph([0,0,310,28.266666412353516])falsetruefalse0
copied182314:TextMorph([0,0,310,28.266700744628906])falsetruefalse0
fontCourier12:spacewidth7from21xWidth7falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,2000,1000])falsetruefalse0
status200onGEThttp://lively-kernel.org/repository/webwerkstatt/ContextJSPrototypePanel.xhtmlfalsetruefalse0
extendForSerializationundefinedfalsetruefalse0803-1nulltrue0falsetruetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
truetrue100false
truefalsenull050
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
10000.004638470436332631Wikicontroltrue
10006.316833731356518Wikicontroltrue
Text16null
true
nulltruenull
true
depricatedtruenull
true
null-2.396173177315635nullfalse
truenull
true
truenull
true
null
true
null
true
FutureIdias:-sharepanels...116null
createLayer("MorphPrototypeLayer");layerClassAndSubclasses(MorphPrototypeLayer,Morph,{getopenForDragAndDrop(){returnfalse;},okToBeGrabbedBy:function(){returnfalse},getsuppressHandles(){returntrue;},handlesMouseDown:function(){}});//Morph.subclass('MorphPrototypeContainer',{});MorphPrototypeContainer.addMethods({initialize:function($super,position){$super(newlively.scene.Rectangle(position.extent(pt(40,40))));this.applyStyle({borderWidth:1,borderColor:Color.gray,fill:Color.white});this.setWithLayers([MorphPrototypeLayer]);this.shapeRoundEdgesBy(10);this.beClipMorph();},suppressHandles:true,addMorph:function($super,morph){varoldTarget=this.target();if(oldTarget)oldTarget.remove();this.setScale(1);varscale=this.bounds().width/morph.shape.bounds().width;morph.ignoreEvents();$super(morph);morph.setScale(scale+0.1);morph.centerAt(this.shape.bounds().center());console.log("scale"+scale);},okToBeGrabbedBy:function(){returnfalse},target:function(){returnthis.submorphs[0]},handlesMouseDown:Functions.True,onMouseDown:function(evt){if(!this.target())return;varduplicate=this.target().duplicate();duplicate.enableEvents();duplicate.setPosition(pt(0,0));duplicate.setScale(1);evt.hand.grabMorph(duplicate,evt)},onMouseMove:Functions.True,activeLayers:function(){return[]}});//m=newMorphPrototypeContainer(pt(100,100));WorldMorph.current().addMorph(m)//Morph.subclass("MorphPrototypePanel",{});MorphPrototypePanel.addMethods({suppressHandles:true,borderSpace:5,slotWidth:45,initialize:function($super,position,numberOfSlots){numberOfSlots=numberOfSlots||7;vartotalWidth=this.slotWidth*numberOfSlots+this.borderSpace;$super(newlively.scene.Rectangle(position.extent(pt(totalWidth,50))));this.applyStyle({borderWidth:2,borderColor:Color.darkGray,fill:Color.white});this.shapeRoundEdgesBy(10);for(vari=0;i<numberOfSlots;i++){this.addSlot(i);}},addSlot:function(n){varslot=newMorphPrototypeContainer(pt(n*this.slotWidth+this.borderSpace,this.borderSpace));this.addMorph(slot);}})//m=newMorphPrototypePanel(pt(100,100));WorldMorph.current().addMorph(m)106truetruefalsetruetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
null61