UNPKG

@visactor/vrender-core

Version:
55 lines (54 loc) 2.31 kB
import type { IAABBBounds } from '@visactor/vutils'; import type { IArea, IAreaCacheItem, IAreaGraphicAttribute } from '../interface'; import { Graphic } from './graphic'; import { CustomPath2D } from '../common/custom-path2d'; export declare class Area extends Graphic<IAreaGraphicAttribute> implements IArea { type: 'area'; static NOWORK_ANIMATE_ATTR: { strokeSeg: number; boundsPadding: number; pickMode: number; boundsMode: number; customPickShape: number; pickable: number; childrenPickable: number; visible: number; zIndex: number; layout: number; keepDirIn3d: number; globalZIndex: number; outerBorder: number; innerBorder: number; lineDash: number; lineCap: number; lineJoin: number; miterLimit: number; strokeBoundsBuffer: number; scaleCenter: number; anchor: number; anchor3d: number; postMatrix: number; backgroundMode: number; background: number; texture: number; cursor: number; html: number; segments: number; curveType: number; }; cache?: IAreaCacheItem; constructor(params: IAreaGraphicAttribute); isValid(): boolean; private _isValid; getGraphicTheme(): Required<IAreaGraphicAttribute>; protected updateAABBBounds(attribute: IAreaGraphicAttribute, areaTheme: Required<IAreaGraphicAttribute>, aabbBounds: IAABBBounds): import("@visactor/vutils").IBounds; protected updateAreaAABBBoundsByPoints(attribute: IAreaGraphicAttribute, areaTheme: Required<IAreaGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IArea): IAABBBounds; protected updateAreaAABBBoundsBySegments(attribute: IAreaGraphicAttribute, areaTheme: Required<IAreaGraphicAttribute>, aabbBounds: IAABBBounds, graphic?: IArea): IAABBBounds; protected _interpolate(key: string, ratio: number, lastStepVal: any, nextStepVal: any, nextAttributes: any): void; protected needUpdateTags(keys: string[]): boolean; protected needUpdateTag(key: string): boolean; toCustomPath(): CustomPath2D; clone(): Area; getNoWorkAnimateAttr(): Record<string, number>; } export declare function createArea(attributes: IAreaGraphicAttribute): IArea;