# HG changeset patch # User Sascha Wilde # Date 1562858769 -7200 # Node ID 90496300311d00803ce78df8feecd5cbc009225c # Parent 03f37e64701c7b9f8f6eb5d162f88c2142f45d4c Used DefaultDiagramTemplate for fairwayprofile, too. diff -r 03f37e64701c -r 90496300311d client/src/components/fairway/Fairwayprofile.vue --- 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,