code: function drawLinearUnits(context, options) {
      if (!options.units) return ;
  
      let {isVertical, width, length, baseX, baseY, unitsMargin} =
          context.barDimensions;
      let textHeight = options.fontUnitsSize * width / 200;
      //noinspection JSUnresolvedFunction
      let textX = round(baseX + (isVertical ? width : length) / 2);
      //noinspection JSUnresolvedFunction
      let textY = round(baseY + (isVertical ? length : width) +
          unitsMargin / 2 - textHeight / 2);
  
      context.save();
      context.textAlign = 'center';
      context.fillStyle = options.colorUnits;
      context.font = drawings.font(options, 'Units', width / 200);
      context.lineWidth = 0;
      context.fillText(options.units, textX, textY, isVertical ? width : length);
  }
docs: /* istanbul ignore next: private, not testable 
  Draws linear gauge units
  
  @param {Canvas2DContext} context
  @param {LinearGaugeOptions} options