Esempio n. 1
0
  {payload: 'basis', text: 'Basis'},
  {payload: 'bundle', text: 'Bundle'},
  {payload: 'cardinal', text: 'Cardinal'},
  {payload: 'monotone', text: 'Monotone'}
];
const INTERPOLATION_HAS_TENSION = {
  cardinal: true
};

let PerRowScaledSVGChannel = createReactClass({
  displayName: 'PerRowScaledSVGChannel',

  mixins: [
    PureRenderWithRedirectedProps({
      redirect: [
        'setProps',
        'onClose'
      ]
    }),
    FluxMixin,
    ConfigMixin
  ],

  propTypes: {
    setProps: PropTypes.func,
    chromosome: PropTypes.string,
    start: PropTypes.number,
    end: PropTypes.number,
    width: PropTypes.number,
    sideWidth: PropTypes.number,
    interpolation: PropTypes.string,
    autoYScale: PropTypes.bool,
Esempio n. 2
0
import Select from '@material-ui/core/Select';
import MenuItem from '@material-ui/core/MenuItem';
import uid from 'uid';
import {FormControl} from '@material-ui/core';
import {Input, InputLabel} from '@material-ui/core';


const PropertySelector = createReactClass({
  displayName: 'PropertySelector',

  mixins: [
    PureRenderWithRedirectedProps({
      redirect: [
        'onSelect'
      ],
      check: [
        'table',
        'value'
      ]
    }),
    FluxMixin,
    ConfigMixin
  ],

  propTypes: {
    table: PropTypes.string,
    value: PropTypes.string,
    filter: PropTypes.func,
    onSelect: PropTypes.func,
    label: PropTypes.string,
    allowNull: PropTypes.bool
Esempio n. 3
0
import QueryString from 'panoptes/QueryString';
import FilterButton from 'panoptes/FilterButton';
import TooltipEllipsis from 'ui/TooltipEllipsis';

import Checkbox from '@material-ui/core/Checkbox';


let CategoricalChannel = createReactClass({
  displayName: 'CategoricalChannel',

  mixins: [
    FluxMixin,
    ConfigMixin,
    PureRenderWithRedirectedProps({
      redirect: [
        'setProps',
        'onClose'
      ]
    })
  ],

  propTypes: {
    setProps: PropTypes.func,
    chromosome: PropTypes.string,
    start: PropTypes.number,
    end: PropTypes.number,
    width: PropTypes.number,
    height: PropTypes.number,
    sideWidth: PropTypes.number,
    autoYScale: PropTypes.bool,
    fractional: PropTypes.bool,
    yMin: PropTypes.number,
Esempio n. 4
0
import Alert from 'ui/Alert';

// Panoptes
import ListView from 'panoptes/ListView';
import ItemTemplate from 'panoptes/ItemTemplate';
import DataItem from 'DataItem';
import DataDownloader from 'util/DataDownloader';
import HTMLWithComponents from 'panoptes/HTMLWithComponents';
import DataItemViews from 'panoptes/DataItemViews';

let ListWithActions = createReactClass({
  displayName: 'ListWithActions',

  mixins: [
    PureRenderWithRedirectedProps({
      redirect: ['setProps']
    }),
    FluxMixin,
    ConfigMixin
  ],

  propTypes: {
    setProps: PropTypes.func,
    title: PropTypes.string,
    table: PropTypes.string.isRequired,
    selectedPrimKey: PropTypes.string,
    sidebar: PropTypes.bool,
    initialSearchFocus: PropTypes.bool,
    search: PropTypes.string
  },
Esempio n. 5
0
import YScale from 'panoptes/genome/tracks/YScale';


import {Motion, spring} from 'react-motion';
const DEFAULT_SPRING = {stiffness: 160, damping: 30};
const NO_SPRING = {stiffness: 2000, damping: 80};

let CanvasGroupChannel = createReactClass({
  displayName: 'CanvasGroupChannel',

  mixins: [
    PureRenderWithRedirectedProps({
      redirect: [
        'onTap',
        'onMouseMove',
        'onMouseOver',
        'onMouseOut',
        'onClose'
      ]
    })
  ],

  propTypes: {
    chromosome: PropTypes.string,
    start: PropTypes.number,
    end: PropTypes.number,
    width: PropTypes.number,
    height: PropTypes.number,
    sideWidth: PropTypes.number,
    autoYScale: PropTypes.bool,
    yMin: PropTypes.number,

const ALLOWED_CHILDREN = [
  'NumericalSummaryTrack'
];
const colourFunc = categoryColours('__default__');

let NumericalTrackGroupChannel = createReactClass({
  displayName: 'NumericalTrackGroupChannel',

  mixins: [
    FluxMixin,
    ConfigMixin,
    PureRenderWithRedirectedProps({
      redirect: [
        'setProps',
        'onClose'
      ]
    })
  ],

  propTypes: {
    table: PropTypes.string, //If specified limits choices in add/remove and enables query picking
    query: PropTypes.string, //Only used if table specified
    width: PropTypes.number,
    sideWidth: PropTypes.number,
    children: PropTypes.node,
    setProps: PropTypes.func,
    childrenHash: PropTypes.number  //Perf - passed down to Legend and Side
  },

  getInitialState() {