@visactor/vchart 1.2.2-beta.1 → 1.2.2-beta.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 +6 -10
- 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 +5 -5
package/build/index.js
CHANGED
|
@@ -26008,7 +26008,6 @@
|
|
|
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;
|
|
26012
26011
|
if (i === lineCountLimit - 1) {
|
|
26013
26012
|
const clip = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis);
|
|
26014
26013
|
linesLayout.push({
|
|
@@ -26018,17 +26017,14 @@
|
|
|
26018
26017
|
break;
|
|
26019
26018
|
}
|
|
26020
26019
|
const clip = layoutObj.textMeasure.clipText(str, layoutObj.textOptions, maxLineWidth);
|
|
26021
|
-
if ("" !== str && "" === clip.str) {
|
|
26022
|
-
|
|
26023
|
-
|
|
26024
|
-
|
|
26025
|
-
} else clip.str = "", clip.width = 0;
|
|
26026
|
-
needCut = !1;
|
|
26027
|
-
}
|
|
26020
|
+
if ("" !== str && "" === clip.str) if (ellipsis) {
|
|
26021
|
+
const clipEllipsis = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis);
|
|
26022
|
+
clip.str = null !== (_b = clipEllipsis.str) && void 0 !== _b ? _b : "", clip.width = null !== (_c = clipEllipsis.width) && void 0 !== _c ? _c : 0;
|
|
26023
|
+
} else clip.str = "", clip.width = 0;
|
|
26028
26024
|
if (linesLayout.push({
|
|
26029
26025
|
str: clip.str,
|
|
26030
26026
|
width: clip.width
|
|
26031
|
-
}), clip.str.length === str.length) ;else
|
|
26027
|
+
}), clip.str.length === str.length) ;else {
|
|
26032
26028
|
const newStr = str.substring(clip.str.length);
|
|
26033
26029
|
lines.splice(i + 1, 0, newStr);
|
|
26034
26030
|
}
|
|
@@ -58422,7 +58418,7 @@
|
|
|
58422
58418
|
VChart.useMark([ComponentMark, GroupMark, ImageMark]);
|
|
58423
58419
|
Factory.registerRegion('region', Region);
|
|
58424
58420
|
Factory.registerLayout('base', Layout);
|
|
58425
|
-
const version = "1.2.2-beta.
|
|
58421
|
+
const version = "1.2.2-beta.2";
|
|
58426
58422
|
Logger.getInstance(LoggerLevel.Error);
|
|
58427
58423
|
|
|
58428
58424
|
var SeriesMarkNameEnum;
|