@mlightcad/libredwg-web 0.4.6 → 0.5.0
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/libredwg-web.js
CHANGED
|
@@ -6993,7 +6993,9 @@ class LibreDwgConverter {
|
|
|
6993
6993
|
{
|
|
6994
6994
|
const btr = this.convertBlockRecord(tio, obj);
|
|
6995
6995
|
db.tables.BLOCK_RECORD.entries.push(btr);
|
|
6996
|
-
btr.
|
|
6996
|
+
if (isModelSpace(btr.name) || isPaperSpace(btr.name)) {
|
|
6997
|
+
btr.entities.forEach((entity) => db.entities.push(entity));
|
|
6998
|
+
}
|
|
6997
6999
|
}
|
|
6998
7000
|
break;
|
|
6999
7001
|
case Dwg_Object_Type.DWG_TYPE_DIMSTYLE:
|
|
@@ -6998,7 +6998,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6998
6998
|
{
|
|
6999
6999
|
const btr = this.convertBlockRecord(tio, obj);
|
|
7000
7000
|
db.tables.BLOCK_RECORD.entries.push(btr);
|
|
7001
|
-
btr.
|
|
7001
|
+
if (isModelSpace(btr.name) || isPaperSpace(btr.name)) {
|
|
7002
|
+
btr.entities.forEach((entity) => db.entities.push(entity));
|
|
7003
|
+
}
|
|
7002
7004
|
}
|
|
7003
7005
|
break;
|
|
7004
7006
|
case Dwg_Object_Type.DWG_TYPE_DIMSTYLE:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HEADER_VARIABLES } from '../database';
|
|
1
|
+
import { HEADER_VARIABLES, isModelSpace, isPaperSpace } from '../database';
|
|
2
2
|
import { Dwg_Object_Type } from '../types';
|
|
3
3
|
import { LibreEntityConverter } from './entityConverter';
|
|
4
4
|
/**
|
|
@@ -81,7 +81,10 @@ export class LibreDwgConverter {
|
|
|
81
81
|
{
|
|
82
82
|
const btr = this.convertBlockRecord(tio, obj);
|
|
83
83
|
db.tables.BLOCK_RECORD.entries.push(btr);
|
|
84
|
-
|
|
84
|
+
// db.entities should contains entities in model space and paper space only
|
|
85
|
+
if (isModelSpace(btr.name) || isPaperSpace(btr.name)) {
|
|
86
|
+
btr.entities.forEach(entity => db.entities.push(entity));
|
|
87
|
+
}
|
|
85
88
|
}
|
|
86
89
|
break;
|
|
87
90
|
case Dwg_Object_Type.DWG_TYPE_DIMSTYLE:
|
package/package.json
CHANGED