@xtctwins/tctwins-bimx-viewer 1.1.0 → 1.1.1

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.
@@ -78043,6 +78043,12 @@ class BIMXViewer extends _Controller__WEBPACK_IMPORTED_MODULE_3__["default"] {
78043
78043
  callback(this._bcfTool.getActive());
78044
78044
  }
78045
78045
  /// ///////////////功能对象/////////////////////
78046
+ /**
78047
+ * 标识
78048
+ */
78049
+ get marker() {
78050
+ return this._markerTool;
78051
+ }
78046
78052
  /**
78047
78053
  * 漫游
78048
78054
  */
@@ -83477,6 +83483,7 @@ class MarkerTool extends _Controller__WEBPACK_IMPORTED_MODULE_1__["default"] {
83477
83483
  text
83478
83484
  };
83479
83485
  this._markers.set(markerId, marker);
83486
+ this.eventTrigger.emit("markerCreated", marker);
83480
83487
  return marker;
83481
83488
  }
83482
83489
  /**
@@ -83500,6 +83507,18 @@ class MarkerTool extends _Controller__WEBPACK_IMPORTED_MODULE_1__["default"] {
83500
83507
  getMarkerById(id) {
83501
83508
  return this._markers.get(id);
83502
83509
  }
83510
+ /**
83511
+ * 聚焦指定 ID 的标识(相机转向该点,并将旋转轴心移到该点)
83512
+ * @param id 标识 ID
83513
+ */
83514
+ focusMarker(id) {
83515
+ const marker = this._markers.get(id);
83516
+ if (!marker) {
83517
+ this.warn("focusMarker() - Marker not found: " + id);
83518
+ return;
83519
+ }
83520
+ this._focusOn(marker.worldPos);
83521
+ }
83503
83522
  /**
83504
83523
  * 获取所有标识(可序列化)
83505
83524
  */
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export const VERSION = "0.1.31";
2
+ export const VERSION = "1.1.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export const VERSION = "0.1.31";
2
+ export const VERSION = "1.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtctwins/tctwins-bimx-viewer",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "private": false,
5
5
  "description": "BIM viewer built on xtctwins",
6
6
  "main": "./dist/tctwins-bimx-viewer.min.es.js",
@@ -683,6 +683,10 @@ export default class BIMXViewer extends Controller {
683
683
  */
684
684
  SetSkyBoxToolActive(active?: boolean, callback?: (content?: any) => void): void;
685
685
  SetBCFToolActive(active?: boolean, callback?: (content?: any) => void): void;
686
+ /**
687
+ * 标识
688
+ */
689
+ get marker(): MarkerTool;
686
690
  /**
687
691
  * 漫游
688
692
  */
@@ -92,6 +92,11 @@ export default class MarkerTool extends Controller {
92
92
  * @param id
93
93
  */
94
94
  getMarkerById(id: string): MarkerData | undefined;
95
+ /**
96
+ * 聚焦指定 ID 的标识(相机转向该点,并将旋转轴心移到该点)
97
+ * @param id 标识 ID
98
+ */
99
+ focusMarker(id: string): void;
95
100
  /**
96
101
  * 获取所有标识(可序列化)
97
102
  */