Monomer¶
One occurrence of a monomer template in the drawing.
Appears in¶
A top-level value under a key such as monomer0 of the Document, referenced from root.nodes. Connections refer to the monomer by that key.
Identified by¶
"type": "monomer".
Attributes¶
type¶
Type: string
Required: yes
Values:
"monomer"
Object type; always monomer.
id¶
Type: string
Required: yes
Pattern:
^(0|[1-9][0-9]*)$Values: a decimal integer, such as
"0"
Identifier of the monomer, unique among the monomers of the document; written as a string.
templateId¶
Type: string
Required: yes
The id of the Monomer template this monomer is an occurrence of.
alias¶
Type: string
Required: yes
Symbol that labels the monomer: the template’s alias.
position¶
Type: Point
Required: yes
Where the origin of the template’s coordinates is placed in the drawing.
seqid¶
Type: integer
Required: no
Values: at least 1
Number of the monomer in its chain, counted from 1; the numbering need not run from left to right in the drawing.
expanded¶
Type: boolean
Required: no
Default:
false
Whether the monomer is shown as its full structure rather than as a symbol.
transformation¶
Type: object
Required: no
How the full structure of an expanded monomer is flipped, rotated and shifted relative to its template; omitted when it is not.
The three steps apply in this order: the flip, then the rotation, then the shift. The flip and the rotation are made about the centre of the bounding box of the template’s atoms.
transformation.flip¶
Type: string
Required: no
Values:
"horizontal","vertical"
Mirror the structure left to right (horizontal) or top to bottom (vertical); omitted for no flip.
transformation.rotate¶
Type: number
Required: no
Default:
0Units: radians
Angle of rotation, counter-clockwise with the y axis pointing up.
transformation.shift¶
Type: object
Required: no
Displacement of the structure after the rotation.
transformation.shift.x¶
Type: number
Required: yes
Units: KET length units
Horizontal displacement.
transformation.shift.y¶
Type: number
Required: yes
Units: KET length units
Vertical displacement, with the y axis pointing up.
annotation¶
Type: Object annotation
Required: no
A note attached to the monomer.
selected¶
Type: boolean
Required: no
Default:
false
Editor state: the monomer is selected. Carries no meaning; written only as true.
Rules¶
type,id,templateId,aliasandpositionare required.templateIdis theidof a monomer template of the document, androot.templateslists that template.The monomer is listed in
root.nodes.idvalues are unique among the monomers and ambiguous monomers of the document.A
transformationhas at least one offlip,rotateandshift.A writer omits a transformation that changes nothing.
Gotchas¶
Connections refer to a monomer by its top-level key, such as
monomer0, not by itsid.