@rivm-loculus-tools/sequence-editor 0.1.4 → 0.1.5
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/dist/_chunks/Box.js +6737 -0
- package/dist/_chunks/Box.js.map +1 -0
- package/dist/_chunks/Close.js +7 -0
- package/dist/_chunks/Close.js.map +1 -0
- package/dist/_chunks/EditorWorkerService.js +126 -0
- package/dist/_chunks/EditorWorkerService.js.map +1 -0
- package/dist/_chunks/KeyboardArrowDown.js +1023 -0
- package/dist/_chunks/KeyboardArrowDown.js.map +1 -0
- package/dist/_chunks/Redo.js +2559 -0
- package/dist/_chunks/Redo.js.map +1 -0
- package/dist/_chunks/SequenceEditor.js +860 -0
- package/dist/_chunks/SequenceEditor.js.map +1 -0
- package/dist/_chunks/SequenceEditorEventBusService.js +102 -0
- package/dist/_chunks/SequenceEditorEventBusService.js.map +1 -0
- package/dist/_chunks/SequenceEditorMainPage.js +552 -0
- package/dist/_chunks/SequenceEditorMainPage.js.map +1 -0
- package/dist/_chunks/SequenceEditorPageDrawer.js +49842 -0
- package/dist/_chunks/SequenceEditorPageDrawer.js.map +1 -0
- package/dist/_chunks/SequenceEditorPageHeader.js +236 -0
- package/dist/_chunks/SequenceEditorPageHeader.js.map +1 -0
- package/dist/_chunks/SequenceEditorSearchBar.js +143 -0
- package/dist/_chunks/SequenceEditorSearchBar.js.map +1 -0
- package/dist/_chunks/TestIdUtil.js +4695 -0
- package/dist/_chunks/TestIdUtil.js.map +1 -0
- package/dist/_chunks/TextField.js +3083 -0
- package/dist/_chunks/TextField.js.map +1 -0
- package/dist/_chunks/rolldown-runtime.js +13 -0
- package/dist/_chunks/sequenceEditorStore.js +407 -0
- package/dist/_chunks/sequenceEditorStore.js.map +1 -0
- package/dist/_chunks/sequence_editor.js +517 -0
- package/dist/_chunks/sequence_editor.js.map +1 -0
- package/dist/_chunks/withDialog.js +289 -0
- package/dist/_chunks/withDialog.js.map +1 -0
- package/dist/assets/index-C5rc-pJV.js +8 -0
- package/dist/assets/index-C5rc-pJV.js.map +1 -0
- package/dist/classes/services/EditorWorkerService/EditorWorkerService.d.ts +27 -0
- package/dist/classes/services/EditorWorkerService/index.js +2 -0
- package/dist/classes/services/SequenceEditorEventBusService/SequenceEditorEventBusService.d.ts +25 -0
- package/dist/classes/services/SequenceEditorEventBusService/index.js +2 -0
- package/dist/classes/workers/EngineWorker/EngineWorker.d.ts +46 -0
- package/dist/classes/workers/EngineWorker/index.js +110 -0
- package/dist/classes/workers/EngineWorker/index.js.map +1 -0
- package/dist/components/app/App/App.d.ts +1 -0
- package/dist/components/app/App/index.js +957 -0
- package/dist/components/app/App/index.js.map +1 -0
- package/dist/components/pages/EmptyWorkspace.d.ts +3 -0
- package/dist/components/pages/SequenceEditorErrorPage/SequenceEditorErrorPage.d.ts +3 -0
- package/dist/components/pages/SequenceEditorErrorPage/index.js +12 -0
- package/dist/components/pages/SequenceEditorErrorPage/index.js.map +1 -0
- package/dist/components/pages/SequenceEditorMainPage/SequenceEditorMainPage.d.ts +1 -0
- package/dist/components/pages/SequenceEditorMainPage/index.js +2 -0
- package/dist/components/ui/SequenceEditor/SequenceEditor.d.ts +1 -0
- package/dist/components/ui/SequenceEditor/SequenceEditorGotoPositionDialog.d.ts +8 -0
- package/dist/components/ui/SequenceEditor/SequenceEditorStatusBar.d.ts +1 -0
- package/dist/components/ui/SequenceEditor/index.js +2 -0
- package/dist/components/ui/SequenceEditorPage/SequenceEditorPage.d.ts +5 -0
- package/dist/components/ui/SequenceEditorPage/index.js +15 -0
- package/dist/components/ui/SequenceEditorPage/index.js.map +1 -0
- package/dist/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawer.d.ts +1 -0
- package/dist/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawerColorForm.d.ts +7 -0
- package/dist/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawerKeyboardShortcuts.d.ts +1 -0
- package/dist/components/ui/SequenceEditorPageDrawer/index.js +2 -0
- package/dist/components/ui/SequenceEditorPageHeader/SequenceEditorPageHeader.d.ts +1 -0
- package/dist/components/ui/SequenceEditorPageHeader/index.js +2 -0
- package/dist/components/ui/SequenceEditorSearchBar/SequenceEditorSearchBar.d.ts +1 -0
- package/dist/components/ui/SequenceEditorSearchBar/index.js +2 -0
- package/dist/constants/editor.d.ts +4 -0
- package/dist/constants/editor.js +14 -0
- package/dist/constants/editor.js.map +1 -0
- package/dist/constants/index.js +4 -0
- package/dist/constants/keyboard.d.ts +10 -0
- package/dist/constants/keyboard.js +179 -0
- package/dist/constants/keyboard.js.map +1 -0
- package/dist/constants/palette.d.ts +15 -0
- package/dist/constants/palette.js +196 -0
- package/dist/constants/palette.js.map +1 -0
- package/dist/models/editor.d.ts +6 -0
- package/dist/models/editor.js +8 -0
- package/dist/models/editor.js.map +1 -0
- package/dist/models/model.d.ts +250 -0
- package/dist/models/model.js +10 -0
- package/dist/models/model.js.map +1 -0
- package/dist/models/palette.d.ts +61 -0
- package/dist/models/palette.js +10 -0
- package/dist/models/palette.js.map +1 -0
- package/dist/stores/sequenceEditorStore/index.js +2 -0
- package/dist/stores/sequenceEditorStore/sequenceEditorStore.d.ts +36 -0
- package/dist/utils/EditorUtil/EditorUtil.d.ts +96 -0
- package/dist/utils/EditorUtil/index.js +544 -0
- package/dist/utils/EditorUtil/index.js.map +1 -0
- package/dist/utils/EngineErrorUtil/EngineErrorUtil.d.ts +4 -0
- package/dist/utils/PaletteUtil/PaletteUtil.d.ts +6 -0
- package/dist/utils/PaletteUtil/index.js +19 -0
- package/dist/utils/PaletteUtil/index.js.map +1 -0
- package/package.json +5 -2
- package/.gitkeep +0 -0
- package/CHANGELOG.md +0 -37
- package/eslint.config.js +0 -16
- package/scripts/update-exports.js +0 -9
- package/src/classes/services/EditorWorkerService/EditorWorkerService.ts +0 -163
- package/src/classes/services/SequenceEditorEventBusService/SequenceEditorEventBusService.ts +0 -37
- package/src/classes/workers/EngineWorker/EngineWorker.ts +0 -196
- package/src/components/app/App/App.tsx +0 -22
- package/src/components/pages/EmptyWorkspace.tsx +0 -43
- package/src/components/pages/SequenceEditorErrorPage/SequenceEditorErrorPage.tsx +0 -16
- package/src/components/pages/SequenceEditorMainPage/SequenceEditorMainPage.tsx +0 -76
- package/src/components/ui/SequenceEditor/SequenceEditor.tsx +0 -896
- package/src/components/ui/SequenceEditor/SequenceEditorGotoPositionDialog.tsx +0 -108
- package/src/components/ui/SequenceEditor/SequenceEditorStatusBar.tsx +0 -72
- package/src/components/ui/SequenceEditorPage/SequenceEditorPage.tsx +0 -23
- package/src/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawer.tsx +0 -234
- package/src/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawerColorForm.tsx +0 -73
- package/src/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawerKeyboardShortcuts.tsx +0 -230
- package/src/components/ui/SequenceEditorPageHeader/SequenceEditorPageHeader.tsx +0 -71
- package/src/components/ui/SequenceEditorSearchBar/SequenceEditorSearchBar.tsx +0 -35
- package/src/constants/editor.ts +0 -15
- package/src/constants/keyboard.ts +0 -154
- package/src/constants/palette.ts +0 -227
- package/src/models/editor.ts +0 -6
- package/src/models/model.ts +0 -295
- package/src/models/palette.ts +0 -68
- package/src/stores/sequenceEditorStore/sequenceEditorStore.ts +0 -103
- package/src/utils/EditorUtil/EditorUtil.ts +0 -892
- package/src/utils/EngineErrorUtil/EngineErrorUtil.ts +0 -25
- package/src/utils/PaletteUtil/PaletteUtil.ts +0 -31
- package/tsconfig.build.json +0 -14
- package/tsconfig.json +0 -32
- package/vite.config.ts +0 -177
- /package/{src/classes/services/EditorWorkerService/index.ts → dist/classes/services/EditorWorkerService/index.d.ts} +0 -0
- /package/{src/classes/services/SequenceEditorEventBusService/index.ts → dist/classes/services/SequenceEditorEventBusService/index.d.ts} +0 -0
- /package/{src/classes/workers/EngineWorker/index.ts → dist/classes/workers/EngineWorker/index.d.ts} +0 -0
- /package/{src/components/app/App/index.ts → dist/components/app/App/index.d.ts} +0 -0
- /package/{src/components/pages/SequenceEditorErrorPage/index.ts → dist/components/pages/SequenceEditorErrorPage/index.d.ts} +0 -0
- /package/{src/components/pages/SequenceEditorMainPage/index.ts → dist/components/pages/SequenceEditorMainPage/index.d.ts} +0 -0
- /package/{src/components/ui/SequenceEditor/index.ts → dist/components/ui/SequenceEditor/index.d.ts} +0 -0
- /package/{src/components/ui/SequenceEditorPage/index.ts → dist/components/ui/SequenceEditorPage/index.d.ts} +0 -0
- /package/{src/components/ui/SequenceEditorPageDrawer/index.ts → dist/components/ui/SequenceEditorPageDrawer/index.d.ts} +0 -0
- /package/{src/components/ui/SequenceEditorPageHeader/index.ts → dist/components/ui/SequenceEditorPageHeader/index.d.ts} +0 -0
- /package/{src/components/ui/SequenceEditorSearchBar/index.ts → dist/components/ui/SequenceEditorSearchBar/index.d.ts} +0 -0
- /package/{src/constants/index.ts → dist/constants/index.d.ts} +0 -0
- /package/{src/models/index.ts → dist/models/index.d.ts} +0 -0
- /package/{src/stores/sequenceEditorStore/index.ts → dist/stores/sequenceEditorStore/index.d.ts} +0 -0
- /package/{src/utils/EditorUtil/index.ts → dist/utils/EditorUtil/index.d.ts} +0 -0
- /package/{src/utils/PaletteUtil/index.ts → dist/utils/PaletteUtil/index.d.ts} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ErrorPageCommonProps } from '@rivm-loculus-tools/common-frontend/components/page';
|
|
2
|
+
export type SequenceEditorErrorPageProps = ErrorPageCommonProps;
|
|
3
|
+
export declare const SequenceEditorErrorPage: ({ error }: SequenceEditorErrorPageProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Dt as e } from "../../../_chunks/Box.js";
|
|
2
|
+
import { s as t } from "../../../_chunks/Redo.js";
|
|
3
|
+
import { SequenceEditorPage as n } from "../../ui/SequenceEditorPage/index.js";
|
|
4
|
+
//#region src/components/pages/SequenceEditorErrorPage/SequenceEditorErrorPage.tsx
|
|
5
|
+
var r = e(), i = ({ error: e }) => /* @__PURE__ */ (0, r.jsx)(n, {
|
|
6
|
+
isNoInteraction: !0,
|
|
7
|
+
children: /* @__PURE__ */ (0, r.jsx)(t, { error: e })
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { i as SequenceEditorErrorPage };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/pages/SequenceEditorErrorPage/SequenceEditorErrorPage.tsx"],"sourcesContent":["import type { ErrorPageCommonProps } from '@rivm-loculus-tools/common-frontend/components/page';\nimport { ErrorPageCommon } from '@rivm-loculus-tools/common-frontend/components/page';\n\nimport { SequenceEditorPage } from '../../ui/SequenceEditorPage';\n\nexport type SequenceEditorErrorPageProps = ErrorPageCommonProps;\n\nexport const SequenceEditorErrorPage = ({ error }: SequenceEditorErrorPageProps) => {\n return (\n <SequenceEditorPage\n isNoInteraction\n >\n <ErrorPageCommon error={error} />\n </SequenceEditorPage>\n );\n};\n"],"mappings":";;;;aAOa,KAA2B,EAAE,eAEtC,iBAAA,GAAA,EAAA,IAAA,CAAC,GAAD;CACE,iBAAA;CAEA,UAAA,iBAAA,GAAA,EAAA,IAAA,CAAC,GAAD,EAAwB,SAAQ,CAAA;AACd,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SequenceEditorMainPage: () => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SequenceEditor: () => import('react').JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WithDialogRefMethods, WithDialogRenderProps } from '@gen-epix/ui-core-components/hoc/withDialog';
|
|
2
|
+
export interface SequenceEditorGotoPositionDialogOpenProps {
|
|
3
|
+
}
|
|
4
|
+
export interface SequenceEditorGotoPositionDialogProps extends WithDialogRenderProps<SequenceEditorGotoPositionDialogOpenProps> {
|
|
5
|
+
onGotoPosition: (x: null | number, y: null | number) => void;
|
|
6
|
+
}
|
|
7
|
+
export type SequenceEditorGotoPositionDialogRefMethods = WithDialogRefMethods<SequenceEditorGotoPositionDialogProps, SequenceEditorGotoPositionDialogOpenProps>;
|
|
8
|
+
export declare const SequenceEditorGotoPositionDialog: import('react').ComponentClass<SequenceEditorGotoPositionDialogProps, import('@gen-epix/ui-core-components/hoc/withDialog').WithDialogState<SequenceEditorGotoPositionDialogOpenProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SequenceEditorStatusBar: () => import('react').JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Dt as e } from "../../../_chunks/Box.js";
|
|
2
|
+
import { t } from "../../../_chunks/SequenceEditorPageDrawer.js";
|
|
3
|
+
import { o as n } from "../../../_chunks/Redo.js";
|
|
4
|
+
import { t as r } from "../../../_chunks/SequenceEditorPageHeader.js";
|
|
5
|
+
//#region src/components/ui/SequenceEditorPage/SequenceEditorPage.tsx
|
|
6
|
+
var i = e(), a = ({ children: e, isNoInteraction: a }) => /* @__PURE__ */ (0, i.jsx)(n, {
|
|
7
|
+
drawerComponent: /* @__PURE__ */ (0, i.jsx)(t, {}),
|
|
8
|
+
headerComponent: /* @__PURE__ */ (0, i.jsx)(r, {}),
|
|
9
|
+
isNoInteraction: a,
|
|
10
|
+
children: e
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { a as SequenceEditorPage };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/SequenceEditorPage/SequenceEditorPage.tsx"],"sourcesContent":["import { PageCommon } from '@rivm-loculus-tools/common-frontend/components/page';\nimport type { PropsWithChildren } from 'react';\n\nimport { SequenceEditorPageDrawer } from '../SequenceEditorPageDrawer';\nimport { SequenceEditorPageHeader } from '../SequenceEditorPageHeader';\n\n\nexport type SequenceEditorPageProps = PropsWithChildren<{\n isNoInteraction: boolean;\n}>;\n\nexport const SequenceEditorPage = ({ children, isNoInteraction }: SequenceEditorPageProps) => {\n return (\n <PageCommon\n drawerComponent={<SequenceEditorPageDrawer />}\n headerComponent={<SequenceEditorPageHeader />}\n isNoInteraction={isNoInteraction}\n >\n {children}\n </PageCommon>\n );\n\n};\n"],"mappings":";;;;;aAWa,KAAsB,EAAE,aAAU,yBAE3C,iBAAA,GAAA,EAAA,IAAA,CAAC,GAAD;CACE,iBAAiB,iBAAA,GAAA,EAAA,IAAA,CAAC,GAAD,CAA2B,CAAA;CAC5C,iBAAiB,iBAAA,GAAA,EAAA,IAAA,CAAC,GAAD,CAA2B,CAAA;CAC3B;CAEhB;AACS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SequenceEditorPageDrawer: () => import('react').JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AminoAcidPalette, NucleotidePalette } from '../../../models';
|
|
2
|
+
export type SequenceEditorPageDrawerColorFormProps<TPalette extends AminoAcidPalette | NucleotidePalette> = {
|
|
3
|
+
currentPalette: TPalette;
|
|
4
|
+
onPaletteChange: (palettes: TPalette) => void;
|
|
5
|
+
palettes: Array<TPalette>;
|
|
6
|
+
};
|
|
7
|
+
export declare const SequenceEditorPageDrawerColorForm: <TPalette extends AminoAcidPalette | NucleotidePalette>({ currentPalette, onPaletteChange, palettes }: SequenceEditorPageDrawerColorFormProps<TPalette>) => import('react').JSX.Element;
|
package/dist/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawerKeyboardShortcuts.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SequenceEditorPageDrawerKeyboardShortcuts: () => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SequenceEditorPageHeader: () => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SequenceEditorSearchBar: () => import('react').JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/constants/editor.ts
|
|
2
|
+
var e = 120, t = {
|
|
3
|
+
cellHeight: 22,
|
|
4
|
+
cellWidth: 18,
|
|
5
|
+
dividerWidth: 4,
|
|
6
|
+
labelWidth: 300,
|
|
7
|
+
numOverscanCols: 128,
|
|
8
|
+
numOverscanRows: 16,
|
|
9
|
+
rulerHeight: 26
|
|
10
|
+
}, n = /* @__PURE__ */ new Set("ACGTURYKMSWBDHVN");
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as DEFAULT_GRID_GEOMETRY, n as IUPAC_KEYS, e as MIN_LABEL_WIDTH };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.js","names":[],"sources":["../../src/constants/editor.ts"],"sourcesContent":["import type { GridGeometry } from '../models';\n\nexport const MIN_LABEL_WIDTH = 120;\n\nexport const DEFAULT_GRID_GEOMETRY: GridGeometry = {\n cellHeight: 22,\n cellWidth: 18,\n dividerWidth: 4,\n labelWidth: 300,\n numOverscanCols: 128,\n numOverscanRows: 16,\n rulerHeight: 26,\n};\n\nexport const IUPAC_KEYS = new Set('ACGTURYKMSWBDHVN');\n"],"mappings":";AAEA,IAAa,IAAkB,KAElB,IAAsC;CACjD,YAAY;CACZ,WAAW;CACX,cAAc;CACd,YAAY;CACZ,iBAAiB;CACjB,iBAAiB;CACjB,aAAa;AACf,GAEa,oBAAa,IAAI,IAAI,kBAAkB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DEFAULT_GRID_GEOMETRY as e, IUPAC_KEYS as t, MIN_LABEL_WIDTH as n } from "./editor.js";
|
|
2
|
+
import { KEYBOARD_SHORTCUTS as r } from "./keyboard.js";
|
|
3
|
+
import { ALI_VIEW_CLUSTAL_X_AMINO_ACID_PALETTE as i, ALI_VIEW_CLUSTAL_X_AMINO_ACID_PALETTE_COLORS as a, ALI_VIEW_DEFAULT_AMINO_ACID_PALETTE as o, ALI_VIEW_DEFAULT_AMINO_ACID_PALETTE_COLORS as s, ALI_VIEW_DEFAULT_NUCLEOTIDE_PALETTE as c, ALI_VIEW_DEFAULT_NUCLEOTIDE_PALETTE_COLORS as l, ALI_VIEW_FAST_NUCLEOTIDE_PALETTE as u, ALI_VIEW_FAST_NUCLEOTIDE_PALETTE_COLORS as d, ALI_VIEW_SEA_VIEW_AMINO_ACID_PALETTE as f, ALI_VIEW_SEA_VIEW_AMINO_ACID_PALETTE_COLORS as p, ALI_VIEW_SEA_VIEW_NUCLEOTIDE_PALETTE as m, ALI_VIEW_SEA_VIEW_NUCLEOTIDE_PALETTE_COLORS as h, AMINO_ACID_SYMBOLS as g, NUCLEOTIDE_SYMBOLS as _ } from "./palette.js";
|
|
4
|
+
export { i as ALI_VIEW_CLUSTAL_X_AMINO_ACID_PALETTE, a as ALI_VIEW_CLUSTAL_X_AMINO_ACID_PALETTE_COLORS, o as ALI_VIEW_DEFAULT_AMINO_ACID_PALETTE, s as ALI_VIEW_DEFAULT_AMINO_ACID_PALETTE_COLORS, c as ALI_VIEW_DEFAULT_NUCLEOTIDE_PALETTE, l as ALI_VIEW_DEFAULT_NUCLEOTIDE_PALETTE_COLORS, u as ALI_VIEW_FAST_NUCLEOTIDE_PALETTE, d as ALI_VIEW_FAST_NUCLEOTIDE_PALETTE_COLORS, f as ALI_VIEW_SEA_VIEW_AMINO_ACID_PALETTE, p as ALI_VIEW_SEA_VIEW_AMINO_ACID_PALETTE_COLORS, m as ALI_VIEW_SEA_VIEW_NUCLEOTIDE_PALETTE, h as ALI_VIEW_SEA_VIEW_NUCLEOTIDE_PALETTE_COLORS, g as AMINO_ACID_SYMBOLS, e as DEFAULT_GRID_GEOMETRY, t as IUPAC_KEYS, r as KEYBOARD_SHORTCUTS, n as MIN_LABEL_WIDTH, _ as NUCLEOTIDE_SYMBOLS };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { KeyboardShortcutConfig } from '@gen-epix/ui-core/classes/services/KeyboardShortcutService';
|
|
2
|
+
type KeyboardShortcut = {
|
|
3
|
+
callback: KeyboardShortcutConfig['callback'];
|
|
4
|
+
description: string;
|
|
5
|
+
shortcut: Pick<KeyboardShortcutConfig, 'code' | 'key' | 'modifiers'>;
|
|
6
|
+
};
|
|
7
|
+
export declare const KEYBOARD_SHORTCUTS: {
|
|
8
|
+
[key: string]: KeyboardShortcut;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { EDITOR_DIRECTION as e } from "../models/editor.js";
|
|
2
|
+
import { t } from "../_chunks/SequenceEditorEventBusService.js";
|
|
3
|
+
//#region src/constants/keyboard.ts
|
|
4
|
+
var n = (e, n) => (r) => {
|
|
5
|
+
r.preventDefault(), t.getInstance().emit(e, n);
|
|
6
|
+
}, r = (e) => (n) => {
|
|
7
|
+
n.preventDefault(), t.getInstance().emit(e);
|
|
8
|
+
}, i = (e) => (n) => {
|
|
9
|
+
n.preventDefault(), t.getInstance().emit("onMutateSelection", e);
|
|
10
|
+
}, a = {
|
|
11
|
+
deleteBackward: {
|
|
12
|
+
callback: r("onDeleteBackward"),
|
|
13
|
+
description: "Delete backward",
|
|
14
|
+
shortcut: { code: "Backspace" }
|
|
15
|
+
},
|
|
16
|
+
deleteBase: {
|
|
17
|
+
callback: i("-"),
|
|
18
|
+
description: "Delete base",
|
|
19
|
+
shortcut: { key: "-" }
|
|
20
|
+
},
|
|
21
|
+
deleteSelection: {
|
|
22
|
+
callback: i("-"),
|
|
23
|
+
description: "Delete selection",
|
|
24
|
+
shortcut: { code: "Delete" }
|
|
25
|
+
},
|
|
26
|
+
expandSelectionDown: {
|
|
27
|
+
callback: n("onExpandSelection", e.DOWN),
|
|
28
|
+
description: "Expand selection down",
|
|
29
|
+
shortcut: {
|
|
30
|
+
code: "ArrowDown",
|
|
31
|
+
modifiers: [["Shift"]]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
expandSelectionLeft: {
|
|
35
|
+
callback: n("onExpandSelection", e.LEFT),
|
|
36
|
+
description: "Expand selection left",
|
|
37
|
+
shortcut: {
|
|
38
|
+
code: "ArrowLeft",
|
|
39
|
+
modifiers: [["Shift"]]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
expandSelectionRight: {
|
|
43
|
+
callback: n("onExpandSelection", e.RIGHT),
|
|
44
|
+
description: "Expand selection right",
|
|
45
|
+
shortcut: {
|
|
46
|
+
code: "ArrowRight",
|
|
47
|
+
modifiers: [["Shift"]]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
expandSelectionUp: {
|
|
51
|
+
callback: n("onExpandSelection", e.UP),
|
|
52
|
+
description: "Expand selection up",
|
|
53
|
+
shortcut: {
|
|
54
|
+
code: "ArrowUp",
|
|
55
|
+
modifiers: [["Shift"]]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
gotoPosition: {
|
|
59
|
+
callback: r("onGotoPosition"),
|
|
60
|
+
description: "Go to position",
|
|
61
|
+
shortcut: {
|
|
62
|
+
key: "g",
|
|
63
|
+
modifiers: [["Meta"], ["Control"]]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
insertGap: {
|
|
67
|
+
callback: r("onInsert"),
|
|
68
|
+
description: "Insert gap",
|
|
69
|
+
shortcut: { code: "Space" }
|
|
70
|
+
},
|
|
71
|
+
moveCellLeft: {
|
|
72
|
+
callback: n("onMoveCells", e.LEFT),
|
|
73
|
+
description: "Move cell left",
|
|
74
|
+
shortcut: {
|
|
75
|
+
code: "ArrowLeft",
|
|
76
|
+
modifiers: [["Alt"]]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
moveCellRight: {
|
|
80
|
+
callback: n("onMoveCells", e.RIGHT),
|
|
81
|
+
description: "Move cell right",
|
|
82
|
+
shortcut: {
|
|
83
|
+
code: "ArrowRight",
|
|
84
|
+
modifiers: [["Alt"]]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
moveRowDown: {
|
|
88
|
+
callback: n("onMoveRows", e.DOWN),
|
|
89
|
+
description: "Move row down",
|
|
90
|
+
shortcut: {
|
|
91
|
+
code: "ArrowDown",
|
|
92
|
+
modifiers: [["Control"], ["Meta"]]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
moveRowToEnd: {
|
|
96
|
+
callback: n("onMoveRowsEnd", e.DOWN),
|
|
97
|
+
description: "Move row to end",
|
|
98
|
+
shortcut: {
|
|
99
|
+
code: "ArrowDown",
|
|
100
|
+
modifiers: [["Alt"]]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
moveRowToStart: {
|
|
104
|
+
callback: n("onMoveRowsEnd", e.UP),
|
|
105
|
+
description: "Move row to start",
|
|
106
|
+
shortcut: {
|
|
107
|
+
code: "ArrowUp",
|
|
108
|
+
modifiers: [["Alt"]]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
moveRowUp: {
|
|
112
|
+
callback: n("onMoveRows", e.UP),
|
|
113
|
+
description: "Move row up",
|
|
114
|
+
shortcut: {
|
|
115
|
+
code: "ArrowUp",
|
|
116
|
+
modifiers: [["Control"], ["Meta"]]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
moveSelectionDown: {
|
|
120
|
+
callback: n("onMoveSelection", e.DOWN),
|
|
121
|
+
description: "Move selection down",
|
|
122
|
+
shortcut: { code: "ArrowDown" }
|
|
123
|
+
},
|
|
124
|
+
moveSelectionLeft: {
|
|
125
|
+
callback: n("onMoveSelection", e.LEFT),
|
|
126
|
+
description: "Move selection left",
|
|
127
|
+
shortcut: { code: "ArrowLeft" }
|
|
128
|
+
},
|
|
129
|
+
moveSelectionRight: {
|
|
130
|
+
callback: n("onMoveSelection", e.RIGHT),
|
|
131
|
+
description: "Move selection right",
|
|
132
|
+
shortcut: { code: "ArrowRight" }
|
|
133
|
+
},
|
|
134
|
+
moveSelectionUp: {
|
|
135
|
+
callback: n("onMoveSelection", e.UP),
|
|
136
|
+
description: "Move selection up",
|
|
137
|
+
shortcut: { code: "ArrowUp" }
|
|
138
|
+
},
|
|
139
|
+
redo: {
|
|
140
|
+
callback: r("onRedo"),
|
|
141
|
+
description: "Redo",
|
|
142
|
+
shortcut: {
|
|
143
|
+
key: "z",
|
|
144
|
+
modifiers: [["Meta", "Shift"], ["Control", "Shift"]]
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
scrollPageDown: {
|
|
148
|
+
callback: r("onScrollPageDown"),
|
|
149
|
+
description: "Scroll page down",
|
|
150
|
+
shortcut: { code: "PageDown" }
|
|
151
|
+
},
|
|
152
|
+
scrollPageUp: {
|
|
153
|
+
callback: r("onScrollPageUp"),
|
|
154
|
+
description: "Scroll page up",
|
|
155
|
+
shortcut: { code: "PageUp" }
|
|
156
|
+
},
|
|
157
|
+
scrollToLineEnd: {
|
|
158
|
+
callback: r("onScrollToLineEnd"),
|
|
159
|
+
description: "Scroll to line end",
|
|
160
|
+
shortcut: { code: "End" }
|
|
161
|
+
},
|
|
162
|
+
scrollToLineStart: {
|
|
163
|
+
callback: r("onScrollToLineStart"),
|
|
164
|
+
description: "Scroll to line start",
|
|
165
|
+
shortcut: { code: "Home" }
|
|
166
|
+
},
|
|
167
|
+
undo: {
|
|
168
|
+
callback: r("onUndo"),
|
|
169
|
+
description: "Undo",
|
|
170
|
+
shortcut: {
|
|
171
|
+
key: "z",
|
|
172
|
+
modifiers: [["Meta"], ["Control"]]
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
//#endregion
|
|
177
|
+
export { a as KEYBOARD_SHORTCUTS };
|
|
178
|
+
|
|
179
|
+
//# sourceMappingURL=keyboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.js","names":[],"sources":["../../src/constants/keyboard.ts"],"sourcesContent":["import type { KeyboardShortcutConfig } from '@gen-epix/ui-core/classes/services/KeyboardShortcutService';\n\nimport { SequenceEditorEventBusService } from '../classes/services/SequenceEditorEventBusService';\nimport { EDITOR_DIRECTION } from '../models/editor';\n\n\ntype KeyboardShortcut = {\n callback: KeyboardShortcutConfig['callback'];\n description: string;\n shortcut: Pick<KeyboardShortcutConfig, 'code' | 'key' | 'modifiers'>;\n};\n\nconst emitDirection = (eventName: 'onExpandSelection' | 'onMoveCells' | 'onMoveRows' | 'onMoveRowsEnd' | 'onMoveSelection', direction: EDITOR_DIRECTION): KeyboardShortcutConfig['callback'] => (event) => {\n event.preventDefault();\n SequenceEditorEventBusService.getInstance().emit(eventName, direction);\n};\n\nconst emitVoid = (eventName: 'onDeleteBackward' | 'onGotoPosition' | 'onInsert' | 'onRedo' | 'onScrollPageDown' | 'onScrollPageUp' | 'onScrollToLineEnd' | 'onScrollToLineStart' | 'onUndo'): KeyboardShortcutConfig['callback'] => (event) => {\n event.preventDefault();\n SequenceEditorEventBusService.getInstance().emit(eventName);\n};\n\nconst emitMutateSelection = (base: string): KeyboardShortcutConfig['callback'] => (event) => {\n event.preventDefault();\n SequenceEditorEventBusService.getInstance().emit('onMutateSelection', base);\n};\n\nexport const KEYBOARD_SHORTCUTS: { [key: string]: KeyboardShortcut } = {\n deleteBackward: {\n callback: emitVoid('onDeleteBackward'),\n description: 'Delete backward',\n shortcut: { code: 'Backspace' },\n },\n deleteBase: {\n callback: emitMutateSelection('-'),\n description: 'Delete base',\n shortcut: { key: '-' },\n },\n deleteSelection: {\n callback: emitMutateSelection('-'),\n description: 'Delete selection',\n shortcut: { code: 'Delete' },\n },\n expandSelectionDown: {\n callback: emitDirection('onExpandSelection', EDITOR_DIRECTION.DOWN),\n description: 'Expand selection down',\n shortcut: { code: 'ArrowDown', modifiers: [['Shift']] },\n },\n expandSelectionLeft: {\n callback: emitDirection('onExpandSelection', EDITOR_DIRECTION.LEFT),\n description: 'Expand selection left',\n shortcut: { code: 'ArrowLeft', modifiers: [['Shift']] },\n },\n expandSelectionRight: {\n callback: emitDirection('onExpandSelection', EDITOR_DIRECTION.RIGHT),\n description: 'Expand selection right',\n shortcut: { code: 'ArrowRight', modifiers: [['Shift']] },\n },\n expandSelectionUp: {\n callback: emitDirection('onExpandSelection', EDITOR_DIRECTION.UP),\n description: 'Expand selection up',\n shortcut: { code: 'ArrowUp', modifiers: [['Shift']] },\n },\n gotoPosition: {\n callback: emitVoid('onGotoPosition'),\n description: 'Go to position',\n shortcut: { key: 'g', modifiers: [['Meta'], ['Control']] },\n },\n insertGap: {\n callback: emitVoid('onInsert'),\n description: 'Insert gap',\n shortcut: { code: 'Space' },\n },\n moveCellLeft: {\n callback: emitDirection('onMoveCells', EDITOR_DIRECTION.LEFT),\n description: 'Move cell left',\n shortcut: { code: 'ArrowLeft', modifiers: [['Alt']] },\n },\n moveCellRight: {\n callback: emitDirection('onMoveCells', EDITOR_DIRECTION.RIGHT),\n description: 'Move cell right',\n shortcut: { code: 'ArrowRight', modifiers: [['Alt']] },\n },\n moveRowDown: {\n callback: emitDirection('onMoveRows', EDITOR_DIRECTION.DOWN),\n description: 'Move row down',\n shortcut: { code: 'ArrowDown', modifiers: [['Control'], ['Meta']] },\n },\n moveRowToEnd: {\n callback: emitDirection('onMoveRowsEnd', EDITOR_DIRECTION.DOWN),\n description: 'Move row to end',\n shortcut: { code: 'ArrowDown', modifiers: [['Alt']] },\n },\n moveRowToStart: {\n callback: emitDirection('onMoveRowsEnd', EDITOR_DIRECTION.UP),\n description: 'Move row to start',\n shortcut: { code: 'ArrowUp', modifiers: [['Alt']] },\n },\n moveRowUp: {\n callback: emitDirection('onMoveRows', EDITOR_DIRECTION.UP),\n description: 'Move row up',\n shortcut: { code: 'ArrowUp', modifiers: [['Control'], ['Meta']] },\n },\n moveSelectionDown: {\n callback: emitDirection('onMoveSelection', EDITOR_DIRECTION.DOWN),\n description: 'Move selection down',\n shortcut: { code: 'ArrowDown' },\n },\n moveSelectionLeft: {\n callback: emitDirection('onMoveSelection', EDITOR_DIRECTION.LEFT),\n description: 'Move selection left',\n shortcut: { code: 'ArrowLeft' },\n },\n moveSelectionRight: {\n callback: emitDirection('onMoveSelection', EDITOR_DIRECTION.RIGHT),\n description: 'Move selection right',\n shortcut: { code: 'ArrowRight' },\n },\n moveSelectionUp: {\n callback: emitDirection('onMoveSelection', EDITOR_DIRECTION.UP),\n description: 'Move selection up',\n shortcut: { code: 'ArrowUp' },\n },\n redo: {\n callback: emitVoid('onRedo'),\n description: 'Redo',\n shortcut: { key: 'z', modifiers: [['Meta', 'Shift'], ['Control', 'Shift']] },\n },\n scrollPageDown: {\n callback: emitVoid('onScrollPageDown'),\n description: 'Scroll page down',\n shortcut: { code: 'PageDown' },\n },\n scrollPageUp: {\n callback: emitVoid('onScrollPageUp'),\n description: 'Scroll page up',\n shortcut: { code: 'PageUp' },\n },\n scrollToLineEnd: {\n callback: emitVoid('onScrollToLineEnd'),\n description: 'Scroll to line end',\n shortcut: { code: 'End' },\n },\n scrollToLineStart: {\n callback: emitVoid('onScrollToLineStart'),\n description: 'Scroll to line start',\n shortcut: { code: 'Home' },\n },\n undo: {\n callback: emitVoid('onUndo'),\n description: 'Undo',\n shortcut: { key: 'z', modifiers: [['Meta'], ['Control']] },\n },\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AminoAcidSymbol, NucleotideSymbol, AminoAcidPalette, AminoAcidPaletteColors, NucleotidePalette, NucleotidePaletteColors } from '../models/palette';
|
|
2
|
+
export declare const NUCLEOTIDE_SYMBOLS: readonly NucleotideSymbol[];
|
|
3
|
+
export declare const AMINO_ACID_SYMBOLS: readonly AminoAcidSymbol[];
|
|
4
|
+
export declare const ALI_VIEW_DEFAULT_AMINO_ACID_PALETTE_COLORS: AminoAcidPaletteColors;
|
|
5
|
+
export declare const ALI_VIEW_DEFAULT_NUCLEOTIDE_PALETTE_COLORS: NucleotidePaletteColors;
|
|
6
|
+
export declare const ALI_VIEW_FAST_NUCLEOTIDE_PALETTE_COLORS: NucleotidePaletteColors;
|
|
7
|
+
export declare const ALI_VIEW_SEA_VIEW_NUCLEOTIDE_PALETTE_COLORS: NucleotidePaletteColors;
|
|
8
|
+
export declare const ALI_VIEW_SEA_VIEW_AMINO_ACID_PALETTE_COLORS: AminoAcidPaletteColors;
|
|
9
|
+
export declare const ALI_VIEW_CLUSTAL_X_AMINO_ACID_PALETTE_COLORS: AminoAcidPaletteColors;
|
|
10
|
+
export declare const ALI_VIEW_DEFAULT_NUCLEOTIDE_PALETTE: NucleotidePalette;
|
|
11
|
+
export declare const ALI_VIEW_FAST_NUCLEOTIDE_PALETTE: NucleotidePalette;
|
|
12
|
+
export declare const ALI_VIEW_SEA_VIEW_NUCLEOTIDE_PALETTE: NucleotidePalette;
|
|
13
|
+
export declare const ALI_VIEW_DEFAULT_AMINO_ACID_PALETTE: AminoAcidPalette;
|
|
14
|
+
export declare const ALI_VIEW_SEA_VIEW_AMINO_ACID_PALETTE: AminoAcidPalette;
|
|
15
|
+
export declare const ALI_VIEW_CLUSTAL_X_AMINO_ACID_PALETTE: AminoAcidPalette;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { PaletteUtil as e } from "../utils/PaletteUtil/index.js";
|
|
2
|
+
import { AminoAcidSymbol as t, NucleotideSymbol as n } from "../models/palette.js";
|
|
3
|
+
//#region src/constants/palette.ts
|
|
4
|
+
var r = [
|
|
5
|
+
n.A,
|
|
6
|
+
n.C,
|
|
7
|
+
n.G,
|
|
8
|
+
n.T,
|
|
9
|
+
n.U,
|
|
10
|
+
n.R,
|
|
11
|
+
n.Y,
|
|
12
|
+
n.S,
|
|
13
|
+
n.W,
|
|
14
|
+
n.K,
|
|
15
|
+
n.M,
|
|
16
|
+
n.B,
|
|
17
|
+
n.D,
|
|
18
|
+
n.H,
|
|
19
|
+
n.V,
|
|
20
|
+
n.N,
|
|
21
|
+
n.GAP,
|
|
22
|
+
n.UNKNOWN
|
|
23
|
+
], i = [
|
|
24
|
+
t.A,
|
|
25
|
+
t.C,
|
|
26
|
+
t.D,
|
|
27
|
+
t.E,
|
|
28
|
+
t.F,
|
|
29
|
+
t.G,
|
|
30
|
+
t.H,
|
|
31
|
+
t.I,
|
|
32
|
+
t.K,
|
|
33
|
+
t.L,
|
|
34
|
+
t.M,
|
|
35
|
+
t.N,
|
|
36
|
+
t.P,
|
|
37
|
+
t.Q,
|
|
38
|
+
t.R,
|
|
39
|
+
t.S,
|
|
40
|
+
t.T,
|
|
41
|
+
t.V,
|
|
42
|
+
t.W,
|
|
43
|
+
t.Y,
|
|
44
|
+
t.X,
|
|
45
|
+
t.STOP,
|
|
46
|
+
t.GAP
|
|
47
|
+
], a = {
|
|
48
|
+
[t.A]: e.createEntry("#276EB7", "#000000", "#3769FF", "#808080"),
|
|
49
|
+
[t.C]: e.createEntry("#E68080", "#000000", "#FFB6B6", "#808080"),
|
|
50
|
+
[t.D]: e.createEntry("#CC4DCC", "#000000", "#FF6EFF", "#808080"),
|
|
51
|
+
[t.E]: e.createEntry("#984097", "#000000", "#D95BD7", "#808080"),
|
|
52
|
+
[t.F]: e.createEntry("#1980E6", "#000000", "#23B6FF", "#808080"),
|
|
53
|
+
[t.G]: e.createEntry("#E6994D", "#000000", "#FFDA6E", "#808080"),
|
|
54
|
+
[t.GAP]: e.createEntry("#E6E6E6", "#404040", "#FFFFFF", "#808080"),
|
|
55
|
+
[t.H]: e.createEntry("#19B3B3", "#000000", "#23FFFF", "#808080"),
|
|
56
|
+
[t.I]: e.createEntry("#4EA0F3", "#000000", "#6FE4FF", "#808080"),
|
|
57
|
+
[t.K]: e.createEntry("#E63319", "#000000", "#FF4823", "#808080"),
|
|
58
|
+
[t.L]: e.createEntry("#78A6D5", "#000000", "#ABEDFF", "#808080"),
|
|
59
|
+
[t.M]: e.createEntry("#0F549B", "#000000", "#1578DD", "#808080"),
|
|
60
|
+
[t.N]: e.createEntry("#19CC19", "#000000", "#23FF23", "#808080"),
|
|
61
|
+
[t.P]: e.createEntry("#CCCC00", "#000000", "#FFFF00", "#808080"),
|
|
62
|
+
[t.Q]: e.createEntry("#5CED5C", "#000000", "#83FF83", "#808080"),
|
|
63
|
+
[t.R]: e.createEntry("#F6442C", "#000000", "#FF613E", "#808080"),
|
|
64
|
+
[t.S]: e.createEntry("#029602", "#000000", "#03D603", "#808080"),
|
|
65
|
+
[t.STOP]: e.createEntry("#404040", "#00FFFF", "#5B5B5B", "#808080"),
|
|
66
|
+
[t.T]: e.createEntry("#45C945", "#000000", "#62FF62", "#808080"),
|
|
67
|
+
[t.V]: e.createEntry("#047DF9", "#000000", "#05B2FF", "#808080"),
|
|
68
|
+
[t.W]: e.createEntry("#0355A9", "#000000", "#0479F1", "#808080"),
|
|
69
|
+
[t.X]: e.createEntry("#FFFFFF", "#00FFFF", "#FFFFFF", "#808080"),
|
|
70
|
+
[t.Y]: e.createEntry("#14C6C8", "#000000", "#1CFFFF", "#808080")
|
|
71
|
+
}, o = {
|
|
72
|
+
[n.A]: e.createEntry("#5ADC5A", "#018001", "#058705", "#97FF97"),
|
|
73
|
+
[n.B]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
74
|
+
[n.C]: e.createEntry("#6464FA", "#0101FF", "#0F0FA5", "#9797FF"),
|
|
75
|
+
[n.D]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
76
|
+
[n.G]: e.createEntry("#5A5A5A", "#000000", "#050505", "#969696"),
|
|
77
|
+
[n.GAP]: e.createEntry("#FAFAFA", "#868686", "#A5A5A5", "#FFFFFF"),
|
|
78
|
+
[n.H]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
79
|
+
[n.K]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
80
|
+
[n.M]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
81
|
+
[n.N]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
82
|
+
[n.R]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
83
|
+
[n.S]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
84
|
+
[n.T]: e.createEntry("#F58282", "#FF0101", "#A02D2D", "#FF9797"),
|
|
85
|
+
[n.U]: e.createEntry("#F58282", "#FF0101", "#A02D2D", "#FF9797"),
|
|
86
|
+
[n.UNKNOWN]: e.createEntry("#FFFFFF", "#00FFFF", "#AAAAAA", "#96FFFF"),
|
|
87
|
+
[n.V]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
88
|
+
[n.W]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF"),
|
|
89
|
+
[n.Y]: e.createEntry("#FFFFFF", "#FF00FF", "#AAAAAA", "#FF96FF")
|
|
90
|
+
}, s = {
|
|
91
|
+
...o,
|
|
92
|
+
[n.A]: e.createEntry("#5ADC5A", "#2C2C2C", "#058705", "#1E1E1E"),
|
|
93
|
+
[n.B]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
94
|
+
[n.C]: e.createEntry("#6464FA", "#2C2C2C", "#0F0FA5", "#1E1E1E"),
|
|
95
|
+
[n.D]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
96
|
+
[n.G]: e.createEntry("#5A5A5A", "#2C2C2C", "#050505", "#1E1E1E"),
|
|
97
|
+
[n.GAP]: e.createEntry("#FAFAFA", "#2C2C2C", "#A5A5A5", "#1E1E1E"),
|
|
98
|
+
[n.H]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
99
|
+
[n.K]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
100
|
+
[n.M]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
101
|
+
[n.N]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
102
|
+
[n.R]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
103
|
+
[n.S]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
104
|
+
[n.T]: e.createEntry("#F58282", "#2C2C2C", "#A02D2D", "#1E1E1E"),
|
|
105
|
+
[n.U]: e.createEntry("#F58282", "#2C2C2C", "#A02D2D", "#1E1E1E"),
|
|
106
|
+
[n.UNKNOWN]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
107
|
+
[n.V]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
108
|
+
[n.W]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E"),
|
|
109
|
+
[n.Y]: e.createEntry("#FFFFFF", "#2C2C2C", "#AAAAAA", "#1E1E1E")
|
|
110
|
+
}, c = {
|
|
111
|
+
[n.A]: e.createEntry("#FF0000", "#000000", "#870000", "#040404"),
|
|
112
|
+
[n.B]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
113
|
+
[n.C]: e.createEntry("#00FF00", "#000000", "#008700", "#040404"),
|
|
114
|
+
[n.D]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
115
|
+
[n.G]: e.createEntry("#FFFF00", "#000000", "#878700", "#040404"),
|
|
116
|
+
[n.GAP]: e.createEntry("#E0E0E0", "#000000", "#9B9B9B", "#040404"),
|
|
117
|
+
[n.H]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
118
|
+
[n.K]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
119
|
+
[n.M]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
120
|
+
[n.N]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
121
|
+
[n.R]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
122
|
+
[n.S]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
123
|
+
[n.T]: e.createEntry("#0000FF", "#000000", "#000087", "#040404"),
|
|
124
|
+
[n.U]: e.createEntry("#0000FF", "#000000", "#000087", "#040404"),
|
|
125
|
+
[n.UNKNOWN]: e.createEntry("#E0E0E0", "#00FFFF", "#9B9B9B", "#040404"),
|
|
126
|
+
[n.V]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
127
|
+
[n.W]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404"),
|
|
128
|
+
[n.Y]: e.createEntry("#9D9D9D", "#000000", "#6D6D6D", "#040404")
|
|
129
|
+
}, l = { ...a }, u = {
|
|
130
|
+
A: "#80B3E6",
|
|
131
|
+
C: "#80B3E6",
|
|
132
|
+
D: "#CC4DCC",
|
|
133
|
+
E: "#CC4DCC",
|
|
134
|
+
F: "#80B3E6",
|
|
135
|
+
G: "#E6994D",
|
|
136
|
+
H: "#1AB3B3",
|
|
137
|
+
I: "#80B3E6",
|
|
138
|
+
K: "#E6331A",
|
|
139
|
+
L: "#80B3E6",
|
|
140
|
+
M: "#80B3E6",
|
|
141
|
+
N: "#1ACC1A",
|
|
142
|
+
P: "#CCCC00",
|
|
143
|
+
Q: "#1ACC1A",
|
|
144
|
+
R: "#E6331A",
|
|
145
|
+
S: "#1ACC1A",
|
|
146
|
+
T: "#1ACC1A",
|
|
147
|
+
V: "#80B3E6",
|
|
148
|
+
W: "#80B3E6",
|
|
149
|
+
Y: "#1AB3B3"
|
|
150
|
+
}, d = {
|
|
151
|
+
[t.A]: e.createEntry(u.A, "#000000", u.A, "#FFFFFF"),
|
|
152
|
+
[t.C]: e.createEntry(u.C, "#000000", u.C, "#FFFFFF"),
|
|
153
|
+
[t.D]: e.createEntry(u.D, "#000000", u.D, "#FFFFFF"),
|
|
154
|
+
[t.E]: e.createEntry(u.E, "#000000", u.E, "#FFFFFF"),
|
|
155
|
+
[t.F]: e.createEntry(u.F, "#000000", u.F, "#FFFFFF"),
|
|
156
|
+
[t.G]: e.createEntry(u.G, "#000000", u.G, "#FFFFFF"),
|
|
157
|
+
[t.GAP]: e.createEntry("#FFFFFF", "#000000", "#868686", "#FFFFFF"),
|
|
158
|
+
[t.H]: e.createEntry(u.H, "#000000", u.H, "#FFFFFF"),
|
|
159
|
+
[t.I]: e.createEntry(u.I, "#000000", u.I, "#FFFFFF"),
|
|
160
|
+
[t.K]: e.createEntry(u.K, "#000000", u.K, "#FFFFFF"),
|
|
161
|
+
[t.L]: e.createEntry(u.L, "#000000", u.L, "#FFFFFF"),
|
|
162
|
+
[t.M]: e.createEntry(u.M, "#000000", u.M, "#FFFFFF"),
|
|
163
|
+
[t.N]: e.createEntry(u.N, "#000000", u.N, "#FFFFFF"),
|
|
164
|
+
[t.P]: e.createEntry(u.P, "#000000", u.P, "#FFFFFF"),
|
|
165
|
+
[t.Q]: e.createEntry(u.Q, "#000000", u.Q, "#FFFFFF"),
|
|
166
|
+
[t.R]: e.createEntry(u.R, "#000000", u.R, "#FFFFFF"),
|
|
167
|
+
[t.S]: e.createEntry(u.S, "#000000", u.S, "#FFFFFF"),
|
|
168
|
+
[t.STOP]: e.createEntry("#FFFFFF", "#000000", "#868686", "#FFFFFF"),
|
|
169
|
+
[t.T]: e.createEntry(u.T, "#000000", u.T, "#FFFFFF"),
|
|
170
|
+
[t.V]: e.createEntry(u.V, "#000000", u.V, "#FFFFFF"),
|
|
171
|
+
[t.W]: e.createEntry(u.W, "#000000", u.W, "#FFFFFF"),
|
|
172
|
+
[t.X]: e.createEntry("#FFFFFF", "#000000", "#868686", "#FFFFFF"),
|
|
173
|
+
[t.Y]: e.createEntry(u.Y, "#000000", u.Y, "#FFFFFF")
|
|
174
|
+
}, f = {
|
|
175
|
+
name: "Default",
|
|
176
|
+
paletteColors: o
|
|
177
|
+
}, p = {
|
|
178
|
+
name: "Fast",
|
|
179
|
+
paletteColors: s
|
|
180
|
+
}, m = {
|
|
181
|
+
name: "SeaView",
|
|
182
|
+
paletteColors: c
|
|
183
|
+
}, h = {
|
|
184
|
+
name: "Default",
|
|
185
|
+
paletteColors: a
|
|
186
|
+
}, g = {
|
|
187
|
+
name: "SeaView",
|
|
188
|
+
paletteColors: l
|
|
189
|
+
}, _ = {
|
|
190
|
+
name: "Clustal X",
|
|
191
|
+
paletteColors: d
|
|
192
|
+
};
|
|
193
|
+
//#endregion
|
|
194
|
+
export { _ as ALI_VIEW_CLUSTAL_X_AMINO_ACID_PALETTE, d as ALI_VIEW_CLUSTAL_X_AMINO_ACID_PALETTE_COLORS, h as ALI_VIEW_DEFAULT_AMINO_ACID_PALETTE, a as ALI_VIEW_DEFAULT_AMINO_ACID_PALETTE_COLORS, f as ALI_VIEW_DEFAULT_NUCLEOTIDE_PALETTE, o as ALI_VIEW_DEFAULT_NUCLEOTIDE_PALETTE_COLORS, p as ALI_VIEW_FAST_NUCLEOTIDE_PALETTE, s as ALI_VIEW_FAST_NUCLEOTIDE_PALETTE_COLORS, g as ALI_VIEW_SEA_VIEW_AMINO_ACID_PALETTE, l as ALI_VIEW_SEA_VIEW_AMINO_ACID_PALETTE_COLORS, m as ALI_VIEW_SEA_VIEW_NUCLEOTIDE_PALETTE, c as ALI_VIEW_SEA_VIEW_NUCLEOTIDE_PALETTE_COLORS, i as AMINO_ACID_SYMBOLS, r as NUCLEOTIDE_SYMBOLS };
|
|
195
|
+
|
|
196
|
+
//# sourceMappingURL=palette.js.map
|