Not every minor version will be documented here, only ones where user configuration is necessary to implement the feature.
- adding a general properties tab access it by adding "general" to the propertiesList
propertiesList: [
"general",
"features",
"parts",
"primers",
"translations",
"cutsites",
"orfs",
"genbank"
]
- panelsShown api changed: (only necessary if you don't want the defaults)
panelsShown: {
sequence: true,
rail: false,
circular: true
}
panelsShown: [
[
{
id: "sequence",
name: "Sequence Map",
active: true
}
],
[
{
id: "circular",
name: "Circular Map",
active: true
},
{
id: "rail",
name: "Linear Map",
active: false
},
{
id: "properties",
name: "Properties",
active: false
}
]
],
- Added onPaste option (used like onCopy):
onPaste: function(event, editorState) {
//the onPaste here must return sequenceData in the teselagen data format
const clipboardData = event.clipboardData;
let jsonData = clipboardData.getData("application/json")
if (jsonData) {
jsonData = JSON.parse(jsonData)
if (jsonData.isJbeiSeq) {
jsonData = convertJbeiToTeselagen(jsonData)
}
}
const sequenceData = jsonData || {sequence: clipboardData.getData("text/plain")}
return sequenceData
},