fix edge interactions and state-based opacity

Fixes #531