npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-bimface

v1.0.49

Published

基本BIMFACE的功能封装工具库,主要为了解决BIMFACE执行流程的代码赘余,集成常见的基础功能,包含构件绘色、构件定位、模型缩放等等,最大化提高BIMFACE的开发效率 # 基于BIMFACE的底层API封装

Readme

项目说明

基本BIMFACE的功能封装工具库,主要为了解决BIMFACE执行流程的代码赘余,集成常见的基础功能,包含构件绘色、构件定位、模型缩放等等,最大化提高BIMFACE的开发效率

基于BIMFACE的底层API封装

Author: 曾维立 Date: 2022-03-19

起步

Rollup: https://www.rollupjs.com/ Rollup Vue.js工具库生成架构: https://github.com/team-innovation/vue-sfc-rollup Echarts: https://github.com/apache/echarts

一、基本开发环境搭建

1.1. 安装 nodejs 最新稳定版本

https://nodejs.org

1.2. 设置 npm 镜像为淘宝仓库以加速。执行命令:

npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist

1.3. 安装 环境主要依赖插件

进入项目的根目录,执行命令:

cnpm install 或 npm i

二、本地开发

代码封装参照Echarts源码设计,主体类采用单例模式,方法设计符合接口隔离、单一原则等规范,主类只提供躯干, 以API封装方法为枝叶组合而成,其中包含种子函数、种子功能等等,具体详情请查看代码.

安装完依赖后,npm run serve 启动项目

三、构建打包

在根目录执行打包命令:

npm run build

打包配置在rollup.config.js里面,如需要其它打包规则,可自行修改

打包文件输出在dist文件夹,如需手动引用只需要把dist目录的静态文件发给前端同事即可

四、主要目录结构及解析

目录结构


├── dev                                    Vue环境测试目录
├── dist                                   打包输出目录
├── jssdk                                  BIMFACE离线包
├── src                                    项目主目录
│   ├── artifacts                          构件基础功能
│   │   ├── artifacts.ts
│   │   └── index.ts
│   ├── core                               主体代码
│   │   ├── bim.ts                         工具主类
│   │   ├── index.ts                       导出入口
│   │   ├── local.ts                       能力检测
│   │   ├── type_checking.ts               辅助函数
│   │   └── type.ts                        辅助类型定义
│   ├── model                              模型操作功能
│   │   ├── model.ts
│   │   └── index.ts
│   ├── typings                            BIMFACE API声明
│   │   └── Glodon                         全局主对象
│   │       ├── Bimface                    主API方法
│   │       ├── Web                        Web3D
│   │       ├── Bim.d.ts                   BIMFACE主类声明
│   │       └── BimfaceSDKLoader.d.ts      BIMFACE加载参数声明
├── index.ts                               主入口
├── rollup.config.js                       rollup环境配置