bim-operator
TypeScript icon, indicating that this package has built-in type declarations

1.8.0 • Public • Published

Bim-Operator

bim 轻量化模型操作接口

Install && Useage

npm i bim-operator --save

Usage

import getProvider, { ProviderType } from 'bim-operator';

const provider = getProvider(ProviderType.BIMFACE);
// 获取3D模型操作对象
const bim3DModel = provider.bim3DModel;
// 获取3D模型操作对象
const bimDrawing = provider.bimDrawing;

// 加载模型
bim3DModel
    .load({
        viewToken: '<your view token>',
        domId: '<html dom id>',
        viewConfig: {
            // 支持hover
            enableHover: true,
            // 右键
            enableToggleContextMenuDisplay: true
        }
    })
    .then(() => {
        //help your self
    });

// 加载图纸
bimDrawing
    .load({
        viewToken: '<your view token>',
        domId: '<html dom id>'
    })
    .then(() => {
        //help your self
    });

支持的供应商

Readme

Keywords

Package Sidebar

Install

npm i bim-operator

Weekly Downloads

0

Version

1.8.0

License

MIT

Unpacked Size

107 kB

Total Files

60

Last publish

Collaborators

  • youkaisteve