@jscad/dxf-deserializer 3.0.0-alpha.0 → 3.0.2-alpha.0
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 +16 -0
- package/LICENSE +1 -1
- package/dist/jscad-dxf-deserializer.es.js +2 -2
- package/dist/jscad-dxf-deserializer.min.js +2 -2
- package/package.json +4 -3
- package/rollup.config.js +1 -1
- package/src/index.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jscad/dxf-deserializer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2-alpha.0",
|
|
4
4
|
"description": "DXF Deserializer for JSCAD",
|
|
5
5
|
"homepage": "https://openjscad.xyz/",
|
|
6
6
|
"repository": "https://github.com/jscad/OpenJSCAD.org",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@jscad/
|
|
36
|
+
"@jscad/io-utils": "3.0.2-alpha.0",
|
|
37
|
+
"@jscad/modeling": "3.0.2-alpha.0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
@@ -44,5 +45,5 @@
|
|
|
44
45
|
"rollup-plugin-banner": "^0.2.1",
|
|
45
46
|
"rollup-plugin-version-injector": "^1.3.3"
|
|
46
47
|
},
|
|
47
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ac80d1a7cb0a8efb21aff9193d4a8bccb6e31f1c"
|
|
48
49
|
}
|
package/rollup.config.js
CHANGED
|
@@ -22,6 +22,6 @@ export default {
|
|
|
22
22
|
nodeResolve(),
|
|
23
23
|
banner('<%= pkg.description %>\n@module <%= pkg.name %>\n@version <%= pkg.version %>\n@license <%= pkg.license %>'),
|
|
24
24
|
versionInjector({ injectInComments: { fileRegexp: /\.(html)$/ }, logLevel: 'warn' }),
|
|
25
|
-
terser({ compress: { module: true }, mangle: false, format: { comments: 'some'} })
|
|
25
|
+
terser({ compress: { module: true }, mangle: false, format: { comments: 'some' } })
|
|
26
26
|
]
|
|
27
27
|
}
|
package/src/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ensureString } from '@jscad/io-utils'
|
|
2
|
+
|
|
1
3
|
import { BYLAYER, getTLA } from './autocad.js'
|
|
2
4
|
import { colorIndex } from './colorindex2017.js'
|
|
3
5
|
import { DxfReader } from './DxfReader.js'
|
|
@@ -593,6 +595,8 @@ const deserialize = (options, src) => {
|
|
|
593
595
|
}
|
|
594
596
|
}
|
|
595
597
|
options = Object.assign({}, defaults, options)
|
|
598
|
+
|
|
599
|
+
src = ensureString(src);
|
|
596
600
|
return options.output === 'script' ? translate(src, options) : instantiate(src, options)
|
|
597
601
|
}
|
|
598
602
|
|