Interface Render2dTextureOptions

interface Render2dTextureOptions {
    autoCanvasSize?: boolean;
    canvasHeight?: number;
    canvasWidth?: number;
    colorSpace?: ColorSpace;
    elements?: Element<ElementProps> | Element<ElementProps>[];
    pointerEvents?: boolean;
    render2dObject?: Render2dType;
    sharedCanvas?: boolean;
}

Properties

autoCanvasSize?: boolean

是否根据绘制的内容计算渲染的大小

canvasHeight?: number

绘布高

canvasWidth?: number

绘布宽

colorSpace?: ColorSpace

纹理颜色空间。默认srgb

绘制的元素,元素组

pointerEvents?: boolean

是否有事件

render2dObject?: Render2dType

渲染对象

sharedCanvas?: boolean

是否为了提高效率共享一个canvas