UNPKG

@selenite/graph-editor

Version:

A graph editor for visual programming, based on rete and svelte.

36 lines (35 loc) 2.51 kB
import { type Readable } from 'svelte/store'; import type { GeosSchema } from '../geos'; import type { Action } from 'svelte/action'; export { notifications } from '../graph-editor/plugins/notifications'; export { getContext } from 'svelte'; export type NewGeosContext = { geosSchema: GeosSchema; }; export declare const themes: readonly ["light", "dark", "cupcake", "bumblebee", "emerald", "corporate", "synthwave", "retro", "cyberpunk", "valentine", "halloween", "garden", "forest", "aqua", "lofi", "pastel", "fantasy", "wireframe", "black", "luxury", "dracula", "cmyk", "autumn", "business", "acid", "lemonade", "night", "coffee", "winter", "dim", "nord", "sunset"]; export declare const darkThemes: (typeof themes)[number][]; declare class ThemeControl { #private; get theme(): string; set theme(theme: string); getThemeIndex(theme?: string | null): number | undefined; themes: readonly ["light", "dark", "cupcake", "bumblebee", "emerald", "corporate", "synthwave", "retro", "cyberpunk", "valentine", "halloween", "garden", "forest", "aqua", "lofi", "pastel", "fantasy", "wireframe", "black", "luxury", "dracula", "cmyk", "autumn", "business", "acid", "lemonade", "night", "coffee", "winter", "dim", "nord", "sunset"]; defaultDarkMode: string; defaultLightMode: string; constructor(); isDefault(): boolean; previousTheme: "light" | "dark" | "cupcake" | "bumblebee" | "emerald" | "corporate" | "synthwave" | "retro" | "cyberpunk" | "valentine" | "halloween" | "garden" | "forest" | "aqua" | "lofi" | "pastel" | "fantasy" | "wireframe" | "black" | "luxury" | "dracula" | "cmyk" | "autumn" | "business" | "acid" | "lemonade" | "night" | "coffee" | "winter" | "dim" | "nord" | "sunset"; nextTheme: "light" | "dark" | "cupcake" | "bumblebee" | "emerald" | "corporate" | "synthwave" | "retro" | "cyberpunk" | "valentine" | "halloween" | "garden" | "forest" | "aqua" | "lofi" | "pastel" | "fantasy" | "wireframe" | "black" | "luxury" | "dracula" | "cmyk" | "autumn" | "business" | "acid" | "lemonade" | "night" | "coffee" | "winter" | "dim" | "nord" | "sunset"; isLight: boolean; } export declare const themeControl: ThemeControl; export declare const keyboardShortcut: Action; export declare const _: Readable<(msg: string) => string>; export declare function getModalStore(): undefined; export declare class ErrorWNotif extends Error { constructor(params: { title?: string; message?: string; emessage: string; } | string); }