powergrid-viewer 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powergrid-viewer",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/boardgamers/powergrid.git",
@@ -18,7 +18,7 @@
18
18
  "vue": "^2.6.11",
19
19
  "vue-class-component": "^7.2.3",
20
20
  "vue-property-decorator": "^8.4.2",
21
- "powergrid-engine": "1.12.0"
21
+ "powergrid-engine": "1.13.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/assert": "^1.4.7",
@@ -128,6 +128,55 @@
128
128
  />
129
129
  </template>
130
130
 
131
+ <template v-for="city in cities">
132
+ <!-- [10,15] city: X at bottom-right -->
133
+ <template v-if="city.slotCosts && city.slotCosts.length === 2 && city.slotCosts[0] === 10">
134
+ <line
135
+ :key="city.name + '_x1'"
136
+ :x1="city.x + 10"
137
+ :y1="city.y + 10"
138
+ :x2="city.x + 19"
139
+ :y2="city.y + 19"
140
+ stroke="black"
141
+ stroke-width="3"
142
+ stroke-linecap="round"
143
+ />
144
+ <line
145
+ :key="city.name + '_x2'"
146
+ :x1="city.x + 19"
147
+ :y1="city.y + 10"
148
+ :x2="city.x + 10"
149
+ :y2="city.y + 19"
150
+ stroke="black"
151
+ stroke-width="3"
152
+ stroke-linecap="round"
153
+ />
154
+ </template>
155
+ <!-- [15,20] city: X at top-middle -->
156
+ <template v-if="city.slotCosts && city.slotCosts.length === 2 && city.slotCosts[0] === 15">
157
+ <line
158
+ :key="city.name + '_x1'"
159
+ :x1="city.x - 5"
160
+ :y1="city.y - 21"
161
+ :x2="city.x + 5"
162
+ :y2="city.y - 11"
163
+ stroke="black"
164
+ stroke-width="3"
165
+ stroke-linecap="round"
166
+ />
167
+ <line
168
+ :key="city.name + '_x2'"
169
+ :x1="city.x + 5"
170
+ :y1="city.y - 21"
171
+ :x2="city.x - 5"
172
+ :y2="city.y - 11"
173
+ stroke="black"
174
+ stroke-width="3"
175
+ stroke-linecap="round"
176
+ />
177
+ </template>
178
+ </template>
179
+
131
180
  <template v-if="!preferences.disableHelp">
132
181
  <template v-for="city in cities">
133
182
  <circle
@@ -10,7 +10,11 @@ function launchSelfContained(selector = '#app') {
10
10
 
11
11
  const emitter = launch(selector);
12
12
 
13
- let gameState = setup(5, { map: 'UK & Ireland', variant: 'recharged', showMoney: true, randomizeMap: false }, '7');
13
+ let gameState = setup(
14
+ 5,
15
+ { map: 'Baden-Württemberg', variant: 'original', showMoney: true, randomizeMap: false },
16
+ '7'
17
+ );
14
18
 
15
19
  // Dev coord-picker example (commented; uncomment + drop a board photo into
16
20
  // viewer/public/ to author city coordinates for a new map). See the picker