# ChromeLayoutValue

What [`MapChrome`](https://docs.mapcairn.com/api/map/MapChrome.md) tells the surfaces and slots inside it.

This is an interface exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import type { ChromeLayoutValue } from "@mapcairn/map";
 
interface ChromeLayoutValue
```

## Properties

### finePointer

```ts
readonly finePointer: boolean;
```

The primary input is a fine pointer, so zoom buttons and keyboard help make sense by default.

### layout

```ts
readonly layout: ChromeLayout;
```

Bottom sheet on narrow, tall screens; side panel from 768px wide or under 500px tall.

### mapKeyClearance

```ts
readonly mapKeyClearance?: number | null;
```

Distance from the map's bottom edge to the top of the visible map key.
Null while the key is absent or has given way.

### panelEdge

```ts
readonly panelEdge: number | null;
```

The distance from inline-start to the open panel's far edge, in px. Null in the sheet layout or before measurement.

### viewport

```ts
readonly viewport: {
        readonly width: number;
        readonly height: number;
    };
```

The size of the chrome container, in CSS pixels.

## Methods

### publishSheetTop

```ts
publishSheetTop(px: number | null): void;
```

The sheet publishes its current top edge (px from the top of the chrome
container) so the bottom slots can ride above it. Pass null when closed.

- `px` (`number | null`)

## See also

- [`ChromeLayout`](https://docs.mapcairn.com/api/core/ChromeLayout.md)

Source: [packages/map/src/chrome/layoutContext.tsx:7](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/chrome/layoutContext.tsx#L7)
