Skip to content

Commit

Permalink
Merge pull request #993 from ecomfe/release
Browse files Browse the repository at this point in the history
chore: merge release into master for 5.4.2
  • Loading branch information
plainheart authored Mar 9, 2023
2 parents 9197e05 + 98707bd commit 5449f30
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 43 deletions.
15 changes: 9 additions & 6 deletions dist/zrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -7238,7 +7238,7 @@
function registerPainter(name, Ctor) {
painterCtors[name] = Ctor;
}
var version = '5.4.1';
var version = '5.4.2';

var STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));
var DEFAULT_COMMON_STYLE = {
Expand Down Expand Up @@ -12791,16 +12791,19 @@
}
}
}
function isLatin(ch) {
function isAlphabeticLetter(ch) {
var code = ch.charCodeAt(0);
return code >= 0x21 && code <= 0x17F;
return code >= 0x20 && code <= 0x24F
|| code >= 0x370 && code <= 0x10FF
|| code >= 0x1200 && code <= 0x13FF
|| code >= 0x1E00 && code <= 0x206F;
}
var breakCharMap = reduce(',&?/;] '.split(''), function (obj, ch) {
obj[ch] = true;
return obj;
}, {});
function isWordBreakChar(ch) {
if (isLatin(ch)) {
if (isAlphabeticLetter(ch)) {
if (breakCharMap[ch]) {
return true;
}
Expand Down Expand Up @@ -15900,9 +15903,9 @@
opts = opts || {};
var S = opts.newline ? '\n' : '';
function convertElToString(el) {
var children = el.children, tag = el.tag, attrs = el.attrs;
var children = el.children, tag = el.tag, attrs = el.attrs, text = el.text;
return createElementOpen(tag, attrs)
+ encodeHTML(el.text)
+ (tag !== 'style' ? encodeHTML(text) : text || '')
+ (children ? "" + S + map(children, function (child) { return convertElToString(child); }).join(S) + S : '')
+ createElementClose(tag);
}
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.

36 changes: 3 additions & 33 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.4.1",
"version": "5.4.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 @@ -485,7 +485,7 @@ export function registerPainter(name: string, Ctor: PainterBaseCtor) {
/**
* @type {string}
*/
export const version = '5.4.1';
export const version = '5.4.2';


export interface ZRenderType extends ZRender {};

0 comments on commit 5449f30

Please sign in to comment.