Type: array
path: #edgeSchema
$id: edgeSchema
- Items
- Type:
object
- path: #edgeSchema/items
- Properties
- animation
- See MDN Web Docs for more information about animation. An example is e.g.
dashdraw .2s linear infinite
(has to start with 'dashdraw'). Note that you can just the value todefault
. The animation will then fall back todashdraw .45s linear infinite
. If the value isreverse
, the fall back value will bedashdraw .45s linear infinite reverse
. The strokeDashArray (if none is specified) will fall back to6 4
. When set tonone
, no animation will be shown. - Type:
string
- path: #edgeSchema/items/properties/animation
- Example values:
- "default"
- "reverse"
- "none"
- See MDN Web Docs for more information about animation. An example is e.g.
- color
- The color of the edge.
- Type:
string
- path: #edgeSchema/items/properties/color
- Default: "black"
- label
- Set the label of the edge.
- Type:
string
- path: #edgeSchema/items/properties/label
- preset
- Refer to a preset defined in the config of the global defaults. If you haven't used a key in your config (but that key is used in your preset), the key from the preset is taken as a key in your individual config. You can refer to multiple presets: the first preset has priority on the second, the second on the third, ... In general, the priority of the keys is: local > first preset > second preset > ... > keys in global default.
- Types:
array
,string
- path: #edgeSchema/items/properties/preset
- thickness
- The thickness of the edge.
- Type:
number
- path: #edgeSchema/items/properties/thickness
- Default:
1.2
- strokeDasharray
- The pattern of dashes of the edges. See MDN Web Docs for more information. The default value
solid
will fall back to the CSS value0
,dashed
to6 4,
dottedto
1 3,
variedto
5 2 1 2and dashed-wide-gaps will fall back to
4 8`. - Types:
number
,string
- path: #edgeSchema/items/properties/strokeDasharray
- Example values:
- "solid"
- "dashed"
- "dotted"
- "varied"
- "dashed-wide-gaps"
- Default: "solid"
- The pattern of dashes of the edges. See MDN Web Docs for more information. The default value
- source
required
- ID of the source node.
- Type:
string
- path: #edgeSchema/items/properties/source
- target
required
- ID of the target node.
- Type:
string
- path: #edgeSchema/items/properties/target
- sourceHandle
- Set where the edge should attach to the source node.
- Type:
string
- path: #edgeSchema/items/properties/sourceHandle
- The value is restricted to the following:
- "left"
- "right"
- "top"
- "bottom"
- targetHandle
- Set where the edge should attach to the target node.
- Type:
string
- path: #edgeSchema/items/properties/targetHandle
- The value is restricted to the following:
- "left"
- "right"
- "top"
- "bottom"
- type
- Set how the edge should look like (straight line, curve ...).
default
= Bézier curve. - Type:
string
- path: #edgeSchema/items/properties/type
- The value is restricted to the following:
- "default"
- "step"
- "smoothstep"
- "straight"
- Default: "default"
- Set how the edge should look like (straight line, curve ...).
- zIndex
- Controls the stacking order of the edge. For more information, go to the MDN Web Docs.
- Type:
number
- path: #edgeSchema/items/properties/zIndex
- markerStart
- Type:
object
- path: #edgeSchema/items/properties/markerStart
- Properties
- type
- Set the type of the arrowhead.
- Type:
string
- path: #edgeSchema/items/properties/markerStart/properties/type
- The value is restricted to the following:
- "arrow"
- "arrowclosed"
- orient
- Set the orient of the arrowhead. See the MDN Web Docs for more information.
- Types:
string
,number
- path: #edgeSchema/items/properties/markerStart/properties/orient
- color
- Set the color of the arrowhead. If you do not specify a color, the color of the arrowhead will be the same as the color of the edge.
- Type:
string
- path: #edgeSchema/items/properties/markerStart/properties/color
- size
- Set the size of the arrowhead.
- Type:
number
- path: #edgeSchema/items/properties/markerStart/properties/size
- type
- markerEnd
- Type:
object
- path: #edgeSchema/items/properties/markerEnd
- Properties
- type
- Set the type of the arrowhead.
- Type:
string
- path: #edgeSchema/items/properties/markerEnd/properties/type
- The value is restricted to the following:
- "arrow"
- "arrowclosed"
- orient
- Set the orient of the arrowhead. See the MDN Web Docs for more information.
- Types:
string
,number
- path: #edgeSchema/items/properties/markerEnd/properties/orient
- color
- Set the color of the arrowhead. If you do not specify a color, the color of the arrowhead will be the same as the color of the edge.
- Type:
string
- path: #edgeSchema/items/properties/markerEnd/properties/color
- size
- Set the size of the arrowhead.
- Type:
number
- path: #edgeSchema/items/properties/markerEnd/properties/size
- type
- animation
Generated with json-schema-md-doc