Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d3/d3-shape
/ closePath
Function
closePath
test/polygonContext.js:10–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
lineTo(x, y) { this.points.push([x, y]); },
9
rect(x, y, w, h) { this.points = [[x, y], [x + w, y], [x + w, y + h], [x, y + h]]; },
10
closePath() {}
11
};
12
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected