/** * Instanced line which has a better performance. * @see https://www.yuque.com/antv/ou292n/gg1gh5 */ import { DisplayObject } from '@antv/g-lite'; import { Instanced } from './Instanced'; import { RenderHelper } from '../render'; import { TexturePool } from '../TexturePool'; import { LightPool } from '../LightPool'; import { BatchContext } from '../renderer'; /** * Used for Curve only contains 2 commands, e.g. [[M], [C | Q | A]] */ export declare class InstancedPathDrawcall extends Instanced { protected renderHelper: RenderHelper; protected texturePool: TexturePool; protected lightPool: LightPool; static calcSubpathNum(object: DisplayObject): number; constructor(renderHelper: RenderHelper, texturePool: TexturePool, lightPool: LightPool, object: DisplayObject, drawcallCtors: (new (..._: any) => Instanced)[], index: number, context: BatchContext); private segmentNum; private calcSegmentNum; private calcSubpathIndex; /** * Paths with the same number of vertices should be merged. */ shouldMerge(object: DisplayObject, index: number): boolean; createMaterial(objects: DisplayObject[]): void; createGeometry(objects: DisplayObject[]): void; updateAttribute(objects: DisplayObject[], startIndex: number, name: string, value: any): void; } export declare enum JOINT_TYPE { NONE = 0, FILL = 1, JOINT_BEVEL = 4, JOINT_MITER = 8, JOINT_ROUND = 12, JOINT_CAP_BUTT = 16, JOINT_CAP_SQUARE = 18, JOINT_CAP_ROUND = 20, FILL_EXPAND = 24, CAP_BUTT = 32, CAP_SQUARE = 64, CAP_ROUND = 96, CAP_BUTT2 = 128 } export declare function updateBuffer(object: DisplayObject, needEarcut?: boolean, segmentNum?: number, subPathIndex?: number): { pointsBuffer: number[]; travelBuffer: number[]; triangles: number[]; instancedCount: number; }; //# sourceMappingURL=InstancedPath.d.ts.map