How to use the phovea_core/src/ajax.getAPIJSON 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 / storage.ts View on Github external
export function listNamedSets(idType : IDType | string = null):Promise {
  const args = idType ? { idType : resolve(idType).id} : {};
  return getAPIJSON('/targid/storage/namedsets/', args).then((sets: IStoredNamedSet[]) => {
    // default value
    sets.forEach((s) => s.type = s.type || ENamedSetType.NAMEDSET);

    sets = sets.filter((d) => d.creator === retrieve('username'));
    return sets;
  });
}
github Caleydo / taco / src / histogram_2d.ts View on Github external
private static getJSONRatio2D(pair) {
    const operations = ChangeTypes.forURL();
    return ajax.getAPIJSON(`/taco/compare/${pair[0]}/${pair[1]}/${operations}/ratio_2d`);
  }
github Caleydo / taco / src / grouped_bar_chart.ts View on Github external
private static getJSON(pair) {
    const operations = ChangeTypes.forURL();
    return ajax.getAPIJSON(`/taco/compare/${pair[0]}/${pair[1]}/${operations}/bar_chart`);
  }
github Caleydo / taco / src / bar_chart.ts View on Github external
private static getJSON(pair): Promise {
    const operations = ChangeTypes.forURL();
    return ajax.getAPIJSON(`/taco/compare/${pair[0]}/${pair[1]}/${operations}/bar_chart`);
  }
github Caleydo / taco / src / histogram_2d.ts View on Github external
private static getJSONHistogram(pair, binRows, binCols) {
    const operations = ChangeTypes.forURL();
    return ajax.getAPIJSON(`/taco/compare/${pair[0]}/${pair[1]}/${binRows}/${binCols}/${operations}/histogram`);
  }
github Caleydo / taco / src / diff_heat_map.ts View on Github external
private static getJSON(pair) {
    const operations = ChangeTypes.forURL();
    return ajax.getAPIJSON(`/taco/compare/${pair[0]}/${pair[1]}/${operations}/diff_heat_map`);
  }