Mercurial > gemma
comparison client/src/components/fairway/Fairwayprofile.vue @ 3928:90496300311d
Used DefaultDiagramTemplate for fairwayprofile, too.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Thu, 11 Jul 2019 17:26:09 +0200 |
parents | 3ebde6dd336f |
children | d859ec6cf2f0 |
comparison
equal
deleted
inserted
replaced
3927:03f37e64701c | 3928:90496300311d |
---|---|
151 import debounce from "debounce"; | 151 import debounce from "debounce"; |
152 import svg2pdf from "svg2pdf.js"; | 152 import svg2pdf from "svg2pdf.js"; |
153 import { pdfgen, templateLoader } from "@/lib/mixins"; | 153 import { pdfgen, templateLoader } from "@/lib/mixins"; |
154 import { HTTP } from "@/lib/http"; | 154 import { HTTP } from "@/lib/http"; |
155 import { displayError } from "@/lib/errors"; | 155 import { displayError } from "@/lib/errors"; |
156 import { defaultDiagramTemplate } from "@/lib/DefaultDiagramTemplate"; | |
156 | 157 |
157 const GROUND_COLOR = "#4A2F06"; | 158 const GROUND_COLOR = "#4A2F06"; |
158 const WATER_COLOR = "#005DFF"; | 159 const WATER_COLOR = "#005DFF"; |
159 | 160 |
160 export default { | 161 export default { |
176 }, | 177 }, |
177 form: { | 178 form: { |
178 template: null | 179 template: null |
179 }, | 180 }, |
180 templates: [], | 181 templates: [], |
181 defaultTemplate: { | 182 defaultTemplate: defaultDiagramTemplate, |
182 name: "default", | |
183 properties: { | |
184 paperSize: "a4" | |
185 }, | |
186 elements: [ | |
187 { | |
188 type: "diagram", | |
189 position: "topleft", | |
190 offset: { x: 18, y: 60 }, | |
191 width: 190, | |
192 height: 52 | |
193 }, | |
194 { | |
195 type: "diagramtitle", | |
196 position: "topleft", | |
197 offset: { x: 90, y: 30 }, | |
198 fontsize: 22, | |
199 color: "steelblue" | |
200 }, | |
201 { | |
202 type: "diagramlegend", | |
203 position: "topleft", | |
204 offset: { x: 30, y: 160 }, | |
205 color: "black" | |
206 } | |
207 ] | |
208 }, | |
209 pdf: { | 183 pdf: { |
210 doc: null, | 184 doc: null, |
211 width: 32, | 185 width: 32, |
212 height: 297 | 186 height: 297 |
213 }, | 187 }, |