feat: 更新 SDK 构建产物和文档

- 更新 SDK 构建文件 (es/umd)
- 更新 SDK 使用文档
- 删除 gujianzhu.glb 模型文件
- 更新 package.json 配置
- 调整 tab 组件样式和 vite 配置

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
yuding
2026-01-15 16:46:53 +08:00
parent a00d83e775
commit a930bc8a50
10 changed files with 85529 additions and 420 deletions

BIN
.DS_Store vendored

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

42632
dist/bim-engine-sdk.es.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "bim-engine-sdk",
"version": "1.0.0",
"name": "@fishdingding/bim-engine-sdk",
"version": "1.0.2",
"description": "BIM Engine SDK for Vue2, Vue3, React and HTML",
"main": "./dist/bim-engine-sdk.umd.js",
"module": "./dist/bim-engine-sdk.es.js",
@@ -24,16 +24,33 @@
"copy:demo-vue": "mkdir -p demo-vue/public/lib && cp dist/bim-engine-sdk.es.js dist/bim-engine-sdk.umd.js dist/bim-engine-sdk.umd.js.map demo-vue/public/lib/",
"dev:demo": "npm run build && npm run copy:demo-all && cd demo && npm run dev",
"dev:demo-vue": "npm run build && npm run copy:demo-vue && cd demo-vue && npm run dev",
"dev:all": "npm run dev:demo & npm run dev:demo-vue"
"dev:all": "npm run dev:demo & npm run dev:demo-vue",
"prepublishOnly": "npm run build"
},
"keywords": [
"bim",
"sdk",
"vue",
"react"
"vue2",
"vue3",
"react",
"3d",
"webgl",
"three",
"threejs",
"viewer",
"model"
],
"author": "",
"license": "ISC",
"author": "LYZ",
"license": "MIT",
"repository": {
"type": "git",
"url": "http://123.60.156.158:13000/bim_engine/bimEngine.git"
},
"homepage": "http://123.60.156.158:13000/bim_engine/bimEngine",
"bugs": {
"url": "http://123.60.156.158:13000/bim_engine/bimEngine/issues"
},
"devDependencies": {
"@types/node": "^25.0.2",
"typescript": "^5.9.3",

View File

@@ -10,11 +10,12 @@
.bim-tab__nav {
display: flex;
align-items: center;
justify-content: center;
justify-content: space-around;
background: transparent;
}
.bim-tab__item {
flex:1;
display: inline-flex;
align-items: center;
justify-content: center;

View File

@@ -31,9 +31,10 @@ export default defineConfig(() => {
fileName: (format) => `bim-engine-sdk.${format}.js`,
},
rollupOptions: {
// 不再需要排除 Vue
output: {
globals: {},
// 禁用代码分割,将所有代码打包到一个文件
inlineDynamicImports: true,
},
},
sourcemap: true,