Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Jinjiang/pic360

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pic360

Show panorama pictures in 360 degrees.

Demo

https://jinjiang.github.io/pic360

API

// Constructor.
// Init a picture.
const pic = new Pic360(pictureSrc:string, targetElement:Element, needCtrl:bool)

// If you set needCtrl value false, you can also manually init control events
// which include keyboard, mouse and touch etc.
pic.initControl()

// End all control events.
pic.endControl()

Code Sample

<div id="target" style="
  width: 960px;
  height: 480px;
"></div>

<script>
  const pic = new Pic360(
    './sample.jpg',
    document.querySelector('#target'),
    true)
</script>

About

Show panorama pictures in 360 degrees.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages