Skip to content

Commit ada7ea8

Browse files
committed
push
1 parent 624921f commit ada7ea8

49 files changed

Lines changed: 147 additions & 147 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

risk10_bau_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,8 +1947,8 @@
19471947
chart.update('none');
19481948
});
19491949

1950-
// Fix blurry canvas on high-DPI displays
1951-
const dpr = window.devicePixelRatio || 2;
1950+
// Fix blurry canvas on high-DPI displays - force 4x resolution
1951+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
19521952
const canvas = document.getElementById('severityChart');
19531953
const rect = canvas.getBoundingClientRect();
19541954
canvas.width = rect.width * dpr;
@@ -1978,7 +1978,7 @@
19781978
options: {
19791979
responsive: true,
19801980
maintainAspectRatio: false,
1981-
devicePixelRatio: window.devicePixelRatio || 2,
1981+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
19821982
interaction: {
19831983
mode: 'nearest',
19841984
intersect: true

risk10_pm_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,8 +1947,8 @@
19471947
chart.update('none');
19481948
});
19491949

1950-
// Fix blurry canvas on high-DPI displays
1951-
const dpr = window.devicePixelRatio || 2;
1950+
// Fix blurry canvas on high-DPI displays - force 4x resolution
1951+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
19521952
const canvas = document.getElementById('severityChart');
19531953
const rect = canvas.getBoundingClientRect();
19541954
canvas.width = rect.width * dpr;
@@ -1978,7 +1978,7 @@
19781978
options: {
19791979
responsive: true,
19801980
maintainAspectRatio: false,
1981-
devicePixelRatio: window.devicePixelRatio || 2,
1981+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
19821982
interaction: {
19831983
mode: 'nearest',
19841984
intersect: true

risk11_bau_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2972,8 +2972,8 @@
29722972
chart.update('none');
29732973
});
29742974

2975-
// Fix blurry canvas on high-DPI displays
2976-
const dpr = window.devicePixelRatio || 2;
2975+
// Fix blurry canvas on high-DPI displays - force 4x resolution
2976+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
29772977
const canvas = document.getElementById('severityChart');
29782978
const rect = canvas.getBoundingClientRect();
29792979
canvas.width = rect.width * dpr;
@@ -3003,7 +3003,7 @@
30033003
options: {
30043004
responsive: true,
30053005
maintainAspectRatio: false,
3006-
devicePixelRatio: window.devicePixelRatio || 2,
3006+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
30073007
interaction: {
30083008
mode: 'nearest',
30093009
intersect: true

risk11_pm_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2972,8 +2972,8 @@
29722972
chart.update('none');
29732973
});
29742974

2975-
// Fix blurry canvas on high-DPI displays
2976-
const dpr = window.devicePixelRatio || 2;
2975+
// Fix blurry canvas on high-DPI displays - force 4x resolution
2976+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
29772977
const canvas = document.getElementById('severityChart');
29782978
const rect = canvas.getBoundingClientRect();
29792979
canvas.width = rect.width * dpr;
@@ -3003,7 +3003,7 @@
30033003
options: {
30043004
responsive: true,
30053005
maintainAspectRatio: false,
3006-
devicePixelRatio: window.devicePixelRatio || 2,
3006+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
30073007
interaction: {
30083008
mode: 'nearest',
30093009
intersect: true

risk12_bau_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3122,8 +3122,8 @@
31223122
chart.update('none');
31233123
});
31243124

3125-
// Fix blurry canvas on high-DPI displays
3126-
const dpr = window.devicePixelRatio || 2;
3125+
// Fix blurry canvas on high-DPI displays - force 4x resolution
3126+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
31273127
const canvas = document.getElementById('severityChart');
31283128
const rect = canvas.getBoundingClientRect();
31293129
canvas.width = rect.width * dpr;
@@ -3153,7 +3153,7 @@
31533153
options: {
31543154
responsive: true,
31553155
maintainAspectRatio: false,
3156-
devicePixelRatio: window.devicePixelRatio || 2,
3156+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
31573157
interaction: {
31583158
mode: 'nearest',
31593159
intersect: true

risk12_pm_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3122,8 +3122,8 @@
31223122
chart.update('none');
31233123
});
31243124

