(graphId: string, callback: (point: GraphPoint) => void)
| 79 | } |
| 80 | |
| 81 | public subscribe(graphId: string, callback: (point: GraphPoint) => void) { |
| 82 | if (!this.subscriptions[graphId]) { this.subscriptions[graphId] = []; } |
| 83 | this.subscriptions[graphId].push(callback); |
| 84 | } |
| 85 | } |