function MarginControl(orientation) {
    print_preview.Component.call(this);

    /**
     * Determines where the margin textbox will be placed.
     * @type {!print_preview.ticket_items.CustomMarginsOrientation}
     * @private
     */
    this.orientation_ = orientation;

    /**
     * Position of the margin control in points.
     * @type {number}
     * @private
     */
    this.positionInPts_ = 0;

    /**
     * Page size of the document to print.
     * @type {!print_preview.Size}
     * @private
     */
    this.pageSize_ = new print_preview.Size(0, 0);

    /**
     * Amount to scale pixel values by to convert to pixel space.
     * @type {number}
     * @private
     */
    this.scaleTransform_ = 1;

    /**
     * Amount to translate values in pixel space.
     * @type {!print_preview.Coordinate2d}
     * @private
     */
    this.translateTransform_ = new print_preview.Coordinate2d(0, 0);

    /**
     * Position of the margin control when dragging starts.
     * @type {print_preview.Coordinate2d}
     * @private
     */
    this.marginStartPositionInPixels_ = null;

    /**
     * Position of the mouse when the dragging starts.
     * @type {print_preview.Coordinate2d}
     * @private
     */
    this.mouseStartPositionInPixels_ = null;

    /**
     * Processing timeout for the textbox.
     * @type {?number}
     * @private
     */
    this.textTimeout_ = null;

    /**
     * Textbox used to display and receive the value of the margin.
     * @type {HTMLInputElement}
     * @private
     */
    this.textbox_ = null;

    /**
     * Element of the margin control line.
     * @type {HTMLElement}
     * @private
     */
    this.marginLineEl_ = null;

    /**
     * Whether this margin control's textbox has keyboard focus.
     * @type {boolean}
     * @private
     */
    this.isFocused_ = false;

    /**
     * Whether the margin control is in an error state.
     * @type {boolean}
     * @private
     */
    this.isInError_ = false;
  }
/**
   * Draggable control for setting a page margin.
   * @param {!print_preview.ticket_items.CustomMarginsOrientation} orientation
   *     Orientation of the margin control that determines where the margin
   *     textbox will be placed.
   * @constructor
   * @extends {print_preview.Component}
   */
Draggable control for setting a page margin.
@param {!print_preview.ticket_items.CustomMarginsOrientation} orientation
Orientation of the margin control that determines where the margin
textbox will be placed.
Draggable control for setting a page margin . @param { !print_preview . ticket_items . CustomMarginsOrientation } orientation Orientation of the margin control that determines where the margin textbox will be placed .
function MarginControl(orientation) {
    print_preview.Component.call(this);
    this.orientation_ = orientation;
    this.positionInPts_ = 0;
    this.pageSize_ = new print_preview.Size(0, 0);
    this.scaleTransform_ = 1;
    this.translateTransform_ = new print_preview.Coordinate2d(0, 0);
    this.marginStartPositionInPixels_ = null;
    this.mouseStartPositionInPixels_ = null;
    this.textTimeout_ = null;
    this.textbox_ = null;
    this.marginLineEl_ = null;
    this.isFocused_ = false;
    this.isInError_ = false;
  }
function MarginControl ( orientation ) { print_preview . Component . call ( this ) ; this . orientation_ = orientation ; this . positionInPts_ = 0 ; this . pageSize_ = new print_preview . Size ( 0 , 0 ) ; this . scaleTransform_ = 1 ; this . translateTransform_ = new print_preview . Coordinate2d ( 0 , 0 ) ; this . marginStartPositionInPixels_ = null ; this . mouseStartPositionInPixels_ = null ; this . textTimeout_ = null ; this . textbox_ = null ; this . marginLineEl_ = null ; this . isFocused_ = false ; this . isInError_ = false ; }
Draggable control for setting a page margin.
Draggable control for setting a page margin .
/**
     * Determines where the margin textbox will be placed.
     * @type {!print_preview.ticket_items.CustomMarginsOrientation}
     * @private
     */ /**
     * Position of the margin control in points.
     * @type {number}
     * @private
     */ /**
     * Page size of the document to print.
     * @type {!print_preview.Size}
     * @private
     */ /**
     * Amount to scale pixel values by to convert to pixel space.
     * @type {number}
     * @private
     */ /**
     * Amount to translate values in pixel space.
     * @type {!print_preview.Coordinate2d}
     * @private
     */ /**
     * Position of the margin control when dragging starts.
     * @type {print_preview.Coordinate2d}
     * @private
     */ /**
     * Position of the mouse when the dragging starts.
     * @type {print_preview.Coordinate2d}
     * @private
     */ /**
     * Processing timeout for the textbox.
     * @type {?number}
     * @private
     */ /**
     * Textbox used to display and receive the value of the margin.
     * @type {HTMLInputElement}
     * @private
     */ /**
     * Element of the margin control line.
     * @type {HTMLElement}
     * @private
     */ /**
     * Whether this margin control's textbox has keyboard focus.
     * @type {boolean}
     * @private
     */ /**
     * Whether the margin control is in an error state.
     * @type {boolean}
     * @private
     */