code: def _get_pan_and_zoom_js(self):
      if self.enable_pan_and_zoom:
          return """
                  panZoomInstance = svgPanZoom('#' + nodeName, {
                      zoomEnabled: true,
                      controlIconsEnabled: true,
                      fit: true,
                      center: true,
                      maxZoom: 100000,
                      minZoom: 0.1
                    });
              """
      else:
          return ""
  
file_path: scattertext/scattertext/graphs/ComponentDiGraphHTMLRenderer.py
imports: import json
label_desc: Use image node_id 5 for calling the ComponentDiGraphHTMLRenderer obj's underlying member method code with example usage: obj._get_pan_and_zoom_js() and returns: str, str