Binding

new Binding(source, destination, routingKey)

Binging class represents the binding between an exchange and a queue.
Parameters:
NameTypeDescription
sourceobject
destinationobject
routingKeystringused routing key

Extends

Methods

addToScene(scene) → {object}

Add an object as actor to scene.
Parameters:
NameTypeDescription
sceneScenescene on canvas
Inherited From
Returns:
this
Type: 
object

createUUID() → {string}

Generates an UUID, used to identify every object in the scene.
https://www.w3resource.com/javascript-exercises/fundamental/javascript-fundamental-exercise-253.php
Inherited From
Returns:
- uuid
Type: 
string

drawLabel(text)

http://phrogz.net/tmp/canvas_rotated_text.html
Parameters:
NameTypeDescription
textstringtext to draw as label

render()

Renders the line between bind components.

setCoords()

Sets x and y for the source and destination property.