Skip to content

Commit

Permalink
remove default clipWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
KenanYusuf committed Jan 12, 2024
1 parent 23e7e39 commit da3d3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/victory-canvas/src/canvas-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface CanvasGroupProps {

export const CanvasGroup = (props: CanvasGroupProps) => {
const canvasRef = React.useRef<HTMLCanvasElement>(null);
const { children, width = 0, height = 0, clipWidth = 0, padding } = props;
const { children, width = 0, height = 0, clipWidth, padding } = props;

const clear = React.useCallback(
(ctx: CanvasRenderingContext2D) => {
Expand All @@ -34,7 +34,7 @@ export const CanvasGroup = (props: CanvasGroupProps) => {
ctx.clearRect(
width - paddingRight,
0,
(maxClipWidth - clipWidth) * -1,
clipWidth ? (maxClipWidth - clipWidth) * -1 : 0,
height,
);
},
Expand Down

0 comments on commit da3d3df

Please sign in to comment.