tinymist/tools/typst-dom
ParaN3xus 70d3443656
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
feat: replace window global with windowElem in preview web frontend (#2145)
The preview feature heavily relies on the global `window` object. This
forces the preview to be used only as a standalone page.

In this PR, I replaced `window` with `windowElem` to make the preview
component modular and reusable.

TODO:
- [x] Fix `handleTypstLocation`
- [x] Fix zoon center
- [x] Fix drag
- [ ] Do a comprehensive test
  - [x] `handleTypstLocation` under both canvas mode and SVG mode
  - [ ] other stuff (idk what yet)
2025-11-02 17:34:20 +08:00
..
src feat: replace window global with windowElem in preview web frontend (#2145) 2025-11-02 17:34:20 +08:00
.gitignore feat: move typst-preview to tinymist (#323) 2024-06-17 17:22:45 +08:00
package.json build: bump version to 0.14.0-rc1 (#2189) 2025-10-29 12:22:35 +08:00
tsconfig.json feat: move typst-preview to tinymist (#323) 2024-06-17 17:22:45 +08:00
vite.config.js feat: move typst-preview to tinymist (#323) 2024-06-17 17:22:45 +08:00