(graphId: string)
| 75 | } |
| 76 | |
| 77 | public oldestPoint(graphId: string): GraphPoint { |
| 78 | return this.data[graphId] ? this.data[graphId][0] : null; |
| 79 | } |
| 80 | |
| 81 | public subscribe(graphId: string, callback: (point: GraphPoint) => void) { |
| 82 | if (!this.subscriptions[graphId]) { this.subscriptions[graphId] = []; } |