Mercurial > gemma
annotate client/src/lib/DefaultDiagramTemplate.js @ 5082:c4ebb6ccc588 time-sliding
client: start a request for the last changed time on time slider
* initiate a refresh layers request when the time for the
finished request differs from the selected time on time slider
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Wed, 18 Mar 2020 14:11:44 +0100 |
parents | ea36f163db44 |
children |
rev | line source |
---|---|
3992
2f024d6189ca
Reverted merge with diagram-cleanup -- its not yet ready.
Sascha Wilde <wilde@intevation.de>
parents:
3966
diff
changeset
|
1 const defaultDiagramTemplate = { |
3927
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
2 name: "Default", |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
3 properties: { |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
4 paperSize: "a4" |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
5 }, |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
6 elements: [ |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
7 { |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
8 type: "diagramtitle", |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
9 position: "topleft", |
4184
ea36f163db44
Clinet: pdf-gen: adjust default template positioning values
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3992
diff
changeset
|
10 offset: { x: 74, y: 25 }, |
3927
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
11 fontsize: 20, |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
12 color: "steelblue" |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
13 }, |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
14 { |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
15 type: "diagram", |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
16 position: "topleft", |
4184
ea36f163db44
Clinet: pdf-gen: adjust default template positioning values
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3992
diff
changeset
|
17 offset: { x: 24, y: 40 }, |
ea36f163db44
Clinet: pdf-gen: adjust default template positioning values
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3992
diff
changeset
|
18 width: 248, |
ea36f163db44
Clinet: pdf-gen: adjust default template positioning values
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3992
diff
changeset
|
19 height: 119 |
3927
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
20 }, |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
21 { |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
22 type: "diagramlegend", |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
23 position: "topleft", |
4184
ea36f163db44
Clinet: pdf-gen: adjust default template positioning values
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3992
diff
changeset
|
24 offset: { x: 44, y: 167 }, |
3927
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
25 color: "black" |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
26 } |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
27 ] |
03f37e64701c
Factored out default template for diagrams in a single file.
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
28 }; |
3992
2f024d6189ca
Reverted merge with diagram-cleanup -- its not yet ready.
Sascha Wilde <wilde@intevation.de>
parents:
3966
diff
changeset
|
29 |
2f024d6189ca
Reverted merge with diagram-cleanup -- its not yet ready.
Sascha Wilde <wilde@intevation.de>
parents:
3966
diff
changeset
|
30 export { defaultDiagramTemplate }; |