global.Image = function (width, height) {
	let _canvasForNA = global.__biliComponentData.canvas.canvasForNA();
	let _image = _canvasForNA.createImage();
	_image.width = width;
	_image.height = height;
	return _image;
};

global.ImageData = function () {
	let _temp = Array.prototype.slice.apply(arguments);
	let _canvasForNA = global.__biliComponentData.canvas.canvasForNA();
	let _offscreenCanvas = _canvasForNA.createCanvas(true, '' ,2);
	let _ctx = _offscreenCanvas.getContext('2d');
	return _ctx.createImageData(..._temp);
};

global.OffscreenCanvas = function (width, height) {
	let _canvasForNA = global.__biliComponentData.canvas.canvasForNA();
	let _offscreenCanvas = _canvasForNA.createCanvas(true, '', 2);
	_offscreenCanvas.createImage = global.__biliComponentData.canvas.canvasForNA().createImage;
	_offscreenCanvas.width = width;
	_offscreenCanvas.height = height;
	return _offscreenCanvas;
};
