nl_tokens: Exporte la sélection sous forme d objet Canvas
pl_tokens: function ( width , height ) { var box = this . selection . getBBox ( ) ; return JSYG ( this . node ) . toCanvas ( ) . then ( function ( canvas ) { var maxWidth = canvas . getAttribute ( "width" ) , maxHeight = canvas . getAttribute ( "height" ) , x = Math . max ( 0 , box . x ) , y = Math . max ( 0 , box . y ) , boxWidth = Math . min ( maxWidth , box . width ) , boxHeight = Math . min ( maxHeight , box . height ) ; canvas = new Canvas ( canvas ) ; canvas = canvas . crop ( x , y , boxWidth , boxHeight ) ; if ( width != null || height != null ) canvas = canvas . resize ( <mask> , height ) ; return canvas [ 0 ] ; } ) ; }