@easyv/charts 1.8.21 → 1.8.23
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.
|
@@ -1112,6 +1112,7 @@ var RingLabel = function RingLabel(_ref12) {
|
|
|
1112
1112
|
_ref12$config$value = _ref12$config.value,
|
|
1113
1113
|
showValue = _ref12$config$value.show,
|
|
1114
1114
|
valueFont = _ref12$config$value.font,
|
|
1115
|
+
valueSameColor = _ref12$config$value.sameColor,
|
|
1115
1116
|
_ref12$config$value$s = _ref12$config$value.suffix,
|
|
1116
1117
|
showSuffix = _ref12$config$value$s.show,
|
|
1117
1118
|
text = _ref12$config$value$s.text,
|
|
@@ -1122,6 +1123,7 @@ var RingLabel = function RingLabel(_ref12) {
|
|
|
1122
1123
|
valueTranslate = _ref12$config$value.translate,
|
|
1123
1124
|
_ref12$config$percent = _ref12$config.percent,
|
|
1124
1125
|
showPercent = _ref12$config$percent.show,
|
|
1126
|
+
percentSameColor = _ref12$config$percent.sameColor,
|
|
1125
1127
|
percentFont = _ref12$config$percent.font,
|
|
1126
1128
|
precision = _ref12$config$percent.precision,
|
|
1127
1129
|
percentTranslate = _ref12$config$percent.translate,
|
package/package.json
CHANGED
|
@@ -1106,7 +1106,14 @@ const Label = ({
|
|
|
1106
1106
|
align,
|
|
1107
1107
|
show,
|
|
1108
1108
|
translate: { x: translateX, y: translateY },
|
|
1109
|
-
name: {
|
|
1109
|
+
name: {
|
|
1110
|
+
show: showName,
|
|
1111
|
+
font: nameFont,
|
|
1112
|
+
maxWidth,
|
|
1113
|
+
textOverflow,
|
|
1114
|
+
speed,
|
|
1115
|
+
translate: NameTranslate,
|
|
1116
|
+
},
|
|
1110
1117
|
value: {
|
|
1111
1118
|
show: showValue,
|
|
1112
1119
|
font: valueFont,
|
|
@@ -1117,14 +1124,14 @@ const Label = ({
|
|
|
1117
1124
|
fontSize: suffixFontSize,
|
|
1118
1125
|
translate: { x: suffixTranslateX, y: suffixTranslateY },
|
|
1119
1126
|
},
|
|
1120
|
-
translate:ValueTranslate
|
|
1127
|
+
translate: ValueTranslate,
|
|
1121
1128
|
},
|
|
1122
1129
|
percent: {
|
|
1123
1130
|
show: showPercent,
|
|
1124
1131
|
sameColor: percentSameColor,
|
|
1125
1132
|
font: percentFont,
|
|
1126
1133
|
precision,
|
|
1127
|
-
translate:PercentTranslate
|
|
1134
|
+
translate: PercentTranslate,
|
|
1128
1135
|
},
|
|
1129
1136
|
},
|
|
1130
1137
|
iosStyle: { isIOS, left, top },
|
|
@@ -1240,7 +1247,12 @@ const Label = ({
|
|
|
1240
1247
|
width: "max-content",
|
|
1241
1248
|
display: "flex",
|
|
1242
1249
|
flexDirection: mode == "horizontal" ? "row" : "column",
|
|
1243
|
-
alignItems:
|
|
1250
|
+
alignItems:
|
|
1251
|
+
align == "left"
|
|
1252
|
+
? "flex-start"
|
|
1253
|
+
: align == "center"
|
|
1254
|
+
? "center"
|
|
1255
|
+
: "flex-end",
|
|
1244
1256
|
justifyContent: "center",
|
|
1245
1257
|
}}
|
|
1246
1258
|
>
|
|
@@ -1255,7 +1267,7 @@ const Label = ({
|
|
|
1255
1267
|
maxWidth,
|
|
1256
1268
|
...nameStyle,
|
|
1257
1269
|
float: mode == "horizontal" ? "left" : "none",
|
|
1258
|
-
transform: `translate(${NameTranslate.x}px, ${NameTranslate.y}px)
|
|
1270
|
+
transform: `translate(${NameTranslate.x}px, ${NameTranslate.y}px)`,
|
|
1259
1271
|
}}
|
|
1260
1272
|
></TextOverflow>
|
|
1261
1273
|
)}
|
|
@@ -1264,7 +1276,7 @@ const Label = ({
|
|
|
1264
1276
|
style={{
|
|
1265
1277
|
...getFontStyle(valueFont),
|
|
1266
1278
|
color: valueSameColor ? pure : valueFont.color,
|
|
1267
|
-
transform: `translate(${ValueTranslate.x}px, ${ValueTranslate.y}px)
|
|
1279
|
+
transform: `translate(${ValueTranslate.x}px, ${ValueTranslate.y}px)`,
|
|
1268
1280
|
}}
|
|
1269
1281
|
>
|
|
1270
1282
|
{data.y}
|
|
@@ -1339,6 +1351,7 @@ const RingLabel = ({
|
|
|
1339
1351
|
value: {
|
|
1340
1352
|
show: showValue,
|
|
1341
1353
|
font: valueFont,
|
|
1354
|
+
sameColor: valueSameColor,
|
|
1342
1355
|
suffix: {
|
|
1343
1356
|
show: showSuffix,
|
|
1344
1357
|
text,
|
|
@@ -1349,6 +1362,7 @@ const RingLabel = ({
|
|
|
1349
1362
|
},
|
|
1350
1363
|
percent: {
|
|
1351
1364
|
show: showPercent,
|
|
1365
|
+
sameColor: percentSameColor,
|
|
1352
1366
|
font: percentFont,
|
|
1353
1367
|
precision,
|
|
1354
1368
|
translate: percentTranslate,
|
|
@@ -1393,7 +1407,6 @@ const RingLabel = ({
|
|
|
1393
1407
|
index
|
|
1394
1408
|
) => {
|
|
1395
1409
|
const [x, y] = arc.centroid();
|
|
1396
|
-
|
|
1397
1410
|
const midAngle = Math.atan2(y, x);
|
|
1398
1411
|
|
|
1399
1412
|
const [x1, y1] = getCoord(
|