@mlightcad/libredwg-web 0.7.9 → 0.7.10
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
|
@@ -2701,7 +2701,7 @@ class LibreEntityConverter {
|
|
|
2701
2701
|
const elevation = libredwg.dwg_dynapi_entity_data(entity, "elevation");
|
|
2702
2702
|
const thickness = libredwg.dwg_dynapi_entity_data(entity, "thickness");
|
|
2703
2703
|
const extrusionDirection = libredwg.dwg_dynapi_entity_data(entity, "extrusion");
|
|
2704
|
-
const vertices = libredwg.dwg_entity_polyline_2d_get_vertices(object);
|
|
2704
|
+
const vertices = libredwg.dwg_entity_polyline_2d_get_vertices(object) ?? [];
|
|
2705
2705
|
return {
|
|
2706
2706
|
type: "POLYLINE2D",
|
|
2707
2707
|
...commonAttrs,
|
|
@@ -2737,7 +2737,7 @@ class LibreEntityConverter {
|
|
|
2737
2737
|
const startWidth = libredwg.dwg_dynapi_entity_data(entity, "start_width");
|
|
2738
2738
|
const endWidth = libredwg.dwg_dynapi_entity_data(entity, "end_width");
|
|
2739
2739
|
const extrusionDirection = libredwg.dwg_dynapi_entity_data(entity, "extrusion");
|
|
2740
|
-
const vertices = libredwg.dwg_entity_polyline_3d_get_vertices(object);
|
|
2740
|
+
const vertices = libredwg.dwg_entity_polyline_3d_get_vertices(object) ?? [];
|
|
2741
2741
|
return {
|
|
2742
2742
|
type: "POLYLINE3D",
|
|
2743
2743
|
...commonAttrs,
|
|
@@ -2703,7 +2703,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2703
2703
|
const elevation = libredwg.dwg_dynapi_entity_data(entity, "elevation");
|
|
2704
2704
|
const thickness = libredwg.dwg_dynapi_entity_data(entity, "thickness");
|
|
2705
2705
|
const extrusionDirection = libredwg.dwg_dynapi_entity_data(entity, "extrusion");
|
|
2706
|
-
const vertices = libredwg.dwg_entity_polyline_2d_get_vertices(object);
|
|
2706
|
+
const vertices = libredwg.dwg_entity_polyline_2d_get_vertices(object) ?? [];
|
|
2707
2707
|
return {
|
|
2708
2708
|
type: "POLYLINE2D",
|
|
2709
2709
|
...commonAttrs,
|
|
@@ -2739,7 +2739,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2739
2739
|
const startWidth = libredwg.dwg_dynapi_entity_data(entity, "start_width");
|
|
2740
2740
|
const endWidth = libredwg.dwg_dynapi_entity_data(entity, "end_width");
|
|
2741
2741
|
const extrusionDirection = libredwg.dwg_dynapi_entity_data(entity, "extrusion");
|
|
2742
|
-
const vertices = libredwg.dwg_entity_polyline_3d_get_vertices(object);
|
|
2742
|
+
const vertices = libredwg.dwg_entity_polyline_3d_get_vertices(object) ?? [];
|
|
2743
2743
|
return {
|
|
2744
2744
|
type: "POLYLINE3D",
|
|
2745
2745
|
...commonAttrs,
|
|
@@ -1320,7 +1320,7 @@ export class LibreEntityConverter {
|
|
|
1320
1320
|
const elevation = libredwg.dwg_dynapi_entity_data(entity, 'elevation');
|
|
1321
1321
|
const thickness = libredwg.dwg_dynapi_entity_data(entity, 'thickness');
|
|
1322
1322
|
const extrusionDirection = libredwg.dwg_dynapi_entity_data(entity, 'extrusion');
|
|
1323
|
-
const vertices = libredwg.dwg_entity_polyline_2d_get_vertices(object);
|
|
1323
|
+
const vertices = libredwg.dwg_entity_polyline_2d_get_vertices(object) ?? [];
|
|
1324
1324
|
return {
|
|
1325
1325
|
type: 'POLYLINE2D',
|
|
1326
1326
|
...commonAttrs,
|
|
@@ -1356,7 +1356,7 @@ export class LibreEntityConverter {
|
|
|
1356
1356
|
const startWidth = libredwg.dwg_dynapi_entity_data(entity, 'start_width');
|
|
1357
1357
|
const endWidth = libredwg.dwg_dynapi_entity_data(entity, 'end_width');
|
|
1358
1358
|
const extrusionDirection = libredwg.dwg_dynapi_entity_data(entity, 'extrusion');
|
|
1359
|
-
const vertices = libredwg.dwg_entity_polyline_3d_get_vertices(object);
|
|
1359
|
+
const vertices = libredwg.dwg_entity_polyline_3d_get_vertices(object) ?? [];
|
|
1360
1360
|
return {
|
|
1361
1361
|
type: 'POLYLINE3D',
|
|
1362
1362
|
...commonAttrs,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A DWG/DXF JavaScript parser based on libredwg",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "0.7.
|
|
6
|
+
"version": "0.7.10",
|
|
7
7
|
"author": "MLight Lee <mlight.lee@outlook.com>",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"engines": {
|
|
@@ -87,6 +87,6 @@
|
|
|
87
87
|
"test": "node --test test/node-api.test.mjs",
|
|
88
88
|
"test:node": "pnpm build && pnpm test",
|
|
89
89
|
"publish:npm": "pnpm publish --access public --no-git-checks",
|
|
90
|
-
"release": "node
|
|
90
|
+
"release": "node script/release.mjs"
|
|
91
91
|
}
|
|
92
92
|
}
|