define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var PdfGraphicsElement = (function () {
function PdfGraphicsElement() {
}
PdfGraphicsElement.prototype.drawHelper = function (graphics, x, y) {
var bNeedSave = (x !== 0 || y !== 0);
var gState = null;
Eif (bNeedSave) {
gState = graphics.save();
graphics.translateTransform(x, y);
}
this.drawInternal(graphics);
Eif (bNeedSave) {
graphics.restore(gState);
}
};
return PdfGraphicsElement;
}());
exports.PdfGraphicsElement = PdfGraphicsElement;
});
|