Repository navigation
VireGlass from npm, and the panel on its live-DOM renderer (1.4.0) - #1
Merged
Merged
Conversation
The glass used to be a generated bundle built from a private package and committed ready-made. vireglass is published now, so the bundle, its hand-written types and scripts/build-glass.mjs are gone and the build resolves the package like any other dependency; dist/ still bundles it, so the extension installs as a folder without node_modules. Version 2 moved glass over live DOM into vireglass/dom, which is what the panel did by hand, so src/glass.ts ports the package's attachGlass into the shadow tree instead of drawing on a WebGL canvas. It stays a port rather than a call: the pane moves under a finger and throws into corners, and the morph resizes every frame, which attachGlass would answer by re-baking its map at full resolution. Checked in Chromium with the unpacked extension on ficbook.net: the panel renders with rim, shadow and refraction, no console errors from the extension, and an EPUB downloads. 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.
VireGlass now comes from the published npm package, and the panel draws with its live-DOM renderer instead of a hand-built WebGL canvas.
What changes
vireglass@^2.2.0is a regular dependency, bundled intodist/by esbuild, so the extension still installs as a folder withoutnode_modules.src/glass/vireglass.bundle.js, its types, andscripts/build-glass.mjsare gone, along with the CI step that checked the bundle was present.src/glass.tsports the package'sattachGlassinto the panel's shadow tree. It is a port rather than a call for two reasons: the pane moves under a finger and is thrown into corners, and the morph resizes it every frame.attachGlasswould re-bake its map at full resolution on each of those frames.Checked
npm run check: typecheck, build, 26 + 19 tests.🤖 Generated with Claude Code