whole_func_string: function modalOpen (options) {
      if (isString(options)) options = optionsFromTarget(options);
      var modal = select('#d3-view-modal');
      if (!modal.size())
          select('body').append('modal').mount(options, vm => vm.model.$showModal());
      else
          modal.model().$update(options).$showModal();
  }
func_code_string: function modalOpen (options) {
      if (isString(options)) options = optionsFromTarget(options);
      var modal = select('#d3-view-modal');
      if (!modal.size())
          select('body').append('modal').mount(options, vm => vm.model.$showModal());
      else
          modal.model().$update(options).$showModal();
  }
func_documentation_string: function for opening a modal inject this method to the root model