1.9.2 • Published 8 months ago

@wdp-api/bim-api v1.9.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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

1.9.2

8 months ago

1.9.1

9 months ago

1.9.0

12 months ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.4

1 year ago

1.5.2

1 year ago

1.6.0

2 years ago

1.5.0

2 years ago