createCanvas 创建画布元素
createCanvas
类型: MethodDeclaration
定义位置: webgl.ts
描述
创建画布元素
返回值
类型: HTMLCanvasElement
源代码
位置: 第 89 行
private createCanvas(): HTMLCanvasElement {
    const canvas = document.createElement('canvas')
    canvas.width = 0
    canvas.height = 0
    canvas.style.width = '100%'
    canvas.style.height = '100%'
    return canvas
  }
文档生成时间:2025/7/21 20:53:39