Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and zhaoyongjie committed Nov 26, 2021
1 parent 6ca9d8f commit f01d32d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1569,8 +1569,8 @@ CalHeatMap.prototype = {
element.attr('fill', function(d) {
if (
d.v === null &&
(options.hasOwnProperty('considerMissingDataAsZero') &&
!options.considerMissingDataAsZero)
options.hasOwnProperty('considerMissingDataAsZero') &&
!options.considerMissingDataAsZero
) {
if (options.legendColors.hasOwnProperty('base')) {
return options.legendColors.base;
Expand Down Expand Up @@ -1616,8 +1616,8 @@ CalHeatMap.prototype = {
if (
parent.legendScale === null ||
(d.v === null &&
(options.hasOwnProperty('considerMissingDataAsZero') &&
!options.considerMissingDataAsZero) &&
options.hasOwnProperty('considerMissingDataAsZero') &&
!options.considerMissingDataAsZero &&
!options.legendColors.hasOwnProperty('base'))
) {
htmlClass.push('graph-rect');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1759,9 +1759,10 @@ module.exports = function(config) {
var svg = pc.selection.select('svg').select('g#arcs'),
id = arc.dims.i,
points = [arc.p2, arc.p3],
line = svg
.selectAll('line#arc-' + id)
.data([{ p1: arc.p1, p2: arc.p2 }, { p1: arc.p1, p2: arc.p3 }]),
line = svg.selectAll('line#arc-' + id).data([
{ p1: arc.p1, p2: arc.p2 },
{ p1: arc.p1, p2: arc.p3 },
]),
circles = svg.selectAll('circle#arc-' + id).data(points),
drag = d3.behavior.drag(),
path = svg.selectAll('path#arc-' + id).data([arc]);
Expand Down

0 comments on commit f01d32d

Please sign in to comment.