awing-library 2.1.134-beta → 2.1.135-beta
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.
|
@@ -27,19 +27,14 @@ var Styles_1 = require("./Styles");
|
|
|
27
27
|
var useStyles = (0, styles_1.makeStyles)({
|
|
28
28
|
point: {
|
|
29
29
|
position: "relative",
|
|
30
|
-
width: "10px",
|
|
31
|
-
height: "10px",
|
|
32
|
-
backgroundColor: "red",
|
|
33
|
-
borderRadius: "50%",
|
|
34
|
-
margin: "50px", /* for demonstration */
|
|
35
30
|
'&::after': {
|
|
36
|
-
content: '',
|
|
31
|
+
content: '""',
|
|
37
32
|
position: 'absolute',
|
|
38
33
|
top: '50%',
|
|
39
|
-
left: '-
|
|
40
|
-
right: '-
|
|
34
|
+
left: '-5px', /* Adjust as needed */
|
|
35
|
+
right: '-5px', /* Adjust as needed */
|
|
41
36
|
height: '2px', /* Thickness of the line */
|
|
42
|
-
backgroundColor: '
|
|
37
|
+
backgroundColor: 'inherit',
|
|
43
38
|
transform: 'translateY(-50%)'
|
|
44
39
|
}
|
|
45
40
|
},
|
|
@@ -251,18 +246,20 @@ var BarLineComponent = function (props) {
|
|
|
251
246
|
chart.update();
|
|
252
247
|
};
|
|
253
248
|
// Color box
|
|
254
|
-
var boxSpan = document.createElement('
|
|
249
|
+
var boxSpan = document.createElement('div');
|
|
255
250
|
boxSpan.style.background = item.fillStyle;
|
|
256
251
|
boxSpan.style.borderColor = item.strokeStyle;
|
|
257
252
|
boxSpan.style.borderWidth = item.lineWidth + 'px';
|
|
258
253
|
boxSpan.style.display = 'inline-block';
|
|
259
254
|
boxSpan.style.flexShrink = '0';
|
|
260
|
-
boxSpan.style.height = '
|
|
261
|
-
boxSpan.style.marginRight = '
|
|
262
|
-
boxSpan.style.width = '
|
|
255
|
+
boxSpan.style.height = '15px';
|
|
256
|
+
boxSpan.style.marginRight = '15px';
|
|
257
|
+
boxSpan.style.width = '15px';
|
|
258
|
+
console.log('item', item);
|
|
259
|
+
if ((item === null || item === void 0 ? void 0 : item.lineWidth) && (item === null || item === void 0 ? void 0 : item.pointStyle)) {
|
|
260
|
+
boxSpan.setAttribute("class", classes.point);
|
|
261
|
+
}
|
|
263
262
|
if ((item === null || item === void 0 ? void 0 : item.pointStyle) === 'circle') {
|
|
264
|
-
console.log('classes.point', classes.point);
|
|
265
|
-
// boxSpan.setAttribute("class", classes.point )
|
|
266
263
|
boxSpan.style.borderRadius = '20px';
|
|
267
264
|
}
|
|
268
265
|
// Text
|