* Add data to a surface's data model
(surfaceId: string, path: string, value: DataValue)
| 908 | * Add data to a surface's data model |
| 909 | */ |
| 910 | addDataToSurface(surfaceId: string, path: string, value: DataValue): boolean { |
| 911 | const surface = this.surfaces.get(surfaceId); |
| 912 | if (!surface) { |
| 913 | return false; |
| 914 | } |
| 915 | |
| 916 | const result = addData(surface.dataModel, path, value); |
| 917 | |
| 918 | if (result && surface.rootComponentId) { |
| 919 | const streamingState = this.streamingStates.get(surfaceId); |
| 920 | this.rebuildComponentTree(surface, streamingState); |
| 921 | this.notifyListeners(surfaceId, surface); |
| 922 | } |
| 923 | |
| 924 | return result; |
| 925 | } |
| 926 | |
| 927 | /** |
| 928 | * Remove data from a surface's data model |
nothing calls this directly
no test coverage detected