Commit 36a7e4a6 authored by Mark Hansen's avatar Mark Hansen
Browse files

Extract attribute types to their own pages

This should make it easier to find them in navigation, easier to edit them ('edit this page' button will work), and easier to put more examples in.
parent 5239d16f
---
name: addPoint
---
A [point](#k:point) with an optional prefix `'+'`.
---
name: lblString
---
An [escString](#k:escString) or an [HTML label](shapes.html#html).
......@@ -16,7 +16,7 @@ When a cluster attribute, it is used as the initial background
for the cluster. If a cluster has a filled [`style`](#d:style), the cluster's
[`fillcolor`](#d:fillcolor) will overlay the background color.
If the value is a [`colorList`](#k:colorList), a gradient fill is used. By
If the value is a [`colorList`](/docs/attr-types/colorList/), a gradient fill is used. By
default, this is a linear fill; setting [`style`](#d:style)`=radial` will
cause a radial fill. Only two colors are used. If the second color (after a
colon) is missing, the default color is used for it. See also the
......
......@@ -13,7 +13,7 @@ Basic drawing color for graphics, not text. For the latter, use the
[`fontcolor`](#d:fontcolor) attribute.
For edges, the value can either be a single color or a
[`colorList`](#k:colorList).
[`colorList`](/docs/attr-types/colorList/).
In the latter case, if `colorList` has no fractions,
the edge is drawn using parallel splines or lines,
......
......@@ -10,7 +10,7 @@ used_by: ENCG
---
This attribute specifies a color scheme namespace: the context for interpreting color names.
In particular, if a [`color`](#k:color) value has form `"xxx"` or `"//xxx"`,
In particular, if a [`color`](/docs/attr-types/color/) value has form `"xxx"` or `"//xxx"`,
then the color `xxx` will be evaluated according to the current color scheme.
If no color scheme is set, the standard X11 naming is used.
......
......@@ -21,7 +21,7 @@ the default is used, except for
format is `MIF`,
which use black by default.
If the value is a [`colorList`](#k:colorList), a gradient fill is
If the value is a [`colorList`](/docs/attr-types/colorList/), a gradient fill is
used. By default, this is a linear fill; setting [`style`](#d:style)`=radial` will
cause a radial fill. At present, only two colors are used. If the second
color (after a colon) is missing, the default color is used for it.
......
......@@ -9,4 +9,4 @@ types:
used_by: G
---
Specifies the separator characters used to split an attribute of type
[`layerRange`](#k:layerRange) into a list of ranges.
[`layerRange`](/docs/attr-types/layerRange/) into a list of ranges.
......@@ -9,5 +9,5 @@ types:
used_by: G
---
This indicates how connected components should be packed (cf.
[`packMode`](#k:packMode)). Note that defining `packmode` will automatically
[`packMode`](/docs/attr-types/packMode/)). Note that defining `packmode` will automatically
turn on packing as though one had set `pack=true`.
......@@ -14,7 +14,7 @@ Keeps the node at the node's given input position.
If true and the node has a [`pos`](#d:pos) attribute on input, `neato` or
`fdp` prevents the node from moving from the input position. This property
can also be specified in the [`pos`](#d:pos) attribute itself (cf. the [point](#k:point)
can also be specified in the [`pos`](#d:pos) attribute itself (cf. the [point](/docs/attr-types/point/)
type).
**Note:** Due to an artifact of the implementation, previous to 27 Feb 2014,
......
---
title: Attribute Types
weight: 5
---
Catalogue of the schemas/types/grammars expected by [attributes](/doc/info/attrs.html).
The following list gives the legal strings corresponding to values of
the given types.
The syntax for describing legal type strings is a mixture of literal strings,
stdio encodings (e.g., `%f` for a double), and regular expressions.
For regular expressions, `(...)*` indicates 0 or more copies of the expression
enclosed in the parentheses, `(...)+` indicates 1 or more, and
`(...)?` denotes 0 or 1 copy.
---
name: addDouble
title: addDouble
---
A double with an optional prefix `'+'`.
---
title: addPoint
---
A [point](/docs/attr-types/point/) with an optional prefix `'+'`.
---
name: clusterMode
title: clusterMode
---
* `"local"`
* `"global"`
......
---
name: color
title: color
---
Colors can be specified using one of four formats:
......
---
name: colorList
title: colorList
---
A colon-separated list of weighted color values: _WC_(:_WC_)\* where each
_WC_ has the form _C(;F)?_ with C a [color](#k:color) value and the optional
_WC_ has the form _C(;F)?_ with C a [color](/docs/attr-types/color/) value and the optional
_F_ a floating-point number, 0 ≤ _F_ ≤ 1\. The sum of the floating-point
numbers in a `colorList` must sum to at most 1.
......
---
name: dirType
title: dirType
---
For an edge `T -> H;`
......
---
name: double
title: double
---
Double-precision floating point number.
---
name: doubleList
title: doubleList
---
A colon-separated list of doubles: `"%f(:%f)*"`
where each `%f` is a double.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment