<s> from . element import Element <EOL> from . transform import Transform <EOL> class Transformable ( Element ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , content = None , parent = None ) : <EOL> Element . __init__ ( self , content , parent ) <EOL> if isinstance ( content , str ) : <EOL> self . _transform = Transform ( ) <EOL> self . _computed_transform = self . _transform <EOL> else : <EOL> self . _transform = Transform ( content . get ( "<STR_LIT>" , None ) ) <EOL> self . _computed_transform = self . _transform <EOL> if parent : <EOL> self . _computed_transform = self . _transform + self . parent . transform <EOL> @ property <EOL> def transform ( self ) : <EOL> return self . _computed_transform </s>
