iflow-engine-base 3.4.1 → 3.4.2

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.
package/dist/index.d.ts CHANGED
@@ -2134,7 +2134,7 @@ declare class IssueReport {
2134
2134
  private readonly engine;
2135
2135
  constructor(engine: any);
2136
2136
  /**
2137
- * 根据构件信息提取中心点,并组装问题上报所需的数据。
2137
+ * 鏍规嵁鏋勪欢淇℃伅鎻愬彇涓績鐐癸紝骞剁粍瑁呴棶棰樹笂鎶ユ墍闇€鐨勬暟鎹€?
2138
2138
  */
2139
2139
  getMoldePosition(model: any): {
2140
2140
  Floor: string;
@@ -2142,63 +2142,79 @@ declare class IssueReport {
2142
2142
  ElementId: any;
2143
2143
  ElementName: string;
2144
2144
  modelJson: {
2145
- Url: any;
2145
+ url: any;
2146
2146
  ids: any[];
2147
+ point: IssuePoint;
2147
2148
  camera: IssueCameraPose;
2148
2149
  cameraRestorePose: ICameraPose;
2149
2150
  };
2150
2151
  } | null;
2151
2152
  /**
2152
- * 统一归一化问题点坐标,便于上层直接持久化。
2153
+ * 鐩告満鍥炲鍒版寚瀹氫綅缃?
2154
+ * @param item
2155
+ */
2156
+ jumptoCamera(item: any): void;
2157
+ /**
2158
+ * 缁熶竴褰掍竴鍖栭棶棰樼偣鍧愭爣锛屼究浜庝笂灞傜洿鎺ユ寔涔呭寲銆?
2153
2159
  */
2154
2160
  getPoint(point: THREE.Vector3 | IssuePoint): IssuePoint;
2155
2161
  /**
2156
- * 语义化别名: 获取模型中的问题点位置。
2162
+ * 璇箟鍖栧埆鍚? 鑾峰彇妯″瀷涓殑闂鐐逛綅缃€?
2157
2163
  */
2158
2164
  getModelPosition(point: THREE.Vector3 | IssuePoint): IssuePoint;
2159
2165
  /**
2160
- * 汇总问题点所在的轴网和标高上下文。
2161
- * 支持传入 url 以限定到指定模型,避免多模型场景下查询不准确。
2166
+ * 姹囨€婚棶棰樼偣鎵€鍦ㄧ殑杞寸綉鍜屾爣楂樹笂涓嬫枃銆?
2167
+ * 鏀寔浼犲叆 url 浠ラ檺瀹氬埌鎸囧畾妯″瀷锛岄伩鍏嶅妯″瀷鍦烘櫙涓嬫煡璇笉鍑嗙‘銆?
2162
2168
  */
2163
2169
  getPointContext(urlOrPoint: string | THREE.Vector3 | IssuePoint, point?: THREE.Vector3 | IssuePoint): IssueContext;
2164
2170
  /**
2165
- * 获取问题上报需要的简化相机参数。
2166
- * 只返回相机位置、朝向和顶部方向。
2171
+ * 鑾峰彇闂涓婃姤闇€瑕佺殑绠€鍖栫浉鏈哄弬鏁般€?
2172
+ * 鍙繑鍥炵浉鏈轰綅缃€佹湞鍚戝拰椤堕儴鏂瑰悜銆?
2167
2173
  */
2168
2174
  getCameraPose(): IssueCameraPose;
2169
2175
  /**
2170
- * 语义化别名: 获取当前相机参数。
2176
+ * 璇箟鍖栧埆鍚? 鑾峰彇褰撳墠鐩告満鍙傛暟銆?
2171
2177
  */
2172
2178
  getCameraParams(): IssueCameraPose;
2173
2179
  /**
2174
- * 获取完整相机姿态,专门用于视角恢复。
2180
+ * 鑾峰彇瀹屾暣鐩告満濮挎€侊紝涓撻棬鐢ㄤ簬瑙嗚鎭㈠銆?
2175
2181
  */
2176
2182
  getCameraRestorePose(): ICameraPose;
2177
2183
  /**
2178
- * 恢复相机到指定完整姿态。
2184
+ * 鎭㈠鐩告満鍒版寚瀹氬畬鏁村Э鎬併€?
2179
2185
  */
2180
2186
  restoreCameraPose(pose: ICameraPose): void;
2181
2187
  /**
2182
- * 一次性抓取问题点上下文、简化相机参数和恢复用姿态。
2188
+ * 涓€娆℃€ф姄鍙栭棶棰樼偣涓婁笅鏂囥€佺畝鍖栫浉鏈哄弬鏁板拰鎭㈠鐢ㄥЭ鎬併€?
2183
2189
  */
2184
2190
  capture(point: THREE.Vector3 | IssuePoint): IssueSnapshot;
2185
2191
  /**
2186
- * 直接传入模型 url 和问题点,返回可用于问题上报的完整快照。
2192
+ * 鐩存帴浼犲叆妯″瀷 url 鍜岄棶棰樼偣锛岃繑鍥炲彲鐢ㄤ簬闂涓婃姤鐨勫畬鏁村揩鐓с€?
2187
2193
  */
2188
2194
  captureByUrlAndPoint(url: string, point: THREE.Vector3 | IssuePoint): IssueSnapshotWithUrl;
2189
2195
  /**
2190
- * 按指定模型 url 抓取问题点上下文、简化相机参数和恢复用姿态。
2196
+ * 鎸夋寚瀹氭ā鍨?url 鎶撳彇闂鐐逛笂涓嬫枃銆佺畝鍖栫浉鏈哄弬鏁板拰鎭㈠鐢ㄥЭ鎬併€?
2191
2197
  */
2192
2198
  captureWithUrl(url: string, point: THREE.Vector3 | IssuePoint): IssueSnapshot;
2193
2199
  /**
2194
- * 支持直接传完整快照或单独完整姿态进行恢复。
2200
+ * 鏀寔鐩存帴浼犲畬鏁村揩鐓ф垨鍗曠嫭瀹屾暣濮挎€佽繘琛屾仮澶嶃€?
2195
2201
  */
2196
2202
  restore(snapshotOrPose: IssueSnapshot | ICameraPose): void;
2197
2203
  dispose(): void;
2198
2204
  /**
2199
- * 兼容 getPointContext(point) getPointContext(url, point) 两种调用方式。
2205
+ * 鍏煎 getPointContext(point) 鍜?getPointContext(url, point) 涓ょ璋冪敤鏂瑰紡銆?
2200
2206
  */
2201
2207
  private resolvePointLookupArgs;
2208
+ private resolveModelJson;
2209
+ private highlightIssueModel;
2210
+ private restoreIssueCameraPose;
2211
+ private zoomToIssueModel;
2212
+ private syncOrbitOrigin;
2213
+ private toVector3;
2214
+ private resolveFocusPoint;
2215
+ private resolveModelBox;
2216
+ private normalizeRestorePose;
2217
+ private buildSafeUpDirection;
2202
2218
  }
2203
2219
 
2204
2220
  declare interface IssueSnapshot extends IssueContext {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iflow-engine-base",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "BIM Engine SDK for Vue2, Vue3, React and HTML",
5
5
  "main": "./dist/bim-engine-sdk.umd.js",
6
6
  "module": "./dist/bim-engine-sdk.es.js",