@maqiuyao/dxf-viewer 0.2.24 → 0.2.26

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.
@@ -504,6 +504,10 @@ export declare class DxfLoader extends THREE.Loader {
504
504
  private convertEdgeToPoints;
505
505
  private loadHatch;
506
506
  private loadOle2frame;
507
+ /** 校验坐标点是否为有限数值(业务系统导出的 DXF 可能含 nan/inf 坏值文本,parseFloat 后为非有限数,会污染几何包围盒导致渲染异常) */
508
+ static isFinitePoint(point?: IPoint | null): boolean;
509
+ /** 文字类实体(TEXT/MTEXT/ATTDEF/ATTRIB)位置与旋转有效性校验 */
510
+ static hasFiniteTextPlacement(entity: DxfEntity): boolean;
507
511
  static getOcsMatrix(extrusionDirection: THREE.Vector3): THREE.Matrix4;
508
512
  static getDcs2WcsMatrix(viewport: IViewport | IViewportEntity, angDir: number): THREE.Matrix4;
509
513
  private getViewportMsToPsMatrix;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maqiuyao/dxf-viewer",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "description": "基于 three.js 的 DXF 图纸 2D/3D 查看与对比库(Viewer2d / DxfCompareHelper)",
5
5
  "type": "module",
6
6
  "main": "./dist/dxf-viewer.cjs",