(proj, _)
| 131630 | } |
| 131631 | }); |
| 131632 | function fit(proj, _) { |
| 131633 | const data = collectGeoJSON(_.fit); |
| 131634 | _.extent ? proj.fitExtent(_.extent, data) : _.size && proj.fitSize(_.size, data); |
| 131635 | } |
| 131636 | function create(type) { |
| 131637 | const constructor = (0, _vegaProjection.projection)((type || "mercator").toLowerCase()); |
| 131638 | if (!constructor) (0, _vegaUtil.error)("Unrecognized projection type: " + type); |