@visactor/vchart 1.2.2-beta.2 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/es5/index.js +1 -1
- package/build/index.js +10 -6
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/package.json +3 -3
package/build/index.js
CHANGED
|
@@ -26008,6 +26008,7 @@
|
|
|
26008
26008
|
if (heightLimit > 0 && (lineCountLimit = Math.max(Math.floor(heightLimit / lineHeight), 1)), lineClamp && (lineCountLimit = Math.min(lineCountLimit, lineClamp)), "number" == typeof maxLineWidth && maxLineWidth !== 1 / 0) {
|
|
26009
26009
|
if (maxLineWidth > 0) for (let i = 0; i < lines.length; i++) {
|
|
26010
26010
|
const str = lines[i];
|
|
26011
|
+
let needCut = !0;
|
|
26011
26012
|
if (i === lineCountLimit - 1) {
|
|
26012
26013
|
const clip = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis);
|
|
26013
26014
|
linesLayout.push({
|
|
@@ -26017,14 +26018,17 @@
|
|
|
26017
26018
|
break;
|
|
26018
26019
|
}
|
|
26019
26020
|
const clip = layoutObj.textMeasure.clipText(str, layoutObj.textOptions, maxLineWidth);
|
|
26020
|
-
if ("" !== str && "" === clip.str)
|
|
26021
|
-
|
|
26022
|
-
|
|
26023
|
-
|
|
26021
|
+
if ("" !== str && "" === clip.str) {
|
|
26022
|
+
if (ellipsis) {
|
|
26023
|
+
const clipEllipsis = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis);
|
|
26024
|
+
clip.str = null !== (_b = clipEllipsis.str) && void 0 !== _b ? _b : "", clip.width = null !== (_c = clipEllipsis.width) && void 0 !== _c ? _c : 0;
|
|
26025
|
+
} else clip.str = "", clip.width = 0;
|
|
26026
|
+
needCut = !1;
|
|
26027
|
+
}
|
|
26024
26028
|
if (linesLayout.push({
|
|
26025
26029
|
str: clip.str,
|
|
26026
26030
|
width: clip.width
|
|
26027
|
-
}), clip.str.length === str.length) ;else {
|
|
26031
|
+
}), clip.str.length === str.length) ;else if (needCut) {
|
|
26028
26032
|
const newStr = str.substring(clip.str.length);
|
|
26029
26033
|
lines.splice(i + 1, 0, newStr);
|
|
26030
26034
|
}
|
|
@@ -58418,7 +58422,7 @@
|
|
|
58418
58422
|
VChart.useMark([ComponentMark, GroupMark, ImageMark]);
|
|
58419
58423
|
Factory.registerRegion('region', Region);
|
|
58420
58424
|
Factory.registerLayout('base', Layout);
|
|
58421
|
-
const version = "1.2.2
|
|
58425
|
+
const version = "1.2.2";
|
|
58422
58426
|
Logger.getInstance(LoggerLevel.Error);
|
|
58423
58427
|
|
|
58424
58428
|
var SeriesMarkNameEnum;
|