mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-11-08 04:15:24 +00:00
[adapters] 增加小游戏适配部分源码
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user