全景图嵌入商品_使用VueJS将全景图嵌入您的网站

这是一个介绍如何使用VueJS创建轻量级全景图查看器的教程,大小约4.56 kB。文章涵盖了从使用npm安装到本地运行的步骤,并提供了在网页中嵌入全景图的方法。此外,还列出了一些待完成的功能,如自动旋转功能。
摘要由CSDN通过智能技术生成

全景图嵌入商品

VueJS全景查看器 (VueJS Panorama Viewer)

Embed panorama into your website (lightweight~4.56 kB) VueJS version of JQuery Panorama Viewer.

将全景图嵌入到您的网站中(轻量级〜4.56 kB)VueJS版本的JQuery Panorama Viewer。

入门 (Getting started)

using npm

使用npm

npm install vuejs-panorama --save

Or using script tag for global use

或使用脚本标签供全球使用

<script src="https://unpkg.com/[email protected]/dist/Panorama.js"></script>

Or Download Panorama.js and include it in your html

或下载Panorama.js并将其包含在您的html中

在本地安装和运行 (Installing & Running Locally)

Clone the repository using git:

使用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

这将在本地主机上启动开发服务器: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

    自动旋转

翻译自: https://vuejsexamples.com/embed-panorama-into-your-website-with-vuejs/

全景图嵌入商品

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值