@teselagen/ove 0.3.48 → 0.3.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +2297 -1907
- package/index.es.js +2297 -1907
- package/index.umd.js +2320 -1860
- package/package.json +3 -3
- package/src/CircularView/Labels/index.js +6 -4
- package/src/CircularView/drawAnnotations.js +6 -1
- package/src/withEditorInteractions/index.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.49",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"node": "16.20.2"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@teselagen/sequence-utils": "0.3.
|
|
16
|
+
"@teselagen/sequence-utils": "0.3.10",
|
|
17
17
|
"@teselagen/range-utils": "0.3.7",
|
|
18
18
|
"@teselagen/ui": "0.3.37",
|
|
19
19
|
"@teselagen/file-utils": "0.3.9",
|
|
20
20
|
"@teselagen/bounce-loader": "0.3.11",
|
|
21
|
-
"@teselagen/bio-parsers": "0.4.
|
|
21
|
+
"@teselagen/bio-parsers": "0.4.2",
|
|
22
22
|
"@blueprintjs/core": "3.52.0",
|
|
23
23
|
"@blueprintjs/datetime": "3.23.19",
|
|
24
24
|
"@blueprintjs/icons": "3.33.0",
|
|
@@ -356,11 +356,12 @@ const DrawLabelGroup = withHover(function ({
|
|
|
356
356
|
} else {
|
|
357
357
|
//DRAW A SINGLE LABEL
|
|
358
358
|
content = [
|
|
359
|
-
|
|
359
|
+
<g hidden style={{ display: "none" }} key="labeltitle">
|
|
360
|
+
{label.title || label.text}
|
|
361
|
+
</g>,
|
|
360
362
|
<text
|
|
361
363
|
key="text"
|
|
362
364
|
data-title={label.title || label.text}
|
|
363
|
-
title={label.title || label.text}
|
|
364
365
|
{...avoidOverlapWith}
|
|
365
366
|
x={labelXStart}
|
|
366
367
|
textLength={getTextLength(text) * fontWidth}
|
|
@@ -449,7 +450,6 @@ const DrawGroupInnerLabel = withHover(
|
|
|
449
450
|
return (
|
|
450
451
|
<tspan
|
|
451
452
|
data-title={label.title}
|
|
452
|
-
title={label.title}
|
|
453
453
|
{...avoidOverlapWith}
|
|
454
454
|
x={labelXStart}
|
|
455
455
|
textLength={getTextLength(label.text) * fontWidth}
|
|
@@ -468,7 +468,9 @@ const DrawGroupInnerLabel = withHover(
|
|
|
468
468
|
{...{ onMouseOver }}
|
|
469
469
|
className={className}
|
|
470
470
|
>
|
|
471
|
-
{
|
|
471
|
+
<g hidden style={{ display: "none" }}>
|
|
472
|
+
{label.title}
|
|
473
|
+
</g>
|
|
472
474
|
{label.text}
|
|
473
475
|
</tspan>
|
|
474
476
|
);
|
|
@@ -380,7 +380,7 @@ function DrawAnnotationInner({
|
|
|
380
380
|
return (
|
|
381
381
|
<g
|
|
382
382
|
transform={transform}
|
|
383
|
-
data-title={noTitle ? null : titleText}
|
|
383
|
+
// data-title={noTitle ? null : titleText}
|
|
384
384
|
title={noTitle ? null : titleText}
|
|
385
385
|
{...avoidOverlapWith}
|
|
386
386
|
key={
|
|
@@ -390,6 +390,11 @@ function DrawAnnotationInner({
|
|
|
390
390
|
}
|
|
391
391
|
{...sharedProps}
|
|
392
392
|
>
|
|
393
|
+
{noTitle ? null : (
|
|
394
|
+
<g hidden style={{ display: "none" }}>
|
|
395
|
+
{titleText}
|
|
396
|
+
</g>
|
|
397
|
+
)}
|
|
393
398
|
<Annotation
|
|
394
399
|
{...(passAnnotation && { annotation })}
|
|
395
400
|
annotationType={annotationType}
|
|
@@ -240,7 +240,6 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
240
240
|
topLevelSeqData: sequenceData,
|
|
241
241
|
provideNewIdsForAnnotations: true,
|
|
242
242
|
annotationsAsObjects: true,
|
|
243
|
-
removeUnwantedChars: true,
|
|
244
243
|
noCdsTranslations: true
|
|
245
244
|
});
|
|
246
245
|
if (!seqDataToInsert.sequence.length)
|