Skip to content

Commit aeec2bd

Browse files
committed
Other - Add comment
1 parent dca1d1d commit aeec2bd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/components/vue-ui-world.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,20 @@ function project([lon, lat]) {
191191
}
192192
193193
function geoToPath(geometry) {
194+
//----------------------------------------------------------------------------------------------
195+
// NOTE: Should we decide to use d3-geo in the future:
196+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
197+
// if (projection.value === 'globe') {
198+
// const globeProj = geoOrthographic()
199+
// .translate([sizes.value.width / 2, sizes.value.height / 2])
200+
// .scale(Math.min(sizes.value.width, sizes.value.height) / 2 * 0.95)
201+
// .rotate([-center.value[0], -center.value[1]])
202+
// .clipAngle(90);
203+
// const pathGen = geoPath(globeProj);
204+
// return pathGen(geometry);
205+
// }
206+
//----------------------------------------------------------------------------------------------
207+
194208
const drawPoly = coords =>
195209
coords.map(
196210
ring => {

0 commit comments

Comments
 (0)