@mlightcad/libredwg-web 0.7.11 → 0.7.12
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
|
@@ -3993,8 +3993,10 @@ class LibreDwgConverter {
|
|
|
3993
3993
|
dashes.forEach((dash) => {
|
|
3994
3994
|
patterns.push({
|
|
3995
3995
|
elementLength: dash.length || 0,
|
|
3996
|
-
|
|
3997
|
-
|
|
3996
|
+
// DXF 74: 1=absolute rotation, 2=text, 4=shape
|
|
3997
|
+
elementTypeFlag: dash.shape_flag || 0,
|
|
3998
|
+
// DXF 75: shape number (when flag has bit 4)
|
|
3999
|
+
shapeNumber: dash.complex_shapecode,
|
|
3998
4000
|
// TODO: convert style handle to style object id
|
|
3999
4001
|
// styleObjectId: dash.style,
|
|
4000
4002
|
scale: dash.scale,
|
|
@@ -3995,8 +3995,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
3995
3995
|
dashes.forEach((dash) => {
|
|
3996
3996
|
patterns.push({
|
|
3997
3997
|
elementLength: dash.length || 0,
|
|
3998
|
-
|
|
3999
|
-
|
|
3998
|
+
// DXF 74: 1=absolute rotation, 2=text, 4=shape
|
|
3999
|
+
elementTypeFlag: dash.shape_flag || 0,
|
|
4000
|
+
// DXF 75: shape number (when flag has bit 4)
|
|
4001
|
+
shapeNumber: dash.complex_shapecode,
|
|
4000
4002
|
// TODO: convert style handle to style object id
|
|
4001
4003
|
// styleObjectId: dash.style,
|
|
4002
4004
|
scale: dash.scale,
|
|
@@ -703,8 +703,10 @@ export class LibreDwgConverter {
|
|
|
703
703
|
dashes.forEach(dash => {
|
|
704
704
|
patterns.push({
|
|
705
705
|
elementLength: dash.length || 0,
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
// DXF 74: 1=absolute rotation, 2=text, 4=shape
|
|
707
|
+
elementTypeFlag: dash.shape_flag || 0,
|
|
708
|
+
// DXF 75: shape number (when flag has bit 4)
|
|
709
|
+
shapeNumber: dash.complex_shapecode,
|
|
708
710
|
// TODO: convert style handle to style object id
|
|
709
711
|
// styleObjectId: dash.style,
|
|
710
712
|
scale: dash.scale,
|
|
@@ -9,13 +9,16 @@ export interface DwgLTypeTableEntry extends DwgCommonTableEntry {
|
|
|
9
9
|
}
|
|
10
10
|
export interface DwgLineTypeElement {
|
|
11
11
|
elementLength: number;
|
|
12
|
+
/** DXF 74: 1 = absolute rotation, 2 = embedded text, 4 = shape */
|
|
12
13
|
elementTypeFlag: number;
|
|
14
|
+
/** DXF 75: shape number when elementTypeFlag has bit 4 */
|
|
13
15
|
shapeNumber?: number;
|
|
14
16
|
styleObjectId?: string;
|
|
15
17
|
scale?: number;
|
|
16
18
|
rotation?: number;
|
|
17
19
|
offsetX?: number;
|
|
18
20
|
offsetY?: number;
|
|
21
|
+
/** DXF 9: embedded text when elementTypeFlag has bit 2 */
|
|
19
22
|
text?: string;
|
|
20
23
|
}
|
|
21
24
|
//# sourceMappingURL=ltype.d.ts.map
|
package/package.json
CHANGED
package/wasm/libredwg-web.wasm
CHANGED
|
Binary file
|