/*! * * Wijmo Library 5.20251.40 * https://developer.mescius.com/wijmo * * Copyright(c) MESCIUS inc. All rights reserved. * * Licensed under the End-User License Agreement For MESCIUS Wijmo Software. * us.sales@mescius.com * https://developer.mescius.com/wijmo/licensing * */ /** * {@module wijmo.chart.webgl} * Includes WebGL rendering engine for FlexChart. */ /** * */ export declare var ___keepComment: any; import * as core from 'wijmo/wijmo'; import * as chart from 'wijmo/wijmo.chart'; export declare class _EarCut { earcut(data: any, holeIndices?: any, dim?: any): number[]; private linkedList; private filterPoints; private earcutLinked; private isEar; private isEarHashed; private cureLocalIntersections; private splitEarcut; private eliminateHoles; private compareX; private eliminateHole; private findHoleBridge; private sectorContainsSector; private indexCurve; private sortLinked; private zOrder; private getLeftmost; private pointInTriangle; private isValidDiagonal; private area; private equals; private intersects; private onSegment; private sign; private intersectsPolygon; private locallyInside; private middleInside; private splitPolygon; private insertNode; private removeNode; private deviation; private signedArea; private flatten; } /** * High performance rendering engine for a {@link FlexChart} control. * * To enable WebGL rendering on a {@link FlexChart} control, * set renderEngine property of {@link FlexChart} to * an instance of the {@link WebGLRenderEngine}. For example: *```typescript * import { FlexChart } from 'wijmo/wijmo.chart'; * import { WebGLRenderEngine } from 'wijmo/wijmo.chart.webgl'; * let flexChart = new FlexChart('#theGrid'); // create the chart * flexChart.renderEngine = new WebGLRenderEngine(); // set the render engine * ``` */ export declare class WebGLRenderEngine extends chart._SvgRenderEngine { private static svgns; canvas: HTMLCanvasElement; foCanvas: SVGForeignObjectElement; private gl; private rdraw; private edraw; private pdraw; private ldraw; private adraw; private primitives; private isIE; useSvg: boolean; private clipRects; constructor(el?: HTMLElement); beginRender(): void; setViewportSize(w: number, h: number): void; endRender(): void; drawEllipse(cx: number, cy: number, rx: number, ry: number, className?: string, style?: any): SVGElement; _getGroupClipRect(e?: Element): core.Rect; drawRect(x: number, y: number, w: number, h: number, className?: string, style?: any, clipPath?: string): SVGElement; drawLines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string, num?: number): SVGElement; drawPolygon(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): SVGElement; addClipRect(clipRect: core.Rect, id: string): void; private init; }