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

Function assertScale

test/jasmine/tests/click_test.js:1225–1229  ·  view source on GitHub ↗
(node, x, y)

Source from the content-addressed store, hash-verified

1223 var mock = Lib.extendDeep({}, require('../../image/mocks/bar_line.json'));
1224
1225 function assertScale(node, x, y) {
1226 var scale = Drawing.getScale(node);
1227 expect(scale.x).toBeCloseTo(x, 1);
1228 expect(scale.y).toBeCloseTo(y, 1);
1229 }
1230
1231 Plotly.newPlot(createGraphDiv(), mock).then(function() {
1232 var node = d3Select('rect.nedrag').node();

Callers 1

click_test.jsFile · 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…