Interface ILineItemData
A structure containing default parameters of lines.
Package: @aurigma/design-atoms-interfaces
Remarks
You can apply these parameters to the line
object through either **clientConfig.json** or IConfiguration.
Examples
{
"defaultItemsConfig": {
"line": {
"width": 8,
"color": "rgb(255,0,0)",
"point0": { "x": 10, "y": 10 },
"point1": { "x": 100, "y": 10 },
"linePermissions": {
"allowChangeLineWidth": false,
"allowChangeLineColor": false
}
}
}
}
Properties
color
A default color of lines. By default, this value is "rgba(0,0,0,1)"
.
Declaration
color?: string;
Property Value
Type | Description |
---|---|
string | A default color of lines. By default, this value is |
fixedWidth
Declaration
fixedWidth?: boolean;
Property Value
Type | Description |
---|---|
boolean |
linePermissions
A structure defining line permissions.
Declaration
linePermissions?: ILinePermissionsData;
Property Value
Type | Description |
---|---|
ILinePermissionsData | A structure defining line permissions. |
overprintStroke
Declaration
overprintStroke?: boolean;
Property Value
Type | Description |
---|---|
boolean |
point0
A default start point of lines.
Declaration
point0?: IPointF;
Property Value
Type | Description |
---|---|
IPointF | A default start point of lines. |
point1
A default end point of lines.
Declaration
point1?: IPointF;
Property Value
Type | Description |
---|---|
IPointF | A default end point of lines. |
width
A default width of lines, in points. By default, this value is 1
.
Declaration
width?: number;
Property Value
Type | Description |
---|---|
number | A default width of lines, in points. By default, this value is |