You've already forked obsidian-visualiser
Start implementing ItemEditor
This commit is contained in:
@@ -48,7 +48,7 @@ export const a: Prose = {
|
||||
}
|
||||
}
|
||||
export const preview: Prose = {
|
||||
custom(properties: { href: string, class?: Class, label: string }, children) {
|
||||
custom(properties: { href: string, class?: Class, label: string, events? }, children) {
|
||||
const href = properties.href as string;
|
||||
const { hash, pathname } = parseURL(href);
|
||||
const router = useRouter();
|
||||
@@ -72,7 +72,7 @@ export const preview: Prose = {
|
||||
queueMicrotask(() => canvas.mount());
|
||||
return dom('div', { class: 'w-[600px] h-[600px] group-data-[pinned]:h-full group-data-[pinned]:w-full h-[600px] relative w-[600px] relative' }, [canvas.container]);
|
||||
}
|
||||
return div('');
|
||||
return div();
|
||||
})).current], { position: 'bottom-start', pinned: false,
|
||||
events: {
|
||||
show: ['mouseenter', 'mousemove'],
|
||||
|
||||
Reference in New Issue
Block a user