"use strict"; 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 __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var SvgHelper_1 = require("../../utils/SvgHelper"); var RectangularMarkerBase_1 = require("../base/RectangularMarkerBase"); var RectMarkerBase = (function (_super) { __extends(RectMarkerBase, _super); function RectMarkerBase() { return _super !== null && _super.apply(this, arguments) || this; } RectMarkerBase.prototype.setup = function () { _super.prototype.setup.call(this); this.markerRect = SvgHelper_1.SvgHelper.createRect(this.width, this.height); this.addToRenderVisual(this.markerRect); }; RectMarkerBase.prototype.resize = function (x, y) { _super.prototype.resize.call(this, x, y); this.markerRect.setAttribute('width', this.width.toString()); this.markerRect.setAttribute('height', this.height.toString()); }; RectMarkerBase.createMarker = function () { var marker = new RectMarkerBase(); marker.setup(); return marker; }; return RectMarkerBase; }(RectangularMarkerBase_1.RectangularMarkerBase)); exports.RectMarkerBase = RectMarkerBase;