@seatmap.pro/renderer 1.56.5 → 1.58.4
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/README.md +30 -0
- package/lib/index.d.ts +475 -40
- package/lib/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -49,6 +49,36 @@ const renderer = new SeatmapBookingRenderer({
|
|
|
49
49
|
renderer.loadEvent(eventId);
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
+
## Checking Version
|
|
53
|
+
|
|
54
|
+
You can check the library version in several ways:
|
|
55
|
+
|
|
56
|
+
### Script Tag (Standalone Bundle)
|
|
57
|
+
|
|
58
|
+
```html
|
|
59
|
+
<script src="seatmap-booking-renderer.js"></script>
|
|
60
|
+
<script>
|
|
61
|
+
console.log(SeatmapBookingRenderer.VERSION);
|
|
62
|
+
</script>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### NPM Module
|
|
66
|
+
|
|
67
|
+
```javascript
|
|
68
|
+
import { SeatmapBookingRenderer, VERSION } from '@seatmap.pro/renderer';
|
|
69
|
+
|
|
70
|
+
console.log(VERSION);
|
|
71
|
+
// or
|
|
72
|
+
console.log(SeatmapBookingRenderer.VERSION);
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Instance Method
|
|
76
|
+
|
|
77
|
+
```javascript
|
|
78
|
+
const renderer = new SeatmapBookingRenderer(element, settings);
|
|
79
|
+
console.log(renderer.getVersion());
|
|
80
|
+
```
|
|
81
|
+
|
|
52
82
|
## Documentation
|
|
53
83
|
|
|
54
84
|
For detailed documentation, visit our:
|