mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-01-15 23:41:07 +00:00
21 lines
500 B
JavaScript
21 lines
500 B
JavaScript
// import HTMLElement from './HTMLElement';
|
|
|
|
// export default class HTMLCanvasElement extends HTMLElement
|
|
// {
|
|
// constructor(){
|
|
// super('canvas')
|
|
// }
|
|
// };
|
|
|
|
import Canvas from './Canvas'
|
|
import HTMLElement from './HTMLElement'
|
|
|
|
GameGlobal.screencanvas = GameGlobal.screencanvas || new Canvas();
|
|
const canvas = GameGlobal.screencanvas;
|
|
|
|
const canvasConstructor = canvas.constructor;
|
|
|
|
// canvasConstructor.__proto__.__proto__ = new HTMLElement();
|
|
|
|
export default canvasConstructor;
|