You've already forked obsidian-visualiser
Canvas CSS update
This commit is contained in:
9
types/canvas.d.ts
vendored
9
types/canvas.d.ts
vendored
@@ -3,6 +3,11 @@ export interface CanvasContent {
|
||||
edges: CanvasEdge[];
|
||||
groups: CanvasGroup[];
|
||||
}
|
||||
export type CanvasColor = {
|
||||
class?: string;
|
||||
} & {
|
||||
hex?: string;
|
||||
}
|
||||
export interface CanvasNode {
|
||||
type: 'group' | 'text';
|
||||
id: string;
|
||||
@@ -10,7 +15,7 @@ export interface CanvasNode {
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
color?: string;
|
||||
color?: CanvasColor;
|
||||
label?: string;
|
||||
text?: any;
|
||||
};
|
||||
@@ -20,7 +25,7 @@ export interface CanvasEdge {
|
||||
fromSide: 'bottom' | 'top' | 'left' | 'right';
|
||||
toNode: string;
|
||||
toSide: 'bottom' | 'top' | 'left' | 'right';
|
||||
color?: string;
|
||||
color?: CanvasColor;
|
||||
label?: string;
|
||||
};
|
||||
export interface CanvasGroup {
|
||||
|
||||
Reference in New Issue
Block a user