提交 c2fcebd5 编写于 作者: S sushuang

Merge branch 'release'

# Conflicts:
#	dist/echarts-en.common.js
#	dist/echarts-en.common.min.js
#	dist/echarts-en.js
#	dist/echarts-en.js.map
#	dist/echarts-en.min.js
#	dist/echarts-en.simple.js
#	dist/echarts-en.simple.min.js
#	dist/echarts.common.js
#	dist/echarts.common.min.js
#	dist/echarts.js
#	dist/echarts.js.map
#	dist/echarts.min.js
#	dist/echarts.simple.js
#	dist/echarts.simple.min.js
#	package.json
#	src/chart/sankey/sankeyLayout.js
......@@ -17740,6 +17740,7 @@ var textStyleMixin = {
this.getShallow('align'),
this.getShallow('verticalAlign') || this.getShallow('baseline'),
this.getShallow('padding'),
this.getShallow('lineHeight'),
this.getShallow('rich'),
this.getShallow('truncateText')
);
......@@ -18977,7 +18978,45 @@ function capitalFirst(str) {
var truncateText$1 = truncateText;
var getTextRect = getBoundingRect;
/**
* @public
* @param {Object} opt
* @param {string} opt.text
* @param {string} opt.font
* @param {string} [opt.textAlign='left']
* @param {string} [opt.textVerticalAlign='top']
* @param {Array.<number>} [opt.textPadding]
* @param {number} [opt.textLineHeight]
* @param {Object} [opt.rich]
* @param {Object} [opt.truncate]
* @return {Object} {x, y, width, height, lineHeight}
*/
function getTextBoundingRect(opt) {
return getBoundingRect(
opt.text,
opt.font,
opt.textAlign,
opt.textVerticalAlign,
opt.textPadding,
opt.textLineHeight,
opt.rich,
opt.truncate
);
}
/**
* @deprecated
* the `textLineHeight` was added later.
* For backward compatiblility, put it as the last parameter.
* But deprecated this interface. Please use `getTextBoundingRect` instead.
*/
function getTextRect(
text, font, textAlign, textVerticalAlign, textPadding, rich, truncate, textLineHeight
) {
return getBoundingRect(
text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, rich, truncate
);
}
var format = (Object.freeze || Object)({
......@@ -18991,6 +19030,7 @@ var format = (Object.freeze || Object)({
formatTime: formatTime,
capitalFirst: capitalFirst,
truncateText: truncateText$1,
getTextBoundingRect: getTextBoundingRect,
getTextRect: getTextRect
});
此差异已折叠。
......@@ -17796,6 +17796,7 @@ var textStyleMixin = {
this.getShallow('align'),
this.getShallow('verticalAlign') || this.getShallow('baseline'),
this.getShallow('padding'),
this.getShallow('lineHeight'),
this.getShallow('rich'),
this.getShallow('truncateText')
);
......@@ -19033,7 +19034,45 @@ function capitalFirst(str) {
var truncateText$1 = truncateText;
var getTextRect = getBoundingRect;
/**
* @public
* @param {Object} opt
* @param {string} opt.text
* @param {string} opt.font
* @param {string} [opt.textAlign='left']
* @param {string} [opt.textVerticalAlign='top']
* @param {Array.<number>} [opt.textPadding]
* @param {number} [opt.textLineHeight]
* @param {Object} [opt.rich]
* @param {Object} [opt.truncate]
* @return {Object} {x, y, width, height, lineHeight}
*/
function getTextBoundingRect(opt) {
return getBoundingRect(
opt.text,
opt.font,
opt.textAlign,
opt.textVerticalAlign,
opt.textPadding,
opt.textLineHeight,
opt.rich,
opt.truncate
);
}
/**
* @deprecated
* the `textLineHeight` was added later.
* For backward compatiblility, put it as the last parameter.
* But deprecated this interface. Please use `getTextBoundingRect` instead.
*/
function getTextRect(
text, font, textAlign, textVerticalAlign, textPadding, rich, truncate, textLineHeight
) {
return getBoundingRect(
text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, rich, truncate
);
}
var format = (Object.freeze || Object)({
......@@ -19047,6 +19086,7 @@ var format = (Object.freeze || Object)({
formatTime: formatTime,
capitalFirst: capitalFirst,
truncateText: truncateText$1,
getTextBoundingRect: getTextBoundingRect,
getTextRect: getTextRect
});
此差异已折叠。
此差异已折叠。
......@@ -17383,6 +17383,7 @@ var textStyleMixin = {
this.getShallow('align'),
this.getShallow('verticalAlign') || this.getShallow('baseline'),
this.getShallow('padding'),
this.getShallow('lineHeight'),
this.getShallow('rich'),
this.getShallow('truncateText')
);
......@@ -18509,6 +18510,28 @@ function formatTime(tpl, value, isUTC) {
var truncateText$1 = truncateText;
/**
* @public
* @param {Object} opt
* @param {string} opt.text
* @param {string} opt.font
* @param {string} [opt.textAlign='left']
* @param {string} [opt.textVerticalAlign='top']
* @param {Array.<number>} [opt.textPadding]
* @param {number} [opt.textLineHeight]
* @param {Object} [opt.rich]
* @param {Object} [opt.truncate]
* @return {Object} {x, y, width, height, lineHeight}
*/
/**
* @deprecated
* the `textLineHeight` was added later.
* For backward compatiblility, put it as the last parameter.
* But deprecated this interface. Please use `getTextBoundingRect` instead.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
此差异已折叠。
......@@ -17740,6 +17740,7 @@ var textStyleMixin = {
this.getShallow('align'),
this.getShallow('verticalAlign') || this.getShallow('baseline'),
this.getShallow('padding'),
this.getShallow('lineHeight'),
this.getShallow('rich'),
this.getShallow('truncateText')
);
......@@ -18977,7 +18978,45 @@ function capitalFirst(str) {
var truncateText$1 = truncateText;
var getTextRect = getBoundingRect;
/**
* @public
* @param {Object} opt
* @param {string} opt.text
* @param {string} opt.font
* @param {string} [opt.textAlign='left']
* @param {string} [opt.textVerticalAlign='top']
* @param {Array.<number>} [opt.textPadding]
* @param {number} [opt.textLineHeight]
* @param {Object} [opt.rich]
* @param {Object} [opt.truncate]
* @return {Object} {x, y, width, height, lineHeight}
*/
function getTextBoundingRect(opt) {
return getBoundingRect(
opt.text,
opt.font,
opt.textAlign,
opt.textVerticalAlign,
opt.textPadding,
opt.textLineHeight,
opt.rich,
opt.truncate
);
}
/**
* @deprecated
* the `textLineHeight` was added later.
* For backward compatiblility, put it as the last parameter.
* But deprecated this interface. Please use `getTextBoundingRect` instead.
*/
function getTextRect(
text, font, textAlign, textVerticalAlign, textPadding, rich, truncate, textLineHeight
) {
return getBoundingRect(
text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, rich, truncate
);
}
var format = (Object.freeze || Object)({
......@@ -18991,6 +19030,7 @@ var format = (Object.freeze || Object)({
formatTime: formatTime,
capitalFirst: capitalFirst,
truncateText: truncateText$1,
getTextBoundingRect: getTextBoundingRect,
getTextRect: getTextRect
});
此差异已折叠。
......@@ -17796,6 +17796,7 @@ var textStyleMixin = {
this.getShallow('align'),
this.getShallow('verticalAlign') || this.getShallow('baseline'),
this.getShallow('padding'),
this.getShallow('lineHeight'),
this.getShallow('rich'),
this.getShallow('truncateText')
);
......@@ -19033,7 +19034,45 @@ function capitalFirst(str) {
var truncateText$1 = truncateText;
var getTextRect = getBoundingRect;
/**
* @public
* @param {Object} opt
* @param {string} opt.text
* @param {string} opt.font
* @param {string} [opt.textAlign='left']
* @param {string} [opt.textVerticalAlign='top']
* @param {Array.<number>} [opt.textPadding]
* @param {number} [opt.textLineHeight]
* @param {Object} [opt.rich]
* @param {Object} [opt.truncate]
* @return {Object} {x, y, width, height, lineHeight}
*/
function getTextBoundingRect(opt) {
return getBoundingRect(
opt.text,
opt.font,
opt.textAlign,
opt.textVerticalAlign,
opt.textPadding,
opt.textLineHeight,
opt.rich,
opt.truncate
);
}
/**
* @deprecated
* the `textLineHeight` was added later.
* For backward compatiblility, put it as the last parameter.
* But deprecated this interface. Please use `getTextBoundingRect` instead.
*/
function getTextRect(
text, font, textAlign, textVerticalAlign, textPadding, rich, truncate, textLineHeight
) {
return getBoundingRect(
text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, rich, truncate
);
}
var format = (Object.freeze || Object)({
......@@ -19047,6 +19086,7 @@ var format = (Object.freeze || Object)({
formatTime: formatTime,
capitalFirst: capitalFirst,
truncateText: truncateText$1,
getTextBoundingRect: getTextBoundingRect,
getTextRect: getTextRect
});
此差异已折叠。
此差异已折叠。
......@@ -17383,6 +17383,7 @@ var textStyleMixin = {
this.getShallow('align'),
this.getShallow('verticalAlign') || this.getShallow('baseline'),
this.getShallow('padding'),
this.getShallow('lineHeight'),
this.getShallow('rich'),
this.getShallow('truncateText')
);
......@@ -18509,6 +18510,28 @@ function formatTime(tpl, value, isUTC) {
var truncateText$1 = truncateText;
/**
* @public
* @param {Object} opt
* @param {string} opt.text
* @param {string} opt.font
* @param {string} [opt.textAlign='left']
* @param {string} [opt.textVerticalAlign='top']
* @param {Array.<number>} [opt.textPadding]
* @param {number} [opt.textLineHeight]
* @param {Object} [opt.rich]
* @param {Object} [opt.truncate]
* @return {Object} {x, y, width, height, lineHeight}
*/
/**
* @deprecated
* the `textLineHeight` was added later.
* For backward compatiblility, put it as the last parameter.
* But deprecated this interface. Please use `getTextBoundingRect` instead.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
此差异已折叠。
{
"name": "echarts",
"version": "4.2.1-rc.2",
"version": "4.2.1",
"description": "A powerful charting and visualization library for browser",
"license": "Apache-2.0",
"keywords": [
......@@ -20,7 +20,7 @@
"zrender": "4.0.7"
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/core": "7.3.4",
"@babel/helper-module-transforms": "7.0.0-beta.31",
"@babel/helper-simple-access": "7.0.0-beta.31",
"@babel/template": "7.0.0-beta.31",
......
......@@ -56,6 +56,7 @@ export default {
this.getShallow('align'),
this.getShallow('verticalAlign') || this.getShallow('baseline'),
this.getShallow('padding'),
this.getShallow('lineHeight'),
this.getShallow('rich'),
this.getShallow('truncateText')
);
......
......@@ -236,4 +236,42 @@ export function capitalFirst(str) {
export var truncateText = textContain.truncateText;
export var getTextRect = textContain.getBoundingRect;
/**
* @public
* @param {Object} opt
* @param {string} opt.text
* @param {string} opt.font
* @param {string} [opt.textAlign='left']
* @param {string} [opt.textVerticalAlign='top']
* @param {Array.<number>} [opt.textPadding]
* @param {number} [opt.textLineHeight]
* @param {Object} [opt.rich]
* @param {Object} [opt.truncate]
* @return {Object} {x, y, width, height, lineHeight}
*/
export function getTextBoundingRect(opt) {
return textContain.getBoundingRect(
opt.text,
opt.font,
opt.textAlign,
opt.textVerticalAlign,
opt.textPadding,
opt.textLineHeight,
opt.rich,
opt.truncate
);
}
/**
* @deprecated
* the `textLineHeight` was added later.
* For backward compatiblility, put it as the last parameter.
* But deprecated this interface. Please use `getTextBoundingRect` instead.
*/
export function getTextRect(
text, font, textAlign, textVerticalAlign, textPadding, rich, truncate, textLineHeight
) {
return textContain.getBoundingRect(
text, font, textAlign, textVerticalAlign, textPadding, textLineHeight, rich, truncate
);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册