Monk sights library providing sight details and overlays
npm install @monkvision/sightsThis package exposes the Monkvision sights info. The exported data contains sights label translations, vehicle type
info, sight overlays (SVG) as well as miscellaneous sight details. This package is required if you are planning on using
the standard Monkvision Capture workflow, of simply if you ar planning on using sights at all. The complete list of
available sights in the SDK can be obtained in the official Monkvision documentation.
``shell`
yarn add @monkvision/sights
If you are using TypeScript, this package comes with its type definitions integrated, so you don't need to install
anything else!
`typescript
import { sights } from '@monkvision/sights';
console.log(sights['haccord-8YjMcu0D']);
`
`typescript
import { sights, labels } from '@monkvision/sights';
const sight = sights['haccord-8YjMcu0D'];
console.log(labels[sight.label].fr);
`
`typescript
import { sights, vehicles } from '@monkvision/sights';
const sight = sights['haccord-8YjMcu0D'];
console.log(vehicles[sight.vehicle]);
``