The core modules underlying diagrams, an embedded domain-specific language for compositional, declarative drawing.