MCPcopy
hub / github.com/plotly/plotly.js / assertAnnotation

Function assertAnnotation

test/jasmine/tests/gl2d_plot_interact_test.js:626–632  ·  view source on GitHub ↗
(xy)

Source from the content-addressed store, hash-verified

624
625 it('@gl data-referenced annotations should update on drag', function(done) {
626 function assertAnnotation(xy) {
627 var ann = d3Select('g.annotation-text-g').select('g');
628 var translate = Drawing.getTranslate(ann);
629
630 expect(translate.x).toBeWithin(xy[0], 8);
631 expect(translate.y).toBeWithin(xy[1], 8);
632 }
633
634 Plotly.newPlot(gd, [{
635 type: 'scattergl',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…