51superapi 中文文档教程

发布于 3年前 浏览 30 项目主页 更新于 3年前

 

superapi logo

 

构建版本 组件 发布日期

 

Introduction

SuperAPI是一套由JavaScript开发的云渲染和前端显示应用程序编程接口(API)。 在51云渲染平台的基础上,将客户端3D场景以视频流的形式嵌入到网页中。 用户可以叠加自己的数据组件,并在两个方向上与场景进行交互。 SuperAPI兼容当前主流的JavaScript前端框架,为前端开发者提供快速便捷的开发接口。

基于全要素场景的51SuperAPI平台,让3D场景的开发变得如此简单!

Documentation

要查看和文档,请访问 superapi.51aes.com

Install

npm i 51superapi

Import

import cloudRenderer from '51superapi';

CDN

<script src="https://unpkg.com/51superapi/lib/superAPI.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/51superapi/lib/superAPI.min.js"></script>

Init

var cloudRender = new cloudRenderer('renderViewID', 0);
  • renderViewID -- Rendering Dom id
  • 0 -- single view

Starting

cloudRender.SuperAPI('StartRenderCloud', 'cloudurl');

Stop Rendering

cloudRender.SuperAPI('StopRenderCloud');

License

版权所有 (c) 2019 年至今,51WORLD

 

superapi logo

 

build version components publish date

 

Introduction

SuperAPI is a set of cloud rendering and front-end display application programming interfaces (API) developed by JavaScript. On the basis of the 51 cloud rendering platform, the client 3D scene is embedded in the web page in the form of video stream. Users can overlay their own data components and interact with the scene in both directions. SuperAPI is compatible with current mainstream JavaScript front-end frameworks, providing fast and convenient development interfaces for front-end developers.

The 51SuperAPI platform based on the full factor scene makes the development of 3D scenes so easy!

Documentation

To check out and docs, visit superapi.51aes.com

Install

npm i 51superapi

Import

import cloudRenderer from '51superapi';

CDN

<script src="https://unpkg.com/51superapi/lib/superAPI.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/51superapi/lib/superAPI.min.js"></script>

Init

var cloudRender = new cloudRenderer('renderViewID', 0);
  • renderViewID -- Rendering Dom id
  • 0 -- single view

Starting

cloudRender.SuperAPI('StartRenderCloud', 'cloudurl');

Stop Rendering

cloudRender.SuperAPI('StopRenderCloud');

License

Copyright (c) 2019-present, 51WORLD

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文