> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Geometry

> Geometry data.

Constants (`type` values):

| Constant                      | Value          | Description   |
| ----------------------------- | -------------- | ------------- |
| `Geometry.TYPE_STRAIGHT_LINE` | `straightLine` | Straight line |
| `Geometry.TYPE_CIRCLE`        | `GEO_circle`   | Circle        |
| `Geometry.TYPE_ELLIPSE`       | `GEO_ellipse`  | Ellipse       |
| `Geometry.TYPE_POLYGON`       | `GEO_polygon`  | Polygon       |

Fields:

| Field                    | Type                                                              | Description                                                                                                                                                                                              |
| ------------------------ | ----------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `showLassoAfterInsert`   | `boolean`                                                         | Only effective in [`insertGeometry`](/en/api-reference/supernote-plugin/plugin-comm-api/insert-geometry). Controls whether the lasso state is automatically shown after insertion; ignored by other APIs |
| `penColor`               | `number`                                                          | Pen color: `0x00` (black), `0x9D` (dark gray), `0xC9` (light gray), `0xFE` (white)                                                                                                                       |
| `penType`                | `number`                                                          | Pen type: `10` technical pen, `16` pressure pen, `11` marker pen, `14` calligraphy                                                                                                                       |
| `penWidth`               | `number`                                                          | Pen width (minimum `100`)                                                                                                                                                                                |
| `type`                   | `string`                                                          | Geometry type. See the table above                                                                                                                                                                       |
| `points`                 | [`Point[]`](/en/api-reference/supernote-plugin/types/point)       | Polygon points (pixel coordinates)                                                                                                                                                                       |
| `ellipseCenterPoint`     | [`Point \| null`](/en/api-reference/supernote-plugin/types/point) | Ellipse center point (pixel coordinates)                                                                                                                                                                 |
| `ellipseMajorAxisRadius` | `number`                                                          | Ellipse major axis radius (pixels)                                                                                                                                                                       |
| `ellipseMinorAxisRadius` | `number`                                                          | Ellipse minor axis radius (pixels)                                                                                                                                                                       |
| `ellipseAngle`           | `number`                                                          | Ellipse rotation angle (radians)                                                                                                                                                                         |
