# publish

function in `@dioramajs/diorama/model/rig`

```ts
import { publish } from '@dioramajs/diorama/model/rig'
```

Called by `model`: the element's rig, or undefined when it goes.

```ts
function publish(element: Element, rig: Rig | undefined): void
```

| Parameter | Type | Description |
| --- | --- | --- |
| `element` | `Element` |  |
| `rig` | `Rig \| undefined` |  |

Also exported from `@dioramajs/model/rig`.

Defined in [packages/model/src/rig.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/model/src/rig.ts#L42).
