EditorChanges beta
Class of @v12-engine/editor
export declare class EditorChangesWhat of the editor changed (editor.changes): of(...kinds) is read by what follows those parts (a panel's computation runs again when one of them changes), on(kinds, listener) hears of them outside Solid, mark(kind) is what a part says as it changes
Members
constructor
constructor(
changing?: () => boolean,
said?: () => void);Constructs a new instance of the EditorChanges class
flush
flush(): void;What changed and was waiting, said now
mark
mark(...kinds: EditorChangeKind[]): void;A part of the editor changed: what follows it reads it again (in the middle of a drag, a moment after)
of
of(...kinds: EditorChangeKind[]): number;How many changes of these parts there were: read in a computation, it runs again when one of them changes. Read outside one, a number that moves when they do (what is drawn every frame compares it)
on
on(kinds: readonly EditorChangeKind[], listener: (changed: ReadonlySet<EditorChangeKind>) => void): () => void;Hears of changes of these parts, with which of them changed: for what is not drawn by Solid. Gives back what stops it