Skip to content

Commit

Permalink
fix: change rectAttribute type in contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Dec 21, 2023
1 parent 0ba35e0 commit e2ee08f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import type {
IGraphicAttribute,
IThemeAttribute,
IGroupRenderContribution,
IDrawContext
IDrawContext,
IRectGraphicAttribute
} from '@visactor/vrender';
import { BaseRenderContributionTime, injectable } from '@visactor/vrender';
import type { Group } from '../group';
Expand Down Expand Up @@ -218,7 +219,7 @@ export function renderStroke(
context: IContext2d,
x: number,
y: number,
groupAttribute: Required<IGroupGraphicAttribute>,
groupAttribute: Required<IGroupGraphicAttribute> | Required<IRectGraphicAttribute>,
stroke: boolean | [boolean, boolean, boolean, boolean],
strokeArrayWidth: [number, number, number, number] | undefined,
strokeArrayColor: [string, string, string, string] | undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class SplitRectAfterRenderContribution implements IRectRenderContribution
context,
x,
y,
rectAttribute as Required<IGroupGraphicAttribute>,
rectAttribute,
stroke,
strokeArrayWidth || lineWidth,
strokeArrayColor || strokeColor,
Expand Down

0 comments on commit e2ee08f

Please sign in to comment.