forensic-architecture/timemap

decouple event sizing in explore mode from quantity

breezykermo opened this issue · 1 comments

The old design of events in explore mode caused the event SVG to become larger when multiple events were displayed in the same location.

Visual effects like enlargement should be decoupled from data inputs. Instead, the effects should be configurable, so that different data logics can drive different effects across Timemap instances.

What this means practicably is essentially allowing a custom function to be passed down to MapEvents that is invoked during renderLocation, so that certain attributes of the SVG or element can be configured.

We should also add support for animations when event SVGs are mounted/unmounted. React's idiom for animations uses state, which we need to reimplement to recover then functionality we lost when we reactified the map and timeline components in #54.

It would be great to have additional functions/mappings for other aspects of an event's appearance as well, e.g. saturation. In many cases we are looking to prioritise the visual prominence of some events over others, according to investigation-specific parameters; saturation would be a nice control to have.