@dt-api/eim-api
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

 

@dt-api/eim-api

 

build version publish date Author:manjusaka

 

Introduction

@wdp-api/eim-api is a JavaScript plugin designed for DtApi, offering a comprehensive set of APIs that empower developers to seamlessly integrate @wdp-api/eim-api into their applications.

Install

$ npm i dtapi
$ npm i @dt-api/eim-api

Important

import DtApi from 'dtapi';
import EimApi from '@dt-api/eim-api';

Instantiation

const config = {
  id: 'player', //Render scene container(DOM node id)
  url: 'https://service.com/Renderers/Any/order', //Rendering service address
  order: 'c6526f3f154663431cd29577e3532aa4', //Rendering order, obtained on the rendering client
  resolution: [3840, 2160], //Set the rendering output resolution[width, height]
  debugMode: 'normal', //none, normal, high
  keyboard: { //[optional] keyboard event
    normal: false, //Keyboard event, exclude F1~F12 [default disabled]
    func: false, //Browser F1 ~ F12 function keys [default disabled]
  },
};

const App = new DtApi(config);
const { result } = await App.Plugin.Install(EimApi);
console.log(result.id)

await App.Plugin.Uninstall(result.id);

License

Copyright (c) 2023-present

Readme

Keywords

Package Sidebar

Install

npm i @dt-api/eim-api

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

73.1 kB

Total Files

8

Last publish

Collaborators

  • dtgalaxysupport