Lively Kernel canvas
// this script is evaluated on world load
Fabrik.addConvenienceFunctions()
null
false
function(otherPinHandle){if(!this.isConnectableTo(otherPinHandle)){console.log('triedtoconnectpinsbutaconnectionisnotallowed')return;}//forceanupdate,evenifthereisalreadyaconnectionif(!otherPinHandle.isFakeHandle&&otherPinHandle.getValue()!=this.getValue())otherPinHandle.setValue(this.getValue());varexistingConnection=this.detectConnectorWith(otherPinHandle);if(existingConnection){console.log('Thereexistsalreadyaconnectionfrom'+this.getName()+'to'+otherPinHandle.getName());returnexistingConnection;};//ifthereexistsaconnectionintheotherdirectionmakeittwowayvarconnector=otherPinHandle.detectConnectorWith(this);if(connector){connector.beBidirectional();returnconnector;};//Noconnectionexists;makeanewoneconnector=newPinConnector(this,otherPinHandle);this.connectors.push(connector);otherPinHandle.connectors.push(connector);//FIXMEif(this.componentinstanceofFabrikComponent&&this.component===otherPinHandle.component)this.component.pluginConnector(connector);elseif(this.componentinstanceofFabrikComponent&&this.component.fabrik===otherPinHandle.component)otherPinHandle.component.pluginConnector(connector);elseif(this.componentinstanceofFabrikComponent&&this.component===otherPinHandle.component.fabrik)this.component.pluginConnector(connector);elsethis.component.fabrik&&this.component.fabrik.pluginConnector(connector);returnconnector;}
true
true
false
50
true
true
false
false
true
false
false
null
null
becomeInputPin
false
true
false
0
false
null
buildView
false
true
false
0
false
null
connectBidirectionalTo
false
true
false
0
false
null
connectFromFakeHandle
false
true
false
0
false
null
connectTo
false
true
false
0
false
null
constructor
false
true
false
0
false
null
copyFrom
false
true
false
0
false
null
createFakePinHandle
false
true
false
0
false
null
deleteView
false
true
false
0
false
null
detectConnectorWith
false
true
false
0
false
null
getName
false
true
false
0
false
null
getValue
false
true
false
0
false
null
initialize
false
true
false
0
false
null
isConnectableTo
false
true
false
0
false
null
isConnectedTo
false
true
false
0
false
null
isInputPin
false
true
false
0
false
null
reachablePins
false
true
false
0
false
null
remove
false
true
false
0
false
null
setValue
false
true
false
0
false
169
null
4
null
null
true
false
false
null
true
true
false
false
1
true
false
true
true
false
false
null
null
4
null
FabrikMorph
false
true
false
0
false
null
FabrikComponent
false
true
false
0
false
null
ComponentModel
false
true
false
0
false
null
PinMorph
false
true
false
0
false
null
PinHandle
false
true
false
0
false
null
lively.Fabrik.ConnectorMorph
false
true
false
0
false
null
Component
false
true
false
0
false
null
TextComponent
false
true
false
0
false
null
FunctionComponent
false
true
false
0
false
null
ComponentBox
false
true
false
0
false
null
PointSnapper
false
true
false
0
false
null
FlowLayout
false
true
false
0
false
177
null
4
null
null
true
false
false
null
true
true
false
false
1
true
false
true
true
false
false
null
4
null
-2.6655618400493752
null
false
null
false
null
1.690225252813235
null
false
null
false
null
-2.873872782653623
null
false
null
false
null
1.4800061339386998
null
false
null
false
null
-2.2793086563363945
null
false
false
null
0.6293176628019757
null
false
null
false
null
null
false
allFabrikClassNames()
null
true
true
false
4
true
null
0
null
true
true
false
false
true
false
null
false
functionf(input)
false
null
false
true
false
null
true
false
null
null
false
null
null
null
null
false
allMethodsFor(input)
null
true
true
false
7
true
null
6
null
true
true
false
false
true
false
null
false
functionf(input)
false
null
false
true
false
null
true
false
null
null
false
null
null
null
false
getMethodStringFor(this.getInput(),methodname)
1
null
true
true
false
39
true
null
39
null
true
true
false
false
true
false
null
false
functionf(input,methodname)
false
null
false
true
false
null
true
false
null
true
false
null
true
false
null
null
false
null
null
true
false
null
null
true
false
null
null
true
false
null
null
true
false
null
null
true
false
null
null
true
null
false
true
null
null
true
null
false
true
null
false
null
false
FabrikBrowser
false
null
false
false
false
false
null
false
false
null
null
null
null
false
true
null
null
null
null
null
null
1242208346450
2979
1
21
null
1242208346
null