@maqiuyao/dxf-viewer 0.2.25 → 0.2.27
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/README.md +2 -0
- package/dist/dxf-viewer.cjs +12 -12
- package/dist/dxf-viewer.js +1409 -1388
- package/dist/src/dxfViewer/core/dxf/DxfLoader.d.ts +4 -0
- package/package.json +1 -1
|
@@ -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;
|