selectAllWithParent()

in src/core/main.ts [3628:3675]


    selectAllWithParent(".option_rb").select("input").property("disabled", function (d) {
      switch (d.name) {

        case "Chronological":
          return !(representation !== "Spiral" && representation !== "Curve");

        case "Relative":
          return !(layout === "Faceted" && (representation === "Linear" || representation === "Radial"));

        case "Log":
          return !(representation === "Linear" && layout !== "Segmented");

        case "Collapsed":
          return !(representation === "Linear" && layout === "Unified");

        case "Sequential":
          return !((representation !== "Grid" && representation !== "Calendar") && layout !== "Segmented");

        case "Unified":
          return !(scale !== "Relative" && representation !== "Grid" && representation !== "Calendar");

        case "Faceted":
          return !(scale !== "Collapsed" && representation !== "Grid" && representation !== "Calendar" && representation !== "Curve" && globals.total_num_facets > 1);

        case "Segmented":
          return !(scale === "Chronological" && representation !== "Spiral" && representation !== "Curve");

        case "Linear":
          return false;

        case "Calendar":
          return !(scale === "Chronological" && layout === "Segmented" && (["weeks", "months", "years", "decades"].indexOf(globals.segment_granularity) !== -1));

        case "Grid":
          return !(scale === "Chronological" && layout === "Segmented" && (["decades", "centuries", "millenia"].indexOf(globals.segment_granularity) !== -1));

        case "Radial":
          return !(scale !== "Log" && scale !== "Collapsed");

        case "Spiral":
          return !(scale === "Sequential" && (layout === "Unified" || layout === "Faceted"));

        case "Curve":
          return !(scale === "Sequential" && layout === "Unified");
        default:
          return;
      }
    });