#ReleaseThursday
— This week's second round of releases is featuring:
https://thi.ng/geom — added support for more shape pairings in the polymorphic intersection function to altogether 18, now also including: line↔︎group (incl. nested groups), line↔︎polygon, line↔︎polyline, ray↔︎group, ray↔︎line
https://thi.ng/geom-isec — simplified intersection result type (intersection point(s) now always in an array), added computation of point-inside-shape flags to more shape types, bug fixes
https://thi.ng/meta-css — more updates to CSS template handling, spec doc system and tons more additions to the generative baseframework specs/templates, now already consisting of 932 CSS utility classes (incl. 61 callable templates/functions/macros), which can be used as-is or as starting point to define your own custom CSS framework(s). All explained in the readme... This toolchain will likely keep on seeing a flurry of other updates since I'm heavily using it for the design of the new thi.ng website too! Together with mprocs[1] and Vite it also offers a very nice hot-reloading workflow...
https://thi.ng/hiccup-css — added support for SASS-style `&`-parent reference when defining nested selectors, updated readme w/ examples
https://thi.ng/random — added a `weightedProbability()` function to simplify dealing with arbitrarily shaped distributions (attached code example to compute the histogram & visualize results as ASCII-art is from the API docs)
As usual, please check the readmes and changelogs for more details!
#ThingUmbrella #TypeScript #JavaScript #Geometry #Intersections #CSS #MetaCSS #OpenSource
[1] https://github.com/pvolok/mprocs