# Labels

This is the API for labels:

```
Default origin = yappCoordBox: box[0,0,0]

Parameters:
  Required:
   p(0) = posx
   p(1) = posy/z
   p(2) = rotation degrees CCW
   p(3) = depth : positive values go into case (Remove) negative valies are raised (Add)
   p(4) = plane { yappLeft | yappRight | yappFront | yappBack | yappLid | yappBase }
   p(5) = font
   p(6) = size
   p(7) = "label text"
  Optional:
   p(8) = Expand : Default = 0 : mm to expand text by (making it bolder) 
   p(9) = Direction : { <yappTextLeftToRight>, yappTextRightToLeft, yappTextTopToBottom, yappTextBottomToTop }
   p(10) = Horizontal alignment : { <yappTextHAlignLeft>, yappTextHAlignCenter, yappTextHAlignRight }
   p(11) = Vertical alignment : {  yappTextVAlignTop, yappTextVAlignCenter, yappTextVAlignBaseLine, <yappTextVAlignBottom> } 
   p(12) = Character Spacing multiplier (1.0 = normal)

```

Here is the code for the labels in the next images:

```
labelsPlane = 
[
    [ 30, 30,  90, 1, yappBase,    "Liberation Mono:style=bold", 7, "BASE" ]
   ,[ 60, 30,  30, 1, yappBase,    "Liberation Mono:style=bold", 7, "BASE30" ]
   ,[100, 30, 210, 1, yappBase,    "Liberation Mono:style=bold", 7, "BASE210" ]
   ,[ 30, 30,  90, 1, yappLid,     "Liberation Mono:style=bold", 7, "LID" ]
   ,[ 60, 30,  45, 1, yappLid,     "Liberation Mono:style=bold", 7, "LID45" ]
   ,[  8, 10,   0, 1, yappLeft,    "Liberation Mono:style=bold", 7, "LEFT" ]
   ,[ 10, 10,   0, 1, yappRight,   "Liberation Mono:style=bold", 7, "RIGHT" ]
   ,[ 20, 10,   0, 1, yappFront,   "Liberation Mono:style=bold", 7, "FRONT" ]
   ,[ 20, 10,   0, 1, yappBack,    "Liberation Mono:style=bold", 7, "BACK" ]

```

<div><figure><img src="/files/PX6mg4T6MeMEahpoa3lr" alt=""><figcaption></figcaption></figure> <figure><img src="/files/PK4YwVzvDpBGOTVGF1BX" alt=""><figcaption></figcaption></figure></div>

Here is an example if the use of the Depth (**p(3)**) parameter:

```
labelsPlane =  
[
    [ 20, 10, 90, 1, yappLid,  "Liberation Mono:style=bold", 7, "LABEL depth 1 I" ]
   ,[ 40, 10, 90, 2, yappLid,  "Liberation Mono:style=bold", 7, "LABEL depth 2 I" ]
   ,[ 60, 10, 90, 3, yappLid,  "Liberation Mono:style=bold", 7, "LABEL depth 3 I" ]
   ,[ 80, 10, 90, 4, yappLid,  "Liberation Mono:style=bold", 7, "LABEL depth 4 I" ]

];
```

<figure><img src="/files/V21nme0U3y0gwtz9olty" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="/files/n9vIVQpIek0kr6v67uxk" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mrwheel-docs.gitbook.io/yappgenerator_en/labels.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
