Skip to content

Commit

Permalink
fix: coord range 左边界 (#1771)
Browse files Browse the repository at this point in the history
Co-authored-by: xuying.xu <xuying.xu@alibaba-inc.com>
  • Loading branch information
tangying1027 and xuying.xu committed Apr 10, 2023
1 parent 0f6ec64 commit bdc44ed
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/f2/src/components/geometry/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import { isFunction, each, upperFirst, mix, groupToMap, isObject, flatten } from '@antv/util';
import {
isFunction,
each,
upperFirst,
mix,
groupToMap,
isObject,
flatten,
isNull,
} from '@antv/util';
import { ChartChildProps } from '../../chart';
import Selection, { SelectionProps, SelectionState } from './selection';
import { Adjust, Dodge, Jitter, Stack, Symmetric } from '../../deps/f2-adjust/src';
Expand Down Expand Up @@ -629,7 +638,7 @@ class Geometry<

const rst = [];
const value = this._getXSnap(invertPoint.x);
if (!value) {
if (isNull(value)) {
return rst;
}
const { field: xField } = xScale;
Expand Down

0 comments on commit bdc44ed

Please sign in to comment.