Skip to content

Commit

Permalink
fix: projection null
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Aug 9, 2023
1 parent ba619cc commit c707ef0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"dev": "vite",
"dev:link": "cross-env LINK=1 vite",
"div:link-gui": "cross-env MODULE=@antv/gui run-s dev:link",
"clean": "rimraf lib esm dist",
"lint-staged": "lint-staged",
"size": "limit-size",
Expand All @@ -24,7 +25,6 @@
"test:unit": "node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__/unit/ --coverage -i --logHeapUsage",
"test:integration": "node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__/integration/ --coverage -i --logHeapUsage",
"test:treeshaking": "vite build -c ./__tests__/treeshaking/vite.config.js",
"test-live": "cross-env DEBUG_MODE=1 jest --watch",
"build:umd": "rimraf ./dist && rollup -c && npm run size",
"build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
"build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
Expand Down
2 changes: 1 addition & 1 deletion src/geo/geoView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export const GeoView: CC<GeoViewOptions> = () => {
});
const normalize = (point) => {
const visualPoint = visual(point);
if (!visualPoint) return null;
if (!visualPoint) return [null, null];
const [vx, vy] = visualPoint;
return [scaleX.map(vx), scaleY.map(vy)];
};
Expand Down
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const linkOptions =
? {
server: {
watch: {
ignored: ['!**/node_modules/@antv/gui/**'],
ignored: [`!**/node_modules/${process.env.MODULE}/**`],
},
},
optimizeDeps: {
exclude: ['@antv/gui'],
exclude: [`${process.env.MODULE}`],
},
}
: {};
Expand Down

0 comments on commit c707ef0

Please sign in to comment.