UNPKG

@dodona/papyros

Version:

Scratchpad for multiple programming languages in the browser.

24 lines (23 loc) 874 B
import { LitElement } from "lit"; import { EditorView } from "@codemirror/view"; import { Compartment, Extension } from "@codemirror/state"; export declare class CodeMirrorEditor extends LitElement { private __value; private __readonly; protected view: EditorView | undefined; protected readonly compartments: Map<string, Compartment>; protected readonly extensions: Map<string, Extension>; set value(value: string); set readonly(readonly: boolean); protected dispatchChange(): void; get value(): string; set placeholder(value: string); set theme(theme: Extension); set translations(translations: Record<string, string>); private initView; private onViewUpdate; connectedCallback(): void; focus(): void; disconnectedCallback(): void; protected configure(extensions: Record<string, Extension>): void; }