Skip to content

Release 1.4.1: ATTRIB and HATCH parsing fixes, idle worker released - #6

Merged
chieund merged 5 commits into
masterfrom
fix/issue-4-attrib-hatch
Nov 25, 2026
Merged

chieund merged 5 commits into
masterfrom
fix/issue-4-attrib-hatch

Conversation

@chieund

@chieund chieund commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Refs #4. Fixes the parser defects and the idle worker memory reported there. Large-drawing rendering performance is left for a separate issue.

Changes

  • ATTRIB: parsing stops at 100 AcDbXrecord / 101 Embedded Object, so a multiline attribute keeps its own position, height, text, layer and flags. R12 attributes without subclass markers still read to the end.
  • HATCH: clockwise circular and elliptic boundary edges (73 = 0) use the mirrored DXF angles and sweep clockwise (0→120 is −120°, not −240°). Elliptic edge angles are converted from geometric angles to ellipse parameters. Full turns stay full turns.
  • Cache: CACHE_FORMAT 3 → 4, so drawings cached by 1.4.0 are parsed again with the fixed parser.
  • Worker: the drawing worker shuts down after 2 idle minutes to free its WASM memory. A job sent during the delay cancels the release, and the next job after a release starts a new worker.
  • Version 1.4.1.

Testing

🤖 Generated with Claude Code

chieund and others added 5 commits November 25, 2026 23:18
- ATTRIB: stop at the Xrecord (100 AcDbXrecord) or embedded MTEXT object
  (101) of a multiline attribute, whose reused group codes overwrote the
  attribute's position, height, text and layer. R12 attributes, which have
  no subclass markers, still read to the end.
- HATCH edges: a clockwise arc or elliptic edge (73 = 0) stores its angles
  mirrored, so 0..120 clockwise runs from 0 to -120 degrees; it was drawn
  the long way round (-240). Elliptic edge angles are geometric and are now
  turned into ellipse parameters. Full turns stay full turns.

Refs #4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CACHE_FORMAT goes to 4: 1.4.0 already used 3 for drawings parsed before
the issue #4 fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its WASM heap stays allocated while the thread lives, so an idle worker
held that memory until VS Code closed. A job sent before the delay ends
cancels the release; the next job after it starts a new worker.

Refs #4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #4 (parser defects and worker memory); large-drawing rendering
performance is left for a separate issue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chieund
chieund merged commit e379a60 into master Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant