• 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/FunctionTreeNode.tsx
1
import { Group } from "react-konva";
2

3
import { Config } from "../Config";
4
import { ArrowDrawable, FunctionDrawable } from "../drawable/Drawable";
5
import { DrawableTreeNode } from "./DrawableTreeNode";
6

7
/**
8
 * Represents a node corresponding to a Source (and Javascript) function.
9
 */
10
export class FunctionTreeNode extends DrawableTreeNode {
11
  createDrawable(
12
    x: number,
13
    y: number,
14
    parentX: number,
15
    parentY: number,
16
    colorIndex: number,
17
  ): React.ReactElement {
NEW
18
    this._drawable = (
×
19
      <Group key={x + ", " + y}>
20
        <FunctionDrawable {...{ x, y }} />
21
        {(parentX !== x || parentY !== y) && (
×
22
          <ArrowDrawable
23
            {...{
24
              from: {
25
                x: parentX + Config.BoxWidth / 2,
26
                y: parentY + Config.BoxHeight / 2,
27
              },
28
              to: {
29
                x,
30
                y,
31
              },
32
            }}
33
          />
34
        )}
35
      </Group>
36
    );
37

NEW
38
    this.drawableX = x;
×
NEW
39
    this.drawableY = y;
×
40

NEW
41
    return this._drawable;
×
42
  }
43
}
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