Sha256: 8257de2b3df9795a9450ec1c19a3983209826563d6f2bdff6001ca15edfbdd72
Contents?: true
Size: 1.98 KB
Versions: 2
Compression:
Stored size: 1.98 KB
Contents
import LinkedList from '../../collection/linked-list'; import LinkedNode from '../../collection/linked-node'; export interface Blot extends LinkedNode { scroll: Parent; parent: Parent; prev: Blot; next: Blot; domNode: Node; attach(): void; clone(): Blot; detach(): void; insertInto(parentBlot: Parent, refBlot?: Blot): void; isolate(index: number, length: number): Blot; offset(root?: Blot): number; remove(): void; replace(target: Blot): void; replaceWith(name: string, value: any): Blot; replaceWith(replacement: Blot): Blot; split(index: number, force?: boolean): Blot; wrap(name: string, value: any): Parent; wrap(wrapper: Parent): Parent; deleteAt(index: number, length: number): void; formatAt(index: number, length: number, name: string, value: any): void; insertAt(index: number, value: string, def?: any): void; optimize(context: { [key: string]: any }): void; optimize(mutations: MutationRecord[], context: { [key: string]: any }): void; update(mutations: MutationRecord[], context: { [key: string]: any }): void; } export interface Parent extends Blot { children: LinkedList<Blot>; domNode: HTMLElement; appendChild(child: Blot): void; descendant<T>(type: { new (): T }, index: number): [T, number]; descendant<T>(matcher: (blot: Blot) => boolean, index: number): [T, number]; descendants<T>(type: { new (): T }, index: number, length: number): T[]; descendants<T>(matcher: (blot: Blot) => boolean, index: number, length: number): T[]; insertBefore(child: Blot, refNode?: Blot): void; moveChildren(parent: Parent, refNode?: Blot): void; path(index: number, inclusive?: boolean): [Blot, number][]; removeChild(child: Blot): void; unwrap(): void; } export interface Formattable extends Blot { format(name: string, value: any): void; formats(): { [index: string]: any }; } export interface Leaf extends Blot { index(node: Node, offset: number): number; position(index: number, inclusive: boolean): [Node, number]; value(): any; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_modular_admin-1.0.0 | app/assets/node_modules/parchment/src/blot/abstract/blot.ts |
rails_modular_admin-0.4.0 | app/assets/node_modules/parchment/src/blot/abstract/blot.ts |