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: '-10px', /* Adjust as needed */
40
- right: '-10px', /* Adjust as needed */
34
+ left: '-5px', /* Adjust as needed */
35
+ right: '-5px', /* Adjust as needed */
41
36
  height: '2px', /* Thickness of the line */
42
- backgroundColor: 'black',
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('span');
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 = '20px';
261
- boxSpan.style.marginRight = '10px';
262
- boxSpan.style.width = '20px';
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.134-beta",
3
+ "version": "2.1.135-beta",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",