@jscad/io 2.2.6 → 2.3.3

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,41 @@
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.3.3](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/io@2.3.2...@jscad/io@2.3.3) (2022-05-15)
7
+
8
+ **Note:** Version bump only for package @jscad/io
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.3.2](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/io@2.3.1...@jscad/io@2.3.2) (2022-04-24)
15
+
16
+ **Note:** Version bump only for package @jscad/io
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.3.1](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/io@2.3.0...@jscad/io@2.3.1) (2022-04-03)
23
+
24
+ **Note:** Version bump only for package @jscad/io
25
+
26
+
27
+
28
+
29
+
30
+ # [2.3.0](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/io@2.2.6...@jscad/io@2.3.0) (2022-04-03)
31
+
32
+
33
+ ### Features
34
+
35
+ * **3mf-serializer:** new serializer from JSCAD geometry to 3MF packages ([6b51aed](https://github.com/jscad/OpenJSCAD.org/commit/6b51aed63ee40674822a04ced773564552689763))
36
+
37
+
38
+
39
+
40
+
6
41
  ## [2.2.6](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/io@2.2.5...@jscad/io@2.2.6) (2022-03-13)
7
42
 
8
43
  **Note:** Version bump only for package @jscad/io
package/README.md CHANGED
@@ -46,6 +46,7 @@ Following formats are supported as outputs
46
46
  - [STL (binary, ASCII)](../stl-serializer)
47
47
  - [SVG](../svg-serializer)
48
48
  - [X3D](../x3d-serializer)
49
+ - [3MF](../3mf-serializer)
49
50
 
50
51
  ## Table of Contents
51
52
 
@@ -75,11 +76,11 @@ We welcome and encourage anyone to pitch in but please take a moment to read the
75
76
 
76
77
  * If you want to submit a bug report please make sure to follow the [Reporting Issues](https://github.com/jscad/OpenJSCAD.org/wiki/Reporting-Issues) guide. Bug reports are accepted as [Issues](https://github.com/jscad/OpenJSCAD.org/issues/) via GitHub.
77
78
 
78
- * If you want to submit a change or a patch, please read the [Contributing Guide](../../CONTRIBUTING.md). New contributions are accepted as [Pull Requests](https://github.com/jscad/OpenJSCAD.org/pulls/) via GithHub.
79
+ * If you want to submit a change or a patch, please read the [Contributing Guide](../../CONTRIBUTING.md). New contributions are accepted as [Pull Requests](https://github.com/jscad/OpenJSCAD.org/pulls/) via GitHub.
79
80
 
80
81
  * We only accept bug reports and pull requests on **GitHub**.
81
82
 
82
- * If you have a question about how to use JSCAD, then please start a conversation at the [JSCAD User Group](https://openjscad.xyz/forum.html). You might find the answer in the [JSCAD User Guide](https://www.openjscad.xyz/guide.html).
83
+ * If you have a question about how to use JSCAD, then please start a conversation at the [JSCAD User Group](https://openjscad.xyz/forum.html). You might find the answer in the [JSCAD User Guide](https://openjscad.xyz/guide.html).
83
84
 
84
85
  * If you have a change or new feature in mind, please start a conversation with the [Core Developers](https://openjscad.xyz/forum.html) and start contributing changes.
85
86
 
package/formats.js CHANGED
@@ -101,6 +101,15 @@ const formats = {
101
101
  deserializable: true,
102
102
  convertGeom3: true,
103
103
  convertGeom2: false
104
+ },
105
+ '3mf': {
106
+ displayName: '3MF',
107
+ description: '3D Manufacturing Format',
108
+ extension: '3mf',
109
+ mimetype: 'model/3mf',
110
+ deserializable: false,
111
+ convertGeom3: true,
112
+ convertGeom2: false
104
113
  }
105
114
  }
106
115
 
package/index.js CHANGED
@@ -7,6 +7,7 @@ const objSerializer = require('@jscad/obj-serializer')
7
7
  const stlSerializer = require('@jscad/stl-serializer')
8
8
  const svgSerializer = require('@jscad/svg-serializer')
9
9
  const x3dSerializer = require('@jscad/x3d-serializer')
10
+ const m3fSerializer = require('@jscad/3mf-serializer')
10
11
 
11
12
  const prepareOutput = require('./prepareOutput')
12
13
  const deserializers = require('./deserializers')
@@ -24,6 +25,7 @@ module.exports = {
24
25
  stlSerializer,
25
26
  svgSerializer,
26
27
  x3dSerializer,
28
+ m3fSerializer, // UG javascript doesn't allow names with leading digit
27
29
 
28
30
  deserializers
29
31
  }
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@jscad/io",
3
- "version": "2.2.6",
3
+ "version": "2.3.3",
4
4
  "description": "Meta Package for JSCAD IO Packages",
5
+ "homepage": "https://openjscad.xyz/",
5
6
  "repository": "https://github.com/jscad/OpenJSCAD.org",
6
7
  "main": "index.js",
7
8
  "scripts": {},
@@ -29,23 +30,24 @@
29
30
  ],
30
31
  "license": "MIT",
31
32
  "dependencies": {
32
- "@jscad/amf-deserializer": "2.2.8",
33
- "@jscad/amf-serializer": "2.1.5",
34
- "@jscad/array-utils": "2.1.2",
35
- "@jscad/dxf-deserializer": "2.3.12",
36
- "@jscad/dxf-serializer": "2.1.5",
37
- "@jscad/io-utils": "2.0.15",
38
- "@jscad/json-deserializer": "2.0.16",
39
- "@jscad/json-serializer": "2.0.15",
40
- "@jscad/modeling": "2.9.0",
41
- "@jscad/obj-deserializer": "2.0.15",
42
- "@jscad/obj-serializer": "2.1.5",
43
- "@jscad/stl-deserializer": "2.1.12",
44
- "@jscad/stl-serializer": "2.1.5",
45
- "@jscad/svg-deserializer": "2.4.8",
46
- "@jscad/svg-serializer": "2.3.3",
47
- "@jscad/x3d-deserializer": "2.1.3",
48
- "@jscad/x3d-serializer": "2.3.5"
33
+ "@jscad/3mf-serializer": "2.1.3",
34
+ "@jscad/amf-deserializer": "2.2.12",
35
+ "@jscad/amf-serializer": "2.1.9",
36
+ "@jscad/array-utils": "2.1.4",
37
+ "@jscad/dxf-deserializer": "2.3.16",
38
+ "@jscad/dxf-serializer": "2.1.9",
39
+ "@jscad/io-utils": "2.0.19",
40
+ "@jscad/json-deserializer": "2.0.20",
41
+ "@jscad/json-serializer": "2.0.19",
42
+ "@jscad/modeling": "2.9.4",
43
+ "@jscad/obj-deserializer": "2.0.19",
44
+ "@jscad/obj-serializer": "2.1.9",
45
+ "@jscad/stl-deserializer": "2.1.16",
46
+ "@jscad/stl-serializer": "2.1.9",
47
+ "@jscad/svg-deserializer": "2.4.12",
48
+ "@jscad/svg-serializer": "2.3.7",
49
+ "@jscad/x3d-deserializer": "2.1.5",
50
+ "@jscad/x3d-serializer": "2.3.9"
49
51
  },
50
- "gitHead": "45fbcb7298fcacf3e45d67fdca32d0744ab7f2de"
52
+ "gitHead": "662965f40a1ce628aa97f30b814586e72a3acb36"
51
53
  }
package/prepareOutput.js CHANGED
@@ -8,6 +8,7 @@ const objSerializer = require('@jscad/obj-serializer')
8
8
  const stlSerializer = require('@jscad/stl-serializer')
9
9
  const svgSerializer = require('@jscad/svg-serializer')
10
10
  const x3dSerializer = require('@jscad/x3d-serializer')
11
+ const m3fSerializer = require('@jscad/3mf-serializer') // UG javascript doesn't allow names with leading #
11
12
 
12
13
  const prepareOutput = (objects, params) => {
13
14
  const defaults = {
@@ -34,6 +35,7 @@ const prepareOutput = (objects, params) => {
34
35
  obj: objSerializer,
35
36
  svg: svgSerializer, // Geom2 to SVG
36
37
  x3d: x3dSerializer, // Geom3 to X3D
38
+ '3mf': m3fSerializer, // Geom3 to 3MF
37
39
  json: jsonSerializer, // Geom3 or Geom2 to JSON
38
40
  js: {
39
41
  mimeType: formats.js.mimetype,