SNIK Graph - v26.11
    Preparing search index...

    Class Filter

    Toggles the visibility of a set of nodes defined by a selector.

    Index
    a: HTMLAnchorElement
    checkbox: HTMLInputElement
    cssClass: string
    label: string
    selector: string
    visible: boolean
    • Set the visibility of the nodes selected by the filter. visible whether the nodes should be visible

      Parameters

      • visible: boolean

      Returns void

    • Add filter entries to the filter menu.

      Parameters

      • parent: HTMLElement

        the parent element to attach the entries to

      • as: HTMLAnchorElement[]

        an empty array of HTML anchors to be filled

      Returns void

    • Loads the visibility values and applies it to all filters. The graph itself is restored from the saved Cytoscape JSON which already contains the filter classes, this only synchronizes the checkboxes. Missing values default to visible for compatibility with older save files.

      Parameters

      • json: object

        JSON representation of all filters

      Returns void

    • Show or hide the elements of all filters at once.

      Parameters

      • visible: boolean

        whether all filterable elements should be visible

      Returns void

    • Saves the visibility values of all filters.

      Returns object

      JSON representation of all filters