mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Fix d3 portrait to landscape brush failure (#5638)
* fix d3 portrait to landscape brush failure * fix client.renderer.test for highlighBrushPoints function prototype change * fix highlightBrush * move brush reset inside check for valid brush
This commit is contained in:
@@ -64,7 +64,10 @@ describe('renderer', () => {
|
||||
|
||||
describe(`data.mills ${extent.mills} and chart().brush.extent() times ${extent.times}`, () => {
|
||||
it(extent.expectation, () => {
|
||||
renderer(mockClient, {}).highlightBrushPoints(mockData).should.equal(extent.expectedOpacity);
|
||||
var selectedRange = mockClient.chart.createAdjustedRange();
|
||||
var from = selectedRange[0].getTime();
|
||||
var to = selectedRange[1].getTime();
|
||||
renderer(mockClient, {}).highlightBrushPoints(mockData, from, to).should.equal(extent.expectedOpacity);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user