JSPM

spherical-image

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q59278F
  • License MIT

Package Exports

  • spherical-image

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spherical-image) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

spherical-image

Very light weight 360deg spherical image viewer

Latest NPM release MIT License

demos

Usage

$ npm install --save spherical-image

then

<canvas id="myCanvas" width="800" height="600"></canvas>
import { Renderer } from 'spherical-image';

new Renderer(
  document.getElementById( 'myCanvas' ),
  './img.jpg'
);

or

<script src="./js/spherical-image.js"></script>
const renderer0 = new SphericalImage.Renderer(
  document.getElementById( 'canvas0' ),
  './img.jpg'
);