Skip to content

Add Test Vault and Fix Unknown Color - #35

Closed
Genei180 wants to merge 2 commits into
philips:mainfrom
Genei180:fix_template_unknown_color
Closed

Add Test Vault and Fix Unknown Color#35
Genei180 wants to merge 2 commits into
philips:mainfrom
Genei180:fix_template_unknown_color

Conversation

@Genei180

Copy link
Copy Markdown

Hello,

The Bug I tried to resolve is mentioned here: #29

For easier debugging, I added a Test Vault, with a Hot Reload Plugin that Allows for Easier and Visual Debugging of the Plugin.
(Loosely Oriented on the Way the Task Obsidian Plugin does it, as I found it really Helpful)

I included a Supernote File which Reproduces the Error, and one that does not.
(Note, the one which throws the Error has just another Template in the Background, which causes the Fail)

The Error Produced is in the Submodule: https://github.com/philips/supernote-typescript.

Starting the Discussion for Resolving the Issue there: philips/supernote-typescript#3

Note:
Changed the Submodule for Better Testing.
Change the Submodule Back, when you want to accept this PR.

Side Note:
Having Trouble getting this Repo to Build and Transferred to the Vault.
Mainly, Changes in the Submodule do not get reflected when build from the Root Repo.
Somebody more Experienced with Node should look at it.

@philips

philips commented Dec 19, 2024

Copy link
Copy Markdown
Owner

Fixed in version 2.2.9. Thank you for the test cases and suggested fix!

@philips philips closed this Dec 19, 2024
pull Bot pushed a commit to ben-vargas/supernote-obsidian-plugin that referenced this pull request Jul 29, 2026
Bumps the supernote-typescript submodule to v0.5.3, which adds a
visibleSurfaces filter to SupernoteAtelier.toCompositeImage()
(supernote-typescript#37, fixing philips#35).

SupernoteAtelierView now opens the .spd file once (openAtelierFile) and
keeps the parsed SupernoteAtelier around instead of always calling the
open-and-flatten-everything helper, so a checkbox toggle re-composites
just the selected layers without re-parsing the sqlite database on every
click. Layer labels come from SupernoteAtelier.layers when the `ls`
config decoded; falls back to raw surface table names otherwise. The
toggle panel is skipped for single-layer files, same "nothing to show
here" logic SupernoteEmbed already uses for single-page .note files.

SupernoteAtelierEmbed and the export commands keep using the simpler
renderAtelierCompositeDataUrl() (open + flatten everything, no toggle
state to manage) — refactored to share openAtelierFile/compositeDataUrl
with the view instead of duplicating the wasm-loading boilerplate.

One more item off philips#138 (viewport/zoom and device attach/upload still
open).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants