layerchart 2.0.0-next.28 → 2.0.0-next.29

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.
@@ -361,13 +361,15 @@
361
361
  });
362
362
 
363
363
  const resolvedLabelProps = $derived({
364
- value: typeof label === 'function' ? '' : undefined,
364
+ value: typeof label === 'function' ? '' : label,
365
365
  x: resolvedLabelX,
366
366
  y: resolvedLabelY,
367
367
  textAnchor: resolvedLabelTextAnchor,
368
368
  verticalAnchor: resolvedLabelVerticalAnchor,
369
369
  rotate: orientation === 'vertical' && labelPlacement === 'middle' ? -90 : 0,
370
- capHeight: '.5rem', // text-[10px]
370
+ // complement 10px text (until Text supports custom styles)
371
+ capHeight: '7px',
372
+ lineHeight: '11px',
371
373
  ...labelProps,
372
374
  class: cls(
373
375
  layerClass('axis-label'),
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Sean Lynch <techniq35@gmail.com>",
5
5
  "license": "MIT",
6
6
  "repository": "techniq/layerchart",
7
- "version": "2.0.0-next.28",
7
+ "version": "2.0.0-next.29",
8
8
  "devDependencies": {
9
9
  "@changesets/cli": "^2.29.4",
10
10
  "@iconify-json/lucide": "^1.2.48",