Commit 83162b13 authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete use $ -> document.createElement

parent b363ddf0
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* Author: Dmitry.Sokolov@avsmedia.net * Author: Dmitry.Sokolov@avsmedia.net
* Date: Nov 21, 2011 * Date: Nov 21, 2011
*/ */
(function (/** jQuery */$, /** Window */window, undefined) { (function (/** Window */window, undefined) {
/* /*
* Import * Import
...@@ -937,7 +937,9 @@ ...@@ -937,7 +937,9 @@
if (!_r && !_g && !_b) { if (!_r && !_g && !_b) {
this.ctx.drawImage(pGlyph.oBitmap.oGlyphData.m_oCanvas, 0, 0, nW, nH, nX, nY, nW, nH); this.ctx.drawImage(pGlyph.oBitmap.oGlyphData.m_oCanvas, 0, 0, nW, nH, nX, nY, nW, nH);
} else { } else {
var canvD = $("<canvas width='"+nW+"' height='"+nH+"'/>")[0]; var canvD = document.createElement('canvas');
canvD.width = nW;
canvD.height = nH;
var ctxD = canvD.getContext("2d"); var ctxD = canvD.getContext("2d");
var pixDst = ctxD.getImageData(0, 0, nW, nH); var pixDst = ctxD.getImageData(0, 0, nW, nH);
var dstP = pixDst.data; var dstP = pixDst.data;
...@@ -1271,4 +1273,4 @@ ...@@ -1271,4 +1273,4 @@
window["Asc"].DrawingContext = DrawingContext; window["Asc"].DrawingContext = DrawingContext;
window["Asc"].Matrix = Matrix; window["Asc"].Matrix = Matrix;
})(jQuery, window); })(window);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment