seat-map-view
Made with create-react-library
Install
npm install --save seat-map-view
Usage
import React, { Component } from 'react'
import MyComponent from 'seat-map-view'
import 'seat-map-view/dist/index.css'
class Example extends Component {
render() {
return <MyComponent />
}
}
Normalize JSON
After manually making changes in JSON file some indexes may be violated, but we need them to be sequential. For not changing all indexes manually simple call normalizer function. Steps to normalize JSON:
- Run
node callNormalizer.js
. - Enter JSON file name without
.json
extension. Note that JSON file must be placed in/example/src/assets/map_samples
folder.
node callNormalize.js
Please enter JSON file name: example
- New JSON file be generated with
_normalized
postfix and placed inmap_samples
:
Done!!!
***
Normalized JSON is placed in: /{dirname}/map_samples/example_normalized.json
***