UNPKG

@lumina-study/blocks-graph

Version:

Framework-agnostic Web Component for visualizing Lumina Study block schemas

31 lines 1.24 kB
import type { Block } from '../types/block.js'; import type { BlockSchemaV01 } from '../adaptors/v0.1/types.js'; import type { EdgeLineStyle } from '../types/edge-style.js'; export declare class BlocksGraph extends HTMLElement { private engine; private renderer; private blocks; private navigationStack; constructor(); private get selectedBlockId(); private get selectionLevel(); static get observedAttributes(): string[]; connectedCallback(): void; attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void; private updateLayoutConfig; setBlocks(blocks: Block[] | BlockSchemaV01[]): void; loadFromJson(json: string, schemaVersion?: 'v0.1'): void; private handleBlockClick; private render; get language(): string; set language(value: string); get showPrerequisites(): boolean; set showPrerequisites(value: boolean); get orientation(): string; set orientation(value: string); get prerequisiteLineStyle(): EdgeLineStyle; set prerequisiteLineStyle(value: EdgeLineStyle); get maxNodesPerLevel(): number | undefined; set maxNodesPerLevel(value: number | undefined); } //# sourceMappingURL=blocks-graph.d.ts.map