visualization functions seperated

This commit is contained in:
2025-03-20 09:36:10 +05:30
parent 299b3ed381
commit b9fa37cef8
21 changed files with 564 additions and 701 deletions

View File

@@ -1,21 +1,21 @@
import { create } from "zustand";
type Side = "top" | "bottom" | "left" | "right";
// type Side = "top" | "bottom" | "left" | "right";
interface Widget {
export interface Widget {
id: string;
type: string;
title: string;
panel: Side;
panel: string;
data: any;
}
interface Template {
export interface Template {
id: string;
name: string;
panelOrder: Side[];
panelOrder: string[];
widgets: Widget[];
snapshot?: string; // Add an optional image property (base64)
snapshot?: string | null; // Add an optional image property (base64)
}
interface TemplateStore {