11import { BaseComponent } from '../base/base-component' ;
22import { ComponentTypeEnum } from '../interface/type' ;
33// eslint-disable-next-line no-duplicate-imports
4- import type { IRegion } from '../../region/interface' ;
5- import type { IModelRenderOption } from '../../model/interface' ;
64import { LayoutLevel , LayoutZIndex } from '../../constant/layout' ;
75import { PREFIX } from '../../constant/base' ;
86import type { EnableMarkType , ICustomMarkGroupSpec , ICustomMarkSpec , ILayoutRect } from '../../typings' ;
9- import { MarkTypeEnum , type IGroupMark , type IMark } from '../../mark/interface' ;
7+ import { IComponentMark , MarkTypeEnum , type IGroupMark } from '../../mark/interface' ;
108// eslint-disable-next-line no-duplicate-imports
119import { Bounds , isEqual , isNil , isValid , isValidNumber } from '@visactor/vutils' ;
1210import { Factory } from '../../core/factory' ;
13- import type { IGraphic } from '@visactor/vrender-core' ;
1411import { animationConfig , userAnimationConfig } from '../../animation/utils' ;
1512import type { IModelMarkAttributeContext } from '../../compile/mark/interface' ;
1613
@@ -195,13 +192,13 @@ export class CustomMark extends BaseComponent<ICustomMarkSpec<EnableMarkType>> {
195192
196193 getVRenderComponents ( ) {
197194 const comps : any [ ] = [ ] ;
198- const checkFunc = ( m : IMark ) => {
195+ const checkFunc = ( m : IComponentMark ) => {
199196 if ( m && m . type === MarkTypeEnum . group ) {
200197 m . getMarks ( ) . forEach ( child => {
201- checkFunc ( child as IMark ) ;
198+ checkFunc ( child as IComponentMark ) ;
202199 } ) ;
203200 } else if ( m . type === MarkTypeEnum . component ) {
204- const comp = m ?. getProduct ( ) ;
201+ const comp = m ?. getComponent ( ) ;
205202
206203 if ( comp ) {
207204 comps . push ( comp ) ;
@@ -210,7 +207,7 @@ export class CustomMark extends BaseComponent<ICustomMarkSpec<EnableMarkType>> {
210207 } ;
211208
212209 this . getMarks ( ) . forEach ( m => {
213- checkFunc ( m ) ;
210+ checkFunc ( m as IComponentMark ) ;
214211 } ) ;
215212
216213 return comps ;
0 commit comments