Lively Kernel canvas
//
FixModel...40
10000.20136653096416848Wikicontroltrue
10000.3877904774850353Wikicontroltrue
10004.969572733276034e-36Wikicontroltrue
-----falsetruefalse0
fontCourier12:spacewidth7from21xWidth7falsetruefalse0
worldis1:WorldMorph([[0,0,1500,2000]])falsetruefalse0
startingWikiNavigatorfalsetruefalse0
status207onPROPFINDhttp://localhost/lk/webwerkstatt/draft/FixSliderMorph.xhtmlfalsetruefalse0
http://localhost/lk/webwerkstatt/draft/../lib/anonymous_module_2loadedin25msfalsetruefalse0
http://localhost/lk/webwerkstatt/draft/../lib/anonymous_module_1loadedin493msfalsetruefalse0
fontHelvetica40:spacewidth11from51xWidth20falsetruefalse0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalse0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalse0
ResizingSVGcanvasfalsetruefalse0
Moduleloadcheckdone.29modulesloaded.falsetruefalse0
Clipboardactionnotsuccessfulfalsetruefalse0
Clipboardactionnotsuccessfulfalsetruefalse0
status:ReferenceError:Can'tfindvariable:sliderfalsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([[0,0,1500,2000]])falsetruefalse0
status200onGEThttp://localhost/lk/webwerkstatt/draft/FixSliderMorph.xhtmlfalsetruefalse0
extendForSerializationundefinedfalsetruefalse0
status204onPUThttp://localhost/lk/webwerkstatt/draft/FixSliderMorph.xhtmlfalsetruefalse0
successpublishingworldathttp://localhost/lk/webwerkstatt/draft/FixSliderMorph.xhtml,status204falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([[0,0,1500,2000]])falsetruefalse0
status200onGEThttp://localhost/lk/webwerkstatt/draft/FixSliderMorph.xhtmlfalsetruefalse0
extendForSerializationundefinedfalsetruefalse0820-1nulltrue0falsetruetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
truetrue100false
truefalse050
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
10005.653276473479972e-15Wikicontroltrue
SliderMorph.addMethods({initialize:function($super,initialBounds,scaleIfAny){$super(initialBounds);//thisdefaultselfconnectionmaygetoverwrittenby,eg,connectModel()...varmodelClass=this.selfModelClass;varmodel=newmodelClass({},{});this.connectModel(model.newRelay({Value:"Value",SliderExtent:"SliderExtent"}));this.valueScale=(scaleIfAny===undefined)?1.0:scaleIfAny;varslider=Morph.makeRectangle(0,0,this.mss,this.mss);slider.relayMouseEvents(this,{onMouseDown:"sliderPressed",onMouseMove:"sliderMoved",onMouseUp:"sliderReleased"});this.slider=this.addMorph(slider);this.slider.linkToStyles(['slider']);this.adjustForNewBounds();this.adjustFill();returnthis;},applyStyle:function($super,spec){$super(spec);//needtocalladjusttoupdategraphics,butonlyaftersliderexistsif(this.slider){this.adjustForNewBounds();this.adjustFill();}},adjustSliderParts:function($super){//Thismethodadjuststhesliderforchangesinvalueaswellasgeometryvarval=this.getScaledValue();varbnds=this.shape.bounds();varext=this.getSliderExtent();if(this.vertical()){//morevertical...varelevPix=Math.max(ext*bnds.height,this.mss);//thicknessofelevatorinpixelsvartopLeft=pt(0,(bnds.height-elevPix)*val);varsliderExt=pt(bnds.width,elevPix);}else{//morehorizontal...varelevPix=Math.max(ext*bnds.width,this.mss);//thicknessofelevatorinpixelsvartopLeft=pt((bnds.width-elevPix)*val,0);varsliderExt=pt(elevPix,bnds.height);}this.slider.setBounds(bnds.topLeft().addPt(topLeft).extent(sliderExt));//this.slider.shapeRoundEdgesBy((this.vertical()?sliderExt.x:sliderExt.y)/2);this.slider.shapeRoundEdgesBy(Math.min(sliderExt.x,sliderExt.y)/2);//this.adjustFill();}})51truetruefalsetruetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
0.46390000000000003-0.023278102280110361null0.4577
10001.1679301972557562e-11Wikicontroltrue
10005.850217699244179e-13Wikicontroltrue
10000.000004160272848757414Wikicontroltrue
10003.4530227360209826Wikicontroltrue
nulltruewidget=newWidget();model=Record.newNodeInstance({Value:null});widget.ownModel(model);slider=$morph("slider")slider.formalModel=model;slider.ownerWidget=widgetslider.getValue()8truetruefalsetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
null82