omit compression

main
gman 1 year ago
parent 1f2d4ff22a
commit 2809953655

173904
dist/2023-12-01.csv vendored

File diff suppressed because it is too large Load Diff

Binary file not shown.

173904
dist/2023-12-02.csv vendored

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

27
dist/index.html vendored

@ -1,14 +1,17 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head>
<meta charset="UTF-8" /> <head>
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<title>Vite + React + TS</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="module" crossorigin src="/assets/index-9alGvXI7.js"></script> <title>Демо | Население Москвы</title>
<link rel="stylesheet" crossorigin href="/assets/index-CWCiBtGb.css"> <script type="module" crossorigin src="/assets/index-CNEkaNgL.js"></script>
</head> <link rel="stylesheet" crossorigin href="/assets/index-CWCiBtGb.css">
<body> </head>
<div id="root"></div>
</body> <body>
</html> <div id="root"></div>
</body>
</html>

@ -1,13 +1,16 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head>
<meta charset="UTF-8" /> <head>
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<title>Vite + React + TS</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head> <title>Демо | Население Москвы</title>
<body> </head>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script> <body>
</body> <div id="root"></div>
</html> <script type="module" src="/src/main.tsx"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

@ -19,27 +19,18 @@ function App() {
const { isPending, error, data } = useQuery({ const { isPending, error, data } = useQuery({
queryKey: [day], queryKey: [day],
queryFn: () => load(`./${day}.csv.gz`, CSVLoader, { csv: {} }), queryFn: () => load(`./${day}.csv`, CSVLoader, { csv: {} }),
}) })
if (error) { if (error) {
console.log(error) console.log(error)
} }
const layers = [ const layers = isPending ? [] : [
new ScatterplotLayer({
id: 'deckgl-circle',
data: [
{ position: [0.45, 51.47] }
],
getPosition: d => d.position,
getFillColor: [255, 0, 0, 100],
getRadius: 1000,
}),
new GridCellLayer({ new GridCellLayer({
id: 'deckgl-grid', id: 'deckgl-grid',
//@ts-ignore //@ts-ignore
data: isPending ? [] : data.data, data: data.data,
getPosition: d => [d.x, d.y], getPosition: d => [d.x, d.y],
//@ts-ignore //@ts-ignore
getFillColor: d => colorScale(d[attr]).slice(4, -1).split(", ").map(Number), getFillColor: d => colorScale(d[attr]).slice(4, -1).split(", ").map(Number),

Loading…
Cancel
Save