Skip to content

Inklet 4.0.0.dev2 — clipping and rendering improvements

Pre-release
Pre-release

Choose a tag to compare

@Mapika Mapika released this 08 Sep 16:09
· 8 commits to master since this release

Inklet 4.0.0.dev2 improves the native plotting renderer and adds explicit painted windows. It also includes the compositing and vector-hatching improvements made since dev1.

  • Curve clipping: open Bézier paths retain subdivided cubic segments at plot boundaries, including transformed curves and repeated exits/reentries.
  • Painted windows: inklet.window() crops images, text, markers, filled curves and rounded shapes consistently in SVG, PDF and PNG. Windows support nesting and transforms, survive document compilation, and carry visibility information into resolution and diagnostics.
  • Rendering quality: corrected PDF group opacity, PNG palette transparency and reusable vector hatching with independent borders and fill opacity.
  • Performance evidence: about 2× faster clipping on the 50,001-point line workload; 61% smaller SVG and 53% smaller PDF for the smooth-curve fixture. Filled-band timings are roughly unchanged. Local measurements and reproducible scripts are included.
  • Review material: an eight-panel clipping recipe, separate LaTeX caption, independent SVG/PDF coverage tests and documentation of geometry, layout and visibility semantics.

Install this development preview explicitly:

python -m pip install "inklet==4.0.0.dev2"

3.1.0 remains the stable release. Experimental document APIs and saved-state formats can change between previews. Geometric clipping of filled curves still uses polygon samples; use window() to preserve their painted curves and fill topology.

Development preview · Clipping guide · Changelog

The wheel and source archive are attached with SHA256SUMS. Publishing uses these same verified files on PyPI.