Commit graph

18 commits

Author SHA1 Message Date
JK
ba4f64eeb4 Refactor documentation and enhance features for TeXcore plugin
- Updated PDF export documentation to clarify features and settings.
- Improved quick preview functionality with detailed technical architecture.
- Enhanced equation search and autocomplete sections for better user guidance.
- Streamlined snippets documentation for command usage and text transformations.
- Revamped TikZ diagrams section to include graphical editor details and usage instructions.
- Revised getting started guide for clearer step-by-step setup instructions.
- Added new navigation and configuration options in the documentation structure.
- Updated plugin manifest files with improved descriptions for clarity.
2026-06-06 11:50:35 +02:00
JK
e979252b6c refactor: remove unused dependencies and improve error handling in TikZ components 2026-06-06 11:04:01 +02:00
JK
f17bc66c4e feat: enhance TikZ editor with tooltips for keyboard shortcuts, add thickness control, and improve snapping functionality
- Updated left sidebar tool buttons to include keyboard shortcuts in titles.
- Added a thickness slider in the right sidebar for adjusting element thickness.
- Refactored snapping functionality to allow for different modes (grid, half, none) and updated related UI elements.
- Improved error handling in TikZ code generation and added support for new shapes (circles, rectangles, triangles).
- Enhanced CSS for better layout and user experience, including adjustments for canvas controls and element interactions.
2026-06-06 00:52:05 +02:00
JK
bf83c2a9d7 feat(tikz): transition to on-demand lazy asset loading model
- Excluded `tikzjax-assets/` directory from production release configurations in `package.json` to reduce package size from ~11MB to under 1.2MB.
- Generated `assets-manifest.ts` containing static list of 210+ LaTeX dependencies to resolve package lists statically.
- Implemented dynamic downloader in `loader.ts` using Obsidian `requestUrl` to fetch missing TeX files on-demand from CDN and save them locally.
- Integrated `showNotice` notifications to notify users about download initiation, completion, and error states.
- Implemented lazy font loading in `renderer.ts` to download `tikzjax.css` dynamically on first render.
- Resolved worker typescript type overload matching compiler issue.
- Satisfied Obsidian release policies by removing unnecessary console logs and direct `Notice` constructor calls.
2026-06-05 15:27:19 +02:00
JK
bea33c7cac feat(tikz): decouple TikZJax loader and assets for fully offline, worker-based rendering
- Extracted 214 TeX libraries, packages, core formats, and WebAssembly binaries from monolithic `tikzjax.js` into local `tikzjax-assets/` folder.
- Replaced monolithic 7MB runtime JS asset download from GitHub with a lightweight loader and Web Worker compilation engine.
- Implemented `tikzjax.worker.ts` to execute the TeX engine in a background Web Worker thread using modern Web standard APIs, preventing main-thread UI locks.
- Implemented `TikzJaxLoader` to parse code block preambles, lazily load/decompress assets synchronously via native `zlib`, cache core buffers in memory, and compile diagrams via the worker.
- Refactored `renderer.ts` and `live-preview-overlay.ts` to utilize the async loader, removing DOM-polluting `<script>` tags, global mutation observers, and custom window hooks.
- Swapped unsafe `.innerHTML` DOM writes with secure browser `DOMParser` APIs for SVG parsing.
- Configured `esbuild` and `package.json` to recursively copy `tikzjax-assets/` to both development and production release locations.
- Removed temporary extraction scripts to keep runtime codebase clean.
- Added asset origin citations to module README, project root README, and MkDocs features documentation.
- Fixed all 111 ESLint type check and style errors, ensuring clean linter execution.
2026-06-05 15:19:32 +02:00
JK
4aa6d9cdac Updated Naming Convention 2026-06-05 14:50:35 +02:00
JK
2cf270523a feat: redesign settings UI, add Integrations tab, and support dynamic Zotero cleanup command
- Renamed TikZJax tab to Integrations and consolidated PDF Export, TikZJax, and Zotero cleanup under it
- Grouped PDF Export, TikZJax, and Zotero cleanup configurations inside modular gear-button modals using SettingsGroupModal
- Added an "Enable Zotero cleanup" toggle to dynamically register/unregister the `remove-duplicate-zotero-annotations` command
- Restructured headers, line separators, and vertical spacing in CSS to match the full-calendar design
- Updated translation keys in en.json and corrected casing across settings descriptions
- Verified that all lint checks, type check compilations, and Jest tests pass with zero errors
2026-06-05 14:43:16 +02:00
JK
b6392a5523 refactor: reorganize src into modular structure and increase test coverage 2026-06-04 20:50:07 +02:00
JK
0f00ee5f90 setting up prod release 2026-06-04 20:26:28 +02:00
JK
88cb4e38d5 fix lint more updating 2026-06-04 20:12:07 +02:00
JK
bcc1be7933 updating the plugin 2026-06-04 20:12:07 +02:00
JK
a3d9e1e494 fix(callout): Implement custom rendering for equation links and numbers in dynamically rendered callouts. 2026-06-04 20:12:05 +02:00
JK
9d5f3aa68b version bump 2026-06-04 20:12:04 +02:00
JK
e8e9b3e93e Fixed pdf export 2026-06-04 20:12:03 +02:00
JK
e4d60f4d65 feat: adding obsidian-better-export-pdf 2026-06-04 20:12:03 +02:00
JK
596bd1daa7 version: updated esbuild, npm and version 2026-06-04 20:12:03 +02:00
JK
83f425243a feat: remove MathLinks integration and related code
- Deleted `cleveref.ts` and removed `CleverefProvider` class.
- Removed `obsidian-mathlinks` dependency from package.json.
- Cleaned up `main.ts` by removing MathLinks imports, registration logic, and user notices.
- Refactored `live-preview-link-renderer.ts` to simplify link decoration logic and remove verbose debug logs.
- Removed all MathLinks-related code paths and settings.
- Plugin now fully relies on its own equation reference logic for rendering and linking.
2026-06-04 20:12:02 +02:00
JK
7e75089cb2 initializing 2026-06-04 20:11:56 +02:00