Class Index | File Index

Classes


Namespace Joint.dia.devs

Holds functionality related to Discrete EVent System (DEVS) diagrams.
Defined in: joint.dia.devs.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<static>  
Joint.dia.devs.arrow
Predefined arrow.
Method Summary
Method Attributes Method Name and Description
<static>  
Joint.dia.devs.Model.create(properties)
DEVS atomic/coupled model.
Namespace Detail
Joint.dia.devs
Field Detail
<static> Joint.dia.devs.arrow
Predefined arrow.
a1.port("o", "out1").joint(c1.port("i", "in"), Joint.dia.devs.arrow);
Method Detail
<static> Joint.dia.devs.Model.create(properties)
DEVS atomic/coupled model.
var a1 = Joint.dia.devs.Model.create({
  rect: {x: 30, y: 90, width: 100, height: 60},
  label: "Atomic 1",
  attrs: {
    fill: "90-#000-#f00:1-#fff"
  },
  iPorts: ["in1"],
  oPorts: ["out1", "out2"]
});
Parameters:
{Object} properties
{Object} properties.rect
Bounding box of the model (e.g. {x: 50, y: 100, width: 150, height: 100}).
{String} properties.label Optional
The name of the model.
{Number} properties.labelOffsetX Optional
Offset in x-axis of the label from the model rectangle origin.
{Number} properties.labelOffsetY Optional
Offset in y-axis of the label from the model rectangle origin.
{Number} properties.portsOffsetX Optional
Offset in x-axis of the ports from the model rectangle origin.
{Number} properties.portsOffsetY Optional
Offset in y-axis of the ports from the model rectangle origin.
{Number} properties.iPortRadius Optional
Radius of the input ports circle.
{Number} properties.oPortRadius Optional
Radius of the output ports circle.
{Object} properties.iPortAttrs Optional
SVG attributes of the appearance of the input ports.
{Object} properties.oPortAttrs Optional
SVG attributes of the appearance of the output ports.
{Number} properties.iPortLabelOffsetX Optional
Offset in x-axis of the input ports label.
{Number} properties.oPortLabelOffsetX Optional
Offset in x-axis of the output ports label.
{array} properties.iPorts Optional
The input port names.
{array} properties.oPorts Optional
The output port names.
{Object} properties.attrs Optional
SVG attributes of the appearance of the model.

JointJS - JavaScript diagramming library, © David Durman, 2009 - 2011