@jscad/svg-deserializer 2.5.13 → 2.5.14
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 +6 -0
- package/package.json +4 -4
- package/tests/instantiate.test.js +8 -8
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.5.14](https://github.com/jscad/OpenJSCAD/compare/@jscad/svg-deserializer@2.5.13...@jscad/svg-deserializer@2.5.14) (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.5.13](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/svg-deserializer@2.5.12...@jscad/svg-deserializer@2.5.13) (2026-02-11)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @jscad/svg-deserializer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jscad/svg-deserializer",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.14",
|
|
4
4
|
"description": "SVG Deserializer for JSCAD",
|
|
5
5
|
"homepage": "https://openjscad.xyz/",
|
|
6
6
|
"repository": "https://github.com/jscad/OpenJSCAD.org",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@jscad/array-utils": "2.1.4",
|
|
36
|
-
"@jscad/io-utils": "2.0.
|
|
37
|
-
"@jscad/modeling": "2.
|
|
36
|
+
"@jscad/io-utils": "2.0.33",
|
|
37
|
+
"@jscad/modeling": "2.13.0",
|
|
38
38
|
"saxes": "5.0.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"ava": "3.15.0",
|
|
42
42
|
"nyc": "15.1.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "602bb2a3a2c2c7c21315e2801804dd1ec0cbd3f8"
|
|
45
45
|
}
|
|
@@ -250,16 +250,16 @@ test('deserialize : instantiate svg (path: arc) to objects', (t) => {
|
|
|
250
250
|
observed = deserializer.deserialize({ output: 'geometry', target: 'path', addMetaData: false }, sourceSvg)
|
|
251
251
|
t.is(observed.length, 2)
|
|
252
252
|
shape = observed[0]
|
|
253
|
-
t.is(shape.points.length,
|
|
253
|
+
t.is(shape.points.length, 26)
|
|
254
254
|
|
|
255
255
|
observed = deserializer.deserialize({ output: 'geometry', target: 'path', addMetaData: false, segments: 16 }, sourceSvg)
|
|
256
256
|
t.is(observed.length, 2)
|
|
257
257
|
shape = observed[0]
|
|
258
|
-
t.is(shape.points.length,
|
|
259
|
-
t.deepEqual(measurements.measureBoundingBox(shape), [[64.91110599999999, -77.611105, 0], [90.
|
|
258
|
+
t.is(shape.points.length, 14) // segments double on a 3/4 circle
|
|
259
|
+
t.deepEqual(measurements.measureBoundingBox(shape), [[64.91110599999999, -77.611105, 0], [90.31110299999999, -52.211102999999994, 0]])
|
|
260
260
|
shape = observed[1]
|
|
261
|
-
t.is(shape.points.length,
|
|
262
|
-
t.deepEqual(measurements.measureBoundingBox(shape), [[50.799996, -136.
|
|
261
|
+
t.is(shape.points.length, 14) // segments double on a 3/4 circle
|
|
262
|
+
t.deepEqual(measurements.measureBoundingBox(shape), [[50.799996, -136.05619433226602, 0], [72.48025212106914, -110.65619433226604, 0]])
|
|
263
263
|
})
|
|
264
264
|
|
|
265
265
|
// ################################
|
|
@@ -446,9 +446,9 @@ test('deserialize : instantiate shape with a hole to objects', (t) => {
|
|
|
446
446
|
observed = deserializer.deserialize({ output: 'geometry', target: 'path', addMetaData: false }, sourceSvg)
|
|
447
447
|
t.is(observed.length, 2)
|
|
448
448
|
shape = observed[0]
|
|
449
|
-
t.is(shape.points.length,
|
|
449
|
+
t.is(shape.points.length, 30)
|
|
450
450
|
shape = observed[1]
|
|
451
|
-
t.is(shape.points.length,
|
|
451
|
+
t.is(shape.points.length, 30)
|
|
452
452
|
})
|
|
453
453
|
|
|
454
454
|
// ################################
|
|
@@ -469,7 +469,7 @@ test('deserialize : instantiate shape with a nested hole to objects', (t) => {
|
|
|
469
469
|
observed = deserializer.deserialize({ output: 'geometry', target: 'path', addMetaData: false }, sourceSvg)
|
|
470
470
|
t.is(observed.length, 4)
|
|
471
471
|
shape = observed[0]
|
|
472
|
-
t.is(shape.points.length,
|
|
472
|
+
t.is(shape.points.length, 30)
|
|
473
473
|
})
|
|
474
474
|
|
|
475
475
|
// ################################
|