Mercurial > gemma
changeset 3928:90496300311d
Used DefaultDiagramTemplate for fairwayprofile, too.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Thu, 11 Jul 2019 17:26:09 +0200 |
parents | 03f37e64701c |
children | 45be361f2d48 |
files | client/src/components/fairway/Fairwayprofile.vue |
diffstat | 1 files changed, 2 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/Fairwayprofile.vue Thu Jul 11 16:55:31 2019 +0200 +++ b/client/src/components/fairway/Fairwayprofile.vue Thu Jul 11 17:26:09 2019 +0200 @@ -153,6 +153,7 @@ import { pdfgen, templateLoader } from "@/lib/mixins"; import { HTTP } from "@/lib/http"; import { displayError } from "@/lib/errors"; +import { defaultDiagramTemplate } from "@/lib/DefaultDiagramTemplate"; const GROUND_COLOR = "#4A2F06"; const WATER_COLOR = "#005DFF"; @@ -178,34 +179,7 @@ template: null }, templates: [], - defaultTemplate: { - name: "default", - properties: { - paperSize: "a4" - }, - elements: [ - { - type: "diagram", - position: "topleft", - offset: { x: 18, y: 60 }, - width: 190, - height: 52 - }, - { - type: "diagramtitle", - position: "topleft", - offset: { x: 90, y: 30 }, - fontsize: 22, - color: "steelblue" - }, - { - type: "diagramlegend", - position: "topleft", - offset: { x: 30, y: 160 }, - color: "black" - } - ] - }, + defaultTemplate: defaultDiagramTemplate, pdf: { doc: null, width: 32,