Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fov-utilities

animafps34GPL-3.0-or-later1.1.7TypeScript support: included

Set of helper functions to calculate different FoVs based off the FILM notation standard of FoV scaling and aspect ratio.

field-of-view, fov, helper, math, gaming, video-games

readme

fov-utilities

license npm npm

About

Set of helper functions to calculate different FoVs based off the FILM notation standard of FoV scaling and aspect ratio. It was developed for the use in FPSMath discord bot.

Installation

Node

Install with npm / yarn / pnpm:

npm install fov-utilities
yarn add fov-utilities
pnpm add fov-utilities

Deno

We also provide typings compatible with the deno runtime. You have 3 ways you can import them:

  1. Directly from GitHub
import { convertFOV } from 'https://raw.githubusercontent.com/animafps/fov-utilities/main/deno/mod.ts';
  1. From deno.land/x
import { convertFOV } from 'https://deno.land/x/fov/mod.ts';
  1. From skypack.dev
import { convertFOV } from 'https://cdn.skypack.dev/fov-utilities?dts';

API Docs

Api docs are hosted at https://fov.js.org

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.1.7 (2022-01-25)

Bug Fixes

  • issue with error emition and deno not being up to date (ff0244b)

1.1.6 (2022-01-25)

Bug Fixes

  • issue with error emition and deno not being up to date (ff0244b)

1.1.5 (2022-01-19)

Bug Fixes

  • fixed bug with converting with a stretch method returning NaN (2a0b830)

1.1.4 (2021-12-23)

Bug Fixes

  • fixed issue with the type not supporting stretch function (62325c8)

1.1.3 (2021-12-22)

Bug Fixes

  • fixed bug with the build not being published (5865e68)

1.1.2 (2021-12-22)

Bug Fixes

  • fixed aspect types and added parseFilm function (a5d532a)

1.1.1 (2021-12-22)

Bug Fixes

  • fixed aspect types and added parseFilm function (a5d532a)

1.1.0 (2021-12-17)

Features

  • improved types and added aspect ratio utilities (352b71e)

1.0.2 (2021-12-15)

Bug Fixes

  • implemented esm module support and skypack (14dfab3)

1.0.1 (2021-12-14)

Bug Fixes

  • fixed postinstall breaking install (704f850)

1.0.0 (2021-12-14)

0.0.1 (2021-12-14)

Features

  • initial release of helper functions (2a6a2f4)