Line
This article describes the line component and its properties.
Squirrel 1.12 introduced a “Quick Set-up” tab on many property panels. The properties described on this page are available on the “All Properties” tab of the property panel. For more details on “Quick Set-Up” properties see this article
The Line is a graphical component that can be styled to suit a Squirrel project theme.
Select Line from the Shapes category of the component library. Move the mouse cursor over the canvas and click to add a line to your project.
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2Fsquirrel365.io%2Fwp-content%2Fuploads%2F2020%2F09%2FLine5-300x140.png&width=768&dpr=4&quality=100&sign=fef8523b&sv=1)
Line Properties
The line properties consist of sizing and positioning properties as well as STYLING and DYNAMIC VISIBILITY drawers. This guide will describe the sizing and positioning properties as well as the styling properties; the dynamic visibility properties are generic to each visible component and a separate guide and tutorial on dynamic visibility can be found here.
Position, Length, and Angle
Once a line has been added to the canvas, you can set the position, length, and angle properties in 3 ways:
Type in a value
Bind to a value in a spreadsheet cell
Click and drag to move the line or grab either handle to change size/angle:
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2Fsquirrel365.io%2Fwp-content%2Fuploads%2F2020%2F11%2FLine6.gif&width=768&dpr=4&quality=100&sign=7f1f5ae5&sv=1)
Pressing the shift key (⇧ Mac) while making manual adjustments to the line will constrain movement to a horizontal or vertical plane (depending on the mouse direction when the shift key is pressed) and also constrain the size adjustment direction and angle to the nearest 45°.
STYLING
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2Fsquirrel365.io%2Fwp-content%2Fuploads%2F2020%2F09%2FLine1-300x229.png&width=768&dpr=4&quality=100&sign=3b4ba183&sv=1)
Line color – The line will be drawn in the color that matches the value entered in the property field. This can be set in 3 ways:
Clicking the colored rectangle and using the color picker
Typing in a color value
Binding to a color value in a spreadsheet cell
Opacity – This determines the transparency of the line. This property can be set in 3 different ways:
Using the spinner buttons
Typing in a value
Binding to value in a spreadsheet cell
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2Fsquirrel365.io%2Fwp-content%2Fuploads%2F2020%2F09%2FLine2.png&width=768&dpr=4&quality=100&sign=f250599&sv=1)
Start cap – Use this property to change the style of the start cap of the line. A line on the canvas is drawn from the left to the right. In this default position, changing the style of the start cap will cause the left end of the line to change the style (this may vary if the angle of the line is adjusted sufficiently). The options are blunt, rounded, and arrow solid:
End cap – Use this property to change the style of the end cap of the line. A line on the canvas is drawn from the left to the right. In this default position, changing the style of the end cap will cause the right end of the line to change the style (this may vary if the angle of the line is adjusted sufficiently). The options are blunt, rounded, and arrow solid:
Last updated