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

# Types: editor: Shapes and pictures

## `Drawing`

A drawing object of the sheet, in z-order; the engine's typed read of the drawing part.

Not exported by name. You get it from the API.

```ts theme={null}
type Drawing = DrawingObject
```

## `DrawingSelection`

A selected drawing object: its place in the sheet's drawing list and how the file names it.

Import from `@reductoai/xlsx/view`.

| Name | Type | Description |
| - | - | - |
| `id` | `number` | |
| `index` | `number` | |
| `kind` | `"group" \| "chart" \| "chartEx" \| "picture" \| "shape" \| "connector" \| "frame"` | |
| `name` | `string` | |

## `DrawingTarget`

A drawing object by `cNvPr id`; `nth` tells apart objects that share one, as some files do.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `id` | `number` | |
| `nth` | `number` | |

## `PictureAppearance`

"screen" keeps the gridlines the sheet shows; "printer" the gridlines and headings it prints.

Not exported by name. You get it from the API.

```ts theme={null}
type PictureAppearance = "screen" | "printer"
```

## `RangeImageOptions`

Options of `rangeImage`.

Import from `@reductoai/xlsx/view`.

| Name | Type | Description |
| - | - | - |
| `gridlines?` | `boolean` | Paint gridlines. Default false, as Excel's Copy Picture and print leave them out. |
| `labels?` | `boolean` | Column letters and row numbers around the cells, so a reader can name a cell. Default false. |
| `scale?` | `number` | Image pixels per sheet pixel; 2 for a sharp image. Default 1. |

## `ShapeTextOpen`

How the editor opens: the caret at a sheet point, at the end, or every character selected.

Import from `@reductoai/xlsx/view`.

```ts theme={null}
type ShapeTextOpen = { kind: "point"; x: number; y: number } | { kind: "end" } | { kind: "all" }
```

## `ShapeTextState`

Import from `@reductoai/xlsx/view`.

| Name | Type | Description |
| - | - | - |
| `bold` | `boolean` | |
| `color` | `string` | |
| `font` | `string` | |
| `horizontal` | `NonNullable<ShapeTextPatch["horizontal"]>` | |
| `italic` | `boolean` | |
| `size` | `number` | |
| `strike` | `boolean` | |
| `underline` | `"None" \| "Single" \| "Double"` | |
| `vertical` | `NonNullable<ShapeTextPatch["vertical"]>` | |
