Lively Kernel canvas
DraftScaleWidget40
10004.7957546373859605Wikicontroltrue
ThisisaTextMorph
if($morph('scaleWidget'))$morph('scaleWidget').remove()p=newScaleMorph();p.openInWorld()p.name="scaleWidget"p.setPosition(pt(100,100))p.setTarget($morph('joe'))//p.setTarget(null)10truetruefalsetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
10nulltruetrue
5.346000000000001
1.35truetruetrue
1.346000000000001true
- 10)\n\t\t\t\t\treturn 10;\n\t\t\t}"}]]>
nullfalsetruenullfalse
Draft.js:ScaleMorphfalsenullfalse
false
false
falsenullfalse
http://lively-kernel.org/repository/webwerkstatt/draft/truetruetruetruetrue
truetrue
1truetruetrue
connection.js(notparsed)falsetruefalse0false
Draft.jsfalsetruefalse0false
Journal.js(notparsed)falsetruefalse0false
JournalTest.js(notparsed)falsetruefalse0false
Localcodefalsetruefalse0false
Migration.js(notparsed)falsetruefalse0false
NetworkExtension.js(notparsed)falsetruefalse0false
widgets2.js(notparsed)falsetruefalse0false244.19999694824221nullnulltruetruetrue
1true
null
null
null
nulltruetrue
Draftfalsetruefalse0false
Draft(extension)falsetruefalse0false
ScaleMorphfalsetruefalse0false284.39999389648442nullnulltruefalsenullnulltruetrue
1true
null
null
null
nulltruetrue
defaultExtent(proto)falsetruefalse0false
layoutManager(proto)falsetruefalse0false
padding(proto)falsetruefalse0false
style(proto)falsetruefalse0false
initialize(proto)falsetruefalse0false
setupConnections(proto)falsetruefalse0false
setTarget(proto)falsetruefalse0false286.39996337890625-1nullnullnulltruenulltruetrue
1true
null
null
null
nulltruetrue
20null
BoxMorph.subclass('ScaleMorph',{defaultExtent:pt(40,200),layoutManager:newVerticalLayout(),padding:newRectangle(5,5,0,0),style:{fill:Color.gray},initialize:function($super,bounds){bounds=bounds||pt(0,0).extent(this.defaultExtent);$super(bounds)this.scaleValue=1;this.scaleSlider=Widget.makeSlider(newRectangle(0,0,40,200));this.scaleText=newTextMorph(newRectangle(0,0,40,20));this.addMorph(this.scaleSlider);this.addMorph(this.scaleText);varm=this.scaleText;m.setTextString("-");m.beInputLine();m.suppressHandles=true;m.suppressGrabbing=true;varm=this.scaleSlider;m.suppressHandles=true;m.suppressGrabbing=true;//ok,fixlayoutforthemomentthis.shape.setBounds(this.submorphBounds(true).outsetByRect(this.padding));this.suppressHandles=true;this.setupConnections();returnthis.panel},setupConnections:function(){connect(this,'scaleValue',this.scaleText,'setTextString',{converter:function(value){returnString(value.toFixed(2))}})connect(this.scaleText,'savedTextString',this,'scaleValue',{converter:function(value){returnNumber(value)}})connect(this.scaleSlider,'value',this,'scaleValue',{converter:function(value){varthreshold=5if(value<threshold)return(value/threshold)elsereturnvalue-threshold+1}})//ATTENTION:bidirectionaldataflow,maybedangerous...connect(this,'scaleValue',this.scaleSlider,'setValue',{converter:function(value){varthreshold=5value=Number(value)if(value<1)varresult=value*thresholdelsevarresult=value+threshold-1if(result<0)return0;if(result>10)return10}})},setTarget:function(target){//thereshouldonlybeonetarget...if(this.target){disconnect(this,'scaleValue',this.target,'setScale');};if(target){connect(this,'scaleValue',target,'setScale')};this.target=target;},}) 10)\n\t\t\t\t\treturn 10\n\t\t\t}})\n\t},\n\n\tsetTarget: function(target) {\n\n\t\t// there should only be one target...\n\t\tif (this.target) {\n\t\t\tdisconnect(this, 'scaleValue', this.target, 'setScale');\n\t\t};\n\n\t\tif (target) {\n\t\t\tconnect(this, 'scaleValue', target, 'setScale')\n\t\t};\n\t\tthis.target = target;\n\t},\n\n\n\n\n})\n\n\n\n\n"]]>95truetrue2000000 10)\n\t\t\t\t\treturn 10\n\t\t\t}})\n\t},\n\n\tsetTarget: function(target) {\n\n\t\t// there should only be one target...\n\t\tif (this.target) {\n\t\t\tdisconnect(this, 'scaleValue', this.target, 'setScale');\n\t\t};\n\n\t\tif (target) {\n\t\t\tconnect(this, 'scaleValue', target, 'setScale')\n\t\t};\n\t\tthis.target = target;\n\t},\n\n\n\n\n})\n\n\n\n\n"]]> 10)\n\t\t\t\t\treturn 10\n\t\t\t}})\n\t},\n\n\tsetTarget: function(target) {\n\n\t\t// there should only be one target...\n\t\tif (this.target) {\n\t\t\tdisconnect(this, 'scaleValue', this.target, 'setScale');\n\t\t};\n\n\t\tif (target) {\n\t\t\tconnect(this, 'scaleValue', target, 'setScale')\n\t\t};\n\t\tthis.target = target;\n\t},\n\n\n\n\n})\n\n\n\n\n"]]>truetrue
1truetruetrue
20null
truetruetruetrue
1truetruetrue
Addmodulefalsenullfalsetrue
Loadallfalsenullfalsetrue
LineNofalsenullfalsetrue
Refreshfalsenullfalsetrue
Evalonfalsenullfalsetrue
Sortfalsenullfalsetrue
Viewas...falsenullfalse
classesfalsenullfalsetruetruetrue
functionsfalsenullfalsetruetruetrue
objectsfalsenullfalsetruetruetrue
truetrue
nullfalsenullnullnullnullfalse
nulltruenull78