@ SuppressWarnings ( { "WeakerAccess" , "unused" } ) public RectF getDocumentViewBox ( ) { if ( this . rootElement == null ) throw new IllegalArgumentException ( "SVG document is empty" ) ; if ( this . rootElement . viewBox == null ) return null ; return this . rootElement . viewBox . toRectF ( ) ; }
Returns the viewBox attribute of the current SVG document .