3125-
// Fix blurry canvas on high-DPI displays
3126-
const dpr = window.devicePixelRatio || 2;
3125+
// Fix blurry canvas on high-DPI displays - force 4x resolution
3126+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
31273127
const canvas = document.getElementById('severityChart');
31283128
const rect = canvas.getBoundingClientRect();
31293129
canvas.width = rect.width * dpr;
@@ -3153,7 +3153,7 @@
31533153
options: {
31543154
responsive: true,
31553155
maintainAspectRatio: false,
3156-
devicePixelRatio: window.devicePixelRatio || 2,
3156+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
31573157
interaction: {
31583158
mode: 'nearest',
31593159
intersect: true

risk13_bau_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,8 +2222,8 @@
22222222
chart.update('none');
22232223
});
22242224

2225-
// Fix blurry canvas on high-DPI displays
2226-
const dpr = window.devicePixelRatio || 2;
2225+
// Fix blurry canvas on high-DPI displays - force 4x resolution
2226+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
22272227
const canvas = document.getElementById('severityChart');
22282228
const rect = canvas.getBoundingClientRect();
22292229
canvas.width = rect.width * dpr;
@@ -2253,7 +2253,7 @@
22532253
options: {
22542254
responsive: true,
22552255
maintainAspectRatio: false,
2256-
devicePixelRatio: window.devicePixelRatio || 2,
2256+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
22572257
interaction: {
22582258
mode: 'nearest',
22592259
intersect: true

risk13_pm_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,8 +2222,8 @@
22222222
chart.update('none');
22232223
});
22242224

2225-
// Fix blurry canvas on high-DPI displays
2226-
const dpr = window.devicePixelRatio || 2;
2225+
// Fix blurry canvas on high-DPI displays - force 4x resolution
2226+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
22272227
const canvas = document.getElementById('severityChart');
22282228
const rect = canvas.getBoundingClientRect();
22292229
canvas.width = rect.width * dpr;
@@ -2253,7 +2253,7 @@
22532253
options: {
22542254
responsive: true,
22552255
maintainAspectRatio: false,
2256-
devicePixelRatio: window.devicePixelRatio || 2,
2256+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
22572257
interaction: {
22582258
mode: 'nearest',
22592259
intersect: true

risk14_bau_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,8 +1897,8 @@
18971897
chart.update('none');
18981898
});
18991899

1900-
// Fix blurry canvas on high-DPI displays
1901-
const dpr = window.devicePixelRatio || 2;
1900+
// Fix blurry canvas on high-DPI displays - force 4x resolution
1901+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
19021902
const canvas = document.getElementById('severityChart');
19031903
const rect = canvas.getBoundingClientRect();
19041904
canvas.width = rect.width * dpr;
@@ -1928,7 +1928,7 @@
19281928
options: {
19291929
responsive: true,
19301930
maintainAspectRatio: false,
1931-
devicePixelRatio: window.devicePixelRatio || 2,
1931+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
19321932
interaction: {
19331933
mode: 'nearest',
19341934
intersect: true

risk14_pm_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,8 +1897,8 @@
18971897
chart.update('none');
18981898
});
18991899

1900-
// Fix blurry canvas on high-DPI displays
1901-
const dpr = window.devicePixelRatio || 2;
1900+
// Fix blurry canvas on high-DPI displays - force 4x resolution
1901+
const dpr = Math.max(window.devicePixelRatio || 1, 4);
19021902
const canvas = document.getElementById('severityChart');
19031903
const rect = canvas.getBoundingClientRect();
19041904
canvas.width = rect.width * dpr;
@@ -1928,7 +1928,7 @@
19281928
options: {
19291929
responsive: true,
19301930
maintainAspectRatio: false,
1931-
devicePixelRatio: window.devicePixelRatio || 2,
1931+
devicePixelRatio: Math.max(window.devicePixelRatio || 1, 4),
19321932
interaction: {
19331933
mode: 'nearest',
19341934
intersect: true

0 commit comments

Comments
 (0)