| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 2× 2× 2× 1× 10× 10× 10× 10× 10× 10× 10× 10× 10× 1× 1× | /* istanbul ignore next */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); define(["require", "exports", "./automatic-field", "./../../collections/object-object-pair/dictionary", "./pdf-template-value-pair", "./../../drawing/pdf-drawing", "./../../graphics/figures/pdf-template"], function (require, exports, automatic_field_1, dictionary_1, pdf_template_value_pair_1, pdf_drawing_1, pdf_template_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var PdfMultipleValueField = (function (_super) { __extends(PdfMultipleValueField, _super); function PdfMultipleValueField() { var _this = _super.call(this) || this; _this.list = new dictionary_1.TemporaryDictionary(); return _this; } PdfMultipleValueField.prototype.performDraw = function (graphics, location, scalingX, scalingY) { _super.prototype.performDrawHelper.call(this, graphics, location, scalingX, scalingY); var value = this.getValue(graphics); var template = new pdf_template_1.PdfTemplate(this.getSize()); this.list.setValue(graphics, new pdf_template_value_pair_1.PdfTemplateValuePair(template, value)); var g = template.graphics; var size = this.getSize(); template.graphics.drawString(value, this.getFont(), this.pen, this.getBrush(), 0, 0, size.width, size.height, this.stringFormat); var drawLocation = new pdf_drawing_1.PointF(location.x + this.location.x, location.y + this.location.y); graphics.drawPdfTemplate(template, drawLocation, new pdf_drawing_1.SizeF(template.width * scalingX, template.height * scalingY)); }; return PdfMultipleValueField; }(automatic_field_1.PdfAutomaticField)); exports.PdfMultipleValueField = PdfMultipleValueField; }); |