Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions src/components/maintainersChartsGlobe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createChartRuntime, createMark, defineChart } from '@tanstack/charts'
import type { ChartGradient, SceneNode } from '@tanstack/charts'
import { createSvgChartRenderer } from '@tanstack/charts/svg/renderer'
import { geoOrthographic, geoPath, scaleIdentity } from 'd3'
import borders from '~/data/maintainers-country-borders.json'
import land from '~/data/maintainers-land.json'

type Vector = [number, number, number]
Expand All @@ -13,10 +12,6 @@ const worldLand: { type: 'MultiPolygon'; coordinates: number[][][][] } = {
type: 'MultiPolygon',
coordinates: land.coordinates,
}
const countryBorders: { type: 'MultiLineString'; coordinates: number[][][] } = {
type: 'MultiLineString',
coordinates: borders.coordinates,
}

function gradients(dark: boolean): ChartGradient[] {
const ocean = dark
Expand Down Expand Up @@ -85,7 +80,6 @@ export function createChartsGlobe(container: HTMLDivElement) {
[chart.width, chart.height],
])
const landPath = geoPath(projection)(worldLand)
const bordersPath = geoPath(projection)(countryBorders)

const nodes: SceneNode[] = [
{
Expand Down Expand Up @@ -118,22 +112,6 @@ export function createChartsGlobe(container: HTMLDivElement) {
},
})
}
if (bordersPath) {
nodes.push({
kind: 'polyline',
key: 'globe-country-borders',
points: [],
path: bordersPath,
style: {
fill: 'none',
stroke: 'var(--color-background-default)',
strokeOpacity: 0.65,
strokeWidth: 0.75,
lineJoin: 'round',
lineCap: 'round',
},
})
}
// Use the same location vectors as the avatar connectors.
for (const {
id,
Expand Down
Loading
Loading