(self, encoding)
Adds a HREF reference to encoding dict if needed.

        Args:
            encoding: a dict with encoding information.
Adds a HREF reference to encoding dict if needed.
Adds a HREF reference to encoding dict if needed .
def _add_url_href(self, encoding):
        """Adds a HREF reference to encoding dict if needed.

        Args:
            encoding: a dict with encoding information.
        """
        if not self._sketch_url:
            return
        if not self._field:
            return
        encoding['href'] = {'field': 'url', 'type': 'nominal'}
def _add_url_href ( self , encoding ) : if not self . _sketch_url : return if not self . _field : return encoding [ 'href' ] = { 'field' : 'url' , 'type' : 'nominal' }