toxi, to typescript
@toxi@mastodon.thi.ng avatar

Current status: Updating the https://thi.ng/geom readme to give a better overview of the full extensive API, ahead of the v8 release (soon)... Attached are screenshots of three sections of the readme showing:

  1. list of 32 shape types (both 2D and 3D)
  2. list of 54 polymorphic functions/operations to manipulate/convert/analyze shapes & shape hierarchies
  3. list of additional 40 shape creation functions

Still to come: Documenting the bundled preset implementations of:

  • vertex convolution kernels (3)
  • curve subdivision strategies (8)
  • polygon/polyline to bezier conversion strategies (3)
  • polygon tessellators (9)

(...and how most of these can be combined & applied iteratively. Some of the recent/existing examples are already hinting at the potential...)

#ThingUmbrella #Geometry #Visualization #SVG #Documentation #TypeScript #JavaScript

Screenshot of a section of the linked GitHub readme, showing a table of 54 polymorphic functions/operations to manipulate/convert/analyze shapes & shape hierarchies
Screenshot of a section of the linked GitHub readme, showing a list of links to additional 40 shape creation functions

32bitkid, to genart
@32bitkid@mstdn.social avatar

Ooooh, the edge-weights (even if just totally randomly generated) seem to help the cohesion of the wash layer quite a bit!

#GenerativeArt #TypeScript #SierraOnLine

image/png

GayOldTime,
@GayOldTime@masto.ai avatar

@32bitkid That is a really pretty rendering of the manor

nclslbrn, to typescript
@nclslbrn@mstdn.io avatar

Now my SVG font (JS library) supports hyphenation but it's quite experimental, you can try it there https://nclslbrn.github.io/plot-writer/

A quote by Sol Lewitt read by plot-writer

toxi, to typescript
@toxi@mastodon.thi.ng avatar

Added a convolution kernel filtering operator for polygons/polylines to https://thi.ng/geom, incl. some useful preset kernels: box filter, triangle, gaussian, all with configurable size...

The image shows effects of various kernel sizes & iterations. Unlike with subdivision smoothing, here each version has the exact same number of vertices, only their positions are impacted: orange = box, magenta = triangle, blue = gaussian

(For now the operator is only implemented for polygons (also w/ holes) & polylines, but can be extended to other shape types...)

kubikpixel, to javascript German
@kubikpixel@chaos.social avatar

Es scheint so, als müsste ich mich bei der TypeScript Entwicklung auf @deno_land konzentrieren. Sicherlich, noch mit JSR genutzt, mittlerweile ein Ersatz für @nodejs professionell.

»Deno 1.44 lernt den Umgang mit privaten npm-Registries:
Das Minor Release kann mit privaten npm-Registries sowie gRPC-Verbindungen umgehen und erhöht nochmals die Kompatibilität mit Node.js.«

📰 https://www.heise.de/news/Deno-1-44-lernt-den-Umgang-mit-privaten-npm-Registries-9742970.html
🦕 https://deno.com


#javascript #typescript #denojs #nodejs #webdev #jsr #grpc #dev #npm

levlaz, to python
@levlaz@hachyderm.io avatar

pro tip: learning this the hard way, if you're trying to fix linter issues based on ouput with or start fixing from the bottom of the output because if you start on the top then all of your changes will effect the downstream line number references.

toxi, (edited ) to generative
@toxi@mastodon.thi.ng avatar

Added a new[1] configurable curve subdivision kernel for https://thi.ng/geom to (iteratively) subdivide polygons/polylines with displacement, allowing for super compact code, infinite variation, and beautiful results like shown...

[1] Actually been using this approach since 2010, initially for 3D mesh subdivisions (3rd image)

toxi,
@toxi@mastodon.thi.ng avatar
daishi, to reactjs
@daishi@fosstodon.org avatar

🤩 Celebrating Waku (waku.gg) ⛩️ reaching 4k stars on GitHub! 🥳

voxpelli, to programming
@voxpelli@mastodon.social avatar
voxpelli,
@voxpelli@mastodon.social avatar

Turns out that this release of was pretty much exactly one year after I posted about releasing a bunch of modules: https://mastodon.social/@voxpelli/110458882837558787

sonny, to GNOME
@sonny@floss.social avatar

Workbench News 🛠️

Now available in the GNOME nightly repository

Welcoming 2 GSoC students

@vixalientoots and @atbrat

https://blog.sonny.re/workbench-news

#GNOME #TypeScript #Vala #GSoC

mackuba, to typescript
@mackuba@martianbase.net avatar

Good intro to using in the form of JSDoc tags: https://alexharri.com/blog/jsdoc-as-an-alternative-typescript-syntax - I've been using this recently in one small-ish project ( thread reader) and I think I like it. I can run a typecheck when I want, but I don't need a build phase, don't need to install the npm package on the server, it's still just JS that a browser can open as is.

toxi, to typescript
@toxi@mastodon.thi.ng avatar
daishi, to reactjs
@daishi@fosstodon.org avatar

We are excited about React Compiler, aren't we? I just remembered that my first OSS library in JavaScript was a JS-to-JS compiler! Funny how things come around.

https://github.com/dai-shi/continuation.js

(The source code is hardly readable, even for me now... but feel free to try.)

daishi,
@daishi@fosstodon.org avatar

@indutny oh, what a coincidence!

indutny, (edited )
@indutny@fosstodon.org avatar

@daishi タイムリーでしょう。ですけど、だいしさんのプロジェクトが私の過去のより役に役に立ちそうですよ!面白い実験ですね。

kubikpixel, to webdev German
@kubikpixel@chaos.social avatar

DomainFilter

A fully-typed class for filtering a list of domain names in various ways

📝 https://crock.github.io/DomainFilter/


croc, to webdev
@croc@mastodon.social avatar

🤓 This is gonna be a extremely nerdy toot, but my most favorite piece of code I ever wrote is a small TypeScript library complete with unit tests that makes it super simple to filter a list of domain names by various criteria.

https://github.com/crock/domainfilter
https://www.npmjs.com/package/domainfilter

#domains #webdev #code #typescript #javascript

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines