All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.blots.embed.d.ts Maven / Gradle / Ivy

import type { ScrollBlot } from 'parchment';
import { EmbedBlot } from 'parchment';
export interface EmbedContextRange {
    startNode: Node | Text;
    startOffset: number;
    endNode?: Node | Text;
    endOffset?: number;
}
declare class Embed extends EmbedBlot {
    contentNode: HTMLSpanElement;
    leftGuard: Text;
    rightGuard: Text;
    constructor(scroll: ScrollBlot, node: Node);
    index(node: Node, offset: number): number;
    restore(node: Text): EmbedContextRange | null;
    update(mutations: MutationRecord[], context: Record): void;
}
export default Embed;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy