Git Product home page Git Product logo

vue-panorama's Introduction

License npm version HitCount size

VueJS Panorama Viewer

Embed panorama into your website VueJS version of JQuery Panorama Viewer

Demo

Demo

Demo

Getting started

using npm

npm install vuejs-panorama --save

Or using script tag for global use

<script src="https://unpkg.com/vuejs-panorama@latest/dist/Panorama.js"></script>

Or Download Panorama.js and include it in your html

Installing & Running Locally

Clone the repository using git:

git clone https://github.com/mudin/vue-panorama.git 

Installing all dependencies:

npm install 

Build

npm run build 

Run locally:

npm run example 

This will start development server on localhost:4000

Usage

Panorama by equirectangular image

<template>
    <Panorama source="pano.jpg" caption="Awesome Panorama"/>
</template>
<script>
    import { Panorama } from 'vuejs-panorama'

    export default {
        components: { Panorama }
    }
</script>

Or

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
    <div id="app">
        <Panorama source="pano.jpg" caption="Awesome Panorama"/>
    </div>
    <script src="vue.js"></script>
    <script src="vuejs-panorama.js"></script>
    <script>
        new Vue({
            el: '#app'
        })
    </script>
</body>

TODO List

  • Auto Rotate

Contributing contributions welcome

If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request.

LICENSE

MIT

vue-panorama's People

Contributors

mudin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-panorama's Issues

unknown custom element: <Panorama>

Currently on Vue 2.6.10, and for some reason keep getting this error:

vue.esm.js?a026:628 [Vue warn]: Unknown custom element: <Panorama> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Media> at src/components/micro/Media.vue
       <Inspector> at src/components/Inspector.vue
         <Blog> at src/components/Blog.vue
           <App> at src/App.vue
             <Root>

Here's the component where I've included panorama:

<template>
  <div id="">
    <Panorama
      source="https://s3.amazonaws.com/road-trip-blog/4317faa5-87ee-3fb5-a6b7-1bf390c5d1e3-w2100.jpeg"
      caption="Awesome Panorama"
    />

  </div>
</template>
<script>
import { Panorama } from 'vuejs-panorama'

export default {
  components: { Panorama },
  name: 'Media',
  props: ['media', 'imageWidth']
}
</script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.