Giter VIP home page Giter VIP logo

Comments (6)

chshapple avatar chshapple commented on August 14, 2024

The Krpano player is a Panorama viewer which is widely used in the industry.
You can find more details at https://krpano.com/
It is a commercial software that you have to pay for the license. Once you get the copy, you reference the JS library globally by using the <script> tag.
vue-krpano requires the krpano dependencies attached to the window object.

from vue-krpano.

zhuyuanwen avatar zhuyuanwen commented on August 14, 2024

I have bought the krpano license. And the <script> tag way is not very convenient for webpack.
Is it possible if I add the krpano.js file in your vue-krpano?

from vue-krpano.

chshapple avatar chshapple commented on August 14, 2024

I was trying to put the krpano engine into the webpack bundle, however, it arose some unexpected exceptions. krpano seems has some trouble in conjunction with the module system. I will try to figure out a proper solution.

from vue-krpano.

zhuyuanwen avatar zhuyuanwen commented on August 14, 2024

Thinks!

And I found a new question below:

activekrpanowindow: "krpano_64555"
activeElement :div#krpano_64555

The element id is not the default value "krpanoSWFObject" and the number behind "krpano_" will change every time. So that I can't set a variable (like this way: var krpano = document.getElementById("krpanoSWFObject"); ) and call its function.

from vue-krpano.

chshapple avatar chshapple commented on August 14, 2024

There could be multiple instances of Krpano viewer on a single web page so that I put some arbitrary suffix.
vue-krpano is designed to take over the responsibility of creating the instance so that you no longer need to care about the DOM identity.
The krpanoObj can be captured in panoCreated event. I've updated the example part in readme doc, check it out and i hope it's helpful.

from vue-krpano.

zhuyuanwen avatar zhuyuanwen commented on August 14, 2024

I’ve tried panoCreated event and got the krpanoObj. But when I want to use Javascript functions like krpano.set("view.fov", fov); krpano.get("view.fov"); , I got the error "Cannot read property 'get' of null"

from vue-krpano.

Related Issues (10)

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.