mermaid: apply PR18 #145

This commit is contained in:
Sören Weber 2021-11-09 21:13:01 +01:00
parent d673f413be
commit de1cfc1a2d
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -4,6 +4,8 @@
Base: jQuery SVG Pan Zoom v1.0.3, October 2015 (labeled v1.0.2, June 2015) Base: jQuery SVG Pan Zoom v1.0.3, October 2015 (labeled v1.0.2, June 2015)
McShelby.hugo-theme-relearn: McShelby.hugo-theme-relearn:
Change 1: OnMouseUp restore image cursor (not document cursor) Change 1: OnMouseUp restore image cursor (not document cursor)
Change 2: add PR #18
Author: Daniel Hoffmann Bernardes (daniel.hoffmann.bernardes@gmail.com) Author: Daniel Hoffmann Bernardes (daniel.hoffmann.bernardes@gmail.com)
@ -488,7 +490,7 @@ Copyright (C) 2014 Daniel Hoffmann Bernardes, Ícaro Technologies
x: viewBox.x + viewBox.width / 2, x: viewBox.x + viewBox.width / 2,
y: viewBox.y + viewBox.height / 2 y: viewBox.y + viewBox.height / 2
}; };
this.setViewBox(center.x - newWidth / 2, center.y - newWidth / 2, newWidth, newHeight, animationTime); this.setViewBox(center.x - newWidth / 2, center.y - newHeight / 2, newWidth, newHeight, animationTime);
}; };
opts.setCenter = function(x, y, animationTime) { opts.setCenter = function(x, y, animationTime) {
if (animationTime == null) { if (animationTime == null) {