* Fix legacy support for navigation * Fixes timing issue with document editors If silverbullet was directly loaded into a document editor it would set the darkmode after loading the editor, causing a wrong value to be passed * Add basic `image-viewer` This add adds a basic image viewer using the panzoom library from Timmy Willison * Svgs somehow don't accept 100% width * Make `internal` a property of a message * Add `editor.sendMessage` syscall * Update forgotten internal syscall * Add small info command to image-viewer * Change indent to two spaces * Move zoom in button to the right * Switch rotation direction * Display mime type instead of file extension
11 lines
290 B
YAML
11 lines
290 B
YAML
name: image-viewer
|
|
functions:
|
|
ImageViewer:
|
|
path: ./viewer.ts:viewer
|
|
editor: ["jpg", "jpeg", "png", "gif", "svg", "webp", "avif", "apng"]
|
|
showInfoMessage:
|
|
path: ./viewer.ts:showInfoMessage
|
|
command:
|
|
name: "Image Viewer: Show Info"
|
|
requireEditor: "ImageViewer"
|