@jscad/dxf-serializer 2.1.22 → 2.1.23

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.1.23](https://github.com/jscad/OpenJSCAD/compare/@jscad/dxf-serializer@2.1.22...@jscad/dxf-serializer@2.1.23) (2026-02-22)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **modeling:** corrected number of step calculations in arc and appendArc ([fc2f7c4](https://github.com/jscad/OpenJSCAD/commit/fc2f7c413f36095909bd358603d65c71a0c972f0))
11
+
6
12
  ## [2.1.22](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/dxf-serializer@2.1.21...@jscad/dxf-serializer@2.1.22) (2026-02-11)
7
13
 
8
14
  **Note:** Version bump only for package @jscad/dxf-serializer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscad/dxf-serializer",
3
- "version": "2.1.22",
3
+ "version": "2.1.23",
4
4
  "description": "DXF Serializer for JSCAD",
5
5
  "homepage": "https://openjscad.xyz/",
6
6
  "repository": "https://github.com/jscad/OpenJSCAD.org",
@@ -33,11 +33,11 @@
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
35
  "@jscad/array-utils": "2.1.4",
36
- "@jscad/modeling": "2.12.7"
36
+ "@jscad/modeling": "2.13.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "ava": "3.15.0",
40
40
  "nyc": "15.1.0"
41
41
  },
42
- "gitHead": "138ee568542545f27629166bd93fff653cc3c26d"
42
+ "gitHead": "602bb2a3a2c2c7c21315e2801804dd1ec0cbd3f8"
43
43
  }
@@ -1,6 +1,7 @@
1
1
  const test = require('ava')
2
2
 
3
3
  const { geometries, primitives } = require('@jscad/modeling')
4
+ const { TAU } = require('@jscad/modeling').maths.constants
4
5
 
5
6
  const { serialize } = require('../index.js')
6
7
  const { dxfHeaders, dxfClasses, dxfTables, dxfBlocks, dxfObjects } = require('../autocad_AC2017')
@@ -8,13 +9,13 @@ const { dxfHeaders, dxfClasses, dxfTables, dxfBlocks, dxfObjects } = require('..
8
9
  test('2D Path to DXF LWPOLYLINE', (t) => {
9
10
  const path1 = geometries.path2.create()
10
11
 
11
- const obs1 = serialize({}, path1)
12
+ const obs1 = serialize({geom2To: 'lypolyline'}, path1)
12
13
  const exp1 = [empty]
13
14
  t.deepEqual(obs1, exp1)
14
15
 
15
- const path2 = primitives.arc({ center: [5, 5], endAngle: 45, segments: 16 })
16
+ const path2 = primitives.arc({ center: [5, 5], endAngle: TAU / 4, segments: 16 })
16
17
 
17
- const obs2 = serialize({}, path2)
18
+ const obs2 = serialize({geom2To: 'lypolyline'}, path2)
18
19
  const exp2 = [lwpolyline0]
19
20
  t.deepEqual(obs2, exp2)
20
21
 
@@ -74,7 +75,7 @@ CAD00001
74
75
  100
75
76
  AcDbPolyline
76
77
  90
77
- 4
78
+ 5
78
79
  70
79
80
  0
80
81
  10
@@ -82,17 +83,21 @@ AcDbPolyline
82
83
  20
83
84
  5
84
85
  10
85
- 5.943009745777588
86
+ 5.923879532511287
86
87
  20
87
- 5.33276511140516
88
+ 5.38268343236509
88
89
  10
89
- 5.778534761263023
90
+ 5.707106781186548
90
91
  20
91
- 5.627601486219662
92
+ 5.707106781186548
92
93
  10
93
- 5.525321988817728
94
+ 5.38268343236509
94
95
  20
95
- 5.850903524534119
96
+ 5.923879532511287
97
+ 10
98
+ 5
99
+ 20
100
+ 6
96
101
  0
97
102
  ENDSEC
98
103
  ${dxfObjects({})}