move avgScale to core
Merge pull request #167 from diagrams/avg-scale

move avgScale to core