TeselaGen / openVectorEditor

DEPRECATED - Teselagen's Open Source Vector/Plasmid Editor Component
https://teselagen.github.io/tg-oss/ove/#/Editor
MIT License
200 stars 72 forks source link

Cannot access the dropped sequence file - only the sequence data? #913

Closed acostin closed 10 months ago

acostin commented 10 months ago

@tnrich Is there a way to access to dropped sequence file itself in the onImport or otherwise?

I need to grab the file to get its name and extension, but onImport only gives me the sequence data. I see that importSequenceFromFile is being called beforehand which has access to the file, but not sure how I can get it from the editor object? Is there a way to do this, or would this be a new feature request?

Thanks

tnrich commented 10 months ago

Hi @acostin,

Please note that this repo has moved to https://github.com/TeselaGen/tg-oss/

I've published a new version of ove from there @teselagen/ove@0.3.10 which should fix your issue, the new onImport signature is as follows:

image

Lemme know if this solves your issue :)

acostin commented 10 months ago

@tnrich

This works great, thanks!

tnrich commented 10 months ago

Glad to hear it!