Gathering detailed insights and metrics for vue-krpano
Gathering detailed insights and metrics for vue-krpano
Gathering detailed insights and metrics for vue-krpano
Gathering detailed insights and metrics for vue-krpano
npm install vue-krpano
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
160 Stars
33 Commits
44 Forks
5 Watchers
1 Branches
1 Contributors
Updated on Dec 02, 2024
Latest Version
1.5.3
Package Id
vue-krpano@1.5.3
Size
6.96 kB
NPM Version
4.2.0
Node Version
7.10.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A Vue component for krpano player.
https://www.somewhats.cn/pois/10045
https://itunes.apple.com/cn/app/%E5%A3%B9%E4%BA%8C/id1190188895?l=en&mt=8
npm install vue-krpano --save
<script>
Install the component
1 2import Vue from "vue"; 3import Krpano from "vue-krpano"; 4 5 6Vue.use(Krpano); 7
Use the component
1<krpano :xml="'krpano.xml'" :lazy-load="true" style="width:100%;height:400px" @panoCreated="init"></krpano>
Name | Description | Example |
---|---|---|
xml | Krpano configuration XML path | krpano.xml |
scene | Scene name | foo |
lazyLoad | A Boolean setting to lazy load pano objects | true |
freezeVertical | A Boolean setting to freeze scrolling vertically | false |
hooks | An object that will be attached to the krpano instance | {foo:bar} |
debug | Debug mode | false |
Name | Description | Example |
---|---|---|
bgcolor | The background color of the viewer (in html color format). | #000000 |
wmode | The wmode setting is typically a Flashplayer setting, but wmode=opaque and wmode=transparent will be evaluated also by the krpano HTML5 viewer and make the viewer background transparent there too. Overlapping html elements itself are always possible when using the HTML5 viewer. | opaque |
vars | Pass a Javascript Object with krpano variable:value pairs. The variables will be set AFTER the xml file has been be loaded and parsed. So these variables can be used to add new settings or to overwrite settings that were already defined in the xml. | |
initvars | Pass a Javascript Object with krpano variable:value pairs. This is basically the same as the vars setting, but these variables will be set BEFORE the xml file wil be loaded and parsed. | |
basepath | Can be used in Flash and HTML5 for adjusting relative paths in the xml. | |
mwheel | A Boolean setting to control the mouse-wheel usage | false |
focus | A Boolean setting to give the viewer the input / keyboard focus on startup. | true |
consolelog | A Boolean setting that defines if krpano log/trace-messages should be sent also to the browser Javascript console. | false |
webglsettings | Pass an object with special settings for the WebGL context creation. The WebGL context will be created at startup and can't be changed at runtime, therefore these settings need to be specified already during embedding. | |
mobilescale | By default all krpano content on mobile devices will be scaled by 0.5. To disable that scaling, set the mobilescale setting to 1.0. This can be useful for implementing responsive webdesigns. | 0.5 |
fakedevice | Fake the krpano device detection settings. Available settings: mobile , tablet , desktop . | mobile |
This event will be fired along with a krpano object as soon as the krpano instance is successfully initialized.
This event will be fired every time the scene is changed. The scene name will also be involved.
The hooks
object will be attached to the krpano
instance.
Example:
The Vue component wants to capture the event when user click the route spot in pano scenes.
1<script> 2 export default { 3 data(){ 4 const vm = this; 5 return { 6 xml: "xml path", 7 scene: "scene name", 8 hooks:{ 9 sceneChanged(scene){ 10 //event handler 11 } 12 } 13 } 14 } 15 } 16</script> 17<template> 18 <krpano :xml="xml" :scene="scene" :hooks="hooks"></krpano> 19</template>
In krpano scripts, you can access the callback object via krpano instance.
1<events name="player_listener" keep="true" onnewscene="on_scene_loaded()"/> 2<action name="on_scene_loaded"> 3 jscall(calc('krpano.hooks.sceneChanged("' + scene[get(xml.scene)].name + '")')); 4</action>
For any question, please feel free to write email to chshapple@gmail.com
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More