Update all client dependencies and cdn versions, workaround sequence-diagram svg to be resizable

This commit is contained in:
Cheng-Han, Wu 2016-06-17 16:27:37 +08:00
parent 5d03109827
commit 71f61b7f84
26 changed files with 82 additions and 2328 deletions

View file

@ -258,6 +258,9 @@ function finishView(view) {
$ele.addClass('sequence-diagram');
$value.children().unwrap().unwrap();
var svg = $ele.find('> svg');
svg[0].setAttribute('viewBox', '0 0 ' + svg.attr('width') + ' ' + svg.attr('height'));
svg[0].setAttribute('preserveAspectRatio', 'xMidYMid meet');
} catch (err) {
console.warn(err);
}