Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 13 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { selectById } from '../utils/helpers/Selectors'; |
||
2 | import { ElementIds } from '../utils/AppConsts'; |
||
3 | |||
4 | export function createSVGContainer(width: number, height: number) { |
||
5 | return selectById(ElementIds.OVERVIEW_CONTAINER_DIV) |
||
6 | .append('svg') |
||
7 | .attr('id', ElementIds.OVERVIEW_CONTAINER) |
||
8 | .attr('preserveAspectRatio', 'xMidYMid meet') |
||
9 | .attr('viewBox', `0 0 ${width} ${height}`) |
||
10 | .attr('width', width) |
||
11 | .attr('height', height); |
||
12 | } |
||
13 |