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

Function mockTextSVGElement

test/jasmine/tests/svg_text_utils_test.js:21–29  ·  view source on GitHub ↗
(txt)

Source from the content-addressed store, hash-verified

19 });
20
21 function mockTextSVGElement(txt) {
22 return d3Select('body')
23 .append('svg')
24 .classed('text-tester', true)
25 .append('text')
26 .text(txt)
27 .call(util.convertToTspans)
28 .attr('transform', 'translate(50,50)');
29 }
30
31 function assertAnchorLink(node, href, target, show, msg) {
32 var a = node.select('a');

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…