vis-util
    Preparing search index...

    Function mergeOptions

    • This is used to set the options of subobjects in the options object.

      A requirement of these subobjects is that they have an 'enabled' element which is optional for the user but mandatory for the program.

      The added value here of the merge is that option 'enabled' is set as required.

      Parameters

      • mergeTarget: any

        Either this.options or the options used for the groups.

      • options: any

        Options.

      • option: string

        Option key in the options argument.

      • globalOptions: any = {}

        Global options, passed in to determine value of option 'enabled'.

      Returns void