Back to Website
Show / Hide Table of Contents

Interface ILineItemData

A structure containing default parameters of lines.

Inheritance
IItemData
ILineItemData
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 "rgba(0,0,0,1)".

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 1.

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback