[diagram] Add expression for diagram attributes and size
Add missing git ignore