• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CBIIT / bento-c3dc-frontend / 25557662953

08 May 2026 01:15PM UTC coverage: 0.112% (-0.04%) from 0.153%
25557662953

push

github

web-flow
Merge pull request #504 from CBIIT/C3DC-2146

C3DC 2146

6 of 6162 branches covered (0.1%)

Branch coverage included in aggregate %.

0 of 2386 new or added lines in 69 files covered. (0.0%)

31 existing lines in 7 files now uncovered.

10 of 8158 relevant lines covered (0.12%)

0.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/pages/CohortAnalyzer/HistogramPanel/utils/histogramLayoutUtils.js
1
/**
2
 * Measure a dragged card for strip drop-slot sizing.
3
 */
4
export function measureDragCardElement(el) {
NEW
5
  if (!el || typeof el.getBoundingClientRect !== 'function') return null;
×
NEW
6
  const r = el.getBoundingClientRect();
×
NEW
7
  const width = Math.round(r.width);
×
NEW
8
  const height = Math.round(r.height);
×
NEW
9
  if (width < 8 || height < 8) return null;
×
NEW
10
  return { width, height };
×
11
}
12

13
export function requiresCompactSpacing(dataset) {
NEW
14
  return dataset === 'race' || dataset === 'treatmentType' || dataset === 'response';
×
15
}
16

17
/**
18
 * Collapse the strip item being dragged so its slot is freed. Avoid display:none so native
19
 * drag + setDragImage stay reliable; drag image is captured in dragstart before this applies.
20
 */
NEW
21
export const HISTOGRAM_DRAG_SOURCE_COLLAPSED_STYLE = {
×
22
  width: 0,
23
  minWidth: 0,
24
  maxWidth: 0,
25
  flexGrow: 0,
26
  flexShrink: 1,
27
  flexBasis: 0,
28
  opacity: 0,
29
  overflow: 'hidden',
30
  margin: 0,
31
  padding: 0,
32
  border: 'none',
33
  pointerEvents: 'none',
34
  boxShadow: 'none',
35
  transition: 'none',
36
};
37

38
/**
39
 * Hide the native drag source while keeping its footprint so `vennSurvivalRow` does not
40
 * reflow (`flex-wrap: wrap`) into a stacked layout. Merge with explicit `width` / `height`
41
 * from the drag session (`besidePanelDragState`).
42
 */
NEW
43
export const BESIDE_TOP_ROW_DRAG_SOURCE_COLLAPSED_STYLE = {
×
44
  opacity: 0,
45
  visibility: 'hidden',
46
  overflow: 'hidden',
47
  pointerEvents: 'none',
48
  margin: 0,
49
  padding: 0,
50
  border: 'none',
51
  boxShadow: 'none',
52
  transition: 'none',
53
  flexShrink: 0,
54
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc