Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problems removed:
Issue #1: Every time board was resized, the old text element wasn't removed and a new one was appended in location feature.
Issue #2: Display which is an object was iterated as an array which didn't work and consequently old elements weren't removed from the track in reset function in composite feature.
Issue #4: In axis feature, rect element was removed in reset function, so the background kept disappearing when the board was resized.
I also looked into Issue #3 and I located the problem, but I didn't know how (and whether) you would like to solve that. Actually, now the problem is a bit different as fixing issue #2 changed it a bit - now only one line/area stays and the rest is removed on resize. In create function in line and area features, all the path elements within a track are removed, so only the last one to be rendered will stay on the screen. But as all the elements from different features are children of track element and don't have any classes/ids, it's not really possible to distinguish between different lines/areas within one track. A solution could be to put every feature from a composite feature into a separate (and maybe with class as the feature key given in the retriever) which would be placed as children of track element.