Repository navigation
Release 1.4.1: ATTRIB and HATCH parsing fixes, idle worker released - #6
Merged
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #4. Fixes the parser defects and the idle worker memory reported there. Large-drawing rendering performance is left for a separate issue.
Changes
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.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_FORMAT3 → 4, so drawings cached by 1.4.0 are parsed again with the fixed parser.Testing
npm test: 505/505 pass with libredwg-web 0.8.8.bridge_1.dwg: ok, 2192 entities.dwg-previewer-1.4.1.vsixcontains the fixes. It has not been checked by hand in VS Code yet.🤖 Generated with Claude Code