@datagrok/sequence-translator 1.10.21 → 1.10.23
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/CHANGELOG.md +12 -0
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +1 -1
- package/src/oligo-renderer/analog-cache.ts +5 -2
- package/src/oligo-renderer/canvas-renderer.ts +401 -123
- package/src/oligo-renderer/cell-actions.ts +178 -0
- package/src/oligo-renderer/legend-panel.ts +20 -12
- package/src/oligo-renderer/monomer-colors.ts +61 -0
- package/src/oligo-renderer/tooltip.ts +2 -2
- package/src/package-api.ts +21 -0
- package/src/package.g.ts +26 -2
- package/src/package.ts +57 -16
- package/src/polytool/pt-chem-enum-dialog.ts +6 -2
- package/src/tests/oligo-renderer-tests.ts +224 -14
- package/test-console-output-1.log +179 -179
- package/test-record-1.mp4 +0 -0
package/package.json
CHANGED
|
@@ -15,11 +15,14 @@
|
|
|
15
15
|
* resolve fully.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
+
import * as DG from 'datagrok-api/dg';
|
|
19
|
+
|
|
18
20
|
import {IMonomerLib} from '@datagrok-libraries/bio/src/types/monomer-library';
|
|
19
21
|
import {_package} from '../package';
|
|
20
22
|
|
|
21
|
-
/** symbol → natural-analog letter, or null if absent / no analog.
|
|
22
|
-
|
|
23
|
+
/** symbol → natural-analog letter, or null if absent / no analog.
|
|
24
|
+
* LRU bound prevents unbounded growth across a long-lived session. */
|
|
25
|
+
const _cache = new DG.LruCache<string, string | null>(256);
|
|
23
26
|
|
|
24
27
|
/** Resolve `symbol` to its single-letter natural analog. Returns `null` for
|
|
25
28
|
* unknowns, the canonical letter (uppercase) for matches. Pure sync. */
|