(self)
| 88 | } |
| 89 | |
| 90 | def run(self): |
| 91 | |
| 92 | image_node = figmplnode() |
| 93 | |
| 94 | imagenm = self.arguments[0] |
| 95 | image_node['alt'] = self.options.get('alt', '') |
| 96 | image_node['align'] = self.options.get('align', None) |
| 97 | image_node['class'] = self.options.get('class', None) |
| 98 | image_node['width'] = self.options.get('width', None) |
| 99 | image_node['height'] = self.options.get('height', None) |
| 100 | image_node['scale'] = self.options.get('scale', None) |
| 101 | image_node['caption'] = self.options.get('caption', None) |
| 102 | |
| 103 | # we would like uri to be the highest dpi version so that |
| 104 | # latex etc will use that. But for now, lets just make |
| 105 | # imagenm... maybe pdf one day? |
| 106 | |
| 107 | image_node['uri'] = imagenm |
| 108 | image_node['srcset'] = self.options.get('srcset', None) |
| 109 | |
| 110 | return [image_node] |
| 111 | |
| 112 | |
| 113 | def _parse_srcsetNodes(st): |
nothing calls this directly
no test coverage detected