
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
alibaba-lyj-js-player
Advanced tools
三维重建 SDK 主要提供了平台生成的三维模型的:模型播放能力、与模型进行互动的能力、全景单图播放与互动能力、全景视频播放能力、以及标签标注能力。整个 SDK 分为 :
该 SDK 与框架无关,您可在 React 框架中使用,也可嵌入到 Angular\Vue 等任何框架中使用。本文档将以嵌入 React 的方式演示如何利用该 SDK 加载三维模型以及如何与三维模型进行交互
临云镜渲染引擎
npm i --save alibaba-lyj-js-player
<script type="text/javascript" src="https://g.alicdn.com/sail-fe/alibaba-lyj-js-player-umd/0.0.2/bundle.js"></script>
<script type="text/javascript">
const {
DataSouce,
PanoramaSceneEditor,
PanoramaScenePlayer,
Service,
SingleImageEditor,
SingleImagePlayer,
SingleImageRender,
SingleVideoPlayer,
} = window.SailLib;
</script>
初始化 Service 对象, 该对象封装了前后端通信的能力,提供与后端接口交互 API。
var service = new Service({
mode: 0, // 0 未发布 | 1 已发布
previewToken: '', // 模型的previewToken
});
// 协议适配
service.registerInterceptors({
async request(method, url, data, header) {
const prefix = '//localhost';
return [method, `${prefix}${url}`, data, header];
},
async response(result, context) {
return {
code: result.code,
message: result.message,
data: result.data,
};
},
});
初始化播放器对象
var player = new PanoramaScenePlayer({
parentDom: document.getElementById(''),
service: service,
});
模型加载
player.load().then(() => {});
详细 API 信息请查看docs
FAQs
临云镜-多模型渲染引擎SDK
The npm package alibaba-lyj-js-player receives a total of 0 weekly downloads. As such, alibaba-lyj-js-player popularity was classified as not popular.
We found that alibaba-lyj-js-player demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.