Options to customize view

interface AcTrView2dOptions {
    background?: number;
    calculateSizeCallback?: AcEdCalculateSizeCallback;
    container?: HTMLElement;
}

Properties

background?: number

Background color

calculateSizeCallback?: AcEdCalculateSizeCallback

Callback function used to calculate size of canvas when window resized

container?: HTMLElement

Container HTML element used by renderer