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

1.9.3 • Public • Published

Static Badge Static Badge Static Badge

Introduction

This is a JavaScript plugin for WdpApi. It provides a set of APIs for developers to integrate BIM/DCP into their own applications.

Features

Documentation

To check out and docs, visit WdpApi Doc

Install

$ npm i wdpapi
$ npm i @wdp-api/bim-api

Import

import WdpApi from 'wdpapi';
import BimApi from '@wdp-api/bim-api';

Init

const config = {
  id: 'player', //[required] Render scene container(DOM node id)
  url: 'http://127.0.0.1:8889/Renderers/Any/order', //[optional] Cloud rendering service address
  order: 'b96285A3', //[optional] Rendering order, obtained on the cloud rendering client
  resolution: [3840, 2160], //[optional] Set the cloud rendering output resolution[width, height]
  debugMode: 'normal', //[optional] none: does not print logs, normal: normal logs
  keyboard: {
    //[optional] keyboard event
    normal: false, //[optional] Keyboard event, exclude F1~F12 [default disabled]
    func: false, //[optional] Browser F1 ~ F12 function keys [default disabled]
  },
};
const App = new WdpApi(config) as WdpApi & BimApi;
App.Plugin.Install(BimApi);

License

Copyright (c) 2023-present, 51WORLD

Package Sidebar

Install

npm i @wdp-api/bim-api

Weekly Downloads

16

Version

1.9.3

License

MIT

Unpacked Size

632 kB

Total Files

6

Last publish

Collaborators

  • manjusaka
  • ferguson95
  • yamazakeylwb
  • zhenglingfei