class_docstr: For displaying scale-invariant arrows.
  For arrows pointing to a location on a curve, see CurveArrow
class_docstr_tok: ["For","displaying","scale-invariant","arrows",".","For","arrows","pointing","to","a","location","on","a","curve",",","see","CurveArrow"]
code: def pixelPadding(self):
      pad = 0
      if self.opts["pxMode"]:
          br = self.boundingRect()
          pad += hypot(br.width(), br.height())
      pen = self.pen()
      if pen.isCosmetic():
          pad += max(1, pen.width()) * 0.7072
      return pad
  
file_path: pyqtgraph/pyqtgraph/graphicsItems/ArrowItem.py
imports: from math import hypot
  from ..None import functions
  from ..Qt import QtGui, QtWidgets
label_desc: Use image node_id 6 for calling the ArrowItem obj's underlying member method code with example usage: obj.pixelPadding() and returns: pad