Comments (6)
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.
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.
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.
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.
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.
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)
- communication doesn't work HOT 4
- touch event error in ie11
- ERROR: loadscene() - scene "null" not found HOT 2
- Vue-krpano and nuxtjs HOT 2
- Is it possible to add hotspots after the vuejs component is loaded HOT 2
- Error in mounted hook: "Error: krpano player is required" HOT 3
- 可否提供一个 demo ?
- 有一个地方没看明白,还望大佬指点 HOT 1
- Is there any chance this work with VUE3 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-krpano.