Projekt

Obecné

Profil

Stáhnout (503 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import {Graph} from "./graph";
2

    
3
declare var require: any
4

    
5
export class EmptyGraph implements Graph{
6

    
7
  message: string;
8

    
9
  constructor(message) {
10
    this.message = message;
11
  }
12

    
13

    
14
  getConfig(): {} {
15
    return require('/src/vega/config/config.json');
16
  }
17

    
18
  getSpec(): {} {
19
    const lodash = require('lodash/object');
20
    const rvalue: any = {};
21
    let base = require('/src/vega/base/empty.json');
22
    lodash.merge(rvalue, base);
23
    rvalue.signals[0].value = this.message;
24
    return rvalue;
25
  }
26

    
27
}
(1-1/5)