<h1 align="center">
<a href="http://wdpapi.51aes.com" target="_blank"><img src="https://wdpapi.51aes.com/doc-static/images/BIMApi-logo-black.svg" width="300" /></a>

![Static Badge](https://img.shields.io/badge/latest-v1.9.4-rc-brightgreen) ![Static Badge](https://img.shields.io/badge/build-Jun_20_2025@PROD-orange) ![Static Badge](https://img.shields.io/badge/Author-Ferguson-blue)

</h1>

## 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](http://wdpapi.51aes.com)

#### Install

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

#### Import

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

#### Init

```javascript
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
