16-4.streams,transform,clipping 流,变形,剪裁

271 阅读1分钟

Streams

  • d3.geoStream - convert a GeoJSON object to a geometry stream.将 GeoJSON 对象转换为几何流
  • stream.point - indicates a point with the specified coordinates.表示具有指定坐标的点
  • stream.lineStart - indicates the start of a line or ring.表示线路或环的开始
  • stream.lineEnd - indicates the end of a line or ring.表示线路或环的结束
  • stream.polygonStart - indicates the start of a polygon.表示多边形的开始
  • stream.polygonEnd - indicates the end of a polygon.表示多边形的结束
  • stream.sphere - indicates the sphere.表示球体

Transforms

  • d3.geoTransform - define a custom geometry transform.定义自定义几何变换
  • d3.geoIdentity - scale, translate or clip planar geometry.缩放、平移或裁剪平面几何图形

Clipping

  • preclip - pre-clipping in geographic coordinates.地理坐标中的预剪裁
  • postclip - post-clipping in planar coordinates.平面坐标中的后裁剪
  • d3.geoClipAntimeridian - cuts spherical geometries that cross the antimeridian.切割穿过反子午线的球形几何图形
  • d3.geoClipCircle - clips spherical geometries to a small circle.将球形几何图形剪裁成一个小圆圈
  • d3.geoClipRectangle - clips planar geometries to a rectangular viewport.将平面几何图形剪辑到矩形视口