Returns a number describing the currently active layer id.
number
function getTrackActiveLayerId(state) { return state.simulator.engine.engine.state.activeLayerId; }