@teselagen/ove 0.7.27 → 0.7.29
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/AlignmentView/Mismatches.d.ts +3 -3
- package/CircularView/Labels/index.d.ts +1 -1
- package/CircularView/index.d.ts +0 -1
- package/CreateAnnotationsPage.d.ts +4 -4
- package/DigestTool/Ladder.d.ts +1 -1
- package/Reflex/index.d.ts +0 -1
- package/RowView/index.d.ts +0 -1
- package/ToolBar/ToolbarItem.d.ts +1 -3
- package/{html2canvas.esm--JN4fLQL.js → html2canvas.esm-DiGWN1gP.js} +187 -229
- package/{html2canvas.esm-B7d7VJmQ.cjs → html2canvas.esm-J1esNpMJ.cjs} +187 -229
- package/index.cjs.js +48860 -47778
- package/index.es.js +48394 -47312
- package/index.umd.js +58974 -58260
- package/{style.css → ove.css} +1 -1
- package/package.json +5 -8
- package/selectors/annotationSearchSelector.d.ts +1 -1
- package/src/Editor/DropHandler.js +2 -1
- package/src/Editor/index.js +0 -2
- package/src/RowItem/StackedAnnotations/getStructuredBases.js +20 -6
- package/src/ToolBar/cutsiteTool.js +1 -1
- package/src/helperComponents/PropertiesDialog/TranslationProperties.js +2 -1
- package/updateEditor.d.ts +1 -3
- package/utils/getAnnotationNameAndStartStopString.d.ts +1 -5
- package/utils/selectionLayer.d.ts +2 -2
- package/withEditorInteractions/getBpsPerRow.d.ts +1 -3
package/{style.css → ove.css}
RENAMED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.29",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"./*": "./*"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@teselagen/sequence-utils": "0.3.
|
|
14
|
+
"@teselagen/sequence-utils": "0.3.31",
|
|
15
15
|
"@teselagen/range-utils": "0.3.13",
|
|
16
|
-
"@teselagen/ui": "0.
|
|
16
|
+
"@teselagen/ui": "0.8.6-beta.23",
|
|
17
17
|
"@teselagen/file-utils": "0.3.20",
|
|
18
|
-
"@teselagen/bio-parsers": "0.4.
|
|
18
|
+
"@teselagen/bio-parsers": "0.4.28",
|
|
19
19
|
"@blueprintjs/core": "3.54.0",
|
|
20
20
|
"@hello-pangea/dnd": "16.2.0",
|
|
21
21
|
"@risingstack/react-easy-state": "^6.3.0",
|
|
@@ -62,10 +62,7 @@
|
|
|
62
62
|
"biomsa": "^0.2.4",
|
|
63
63
|
"shortid": "2.2.16",
|
|
64
64
|
"@use-gesture/react": "10.3.0",
|
|
65
|
-
"
|
|
66
|
-
"@vitejs/plugin-react": "^4.3.0",
|
|
67
|
-
"vite-plugin-libcss": "^1.1.1",
|
|
68
|
-
"vite-tsconfig-paths": "^4.3.2"
|
|
65
|
+
"@playwright/test": "^1.44.1"
|
|
69
66
|
},
|
|
70
67
|
"license": "MIT"
|
|
71
68
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const searchableTypes: string[];
|
|
2
|
-
declare const _default: ((state: any) => any[][]) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, ...
|
|
2
|
+
declare const _default: ((state: any) => any[][]) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, ...args: any[]) => any[][], {
|
|
3
3
|
clearCache: () => void;
|
|
4
4
|
}> & {
|
|
5
5
|
clearCache: () => void;
|
package/src/Editor/index.js
CHANGED
|
@@ -55,8 +55,6 @@ import { getClientX, getClientY } from "../utils/editorUtils";
|
|
|
55
55
|
import PCRTool from "../PCRTool/PCRTool";
|
|
56
56
|
import classNames from "classnames";
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
58
|
// if (process.env.NODE_ENV !== 'production') {
|
|
61
59
|
// const {whyDidYouUpdate} = require('why-did-you-update');
|
|
62
60
|
// whyDidYouUpdate(React);
|
|
@@ -28,11 +28,25 @@ export function getStructuredBases({
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
|
|
32
|
+
const wrapsOrigin = start > end;
|
|
33
|
+
let aRange;
|
|
34
|
+
if (!wrapsOrigin) {
|
|
35
|
+
aRange = {
|
|
36
|
+
//tnr: this probably needs to be changed in case annotation wraps origin
|
|
37
|
+
start: annotationRange.start - start,
|
|
38
|
+
end: annotationRange.end - start
|
|
39
|
+
};
|
|
40
|
+
} else {
|
|
41
|
+
aRange = {
|
|
42
|
+
start: annotationRange.start === 0 ? sequenceLength - start : 0,
|
|
43
|
+
end:
|
|
44
|
+
annotationRange.start === 0
|
|
45
|
+
? annLen - 1
|
|
46
|
+
: getRangeLength(annotationRange) - 1
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
36
50
|
const r = {
|
|
37
51
|
aRange,
|
|
38
52
|
basesNoInserts: basesToUse,
|
|
@@ -63,7 +77,7 @@ export function getStructuredBases({
|
|
|
63
77
|
forward ? r.basesNoInserts : r.basesNoInserts.split("").reverse().join("")
|
|
64
78
|
);
|
|
65
79
|
r.basesNoInsertsWithMetaData = basesForRange.split("").map((b, i) => {
|
|
66
|
-
const indexOfBase = i + annotationRange.start;
|
|
80
|
+
const indexOfBase = (i + annotationRange.start) % sequenceLength;
|
|
67
81
|
let seqForBase = (fullSequence && fullSequence[indexOfBase]) || "";
|
|
68
82
|
if (!forward) {
|
|
69
83
|
seqForBase = getComplementSequenceString(seqForBase);
|
|
@@ -44,7 +44,8 @@ class TranslationProperties extends React.Component {
|
|
|
44
44
|
const translationsToUse = map(translations, translation => {
|
|
45
45
|
let aaString = "";
|
|
46
46
|
for (let i = 0; i < translation.aminoAcids.length; i++) {
|
|
47
|
-
|
|
47
|
+
// sometimes the `translation.aminoAcids[i].aminoAcid` is null
|
|
48
|
+
aaString += translation.aminoAcids[i].aminoAcid?.value || "";
|
|
48
49
|
}
|
|
49
50
|
return {
|
|
50
51
|
...translation,
|
package/updateEditor.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export default function updateEditor(store: any, editorName: any, initialValues?: {}, extraMeta?: {}, { convertAnnotationsFromAAIndices }?: {
|
|
2
|
-
convertAnnotationsFromAAIndices: any;
|
|
3
|
-
}): void;
|
|
1
|
+
export default function updateEditor(store: any, editorName: any, initialValues?: {}, extraMeta?: {}, { convertAnnotationsFromAAIndices }?: {}): void;
|
|
@@ -7,8 +7,4 @@ export default function getAnnotationNameAndStartStopString({ name, start, end,
|
|
|
7
7
|
annotationTypePlural: any;
|
|
8
8
|
overlapsSelf: any;
|
|
9
9
|
isWrappedAddon: any;
|
|
10
|
-
}, { startText, isProtein, readOnly }?: {
|
|
11
|
-
startText: any;
|
|
12
|
-
isProtein: any;
|
|
13
|
-
readOnly: any;
|
|
14
|
-
}): string;
|
|
10
|
+
}, { startText, isProtein, readOnly }?: {}): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function getAllSelectionLayers({ additionalSelectionLayers, searchLayers, selectionLayer }: {
|
|
2
|
-
additionalSelectionLayers?:
|
|
3
|
-
searchLayers?:
|
|
2
|
+
additionalSelectionLayers?: never[] | undefined;
|
|
3
|
+
searchLayers?: never[] | undefined;
|
|
4
4
|
selectionLayer: any;
|
|
5
5
|
}): any[];
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export default function getBpsPerRow({ charWidth, width, dimensions: { width: width2 }, marginWidth, sequenceData }: {
|
|
2
2
|
charWidth?: number | undefined;
|
|
3
3
|
width?: number | undefined;
|
|
4
|
-
dimensions?: {
|
|
5
|
-
width: any;
|
|
6
|
-
} | undefined;
|
|
4
|
+
dimensions?: {} | undefined;
|
|
7
5
|
marginWidth?: number | undefined;
|
|
8
6
|
sequenceData: any;
|
|
9
7
|
}): number;
|