@osrd-project/ui-charts 0.0.72 → 0.0.73

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.
@@ -16,3 +16,4 @@ export { CanvasContext, MouseContext, SpaceTimeChartContext } from './lib/contex
16
16
  export type { HoveredItem, SpaceTimeChartProps, SpaceScale, OperationalPoint, SpaceTimeChartTheme, PathData, Point, DataPoint, SpaceTimeChartContextType, DrawingFunction, PickingDrawingFunction, PickingElement, } from './lib/types';
17
17
  export { isPathOnScreen } from './utils/geometry';
18
18
  export { getSpaceAtTime } from './utils/scales';
19
+ export { getCrispLineCoordinate } from './utils/canvas';
package/dist/theme.css CHANGED
@@ -4750,7 +4750,6 @@ video {
4750
4750
  bottom: 11px;
4751
4751
  left: 0;
4752
4752
  width: 100%;
4753
- height: 0.5px;
4754
4753
  --tw-bg-opacity: 1;
4755
4754
  background-color: rgba(148, 145, 142, 1);
4756
4755
  background-color: rgba(148, 145, 142, var(--tw-bg-opacity, 1));
@@ -4825,12 +4824,26 @@ video {
4825
4824
  bottom: 16px;
4826
4825
  right: -1.625rem;
4827
4826
  width: 1.625rem;
4828
- height: 0.5px;
4829
4827
  opacity: 0.6;
4830
4828
  --tw-bg-opacity: 1;
4831
4829
  background-color: rgba(148, 145, 142, 1);
4832
4830
  background-color: rgba(148, 145, 142, var(--tw-bg-opacity, 1));
4833
4831
  }
4832
+ /**
4833
+ * Handle lines thickness, so that they are 0.5px wide only when DPR is at least 2 (since Firefox, particularly,
4834
+ * doesn't render subpixel wide lines):
4835
+ */
4836
+ .waypoint-separator::after,
4837
+ .waypoint::after {
4838
+ height: 0.5px;
4839
+ margin-bottom: -0.25px;
4840
+ }
4841
+ @media (-webkit-max-device-pixel-ratio: 2), (max-resolution: 2x) {
4842
+ .waypoint-separator::after,
4843
+ .waypoint::after {
4844
+ height: 1px
4845
+ }
4846
+ }
4834
4847
  .menu {
4835
4848
  --tw-bg-opacity: 1;
4836
4849
  background-color: rgba(245, 245, 245, 1);