view client/src/lib/DefaultDiagramTemplate.js @ 3930:c2ac23175a8f

Tweaked the default template to look good. The Scaling and positioning of the svg diagrams is currently not precise, and needs further fixing. Till then I tweaked the template too look okayish anyway...
author Sascha Wilde <wilde@intevation.de>
date Thu, 11 Jul 2019 19:16:28 +0200
parents 03f37e64701c
children c10897e0273b
line wrap: on
line source

const defaultDiagramTemplate = {
  name: "Default",
  properties: {
    paperSize: "a4"
  },
  elements: [
    {
      type: "diagramtitle",
      position: "topleft",
      offset: { x: 25, y: 25 },
      fontsize: 20,
      color: "steelblue"
    },
    {
      type: "diagram",
      position: "topleft",
      offset: { x: 21, y: 39 },
      width: 230,
      height: 110
    },
    {
      type: "diagramlegend",
      position: "topleft",
      offset: { x: 25, y: 167 },
      color: "black"
    }
  ]
};

export { defaultDiagramTemplate };