Class: SurrogateSideEffect

SurrogateSideEffect()

new SurrogateSideEffect()

This class is inherited by all side effects which changes the look of any existing elements in the visualization. For example, if a side effect wants to change the color of bar plots, then it is a surrogate side effect. To use this, ``` const SurrogateSideEffect = muze.SideEffects.standards.SurrogateSideEffect; class BarColorChanger extends SurrogateSideEffect { static formalName () { return 'colorChanger'; } // Implement the logic of applying the style here. apply () { } } ```
Source: