Skip to content

EditorChanges beta ​

Class of @v12-engine/editor

ts
export declare class EditorChanges

What 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 ​

ts
constructor(
    changing?: () => boolean, 
    said?: () => void);

Constructs a new instance of the EditorChanges class

flush ​

ts
flush(): void;

What changed and was waiting, said now

mark ​

ts
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 ​

ts
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 ​

ts
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