51superapi

51world SuperAPI is a set of cloud rendering and front-end display application programming interfaces (API) developed by JavaScript.

Usage no npm install needed!

<script type="module">
  import 1superapi from 'https://cdn.skypack.dev/51superapi';
</script>

README

 

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.51hitech.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