# nodeContentScale

Canonical: https://docs.shumoku.dev/en/library/api/nodeContentScale
Language: en

@shumoku/core · 0.4.2 · function

# nodeContentScale

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/diagram-presentation.ts#L22)

The safe central rectangle inside each nonrectangular outline.

```
nodeContentScale(shape?: NodeShape): { x: number; y: number }
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `shape` | `NodeShape` | No additional description. | `—` |

## Returns

```
{ x: number; y: number }
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/models/diagram-presentation.ts:22`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/diagram-presentation.ts#L22)
