Visualization
    Preparing search index...

    Interface ModLayer

    Represents an instance of a dynamic layer in a mod visualization.

    2.4

    interface ModLayer {
        id: string;
        type: string;
        axis(name: string): ReadableProxy<Axis>;
        axis(name: string, dataViewName: string): ReadableProxy<Axis>;
        data(): DataViewProxy;
        data(name?: string): DataViewProxy;
        mainTable(): ReadableProxy<DataTable>;
        mainTable(dataViewName?: string): ReadableProxy<DataTable>;
        property<T extends ModPropertyDataType>(
            name: string,
        ): ReadableProxy<ModProperty<T>>;
        setMainTable(tableName: string): void;
        setMainTable(tableName: string, dataViewName?: string): void;
        setMainTable(table: DataTable): void;
        setMainTable(table: DataTable, dataViewName?: string): void;
        title(dataViewName?: string): ReadableProxy<Title>;
    }
    Index

    Properties

    id: string

    The id of the layer instance.

    type: string

    The type of the layer, as defined in the manifest.

    Methods

    • Provides access to the Axis in the layer with the specified name. All axes must be declared in the mod-manifest.json.

      Parameters

      • name: string

        The name of the Axis.

      Returns ReadableProxy<Axis>

    • Provides access to the Axis in the layer with the specified axisName in the data view with name dataViewName. All axes must be declared in the mod-manifest.json.

      Parameters

      • name: string
      • dataViewName: string

        The name of the DataView.

      Returns ReadableProxy<Axis>

    • Sets the main DataTable in the layer.

      Parameters

      • tableName: string

        The name or id of the DataTable to be used as main table.

      Returns void

    • Sets the main DataTable of the named data view in the layer.

      Parameters

      • tableName: string

        The name or id of the DataTable to be used as main table.

      • OptionaldataViewName: string

        The name of the DataView.

      Returns void

    • Sets the main DataTable in the layer.

      Parameters

      Returns void

    • Sets the main DataTable of the named data view in the layer.

      Parameters

      Returns void