How to use the phovea_core/src/range.none function in phovea_core

To help you get started, we’ve selected a few phovea_core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Caleydo / ordino / src / internal / cmds.ts View on Github external
export function replaceView(app: IObjectRef, existingView: IObjectRef, viewId: string, idtype: IDType, selection: Range, options?): IAction {
  const view = getPlugin(EXTENSION_POINT_TDP_VIEW, viewId);
  // assert view
  return action(meta('Replace ' + existingView.name + ' with ' + view.name, cat.visual, op.update), CMD_REPLACE_VIEW, replaceViewImpl, [app, existingView], {
    viewId,
    idtype: idtype ? idtype.id : null,
    selection: selection ? selection.toString() : none().toString(),
    options
  });
}
github Caleydo / ordino / src / internal / cmds.ts View on Github external
export function createView(app: IObjectRef, viewId: string, idtype: IDType, selection: Range, options?): IAction {
  const view = getPlugin(EXTENSION_POINT_TDP_VIEW, viewId);
  // assert view
  return action(meta('Add ' + view.name, cat.visual, op.create), CMD_CREATE_VIEW, createViewImpl, [app], {
    viewId,
    idtype: idtype ? idtype.id : null,
    selection: selection ? selection.toString() : none().toString(),
    options
  });
}