Skip to content

Commit

Permalink
Merge pull request #922 from ecomfe/release-dev
Browse files Browse the repository at this point in the history
Release v5.3.2 from release-dev to release
  • Loading branch information
Ovilia authored Jun 9, 2022
2 parents 3ffb28f + bae3e92 commit 559d610
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
24 changes: 15 additions & 9 deletions dist/zrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -7128,7 +7128,7 @@
function registerPainter(name, Ctor) {
painterCtors[name] = Ctor;
}
var version = '5.3.0';
var version = '5.3.2';

var STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));
var DEFAULT_COMMON_STYLE = {
Expand Down Expand Up @@ -12311,10 +12311,10 @@
!isImageReady(image) && cachedImgObj.pending.push(pendingWrap);
}
else {
var image_1 = platformApi.loadImage(newImageOrSrc, imageOnLoad, imageOnLoad);
image_1.__zrImageSrc = newImageOrSrc;
globalImageCache.put(newImageOrSrc, image_1.__cachedImgObj = {
image: image_1,
image = platformApi.loadImage(newImageOrSrc, imageOnLoad, imageOnLoad);
image.__zrImageSrc = newImageOrSrc;
globalImageCache.put(newImageOrSrc, image.__cachedImgObj = {
image: image,
pending: [pendingWrap]
});
}
Expand Down Expand Up @@ -13998,6 +13998,9 @@
});
}

function isSafeNum(num) {
return isFinite(num);
}
function createLinearGradient(ctx, obj, rect) {
var x = obj.x == null ? 0 : obj.x;
var x2 = obj.x2 == null ? 1 : obj.x2;
Expand All @@ -14009,10 +14012,10 @@
y = y * rect.height + rect.y;
y2 = y2 * rect.height + rect.y;
}
x = isNaN(x) ? 0 : x;
x2 = isNaN(x2) ? 1 : x2;
y = isNaN(y) ? 0 : y;
y2 = isNaN(y2) ? 0 : y2;
x = isSafeNum(x) ? x : 0;
x2 = isSafeNum(x2) ? x2 : 1;
y = isSafeNum(y) ? y : 0;
y2 = isSafeNum(y2) ? y2 : 0;
var canvasGradient = ctx.createLinearGradient(x, y, x2, y2);
return canvasGradient;
}
Expand All @@ -14028,6 +14031,9 @@
y = y * height + rect.y;
r = r * min;
}
x = isSafeNum(x) ? x : 0.5;
y = isSafeNum(y) ? y : 0.5;
r = r >= 0 && isSafeNum(r) ? r : 0.5;
var canvasGradient = ctx.createRadialGradient(x, y, 0, x, y, r);
return canvasGradient;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/zrender.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/zrender.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zrender",
"version": "5.3.1",
"version": "5.3.2",
"description": "A lightweight graphic library providing 2d draw for Apache ECharts",
"keywords": [
"canvas",
Expand Down
2 changes: 1 addition & 1 deletion src/zrender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export function registerPainter(name: string, Ctor: PainterBaseCtor) {
/**
* @type {string}
*/
export const version = '5.3.0';
export const version = '5.3.2';


export interface ZRenderType extends ZRender {};

0 comments on commit 559d610

Please sign in to comment.