Skip to content

Commit

Permalink
Merge pull request #1857 from VisActor/fix/brush-bounds-error
Browse files Browse the repository at this point in the history
fix: brush bounds error
  • Loading branch information
xile611 authored Dec 28, 2023
2 parents 20c2728 + e77f314 commit f07d768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vchart/src/component/brush/brush.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export class Brush<T extends IBrushSpec = IBrushSpec> extends BaseComponent<T> i
let itemBounds: { x: number; y: number }[] = [];
if (item.type === 'symbol') {
const { size: itemSize = 0 } = item?.attribute as ISymbolGraphicAttribute;
const size = array(itemSize)[0];
const size = array(itemSize)[0] / 2;
itemBounds = [
{
x: x - size,
Expand Down

0 comments on commit f07d768

Please sign in to comment.