resolveSplitDirection

Returns the concrete axis a split lays out on.

@internote/canvas-sdk/hostFunction
On this page
import { resolveSplitDirection } from '@internote/canvas-sdk/host';

auto stacks while the canvas shares the page with the prose, where the canvas column is far narrower than it is tall, and goes side by side in presentation, where the canvas has the whole screen. An explicit direction is honoured in both.

#Values

horizontalvertical

#Parameters

direction
The split's direction as written.
presenting
Whether the host is presenting.

Declared in packages/canvas-sdk/src/host/layout.ts:45.

Last updated