MCPcopy Create free account
hub / github.com/d3/d3-shape / x

Function x

test/line-test.js:17–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16it("line(x, y) sets x and y", () => {
17 const x = function() {}, y = function() {};
18 assert.strictEqual(line(x).x(), x);
19 assert.strictEqual(line(x, y).y(), y);
20 assert.strictEqual(line(3, 2).x()("aa"), 3);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected