updateMargin(orientation, value) {
      const margins = /** @type {!print_preview.Margins} */ (this.getValue());
      const oppositeOrientation =
          CustomMargins.OppositeOrientation_[orientation];
      const max =
          this.getMarginMax_(orientation, margins.get(oppositeOrientation));
      value = Math.max(0, Math.min(max, value));
      this.updateValue(margins.set(orientation, value));
    }
/**
     * Updates the specified margin in points while keeping the value within
     * a maximum and minimum.
     * @param {!print_preview.ticket_items.CustomMarginsOrientation}
     *     orientation Specifies the margin to update.
     * @param {number} value Updated margin value in points.
     */
Updates the specified margin in points while keeping the value within
a maximum and minimum.
Updates the specified margin in points while keeping the value within a maximum and minimum .
updateMargin(orientation, value) {
      const margins =  (this.getValue());
      const oppositeOrientation =
          CustomMargins.OppositeOrientation_[orientation];
      const max =
          this.getMarginMax_(orientation, margins.get(oppositeOrientation));
      value = Math.max(0, Math.min(max, value));
      this.updateValue(margins.set(orientation, value));
    }
updateMargin ( orientation , value ) { const margins = ( this . getValue ( ) ) ; const oppositeOrientation = CustomMargins . OppositeOrientation_ [ orientation ] ; const max = this . getMarginMax_ ( orientation , margins . get ( oppositeOrientation ) ) ; value = Math . max ( 0 , Math . min ( max , value ) ) ; this . updateValue ( margins . set ( orientation , value ) ) ; }
Updates the specified margin in points while keeping the value within
 a maximum and minimum.
Updates the specified margin in points while keeping the value within a maximum and minimum .
/** @type {!print_preview.Margins} */