smartyz-web-sdk
v1.2.4
Published
云舟视频融合、无人机、视点SDK
Readme
smartyz Web SDK 🚀
📦 安装
# 选择你喜欢的包管理器
npm install smartyz-web-sdk
# 或
yarn add smartyz-web-sdk
# 或
pnpm add smartyz-web-sdk
按需引入(推荐用于生产环境)
// 组件文件中
import { UavComponent,ViewPointComponent } from "smartyz-web-sdk";🛠 开发指南
// 无人机组件
<UavComponent
vacApiIpPort="192.168.2.123:8007"
deviceId="11010800002000000230"
:useExternalData="false"
:virtualCameraList="cameraList"
rtspDevice="deviceId"
:elevation="0"
:active="panelActive"
@update:active="panelActive = $event"
@uav-selected="handleUavSelect"
droneWsUrl="127.0.0.1:8088/droneWs"
droneListAPiUrl="http://127.0.0.1:3000/drone.json"
:uavShow="showHideStatus"
@update:uavShow="showHideStatus = $event"
@close="handleUavClose"/>
// 视频融合
<ViewPointComponent
:cesium-viewer="myViewer"
:view-point-show="viewShowStatus"
viewPointListAPiUrl="http://127.0.0.1:5000"
:countryCodes="selectedCountries"
:streetCodes="selectedStreets"
@update:view-point-show="handleViewPointShowChange"
@close="handleViewPointClose"
@handle-operate="handleViewPointOperate"
@data-loaded="handleViewPointDataLoaded" />本地开发
git clone xxxxx/smartyz-web-sdk.git
cd smartyz-web-sdk
npm install
npm dev生产构建
npm build组件测试
npm test