@xtctwins/tctwins-bimx-engine 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/{AnnotationTool-o5g0AREJ.mjs → AnnotationTool-De1jiTCz.mjs} +2 -2
  2. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  3. package/dist/BIMX_Viewer_Lib.umd.js +175 -125
  4. package/dist/{CameraViewTool-DYukyv5Q.mjs → CameraViewTool-BMlOMrqB.mjs} +1 -1
  5. package/dist/{CommentTool-0voGtLXB.mjs → CommentTool-Bk1VOqfh.mjs} +1 -1
  6. package/dist/{HiddenTool-CB8a3I71.mjs → HiddenTool-qc2Haq7s.mjs} +1 -1
  7. package/dist/{InspectorTool-D_zuKOsj.mjs → InspectorTool-DBACJEov.mjs} +3 -3
  8. package/dist/{MeasureTool-F0pD5KDj.mjs → MeasureTool-nm_WvEIk.mjs} +2 -2
  9. package/dist/{MouseTool-DwVd0jsi.mjs → MouseTool-By-GTmEQ.mjs} +1 -1
  10. package/dist/{NavigateTool-D9yL9I0-.mjs → NavigateTool-CnPNDkhr.mjs} +1 -1
  11. package/dist/{RoamTool-C0cFwyiz.mjs → RoamTool-8gO-GTJH.mjs} +1 -1
  12. package/dist/{ScreenShotTool-BlQ4pLfp.mjs → ScreenShotTool-CjoT6Nzl.mjs} +2 -2
  13. package/dist/{SectionTool-BSqICcbP.mjs → SectionTool-BIxZykdw.mjs} +4 -4
  14. package/dist/{SettingTool-Jvi1wkwu.mjs → SettingTool-GPs6TF0J.mjs} +3 -3
  15. package/dist/{StructureTree-DQ_lU3sB.mjs → StructureTree-B2-F3HmW.mjs} +3 -3
  16. package/dist/{alert-Bc55oe1i.mjs → alert-kNj-KGee.mjs} +1 -1
  17. package/dist/{el-input-number-CpL0IdzD.mjs → el-input-number-DskNrGeD.mjs} +1 -1
  18. package/dist/{index-BSouWIqa.mjs → index-DK7roCJZ.mjs} +16260 -15624
  19. package/dist/{panel.vue_vue_type_style_index_0_lang-Bt42YE-8.mjs → panel.vue_vue_type_style_index_0_lang-CQG6ZX_R.mjs} +1 -1
  20. package/dist/style.css +3 -1
  21. package/dist/{tallPanel-DURfdD5Z.mjs → tallPanel-_5WiJEu-.mjs} +1 -1
  22. package/package.json +2 -2
  23. package/types/viewerManager/load/loadModel.d.ts +10 -0
  24. package/types/viewerManager/viewerManager.d.ts +12 -0
@@ -1,4 +1,4 @@
1
- import { o as g, p as t, T as r, A as y, B as x, x as S, y as b } from "./index-BSouWIqa.mjs";
1
+ import { o as g, p as t, T as r, A as y, B as x, x as S, y as b } from "./index-DK7roCJZ.mjs";
2
2
  import { defineComponent as k, ref as c, onMounted as P, watch as W, openBlock as _, createElementBlock as f, normalizeStyle as w, createElementVNode as o, toDisplayString as C, createVNode as T, unref as h, renderSlot as N, createCommentVNode as B } from "vue";
3
3
  const E = { class: "tall_panel_content" }, $ = { class: "panel_top" }, H = { class: "panel_title" }, L = { class: "panel_close" }, A = { class: "panel_content" }, M = {
4
4
  key: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtctwins/tctwins-bimx-engine",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "main": "dist/BIMX_Viewer_Lib.umd.js",
5
5
  "style": "dist/style.css",
6
6
  "module": "dist/BIMX_Viewer_Lib.es.js",
@@ -38,7 +38,7 @@
38
38
  "@vue/eslint-config-prettier": "^9.0.0",
39
39
  "@vue/eslint-config-typescript": "^13.0.0",
40
40
  "@vue/tsconfig": "^0.5.1",
41
- "@xtctwins/tctwins-bimx-viewer": "^1.1.0",
41
+ "@xtctwins/tctwins-bimx-viewer": "^1.1.2",
42
42
  "ali-oss": "^6.20.0",
43
43
  "axios": "^1.7.3",
44
44
  "element-plus": "^2.8.0",
@@ -1 +1,11 @@
1
+ /**
2
+ * BIMX 模型加载
3
+ * @param modelId 模型 ID
4
+ * @param modelType 模型类型(xtc / glb / ifc)
5
+ * @param modelArrayBuffer 模型二进制数据
6
+ * @param callback 加载结果回调
7
+ * @param options 附加加载参数,透传给接口层 BIMXViewer.loadModel 的 cfg:
8
+ * - brightness: 该模型的颜色亮度系数(1.0 原始,>1 提亮,<1 变暗),如 { brightness: 1.5 }
9
+ * - position / rotation / scale / origin / alignTo: 多模型坐标对齐参数
10
+ */
1
11
  export default function viewerLoadModel(modelId: string, modelType: string, modelArrayBuffer: ArrayBuffer, callback?: Function, options?: Record<string, any>): void;
@@ -10,6 +10,18 @@ export default class ViewerManager {
10
10
  edgesObjectIds: string[];
11
11
  };
12
12
  static ConfigViewer(eventTarget?: string): void;
13
+ /**
14
+ * 设置指定模型的颜色亮度(如贴图模型发暗补偿)
15
+ * @param modelId 模型 ID
16
+ * @param brightness 亮度系数,1.0 为原始亮度,>1 提亮,<1 变暗
17
+ */
18
+ static SetModelBrightness(modelId: string, brightness: number): void;
19
+ /**
20
+ * 获取指定模型的颜色亮度
21
+ * @param modelId 模型 ID
22
+ * @returns 亮度系数,未找到模型时返回 undefined
23
+ */
24
+ static GetModelBrightness(modelId: string): number | undefined;
13
25
  static SaveViewerState(content: any): void;
14
26
  static SetToolActiveById(id: number, active?: boolean): void;
15
27
  static SetToolActiveByKey(key: string, active?: boolean): void;