Skip to content

Commit

Permalink
resolve merge
Browse files Browse the repository at this point in the history
  • Loading branch information
susielu committed Jan 5, 2018
2 parents 98bd21c + 7e0eb71 commit 68cdb11
Show file tree
Hide file tree
Showing 10 changed files with 126 additions and 105 deletions.
10 changes: 5 additions & 5 deletions d3-legend.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion d3-legend.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/d3-legend.min.js

Large diffs are not rendered by default.

96 changes: 50 additions & 46 deletions indexRollup.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion indexRollup.js.map

Large diffs are not rendered by default.

97 changes: 51 additions & 46 deletions indexRollupNext.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion indexRollupNext.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export default function color() {
cellEnter.append(shape).attr("class", classPrefix + "swatch")

let shapes = svg
.selectAll("g." + classPrefix + "cell " + shape)
.selectAll(
"g." + classPrefix + "cell " + shape + "." + classPrefix + "swatch"
)
.data(type.data)

//add event handlers
Expand Down
6 changes: 4 additions & 2 deletions src/size.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export default function size() {
.attr("class", classPrefix + "cell")
cellEnter.append(shape).attr("class", classPrefix + "swatch")

let shapes = svg.selectAll("g." + classPrefix + "cell " + shape)
let shapes = svg.selectAll(
"g." + classPrefix + "cell " + shape + "." + classPrefix + "swatch"
)

//add event handlers
helper.d3_addEvents(cellEnter, legendDispatcher)
Expand Down Expand Up @@ -114,7 +116,7 @@ export default function size() {
}
return bbox
})
//console.log('SHAPESIZE')

const maxH = max(shapeSize, d => d.height + d.y),
maxW = max(shapeSize, d => d.width + d.x)

Expand Down
2 changes: 1 addition & 1 deletion src/symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function symbol() {
.attr("class", classPrefix + "cell")
cellEnter.append(shape).attr("class", classPrefix + "swatch")

let shapes = svg.selectAll("g." + classPrefix + "cell " + shape)
let shapes = svg.selectAll("g." + classPrefix + "cell " + shape + "." + classPrefix + "swatch")

//add event handlers
helper.d3_addEvents(cellEnter, legendDispatcher)
Expand Down

0 comments on commit 68cdb11

Please sign in to comment.