From d86cff0cf26c9b0d7b160dc1f82e5bd0e67ddff4 Mon Sep 17 00:00:00 2001 From: xiaoluoHe Date: Wed, 18 Dec 2024 19:13:59 +0800 Subject: [PATCH] fix: fix missing type of GraphicAttributeMap --- packages/vrender-core/src/interface/graphic/creator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vrender-core/src/interface/graphic/creator.ts b/packages/vrender-core/src/interface/graphic/creator.ts index 6719b2ff4..5467d3e12 100644 --- a/packages/vrender-core/src/interface/graphic/creator.ts +++ b/packages/vrender-core/src/interface/graphic/creator.ts @@ -8,7 +8,7 @@ import type { IImageAttribute, IImageGraphicAttribute } from './image'; import type { IIsogonAttribute } from './isogon'; import type { ILineAttribute, ILineGraphicAttribute } from './line'; import type { IPathAttribute, IPathGraphicAttribute } from './path'; -import type { IPolygonAttribute } from './polygon'; +import type { IPolygonAttribute, IPolygonGraphicAttribute } from './polygon'; import type { IRectAttribute, IRectGraphicAttribute } from './rect'; import type { IRichTextAttribute, IRichTextGraphicAttribute } from './richText'; import type { ISvgAttribute } from './svg'; @@ -68,6 +68,7 @@ export interface GraphicAttributeMap { readonly text: ITextGraphicAttribute; readonly richtext: IRichTextGraphicAttribute; readonly wrapText: IWrapTextGraphicAttribute; + readonly polygon: IPolygonGraphicAttribute; } // export declare function createArc(params: Partial): IArc;