提交 e94fd574 编写于 作者: M Mr.doob

Updated builds.

上级 a7b5a261
......@@ -3660,6 +3660,8 @@
* @author szimek / https://github.com/szimek/
*/
var _canvas;
var ImageUtils = {
getDataURL: function ( image ) {
......@@ -3676,11 +3678,12 @@
} else {
canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
canvas.width = image.width;
canvas.height = image.height;
if ( _canvas === undefined ) _canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
var context = canvas.getContext( '2d' );
_canvas.width = image.width;
_canvas.height = image.height;
var context = _canvas.getContext( '2d' );
if ( image instanceof ImageData ) {
......@@ -3692,6 +3695,8 @@
}
canvas = _canvas;
}
if ( canvas.width > 2048 || canvas.height > 2048 ) {
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -3654,6 +3654,8 @@ Object.assign( Matrix3.prototype, {
* @author szimek / https://github.com/szimek/
*/
var _canvas;
var ImageUtils = {
getDataURL: function ( image ) {
......@@ -3670,11 +3672,12 @@ var ImageUtils = {
} else {
canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
canvas.width = image.width;
canvas.height = image.height;
if ( _canvas === undefined ) _canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
var context = canvas.getContext( '2d' );
_canvas.width = image.width;
_canvas.height = image.height;
var context = _canvas.getContext( '2d' );
if ( image instanceof ImageData ) {
......@@ -3686,6 +3689,8 @@ var ImageUtils = {
}
canvas = _canvas;
}
if ( canvas.width > 2048 || canvas.height > 2048 ) {
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册