Interface IVariant

Variant Class A Variant is a variant of the ordinal. It's a visual distinct visual representation. It can be 2D and / or 3D or any other variation. Not to be confused with Composition.

interface IVariant {
    id: string;
    type?: OrdinalType;
    name?: string;
    onDisplay?: (() => Promise<void>);
    onHide?: (() => Promise<void>);
    onExport?: (() => Promise<Export>);
}

Properties

id: string
name?: string
onDisplay?: (() => Promise<void>)
onHide?: (() => Promise<void>)
onExport?: (() => Promise<Export>)