options=self._dopt)
      
class ChemSVG(ChemBase):
  
  def __init__(self,*args,**kwargs):
      ChemBase.__init__(self,*args,**kwargs)
      
  def __call__(self,smi,**kwargs):
    return self.smi2svg(smi,**kwargs)
  
  def smi2svg(self,smi,opacity=None):
    molSize=self._molsize    
    mol = self.smi2mol(smi)
    mc = Chem.Mol(mol.ToBinary())    
    drawer = rdMolDraw2D.MolDraw2DSVG(molSize[0],molSize[1])
    drawer.DrawMolecule(mc)
    drawer.FinishDrawing()
    svg = drawer.GetDrawingText()
    
   