NarraLeaf

IStoryConfig

The configuration for a `Story`, its stage origin and the story's single `Camera`.

interface IStoryConfig {
    origin: Origins;
    camera?: Camera;
}

origin

For Origin, see Origins

camera

The story's stage Camera. Omit it to use a default camera; provide one only to set the initial pose. There is exactly one camera per story.

const story = new Story("story name", {
    camera: new Camera({scale: 1.1}),
});

On this page