Repository navigation
Conversation
The parser is two major lines newer (0.3.0 -> 0.7.3), bringing the stroke-decoding improvements the newer renderer is known for (eraser gestures no longer drawn, recognition/textbox improvements, and the deliberate gray-level swap so darkGray < gray in lightness, matching the device). The plugin's parser surface is just two files, and the vendored Ratta RLE compositor in notebook-rasterizer.ts is byte-compatible with 0.7.3's _walkRuns — the only sync needed was the palette swap. - package.json + lockfile: 0.7.3; the image-js exclusion override is re-pinned to supernote-typescript@0.7.3 (the parser itself stays image-js-free, verified — the worker-ownership lockfile test passes). - notebook-rasterizer: vendored palette updated to 0.7.3's gray levels with a comment pointing at the upstream change. - tests: two synthetic fixtures updated to the new gray values. NOTE: real-note rendering changes intentionally (grays shift to the 0.7.x levels). The skipped real-note RGBA-hash test (private fixture) will need its recorded hash regenerated by someone with the fixture. pnpm format/lint/typecheck/460 tests/build green.
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.
Upgrade supernote-typescript 0.3.0 → 0.7.3
Bumps the
.noteparsing library and adapts the rasterizer to 0.7.3's swappedgrayscale pen palette (
darkGray= 128,gray= 169; they were reversed in0.3.0). Both test fixtures are updated to the corrected RGBA values.
This is a standalone maintenance upgrade, and it's the foundation for a
follow-up PR that renders pages with crisp canvas vector strokes (which needs
0.7.3's vector-ink API).
Test plan:
pnpm test— rasterizer tests updated for the new palette andpass; full suite green (460 passed, 8 pre-existing private-fixture skips).
Extracted from the
Supernote Sync & Transcribe
fork, where it's been in use.