MCPcopy Index your code
hub / github.com/plotly/plotly.js / _assertClipRect

Function _assertClipRect

test/jasmine/tests/cartesian_interact_test.js:1709–1716  ·  view source on GitHub ↗
(msg, exp)

Source from the content-addressed store, hash-verified

1707 }
1708
1709 function _assertClipRect(msg, exp) {
1710 var gd3 = d3Select(gd);
1711 var uid = gd._fullLayout._uid;
1712 var clipRect = gd3.select('#clip' + uid + 'xyplot > rect');
1713 var xy = Drawing.getTranslate(clipRect);
1714 expect(xy.x).toBeCloseTo(exp.clipTranslate[0], 2, msg + '| clip rect translate.x');
1715 expect(xy.y).toBeCloseTo(exp.clipTranslate[1], 2, msg + '| clip rect translate.y');
1716 }
1717
1718 it('should handle extendTraces redraws during drag interactions', function(done) {
1719 var step = 500;

Callers 1

_assertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…