You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -341,12 +341,21 @@ If the **projection** option is specified as an object, the following additional
341
341
* projection.**parallels** - the [standard parallels](https://github.com/d3/d3-geo/blob/main/README.md#conic_parallels) (for conic projections only)
342
342
* projection.**precision** - the [sampling threshold](https://github.com/d3/d3-geo/blob/main/README.md#projection_precision)
343
343
* projection.**rotate** - a two- or three- element array of Euler angles to rotate the sphere
344
-
* projection.**domain** - a GeoJSON object to fit in the center of the frame
344
+
* projection.**domain** - a GeoJSON object to fit in the center of the (inset) frame
345
345
* projection.**inset** - inset by the given amount in pixels when fitting to the frame (default zero)
346
346
* projection.**insetLeft** - inset from the left edge of the frame (defaults to inset)
347
347
* projection.**insetRight** - inset from the right edge of the frame (defaults to inset)
348
348
* projection.**insetTop** - inset from the top edge of the frame (defaults to inset)
349
349
* projection.**insetBottom** - inset from the bottom edge of the frame (defaults to inset)
350
+
* projection.**clip** - the projection clipping method
351
+
352
+
The following projection clipping methods are supported for projection.**clip**:
353
+
354
+
**frame* or true (default) - clip to the extent of the frame (including margins but not insets)
355
+
* a number - clip to a great circle of the given radius in degrees centered around the origin
356
+
* null or false - do not clip
357
+
358
+
Whereas the mark.**clip** option is implemented using SVG clipping, the projection.**clip** option affects the generated geometry and typically produces smaller SVG output.
0 commit comments