Release : 2022 AUG 21
-
Release : 2022 AUG 21
There's a new release of JSCAD, including changes from several pull requests.
Welcome TAU!
TAU is the true constant for relating the circumference of a circle to its linear dimension.
Equivalent to PI*2. You will now find TAU throughout the code base, and mentioned in documentation.
We believe TAU will make rotations simple to understand.EXAMPLE
const { TAU } = require('@jscad/modeling').maths.constants const { cube } = require('@jscad/modeling').primitives const { rotate } = require('@jscad/modeling').transforms const main = () => { const shape = rotate([TAU/4, TAU*0.75, TAU/24], cube({})) return shape } module.exports = { main }
For even more information about TAU, see The Tau Manifesto
Features
- modeling: added TAU constant to maths, and refactored code and documentation
- web: added chinese translations to desktop/locales and web/locales
Bug Fixes
- modeling: added TS definitions for modifiers
Thanks to @jobinson99 for the Chinese translations for the website.
Successfully published:
- @jscad/cli@2.2.23
- @jscad/core@2.6.3
- @jscad/3mf-serializer@2.1.6
- @jscad/amf-deserializer@2.3.2
- @jscad/amf-serializer@2.1.12
- @jscad/dxf-deserializer@2.3.19
- @jscad/dxf-serializer@2.1.12
- @jscad/io-utils@2.0.22
- @jscad/io@2.4.2
- @jscad/json-deserializer@2.0.23
- @jscad/json-serializer@2.0.22
- @jscad/obj-deserializer@2.0.22
- @jscad/obj-serializer@2.1.12
- @jscad/stl-deserializer@2.1.19
- @jscad/stl-serializer@2.1.12
- @jscad/svg-deserializer@2.5.2
- @jscad/svg-serializer@2.3.10
- @jscad/x3d-deserializer@2.2.2
- @jscad/x3d-serializer@2.4.2
- @jscad/modeling@2.10.0
- @jscad/regl-renderer@2.6.3
- @jscad/vtree@2.0.23
- @jscad/web@2.6.0
lerna success published 23 packages