# Constants

Import these from `@grafloria/renderer`.

## Constants

### `ANCHORS`

```ts
const ANCHORS: "anchors"
```

### `CONNECTION_POINTS`

```ts
const CONNECTION_POINTS: "connectionPoints"
```

### `CONNECTORS`

```ts
const CONNECTORS: "connectors"
```

### `EXTENSION_API_VERSION`

The engine/host API version extensions declare compatibility against.

```ts
const EXTENSION_API_VERSION: "1.0.0"
```

### `GLOBAL_DIAGRAM_REGISTRY`

The process-wide registry — what the module-level `register*` functions write to.

```ts
const GLOBAL_DIAGRAM_REGISTRY: DiagramRegistry
```

### `LABEL_TEMPLATES`

```ts
const LABEL_TEMPLATES: "labelTemplates"
```

### `LINK_TEMPLATES`

```ts
const LINK_TEMPLATES: "linkTemplates"
```

### `MARKERS`

```ts
const MARKERS: "markers"
```

### `PORTAL_CLASS`

```ts
const PORTAL_CLASS: "grafloria-portal"
```

### `SCREEN_LAYER_CLASS`

```ts
const SCREEN_LAYER_CLASS: "grafloria-screen-layer"
```

### `SHAPES`

Table names. Constants rather than string literals so a typo cannot silently
create a second, empty table that reads as "nothing registered".

```ts
const SHAPES: "shapes"
```

### `STYLES`

```ts
const STYLES: "styles"
```

### `WORLD_PORTAL_CLASS`

```ts
const WORLD_PORTAL_CLASS: "grafloria-world-portal"
```
