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

Function _setValue

test/jasmine/tests/legend_test.js:1951–1961  ·  view source on GitHub ↗
(index, str)

Source from the content-addressed store, hash-verified

1949 afterEach(destroyGraphDiv);
1950
1951 function _setValue(index, str) {
1952 var item = d3SelectAll('text.legendtext')[0][index || 0];
1953 item.dispatchEvent(new MouseEvent('click'));
1954 return delay(20)()
1955 .then(function () {
1956 var input = d3Select('.plugin-editable.editable');
1957 input.text(str);
1958 input.node().dispatchEvent(new KeyboardEvent('blur'));
1959 })
1960 .then(delay(20));
1961 }
1962
1963 function assertLabels(expected) {
1964 var labels = [];

Callers 1

legend_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…