Skip to content

v0.9.4-alpha

Latest
Compare
Choose a tag to compare
@mayakraft mayakraft released this 12 May 16:14
0b34023

Rewrite of the entire library. some key takeaways from a user's perspective

  • class objects have been largely removed (vector, matrix, line) these now exist as Typescript type definitions, and the primitive itself is simply an object or array. VecLine2 and VecLine3 distinguish between 2D and 3D lines now (UniqueLine type is always in 2D).
  • the convert/ folder has been entirely refactored, supports conversion between FOLD and SVG, OBJ, OPX (including the newer ORIPA version)
  • a new general/ directory and ear.general subcategory for operations on more general objects (not a FOLD graph), such as clustering, sorting, array set operations.
  • operations to modify a FOLD graph are quite different. different intersection methods, add components, join, planarize, subgraph, populate, new and improved folding methods.
  • new validate section intended to report errors on poorly formed FOLD objects
  • new layer solver which works in 3D is still in testing, available at ear.layer.layer3D(). the 2D solver is still at ear.layer()
  • complete rewrite of singleVertex/ directory
  • svg library contains improved options for rendering FOLD objects, made available through the new convert/fold-to-svg method
  • the WebGL rendering has undergone years of usage and improvements and is beginning to replace the SVG library as the preferred rendering in many Rabbit Ear apps now.
  • Typescript types (via. JSDocs)