• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1function displayBackend(displayEngine, displayList) {
2    switch (displayEngine) {
3        case 'all':
4            displayCanvas(displayList);
5            displaySvg(displayList);
6            break;
7        case 'Canvas':
8            displayCanvas(displayList);
9            break;
10        case 'SVG':
11            displaySvg(displayList);
12            break;
13        default:
14            assert(0);
15    }
16}
17
18function keyframeBackendInit(displayEngine, displayList, first) {
19    switch (displayEngine) {
20        case 'all':
21        case 'Canvas':
22            keyframeCanvasInit(displayList, first);
23            break;
24        case 'SVG':
25            break;
26        default:
27            assert(0);
28    }
29}
30
31function setupBackend(displayEngine) {
32    switch (displayEngine) {
33        case 'all':
34        case 'Canvas':
35            setupCanvas();
36            setupSvg();
37            break;
38        case 'SVG':
39            setupSvg();
40            break;
41        default:
42            assert(0);
43    }
44}
45