iticket-seatingplan-dev 1.0.29 → 1.0.30

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.
@@ -172,6 +172,7 @@ const SeatingPlan = _ref => {
172
172
  }).then(response => response.json() || null).then(data => {
173
173
  const img = new Image();
174
174
  img.src = data.background;
175
+ console.log(data.background);
175
176
  setBookedSeats(data.seats.filter(s => s.s === 4 && s.bookedPrice === price).map(s => ({
176
177
  showingSeatId: s.ssId,
177
178
  rowName: s.r,
@@ -181,9 +182,9 @@ const SeatingPlan = _ref => {
181
182
  priceAgeName: s.priceAgeName
182
183
  })));
183
184
  img.onload = () => {
184
- setHeight(img.height);
185
- setWidth(img.width);
186
- setPosition([img.height * 0.03 / 2, img.width * 0.03 / 2]);
185
+ setHeight(img.height * 0.5);
186
+ setWidth(img.width * 0.5);
187
+ setPosition([img.height * 0.005, img.width * 0.005]);
187
188
  setSeats(data);
188
189
  };
189
190
  }).catch(error => {
@@ -225,7 +226,7 @@ const SeatingPlan = _ref => {
225
226
  className: "loading"
226
227
  }, /*#__PURE__*/_react.default.createElement("h1", null, "OOPS!"), /*#__PURE__*/_react.default.createElement("div", null, error.response.data.message)) : position ? /*#__PURE__*/_react.default.createElement(_reactLeaflet.MapContainer, {
227
228
  whenReady: setMap,
228
- center: position,
229
+ center: [height * 0.015, width * 0.015],
229
230
  zoom: 5,
230
231
  scrollWheelZoom: true,
231
232
  style: {
@@ -240,7 +241,7 @@ const SeatingPlan = _ref => {
240
241
  key: i
241
242
  }, /*#__PURE__*/_react.default.createElement(_reactLeaflet.ImageOverlay, {
242
243
  url: "https://iticketseatingplan.blob.core.windows.net/embed/static/media/rippleload.08e6a08dd832819226ef.gif",
243
- bounds: [[height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006) - 0.3, s.x * 0.6 + 0.25 - 0.3], [height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006) + 0.3, s.x * 0.6 + 0.25 + 0.3]
244
+ bounds: [[height * 0.05 - s.y / 3.35 - height / 50 - 0.11, s.x * 0.3 + 0.15 - 0.11], [height * 0.05 - s.y / 3.35 - height / 50 + 0.11, s.x * 0.3 + 0.15 + 0.11]
244
245
  // [height * 0.0302 - s.y * 0.602 - 0.3, s.x * 0.61 - 0.3],
245
246
  // [height * 0.0302 - s.y * 0.602 + 0.3, s.x * 0.61 + 0.3],
246
247
  // [height * 0.0302 - s.y * 0.602 - 0.17, s.x * 0.61 - 0.17],
@@ -260,22 +261,23 @@ const SeatingPlan = _ref => {
260
261
  // height * 0.0302 - s.y * 0.602 + 0.17,
261
262
  // s.x * 0.61 + 0.17,
262
263
  // ],
263
- [height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006) - 0.17, s.x * 0.6 + 0.25 - 0.17], [height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006) + 0.17, s.x * 0.6 + 0.25 + 0.17]],
264
+ [height * 0.05 - s.y / 3.35 - height / 50 - 0.11, s.x * 0.3 + 0.15 - 0.11], [height * 0.05 - s.y / 3.35 - height / 50 + 0.11, s.x * 0.3 + 0.15 + 0.11]],
264
265
  zIndex: 10
265
266
  }) : /*#__PURE__*/_react.default.createElement(_reactLeaflet.Circle, {
266
267
  center: [
267
- // (width * 0.03 - (s.y - 11.5)) * 0.65,
268
- // s.x * 0.64,
269
- height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006), s.x * 0.6 + 0.25
270
- // s.y,
268
+ // height * 0.0305 -
269
+ // s.y * 0.57 -
270
+ // height * (height > 700 ? 0.0001 : 0.0006),
271
271
  // s.x * 0.6 + 0.25,
272
- // height * 0.03 - s.y * (height * 0.000535),
273
- // height * 0.03 - s.y,
274
- // s.x * 0.6 + 0.3,
272
+
273
+ height * 0.05 - s.y / 3.35 - height / 50, s.x * 0.3 + 0.15
274
+
275
+ // -s.y * (height * 0.00037) + 24.2,
276
+ // s.x * 0.3 + 0.15,
275
277
  ],
276
278
 
277
279
  pathOptions: setInitialColor(s),
278
- radius: 30000,
280
+ radius: 12000,
279
281
  eventHandlers: {
280
282
  click: e => handleClick(e, s)
281
283
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "iticket-seatingplan-dev",
3
3
  "description": "Seating plan with FLEXi pricing",
4
4
  "author": "gedwyne",
5
- "version": "1.0.29",
5
+ "version": "1.0.30",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",