react-cheminfo 0.29.0 → 0.30.0
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/README.md +42 -2
- package/lib/chrome/ui/AccountButton.d.ts +76 -0
- package/lib/chrome/ui/AccountButton.d.ts.map +1 -0
- package/lib/chrome/ui/AccountButton.js +66 -0
- package/lib/chrome/ui/AccountButton.js.map +1 -0
- package/lib/chrome/ui/index.d.ts +2 -0
- package/lib/chrome/ui/index.d.ts.map +1 -1
- package/lib/chrome/ui/index.js +1 -0
- package/lib/chrome/ui/index.js.map +1 -1
- package/lib/clipboard/ui/ClickToCopy.d.ts +6 -0
- package/lib/clipboard/ui/ClickToCopy.d.ts.map +1 -1
- package/lib/clipboard/ui/ClickToCopy.js +3 -3
- package/lib/clipboard/ui/ClickToCopy.js.map +1 -1
- package/lib/i18n/core/chromeCatalog.d.ts +1 -1
- package/lib/i18n/core/chromeCatalog.d.ts.map +1 -1
- package/lib/locales/de.json +3 -0
- package/lib/locales/en.json +3 -0
- package/lib/locales/es.json +3 -0
- package/lib/locales/fr.json +3 -0
- package/lib/structure/core/conformerBoltzmann.d.ts +56 -0
- package/lib/structure/core/conformerBoltzmann.d.ts.map +1 -0
- package/lib/structure/core/conformerBoltzmann.js +96 -0
- package/lib/structure/core/conformerBoltzmann.js.map +1 -0
- package/lib/structure/core/conformerEnergy.d.ts +69 -0
- package/lib/structure/core/conformerEnergy.d.ts.map +1 -0
- package/lib/structure/core/conformerEnergy.js +47 -0
- package/lib/structure/core/conformerEnergy.js.map +1 -0
- package/lib/structure/core/index.d.ts +3 -0
- package/lib/structure/core/index.d.ts.map +1 -1
- package/lib/structure/core/index.js +2 -0
- package/lib/structure/core/index.js.map +1 -1
- package/lib/structure/ui/ConformerTable.d.ts +73 -0
- package/lib/structure/ui/ConformerTable.d.ts.map +1 -0
- package/lib/structure/ui/ConformerTable.js +259 -0
- package/lib/structure/ui/ConformerTable.js.map +1 -0
- package/lib/structure/ui/conformerColumns.d.ts +30 -0
- package/lib/structure/ui/conformerColumns.d.ts.map +1 -0
- package/lib/structure/ui/conformerColumns.js +37 -0
- package/lib/structure/ui/conformerColumns.js.map +1 -0
- package/lib/ui.d.ts +4 -0
- package/lib/ui.d.ts.map +1 -1
- package/lib/ui.js +2 -0
- package/lib/ui.js.map +1 -1
- package/package.json +1 -1
- package/src/chrome/ui/AccountButton.tsx +185 -0
- package/src/chrome/ui/index.ts +2 -0
- package/src/clipboard/ui/ClickToCopy.tsx +9 -1
- package/src/locales/de.json +3 -0
- package/src/locales/en.json +3 -0
- package/src/locales/es.json +3 -0
- package/src/locales/fr.json +3 -0
- package/src/structure/core/conformerBoltzmann.ts +102 -0
- package/src/structure/core/conformerEnergy.ts +97 -0
- package/src/structure/core/index.ts +15 -0
- package/src/structure/ui/ConformerTable.tsx +429 -0
- package/src/structure/ui/conformerColumns.ts +55 -0
- package/src/ui.ts +12 -0
- package/styles/chrome.css +55 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which energy of a conformer a reader is being shown.
|
|
3
|
+
*
|
|
4
|
+
* A refined conformer carries two of everything — what the force field said and
|
|
5
|
+
* what the better method said afterwards — and a table that mixes them is a
|
|
6
|
+
* ranking of nothing. So every column reads through one of these, and they all
|
|
7
|
+
* take the same ranking.
|
|
8
|
+
*/
|
|
9
|
+
import type { ConformerRanking } from './conformers.ts';
|
|
10
|
+
/**
|
|
11
|
+
* What a refinement has to say for an energy column to read it.
|
|
12
|
+
*
|
|
13
|
+
* The structural minimum rather than the whole `ConformerRefinement`, so a site
|
|
14
|
+
* that carries its conformers in a shape of its own — positions instead of a
|
|
15
|
+
* molfile, say — can still be read by the same helpers and drawn by the same
|
|
16
|
+
* table.
|
|
17
|
+
*/
|
|
18
|
+
export interface ConformerRowRefinement {
|
|
19
|
+
/** The rank this conformer held before the refinement reordered the set. */
|
|
20
|
+
forceFieldId: number;
|
|
21
|
+
/** Total energy at the relaxed geometry, kcal/mol. */
|
|
22
|
+
energy: number;
|
|
23
|
+
/** Energy above the most stable refined conformer, kcal/mol. */
|
|
24
|
+
relativeEnergy: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The least a conformer must carry to be ranked and drawn.
|
|
28
|
+
*
|
|
29
|
+
* `Conformer` from `react-cheminfo/conformers` satisfies it, and so does any
|
|
30
|
+
* per-site record that keeps the same three numbers.
|
|
31
|
+
*/
|
|
32
|
+
export interface ConformerRow {
|
|
33
|
+
/** 1-based rank in the set, most stable first. */
|
|
34
|
+
id: number;
|
|
35
|
+
/** Total force-field energy in kcal/mol, `null` when not computed. */
|
|
36
|
+
energy: number | null;
|
|
37
|
+
/** Energy above the most stable conformer, `null` without an energy. */
|
|
38
|
+
relativeEnergy: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* What a better method said, once the set has been refined.
|
|
41
|
+
* @default null
|
|
42
|
+
*/
|
|
43
|
+
refinement?: ConformerRowRefinement | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The energy above the most stable conformer, in the ranking asked for.
|
|
47
|
+
* @param conformer - The conformer to read.
|
|
48
|
+
* @param ranking - Which method's energies to read.
|
|
49
|
+
* @default 'force-field'
|
|
50
|
+
* @returns kcal/mol above the lowest, or `null` when that method produced none.
|
|
51
|
+
*/
|
|
52
|
+
export declare function relativeEnergyOf(conformer: ConformerRow, ranking?: ConformerRanking): number | null;
|
|
53
|
+
/**
|
|
54
|
+
* The total energy, in the ranking asked for, so the two columns of a row
|
|
55
|
+
* describe one method.
|
|
56
|
+
* @param conformer - The conformer to read.
|
|
57
|
+
* @param ranking - Which method's energies to read.
|
|
58
|
+
* @default 'force-field'
|
|
59
|
+
* @returns kcal/mol, or `null` when that method produced none.
|
|
60
|
+
*/
|
|
61
|
+
export declare function totalEnergyOf(conformer: ConformerRow, ranking?: ConformerRanking): number | null;
|
|
62
|
+
/**
|
|
63
|
+
* The ranking a set should be read in: refined once anything has been refined,
|
|
64
|
+
* the force field's until then.
|
|
65
|
+
* @param conformers - The set to inspect.
|
|
66
|
+
* @returns `'refined'` when at least one conformer carries a refinement.
|
|
67
|
+
*/
|
|
68
|
+
export declare function bestRanking(conformers: readonly ConformerRow[]): ConformerRanking;
|
|
69
|
+
//# sourceMappingURL=conformerEnergy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformerEnergy.d.ts","sourceRoot":"","sources":["../../../src/structure/core/conformerEnergy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,wEAAwE;IACxE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;CAC5C;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,YAAY,EACvB,OAAO,GAAE,gBAAgC,GACxC,MAAM,GAAG,IAAI,CAIf;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,YAAY,EACvB,OAAO,GAAE,gBAAgC,GACxC,MAAM,GAAG,IAAI,CAIf;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,UAAU,EAAE,SAAS,YAAY,EAAE,GAClC,gBAAgB,CAKlB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which energy of a conformer a reader is being shown.
|
|
3
|
+
*
|
|
4
|
+
* A refined conformer carries two of everything — what the force field said and
|
|
5
|
+
* what the better method said afterwards — and a table that mixes them is a
|
|
6
|
+
* ranking of nothing. So every column reads through one of these, and they all
|
|
7
|
+
* take the same ranking.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The energy above the most stable conformer, in the ranking asked for.
|
|
11
|
+
* @param conformer - The conformer to read.
|
|
12
|
+
* @param ranking - Which method's energies to read.
|
|
13
|
+
* @default 'force-field'
|
|
14
|
+
* @returns kcal/mol above the lowest, or `null` when that method produced none.
|
|
15
|
+
*/
|
|
16
|
+
export function relativeEnergyOf(conformer, ranking = 'force-field') {
|
|
17
|
+
return ranking === 'refined'
|
|
18
|
+
? (conformer.refinement?.relativeEnergy ?? null)
|
|
19
|
+
: conformer.relativeEnergy;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The total energy, in the ranking asked for, so the two columns of a row
|
|
23
|
+
* describe one method.
|
|
24
|
+
* @param conformer - The conformer to read.
|
|
25
|
+
* @param ranking - Which method's energies to read.
|
|
26
|
+
* @default 'force-field'
|
|
27
|
+
* @returns kcal/mol, or `null` when that method produced none.
|
|
28
|
+
*/
|
|
29
|
+
export function totalEnergyOf(conformer, ranking = 'force-field') {
|
|
30
|
+
return ranking === 'refined'
|
|
31
|
+
? (conformer.refinement?.energy ?? null)
|
|
32
|
+
: conformer.energy;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The ranking a set should be read in: refined once anything has been refined,
|
|
36
|
+
* the force field's until then.
|
|
37
|
+
* @param conformers - The set to inspect.
|
|
38
|
+
* @returns `'refined'` when at least one conformer carries a refinement.
|
|
39
|
+
*/
|
|
40
|
+
export function bestRanking(conformers) {
|
|
41
|
+
for (const conformer of conformers) {
|
|
42
|
+
if (conformer.refinement != null)
|
|
43
|
+
return 'refined';
|
|
44
|
+
}
|
|
45
|
+
return 'force-field';
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=conformerEnergy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformerEnergy.js","sourceRoot":"","sources":["../../../src/structure/core/conformerEnergy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA2CH;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAC9B,SAAuB,EACvB,UAA4B,aAAa;IAEzC,OAAO,OAAO,KAAK,SAAS;QAC1B,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE,cAAc,IAAI,IAAI,CAAC;QAChD,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC;AAC/B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAC3B,SAAuB,EACvB,UAA4B,aAAa;IAEzC,OAAO,OAAO,KAAK,SAAS;QAC1B,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,IAAI,IAAI,CAAC;QACxC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;AACvB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CACzB,UAAmC;IAEnC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,IAAI,SAAS,CAAC,UAAU,IAAI,IAAI;YAAE,OAAO,SAAS,CAAC;IACrD,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export type { AtomLabelPlacement, LabelledMolecule } from './atomLabels.ts';
|
|
2
2
|
export { applyAtomLabels, customAtomLabel } from './atomLabels.ts';
|
|
3
|
+
export { GAS_CONSTANT, ROOM_TEMPERATURE, boltzmannConfidence, boltzmannShares, } from './conformerBoltzmann.ts';
|
|
4
|
+
export type { ConformerRow, ConformerRowRefinement, } from './conformerEnergy.ts';
|
|
5
|
+
export { bestRanking, relativeEnergyOf, totalEnergyOf, } from './conformerEnergy.ts';
|
|
3
6
|
export type { EditorGesture, EditorGuideKey, EditorGuideLink, EditorGuideOptions, EditorGuideScope, EditorGuideSection, } from './editorGuide.ts';
|
|
4
7
|
export { STRUCTURE_EDITOR_DOCS, STRUCTURE_EDITOR_GUIDE, editorGuideSections, editorKeyLabel, } from './editorGuide.ts';
|
|
5
8
|
export type { EditorToolbarAvailability, EditorToolbarButton, } from './editorToolbar.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/structure/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACnE,YAAY,EACV,aAAa,EACb,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE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B,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACpE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EACV,eAAe,EACf,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { applyAtomLabels, customAtomLabel } from "./atomLabels.js";
|
|
2
|
+
export { GAS_CONSTANT, ROOM_TEMPERATURE, boltzmannConfidence, boltzmannShares, } from "./conformerBoltzmann.js";
|
|
3
|
+
export { bestRanking, relativeEnergyOf, totalEnergyOf, } from "./conformerEnergy.js";
|
|
2
4
|
export { STRUCTURE_EDITOR_DOCS, STRUCTURE_EDITOR_GUIDE, editorGuideSections, editorKeyLabel, } from "./editorGuide.js";
|
|
3
5
|
export { EDITOR_TOOLBAR_BUTTONS, isEditorToolbarButtonAvailable, } from "./editorToolbar.js";
|
|
4
6
|
export { EDITOR_TOOLBAR_COLUMNS, EDITOR_TOOLBAR_ROWS, editorToolbarButtonAt, editorToolbarButtonBox, } from "./editorToolbarGeometry.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/structure/core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/structure/core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAKjC,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAS9B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEhF,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAOtE,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAKrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A conformer set, most stable first, as a table one row of which is selected.
|
|
3
|
+
*
|
|
4
|
+
* Two sites read the same set for different reasons — one picks the geometry a
|
|
5
|
+
* calculation runs on, the other reads the ranking itself — so the columns are
|
|
6
|
+
* a prop rather than a variant. Everything else is the same table: rows ordered
|
|
7
|
+
* by energy, one selected, the arrows walking it.
|
|
8
|
+
*
|
|
9
|
+
* The population column is the reason the ranking matters. A share is
|
|
10
|
+
* exponential in the energy gap, so it inherits the error of whatever produced
|
|
11
|
+
* the energies and magnifies it; the caption under the table says which method
|
|
12
|
+
* that was, and `boltzmannConfidence` says what its error is worth. A table
|
|
13
|
+
* that prints a force field's populations without that line is stating a
|
|
14
|
+
* percentage it cannot support.
|
|
15
|
+
*/
|
|
16
|
+
import type { ReactElement } from 'react';
|
|
17
|
+
import type { ConformerRow } from '../core/conformerEnergy.ts';
|
|
18
|
+
import type { ConformerRanking } from '../core/conformers.ts';
|
|
19
|
+
import type { ConformerColumn } from './conformerColumns.ts';
|
|
20
|
+
/** Props of {@link ConformerTable}. */
|
|
21
|
+
export interface ConformerTableProps {
|
|
22
|
+
/** The set, already ordered most stable first. */
|
|
23
|
+
conformers: readonly ConformerRow[];
|
|
24
|
+
/**
|
|
25
|
+
* Which columns to draw, in order.
|
|
26
|
+
* @default PICKER_COLUMNS
|
|
27
|
+
*/
|
|
28
|
+
columns?: readonly ConformerColumn[];
|
|
29
|
+
/**
|
|
30
|
+
* Which method's energies every column reads.
|
|
31
|
+
* @default 'force-field'
|
|
32
|
+
*/
|
|
33
|
+
ranking?: ConformerRanking;
|
|
34
|
+
/**
|
|
35
|
+
* The selected conformer's id, or `null` when none is.
|
|
36
|
+
* @default null
|
|
37
|
+
*/
|
|
38
|
+
selectedId?: number | null;
|
|
39
|
+
/** Called with the id of the row the reader picked. */
|
|
40
|
+
onSelect?: (id: number) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Temperature the shares are quoted at, in kelvin.
|
|
43
|
+
* @default ROOM_TEMPERATURE
|
|
44
|
+
*/
|
|
45
|
+
temperature?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Accessible name of the table.
|
|
48
|
+
* @default 'Conformers, most stable first'
|
|
49
|
+
*/
|
|
50
|
+
label?: string;
|
|
51
|
+
/**
|
|
52
|
+
* What the `id` column says for a conformer. A dense table wants the bare
|
|
53
|
+
* rank; a picker in a narrow column reads better naming the thing.
|
|
54
|
+
* @default String — the rank on its own
|
|
55
|
+
*/
|
|
56
|
+
rowName?: (id: number) => string;
|
|
57
|
+
/**
|
|
58
|
+
* Headings to use instead of the default ones, per column.
|
|
59
|
+
* @default undefined — every column keeps its own
|
|
60
|
+
*/
|
|
61
|
+
columnLabels?: Partial<Record<ConformerColumn, string>>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The conformers of a set, as a selectable table.
|
|
65
|
+
*
|
|
66
|
+
* The arrows walk the rows once the table has the focus, rather than from
|
|
67
|
+
* anywhere on the page: a conformer list usually sits beside a drawing surface
|
|
68
|
+
* or a 3D canvas, both of which read the arrows themselves.
|
|
69
|
+
* @param props - See {@link ConformerTableProps}.
|
|
70
|
+
* @returns The table, or `null` when there is nothing to show.
|
|
71
|
+
*/
|
|
72
|
+
export declare function ConformerTable(props: ConformerTableProps): ReactElement | null;
|
|
73
|
+
//# sourceMappingURL=ConformerTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConformerTable.d.ts","sourceRoot":"","sources":["../../../src/structure/ui/ConformerTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAgC,YAAY,EAAE,MAAM,OAAO,CAAC;AAUxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAO7D,uCAAuC;AACvC,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,UAAU,EAAE,SAAS,YAAY,EAAE,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,uDAAuD;IACvD,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;CACzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,mBAAmB,GACzB,YAAY,GAAG,IAAI,CA4IrB"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A conformer set, most stable first, as a table one row of which is selected.
|
|
4
|
+
*
|
|
5
|
+
* Two sites read the same set for different reasons — one picks the geometry a
|
|
6
|
+
* calculation runs on, the other reads the ranking itself — so the columns are
|
|
7
|
+
* a prop rather than a variant. Everything else is the same table: rows ordered
|
|
8
|
+
* by energy, one selected, the arrows walking it.
|
|
9
|
+
*
|
|
10
|
+
* The population column is the reason the ranking matters. A share is
|
|
11
|
+
* exponential in the energy gap, so it inherits the error of whatever produced
|
|
12
|
+
* the energies and magnifies it; the caption under the table says which method
|
|
13
|
+
* that was, and `boltzmannConfidence` says what its error is worth. A table
|
|
14
|
+
* that prints a force field's populations without that line is stating a
|
|
15
|
+
* percentage it cannot support.
|
|
16
|
+
*/
|
|
17
|
+
import { HTMLTable } from '@blueprintjs/core';
|
|
18
|
+
import { useEffect, useMemo, useRef } from 'react';
|
|
19
|
+
import { ClickToCopy } from "../../clipboard/ui/ClickToCopy.js";
|
|
20
|
+
import { formatPercent } from "../../format/core/numbers.js";
|
|
21
|
+
import { handleListNavigationKey } from "../../hooks/ui/listNavigation.js";
|
|
22
|
+
import { ROOM_TEMPERATURE, boltzmannShares, } from "../core/conformerBoltzmann.js";
|
|
23
|
+
import { relativeEnergyOf, totalEnergyOf } from "../core/conformerEnergy.js";
|
|
24
|
+
import { CONFORMER_COLUMN_LABELS, NUMERIC_CONFORMER_COLUMNS, PICKER_COLUMNS, } from "./conformerColumns.js";
|
|
25
|
+
/**
|
|
26
|
+
* The conformers of a set, as a selectable table.
|
|
27
|
+
*
|
|
28
|
+
* The arrows walk the rows once the table has the focus, rather than from
|
|
29
|
+
* anywhere on the page: a conformer list usually sits beside a drawing surface
|
|
30
|
+
* or a 3D canvas, both of which read the arrows themselves.
|
|
31
|
+
* @param props - See {@link ConformerTableProps}.
|
|
32
|
+
* @returns The table, or `null` when there is nothing to show.
|
|
33
|
+
*/
|
|
34
|
+
export function ConformerTable(props) {
|
|
35
|
+
const { conformers, columns = PICKER_COLUMNS, ranking = 'force-field', selectedId = null, onSelect, temperature = ROOM_TEMPERATURE, label = 'Conformers, most stable first', rowName = String, columnLabels, } = props;
|
|
36
|
+
const bodyRef = useRef(null);
|
|
37
|
+
const shares = useMemo(() => {
|
|
38
|
+
if (!columns.includes('population'))
|
|
39
|
+
return [];
|
|
40
|
+
const energies = new Array(conformers.length);
|
|
41
|
+
for (let index = 0; index < conformers.length; index++) {
|
|
42
|
+
const conformer = conformers[index];
|
|
43
|
+
energies[index] =
|
|
44
|
+
conformer === undefined ? null : relativeEnergyOf(conformer, ranking);
|
|
45
|
+
}
|
|
46
|
+
return boltzmannShares(energies, temperature);
|
|
47
|
+
}, [conformers, columns, ranking, temperature]);
|
|
48
|
+
const largestShare = useMemo(() => {
|
|
49
|
+
let largest = 0;
|
|
50
|
+
for (const share of shares) {
|
|
51
|
+
if (share != null && share > largest)
|
|
52
|
+
largest = share;
|
|
53
|
+
}
|
|
54
|
+
return largest;
|
|
55
|
+
}, [shares]);
|
|
56
|
+
// The picked row is brought into view rather than left under the fold, which
|
|
57
|
+
// is what makes walking a long set with the arrows usable.
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
if (bodyRef.current === null || selectedId === null)
|
|
60
|
+
return;
|
|
61
|
+
bodyRef.current
|
|
62
|
+
.querySelector('[aria-selected="true"]')
|
|
63
|
+
?.scrollIntoView({ block: 'nearest' });
|
|
64
|
+
}, [selectedId]);
|
|
65
|
+
if (conformers.length === 0)
|
|
66
|
+
return null;
|
|
67
|
+
function onKeyDown(event) {
|
|
68
|
+
if (onSelect === undefined)
|
|
69
|
+
return;
|
|
70
|
+
handleListNavigationKey(event, {
|
|
71
|
+
length: conformers.length,
|
|
72
|
+
selectedIndex: conformers.findIndex((conformer) => conformer.id === selectedId),
|
|
73
|
+
onSelect: (index) => {
|
|
74
|
+
const conformer = conformers[index];
|
|
75
|
+
if (conformer !== undefined)
|
|
76
|
+
onSelect(conformer.id);
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return (_jsxs(HTMLTable, { compact: true, interactive: true, striped: true, style: tableStyle, children: [_jsx("thead", { children: _jsx("tr", { children: columns.map((column) => (_jsx("th", { style: headerStyle(column), children: columnLabels?.[column] ?? CONFORMER_COLUMN_LABELS[column] }, column))) }) }), _jsx("tbody", { ref: bodyRef, onKeyDown: onKeyDown,
|
|
81
|
+
// Reached by Tab and then walked with the arrows: the surfaces beside a
|
|
82
|
+
// conformer list read the arrows themselves.
|
|
83
|
+
tabIndex: onSelect === undefined ? undefined : 0, role: "listbox", "aria-label": label, children: conformers.map((conformer, index) => {
|
|
84
|
+
const active = conformer.id === selectedId;
|
|
85
|
+
const copyableHere = onSelect === undefined || active;
|
|
86
|
+
return (_jsx("tr", { "data-testid": "conformer-row", "data-conformer-id": String(conformer.id), role: "option", "aria-selected": active, "data-selected": active ? 'true' : 'false', style: rowStyle(active, onSelect !== undefined), onClick: () => onSelect?.(conformer.id), children: columns.map((column) => {
|
|
87
|
+
const content = cellContent(column, conformer, ranking, shares[index] ?? null, largestShare, rowName);
|
|
88
|
+
// An energy is a value a reader takes away; a rank and a bar
|
|
89
|
+
// are not. A copy stops the click at the cell, so only the row
|
|
90
|
+
// already selected offers one: on any other row the click has
|
|
91
|
+
// to reach the row and select it, which is what a reader means
|
|
92
|
+
// by clicking a conformer they are not on.
|
|
93
|
+
return copyableHere &&
|
|
94
|
+
COPY_LABELS[column] !== undefined &&
|
|
95
|
+
typeof content === 'string' &&
|
|
96
|
+
content !== '—' ? (_jsx(ClickToCopy, { as: "td", style: cellStyle(column), value: content, label: COPY_LABELS[column], testId: CELL_TEST_IDS[column], children: content }, column)) : (_jsx("td", { style: cellStyle(column), "data-testid": CELL_TEST_IDS[column], children: content }, column));
|
|
97
|
+
}) }, conformer.id));
|
|
98
|
+
}) })] }));
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* What a copyable column is called in the hover title, and which columns are
|
|
102
|
+
* copyable at all.
|
|
103
|
+
*
|
|
104
|
+
* Only the relative energy: it is the number a chemist reads off the set and
|
|
105
|
+
* quotes elsewhere. A total force-field energy is an internal quantity nobody
|
|
106
|
+
* pastes, and a rank and a share are read on the page rather than taken away.
|
|
107
|
+
*/
|
|
108
|
+
const COPY_LABELS = {
|
|
109
|
+
relative: 'relative energy in kcal/mol',
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* A stable hook per cell, so a suite can read one column without counting
|
|
113
|
+
* table cells — which changes the moment a column is added.
|
|
114
|
+
*/
|
|
115
|
+
const CELL_TEST_IDS = {
|
|
116
|
+
id: 'conformer-id',
|
|
117
|
+
population: 'conformer-population',
|
|
118
|
+
relative: 'conformer-relative-energy',
|
|
119
|
+
total: 'conformer-total-energy',
|
|
120
|
+
forceFieldRelative: 'conformer-force-field-relative',
|
|
121
|
+
forceFieldRank: 'conformer-force-field-rank',
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* The share of a conformer, drawn as a bar.
|
|
125
|
+
*
|
|
126
|
+
* It takes its colour from the row it sits in — `currentColor` — so it is
|
|
127
|
+
* legible on a plain row and on the selected one without a rule per state.
|
|
128
|
+
*
|
|
129
|
+
* It is drawn against the largest share rather than against the whole: the
|
|
130
|
+
* column is narrow, and against the whole a set of twelve near-equal conformers
|
|
131
|
+
* would be twelve bars of three pixels.
|
|
132
|
+
* @param props - The share to draw, against the largest one in the set.
|
|
133
|
+
* @param props.share - The share from 0 to 1, or `null` when there is no energy.
|
|
134
|
+
* @param props.largest - The largest share in the set, which is the full width.
|
|
135
|
+
* @returns The bar.
|
|
136
|
+
*/
|
|
137
|
+
function ShareBar(props) {
|
|
138
|
+
const { share, largest } = props;
|
|
139
|
+
const width = share === null || largest <= 0
|
|
140
|
+
? 0
|
|
141
|
+
: Math.max(0, Math.min(1, share / largest)) * 100;
|
|
142
|
+
return (_jsx("span", { style: barTrackStyle, "aria-hidden": "true", children: _jsx("span", { style: { ...barFillStyle, width: `${width}%` } }) }));
|
|
143
|
+
}
|
|
144
|
+
function cellContent(column, conformer, ranking, share, largest, rowName) {
|
|
145
|
+
switch (column) {
|
|
146
|
+
case 'id':
|
|
147
|
+
return rowName(conformer.id);
|
|
148
|
+
case 'population':
|
|
149
|
+
return (_jsxs("span", { style: populationStyle, children: [_jsx(ShareBar, { share: share, largest: largest }), _jsx("span", { children: shareLabel(share) })] }));
|
|
150
|
+
case 'relative':
|
|
151
|
+
return energyLabel(relativeEnergyOf(conformer, ranking));
|
|
152
|
+
case 'total':
|
|
153
|
+
return energyLabel(totalEnergyOf(conformer, ranking));
|
|
154
|
+
case 'forceFieldRelative':
|
|
155
|
+
return energyLabel(conformer.relativeEnergy);
|
|
156
|
+
case 'forceFieldRank':
|
|
157
|
+
return conformer.refinement == null
|
|
158
|
+
? '—'
|
|
159
|
+
: String(conformer.refinement.forceFieldId);
|
|
160
|
+
default:
|
|
161
|
+
return '—';
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* The share of molecules in a conformer, as a percentage.
|
|
166
|
+
*
|
|
167
|
+
* A share that rounds to zero is written as `<0.1 %` instead: a conformer the
|
|
168
|
+
* search found and kept is populated by something, and `0 %` says it is not.
|
|
169
|
+
* @param share - The share from 0 to 1, or `null` when there is no energy.
|
|
170
|
+
* @returns The percentage, or a dash when it cannot be worked out.
|
|
171
|
+
*/
|
|
172
|
+
function shareLabel(share) {
|
|
173
|
+
if (share === null)
|
|
174
|
+
return '—';
|
|
175
|
+
if (share > 0 && share < 0.001)
|
|
176
|
+
return '<0.1 %';
|
|
177
|
+
return formatPercent(share);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* The energy to two decimals, or a dash when there is none.
|
|
181
|
+
*
|
|
182
|
+
* The unit is in the column header rather than in every cell, so the numbers
|
|
183
|
+
* line up and a row stays readable in a narrow panel.
|
|
184
|
+
* @param energy - kcal/mol, or `null`.
|
|
185
|
+
* @returns The label.
|
|
186
|
+
*/
|
|
187
|
+
function energyLabel(energy) {
|
|
188
|
+
if (energy === null)
|
|
189
|
+
return '—';
|
|
190
|
+
if (Math.abs(energy) < ENERGY_RESOLUTION)
|
|
191
|
+
return '0.00';
|
|
192
|
+
return energy > 0 ? `+${energy.toFixed(2)}` : energy.toFixed(2);
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Below this, two force-field energies are the same number to anyone reading
|
|
196
|
+
* them, and the duplicate-minimum test upstream has already decided they are
|
|
197
|
+
* distinct shapes.
|
|
198
|
+
*/
|
|
199
|
+
const ENERGY_RESOLUTION = 0.005;
|
|
200
|
+
function headerStyle(column) {
|
|
201
|
+
return NUMERIC_CONFORMER_COLUMNS.has(column) ? numericStyle : undefined;
|
|
202
|
+
}
|
|
203
|
+
function cellStyle(column) {
|
|
204
|
+
return NUMERIC_CONFORMER_COLUMNS.has(column) ? numericStyle : undefined;
|
|
205
|
+
}
|
|
206
|
+
const tableStyle = { width: '100%' };
|
|
207
|
+
const numericStyle = {
|
|
208
|
+
textAlign: 'right',
|
|
209
|
+
fontVariantNumeric: 'tabular-nums',
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* The selected row is tinted with the site's own accent, so the table belongs
|
|
213
|
+
* to whichever site draws it; a row is a pointer only where a click does
|
|
214
|
+
* something.
|
|
215
|
+
* @param active - Whether this row is the selected one.
|
|
216
|
+
* @param selectable - Whether a click selects a row at all.
|
|
217
|
+
* @returns The row's inline style, or `undefined` when it needs none.
|
|
218
|
+
*/
|
|
219
|
+
function rowStyle(active, selectable) {
|
|
220
|
+
if (active)
|
|
221
|
+
return selectable ? SELECTED_ROW : SELECTED_ROW_STATIC;
|
|
222
|
+
return selectable ? SELECTABLE_ROW : undefined;
|
|
223
|
+
}
|
|
224
|
+
const SELECTED_ROW_STATIC = {
|
|
225
|
+
background: 'color-mix(in oklab, var(--accent) 12%, white)',
|
|
226
|
+
fontWeight: 600,
|
|
227
|
+
};
|
|
228
|
+
const SELECTED_ROW = {
|
|
229
|
+
...SELECTED_ROW_STATIC,
|
|
230
|
+
cursor: 'pointer',
|
|
231
|
+
};
|
|
232
|
+
const SELECTABLE_ROW = { cursor: 'pointer' };
|
|
233
|
+
const populationStyle = {
|
|
234
|
+
display: 'flex',
|
|
235
|
+
alignItems: 'center',
|
|
236
|
+
gap: 6,
|
|
237
|
+
fontVariantNumeric: 'tabular-nums',
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* The track is tinted with `color-mix` rather than `opacity`, which the fill
|
|
241
|
+
* would inherit: an opacity on the track composites its child too, so the bar
|
|
242
|
+
* would be as faint as the groove it sits in.
|
|
243
|
+
*/
|
|
244
|
+
const barTrackStyle = {
|
|
245
|
+
display: 'block',
|
|
246
|
+
flex: '1 1 auto',
|
|
247
|
+
minWidth: 24,
|
|
248
|
+
height: 5,
|
|
249
|
+
borderRadius: 3,
|
|
250
|
+
backgroundColor: 'color-mix(in srgb, currentColor 22%, transparent)',
|
|
251
|
+
overflow: 'hidden',
|
|
252
|
+
};
|
|
253
|
+
const barFillStyle = {
|
|
254
|
+
display: 'block',
|
|
255
|
+
height: '100%',
|
|
256
|
+
borderRadius: 3,
|
|
257
|
+
backgroundColor: 'currentColor',
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=ConformerTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConformerTable.js","sourceRoot":"","sources":["../../../src/structure/ui/ConformerTable.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAoC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EACL,gBAAgB,EAChB,eAAe,GAChB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAI7E,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,cAAc,GACf,MAAM,uBAAuB,CAAC;AA8C/B;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc,CAC5B,KAA0B;IAE1B,MAAM,EACJ,UAAU,EACV,OAAO,GAAG,cAAc,EACxB,OAAO,GAAG,aAAa,EACvB,UAAU,GAAG,IAAI,EACjB,QAAQ,EACR,WAAW,GAAG,gBAAgB,EAC9B,KAAK,GAAG,+BAA+B,EACvC,OAAO,GAAG,MAAM,EAChB,YAAY,GACb,GAAG,KAAK,CAAC;IAEV,MAAM,OAAO,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IAEtD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE;QAC1B,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;YAAE,OAAO,EAAE,CAAC;QAC/C,MAAM,QAAQ,GAAG,IAAI,KAAK,CAAgB,UAAU,CAAC,MAAM,CAAC,CAAC;QAC7D,KAAK,IAAI,K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ConformerTable.tsx` exports a component and nothing
|
|
6
|
+
* else, which is what keeps fast refresh working on the sites that render it.
|
|
7
|
+
*/
|
|
8
|
+
/** One column of a conformer table. */
|
|
9
|
+
export type ConformerColumn =
|
|
10
|
+
/** The 1-based rank, which is also the conformer's id. */
|
|
11
|
+
'id'
|
|
12
|
+
/** The Boltzmann share, as a bar and a percentage. */
|
|
13
|
+
| 'population'
|
|
14
|
+
/** Energy above the most stable conformer, in the active ranking. */
|
|
15
|
+
| 'relative'
|
|
16
|
+
/** Total energy, in the active ranking. */
|
|
17
|
+
| 'total'
|
|
18
|
+
/** What the force field said before a refinement reordered the set. */
|
|
19
|
+
| 'forceFieldRelative'
|
|
20
|
+
/** The rank the conformer held before a refinement reordered the set. */
|
|
21
|
+
| 'forceFieldRank';
|
|
22
|
+
/** The columns a picker needs: which shape, how much of it, how far up. */
|
|
23
|
+
export declare const PICKER_COLUMNS: readonly ConformerColumn[];
|
|
24
|
+
/** The columns a reader of the ranking itself needs. */
|
|
25
|
+
export declare const RANKING_COLUMNS: readonly ConformerColumn[];
|
|
26
|
+
/** The heading of each column. The unit lives here, never in a cell. */
|
|
27
|
+
export declare const CONFORMER_COLUMN_LABELS: Record<ConformerColumn, string>;
|
|
28
|
+
/** The columns whose cells are numbers, and so are right-aligned and tabular. */
|
|
29
|
+
export declare const NUMERIC_CONFORMER_COLUMNS: ReadonlySet<ConformerColumn>;
|
|
30
|
+
//# sourceMappingURL=conformerColumns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformerColumns.d.ts","sourceRoot":"","sources":["../../../src/structure/ui/conformerColumns.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,uCAAuC;AACvC,MAAM,MAAM,eAAe;AACzB,0DAA0D;AACxD,IAAI;AACN,sDAAsD;GACpD,YAAY;AACd,qEAAqE;GACnE,UAAU;AACZ,2CAA2C;GACzC,OAAO;AACT,uEAAuE;GACrE,oBAAoB;AACtB,yEAAyE;GACvE,gBAAgB,CAAC;AAErB,2EAA2E;AAC3E,eAAO,MAAM,cAAc,EAAE,SAAS,eAAe,EAIpD,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,eAAe,EAAE,SAAS,eAAe,EAKrD,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAOnE,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,yBAAyB,EAAE,WAAW,CAAC,eAAe,CAKjE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The columns a conformer table can draw, and the two sets a site usually
|
|
3
|
+
* wants.
|
|
4
|
+
*
|
|
5
|
+
* Their own module so `ConformerTable.tsx` exports a component and nothing
|
|
6
|
+
* else, which is what keeps fast refresh working on the sites that render it.
|
|
7
|
+
*/
|
|
8
|
+
/** The columns a picker needs: which shape, how much of it, how far up. */
|
|
9
|
+
export const PICKER_COLUMNS = [
|
|
10
|
+
'id',
|
|
11
|
+
'population',
|
|
12
|
+
'relative',
|
|
13
|
+
];
|
|
14
|
+
/** The columns a reader of the ranking itself needs. */
|
|
15
|
+
export const RANKING_COLUMNS = [
|
|
16
|
+
'id',
|
|
17
|
+
'population',
|
|
18
|
+
'relative',
|
|
19
|
+
'total',
|
|
20
|
+
];
|
|
21
|
+
/** The heading of each column. The unit lives here, never in a cell. */
|
|
22
|
+
export const CONFORMER_COLUMN_LABELS = {
|
|
23
|
+
id: '#',
|
|
24
|
+
population: 'share',
|
|
25
|
+
relative: 'ΔE kcal/mol',
|
|
26
|
+
total: 'total kcal/mol',
|
|
27
|
+
forceFieldRelative: 'force field ΔE',
|
|
28
|
+
forceFieldRank: 'force field rank',
|
|
29
|
+
};
|
|
30
|
+
/** The columns whose cells are numbers, and so are right-aligned and tabular. */
|
|
31
|
+
export const NUMERIC_CONFORMER_COLUMNS = new Set([
|
|
32
|
+
'relative',
|
|
33
|
+
'total',
|
|
34
|
+
'forceFieldRelative',
|
|
35
|
+
'forceFieldRank',
|
|
36
|
+
]);
|
|
37
|
+
//# sourceMappingURL=conformerColumns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformerColumns.js","sourceRoot":"","sources":["../../../src/structure/ui/conformerColumns.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiBH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,cAAc,GAA+B;IACxD,IAAI;IACJ,YAAY;IACZ,UAAU;CACX,CAAC;AAEF,wDAAwD;AACxD,MAAM,CAAC,MAAM,eAAe,GAA+B;IACzD,IAAI;IACJ,YAAY;IACZ,UAAU;IACV,OAAO;CACR,CAAC;AAEF,wEAAwE;AACxE,MAAM,CAAC,MAAM,uBAAuB,GAAoC;IACtE,EAAE,EAAE,GAAG;IACP,UAAU,EAAE,OAAO;IACnB,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,gBAAgB;IACvB,kBAAkB,EAAE,gBAAgB;IACpC,cAAc,EAAE,kBAAkB;CACnC,CAAC;AAEF,iFAAiF;AACjF,MAAM,CAAC,MAAM,yBAAyB,GAAiC,IAAI,GAAG,CAAC;IAC7E,UAAU;IACV,OAAO;IACP,oBAAoB;IACpB,gBAAgB;CACjB,CAAC,CAAC"}
|
package/lib/ui.d.ts
CHANGED
|
@@ -27,4 +27,8 @@ export * from './scatter/ui/index.ts';
|
|
|
27
27
|
export * from './scatter3d/ui/index.ts';
|
|
28
28
|
export * from './share/ui/index.ts';
|
|
29
29
|
export * from './shared/ui/index.ts';
|
|
30
|
+
export type { ConformerTableProps } from './structure/ui/ConformerTable.tsx';
|
|
31
|
+
export { ConformerTable } from './structure/ui/ConformerTable.tsx';
|
|
32
|
+
export type { ConformerColumn } from './structure/ui/conformerColumns.ts';
|
|
33
|
+
export { CONFORMER_COLUMN_LABELS, PICKER_COLUMNS, RANKING_COLUMNS, } from './structure/ui/conformerColumns.ts';
|
|
30
34
|
//# sourceMappingURL=ui.d.ts.map
|
package/lib/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AAKrC,YAAY,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,YAAY,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,eAAe,GAChB,MAAM,oCAAoC,CAAC"}
|
package/lib/ui.js
CHANGED
|
@@ -27,4 +27,6 @@ export * from "./scatter/ui/index.js";
|
|
|
27
27
|
export * from "./scatter3d/ui/index.js";
|
|
28
28
|
export * from "./share/ui/index.js";
|
|
29
29
|
export * from "./shared/ui/index.js";
|
|
30
|
+
export { ConformerTable } from "./structure/ui/ConformerTable.js";
|
|
31
|
+
export { CONFORMER_COLUMN_LABELS, PICKER_COLUMNS, RANKING_COLUMNS, } from "./structure/ui/conformerColumns.js";
|
|
30
32
|
//# sourceMappingURL=ui.js.map
|
package/lib/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,u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AAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAmC,CAAC;AAEnE,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,eAAe,GAChB,MAAM,oCAAoC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cheminfo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React components, hooks and framework-free helpers shared by the cheminfo sites: site chrome, citations, sharing, routing, pedagogy, charts, and the structure, orbital and 3D molecule viewers",
|
|
6
6
|
"author": "Luc Patiny",
|