Skip to content

Commit

Permalink
simpler names
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Jun 10, 2024
1 parent f2ad0d2 commit e1ac1ee
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ The cubic projection.

The pentagonal dodecahedral projection.

<a href="#geoRhombicDodecahedral" name="geoRhombicDodecahedral">#</a> d3.<b>geoRhombicDodecahedral</b>() · [Source](https://github.com/d3/d3-geo-polygon/blob/main/src/polyhedral/rhombic.js), [Examples](https://observablehq.com/d/881a8431e638b408)
<a href="#geoRhombic" name="geoRhombic">#</a> d3.<b>geoRhombic</b>() · [Source](https://github.com/d3/d3-geo-polygon/blob/main/src/polyhedral/rhombic.js), [Examples](https://observablehq.com/d/881a8431e638b408)

[<img src="https://raw.githubusercontent.com/d3/d3-geo-polygon/main/test/snapshots/rhombicDodecahedral.png" width="480" height="250">](https://observablehq.com/d/881a8431e638b408)
[<img src="https://raw.githubusercontent.com/d3/d3-geo-polygon/main/test/snapshots/rhombic.png" width="480" height="250">](https://observablehq.com/d/881a8431e638b408)

The rhombic dodecahedral projection.

<a href="#geoDeltoidalHexecontahedral" name="geoDeltoidalHexecontahedral">#</a> d3.<b>geoDeltoidalHexecontahedral</b>() · [Source](https://github.com/d3/d3-geo-polygon/blob/main/src/polyhedral/deltoidal.js), [Examples](https://observablehq.com/d/881a8431e638b408)
<a href="#geoDeltoidal" name="geoDeltoidal">#</a> d3.<b>geoDeltoidal</b>() · [Source](https://github.com/d3/d3-geo-polygon/blob/main/src/polyhedral/deltoidal.js), [Examples](https://observablehq.com/d/881a8431e638b408)

[<img src="https://raw.githubusercontent.com/d3/d3-geo-polygon/main/test/snapshots/deltoidalHexecontahedral.png" width="480" height="250">](https://observablehq.com/d/881a8431e638b408)
[<img src="https://raw.githubusercontent.com/d3/d3-geo-polygon/main/test/snapshots/deltoidal.png" width="480" height="250">](https://observablehq.com/d/881a8431e638b408)

The deltoidal hexecontahedral projection.

Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export {default as geoAirocean} from "./airocean.js";
export {default as geoIcosahedral} from "./icosahedral.js";
export {default as geoImago, imagoBlock as geoImagoBlock, imagoRaw as geoImagoRaw} from "./imago.js";
export {default as geoCubic} from "./cubic.js";
export {default as geoRhombicDodecahedral} from "./rhombic.js";
export {default as geoDeltoidalHexecontahedral} from "./deltoidal.js";
export {default as geoRhombic} from "./rhombic.js";
export {default as geoDeltoidal} from "./deltoidal.js";
export {default as geoCahillKeyes, cahillKeyesRaw as geoCahillKeyesRaw} from "./cahillKeyes.js";
export {default as geoComplexLog, complexLogRaw as geoComplexLogRaw} from "./complexLog.js";
1 change: 1 addition & 0 deletions src/rhombic.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default function () {
.polygons(polygons)
.parents(parents)
.angle(20)
.rotate([80, 0, -Math.asin(Math.sqrt(3) / 3) * 90])
.translate([213, 252])
.scale(106.48)
}
16 changes: 10 additions & 6 deletions test/snapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
geoCahillKeyes,
geoComplexLog,
geoCubic,
geoDeltoidalHexecontahedral,
geoRhombicDodecahedral,
geoDeltoidal,
geoRhombic,
geoDodecahedral,
geoIcosahedral,
geoImago,
Expand Down Expand Up @@ -100,12 +100,12 @@ export async function polyhedralWaterman() {
return renderWorld(geoPolyhedralWaterman().precision(0.1));
}

export async function deltoidalHexecontahedral() {
return renderWorld(geoDeltoidalHexecontahedral().precision(0.1));
export async function deltoidal() {
return renderWorld(geoDeltoidal().precision(0.1));
}

export async function rhombicDodecahedral() {
return renderWorld(geoRhombicDodecahedral().precision(0.1));
export async function rhombic() {
return renderWorld(geoRhombic().precision(0.1));
}

export async function tetrahedralLee() {
Expand Down Expand Up @@ -143,3 +143,7 @@ export async function airocean702() {
export async function airocean732() {
return renderWorld(geoAirocean().rotate([88, -37.8, -73.2]));
}

export async function rhombic00() {
return renderWorld(geoRhombic().rotate([0, 0]).precision(0.1));
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/snapshots/rhombic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit e1ac1ee

Please sign in to comment.