> For the complete documentation index, see [llms.txt](https://docs.icraft.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.icraft.design/editor-features/resource-panel/basic-graphics/line.md). Agents can also search and read this documentation through its [MCP server](https://docs.icraft.design/~gitbook/mcp).

# Line

The **Line component** is used to draw **paths, directions, workflows, connections, or illustrative outlines** within a scene. It is widely applied in scenarios such as process flow visualization, pipeline routing explanation, spatial guidance, and logical relationship annotation.

Lines support multi-segment polylines, customizable styles, and directional arrows, making them one of the core components in the iCraft editor that combines both expressiveness and connectivity.

***

## How to Draw a Line?

#### Create a Line

* Click the **Line icon** in the system asset library, or drag the icon directly onto the canvas.&#x20;
* If there are already elements on the canvas:
  * Click an existing element, then click the Line icon in the floating toolbar on the right.\
    This allows you to quickly create a line starting from that element and connect it to another element. When the connected elements move, the line will automatically remain attached.
  * Alternatively, click on an empty area of the canvas to create control anchor points and freely draw a line. Press **`ENTER`** to finish drawing.

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2F65CbfANDyDHjcWNqZjlu%2F%E5%88%9B%E5%BB%BA%E7%BA%BF%E6%9D%A1-%E8%8B%B1%E6%96%87.gif?alt=media&amp;token=6da043c8-9869-4b24-9d0c-5f472c060363" alt=""><figcaption></figcaption></figure>

***

#### Edit a Line

* **Drag Nodes**\
  After selecting a line, you can drag the **control anchor points** along the path to adjust its direction.
* **Add Nodes**\
  With the line selected, click anywhere along the path to insert a new control anchor point.
* **Delete Nodes**\
  Select a control anchor point and press **`Delete`** to remove it.
* **Create Line Branches**\
  Select a control anchor point and click the 「**Arrow**」 icon in the floating toolbar on the right to create a new branch line starting from that point.
* **Insert Text**\
  Select a control anchor point and click the 「**Text**」 icon in the floating toolbar to add a text annotation at that point.

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2Fds1cgFhnDQeSWPeYnKOx%2F%E7%BC%96%E8%BE%91%E7%BA%BF%E6%9D%A1-%E8%8B%B1%E6%96%87.gif?alt=media&amp;token=81ecfdf7-85bf-4caa-a952-7fe4cd52fda1" alt=""><figcaption></figcaption></figure>

***

## Special Parameters of the Line

#### Shape

**Routing Mode**\
Determines how line segments connect to each other. Select from the dropdown menu. iCraft provides four common routing styles:

* **Normal Routing** – Straight lines at any angle; suitable for scenes requiring high flexibility.
* **Orthogonal Routing** – 90° horizontal/vertical lines; suitable for clearly structured diagrams emphasizing engineering standards.
* **45° Routing** – Balances engineering style and visual aesthetics; commonly used in workflow or system diagrams.
* **Curved Routing** – Ideal for flexible connections, complex paths, or irregular routes.

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FuoojT6u4fzqojTj2MJDQ%2F%E5%B8%83%E7%BA%BF%E6%96%B9%E5%BC%8F-%E8%8B%B1%E6%96%87.png?alt=media&amp;token=6b9ed830-2846-4142-b141-98efa48a7a88" alt=""><figcaption></figcaption></figure>

***

#### Style

* **Color**\
  Sets the display color of the line using the color picker.\
  Default color: **`#000000`**
* **Line Width**\
  Controls the thickness of the line.\
  Default value: 0.05\
  Adjustable range: `0.01 – 0.2`
* **Dashed Line**\
  Toggle switch. Controls whether the line is displayed as a dashed line.\
  Default: Off (solid line)
* **Dash Scale**\
  Effective only when **Dashed Line** is enabled. Controls the density of the dashed pattern. Smaller values produce longer dashes and wider spacing.\
  Default value: 1\
  Adjustable range: `0.1 ~ 10`

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FqiBVy122XfiJgY4AmwU0%2F%E6%A0%B7%E5%BC%8F-%E8%8B%B1%E6%96%87.png?alt=media&amp;token=88c531a0-005a-4a4b-b828-9884e536bbe3" alt=""><figcaption></figcaption></figure>

***

#### Arrow

* **Visible**\
  Toggle switch. Determines whether an arrow is displayed at the end of the line.\
  Default: Enabled
* **Two-Way**\
  Toggle switch. Determines whether arrows appear at **both ends** of the line.\
  Default: Disabled
* **Size**\
  Defines the size of the arrow.\
  Default value: 0.05\
  Adjustable range: `0.01 ~ 0.2`
* **Position**\
  Controls the offset ratio of the arrow along the end of the line.\
  Default value: 1 (at the end of the line)\
  Adjustable range: `0 ~ 1`

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FfQKvwzv7Z2BpzrY4UQfW%2F%E7%AE%AD%E5%A4%B4-%E8%8B%B1%E6%96%87.png?alt=media&amp;token=ca9dfe7b-8224-40cd-a5eb-14235b0d9b78" alt=""><figcaption></figcaption></figure>
