Skip to content

Commit 984dfe6

Browse files
authored
Merge pull request #141 from 0x41head/angular-ui
Fixed heatmap bug for Chrome
2 parents 205a5b9 + eaf0461 commit 984dfe6

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

src/app/component/circular-heatmap/circular-heatmap.component.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,28 @@ export class CircularHeatmapComponent implements OnInit {
219219

220220
svg.selectAll("path")
221221
.on('click', function(d) {
222-
_self.cardSubheader=d.explicitOriginalTarget.__data__.Level
223-
_self.tasksData=d.explicitOriginalTarget.__data__.Task;
224-
_self.cardHeader=d.explicitOriginalTarget.__data__.Name
222+
console.log(d)
223+
try{
224+
curr=d.explicitOriginalTarget.__data__
225+
}
226+
catch{
227+
curr=d.srcElement.__data__
228+
229+
}
230+
_self.cardSubheader=curr.Level
231+
_self.tasksData=curr.Task;
232+
_self.cardHeader=curr.Name
225233
_self.showTaskCard=true
226234
//console.log(_self.tasksData)
227235
})
228236
.on('mouseover', function(d) {
229-
console.log(d.explicitOriginalTarget)
230-
curr=d.explicitOriginalTarget.__data__
237+
console.log(d.toElement.__data__.Name)
238+
try{
239+
curr=d.explicitOriginalTarget.__data__
240+
}
241+
catch{
242+
curr=d.toElement.__data__
243+
}
231244
//console.log(curr)
232245
// increase the segment height of the one being hovered as well as all others of the same date
233246
// while decreasing the height of all others accordingly

src/assets/YAML/generated/generated.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ Implementation:
17601760
evidence: ""
17611761
comments: ""
17621762
assessment: ""
1763-
Pre-Commit checks & validations:
1763+
Pre-Commit checks and validations:
17641764
risk: Using an insecure application might lead to a compromised application.
17651765
This might lead to total data theft or data modification.
17661766
measure: |

0 commit comments

Comments
 (0)