MVFv3 API Documentation
    Preparing search index...

    Module @mappedin/mvf-kinds - v3.0.0-beta.10

    MVF Kinds

    The Kinds extension provides a high level categorization of geometry in an MVF. A geometry can have only ONE kind, from the KIND enum. Examples include room, hallway, wall, and area.

    Note that this is a SafeStringEnum, so unknown is a valid value. New kinds will likely be added in the future, and if the version of the MVF package being used does not support it, it will be downgraded to unknown automatically.

    When consuming an MVF directly without this package, the downgrade will need to be handled by the application. An application may ignore the unknown kind, or have some generic behavior, but it must not crash or throw errors.

    The Kinds extension adds a kinds property to the MVF, which is a record of FloorId to GeometryKinds objects.

    GeometryKinds are records of GeometryId to Kind objects.

    {
    "kinds": {
    "f_000001": {
    "g_000001": "room",
    "g_000002": "hallway"
    }
    }
    }

    Type Aliases

    GeometryKinds
    GeometryKindsSchema
    Kind
    KIND_TYPE

    Variables

    KIND
    KINDS
    KindsExtension