Passed
Push — master ( e14e22...172c7d )
by
unknown
03:44
created

src/overview/overview-container.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 11
mnd 0
bc 0
fnc 1
dl 0
loc 13
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A overview-container.ts ➔ createSVGContainer 0 9 1
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