DataMatrix
Mandatory properties
The following properties are available in addition to the common label object properties.
| Property | Type | Description |
|---|---|---|
| type | string | Must be DataMatrix. |
| text | string | Barcode data. May contain dynamic text. |
Optional properties
The following properties are available in addition to the common label object properties.
| Property | Type | Description |
|---|---|---|
| moduleSize | number | Size of one module (cell) in millimeters. Default is 5. |
| size | object | Fixed symbol size in modules as {"width": W, "height": H}. If omitted, the minimum size that fits the data is used. |
| quietZone | boolean | Enable or disable the quiet zone. Default is true. |
| extraQuietZone | number | Extra quiet zone width added on all sides. |
| rectangular | boolean | If true, prefer a rectangular symbol over a square one. Default is false. |
| color | string | Color of the modules. May contain dynamic text. Default is black. |
Example
{
"type": "DataMatrix",
"x": 10.0,
"y": 10.0,
"text": "ABC-12345",
"moduleSize": 0.5
}