Type Alias InsertOptions

InsertOptions: {
    canvasResizeTo: "parent" | "viewport";
    parent?: HTMLElement | string;
    region?: CanvasRegionSpec;
}

Type declaration

  • canvasResizeTo: "parent" | "viewport"

    How canvas should be sized

  • Optionalparent?: HTMLElement | string

    Parent to insert CANVAS element into. If undefined, it will be added to the body.

  • Optionalregion?: CanvasRegionSpec