Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@feedzai/brushable-histogram

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feedzai/brushable-histogram - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

coverage/block-navigation.js

25

CHANGELOG.md
# Brushable Histogram
## 1.1.6 (2019/02/19)
## 1.2.1 (2019/04/9)
- Allow the user to define a custom `brushDomain` via `props`.
- Update Storybook to 5.x
- The scales are updared if `yAccessor` or `xAccessor` are changed
- Update eslint config
## 1.2.0
- This version is broken, do not use it.
## 1.1.10 (2019/03/29)
- Fix Histogram's `onIntervalChange` method not being called when the graph's histogram data changes (and the graph itself) but the domain min and max remains the same. This change will cause a little degradation in the brushing performance, since the `setState` method will be invoke many times, even when there was no changes in the brush range. We will try to address this side effect in the next version.
## 1.1.9 (2019/03/20)
- Fix a bug related with data replacement on update ([#36](https://github.com/feedzai/brushable-histogram/pull/36#issue-262504945))
## 1.1.8 (2019/03/15)
- Fix a bug related with screen resizing events
## 1.1.7 (2019/02/19)
- Fix a bug related with the zooming interactions between the histogram

@@ -14,2 +35,4 @@ and brushing areas ([#26](https://github.com/feedzai/brushable-histogram/issues/26))

## 1.1.6 - BUMP
## 1.1.5 (2018/12/26)

@@ -16,0 +39,0 @@ - Adds missing check that cause the histogram to blow-up in some cases

@@ -1,1 +0,9 @@

{}
{"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/canvasRenderUtils.js": {"path":"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/canvasRenderUtils.js","statementMap":{"0":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"1":{"start":{"line":32,"column":4},"end":{"line":32,"column":19}},"2":{"start":{"line":33,"column":4},"end":{"line":33,"column":43}},"3":{"start":{"line":47,"column":4},"end":{"line":47,"column":30}},"4":{"start":{"line":49,"column":4},"end":{"line":49,"column":107}},"5":{"start":{"line":51,"column":4},"end":{"line":51,"column":48}}},"fnMap":{"0":{"name":"getRenderContext","decl":{"start":{"line":21,"column":16},"end":{"line":21,"column":32}},"loc":{"start":{"line":21,"column":42},"end":{"line":23,"column":1}},"line":21},"1":{"name":"clearCanvas","decl":{"start":{"line":31,"column":16},"end":{"line":31,"column":27}},"loc":{"start":{"line":31,"column":52},"end":{"line":34,"column":1}},"line":31},"2":{"name":"drawRect","decl":{"start":{"line":46,"column":16},"end":{"line":46,"column":24}},"loc":{"start":{"line":46,"column":93},"end":{"line":52,"column":1}},"line":46}},"branchMap":{"0":{"loc":{"start":{"line":46,"column":40},"end":{"line":46,"column":45}},"type":"default-arg","locations":[{"start":{"line":46,"column":44},"end":{"line":46,"column":45}}],"line":46},"1":{"loc":{"start":{"line":46,"column":47},"end":{"line":46,"column":52}},"type":"default-arg","locations":[{"start":{"line":46,"column":51},"end":{"line":46,"column":52}}],"line":46},"2":{"loc":{"start":{"line":46,"column":54},"end":{"line":46,"column":63}},"type":"default-arg","locations":[{"start":{"line":46,"column":62},"end":{"line":46,"column":63}}],"line":46},"3":{"loc":{"start":{"line":46,"column":65},"end":{"line":46,"column":75}},"type":"default-arg","locations":[{"start":{"line":46,"column":74},"end":{"line":46,"column":75}}],"line":46},"4":{"loc":{"start":{"line":46,"column":77},"end":{"line":46,"column":91}},"type":"default-arg","locations":[{"start":{"line":46,"column":87},"end":{"line":46,"column":91}}],"line":46},"5":{"loc":{"start":{"line":49,"column":30},"end":{"line":49,"column":106}},"type":"cond-expr","locations":[{"start":{"line":49,"column":73},"end":{"line":49,"column":90}},{"start":{"line":49,"column":93},"end":{"line":49,"column":106}}],"line":49},"6":{"loc":{"start":{"line":49,"column":30},"end":{"line":49,"column":70}},"type":"binary-expr","locations":[{"start":{"line":49,"column":30},"end":{"line":49,"column":47}},{"start":{"line":49,"column":52},"end":{"line":49,"column":69}}],"line":49}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0},"f":{"0":0,"1":0,"2":0},"b":{"0":[0],"1":[0],"2":[0],"3":[0],"4":[0],"5":[0,0],"6":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"57f592643da229c2b3b8d5c350e587c4a886ec9d"}
,"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/constants.js": {"path":"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/constants.js","statementMap":{"0":{"start":{"line":12,"column":29},"end":{"line":12,"column":31}},"1":{"start":{"line":13,"column":30},"end":{"line":13,"column":33}},"2":{"start":{"line":14,"column":30},"end":{"line":14,"column":31}},"3":{"start":{"line":15,"column":30},"end":{"line":15,"column":32}},"4":{"start":{"line":18,"column":31},"end":{"line":18,"column":32}},"5":{"start":{"line":21,"column":40},"end":{"line":21,"column":43}},"6":{"start":{"line":23,"column":30},"end":{"line":23,"column":31}},"7":{"start":{"line":26,"column":39},"end":{"line":26,"column":41}},"8":{"start":{"line":29,"column":32},"end":{"line":29,"column":35}},"9":{"start":{"line":32,"column":23},"end":{"line":32,"column":25}}},"fnMap":{},"branchMap":{},"s":{"0":4,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4,"8":4,"9":4},"f":{},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"692dad24957dd7b21dd34d1407bc0dc3f423d253"}
,"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/setupTests.js": {"path":"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/setupTests.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":6,"column":38}}},"fnMap":{},"branchMap":{},"s":{"0":4},"f":{},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"60c459604d56f5c765e02549cecf36c964b14594"}
,"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/utils.js": {"path":"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/utils.js","statementMap":{"0":{"start":{"line":27,"column":4},"end":{"line":27,"column":31}},"1":{"start":{"line":36,"column":4},"end":{"line":38,"column":5}},"2":{"start":{"line":37,"column":8},"end":{"line":37,"column":21}},"3":{"start":{"line":39,"column":4},"end":{"line":39,"column":14}},"4":{"start":{"line":42,"column":26},"end":{"line":42,"column":43}},"5":{"start":{"line":43,"column":19},"end":{"line":43,"column":36}},"6":{"start":{"line":44,"column":19},"end":{"line":44,"column":38}},"7":{"start":{"line":45,"column":17},"end":{"line":45,"column":36}},"8":{"start":{"line":46,"column":16},"end":{"line":46,"column":35}},"9":{"start":{"line":47,"column":17},"end":{"line":47,"column":36}},"10":{"start":{"line":48,"column":18},"end":{"line":48,"column":34}},"11":{"start":{"line":49,"column":17},"end":{"line":49,"column":33}},"12":{"start":{"line":62,"column":4},"end":{"line":80,"column":5}},"13":{"start":{"line":63,"column":8},"end":{"line":63,"column":38}},"14":{"start":{"line":64,"column":11},"end":{"line":80,"column":5}},"15":{"start":{"line":65,"column":8},"end":{"line":65,"column":33}},"16":{"start":{"line":66,"column":11},"end":{"line":80,"column":5}},"17":{"start":{"line":67,"column":8},"end":{"line":67,"column":33}},"18":{"start":{"line":68,"column":11},"end":{"line":80,"column":5}},"19":{"start":{"line":69,"column":8},"end":{"line":69,"column":31}},"20":{"start":{"line":70,"column":11},"end":{"line":80,"column":5}},"21":{"start":{"line":71,"column":8},"end":{"line":75,"column":9}},"22":{"start":{"line":72,"column":12},"end":{"line":72,"column":34}},"23":{"start":{"line":74,"column":12},"end":{"line":74,"column":35}},"24":{"start":{"line":76,"column":11},"end":{"line":80,"column":5}},"25":{"start":{"line":77,"column":8},"end":{"line":77,"column":32}},"26":{"start":{"line":79,"column":8},"end":{"line":79,"column":31}},"27":{"start":{"line":82,"column":4},"end":{"line":82,"column":27}},"28":{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},"29":{"start":{"line":95,"column":8},"end":{"line":95,"column":21}},"30":{"start":{"line":98,"column":4},"end":{"line":100,"column":5}},"31":{"start":{"line":99,"column":8},"end":{"line":99,"column":21}},"32":{"start":{"line":102,"column":4},"end":{"line":109,"column":5}},"33":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"34":{"start":{"line":104,"column":12},"end":{"line":104,"column":25}},"35":{"start":{"line":106,"column":8},"end":{"line":108,"column":9}},"36":{"start":{"line":107,"column":12},"end":{"line":107,"column":25}},"37":{"start":{"line":111,"column":4},"end":{"line":111,"column":16}},"38":{"start":{"line":121,"column":4},"end":{"line":121,"column":56}},"39":{"start":{"line":134,"column":4},"end":{"line":140,"column":5}},"40":{"start":{"line":135,"column":25},"end":{"line":135,"column":37}},"41":{"start":{"line":137,"column":8},"end":{"line":139,"column":9}},"42":{"start":{"line":138,"column":12},"end":{"line":138,"column":24}},"43":{"start":{"line":142,"column":4},"end":{"line":142,"column":17}},"44":{"start":{"line":154,"column":67},"end":{"line":154,"column":72}},"45":{"start":{"line":155,"column":18},"end":{"line":155,"column":28}},"46":{"start":{"line":157,"column":28},"end":{"line":157,"column":29}},"47":{"start":{"line":159,"column":4},"end":{"line":161,"column":5}},"48":{"start":{"line":160,"column":8},"end":{"line":160,"column":79}},"49":{"start":{"line":163,"column":28},"end":{"line":163,"column":81}},"50":{"start":{"line":165,"column":4},"end":{"line":175,"column":6}},"51":{"start":{"line":186,"column":20},"end":{"line":186,"column":22}},"52":{"start":{"line":188,"column":65},"end":{"line":188,"column":105}},"53":{"start":{"line":190,"column":4},"end":{"line":193,"column":6}},"54":{"start":{"line":195,"column":4},"end":{"line":203,"column":5}},"55":{"start":{"line":196,"column":8},"end":{"line":202,"column":10}},"56":{"start":{"line":205,"column":27},"end":{"line":205,"column":108}},"57":{"start":{"line":209,"column":4},"end":{"line":232,"column":5}},"58":{"start":{"line":213,"column":8},"end":{"line":213,"column":55}},"59":{"start":{"line":215,"column":20},"end":{"line":215,"column":54}},"60":{"start":{"line":217,"column":18},"end":{"line":217,"column":52}},"61":{"start":{"line":220,"column":8},"end":{"line":220,"column":17}},"62":{"start":{"line":223,"column":8},"end":{"line":231,"column":9}},"63":{"start":{"line":224,"column":12},"end":{"line":230,"column":14}},"64":{"start":{"line":234,"column":4},"end":{"line":234,"column":21}}},"fnMap":{"0":{"name":"isObject","decl":{"start":{"line":26,"column":16},"end":{"line":26,"column":24}},"loc":{"start":{"line":26,"column":30},"end":{"line":28,"column":1}},"line":26},"1":{"name":"histogramDefaultYAxisFormatter","decl":{"start":{"line":35,"column":16},"end":{"line":35,"column":46}},"loc":{"start":{"line":35,"column":54},"end":{"line":40,"column":1}},"line":35},"2":{"name":"multiDateFormat","decl":{"start":{"line":59,"column":16},"end":{"line":59,"column":31}},"loc":{"start":{"line":59,"column":38},"end":{"line":83,"column":1}},"line":59},"3":{"name":"isHistogramDataEqual","decl":{"start":{"line":93,"column":16},"end":{"line":93,"column":36}},"loc":{"start":{"line":93,"column":71},"end":{"line":112,"column":1}},"line":93},"4":{"name":"dateToTimestamp","decl":{"start":{"line":120,"column":16},"end":{"line":120,"column":31}},"loc":{"start":{"line":120,"column":38},"end":{"line":122,"column":1}},"line":120},"5":{"name":"havePropsChanged","decl":{"start":{"line":133,"column":16},"end":{"line":133,"column":32}},"loc":{"start":{"line":133,"column":62},"end":{"line":143,"column":1}},"line":133},"6":{"name":"calculateChartsPositionsAndSizing","decl":{"start":{"line":153,"column":16},"end":{"line":153,"column":49}},"loc":{"start":{"line":153,"column":57},"end":{"line":176,"column":1}},"line":153},"7":{"name":"calculateChartSizesAndDomain","decl":{"start":{"line":185,"column":16},"end":{"line":185,"column":44}},"loc":{"start":{"line":185,"column":87},"end":{"line":235,"column":1}},"line":185}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":4},"end":{"line":38,"column":5}},"type":"if","locations":[{"start":{"line":36,"column":4},"end":{"line":38,"column":5}},{"start":{"line":36,"column":4},"end":{"line":38,"column":5}}],"line":36},"1":{"loc":{"start":{"line":36,"column":8},"end":{"line":36,"column":44}},"type":"binary-expr","locations":[{"start":{"line":36,"column":8},"end":{"line":36,"column":17}},{"start":{"line":36,"column":21},"end":{"line":36,"column":44}}],"line":36},"2":{"loc":{"start":{"line":62,"column":4},"end":{"line":80,"column":5}},"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":80,"column":5}},{"start":{"line":62,"column":4},"end":{"line":80,"column":5}}],"line":62},"3":{"loc":{"start":{"line":64,"column":11},"end":{"line":80,"column":5}},"type":"if","locations":[{"start":{"line":64,"column":11},"end":{"line":80,"column":5}},{"start":{"line":64,"column":11},"end":{"line":80,"column":5}}],"line":64},"4":{"loc":{"start":{"line":66,"column":11},"end":{"line":80,"column":5}},"type":"if","locations":[{"start":{"line":66,"column":11},"end":{"line":80,"column":5}},{"start":{"line":66,"column":11},"end":{"line":80,"column":5}}],"line":66},"5":{"loc":{"start":{"line":68,"column":11},"end":{"line":80,"column":5}},"type":"if","locations":[{"start":{"line":68,"column":11},"end":{"line":80,"column":5}},{"start":{"line":68,"column":11},"end":{"line":80,"column":5}}],"line":68},"6":{"loc":{"start":{"line":70,"column":11},"end":{"line":80,"column":5}},"type":"if","locations":[{"start":{"line":70,"column":11},"end":{"line":80,"column":5}},{"start":{"line":70,"column":11},"end":{"line":80,"column":5}}],"line":70},"7":{"loc":{"start":{"line":71,"column":8},"end":{"line":75,"column":9}},"type":"if","locations":[{"start":{"line":71,"column":8},"end":{"line":75,"column":9}},{"start":{"line":71,"column":8},"end":{"line":75,"column":9}}],"line":71},"8":{"loc":{"start":{"line":76,"column":11},"end":{"line":80,"column":5}},"type":"if","locations":[{"start":{"line":76,"column":11},"end":{"line":80,"column":5}},{"start":{"line":76,"column":11},"end":{"line":80,"column":5}}],"line":76},"9":{"loc":{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},"type":"if","locations":[{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},{"start":{"line":94,"column":4},"end":{"line":96,"column":5}}],"line":94},"10":{"loc":{"start":{"line":94,"column":8},"end":{"line":94,"column":72}},"type":"binary-expr","locations":[{"start":{"line":94,"column":8},"end":{"line":94,"column":38}},{"start":{"line":94,"column":42},"end":{"line":94,"column":72}}],"line":94},"11":{"loc":{"start":{"line":98,"column":4},"end":{"line":100,"column":5}},"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":100,"column":5}},{"start":{"line":98,"column":4},"end":{"line":100,"column":5}}],"line":98},"12":{"loc":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"type":"if","locations":[{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},{"start":{"line":103,"column":8},"end":{"line":105,"column":9}}],"line":103},"13":{"loc":{"start":{"line":106,"column":8},"end":{"line":108,"column":9}},"type":"if","locations":[{"start":{"line":106,"column":8},"end":{"line":108,"column":9}},{"start":{"line":106,"column":8},"end":{"line":108,"column":9}}],"line":106},"14":{"loc":{"start":{"line":121,"column":11},"end":{"line":121,"column":55}},"type":"cond-expr","locations":[{"start":{"line":121,"column":34},"end":{"line":121,"column":48}},{"start":{"line":121,"column":51},"end":{"line":121,"column":55}}],"line":121},"15":{"loc":{"start":{"line":137,"column":8},"end":{"line":139,"column":9}},"type":"if","locations":[{"start":{"line":137,"column":8},"end":{"line":139,"column":9}},{"start":{"line":137,"column":8},"end":{"line":139,"column":9}}],"line":137},"16":{"loc":{"start":{"line":137,"column":12},"end":{"line":137,"column":89}},"type":"binary-expr","locations":[{"start":{"line":137,"column":12},"end":{"line":137,"column":46}},{"start":{"line":137,"column":50},"end":{"line":137,"column":89}}],"line":137},"17":{"loc":{"start":{"line":159,"column":4},"end":{"line":161,"column":5}},"type":"if","locations":[{"start":{"line":159,"column":4},"end":{"line":161,"column":5}},{"start":{"line":159,"column":4},"end":{"line":161,"column":5}}],"line":159},"18":{"loc":{"start":{"line":160,"column":28},"end":{"line":160,"column":78}},"type":"cond-expr","locations":[{"start":{"line":160,"column":60},"end":{"line":160,"column":74}},{"start":{"line":160,"column":77},"end":{"line":160,"column":78}}],"line":160},"19":{"loc":{"start":{"line":195,"column":4},"end":{"line":203,"column":5}},"type":"if","locations":[{"start":{"line":195,"column":4},"end":{"line":203,"column":5}},{"start":{"line":195,"column":4},"end":{"line":203,"column":5}}],"line":195},"20":{"loc":{"start":{"line":209,"column":4},"end":{"line":232,"column":5}},"type":"if","locations":[{"start":{"line":209,"column":4},"end":{"line":232,"column":5}},{"start":{"line":209,"column":4},"end":{"line":232,"column":5}}],"line":209},"21":{"loc":{"start":{"line":223,"column":8},"end":{"line":231,"column":9}},"type":"if","locations":[{"start":{"line":223,"column":8},"end":{"line":231,"column":9}},{"start":{"line":223,"column":8},"end":{"line":231,"column":9}}],"line":223},"22":{"loc":{"start":{"line":223,"column":12},"end":{"line":223,"column":74}},"type":"binary-expr","locations":[{"start":{"line":223,"column":12},"end":{"line":223,"column":41}},{"start":{"line":223,"column":45},"end":{"line":223,"column":74}}],"line":223}},"s":{"0":7,"1":5,"2":1,"3":4,"4":4,"5":4,"6":4,"7":4,"8":4,"9":4,"10":4,"11":4,"12":1,"13":0,"14":1,"15":0,"16":1,"17":0,"18":1,"19":0,"20":1,"21":0,"22":0,"23":0,"24":1,"25":0,"26":1,"27":1,"28":27,"29":0,"30":27,"31":6,"32":21,"33":175,"34":1,"35":174,"36":1,"37":19,"38":92,"39":5,"40":6,"41":6,"42":2,"43":3,"44":22,"45":22,"46":22,"47":22,"48":18,"49":22,"50":22,"51":20,"52":20,"53":20,"54":20,"55":3,"56":17,"57":17,"58":6,"59":6,"60":6,"61":6,"62":6,"63":5,"64":17},"f":{"0":7,"1":5,"2":1,"3":27,"4":92,"5":5,"6":22,"7":20},"b":{"0":[1,4],"1":[5,2],"2":[0,1],"3":[0,1],"4":[0,1],"5":[0,1],"6":[0,1],"7":[0,0],"8":[0,1],"9":[0,27],"10":[27,27],"11":[6,21],"12":[1,174],"13":[1,173],"14":[44,48],"15":[2,4],"16":[6,4],"17":[18,4],"18":[18,0],"19":[3,17],"20":[6,11],"21":[5,1],"22":[6,2]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"54c77db4abeb73661646ce6ddec3ddd5bd2e7a52"}
,"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/DensityChart/DensityChart.js": {"path":"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/DensityChart/DensityChart.js","statementMap":{"0":{"start":{"line":50,"column":8},"end":{"line":50,"column":21}},"1":{"start":{"line":52,"column":8},"end":{"line":52,"column":49}},"2":{"start":{"line":53,"column":8},"end":{"line":53,"column":49}},"3":{"start":{"line":57,"column":8},"end":{"line":57,"column":88}},"4":{"start":{"line":59,"column":54},"end":{"line":59,"column":64}},"5":{"start":{"line":61,"column":8},"end":{"line":66,"column":50}},"6":{"start":{"line":68,"column":8},"end":{"line":68,"column":28}},"7":{"start":{"line":70,"column":8},"end":{"line":70,"column":52}},"8":{"start":{"line":72,"column":8},"end":{"line":72,"column":33}},"9":{"start":{"line":76,"column":71},"end":{"line":76,"column":81}},"10":{"start":{"line":78,"column":8},"end":{"line":78,"column":28}},"11":{"start":{"line":80,"column":8},"end":{"line":80,"column":98}},"12":{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},"13":{"start":{"line":85,"column":12},"end":{"line":85,"column":37}},"14":{"start":{"line":90,"column":8},"end":{"line":90,"column":41}},"15":{"start":{"line":91,"column":8},"end":{"line":91,"column":41}},"16":{"start":{"line":103,"column":22},"end":{"line":103,"column":40}},"17":{"start":{"line":105,"column":8},"end":{"line":107,"column":9}},"18":{"start":{"line":106,"column":12},"end":{"line":106,"column":19}},"19":{"start":{"line":111,"column":8},"end":{"line":116,"column":9}},"20":{"start":{"line":112,"column":12},"end":{"line":112,"column":45}},"21":{"start":{"line":115,"column":12},"end":{"line":115,"column":67}},"22":{"start":{"line":118,"column":8},"end":{"line":118,"column":51}},"23":{"start":{"line":129,"column":8},"end":{"line":129,"column":23}},"24":{"start":{"line":137,"column":8},"end":{"line":139,"column":9}},"25":{"start":{"line":138,"column":12},"end":{"line":138,"column":19}},"26":{"start":{"line":141,"column":8},"end":{"line":142,"column":30}},"27":{"start":{"line":151,"column":8},"end":{"line":153,"column":9}},"28":{"start":{"line":152,"column":12},"end":{"line":152,"column":19}},"29":{"start":{"line":155,"column":8},"end":{"line":156,"column":43}},"30":{"start":{"line":166,"column":8},"end":{"line":173,"column":11}},"31":{"start":{"line":194,"column":12},"end":{"line":194,"column":22}},"32":{"start":{"line":196,"column":8},"end":{"line":196,"column":67}},"33":{"start":{"line":198,"column":8},"end":{"line":212,"column":9}},"34":{"start":{"line":199,"column":22},"end":{"line":199,"column":40}},"35":{"start":{"line":200,"column":42},"end":{"line":200,"column":83}},"36":{"start":{"line":202,"column":12},"end":{"line":211,"column":14}},"37":{"start":{"line":221,"column":56},"end":{"line":221,"column":66}},"38":{"start":{"line":223,"column":8},"end":{"line":225,"column":9}},"39":{"start":{"line":224,"column":12},"end":{"line":224,"column":24}},"40":{"start":{"line":227,"column":8},"end":{"line":237,"column":10}},"41":{"start":{"line":241,"column":26},"end":{"line":241,"column":27}},"42":{"start":{"line":243,"column":43},"end":{"line":243,"column":53}},"43":{"start":{"line":245,"column":8},"end":{"line":247,"column":9}},"44":{"start":{"line":246,"column":12},"end":{"line":246,"column":38}},"45":{"start":{"line":249,"column":40},"end":{"line":249,"column":61}},"46":{"start":{"line":251,"column":8},"end":{"line":273,"column":10}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":49,"column":4},"end":{"line":49,"column":5}},"loc":{"start":{"line":49,"column":23},"end":{"line":54,"column":5}},"line":49},"1":{"name":"(anonymous_1)","decl":{"start":{"line":56,"column":4},"end":{"line":56,"column":5}},"loc":{"start":{"line":56,"column":24},"end":{"line":73,"column":5}},"line":56},"2":{"name":"(anonymous_2)","decl":{"start":{"line":75,"column":4},"end":{"line":75,"column":5}},"loc":{"start":{"line":75,"column":34},"end":{"line":87,"column":5}},"line":75},"3":{"name":"(anonymous_3)","decl":{"start":{"line":89,"column":4},"end":{"line":89,"column":5}},"loc":{"start":{"line":89,"column":27},"end":{"line":92,"column":5}},"line":89},"4":{"name":"(anonymous_4)","decl":{"start":{"line":100,"column":21},"end":{"line":100,"column":22}},"loc":{"start":{"line":100,"column":27},"end":{"line":119,"column":5}},"line":100},"5":{"name":"(anonymous_5)","decl":{"start":{"line":128,"column":4},"end":{"line":128,"column":5}},"loc":{"start":{"line":128,"column":18},"end":{"line":130,"column":5}},"line":128},"6":{"name":"(anonymous_6)","decl":{"start":{"line":136,"column":4},"end":{"line":136,"column":5}},"loc":{"start":{"line":136,"column":19},"end":{"line":143,"column":5}},"line":136},"7":{"name":"(anonymous_7)","decl":{"start":{"line":150,"column":17},"end":{"line":150,"column":18}},"loc":{"start":{"line":150,"column":29},"end":{"line":157,"column":5}},"line":150},"8":{"name":"(anonymous_8)","decl":{"start":{"line":165,"column":4},"end":{"line":165,"column":5}},"loc":{"start":{"line":165,"column":41},"end":{"line":174,"column":5}},"line":165},"9":{"name":"(anonymous_9)","decl":{"start":{"line":183,"column":4},"end":{"line":183,"column":5}},"loc":{"start":{"line":183,"column":24},"end":{"line":213,"column":5}},"line":183},"10":{"name":"(anonymous_10)","decl":{"start":{"line":219,"column":4},"end":{"line":219,"column":5}},"loc":{"start":{"line":219,"column":24},"end":{"line":238,"column":5}},"line":219},"11":{"name":"(anonymous_11)","decl":{"start":{"line":240,"column":4},"end":{"line":240,"column":5}},"loc":{"start":{"line":240,"column":13},"end":{"line":274,"column":5}},"line":240}},"branchMap":{"0":{"loc":{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},"type":"if","locations":[{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},{"start":{"line":84,"column":8},"end":{"line":86,"column":9}}],"line":84},"1":{"loc":{"start":{"line":105,"column":8},"end":{"line":107,"column":9}},"type":"if","locations":[{"start":{"line":105,"column":8},"end":{"line":107,"column":9}},{"start":{"line":105,"column":8},"end":{"line":107,"column":9}}],"line":105},"2":{"loc":{"start":{"line":105,"column":12},"end":{"line":105,"column":66}},"type":"binary-expr","locations":[{"start":{"line":105,"column":12},"end":{"line":105,"column":29}},{"start":{"line":105,"column":33},"end":{"line":105,"column":66}}],"line":105},"3":{"loc":{"start":{"line":111,"column":8},"end":{"line":116,"column":9}},"type":"if","locations":[{"start":{"line":111,"column":8},"end":{"line":116,"column":9}},{"start":{"line":111,"column":8},"end":{"line":116,"column":9}}],"line":111},"4":{"loc":{"start":{"line":137,"column":8},"end":{"line":139,"column":9}},"type":"if","locations":[{"start":{"line":137,"column":8},"end":{"line":139,"column":9}},{"start":{"line":137,"column":8},"end":{"line":139,"column":9}}],"line":137},"5":{"loc":{"start":{"line":151,"column":8},"end":{"line":153,"column":9}},"type":"if","locations":[{"start":{"line":151,"column":8},"end":{"line":153,"column":9}},{"start":{"line":151,"column":8},"end":{"line":153,"column":9}}],"line":151},"6":{"loc":{"start":{"line":200,"column":42},"end":{"line":200,"column":83}},"type":"binary-expr","locations":[{"start":{"line":200,"column":42},"end":{"line":200,"column":61}},{"start":{"line":200,"column":65},"end":{"line":200,"column":83}}],"line":200},"7":{"loc":{"start":{"line":209,"column":31},"end":{"line":209,"column":107}},"type":"cond-expr","locations":[{"start":{"line":209,"column":55},"end":{"line":209,"column":77}},{"start":{"line":209,"column":80},"end":{"line":209,"column":107}}],"line":209},"8":{"loc":{"start":{"line":223,"column":8},"end":{"line":225,"column":9}},"type":"if","locations":[{"start":{"line":223,"column":8},"end":{"line":225,"column":9}},{"start":{"line":223,"column":8},"end":{"line":225,"column":9}}],"line":223},"9":{"loc":{"start":{"line":245,"column":8},"end":{"line":247,"column":9}},"type":"if","locations":[{"start":{"line":245,"column":8},"end":{"line":247,"column":9}},{"start":{"line":245,"column":8},"end":{"line":247,"column":9}}],"line":245}},"s":{"0":10,"1":10,"2":10,"3":10,"4":10,"5":10,"6":10,"7":10,"8":10,"9":1,"10":1,"11":1,"12":1,"13":1,"14":0,"15":0,"16":23,"17":23,"18":1,"19":22,"20":21,"21":1,"22":22,"23":20,"24":11,"25":1,"26":10,"27":11,"28":1,"29":10,"30":1,"31":11,"32":11,"33":11,"34":100,"35":100,"36":100,"37":11,"38":11,"39":2,"40":9,"41":11,"42":11,"43":11,"44":2,"45":11,"46":11},"f":{"0":10,"1":10,"2":1,"3":0,"4":23,"5":20,"6":11,"7":11,"8":1,"9":11,"10":11,"11":11},"b":{"0":[1,0],"1":[1,22],"2":[23,3],"3":[21,1],"4":[1,10],"5":[1,10],"6":[100,99],"7":[94,6],"8":[2,9],"9":[2,9]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"815605bbac7fd3827e915aa9eba63c9bf8abdbeb"}
,"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/DensityChart/PlayButton.js": {"path":"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/DensityChart/PlayButton.js","statementMap":{"0":{"start":{"line":5,"column":24},"end":{"line":8,"column":83}},"1":{"start":{"line":10,"column":24},"end":{"line":15,"column":1}},"2":{"start":{"line":57,"column":89},"end":{"line":57,"column":99}},"3":{"start":{"line":58,"column":32},"end":{"line":58,"column":66}},"4":{"start":{"line":59,"column":32},"end":{"line":59,"column":66}},"5":{"start":{"line":60,"column":27},"end":{"line":60,"column":42}},"6":{"start":{"line":62,"column":24},"end":{"line":62,"column":29}},"7":{"start":{"line":63,"column":25},"end":{"line":63,"column":42}},"8":{"start":{"line":65,"column":8},"end":{"line":65,"column":35}},"9":{"start":{"line":67,"column":8},"end":{"line":71,"column":9}},"10":{"start":{"line":68,"column":12},"end":{"line":68,"column":39}},"11":{"start":{"line":70,"column":12},"end":{"line":70,"column":44}},"12":{"start":{"line":73,"column":8},"end":{"line":75,"column":75}},"13":{"start":{"line":75,"column":17},"end":{"line":75,"column":73}},"14":{"start":{"line":85,"column":8},"end":{"line":85,"column":26}},"15":{"start":{"line":100,"column":8},"end":{"line":103,"column":9}},"16":{"start":{"line":101,"column":12},"end":{"line":101,"column":30}},"17":{"start":{"line":102,"column":12},"end":{"line":102,"column":19}},"18":{"start":{"line":106,"column":8},"end":{"line":112,"column":9}},"19":{"start":{"line":108,"column":12},"end":{"line":108,"column":32}},"20":{"start":{"line":111,"column":12},"end":{"line":111,"column":34}},"21":{"start":{"line":113,"column":23},"end":{"line":113,"column":45}},"22":{"start":{"line":116,"column":8},"end":{"line":116,"column":37}},"23":{"start":{"line":129,"column":8},"end":{"line":131,"column":34}},"24":{"start":{"line":130,"column":12},"end":{"line":130,"column":46}},"25":{"start":{"line":141,"column":8},"end":{"line":143,"column":51}},"26":{"start":{"line":143,"column":17},"end":{"line":143,"column":49}},"27":{"start":{"line":147,"column":24},"end":{"line":147,"column":79}},"28":{"start":{"line":151,"column":8},"end":{"line":164,"column":9}},"29":{"start":{"line":152,"column":12},"end":{"line":156,"column":14}},"30":{"start":{"line":158,"column":12},"end":{"line":163,"column":14}},"31":{"start":{"line":166,"column":8},"end":{"line":172,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":56,"column":19},"end":{"line":56,"column":20}},"loc":{"start":{"line":56,"column":25},"end":{"line":76,"column":5}},"line":56},"1":{"name":"(anonymous_1)","decl":{"start":{"line":75,"column":11},"end":{"line":75,"column":12}},"loc":{"start":{"line":75,"column":17},"end":{"line":75,"column":73}},"line":75},"2":{"name":"(anonymous_2)","decl":{"start":{"line":84,"column":19},"end":{"line":84,"column":20}},"loc":{"start":{"line":84,"column":25},"end":{"line":86,"column":5}},"line":84},"3":{"name":"(anonymous_3)","decl":{"start":{"line":97,"column":4},"end":{"line":97,"column":5}},"loc":{"start":{"line":97,"column":33},"end":{"line":117,"column":5}},"line":97},"4":{"name":"(anonymous_4)","decl":{"start":{"line":128,"column":4},"end":{"line":128,"column":5}},"loc":{"start":{"line":128,"column":43},"end":{"line":132,"column":5}},"line":128},"5":{"name":"(anonymous_5)","decl":{"start":{"line":129,"column":40},"end":{"line":129,"column":41}},"loc":{"start":{"line":129,"column":46},"end":{"line":131,"column":9}},"line":129},"6":{"name":"(anonymous_6)","decl":{"start":{"line":140,"column":4},"end":{"line":140,"column":5}},"loc":{"start":{"line":140,"column":17},"end":{"line":144,"column":5}},"line":140},"7":{"name":"(anonymous_7)","decl":{"start":{"line":143,"column":11},"end":{"line":143,"column":12}},"loc":{"start":{"line":143,"column":17},"end":{"line":143,"column":49}},"line":143},"8":{"name":"(anonymous_8)","decl":{"start":{"line":146,"column":4},"end":{"line":146,"column":5}},"loc":{"start":{"line":146,"column":13},"end":{"line":173,"column":5}},"line":146}},"branchMap":{"0":{"loc":{"start":{"line":67,"column":8},"end":{"line":71,"column":9}},"type":"if","locations":[{"start":{"line":67,"column":8},"end":{"line":71,"column":9}},{"start":{"line":67,"column":8},"end":{"line":71,"column":9}}],"line":67},"1":{"loc":{"start":{"line":100,"column":8},"end":{"line":103,"column":9}},"type":"if","locations":[{"start":{"line":100,"column":8},"end":{"line":103,"column":9}},{"start":{"line":100,"column":8},"end":{"line":103,"column":9}}],"line":100},"2":{"loc":{"start":{"line":106,"column":8},"end":{"line":112,"column":9}},"type":"if","locations":[{"start":{"line":106,"column":8},"end":{"line":112,"column":9}},{"start":{"line":106,"column":8},"end":{"line":112,"column":9}}],"line":106},"3":{"loc":{"start":{"line":147,"column":24},"end":{"line":147,"column":79}},"type":"cond-expr","locations":[{"start":{"line":147,"column":42},"end":{"line":147,"column":59}},{"start":{"line":147,"column":62},"end":{"line":147,"column":79}}],"line":147},"4":{"loc":{"start":{"line":151,"column":8},"end":{"line":164,"column":9}},"type":"if","locations":[{"start":{"line":151,"column":8},"end":{"line":164,"column":9}},{"start":{"line":151,"column":8},"end":{"line":164,"column":9}}],"line":151}},"s":{"0":3,"1":3,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":1,"11":1,"12":2,"13":2,"14":0,"15":3,"16":1,"17":1,"18":2,"19":1,"20":1,"21":2,"22":2,"23":2,"24":0,"25":0,"26":0,"27":18,"28":18,"29":2,"30":16,"31":18},"f":{"0":2,"1":2,"2":0,"3":3,"4":2,"5":0,"6":0,"7":0,"8":18},"b":{"0":[1,1],"1":[1,2],"2":[1,1],"3":[2,16],"4":[2,16]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"ed70ac8e33a9da9f8ed1c270e2c8e0f12b081800"}
,"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/Histogram/Histogram.js": {"path":"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/src/Histogram/Histogram.js","statementMap":{"0":{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},"1":{"start":{"line":85,"column":12},"end":{"line":85,"column":76}},"2":{"start":{"line":91,"column":8},"end":{"line":93,"column":9}},"3":{"start":{"line":92,"column":12},"end":{"line":92,"column":24}},"4":{"start":{"line":95,"column":26},"end":{"line":95,"column":92}},"5":{"start":{"line":97,"column":8},"end":{"line":97,"column":68}},"6":{"start":{"line":101,"column":8},"end":{"line":101,"column":21}},"7":{"start":{"line":103,"column":8},"end":{"line":103,"column":51}},"8":{"start":{"line":104,"column":8},"end":{"line":104,"column":51}},"9":{"start":{"line":105,"column":8},"end":{"line":105,"column":51}},"10":{"start":{"line":109,"column":8},"end":{"line":116,"column":12}},"11":{"start":{"line":118,"column":8},"end":{"line":118,"column":35}},"12":{"start":{"line":122,"column":8},"end":{"line":122,"column":40}},"13":{"start":{"line":126,"column":32},"end":{"line":126,"column":78}},"14":{"start":{"line":127,"column":31},"end":{"line":128,"column":113}},"15":{"start":{"line":130,"column":8},"end":{"line":133,"column":9}},"16":{"start":{"line":131,"column":12},"end":{"line":131,"column":39}},"17":{"start":{"line":132,"column":12},"end":{"line":132,"column":44}},"18":{"start":{"line":137,"column":8},"end":{"line":137,"column":35}},"19":{"start":{"line":147,"column":34},"end":{"line":147,"column":51}},"20":{"start":{"line":148,"column":34},"end":{"line":148,"column":51}},"21":{"start":{"line":151,"column":30},"end":{"line":151,"column":80}},"22":{"start":{"line":153,"column":8},"end":{"line":155,"column":47}},"23":{"start":{"line":157,"column":8},"end":{"line":157,"column":76}},"24":{"start":{"line":169,"column":8},"end":{"line":171,"column":9}},"25":{"start":{"line":170,"column":12},"end":{"line":170,"column":19}},"26":{"start":{"line":173,"column":30},"end":{"line":173,"column":37}},"27":{"start":{"line":177,"column":30},"end":{"line":177,"column":82}},"28":{"start":{"line":179,"column":8},"end":{"line":179,"column":76}},"29":{"start":{"line":189,"column":22},"end":{"line":189,"column":66}},"30":{"start":{"line":193,"column":30},"end":{"line":193,"column":47}},"31":{"start":{"line":195,"column":8},"end":{"line":203,"column":11}},"32":{"start":{"line":196,"column":24},"end":{"line":196,"column":54}},"33":{"start":{"line":198,"column":12},"end":{"line":202,"column":14}},"34":{"start":{"line":211,"column":8},"end":{"line":213,"column":11}},"35":{"start":{"line":221,"column":29},"end":{"line":221,"column":51}},"36":{"start":{"line":222,"column":34},"end":{"line":222,"column":69}},"37":{"start":{"line":224,"column":8},"end":{"line":226,"column":67}},"38":{"start":{"line":229,"column":31},"end":{"line":229,"column":67}},"39":{"start":{"line":231,"column":8},"end":{"line":241,"column":44}},"40":{"start":{"line":249,"column":8},"end":{"line":249,"column":65}},"41":{"start":{"line":251,"column":8},"end":{"line":251,"column":43}},"42":{"start":{"line":262,"column":8},"end":{"line":280,"column":9}},"43":{"start":{"line":264,"column":12},"end":{"line":270,"column":49}},"44":{"start":{"line":272,"column":31},"end":{"line":272,"column":63}},"45":{"start":{"line":273,"column":33},"end":{"line":274,"column":73}},"46":{"start":{"line":276,"column":12},"end":{"line":279,"column":29}},"47":{"start":{"line":290,"column":8},"end":{"line":290,"column":48}},"48":{"start":{"line":292,"column":8},"end":{"line":298,"column":46}},"49":{"start":{"line":301,"column":34},"end":{"line":307,"column":10}},"50":{"start":{"line":311,"column":8},"end":{"line":315,"column":9}},"51":{"start":{"line":312,"column":12},"end":{"line":312,"column":21}},"52":{"start":{"line":314,"column":12},"end":{"line":314,"column":65}},"53":{"start":{"line":314,"column":53},"end":{"line":314,"column":63}},"54":{"start":{"line":318,"column":8},"end":{"line":320,"column":75}},"55":{"start":{"line":322,"column":8},"end":{"line":326,"column":11}},"56":{"start":{"line":325,"column":12},"end":{"line":325,"column":40}},"57":{"start":{"line":337,"column":8},"end":{"line":371,"column":11}},"58":{"start":{"line":338,"column":44},"end":{"line":344,"column":14}},"59":{"start":{"line":346,"column":12},"end":{"line":348,"column":13}},"60":{"start":{"line":347,"column":16},"end":{"line":347,"column":28}},"61":{"start":{"line":350,"column":31},"end":{"line":350,"column":61}},"62":{"start":{"line":351,"column":31},"end":{"line":351,"column":61}},"63":{"start":{"line":354,"column":12},"end":{"line":357,"column":13}},"64":{"start":{"line":355,"column":16},"end":{"line":355,"column":36}},"65":{"start":{"line":356,"column":16},"end":{"line":356,"column":36}},"66":{"start":{"line":359,"column":12},"end":{"line":370,"column":14}},"67":{"start":{"line":382,"column":36},"end":{"line":387,"column":66}},"68":{"start":{"line":390,"column":31},"end":{"line":392,"column":50}},"69":{"start":{"line":394,"column":8},"end":{"line":395,"column":34}},"70":{"start":{"line":397,"column":31},"end":{"line":400,"column":50}},"71":{"start":{"line":402,"column":8},"end":{"line":403,"column":34}},"72":{"start":{"line":418,"column":29},"end":{"line":422,"column":9}},"73":{"start":{"line":424,"column":8},"end":{"line":426,"column":9}},"74":{"start":{"line":425,"column":12},"end":{"line":425,"column":24}},"75":{"start":{"line":428,"column":31},"end":{"line":428,"column":77}},"76":{"start":{"line":430,"column":8},"end":{"line":437,"column":10}},"77":{"start":{"line":446,"column":40},"end":{"line":446,"column":102}},"78":{"start":{"line":447,"column":40},"end":{"line":447,"column":102}},"79":{"start":{"line":449,"column":64},"end":{"line":449,"column":74}},"80":{"start":{"line":450,"column":45},"end":{"line":450,"column":55}},"81":{"start":{"line":452,"column":8},"end":{"line":479,"column":10}},"82":{"start":{"line":487,"column":56},"end":{"line":487,"column":66}},"83":{"start":{"line":489,"column":68},"end":{"line":489,"column":78}},"84":{"start":{"line":491,"column":8},"end":{"line":509,"column":10}},"85":{"start":{"line":513,"column":8},"end":{"line":519,"column":10}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":78,"column":26},"end":{"line":78,"column":27}},"loc":{"start":{"line":78,"column":32},"end":{"line":78,"column":34}},"line":78},"1":{"name":"(anonymous_1)","decl":{"start":{"line":83,"column":4},"end":{"line":83,"column":5}},"loc":{"start":{"line":83,"column":50},"end":{"line":98,"column":5}},"line":83},"2":{"name":"(anonymous_2)","decl":{"start":{"line":100,"column":4},"end":{"line":100,"column":5}},"loc":{"start":{"line":100,"column":23},"end":{"line":119,"column":5}},"line":100},"3":{"name":"(anonymous_3)","decl":{"start":{"line":121,"column":4},"end":{"line":121,"column":5}},"loc":{"start":{"line":121,"column":24},"end":{"line":123,"column":5}},"line":121},"4":{"name":"(anonymous_4)","decl":{"start":{"line":125,"column":4},"end":{"line":125,"column":5}},"loc":{"start":{"line":125,"column":34},"end":{"line":134,"column":5}},"line":125},"5":{"name":"(anonymous_5)","decl":{"start":{"line":136,"column":4},"end":{"line":136,"column":5}},"loc":{"start":{"line":136,"column":27},"end":{"line":138,"column":5}},"line":136},"6":{"name":"(anonymous_6)","decl":{"start":{"line":146,"column":35},"end":{"line":146,"column":36}},"loc":{"start":{"line":146,"column":55},"end":{"line":158,"column":5}},"line":146},"7":{"name":"(anonymous_7)","decl":{"start":{"line":168,"column":20},"end":{"line":168,"column":21}},"loc":{"start":{"line":168,"column":26},"end":{"line":180,"column":5}},"line":168},"8":{"name":"(anonymous_8)","decl":{"start":{"line":188,"column":32},"end":{"line":188,"column":33}},"loc":{"start":{"line":188,"column":41},"end":{"line":204,"column":5}},"line":188},"9":{"name":"(anonymous_9)","decl":{"start":{"line":195,"column":22},"end":{"line":195,"column":23}},"loc":{"start":{"line":195,"column":33},"end":{"line":203,"column":9}},"line":195},"10":{"name":"(anonymous_10)","decl":{"start":{"line":210,"column":32},"end":{"line":210,"column":33}},"loc":{"start":{"line":210,"column":38},"end":{"line":214,"column":5}},"line":210},"11":{"name":"(anonymous_11)","decl":{"start":{"line":220,"column":4},"end":{"line":220,"column":5}},"loc":{"start":{"line":220,"column":26},"end":{"line":242,"column":5}},"line":220},"12":{"name":"(anonymous_12)","decl":{"start":{"line":248,"column":4},"end":{"line":248,"column":5}},"loc":{"start":{"line":248,"column":31},"end":{"line":252,"column":5}},"line":248},"13":{"name":"(anonymous_13)","decl":{"start":{"line":261,"column":4},"end":{"line":261,"column":5}},"loc":{"start":{"line":261,"column":67},"end":{"line":281,"column":5}},"line":261},"14":{"name":"(anonymous_14)","decl":{"start":{"line":289,"column":4},"end":{"line":289,"column":5}},"loc":{"start":{"line":289,"column":34},"end":{"line":327,"column":5}},"line":289},"15":{"name":"(anonymous_15)","decl":{"start":{"line":314,"column":44},"end":{"line":314,"column":45}},"loc":{"start":{"line":314,"column":53},"end":{"line":314,"column":63}},"line":314},"16":{"name":"(anonymous_16)","decl":{"start":{"line":324,"column":11},"end":{"line":324,"column":12}},"loc":{"start":{"line":324,"column":17},"end":{"line":326,"column":9}},"line":324},"17":{"name":"(anonymous_17)","decl":{"start":{"line":336,"column":4},"end":{"line":336,"column":5}},"loc":{"start":{"line":336,"column":44},"end":{"line":372,"column":5}},"line":336},"18":{"name":"(anonymous_18)","decl":{"start":{"line":337,"column":37},"end":{"line":337,"column":38}},"loc":{"start":{"line":337,"column":53},"end":{"line":371,"column":9}},"line":337},"19":{"name":"(anonymous_19)","decl":{"start":{"line":381,"column":4},"end":{"line":381,"column":5}},"loc":{"start":{"line":381,"column":27},"end":{"line":404,"column":5}},"line":381},"20":{"name":"(anonymous_20)","decl":{"start":{"line":417,"column":4},"end":{"line":417,"column":5}},"loc":{"start":{"line":417,"column":34},"end":{"line":438,"column":5}},"line":417},"21":{"name":"(anonymous_21)","decl":{"start":{"line":444,"column":4},"end":{"line":444,"column":5}},"loc":{"start":{"line":444,"column":28},"end":{"line":480,"column":5}},"line":444},"22":{"name":"(anonymous_22)","decl":{"start":{"line":486,"column":4},"end":{"line":486,"column":5}},"loc":{"start":{"line":486,"column":26},"end":{"line":510,"column":5}},"line":486},"23":{"name":"(anonymous_23)","decl":{"start":{"line":512,"column":4},"end":{"line":512,"column":5}},"loc":{"start":{"line":512,"column":13},"end":{"line":520,"column":5}},"line":512}},"branchMap":{"0":{"loc":{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},"type":"if","locations":[{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},{"start":{"line":84,"column":8},"end":{"line":86,"column":9}}],"line":84},"1":{"loc":{"start":{"line":91,"column":8},"end":{"line":93,"column":9}},"type":"if","locations":[{"start":{"line":91,"column":8},"end":{"line":93,"column":9}},{"start":{"line":91,"column":8},"end":{"line":93,"column":9}}],"line":91},"2":{"loc":{"start":{"line":97,"column":15},"end":{"line":97,"column":67}},"type":"cond-expr","locations":[{"start":{"line":97,"column":51},"end":{"line":97,"column":60}},{"start":{"line":97,"column":63},"end":{"line":97,"column":67}}],"line":97},"3":{"loc":{"start":{"line":127,"column":31},"end":{"line":128,"column":113}},"type":"binary-expr","locations":[{"start":{"line":127,"column":31},"end":{"line":127,"column":79}},{"start":{"line":128,"column":15},"end":{"line":128,"column":113}}],"line":127},"4":{"loc":{"start":{"line":130,"column":8},"end":{"line":133,"column":9}},"type":"if","locations":[{"start":{"line":130,"column":8},"end":{"line":133,"column":9}},{"start":{"line":130,"column":8},"end":{"line":133,"column":9}}],"line":130},"5":{"loc":{"start":{"line":130,"column":13},"end":{"line":130,"column":46}},"type":"binary-expr","locations":[{"start":{"line":130,"column":13},"end":{"line":130,"column":28}},{"start":{"line":130,"column":32},"end":{"line":130,"column":46}}],"line":130},"6":{"loc":{"start":{"line":169,"column":8},"end":{"line":171,"column":9}},"type":"if","locations":[{"start":{"line":169,"column":8},"end":{"line":171,"column":9}},{"start":{"line":169,"column":8},"end":{"line":171,"column":9}}],"line":169},"7":{"loc":{"start":{"line":169,"column":12},"end":{"line":169,"column":71}},"type":"binary-expr","locations":[{"start":{"line":169,"column":12},"end":{"line":169,"column":31}},{"start":{"line":169,"column":35},"end":{"line":169,"column":71}}],"line":169},"8":{"loc":{"start":{"line":262,"column":8},"end":{"line":280,"column":9}},"type":"if","locations":[{"start":{"line":262,"column":8},"end":{"line":280,"column":9}},{"start":{"line":262,"column":8},"end":{"line":280,"column":9}}],"line":262},"9":{"loc":{"start":{"line":262,"column":12},"end":{"line":263,"column":100}},"type":"binary-expr","locations":[{"start":{"line":262,"column":12},"end":{"line":262,"column":93}},{"start":{"line":263,"column":19},"end":{"line":263,"column":100}}],"line":262},"10":{"loc":{"start":{"line":273,"column":33},"end":{"line":274,"column":73}},"type":"binary-expr","locations":[{"start":{"line":273,"column":33},"end":{"line":273,"column":87}},{"start":{"line":274,"column":19},"end":{"line":274,"column":73}}],"line":273},"11":{"loc":{"start":{"line":311,"column":8},"end":{"line":315,"column":9}},"type":"if","locations":[{"start":{"line":311,"column":8},"end":{"line":315,"column":9}},{"start":{"line":311,"column":8},"end":{"line":315,"column":9}}],"line":311},"12":{"loc":{"start":{"line":346,"column":12},"end":{"line":348,"column":13}},"type":"if","locations":[{"start":{"line":346,"column":12},"end":{"line":348,"column":13}},{"start":{"line":346,"column":12},"end":{"line":348,"column":13}}],"line":346},"13":{"loc":{"start":{"line":354,"column":12},"end":{"line":357,"column":13}},"type":"if","locations":[{"start":{"line":354,"column":12},"end":{"line":357,"column":13}},{"start":{"line":354,"column":12},"end":{"line":357,"column":13}}],"line":354},"14":{"loc":{"start":{"line":424,"column":8},"end":{"line":426,"column":9}},"type":"if","locations":[{"start":{"line":424,"column":8},"end":{"line":426,"column":9}},{"start":{"line":424,"column":8},"end":{"line":426,"column":9}}],"line":424},"15":{"loc":{"start":{"line":505,"column":34},"end":{"line":505,"column":69}},"type":"binary-expr","locations":[{"start":{"line":505,"column":34},"end":{"line":505,"column":50}},{"start":{"line":505,"column":54},"end":{"line":505,"column":69}}],"line":505},"16":{"loc":{"start":{"line":515,"column":17},"end":{"line":515,"column":106}},"type":"cond-expr","locations":[{"start":{"line":515,"column":54},"end":{"line":515,"column":99}},{"start":{"line":515,"column":102},"end":{"line":515,"column":106}}],"line":515}},"s":{"0":12,"1":0,"2":12,"3":0,"4":12,"5":12,"6":5,"7":5,"8":5,"9":5,"10":5,"11":5,"12":5,"13":7,"14":7,"15":7,"16":0,"17":0,"18":0,"19":10,"20":10,"21":10,"22":10,"23":10,"24":10,"25":5,"26":5,"27":5,"28":5,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":5,"36":5,"37":5,"38":5,"39":5,"40":5,"41":5,"42":17,"43":1,"44":1,"45":1,"46":1,"47":6,"48":6,"49":6,"50":6,"51":1,"52":5,"53":110,"54":6,"55":6,"56":6,"57":12,"58":154,"59":154,"60":0,"61":154,"62":154,"63":154,"64":0,"65":0,"66":154,"67":6,"68":6,"69":6,"70":6,"71":6,"72":0,"73":0,"74":0,"75":0,"76":0,"77":12,"78":12,"79":12,"80":12,"81":12,"82":12,"83":12,"84":12,"85":12},"f":{"0":0,"1":12,"2":5,"3":5,"4":7,"5":0,"6":10,"7":10,"8":0,"9":0,"10":0,"11":5,"12":5,"13":17,"14":6,"15":110,"16":6,"17":12,"18":154,"19":6,"20":0,"21":12,"22":12,"23":12},"b":{"0":[0,12],"1":[0,12],"2":[12,0],"3":[7,7],"4":[0,7],"5":[7,7],"6":[5,5],"7":[10,10],"8":[1,16],"9":[17,16],"10":[1,0],"11":[1,5],"12":[0,154],"13":[0,154],"14":[0,0],"15":[12,12],"16":[0,12]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"d02cb8059c9c1a3c8bf1aec9c6a89e1dc7ecb357"}
,"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/stories/sampleData.js": {"path":"/Users/luis.cardoso/Documents/GitHub/brushable-histogram/stories/sampleData.js","statementMap":{"0":{"start":{"line":1,"column":25},"end":{"line":1,"column":29}},"1":{"start":{"line":2,"column":23},"end":{"line":2,"column":36}},"2":{"start":{"line":11,"column":17},"end":{"line":11,"column":19}},"3":{"start":{"line":13,"column":4},"end":{"line":18,"column":5}},"4":{"start":{"line":14,"column":8},"end":{"line":17,"column":11}},"5":{"start":{"line":20,"column":4},"end":{"line":20,"column":16}},"6":{"start":{"line":25,"column":27},"end":{"line":25,"column":40}}},"fnMap":{"0":{"name":"calculate","decl":{"start":{"line":10,"column":16},"end":{"line":10,"column":25}},"loc":{"start":{"line":10,"column":42},"end":{"line":21,"column":1}},"line":10}},"branchMap":{},"s":{"0":4,"1":4,"2":8,"3":8,"4":4040,"5":8,"6":4},"f":{"0":8},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"ee2127cf5733056f43b1a110c589e891cf23d006"}
}

@@ -0,1 +1,2 @@

/* eslint-disable */
window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V<U;++V){var ae=Z[V];if(ae.ignoreCase){ac=true}else{if(/[a-z]/i.test(ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){S=true;ac=false;break}}}var Y={b:8,t:9,n:10,v:11,f:12,r:13};function ab(ah){var ag=ah.charCodeAt(0);if(ag!==92){return ag}var af=ah.charAt(1);ag=Y[af];if(ag){return ag}else{if("0"<=af&&af<="7"){return parseInt(ah.substring(1),8)}else{if(af==="u"||af==="x"){return parseInt(ah.substring(2),16)}else{return ah.charCodeAt(1)}}}}function T(af){if(af<32){return(af<16?"\\x0":"\\x")+af.toString(16)}var ag=String.fromCharCode(af);if(ag==="\\"||ag==="-"||ag==="["||ag==="]"){ag="\\"+ag}return ag}function X(am){var aq=am.substring(1,am.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g"));var ak=[];var af=[];var ao=aq[0]==="^";for(var ar=ao?1:0,aj=aq.length;ar<aj;++ar){var ah=aq[ar];if(/\\[bdsw]/i.test(ah)){ak.push(ah)}else{var ag=ab(ah);var al;if(ar+2<aj&&"-"===aq[ar+1]){al=ab(aq[ar+2]);ar+=2}else{al=ag}af.push([ag,al]);if(!(al<65||ag>122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;ar<af.length;++ar){var at=af[ar];if(at[0]<=ap[1]+1){ap[1]=Math.max(ap[1],at[1])}else{ai.push(ap=at)}}var an=["["];if(ao){an.push("^")}an.push.apply(an,ak);for(var ar=0;ar<ai.length;++ar){var at=ai[ar];an.push(T(at[0]));if(at[1]>at[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak<ah;++ak){var ag=aj[ak];if(ag==="("){++am}else{if("\\"===ag.charAt(0)){var af=+ag.substring(1);if(af&&af<=am){an[af]=-1}}}}for(var ak=1;ak<an.length;++ak){if(-1===an[ak]){an[ak]=++ad}}for(var ak=0,am=0;ak<ah;++ak){var ag=aj[ak];if(ag==="("){++am;if(an[am]===undefined){aj[ak]="(?:"}}else{if("\\"===ag.charAt(0)){var af=+ag.substring(1);if(af&&af<=am){aj[ak]="\\"+an[am]}}}}for(var ak=0,am=0;ak<ah;++ak){if("^"===aj[ak]&&"^"!==aj[ak+1]){aj[ak]=""}}if(al.ignoreCase&&S){for(var ak=0;ak<ah;++ak){var ag=aj[ak];var ai=ag.charAt(0);if(ag.length>=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V<U;++V){var ae=Z[V];if(ae.global||ae.multiline){throw new Error(""+ae)}aa.push("(?:"+W(ae)+")")}return new RegExp(aa.join("|"),ac?"gi":"g")}function a(V){var U=/(?:^|\s)nocode(?:\s|$)/;var X=[];var T=0;var Z=[];var W=0;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=document.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Y=S&&"pre"===S.substring(0,3);function aa(ab){switch(ab.nodeType){case 1:if(U.test(ab.className)){return}for(var ae=ab.firstChild;ae;ae=ae.nextSibling){aa(ae)}var ad=ab.nodeName;if("BR"===ad||"LI"===ad){X[W]="\n";Z[W<<1]=T++;Z[(W++<<1)|1]=ab}break;case 3:case 4:var ac=ab.nodeValue;if(ac.length){if(!Y){ac=ac.replace(/[ \t\r\n]+/g," ")}else{ac=ac.replace(/\r\n?/g,"\n")}X[W]=ac;Z[W<<1]=T;T+=ac.length;Z[(W++<<1)|1]=ab}break}}aa(V);return{sourceCode:X.join("").replace(/\n$/,""),spans:Z}}function B(S,U,W,T){if(!U){return}var V={sourceCode:U,basePos:S};W(V);T.push.apply(T,V.decorations)}var v=/\S/;function o(S){var V=undefined;for(var U=S.firstChild;U;U=U.nextSibling){var T=U.nodeType;V=(T===1)?(V?S:U):(T===3)?(v.test(U.nodeValue)?S:V):V}return V===S?undefined:V}function g(U,T){var S={};var V;(function(){var ad=U.concat(T);var ah=[];var ag={};for(var ab=0,Z=ad.length;ab<Z;++ab){var Y=ad[ab];var ac=Y[3];if(ac){for(var ae=ac.length;--ae>=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae<aq;++ae){var ag=an[ae];var ap=aj[ag];var ai=void 0;var am;if(typeof ap==="string"){am=false}else{var aa=S[ag.charAt(0)];if(aa){ai=ag.match(aa[1]);ap=aa[0]}else{for(var ao=0;ao<X;++ao){aa=T[ao];ai=ag.match(aa[1]);if(ai){ap=aa[0];break}}if(!ai){ap=F}}am=ap.length>=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y<W.length;++Y){ae(W[Y])}if(ag===(ag|0)){W[0].setAttribute("value",ag)}var aa=ac.createElement("OL");aa.className="linenums";var X=Math.max(0,((ag-1))|0)||0;for(var Y=0,T=W.length;Y<T;++Y){af=W[Y];af.className="L"+((Y+X)%10);if(!af.firstChild){af.appendChild(ac.createTextNode("\xA0"))}aa.appendChild(af)}V.appendChild(aa)}function D(ac){var aj=/\bMSIE\b/.test(navigator.userAgent);var am=/\n/g;var al=ac.sourceCode;var an=al.length;var V=0;var aa=ac.spans;var T=aa.length;var ah=0;var X=ac.decorations;var Y=X.length;var Z=0;X[Y]=an;var ar,aq;for(aq=ar=0;aq<Y;){if(X[aq]!==X[aq+2]){X[ar++]=X[aq++];X[ar++]=X[aq++]}else{aq+=2}}Y=ar;for(aq=ar=0;aq<Y;){var at=X[aq];var ab=X[aq+1];var W=aq+2;while(W+2<=Y&&X[W+1]===ab){W+=2}X[ar++]=at;X[ar++]=ab;aq=W}Y=X.length=ar;var ae=null;while(ah<T){var af=aa[ah];var S=aa[ah+2]||an;var ag=X[Z];var ap=X[Z+2]||an;var W=Math.min(S,ap);var ak=aa[ah+1];var U;if(ak.nodeType!==1&&(U=al.substring(V,W))){if(aj){U=U.replace(am,"\r")}ak.nodeValue=U;var ai=ak.ownerDocument;var ao=ai.createElement("SPAN");ao.className=X[Z+1];var ad=ak.parentNode;ad.replaceChild(ao,ak);ao.appendChild(ak);if(V<S){aa[ah+1]=ak=ai.createTextNode(al.substring(W,S));ad.insertBefore(ak,ao.nextSibling)}}V=W;if(V>=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*</.test(S)?"default-markup":"default-code"}return t[T]}c(K,["default-code"]);c(g([],[[F,/^[^<?]+/],[E,/^<!\w[^>]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa<ac.length;++aa){for(var Z=0,V=ac[aa].length;Z<V;++Z){T.push(ac[aa][Z])}}ac=null;var W=Date;if(!W.now){W={now:function(){return +(new Date)}}}var X=0;var S;var ab=/\blang(?:uage)?-([\w.]+)(?!\S)/;var ae=/\bprettyprint\b/;function U(){var ag=(window.PR_SHOULD_USE_CONTINUATION?W.now()+250:Infinity);for(;X<T.length&&W.now()<ag;X++){var aj=T[X];var ai=aj.className;if(ai.indexOf("prettyprint")>=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X<T.length){setTimeout(U,250)}else{if(ad){ad()}}}U()}window.prettyPrintOne=y;window.prettyPrint=b;window.PR={createSimpleLexer:g,registerLangHandler:c,sourceDecorator:i,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:n,PR_COMMENT:j,PR_DECLARATION:E,PR_KEYWORD:z,PR_LITERAL:G,PR_NOCODE:N,PR_PLAIN:F,PR_PUNCTUATION:L,PR_SOURCE:J,PR_STRING:C,PR_TAG:m,PR_TYPE:O}})();PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_DECLARATION,/^<!\w[^>]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^<script\b[^>]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:<!--|-->)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]);

38

coverage/lcov-report/sorter.js

@@ -1,3 +0,4 @@

var addSorting = (function () {
"use strict";
/* eslint-disable */
var addSorting = (function() {
'use strict';
var cols,

@@ -10,9 +11,17 @@ currentSort = {

// returns the summary table element
function getTable() { return document.querySelector('.coverage-summary'); }
function getTable() {
return document.querySelector('.coverage-summary');
}
// returns the thead element of the summary table
function getTableHeader() { return getTable().querySelector('thead tr'); }
function getTableHeader() {
return getTable().querySelector('thead tr');
}
// returns the tbody element of the summary table
function getTableBody() { return getTable().querySelector('tbody'); }
function getTableBody() {
return getTable().querySelector('tbody');
}
// returns the th element for nth column
function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; }
function getNthColumn(n) {
return getTableHeader().querySelectorAll('th')[n];
}

@@ -37,3 +46,4 @@ // loads all columns

col.defaultDescSort = col.type === 'number';
colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>';
colNode.innerHTML =
colNode.innerHTML + '<span class="sorter"></span>';
}

@@ -75,3 +85,3 @@ }

var key = cols[index].key,
sorter = function (a, b) {
sorter = function(a, b) {
a = a.data[key];

@@ -88,3 +98,3 @@ b = b.data[key];

if (desc) {
finalSorter = function (a, b) {
finalSorter = function(a, b) {
return -1 * sorter(a, b);

@@ -115,3 +125,5 @@ };

function addSortIndicators() {
getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
getNthColumn(currentSort.index).className += currentSort.desc
? ' sorted-desc'
: ' sorted';
}

@@ -125,3 +137,3 @@ // adds event listeners for all sorter widgets

return function () {
return function() {
var desc = col.defaultDescSort;

@@ -139,3 +151,3 @@

};
for (i =0 ; i < cols.length; i += 1) {
for (i = 0; i < cols.length; i += 1) {
if (cols[i].sortable) {

@@ -154,3 +166,3 @@ // add the click event handler on the th so users

// adds sorting functionality to the UI
return function () {
return function() {
if (!getTable()) {

@@ -157,0 +169,0 @@ return;

@@ -0,1 +1,2 @@

/* eslint-disable */
window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V<U;++V){var ae=Z[V];if(ae.ignoreCase){ac=true}else{if(/[a-z]/i.test(ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){S=true;ac=false;break}}}var Y={b:8,t:9,n:10,v:11,f:12,r:13};function ab(ah){var ag=ah.charCodeAt(0);if(ag!==92){return ag}var af=ah.charAt(1);ag=Y[af];if(ag){return ag}else{if("0"<=af&&af<="7"){return parseInt(ah.substring(1),8)}else{if(af==="u"||af==="x"){return parseInt(ah.substring(2),16)}else{return ah.charCodeAt(1)}}}}function T(af){if(af<32){return(af<16?"\\x0":"\\x")+af.toString(16)}var ag=String.fromCharCode(af);if(ag==="\\"||ag==="-"||ag==="["||ag==="]"){ag="\\"+ag}return ag}function X(am){var aq=am.substring(1,am.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g"));var ak=[];var af=[];var ao=aq[0]==="^";for(var ar=ao?1:0,aj=aq.length;ar<aj;++ar){var ah=aq[ar];if(/\\[bdsw]/i.test(ah)){ak.push(ah)}else{var ag=ab(ah);var al;if(ar+2<aj&&"-"===aq[ar+1]){al=ab(aq[ar+2]);ar+=2}else{al=ag}af.push([ag,al]);if(!(al<65||ag>122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;ar<af.length;++ar){var at=af[ar];if(at[0]<=ap[1]+1){ap[1]=Math.max(ap[1],at[1])}else{ai.push(ap=at)}}var an=["["];if(ao){an.push("^")}an.push.apply(an,ak);for(var ar=0;ar<ai.length;++ar){var at=ai[ar];an.push(T(at[0]));if(at[1]>at[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak<ah;++ak){var ag=aj[ak];if(ag==="("){++am}else{if("\\"===ag.charAt(0)){var af=+ag.substring(1);if(af&&af<=am){an[af]=-1}}}}for(var ak=1;ak<an.length;++ak){if(-1===an[ak]){an[ak]=++ad}}for(var ak=0,am=0;ak<ah;++ak){var ag=aj[ak];if(ag==="("){++am;if(an[am]===undefined){aj[ak]="(?:"}}else{if("\\"===ag.charAt(0)){var af=+ag.substring(1);if(af&&af<=am){aj[ak]="\\"+an[am]}}}}for(var ak=0,am=0;ak<ah;++ak){if("^"===aj[ak]&&"^"!==aj[ak+1]){aj[ak]=""}}if(al.ignoreCase&&S){for(var ak=0;ak<ah;++ak){var ag=aj[ak];var ai=ag.charAt(0);if(ag.length>=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V<U;++V){var ae=Z[V];if(ae.global||ae.multiline){throw new Error(""+ae)}aa.push("(?:"+W(ae)+")")}return new RegExp(aa.join("|"),ac?"gi":"g")}function a(V){var U=/(?:^|\s)nocode(?:\s|$)/;var X=[];var T=0;var Z=[];var W=0;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=document.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Y=S&&"pre"===S.substring(0,3);function aa(ab){switch(ab.nodeType){case 1:if(U.test(ab.className)){return}for(var ae=ab.firstChild;ae;ae=ae.nextSibling){aa(ae)}var ad=ab.nodeName;if("BR"===ad||"LI"===ad){X[W]="\n";Z[W<<1]=T++;Z[(W++<<1)|1]=ab}break;case 3:case 4:var ac=ab.nodeValue;if(ac.length){if(!Y){ac=ac.replace(/[ \t\r\n]+/g," ")}else{ac=ac.replace(/\r\n?/g,"\n")}X[W]=ac;Z[W<<1]=T;T+=ac.length;Z[(W++<<1)|1]=ab}break}}aa(V);return{sourceCode:X.join("").replace(/\n$/,""),spans:Z}}function B(S,U,W,T){if(!U){return}var V={sourceCode:U,basePos:S};W(V);T.push.apply(T,V.decorations)}var v=/\S/;function o(S){var V=undefined;for(var U=S.firstChild;U;U=U.nextSibling){var T=U.nodeType;V=(T===1)?(V?S:U):(T===3)?(v.test(U.nodeValue)?S:V):V}return V===S?undefined:V}function g(U,T){var S={};var V;(function(){var ad=U.concat(T);var ah=[];var ag={};for(var ab=0,Z=ad.length;ab<Z;++ab){var Y=ad[ab];var ac=Y[3];if(ac){for(var ae=ac.length;--ae>=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae<aq;++ae){var ag=an[ae];var ap=aj[ag];var ai=void 0;var am;if(typeof ap==="string"){am=false}else{var aa=S[ag.charAt(0)];if(aa){ai=ag.match(aa[1]);ap=aa[0]}else{for(var ao=0;ao<X;++ao){aa=T[ao];ai=ag.match(aa[1]);if(ai){ap=aa[0];break}}if(!ai){ap=F}}am=ap.length>=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y<W.length;++Y){ae(W[Y])}if(ag===(ag|0)){W[0].setAttribute("value",ag)}var aa=ac.createElement("OL");aa.className="linenums";var X=Math.max(0,((ag-1))|0)||0;for(var Y=0,T=W.length;Y<T;++Y){af=W[Y];af.className="L"+((Y+X)%10);if(!af.firstChild){af.appendChild(ac.createTextNode("\xA0"))}aa.appendChild(af)}V.appendChild(aa)}function D(ac){var aj=/\bMSIE\b/.test(navigator.userAgent);var am=/\n/g;var al=ac.sourceCode;var an=al.length;var V=0;var aa=ac.spans;var T=aa.length;var ah=0;var X=ac.decorations;var Y=X.length;var Z=0;X[Y]=an;var ar,aq;for(aq=ar=0;aq<Y;){if(X[aq]!==X[aq+2]){X[ar++]=X[aq++];X[ar++]=X[aq++]}else{aq+=2}}Y=ar;for(aq=ar=0;aq<Y;){var at=X[aq];var ab=X[aq+1];var W=aq+2;while(W+2<=Y&&X[W+1]===ab){W+=2}X[ar++]=at;X[ar++]=ab;aq=W}Y=X.length=ar;var ae=null;while(ah<T){var af=aa[ah];var S=aa[ah+2]||an;var ag=X[Z];var ap=X[Z+2]||an;var W=Math.min(S,ap);var ak=aa[ah+1];var U;if(ak.nodeType!==1&&(U=al.substring(V,W))){if(aj){U=U.replace(am,"\r")}ak.nodeValue=U;var ai=ak.ownerDocument;var ao=ai.createElement("SPAN");ao.className=X[Z+1];var ad=ak.parentNode;ad.replaceChild(ao,ak);ao.appendChild(ak);if(V<S){aa[ah+1]=ak=ai.createTextNode(al.substring(W,S));ad.insertBefore(ak,ao.nextSibling)}}V=W;if(V>=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*</.test(S)?"default-markup":"default-code"}return t[T]}c(K,["default-code"]);c(g([],[[F,/^[^<?]+/],[E,/^<!\w[^>]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa<ac.length;++aa){for(var Z=0,V=ac[aa].length;Z<V;++Z){T.push(ac[aa][Z])}}ac=null;var W=Date;if(!W.now){W={now:function(){return +(new Date)}}}var X=0;var S;var ab=/\blang(?:uage)?-([\w.]+)(?!\S)/;var ae=/\bprettyprint\b/;function U(){var ag=(window.PR_SHOULD_USE_CONTINUATION?W.now()+250:Infinity);for(;X<T.length&&W.now()<ag;X++){var aj=T[X];var ai=aj.className;if(ai.indexOf("prettyprint")>=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X<T.length){setTimeout(U,250)}else{if(ad){ad()}}}U()}window.prettyPrintOne=y;window.prettyPrint=b;window.PR={createSimpleLexer:g,registerLangHandler:c,sourceDecorator:i,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:n,PR_COMMENT:j,PR_DECLARATION:E,PR_KEYWORD:z,PR_LITERAL:G,PR_NOCODE:N,PR_PLAIN:F,PR_PUNCTUATION:L,PR_SOURCE:J,PR_STRING:C,PR_TAG:m,PR_TYPE:O}})();PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_DECLARATION,/^<!\w[^>]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^<script\b[^>]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:<!--|-->)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]);

@@ -1,3 +0,4 @@

var addSorting = (function () {
"use strict";
/* eslint-disable */
var addSorting = (function() {
'use strict';
var cols,

@@ -10,9 +11,17 @@ currentSort = {

// returns the summary table element
function getTable() { return document.querySelector('.coverage-summary'); }
function getTable() {
return document.querySelector('.coverage-summary');
}
// returns the thead element of the summary table
function getTableHeader() { return getTable().querySelector('thead tr'); }
function getTableHeader() {
return getTable().querySelector('thead tr');
}
// returns the tbody element of the summary table
function getTableBody() { return getTable().querySelector('tbody'); }
function getTableBody() {
return getTable().querySelector('tbody');
}
// returns the th element for nth column
function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; }
function getNthColumn(n) {
return getTableHeader().querySelectorAll('th')[n];
}

@@ -37,3 +46,4 @@ // loads all columns

col.defaultDescSort = col.type === 'number';
colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>';
colNode.innerHTML =
colNode.innerHTML + '<span class="sorter"></span>';
}

@@ -75,3 +85,3 @@ }

var key = cols[index].key,
sorter = function (a, b) {
sorter = function(a, b) {
a = a.data[key];

@@ -88,3 +98,3 @@ b = b.data[key];

if (desc) {
finalSorter = function (a, b) {
finalSorter = function(a, b) {
return -1 * sorter(a, b);

@@ -115,3 +125,5 @@ };

function addSortIndicators() {
getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
getNthColumn(currentSort.index).className += currentSort.desc
? ' sorted-desc'
: ' sorted';
}

@@ -125,3 +137,3 @@ // adds event listeners for all sorter widgets

return function () {
return function() {
var desc = col.defaultDescSort;

@@ -139,3 +151,3 @@

};
for (i =0 ; i < cols.length; i += 1) {
for (i = 0; i < cols.length; i += 1) {
if (cols[i].sortable) {

@@ -154,3 +166,3 @@ // add the click event handler on the th so users

// adds sorting functionality to the UI
return function () {
return function() {
if (!getTable()) {

@@ -157,0 +169,0 @@ return;

@@ -11,2 +11,6 @@ module.exports = {

roots: [
"<rootDir>/src"
],
collectCoverageFrom: [

@@ -22,3 +26,3 @@ "src/**/*.js"

setupTestFrameworkScriptFile: "<rootDir>/jest.setup.js",
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],

@@ -25,0 +29,0 @@ snapshotSerializers: ["enzyme-to-json/serializer"],

@@ -86,19 +86,27 @@ "use strict";

componentDidUpdate(prevProps) {
let min = this.props.brushDomainMin;
let max = this.props.brushDomainMax;
const densityChartXScale = this.props.densityChartXScale;
// We only need to re-render the density chart if the data, the weight, the height or
// the chart x scale have changed.
if (this._shouldRedrawDensityChart(prevProps)) {
let min = this.props.brushDomainMin;
let max = this.props.brushDomainMax;
const _this$props2 = this.props,
densityChartXScale = _this$props2.densityChartXScale,
width = _this$props2.width,
height = _this$props2.height;
if (max >= this.props.overallTimeDomainMax) {
const delta = this.props.brushDomainMax - this.props.brushDomainMin;
min = this.props.overallTimeDomainMax - delta;
max = this.props.overallTimeDomainMax;
}
if (max >= this.props.overallTimeDomainMax) {
const delta = this.props.brushDomainMax - this.props.brushDomainMin;
min = this.props.overallTimeDomainMax - delta;
max = this.props.overallTimeDomainMax;
} // We need to resize the max value of the brush when the screen has resized
this._updateBrush();
this._moveBrush([densityChartXScale(min), densityChartXScale(max)]); // We only need to re-render the density chart if the data, the weight, the height or
// the chart x scale have changed.
if (prevProps.width !== width || prevProps.height !== height) {
this.brush.extent([[0, 0], [width, height]]);
}
this._updateBrush();
if (this._shouldRedrawDensityChart(prevProps)) {
this._moveBrush([densityChartXScale(min), densityChartXScale(max)]);
this._drawDensityChart();

@@ -169,12 +177,12 @@ }

_drawDensityChart() {
const _this$props2 = this.props,
width = _this$props2.width,
height = _this$props2.height,
densityChartXScale = _this$props2.densityChartXScale,
brushDomainMax = _this$props2.brushDomainMax,
brushDomainMin = _this$props2.brushDomainMin,
xAccessor = _this$props2.xAccessor,
data = _this$props2.data,
brushDensityChartColor = _this$props2.brushDensityChartColor,
brushDensityChartFadedColor = _this$props2.brushDensityChartFadedColor;
const _this$props3 = this.props,
width = _this$props3.width,
height = _this$props3.height,
densityChartXScale = _this$props3.densityChartXScale,
brushDomainMax = _this$props3.brushDomainMax,
brushDomainMin = _this$props3.brushDomainMin,
xAccessor = _this$props3.xAccessor,
data = _this$props3.data,
brushDensityChartColor = _this$props3.brushDensityChartColor,
brushDensityChartFadedColor = _this$props3.brushDensityChartFadedColor;
(0, _canvasRenderUtils.clearCanvas)(this.densityChartCanvasContext, width, height);

@@ -202,10 +210,10 @@

_renderPlayButton() {
const _this$props3 = this.props,
width = _this$props3.width,
densityChartXScale = _this$props3.densityChartXScale,
brushDomainMax = _this$props3.brushDomainMax,
brushDomainMin = _this$props3.brushDomainMin,
frameStep = _this$props3.frameStep,
frameDelay = _this$props3.frameDelay,
renderPlayButton = _this$props3.renderPlayButton;
const _this$props4 = this.props,
width = _this$props4.width,
densityChartXScale = _this$props4.densityChartXScale,
brushDomainMax = _this$props4.brushDomainMax,
brushDomainMin = _this$props4.brushDomainMin,
frameStep = _this$props4.frameStep,
frameDelay = _this$props4.frameDelay,
renderPlayButton = _this$props4.renderPlayButton;

@@ -229,6 +237,6 @@ if (!renderPlayButton) {

let leftPadding = 0;
const _this$props4 = this.props,
width = _this$props4.width,
height = _this$props4.height,
padding = _this$props4.padding;
const _this$props5 = this.props,
width = _this$props5.width,
height = _this$props5.height,
padding = _this$props5.padding;

@@ -235,0 +243,0 @@ if (!this.props.renderPlayButton) {

@@ -19,8 +19,8 @@ "use strict";

// These icon paths were copied from antd
const PAUSE_ICON_PATH = `M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4
64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372
372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224
const PAUSE_ICON_PATH = `M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4
64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372
372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224
0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z`;
const PLAY_ICON_PATHS = [`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4
0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`, `M719.4 499.1l-296.1-215A15.9 15.9 0 0 0 398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9
const PLAY_ICON_PATHS = [`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4
0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`, `M719.4 499.1l-296.1-215A15.9 15.9 0 0 0 398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9
15.9 0 0 0 0-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z`];

@@ -27,0 +27,0 @@ /**

@@ -67,3 +67,3 @@ "use strict";

const nextState = (0, _utils.calculateChartSizesAndDomain)(props, state.data, state.brushTimeDomain);
const nextState = (0, _utils.calculateChartSizesAndDomain)(props, state.data, state.brushTimeDomain, state.brushDomainFromProps);
return Object.keys(nextState).length > 0 ? nextState : null;

@@ -85,3 +85,3 @@ }

// This is an early return in order to avoid processing brush event
if (_d3Selection.event.sourceEvent && _d3Selection.event.sourceEvent.type === "brush") {
if (_d3Selection.event.sourceEvent && _d3Selection.event.sourceEvent.target.name === "brush") {
return;

@@ -150,4 +150,5 @@ }

const hasDataChanged = prevProps.data.length !== this.props.data.length || !(0, _utils.isHistogramDataEqual)(this.props.xAccessor, this.props.yAccessor, prevProps.data, this.props.data);
const hasAcessorsChanged = this.props.xAccessor !== prevProps.xAccessor || this.props.yAccessor !== prevProps.yAccessor;
if (hasWidthChanged || hasDataChanged) {
if (hasWidthChanged || hasDataChanged || hasAcessorsChanged) {
this._createScaleAndZoom();

@@ -209,15 +210,12 @@

const brushedDomainMax = (0, _utils.dateToTimestamp)(brushedDomain[1]);
if (brushedDomainMin !== this.state.brushTimeDomain.min || brushedDomainMax !== this.state.brushTimeDomain.max) {
this.setState({
brushTimeDomain: {
min: brushedDomainMin,
max: brushedDomainMax
},
showHistogramBarTooltip: false
}, this._updateHistogramChartScales);
const fullDomain = this.densityChartXScale.domain();
const isFullDomain = fullDomain[0].getTime() === brushedDomainMin && fullDomain[1].getTime() === brushedDomainMax;
this.props.onIntervalChange([brushedDomainMin, brushedDomainMax], isFullDomain);
}
this.setState({
brushTimeDomain: {
min: brushedDomainMin,
max: brushedDomainMax
},
showHistogramBarTooltip: false
}, this._updateHistogramChartScales);
const fullDomain = this.densityChartXScale.domain();
const isFullDomain = fullDomain[0].getTime() === brushedDomainMin && fullDomain[1].getTime() === brushedDomainMax;
this.props.onIntervalChange([brushedDomainMin, brushedDomainMax], isFullDomain);
}

@@ -332,2 +330,6 @@ /**

_renderBarTooltip(currentBar) {
if (typeof this.props.tooltipBarCustomization !== "function") {
return null;
}
const tooltipStyle = {

@@ -338,7 +340,2 @@ position: "fixed",

};
if (typeof this.props.tooltipBarCustomization !== "function") {
return null;
}
const tooltipElement = this.props.tooltipBarCustomization(currentBar);

@@ -345,0 +342,0 @@ return _react.default.createElement("div", {

@@ -46,2 +46,13 @@ "use strict";

/**
* Returns true if the two given objects are equal deeply.
* @param {*} obj1
* @param {*} obj2
* @returns {boolean}
*/
function isEqual(obj1, obj2) {
return JSON.stringify(obj1) === JSON.stringify(obj2);
}
/**
* The default histogram y axis formatter. Only returns integer values.

@@ -207,2 +218,3 @@ * @param {number} value

* @param {Object} previousBrushTimeDomain
* @param {Object} [previousBrushDomainFromProps]
* @returns {Object}

@@ -212,3 +224,3 @@ */

function calculateChartSizesAndDomain(props, previousData, previousBrushTimeDomain) {
function calculateChartSizesAndDomain(props, previousData, previousBrushTimeDomain, previousBrushDomainFromProps) {
const _calculateChartsPosit = calculateChartsPositionsAndSizing(props),

@@ -226,2 +238,3 @@ histogramChartDimensions = _calculateChartsPosit.histogramChartDimensions,

return (0, _objectSpread2.default)({}, nextState, {
data: [],
brushTimeDomain: {

@@ -234,7 +247,11 @@ min: now,

max: now
}
},
brushDomainFromProps: props.brushDomain
});
}
const hasDataChanged = !isHistogramDataEqual(props.xAccessor, props.yAccessor, props.data, previousData); // If the new information received is different we need to verify if there is any update in the max and min
const hasDataChanged = !isHistogramDataEqual(props.xAccessor, props.yAccessor, props.data, previousData); // We allow the user to pass a custom brush domain via props, however we only want to honor that
// as long as the user didn't interact with the brush via the UI.
const brushDomainChanged = isObject(props.brushDomain) && !isEqual(props.brushDomain, previousBrushDomainFromProps); // If the new information received is different we need to verify if there is any update in the max and min
// values for the brush domain.

@@ -266,3 +283,8 @@

if (brushDomainChanged) {
nextState.brushTimeDomain = props.brushDomain;
}
nextState.brushDomainFromProps = props.brushDomain;
return nextState;
}
{
"name": "@feedzai/brushable-histogram",
"version": "1.2.0",
"version": "1.2.1",
"description": "A time histogram with a time brush that renders a summary of the events",

@@ -34,3 +34,4 @@ "main": "lib/index.js",

"victor.fernandes@feedzai.com",
"luis.cardoso@feedzai.com"
"luis.cardoso@feedzai.com",
"marlom.girardi@feedzai.com"
],

@@ -43,10 +44,9 @@ "devDependencies": {

"@babel/preset-env": "^7.1.6",
"@feedzai/eslint-config-feedzai": "^3.0.0",
"@feedzai/eslint-config-feedzai-react": "3.0.1",
"@storybook/addon-knobs": "^4.0.9",
"@storybook/addons": "^4.0.9",
"@storybook/react": "^4.0.9",
"@feedzai/eslint-config-feedzai-react": "3.1.0",
"@storybook/addon-knobs": "^5.0.6",
"@storybook/addons": "^5.0.6",
"@storybook/react": "^5.0.6",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-jest": "^24.7.1",
"babel-loader": "^8.0.4",

@@ -62,3 +62,3 @@ "coveralls": "^3.0.2",

"husky": "^1.3.1",
"jest": "^23.6.0",
"jest": "^24.7.1",
"node-sass": "^4.10.0",

@@ -65,0 +65,0 @@ "react-dom": "16.6.1",

@@ -22,2 +22,4 @@ # Brushable Histogram

Note that by default no style is included. If you want you can use the `src/Histogram/Histogram.scss` as a starting point.
## Props

@@ -69,2 +71,7 @@

## `brushDomain`
**Type** `Object` **Default** `undefined`
A custom brush domain. Should have two properties: `min` and `max` both timestamps in milliseconds. Please note that if the user
changes the brush domain by interacting with the brush bar this will be ignored until you pass it a different one.
## How to install it?

@@ -71,0 +78,0 @@ `npm install brushable-histogram` --save

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc