Closed platypii closed 9 months ago
I was just expecting a new top index with flattened exports, which looks good by the way. 👍
Are you sure that the doc changes are necessary now? I'm doing battle with JSDOC right now as the latest version breaks our documentation. And pretty much all examples in the docs have to be reviewed again. Just getting the docs back is going to be a huge task.
UG... all the other tests of packages failed as well. Maybe this needs to be completed in pieces.
I'm not certain about the doc changes, I can revert those and leave them for another PR.
I am working on updating IO to make the tests pass though with the flattened exports.
@z3dev I rolled back the changes to doc aliases. I also got tests passing by making changes to IO and core packages. The changes to modeling are small and easy to check (+48 lines, -80 lines)
Changes to modeling: https://github.com/jscad/OpenJSCAD.org/pull/1294/commits/6a8a208751799b446bb2864064c1417f4d9e0e3f
The changes to IO were much more extensive, mostly just changing imports to use import * from '@jscad/modeling'
and removing use of geometries.
and primitives.
.
Flattens the JSCAD export hierarchy, and exports everything as a top-level export from
@jscad/modeling
. As discussed in #1289In the process of making this change, there were some name conflict with utils. So I made some choices about exactly which util functions to export:
degToRad
,radToDeg
,sin
,cos
. Also exports the constantsEPS
,NEPS
,TAU
.I updated @ aliases and @ examples to reflect the new export structure.
This is a big change, especially for users. But the more I think about it, the more I agree with @hrgdavor that this would make a cleaner API that is better for users in the long run.
Thoughts @z3dev?
All Submissions: