• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / plugins / 27974749198

22 Jun 2026 06:25PM UTC coverage: 41.032% (-40.0%) from 81.081%
27974749198

Pull #38

github

web-flow
Merge 5879a1978 into a31e3fb33
Pull Request #38: Add Data Visualisation

98 of 298 branches covered (32.89%)

Branch coverage included in aggregate %.

214 of 488 new or added lines in 20 files covered. (43.85%)

236 of 516 relevant lines covered (45.74%)

1.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/web/data-display/src/tree/DrawableTreeNode.tsx
1
import { TreeNode } from "./BaseTreeNode";
2

3
/**
4
 * Represents a node whose drawable should be cached.
5
 *
6
 * Concrete implementations: ArrayTreeNode, FunctionTreeNode
7
 */
8
export abstract class DrawableTreeNode extends TreeNode {
9
  protected _drawable?: React.ReactElement;
10
  public drawableX?: number;
11
  public drawableY?: number;
12

13
  get drawable() {
NEW
14
    return this._drawable;
×
15
  }
16

17
  /**
18
   * Creates a Konva object representing the drawable. Should be called only once.
19
   * Subsequent references of the drawable to be obtained using the drawable getter.
20
   *
21
   * @param x The x position of the drawable.
22
   * @param y The y position of the drawable.
23
   * @param parentX The x position of the parent.
24
   * @param parentY The y position of the parent.
25
   */
26
  abstract createDrawable(
27
    x: number,
28
    y: number,
29
    parentX: number,
30
    parentY: number,
31
    colorIndex: number,
32
  ): React.ReactElement;
33
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc