MCPcopy
hub / github.com/palantir/plottable / IDrawer

Interface IDrawer

src/drawers/drawer.ts:15–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 * Drawers draw data onto an output of some sort, usually a DOM element.
14 */
15export interface IDrawer {
16 /**
17 * Mutate the surface to reflect the data being passed in. This method is responsible
18 * for calling the animators at the right time and order.
19 * @param data The data to be drawn.
20 * @param drawSteps The draw steps that the data go through.
21 */
22 draw(data: any[], drawSteps: AppliedDrawStep[]): void;
23
24 /**
25 * Get the the last drawn visual primitives.
26 */
27 getVisualPrimitives(): Element[];
28
29 /**
30 * Get the visual primitive for the given *data* index.
31 */
32 getVisualPrimitiveAtIndex(index: number): Element;
33
34 /**
35 * Called when the Drawer is no longer needed - implementors may use this to cleanup
36 * any resources they've created
37 */
38 remove(): void;
39}
40
41/**
42 * A Drawer is a stateful class that holds one SVGDrawer and one CanvasDrawer, and can switch between

Callers 32

areaDrawerTests.tsFile · 0.65
svgDrawerTests.tsFile · 0.65
lineDrawerTests.tsFile · 0.65
arcDrawerTests.tsFile · 0.65
drawMethod · 0.65
_paintMethod · 0.65
areaDrawerTests.tsFile · 0.65
svgDrawerTests.tsFile · 0.65
lineDrawerTests.tsFile · 0.65

Implementers 3

SVGDrawersrc/drawers/svgDrawer.ts
CanvasDrawersrc/drawers/canvasDrawer.ts
ProxyDrawersrc/drawers/drawer.ts

Calls

no outgoing calls

Tested by

no test coverage detected