How to use the teselagen-react-components.withSelectedEntities function in teselagen-react-components

To help you get started, we’ve selected a few teselagen-react-components 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 TeselaGen / openVectorEditor / src / GuideTool / index.js View on Github external
}
    },
    {
      path: "forward",
      displayName: "Strand",
      type: "boolean",
      render: val => (val ? "+" : "-")
    },
    { width: 200, path: "sequence", displayName: "Sequence", type: "string" },
    { path: "pam", displayName: "PAM", type: "string" },
    { path: "onTargetScore", displayName: "On-Target", type: "number" },
    { path: "offTargetScore", displayName: "Off-Target", type: "number" }
  ]
};

export default withSelectedEntities("guideTable")(GuideTool);
github TeselaGen / openVectorEditor / src / helperComponents / RemoveDuplicates / index.js View on Github external
}}
            disabled={!(duplicatesToRemoveSelectedEntities || []).length}
          >
            Remove {duplicatesToRemoveSelectedEntities.length} Duplicates
          
        
      
    );
  }
}

export default compose(
  withDialog(),
  withEditorProps,

  withSelectedEntities("duplicatesToRemove"),

  reduxForm({
    form: "RemoveDuplicatesDialog"
  }),
  formValues("ignoreName", "ignoreStrand", "ignoreStartAndEnd")
)(RemoveDuplicatesDialog);
github TeselaGen / openVectorEditor / src / helperComponents / PropertiesDialog / OrfProperties.js View on Github external
export default compose(
  connectToEditor(editorState => {
    const {
      readOnly,
      annotationVisibility = {},
      sequenceData: { sequence = "" } = {}
    } = editorState;
    return {
      readOnly,
      annotationVisibility,
      orfs: selectors.orfsSelector(editorState),
      sequenceLength: sequence.length
    };
  }),
  withSelectedEntities("orfProperties")
)(OrfProperties);
github TeselaGen / openVectorEditor / src / helperComponents / PropertiesDialog / GenericAnnotationProperties.js View on Github external
);
    }
  }

  return compose(
    connectToEditor(({ readOnly, annotationVisibility = {}, sequenceData }) => {
      return {
        annotationVisibility,
        readOnly,
        annotations: sequenceData[annotationType + "s"],
        [annotationType + "s"]: sequenceData[annotationType + "s"],
        sequenceLength: sequenceData.sequence.length
      };
    }),
    withSelectedEntities("annotationProperties")
  )(AnnotationProperties);
};
github TeselaGen / openVectorEditor / src / helperComponents / PropertiesDialog / PartProperties.js View on Github external
export default compose(
  connectToEditor(
    ({
      readOnly,
      annotationVisibility = {},
      sequenceData: { sequence = "", parts = {} } = {}
    }) => {
      return {
        readOnly,
        parts,
        annotationVisibility,
        sequenceLength: sequence.length
      };
    }
  ),
  withSelectedEntities("partProperties")
)(PartProperties);
github TeselaGen / openVectorEditor / src / helperComponents / PropertiesDialog / CutsiteProperties.js View on Github external
schema={this.schema}
          entities={cutsitesToUse}
        />
      
    );
  }
}

export default compose(
  connectToEditor(editorState => {
    return {
      annotationVisibility: editorState.annotationVisibility || {},
      filteredCutsites: selectors.filteredCutsitesSelector(editorState)
    };
  }),
  withSelectedEntities("cutsiteProperties")
)(CutsiteProperties);
github TeselaGen / openVectorEditor / src / helperComponents / PropertiesDialog / FeatureProperties.js View on Github external
export default compose(
  connectToEditor(
    ({
      readOnly,
      annotationVisibility = {},
      sequenceData: { sequence = "", features = {} } = {}
    }) => {
      return {
        annotationVisibility,
        readOnly,
        features,
        sequenceLength: sequence.length
      };
    }
  ),
  withSelectedEntities("featureProperties")
)(FeatureProperties);

const ColorPickerPopover = ({ readOnly, onColorSelect, children }) => {
  return (
    }
    >
      {children}
    
  );
};
github TeselaGen / openVectorEditor / src / AlignmentView / Mismatches.js View on Github external
overflowY: "auto",
                                    whiteSpace: "nowrap",
                                    fontSize: 13,
                                    textAlign: "center"
                                }}>
                                    <b>{mismatchList[0].name}</b>
                                 */}
            {tableOfMismatches}
          
        
      
    );
  }
}

export default withSelectedEntities("mismatchesTable")(Mismatches);
github TeselaGen / openVectorEditor / src / helperComponents / PropertiesDialog / PrimerProperties.js View on Github external
export default compose(
  connectToEditor(
    ({
      readOnly,
      annotationVisibility = {},
      sequenceData: { sequence = "", primers = {} } = {}
    }) => {
      return {
        readOnly,
        annotationVisibility,
        primers,
        sequenceLength: sequence.length
      };
    }
  ),
  withSelectedEntities("primerProperties")
)(PrimerProperties);
github TeselaGen / openVectorEditor / src / helperComponents / PropertiesDialog / TranslationProperties.js View on Github external
}
}

export default compose(
  connectToEditor(editorState => {
    const { readOnly, annotationVisibility = {}, sequenceData } = editorState;
    return {
      readOnly,
      translations: selectors.translationsSelector(editorState),
      orfs: selectors.orfsSelector(editorState),
      annotationVisibility,
      sequenceLength: (sequenceData.sequence || "").length,
      sequenceData
    };
  }),
  withSelectedEntities("translationProperties")
)(TranslationProperties);