Commit 4d72b566 by junghwan-park

Deploy 2.2.6a

parent 13e96e00
......@@ -614,7 +614,7 @@ define(["./raphael.core"], function(R) {
el._.dirty = 1;
var bb = el._getBBox(),
dif = a.y - (bb.y + bb.height / 2);
dif && R.is(dif, "finite") && $(tspans[0], {dy: dif});
if (bb.height) dif && R.is(dif, "finite") && $(tspans[0], {dy: dif});
},
getRealNode = function (node) {
if (node.parentNode && node.parentNode.tagName.toLowerCase() === "a") {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -5966,6 +5966,9 @@ return /******/ (function(modules) { // webpackBootstrap
if (o._.sx != 1 || o._.sy != 1) {
value /= mmax(abs(o._.sx), abs(o._.sy)) || 1;
}
if (o.paper._vbSize) {
value *= o.paper._vbSize;
}
node.setAttribute(att, value);
if (attrs["stroke-dasharray"]) {
addDashes(o, attrs["stroke-dasharray"], params);
......@@ -6103,7 +6106,7 @@ return /******/ (function(modules) { // webpackBootstrap
el._.dirty = 1;
var bb = el._getBBox(),
dif = a.y - (bb.y + bb.height / 2);
dif && R.is(dif, "finite") && $(tspans[0], {dy: dif});
if (bb.height) dif && R.is(dif, "finite") && $(tspans[0], {dy: dif});
},
getRealNode = function (node) {
if (node.parentNode && node.parentNode.tagName.toLowerCase() === "a") {
......@@ -7800,9 +7803,9 @@ return /******/ (function(modules) { // webpackBootstrap
};
R._engine.setViewBox = function (x, y, w, h, fit) {
R.eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
var paperSize = this.getSize(),
width = paperSize.width,
height = paperSize.height,
var width = this.width,
height = this.height,
size = 1 / mmax(w / width, h / height),
H, W;
if (fit) {
H = height / h;
......@@ -7818,10 +7821,10 @@ return /******/ (function(modules) { // webpackBootstrap
this._viewBoxShift = {
dx: -x,
dy: -y,
scale: paperSize
scale: size
};
this.forEach(function (el) {
el.transform("...");
el.transform("");
});
return this;
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment