diff --git a/plugins/svg/src/SvgFeatureRenderer/components/FeatureLabel.tsx b/plugins/svg/src/SvgFeatureRenderer/components/FeatureLabel.tsx index 3307505fa0..176862a264 100644 --- a/plugins/svg/src/SvgFeatureRenderer/components/FeatureLabel.tsx +++ b/plugins/svg/src/SvgFeatureRenderer/components/FeatureLabel.tsx @@ -52,7 +52,7 @@ export default observer(function ({ const totalWidth = featureWidth + allowedWidthExpansion const measuredTextWidth = measureText(text, fontHeight) const params = - isStateTreeNode(displayModel) && isAlive(displayModel) + isStateTreeNode(displayModel) && isAlive(displayModel) && !exportSVG ? getViewParams(displayModel) : viewParams diff --git a/test_data/volvox/config_main_thread.json b/test_data/volvox/config_main_thread.json index 3375096adf..f57f5b15bf 100644 --- a/test_data/volvox/config_main_thread.json +++ b/test_data/volvox/config_main_thread.json @@ -106,6 +106,30 @@ } } } + }, + { + "type": "FeatureTrack", + "trackId": "gff3tabix_genes", + "assemblyNames": ["volvox"], + "name": "GFF3Tabix genes", + "formatDetails": { + "feature": "jexl:{name:''+feature.name+'',extrafield:'Field added with custom callback:' + feature.name,phase:undefined,type:undefined}", + "subfeatures": "jexl:{name:'Subfeature: '+(!feature.name?'No name':feature.name)+''}" + }, + "category": ["Miscellaneous"], + "adapter": { + "type": "Gff3TabixAdapter", + "gffGzLocation": { + "uri": "volvox.sort.gff3.gz", + "locationType": "UriLocation" + }, + "index": { + "location": { + "uri": "volvox.sort.gff3.gz.tbi", + "locationType": "UriLocation" + } + } + } } ] }