Fix script stop the export if svg has AngularJS directives.
Implement calculation width and height of svg element from viewBox attribute.