@mediamonks/panorama-renderer
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Panorama Renderer

The panorama-renderer is a lightweight package that allows you to render equirectangular panoramas using WebGL.

Getting started

Installing

Add @mediamonks/panorama-renderer to your project:

npm i @mediamonks/panorama-renderer

Basic usage

Simple panorama rendering on canvas. Make sure the image is loaded before creating the renderer.

import { PanoramaRenderer } from '@mediamonks/panorama-renderer';

const renderer = PanoramaRenderer(wrapperElement, image, { loop: true });

Building

To build panorama-renderer, ensure that you have Git and Node.js installed.

Clone a copy of the repo:

git clone https://github.com/mediamonks/panorama-renderer.git

Change to the image-effect-renderer directory:

cd panorama-renderer

Install dev dependencies:

npm i

Build package:

npm run build

Package Sidebar

Install

npm i @mediamonks/panorama-renderer

Weekly Downloads

17

Version

2.0.1

License

MIT

Unpacked Size

41.2 kB

Total Files

15

Last publish

Collaborators

  • reindernijhoff
  • n0cha
  • petervdn