react-cheminfo 0.139.0 → 0.140.1

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.
Files changed (197) hide show
  1. package/lib/credits/core/credits.d.ts +12 -0
  2. package/lib/credits/core/credits.d.ts.map +1 -1
  3. package/lib/credits/core/credits.js +16 -0
  4. package/lib/credits/core/credits.js.map +1 -1
  5. package/lib/crystal3d/ui/CrystalCanvas3D.d.ts +1 -1
  6. package/lib/crystal3d/ui/CrystalCanvas3D.d.ts.map +1 -1
  7. package/lib/crystal3d/ui/CrystalViewer3D.d.ts +1 -1
  8. package/lib/crystal3d/ui/CrystalViewer3D.d.ts.map +1 -1
  9. package/lib/crystal3d/ui/crystalStructureViewerProps.d.ts +1 -1
  10. package/lib/crystal3d/ui/crystalStructureViewerProps.d.ts.map +1 -1
  11. package/lib/download/ui/FigureDownloadPanel.d.ts +17 -3
  12. package/lib/download/ui/FigureDownloadPanel.d.ts.map +1 -1
  13. package/lib/download/ui/FigureDownloadPanel.js +1 -1
  14. package/lib/download/ui/FigureDownloadPanel.js.map +1 -1
  15. package/lib/download/ui/FigureQuickActions.d.ts +10 -4
  16. package/lib/download/ui/FigureQuickActions.d.ts.map +1 -1
  17. package/lib/download/ui/FigureQuickActions.js +12 -6
  18. package/lib/download/ui/FigureQuickActions.js.map +1 -1
  19. package/lib/ecosystem/core/home.d.ts +19 -0
  20. package/lib/ecosystem/core/home.d.ts.map +1 -0
  21. package/lib/ecosystem/core/home.js +23 -0
  22. package/lib/ecosystem/core/home.js.map +1 -0
  23. package/lib/ecosystem/core/index.d.ts +3 -0
  24. package/lib/ecosystem/core/index.d.ts.map +1 -1
  25. package/lib/ecosystem/core/index.js +2 -0
  26. package/lib/ecosystem/core/index.js.map +1 -1
  27. package/lib/ecosystem/core/searchSites.d.ts +39 -0
  28. package/lib/ecosystem/core/searchSites.d.ts.map +1 -0
  29. package/lib/ecosystem/core/searchSites.js +77 -0
  30. package/lib/ecosystem/core/searchSites.js.map +1 -0
  31. package/lib/ecosystem/core/types.d.ts +1 -1
  32. package/lib/ecosystem/core/types.d.ts.map +1 -1
  33. package/lib/ecosystem/core/unlistedSites.d.ts.map +1 -1
  34. package/lib/ecosystem/core/unlistedSites.js +14 -0
  35. package/lib/ecosystem/core/unlistedSites.js.map +1 -1
  36. package/lib/ecosystem/ui/EcosystemButton.d.ts +6 -0
  37. package/lib/ecosystem/ui/EcosystemButton.d.ts.map +1 -1
  38. package/lib/ecosystem/ui/EcosystemButton.js +2 -2
  39. package/lib/ecosystem/ui/EcosystemButton.js.map +1 -1
  40. package/lib/ecosystem/ui/EcosystemMenu.d.ts +13 -4
  41. package/lib/ecosystem/ui/EcosystemMenu.d.ts.map +1 -1
  42. package/lib/ecosystem/ui/EcosystemMenu.js +56 -6
  43. package/lib/ecosystem/ui/EcosystemMenu.js.map +1 -1
  44. package/lib/ecosystem/ui/SiteGroupGrid.d.ts +12 -0
  45. package/lib/ecosystem/ui/SiteGroupGrid.d.ts.map +1 -1
  46. package/lib/ecosystem/ui/SiteGroupGrid.js +15 -2
  47. package/lib/ecosystem/ui/SiteGroupGrid.js.map +1 -1
  48. package/lib/ecosystem/ui/glyphs.d.ts.map +1 -1
  49. package/lib/ecosystem/ui/glyphs.js +4 -0
  50. package/lib/ecosystem/ui/glyphs.js.map +1 -1
  51. package/lib/i18n/core/chromeCatalog.d.ts +1 -1
  52. package/lib/i18n/core/chromeCatalog.d.ts.map +1 -1
  53. package/lib/locales/de.json +10 -0
  54. package/lib/locales/en.json +10 -0
  55. package/lib/locales/es.json +10 -0
  56. package/lib/locales/fr.json +10 -0
  57. package/lib/locales/it.json +10 -0
  58. package/lib/molecule3d/core/bondNeighbours.d.ts +30 -0
  59. package/lib/molecule3d/core/bondNeighbours.d.ts.map +1 -0
  60. package/lib/molecule3d/core/bondNeighbours.js +108 -0
  61. package/lib/molecule3d/core/bondNeighbours.js.map +1 -0
  62. package/lib/molecule3d/core/file.d.ts +15 -4
  63. package/lib/molecule3d/core/file.d.ts.map +1 -1
  64. package/lib/molecule3d/core/file.js +10 -1
  65. package/lib/molecule3d/core/file.js.map +1 -1
  66. package/lib/molecule3d/core/index.d.ts +11 -2
  67. package/lib/molecule3d/core/index.d.ts.map +1 -1
  68. package/lib/molecule3d/core/index.js +6 -1
  69. package/lib/molecule3d/core/index.js.map +1 -1
  70. package/lib/molecule3d/core/partialBondMode.d.ts +34 -0
  71. package/lib/molecule3d/core/partialBondMode.d.ts.map +1 -0
  72. package/lib/molecule3d/core/partialBondMode.js +39 -0
  73. package/lib/molecule3d/core/partialBondMode.js.map +1 -0
  74. package/lib/molecule3d/core/partialBondRanges.d.ts +61 -0
  75. package/lib/molecule3d/core/partialBondRanges.d.ts.map +1 -0
  76. package/lib/molecule3d/core/partialBondRanges.js +89 -0
  77. package/lib/molecule3d/core/partialBondRanges.js.map +1 -0
  78. package/lib/molecule3d/core/partialBonds.d.ts +61 -0
  79. package/lib/molecule3d/core/partialBonds.d.ts.map +1 -0
  80. package/lib/molecule3d/core/partialBonds.js +115 -0
  81. package/lib/molecule3d/core/partialBonds.js.map +1 -0
  82. package/lib/molecule3d/core/settings.d.ts +13 -35
  83. package/lib/molecule3d/core/settings.d.ts.map +1 -1
  84. package/lib/molecule3d/core/settings.js +17 -25
  85. package/lib/molecule3d/core/settings.js.map +1 -1
  86. package/lib/molecule3d/core/tools.d.ts +36 -0
  87. package/lib/molecule3d/core/tools.d.ts.map +1 -0
  88. package/lib/molecule3d/core/tools.js +24 -0
  89. package/lib/molecule3d/core/tools.js.map +1 -0
  90. package/lib/molecule3d/ui/Molecule3DExport.d.ts.map +1 -1
  91. package/lib/molecule3d/ui/Molecule3DExport.js +19 -2
  92. package/lib/molecule3d/ui/Molecule3DExport.js.map +1 -1
  93. package/lib/molecule3d/ui/Molecule3DOptions.d.ts +5 -2
  94. package/lib/molecule3d/ui/Molecule3DOptions.d.ts.map +1 -1
  95. package/lib/molecule3d/ui/Molecule3DOptions.js +6 -4
  96. package/lib/molecule3d/ui/Molecule3DOptions.js.map +1 -1
  97. package/lib/molecule3d/ui/Molecule3DPartialBonds.d.ts +22 -0
  98. package/lib/molecule3d/ui/Molecule3DPartialBonds.d.ts.map +1 -0
  99. package/lib/molecule3d/ui/Molecule3DPartialBonds.js +53 -0
  100. package/lib/molecule3d/ui/Molecule3DPartialBonds.js.map +1 -0
  101. package/lib/molecule3d/ui/Molecule3DToolbar.d.ts +1 -1
  102. package/lib/molecule3d/ui/Molecule3DToolbar.d.ts.map +1 -1
  103. package/lib/molecule3d/ui/Molecule3DToolbar.js +1 -1
  104. package/lib/molecule3d/ui/Molecule3DToolbar.js.map +1 -1
  105. package/lib/molecule3d/ui/MoleculeCanvas3D.d.ts.map +1 -1
  106. package/lib/molecule3d/ui/MoleculeCanvas3D.js +3 -2
  107. package/lib/molecule3d/ui/MoleculeCanvas3D.js.map +1 -1
  108. package/lib/molecule3d/ui/drawScene.d.ts +4 -3
  109. package/lib/molecule3d/ui/drawScene.d.ts.map +1 -1
  110. package/lib/molecule3d/ui/drawScene.js +12 -2
  111. package/lib/molecule3d/ui/drawScene.js.map +1 -1
  112. package/lib/molecule3d/ui/moleculeFileFormats.d.ts +3 -2
  113. package/lib/molecule3d/ui/moleculeFileFormats.d.ts.map +1 -1
  114. package/lib/molecule3d/ui/moleculeFileFormats.js +5 -3
  115. package/lib/molecule3d/ui/moleculeFileFormats.js.map +1 -1
  116. package/lib/molecule3d/ui/moleculeViewer3DProps.d.ts +2 -1
  117. package/lib/molecule3d/ui/moleculeViewer3DProps.d.ts.map +1 -1
  118. package/lib/molecule3d/ui/partialBondShapes.d.ts +117 -0
  119. package/lib/molecule3d/ui/partialBondShapes.d.ts.map +1 -0
  120. package/lib/molecule3d/ui/partialBondShapes.js +164 -0
  121. package/lib/molecule3d/ui/partialBondShapes.js.map +1 -0
  122. package/lib/molecule3d/ui/renderMolecule.d.ts +9 -0
  123. package/lib/molecule3d/ui/renderMolecule.d.ts.map +1 -1
  124. package/lib/molecule3d/ui/renderMolecule.js +17 -0
  125. package/lib/molecule3d/ui/renderMolecule.js.map +1 -1
  126. package/lib/molecule3d/ui/renderPartialBonds.d.ts +19 -0
  127. package/lib/molecule3d/ui/renderPartialBonds.d.ts.map +1 -0
  128. package/lib/molecule3d/ui/renderPartialBonds.js +90 -0
  129. package/lib/molecule3d/ui/renderPartialBonds.js.map +1 -0
  130. package/lib/molecule3d/ui/structureGeometry.d.ts +22 -0
  131. package/lib/molecule3d/ui/structureGeometry.d.ts.map +1 -0
  132. package/lib/molecule3d/ui/structureGeometry.js +63 -0
  133. package/lib/molecule3d/ui/structureGeometry.js.map +1 -0
  134. package/lib/molecule3d/ui/usePolarSurfaceArea.d.ts +2 -2
  135. package/lib/molecule3d/ui/usePolarSurfaceArea.d.ts.map +1 -1
  136. package/lib/molecule3d/ui/usePolarSurfaceArea.js +5 -4
  137. package/lib/molecule3d/ui/usePolarSurfaceArea.js.map +1 -1
  138. package/lib/molecule3d/ui/viewer.d.ts +8 -1
  139. package/lib/molecule3d/ui/viewer.d.ts.map +1 -1
  140. package/lib/molecule3d/ui/viewer.js +10 -0
  141. package/lib/molecule3d/ui/viewer.js.map +1 -1
  142. package/lib/molecule3d/ui/viewerTypes.d.ts +18 -0
  143. package/lib/molecule3d/ui/viewerTypes.d.ts.map +1 -1
  144. package/lib/panel/ui/FilterInput.d.ts +11 -0
  145. package/lib/panel/ui/FilterInput.d.ts.map +1 -1
  146. package/lib/panel/ui/FilterInput.js +10 -1
  147. package/lib/panel/ui/FilterInput.js.map +1 -1
  148. package/lib/shell/ui/ShellFrame.d.ts.map +1 -1
  149. package/lib/shell/ui/ShellFrame.js +3 -2
  150. package/lib/shell/ui/ShellFrame.js.map +1 -1
  151. package/package.json +1 -1
  152. package/src/credits/core/credits.ts +16 -0
  153. package/src/crystal3d/ui/CrystalCanvas3D.tsx +1 -1
  154. package/src/crystal3d/ui/CrystalViewer3D.tsx +1 -1
  155. package/src/crystal3d/ui/crystalStructureViewerProps.ts +1 -1
  156. package/src/download/ui/FigureDownloadPanel.tsx +20 -4
  157. package/src/download/ui/FigureQuickActions.tsx +18 -6
  158. package/src/ecosystem/core/home.ts +27 -0
  159. package/src/ecosystem/core/index.ts +7 -0
  160. package/src/ecosystem/core/searchSites.ts +102 -0
  161. package/src/ecosystem/core/types.ts +1 -0
  162. package/src/ecosystem/core/unlistedSites.ts +15 -0
  163. package/src/ecosystem/ui/EcosystemButton.tsx +8 -2
  164. package/src/ecosystem/ui/EcosystemMenu.tsx +103 -7
  165. package/src/ecosystem/ui/SiteGroupGrid.tsx +28 -3
  166. package/src/ecosystem/ui/glyphs.tsx +14 -0
  167. package/src/locales/de.json +10 -0
  168. package/src/locales/en.json +10 -0
  169. package/src/locales/es.json +10 -0
  170. package/src/locales/fr.json +10 -0
  171. package/src/locales/it.json +10 -0
  172. package/src/molecule3d/core/bondNeighbours.ts +108 -0
  173. package/src/molecule3d/core/file.ts +18 -4
  174. package/src/molecule3d/core/index.ts +17 -3
  175. package/src/molecule3d/core/partialBondMode.ts +48 -0
  176. package/src/molecule3d/core/partialBondRanges.ts +120 -0
  177. package/src/molecule3d/core/partialBonds.ts +180 -0
  178. package/src/molecule3d/core/settings.ts +29 -52
  179. package/src/molecule3d/core/tools.ts +51 -0
  180. package/src/molecule3d/ui/Molecule3DExport.tsx +17 -2
  181. package/src/molecule3d/ui/Molecule3DOptions.tsx +16 -3
  182. package/src/molecule3d/ui/Molecule3DPartialBonds.tsx +100 -0
  183. package/src/molecule3d/ui/Molecule3DToolbar.tsx +2 -2
  184. package/src/molecule3d/ui/MoleculeCanvas3D.tsx +3 -4
  185. package/src/molecule3d/ui/drawScene.ts +15 -2
  186. package/src/molecule3d/ui/moleculeFileFormats.ts +5 -3
  187. package/src/molecule3d/ui/moleculeViewer3DProps.ts +2 -1
  188. package/src/molecule3d/ui/partialBondShapes.ts +246 -0
  189. package/src/molecule3d/ui/renderMolecule.ts +20 -0
  190. package/src/molecule3d/ui/renderPartialBonds.ts +122 -0
  191. package/src/molecule3d/ui/structureGeometry.ts +73 -0
  192. package/src/molecule3d/ui/usePolarSurfaceArea.ts +5 -4
  193. package/src/molecule3d/ui/viewer.ts +12 -0
  194. package/src/molecule3d/ui/viewerTypes.ts +19 -0
  195. package/src/panel/ui/FilterInput.tsx +24 -0
  196. package/src/shell/ui/ShellFrame.tsx +7 -1
  197. package/styles/chrome.css +30 -6
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "Diesem Konto gehören hier noch Daten: Setzen Sie seine Rolle auf Lesen herab, statt es zu entfernen.",
75
75
  "ecosystem.tools": "Werkzeuge",
76
76
  "ecosystem.menuHeading": "Unsere Werkzeuge, alle im Browser",
77
+ "ecosystem.search": "Werkzeuge durchsuchen",
78
+ "ecosystem.noMatch": "Kein Werkzeug passt zu „{query}“.",
79
+ "ecosystem.homeTitle": "Alle Werkzeuge nach Thema, und was neu ist",
77
80
  "ecosystem.otherTools": "Unsere weiteren Werkzeuge",
78
81
  "ecosystem.youAreHere": "Sie sind hier",
79
82
  "ecosystem.group.basics.label": "Grundlagen der Chemie",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Laborglas zu einer funktionierenden Apparatur zusammensetzen und sie zeichnen.",
127
130
  "site.write.tagline": "Dokumente schreiben, deren Strukturen, 3D-Modelle und Platten sich dort wieder öffnen, wo sie entstanden sind.",
128
131
  "site.molecules.tagline": "Ein Molekül nachschlagen, mit seinen berechneten Eigenschaften und Quellen.",
132
+ "site.fair.tagline": "Veröffentlichte Chemie-Datensätze erkunden: Verbindungen, Spektren und Dokumente.",
129
133
  "site.chembio.tagline": "Naturstoffe, und die Organismen, in denen sie gefunden wurden.",
130
134
  "site.wikidata.tagline": "Die Chemie der Wikipedia-Infoboxen, nach Struktur durchsuchbar.",
131
135
  "site.mz.tagline": "Massenspektren, danach geordnet, wie sie gemessen wurden.",
@@ -741,6 +745,8 @@
741
745
  "molecule3d.exportImageOrMolfile": "Bild oder Molfile exportieren",
742
746
  "molecule3d.molfileHint": "Das Modell auf dem Bildschirm, mit seinen 3D-Koordinaten.",
743
747
  "molecule3d.molfileVersion": "Version",
748
+ "molecule3d.copyMolfile": "Als {version}-Molfile, bereit zum Einfügen.",
749
+ "molecule3d.copiedMolfile": "Kopiert, als {version}-Molfile.",
744
750
  "molecule3d.molfileV2000TooLarge": "V2000 fasst höchstens 999 Atome: Nehmen Sie V3000.",
745
751
  "molecule3d.frames": "Bilder",
746
752
  "molecule3d.framesHelp": "Ein animiertes PNG enthält alle Bilder und spielt sie in einer Schleife ab. Browser spielen es ab; ein Programm, das es nicht kann, zeigt das erste Bild.",
@@ -760,6 +766,10 @@
760
766
  "molecule3d.surfaceOpacity": "Deckkraft der Oberfläche",
761
767
  "molecule3d.solventProbe": "Lösungsmittelsonde [Å]",
762
768
  "molecule3d.solventProbeHelp": "Radius der Lösungsmittelkugel, die über die Atome gerollt wird. 1,4 Å entspricht einem Wassermolekül; eine größere Sonde glättet die Oberfläche und schließt die engen Taschen.",
769
+ "molecule3d.partialBonds": "Partielle Bindungen",
770
+ "molecule3d.partialBondsHelp": "Atome, die für eine Bindung etwas zu weit voneinander entfernt sind, wie bei einer Bindung, die sich bildet oder bricht, gestrichelt verbunden. Standardmäßig gezeichnet für eine XYZ-Datei, deren Bindungen aus den Abständen erraten werden.",
771
+ "molecule3d.partialBondLengths": "Ihre Längen anzeigen",
772
+ "molecule3d.partialBondsSpacefill": "Das Kalottenmodell zeichnet keine Bindungen.",
763
773
  "molecule3d.surfaceColour": "Farbe der Oberfläche",
764
774
  "molecule3d.colour": "Farbe",
765
775
  "molecule3d.resetSettings": "Auf Standardwerte zurücksetzen",
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "This account still owns data here: lower its role to Read rather than remove it.",
75
75
  "ecosystem.tools": "Tools",
76
76
  "ecosystem.menuHeading": "Our tools, all in the browser",
77
+ "ecosystem.search": "Search the tools",
78
+ "ecosystem.noMatch": "No tool matches “{query}”.",
79
+ "ecosystem.homeTitle": "Every tool by topic, and what is new on them",
77
80
  "ecosystem.otherTools": "Our other tools",
78
81
  "ecosystem.youAreHere": "you are here",
79
82
  "ecosystem.group.basics.label": "Chemistry basics",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Assemble lab glassware into a working apparatus, and draw it.",
127
130
  "site.write.tagline": "Write documents holding structures, 3D models and plates that open again where they were made.",
128
131
  "site.molecules.tagline": "Look up a molecule, its computed properties and its sources.",
132
+ "site.fair.tagline": "Explore published chemistry datasets: compounds, spectra and documents.",
129
133
  "site.chembio.tagline": "Natural products, and the organisms they were found in.",
130
134
  "site.wikidata.tagline": "The chemistry of Wikipedia’s infoboxes, searchable by structure.",
131
135
  "site.mz.tagline": "Mass spectra, classified by how they were measured.",
@@ -717,6 +721,8 @@
717
721
  "molecule3d.exportImageOrMolfile": "Export image or molfile",
718
722
  "molecule3d.molfileHint": "The model on screen, with its 3D coordinates.",
719
723
  "molecule3d.molfileVersion": "Version",
724
+ "molecule3d.copyMolfile": "As a {version} molfile, ready to paste.",
725
+ "molecule3d.copiedMolfile": "Copied, as a {version} molfile.",
720
726
  "molecule3d.molfileV2000TooLarge": "V2000 holds at most 999 atoms: take the V3000.",
721
727
  "molecule3d.frames": "Frames",
722
728
  "molecule3d.framesHelp": "An animated PNG holds every frame and plays them in a loop. Browsers play it; a program that cannot shows its first frame.",
@@ -736,6 +742,10 @@
736
742
  "molecule3d.surfaceOpacity": "Surface opacity",
737
743
  "molecule3d.solventProbe": "Solvent probe [Å]",
738
744
  "molecule3d.solventProbeHelp": "Radius of the solvent sphere rolled over the atoms. 1.4 Å is a water molecule; a larger probe smooths the surface and closes the narrow pockets.",
745
+ "molecule3d.partialBonds": "Partial bonds",
746
+ "molecule3d.partialBondsHelp": "Atoms a little too far apart to be bonded, as in a bond forming or breaking, joined by dashes. Drawn by default for an XYZ file, whose bonds are guessed from the distances.",
747
+ "molecule3d.partialBondLengths": "Label their lengths",
748
+ "molecule3d.partialBondsSpacefill": "Spacefill draws no bonds.",
739
749
  "molecule3d.surfaceColour": "Surface colour",
740
750
  "molecule3d.colour": "Colour",
741
751
  "molecule3d.resetSettings": "Reset to defaults",
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "Esta cuenta aún posee datos aquí: baje su rol a Lectura en lugar de eliminarla.",
75
75
  "ecosystem.tools": "Herramientas",
76
76
  "ecosystem.menuHeading": "Nuestras herramientas, todas en el navegador",
77
+ "ecosystem.search": "Buscar una herramienta",
78
+ "ecosystem.noMatch": "Ninguna herramienta coincide con «{query}».",
79
+ "ecosystem.homeTitle": "Todas las herramientas por tema, y sus novedades",
77
80
  "ecosystem.otherTools": "Nuestras otras herramientas",
78
81
  "ecosystem.youAreHere": "está aquí",
79
82
  "ecosystem.group.basics.label": "Fundamentos de química",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Montar el material de vidrio en un aparato que funciona, y dibujarlo.",
127
130
  "site.write.tagline": "Escribir documentos con estructuras, modelos 3D y placas que se vuelven a abrir donde se hicieron.",
128
131
  "site.molecules.tagline": "Buscar una molécula, sus propiedades calculadas y sus fuentes.",
132
+ "site.fair.tagline": "Explorar conjuntos de datos de química publicados: compuestos, espectros y documentos.",
129
133
  "site.chembio.tagline": "Productos naturales, y los organismos en los que se encontraron.",
130
134
  "site.wikidata.tagline": "La química de las fichas de Wikipedia, con búsqueda por estructura.",
131
135
  "site.mz.tagline": "Espectros de masas, clasificados según cómo se midieron.",
@@ -741,6 +745,8 @@
741
745
  "molecule3d.exportImageOrMolfile": "Exportar la imagen o el molfile",
742
746
  "molecule3d.molfileHint": "El modelo en pantalla, con sus coordenadas 3D.",
743
747
  "molecule3d.molfileVersion": "Versión",
748
+ "molecule3d.copyMolfile": "Como molfile {version}, listo para pegar.",
749
+ "molecule3d.copiedMolfile": "Copiado, como molfile {version}.",
744
750
  "molecule3d.molfileV2000TooLarge": "V2000 admite como máximo 999 átomos: use V3000.",
745
751
  "molecule3d.frames": "Fotogramas",
746
752
  "molecule3d.framesHelp": "Un PNG animado contiene todos los fotogramas y los reproduce en bucle. Los navegadores lo reproducen; un programa que no puede muestra el primer fotograma.",
@@ -760,6 +766,10 @@
760
766
  "molecule3d.surfaceOpacity": "Opacidad de la superficie",
761
767
  "molecule3d.solventProbe": "Sonda de disolvente [Å]",
762
768
  "molecule3d.solventProbeHelp": "Radio de la esfera de disolvente que se hace rodar sobre los átomos. 1,4 Å corresponde a una molécula de agua; una sonda mayor suaviza la superficie y cierra los huecos estrechos.",
769
+ "molecule3d.partialBonds": "Enlaces parciales",
770
+ "molecule3d.partialBondsHelp": "Átomos algo demasiado alejados para estar enlazados, como en un enlace que se forma o se rompe, unidos por guiones. Se dibujan por defecto para un archivo XYZ, cuyos enlaces se deducen de las distancias.",
771
+ "molecule3d.partialBondLengths": "Indicar sus longitudes",
772
+ "molecule3d.partialBondsSpacefill": "Las esferas compactas no dibujan ningún enlace.",
763
773
  "molecule3d.surfaceColour": "Color de la superficie",
764
774
  "molecule3d.colour": "Color",
765
775
  "molecule3d.resetSettings": "Restablecer los valores predeterminados",
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "Ce compte possède encore des données ici : abaissez son rôle à Lecture plutôt que de le supprimer.",
75
75
  "ecosystem.tools": "Outils",
76
76
  "ecosystem.menuHeading": "Nos outils, tous dans le navigateur",
77
+ "ecosystem.search": "Chercher un outil",
78
+ "ecosystem.noMatch": "Aucun outil ne correspond à « {query} ».",
79
+ "ecosystem.homeTitle": "Tous les outils par thème, et leurs nouveautés",
77
80
  "ecosystem.otherTools": "Nos autres outils",
78
81
  "ecosystem.youAreHere": "vous êtes ici",
79
82
  "ecosystem.group.basics.label": "Bases de la chimie",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Assembler la verrerie en un montage qui fonctionne, et le dessiner.",
127
130
  "site.write.tagline": "Écrire des documents qui contiennent structures, modèles 3D et plaques, chacun se rouvrant là où il a été fait.",
128
131
  "site.molecules.tagline": "Rechercher une molécule, ses propriétés calculées et ses sources.",
132
+ "site.fair.tagline": "Explorer des jeux de données de chimie publiés : composés, spectres et documents.",
129
133
  "site.chembio.tagline": "Les produits naturels, et les organismes où ils ont été trouvés.",
130
134
  "site.wikidata.tagline": "La chimie des infobox de Wikipédia, interrogeable par structure.",
131
135
  "site.mz.tagline": "Des spectres de masse, classés selon la façon dont ils ont été mesurés.",
@@ -741,6 +745,8 @@
741
745
  "molecule3d.exportImageOrMolfile": "Exporter l'image ou le molfile",
742
746
  "molecule3d.molfileHint": "Le modèle à l'écran, avec ses coordonnées 3D.",
743
747
  "molecule3d.molfileVersion": "Version",
748
+ "molecule3d.copyMolfile": "En molfile {version}, prêt à coller.",
749
+ "molecule3d.copiedMolfile": "Copié, en molfile {version}.",
744
750
  "molecule3d.molfileV2000TooLarge": "Le V2000 contient au plus 999 atomes : prenez le V3000.",
745
751
  "molecule3d.frames": "Images",
746
752
  "molecule3d.framesHelp": "Un PNG animé contient toutes les images et les joue en boucle. Les navigateurs le jouent ; un programme qui ne le peut pas montre la première image.",
@@ -760,6 +766,10 @@
760
766
  "molecule3d.surfaceOpacity": "Opacité de la surface",
761
767
  "molecule3d.solventProbe": "Sonde de solvant [Å]",
762
768
  "molecule3d.solventProbeHelp": "Rayon de la sphère de solvant roulée sur les atomes. 1,4 Å correspond à une molécule d'eau ; une sonde plus grande lisse la surface et ferme les poches étroites.",
769
+ "molecule3d.partialBonds": "Liaisons partielles",
770
+ "molecule3d.partialBondsHelp": "Atomes un peu trop éloignés pour être liés, comme dans une liaison qui se forme ou se rompt, reliés par des tirets. Dessinées par défaut pour un fichier XYZ, dont les liaisons sont devinées d'après les distances.",
771
+ "molecule3d.partialBondLengths": "Indiquer leurs longueurs",
772
+ "molecule3d.partialBondsSpacefill": "Les sphères compactes ne dessinent aucune liaison.",
763
773
  "molecule3d.surfaceColour": "Couleur de la surface",
764
774
  "molecule3d.colour": "Couleur",
765
775
  "molecule3d.resetSettings": "Rétablir les valeurs par défaut",
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "Questo account possiede ancora dei dati qui: abbassa il suo ruolo a Lettura invece di rimuoverlo.",
75
75
  "ecosystem.tools": "Strumenti",
76
76
  "ecosystem.menuHeading": "I nostri strumenti, tutti nel browser",
77
+ "ecosystem.search": "Cerca uno strumento",
78
+ "ecosystem.noMatch": "Nessuno strumento corrisponde a «{query}».",
79
+ "ecosystem.homeTitle": "Tutti gli strumenti per tema, e le loro novità",
77
80
  "ecosystem.otherTools": "I nostri altri strumenti",
78
81
  "ecosystem.youAreHere": "si trova qui",
79
82
  "ecosystem.group.basics.label": "Fondamenti di chimica",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Montare la vetreria in un apparato funzionante, e disegnarlo.",
127
130
  "site.write.tagline": "Scrivere documenti con strutture, modelli 3D e lastre che si riaprono dove sono stati creati.",
128
131
  "site.molecules.tagline": "Cercare una molecola, le sue proprietà calcolate e le sue fonti.",
132
+ "site.fair.tagline": "Esplorare insiemi di dati di chimica pubblicati: composti, spettri e documenti.",
129
133
  "site.chembio.tagline": "Prodotti naturali, e gli organismi in cui sono stati trovati.",
130
134
  "site.wikidata.tagline": "La chimica delle infobox di Wikipedia, ricercabile per struttura.",
131
135
  "site.mz.tagline": "Spettri di massa, classificati in base a come sono stati misurati.",
@@ -717,6 +721,8 @@
717
721
  "molecule3d.exportImageOrMolfile": "Esporta l'immagine o il molfile",
718
722
  "molecule3d.molfileHint": "Il modello sullo schermo, con le sue coordinate 3D.",
719
723
  "molecule3d.molfileVersion": "Versione",
724
+ "molecule3d.copyMolfile": "Come molfile {version}, pronto da incollare.",
725
+ "molecule3d.copiedMolfile": "Copiato, come molfile {version}.",
720
726
  "molecule3d.molfileV2000TooLarge": "V2000 contiene al massimo 999 atomi: usi V3000.",
721
727
  "molecule3d.frames": "Fotogrammi",
722
728
  "molecule3d.framesHelp": "Un PNG animato contiene tutti i fotogrammi e li riproduce in ciclo. I browser lo riproducono; un programma che non può mostra il primo fotogramma.",
@@ -736,6 +742,10 @@
736
742
  "molecule3d.surfaceOpacity": "Opacità della superficie",
737
743
  "molecule3d.solventProbe": "Sonda di solvente [Å]",
738
744
  "molecule3d.solventProbeHelp": "Raggio della sfera di solvente fatta rotolare sugli atomi. 1,4 Å corrisponde a una molecola d'acqua; una sonda più grande liscia la superficie e chiude le tasche strette.",
745
+ "molecule3d.partialBonds": "Legami parziali",
746
+ "molecule3d.partialBondsHelp": "Atomi un po' troppo distanti per essere legati, come in un legame che si forma o si rompe, uniti da trattini. Disegnati per impostazione predefinita per un file XYZ, i cui legami sono dedotti dalle distanze.",
747
+ "molecule3d.partialBondLengths": "Indicare le loro lunghezze",
748
+ "molecule3d.partialBondsSpacefill": "Le sfere compatte non disegnano alcun legame.",
739
749
  "molecule3d.surfaceColour": "Colore della superficie",
740
750
  "molecule3d.colour": "Colore",
741
751
  "molecule3d.resetSettings": "Ripristina i valori predefiniti",
@@ -0,0 +1,30 @@
1
+ /**
2
+ * How many bonds apart two atoms are, counted along the bonds drawn, up to
3
+ * three: a pair within two bonds is never a partial bond, and a pair three
4
+ * bonds apart is held to a shorter one.
5
+ */
6
+ /**
7
+ * Answers, for one atom at a time, how far other atoms are along the bonds.
8
+ *
9
+ * The atoms within two bonds of the atom asked about are stamped once, so every
10
+ * pair tested from it costs the neighbours of the other atom only.
11
+ */
12
+ export declare class BondNeighbours {
13
+ #private;
14
+ /**
15
+ * Index the bonds of `count` atoms.
16
+ * @param count - How many atoms.
17
+ * @param bonds - Atom-index pairs; a pair naming an atom out of range, or
18
+ * one atom twice, is skipped.
19
+ */
20
+ constructor(count: number, bonds: ArrayLike<number>);
21
+ /**
22
+ * How many bonds separate two atoms.
23
+ * @param from - One atom; asking from the same atom in a row is cheapest.
24
+ * @param to - The other.
25
+ * @returns 0 for one atom, 1 for a bonded pair, 2 for a pair with a common
26
+ * neighbour, 3 for a pair three bonds apart, and `Infinity` beyond.
27
+ */
28
+ separation(from: number, to: number): number;
29
+ }
30
+ //# sourceMappingURL=bondNeighbours.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bondNeighbours.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/core/bondNeighbours.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH;;;;;GAKG;AACH,qBAAa,cAAc;;IAQzB;;;;;OAKG;gBACS,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC;IAMnD;;;;;;OAMG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM;CAkC7C"}
@@ -0,0 +1,108 @@
1
+ /**
2
+ * How many bonds apart two atoms are, counted along the bonds drawn, up to
3
+ * three: a pair within two bonds is never a partial bond, and a pair three
4
+ * bonds apart is held to a shorter one.
5
+ */
6
+ import { bondGraph } from "../../crystal/core/components.js";
7
+ /**
8
+ * Answers, for one atom at a time, how far other atoms are along the bonds.
9
+ *
10
+ * The atoms within two bonds of the atom asked about are stamped once, so every
11
+ * pair tested from it costs the neighbours of the other atom only.
12
+ */
13
+ export class BondNeighbours {
14
+ #graph;
15
+ // within[atom] === from: the atom is `from` or one of its neighbours.
16
+ #within;
17
+ // second[atom] === from: the atom is two bonds from `from`, and no closer.
18
+ #second;
19
+ #stamped = -1;
20
+ /**
21
+ * Index the bonds of `count` atoms.
22
+ * @param count - How many atoms.
23
+ * @param bonds - Atom-index pairs; a pair naming an atom out of range, or
24
+ * one atom twice, is skipped.
25
+ */
26
+ constructor(count, bonds) {
27
+ this.#graph = bondGraph(count, periodicPairs(count, bonds));
28
+ this.#within = new Int32Array(count).fill(-1);
29
+ this.#second = new Int32Array(count).fill(-1);
30
+ }
31
+ /**
32
+ * How many bonds separate two atoms.
33
+ * @param from - One atom; asking from the same atom in a row is cheapest.
34
+ * @param to - The other.
35
+ * @returns 0 for one atom, 1 for a bonded pair, 2 for a pair with a common
36
+ * neighbour, 3 for a pair three bonds apart, and `Infinity` beyond.
37
+ */
38
+ separation(from, to) {
39
+ if (from === to)
40
+ return 0;
41
+ if (this.#stamped !== from)
42
+ this.#stamp(from);
43
+ if (this.#within[to] === from)
44
+ return 1;
45
+ const { offsets, targets } = this.#graph;
46
+ let closest = Infinity;
47
+ const last = offsets[to + 1] ?? 0;
48
+ for (let slot = offsets[to] ?? 0; slot < last; slot++) {
49
+ const neighbour = targets[slot] ?? 0;
50
+ if (this.#within[neighbour] === from)
51
+ return 2;
52
+ if (this.#second[neighbour] === from)
53
+ closest = 3;
54
+ }
55
+ return closest;
56
+ }
57
+ #stamp(from) {
58
+ const { offsets, targets } = this.#graph;
59
+ const within = this.#within;
60
+ const second = this.#second;
61
+ this.#stamped = from;
62
+ within[from] = from;
63
+ const last = offsets[from + 1] ?? 0;
64
+ for (let slot = offsets[from] ?? 0; slot < last; slot++) {
65
+ within[targets[slot] ?? 0] = from;
66
+ }
67
+ for (let slot = offsets[from] ?? 0; slot < last; slot++) {
68
+ const neighbour = targets[slot] ?? 0;
69
+ const end = offsets[neighbour + 1] ?? 0;
70
+ for (let next = offsets[neighbour] ?? 0; next < end; next++) {
71
+ const atom = targets[next] ?? 0;
72
+ if (within[atom] !== from)
73
+ second[atom] = from;
74
+ }
75
+ }
76
+ }
77
+ }
78
+ /**
79
+ * The bonds as the pairs `bondGraph` reads, all within one cell.
80
+ * @param count - How many atoms.
81
+ * @param bonds - Atom-index pairs.
82
+ * @returns The valid pairs.
83
+ */
84
+ function periodicPairs(count, bonds) {
85
+ const from = [];
86
+ const to = [];
87
+ const pairs = Math.floor(bonds.length / 2);
88
+ for (let pair = 0; pair < pairs; pair++) {
89
+ const a = bonds[pair * 2] ?? -1;
90
+ const b = bonds[pair * 2 + 1] ?? -1;
91
+ if (!isAtom(a, count) || !isAtom(b, count) || a === b)
92
+ continue;
93
+ from.push(a);
94
+ to.push(b);
95
+ }
96
+ return {
97
+ count: from.length,
98
+ from: Int32Array.from(from),
99
+ to: Int32Array.from(to),
100
+ shifts: new Int32Array(from.length * 3),
101
+ lengths: new Float64Array(from.length),
102
+ coincident: new Int32Array(0),
103
+ };
104
+ }
105
+ function isAtom(index, count) {
106
+ return Number.isInteger(index) && index >= 0 && index < count;
107
+ }
108
+ //# sourceMappingURL=bondNeighbours.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bondNeighbours.js","sourceRoot":"","sources":["../../../src/molecule3d/core/bondNeighbours.ts"],"names":[],"mappings":"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"}
@@ -2,15 +2,18 @@
2
2
  * A molfile for the viewer, with the parser molstar has to read it with.
3
3
  *
4
4
  * A file of several models — an SDF of several records, an XYZ of several
5
- * frames — is a series of frames of one molecule, which the viewer can play
6
- * and export as an animated PNG.
5
+ * frames, a PDB of several `MODEL`s — is a series of frames of one molecule,
6
+ * which the viewer can play and export as an animated PNG.
7
7
  */
8
8
  export interface Molecule3DFile {
9
9
  /**
10
10
  * molstar's format id: `mol` reads V2000, `sdf` reads V2000 and V3000, `xyz`
11
- * reads bare coordinates and infers the bonds from the distances.
11
+ * reads bare coordinates and infers the bonds from the distances, `pdb`
12
+ * reads `ATOM` and `HETATM` records and takes the bonds its `CONECT` records
13
+ * give, inferring from the distances any they leave out — all of them in a
14
+ * file that has none.
12
15
  */
13
- format: 'mol' | 'sdf' | 'xyz';
16
+ format: 'mol' | 'sdf' | 'xyz' | 'pdb';
14
17
  /** The file text. It must carry 3D coordinates. */
15
18
  data: string;
16
19
  /**
@@ -21,4 +24,12 @@ export interface Molecule3DFile {
21
24
  */
22
25
  moleculeId?: string;
23
26
  }
27
+ /**
28
+ * Whether a file is a molfile: a connection table openchemlib reads, so it can
29
+ * be copied as a molfile and its polar surface area computed. An XYZ has no
30
+ * bonds to read, and openchemlib reads no PDB.
31
+ * @param format - The format of the file.
32
+ * @returns True for `mol` and `sdf`.
33
+ */
34
+ export declare function isMolfileFormat(format: Molecule3DFile['format']): boolean;
24
35
  //# sourceMappingURL=file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/core/file.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAC9B,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/core/file.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACtC,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,OAAO,CAEzE"}
@@ -1,2 +1,11 @@
1
- export {};
1
+ /**
2
+ * Whether a file is a molfile: a connection table openchemlib reads, so it can
3
+ * be copied as a molfile and its polar surface area computed. An XYZ has no
4
+ * bonds to read, and openchemlib reads no PDB.
5
+ * @param format - The format of the file.
6
+ * @returns True for `mol` and `sdf`.
7
+ */
8
+ export function isMolfileFormat(format) {
9
+ return format === 'mol' || format === 'sdf';
10
+ }
2
11
  //# sourceMappingURL=file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.js","sourceRoot":"","sources":["../../../src/molecule3d/core/file.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"file.js","sourceRoot":"","sources":["../../../src/molecule3d/core/file.ts"],"names":[],"mappings":"AA2BA;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,MAAgC;IAC9D,OAAO,MAAM,KAAK,KAAK,IAAI,MAAM,KAAK,KAAK,CAAC;AAC9C,CAAC"}
@@ -13,6 +13,15 @@ export { highlightedParts, sameHighlights } from './highlight.ts';
13
13
  export type { AtomReference, Measurement, MeasurementKind, } from './measurement.ts';
14
14
  export { MEASUREMENT_ATOM_COUNTS, MEASUREMENT_KINDS, MEASUREMENT_LABELS, removeMeasurement, sameMeasurements, } from './measurement.ts';
15
15
  export type { Molecule3DFile } from './file.ts';
16
- export type { Molecule3DSettings, Molecule3DTools, RepresentationId, SurfaceColoringId, } from './settings.ts';
17
- export { DEFAULT_MOLECULE_3D_SETTINGS, DEFAULT_MOLECULE_3D_TOOLS, MOLECULE_3D_RANGES, REPRESENTATIONS, REPRESENTATION_LABELS, SURFACE_CHARGE_COLORS, SURFACE_COLORINGS, SURFACE_COLORING_LABELS, isRepresentationId, isSurfaceColoringId, normalizeMolecule3DSettings, resetMolecule3DSettings, resolveMolecule3DTools, sameMolecule3DSettings, } from './settings.ts';
16
+ export { isMolfileFormat } from './file.ts';
17
+ export type { PartialBondMode } from './partialBondMode.ts';
18
+ export { PARTIAL_BOND_MODES, isPartialBondMode, showsPartialBonds, } from './partialBondMode.ts';
19
+ export type { PartialBondReach } from './partialBondRanges.ts';
20
+ export { FAR_PARTIAL_BOND, NEAR_PARTIAL_BOND } from './partialBondRanges.ts';
21
+ export type { PartialBond, PartialBondGeometry, PartialBondOptions, } from './partialBonds.ts';
22
+ export { findPartialBonds } from './partialBonds.ts';
23
+ export type { Molecule3DSettings, RepresentationId, SurfaceColoringId, } from './settings.ts';
24
+ export { DEFAULT_MOLECULE_3D_SETTINGS, MOLECULE_3D_RANGES, REPRESENTATIONS, REPRESENTATION_LABELS, SURFACE_CHARGE_COLORS, SURFACE_COLORINGS, SURFACE_COLORING_LABELS, isRepresentationId, isSurfaceColoringId, normalizeMolecule3DSettings, resetMolecule3DSettings, sameMolecule3DSettings, } from './settings.ts';
25
+ export type { Molecule3DTools } from './tools.ts';
26
+ export { DEFAULT_MOLECULE_3D_TOOLS, resolveMolecule3DTools } from './tools.ts';
18
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAChF,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACjE,YAAY,EACV,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,YAAY,EACV,aAAa,EACb,WAAW,EACX,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAChF,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACjE,YAAY,EACV,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,YAAY,EACV,aAAa,EACb,WAAW,EACX,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,YAAY,EACV,WAAW,EACX,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
@@ -5,5 +5,10 @@ export { FIGURE_IMAGE_QUALITY, FIGURE_IMAGE_TYPE, FIGURE_LONGEST_SIDE, figureFra
5
5
  export { MOLECULE_3D_GESTURES } from "./gestures.js";
6
6
  export { highlightedParts, sameHighlights } from "./highlight.js";
7
7
  export { MEASUREMENT_ATOM_COUNTS, MEASUREMENT_KINDS, MEASUREMENT_LABELS, removeMeasurement, sameMeasurements, } from "./measurement.js";
8
- export { DEFAULT_MOLECULE_3D_SETTINGS, DEFAULT_MOLECULE_3D_TOOLS, MOLECULE_3D_RANGES, REPRESENTATIONS, REPRESENTATION_LABELS, SURFACE_CHARGE_COLORS, SURFACE_COLORINGS, SURFACE_COLORING_LABELS, isRepresentationId, isSurfaceColoringId, normalizeMolecule3DSettings, resetMolecule3DSettings, resolveMolecule3DTools, sameMolecule3DSettings, } from "./settings.js";
8
+ export { isMolfileFormat } from "./file.js";
9
+ export { PARTIAL_BOND_MODES, isPartialBondMode, showsPartialBonds, } from "./partialBondMode.js";
10
+ export { FAR_PARTIAL_BOND, NEAR_PARTIAL_BOND } from "./partialBondRanges.js";
11
+ export { findPartialBonds } from "./partialBonds.js";
12
+ export { DEFAULT_MOLECULE_3D_SETTINGS, MOLECULE_3D_RANGES, REPRESENTATIONS, REPRESENTATION_LABELS, SURFACE_CHARGE_COLORS, SURFACE_COLORINGS, SURFACE_COLORING_LABELS, isRepresentationId, isSurfaceColoringId, normalizeMolecule3DSettings, resetMolecule3DSettings, sameMolecule3DSettings, } from "./settings.js";
13
+ export { DEFAULT_MOLECULE_3D_TOOLS, resolveMolecule3DTools } from "./tools.js";
9
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecule3d/core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAMhF,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAOjE,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAMrD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMlE,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecule3d/core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAMhF,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAOjE,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAMrD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMlE,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAM7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAMrD,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Whether the viewer draws the partial bonds of a molecule, as a setting a site
3
+ * can persist.
4
+ */
5
+ import type { Molecule3DFile } from './file.ts';
6
+ /**
7
+ * `auto` draws the partial bonds of an XYZ file and not those of a molfile;
8
+ * `on` and `off` draw them, or not, whatever the file.
9
+ */
10
+ export declare const PARTIAL_BOND_MODES: readonly ["auto", "on", "off"];
11
+ /** One of {@link PARTIAL_BOND_MODES}. */
12
+ export type PartialBondMode = (typeof PARTIAL_BOND_MODES)[number];
13
+ /**
14
+ * Narrow an arbitrary value — a stored preference — to a partial bond mode.
15
+ * @param value - Candidate mode.
16
+ * @returns True when it is one of {@link PARTIAL_BOND_MODES}.
17
+ */
18
+ export declare function isPartialBondMode(value: unknown): value is PartialBondMode;
19
+ /**
20
+ * Whether a file's partial bonds are drawn.
21
+ *
22
+ * An XYZ file carries no bonds: they are guessed from the distances, and the
23
+ * guess is what drops the stretched bonds of a transition state, so `auto`
24
+ * draws them. A molfile states its bonds, the forming ones included when its
25
+ * author wanted them, so `auto` adds nothing to it. Nor to a PDB: its bonds
26
+ * are written in `CONECT` records, and where they are not, the file is mostly
27
+ * a measured structure, whose stretched pairs are far likelier two sites of a
28
+ * disorder than a bond being made.
29
+ * @param mode - The setting.
30
+ * @param format - The format of the file on screen.
31
+ * @returns True when the partial bonds are drawn.
32
+ */
33
+ export declare function showsPartialBonds(mode: PartialBondMode, format: Molecule3DFile['format']): boolean;
34
+ //# sourceMappingURL=partialBondMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partialBondMode.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/core/partialBondMode.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gCAAiC,CAAC;AAEjE,yCAAyC;AACzC,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAK1E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,eAAe,EACrB,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAC/B,OAAO,CAET"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Whether the viewer draws the partial bonds of a molecule, as a setting a site
3
+ * can persist.
4
+ */
5
+ /**
6
+ * `auto` draws the partial bonds of an XYZ file and not those of a molfile;
7
+ * `on` and `off` draw them, or not, whatever the file.
8
+ */
9
+ export const PARTIAL_BOND_MODES = ['auto', 'on', 'off'];
10
+ /**
11
+ * Narrow an arbitrary value — a stored preference — to a partial bond mode.
12
+ * @param value - Candidate mode.
13
+ * @returns True when it is one of {@link PARTIAL_BOND_MODES}.
14
+ */
15
+ export function isPartialBondMode(value) {
16
+ for (const mode of PARTIAL_BOND_MODES) {
17
+ if (mode === value)
18
+ return true;
19
+ }
20
+ return false;
21
+ }
22
+ /**
23
+ * Whether a file's partial bonds are drawn.
24
+ *
25
+ * An XYZ file carries no bonds: they are guessed from the distances, and the
26
+ * guess is what drops the stretched bonds of a transition state, so `auto`
27
+ * draws them. A molfile states its bonds, the forming ones included when its
28
+ * author wanted them, so `auto` adds nothing to it. Nor to a PDB: its bonds
29
+ * are written in `CONECT` records, and where they are not, the file is mostly
30
+ * a measured structure, whose stretched pairs are far likelier two sites of a
31
+ * disorder than a bond being made.
32
+ * @param mode - The setting.
33
+ * @param format - The format of the file on screen.
34
+ * @returns True when the partial bonds are drawn.
35
+ */
36
+ export function showsPartialBonds(mode, format) {
37
+ return mode === 'auto' ? format === 'xyz' : mode === 'on';
38
+ }
39
+ //# sourceMappingURL=partialBondMode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partialBondMode.js","sourceRoot":"","sources":["../../../src/molecule3d/core/partialBondMode.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAU,CAAC;AAKjE;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,KAAK,MAAM,IAAI,IAAI,kBAAkB,EAAE,CAAC;QACtC,IAAI,IAAI,KAAK,KAAK;YAAE,OAAO,IAAI,CAAC;IAClC,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,iBAAiB,CAC/B,IAAqB,EACrB,MAAgC;IAEhC,OAAO,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC;AAC5D,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * The distances a partial bond may span, per pair of elements.
3
+ */
4
+ /** How far past the bonding limit a partial bond may be. */
5
+ export interface PartialBondReach {
6
+ /** The most a partial bond may be, as a multiple of the bonding limit. */
7
+ readonly stretch: number;
8
+ /** And the most it may exceed the limit by, Å. */
9
+ readonly reach: number;
10
+ }
11
+ /**
12
+ * The reach of a pair three bonds apart, or holding a hydrogen: 1.4 times the
13
+ * limit, and at most 0.7 Å past it — 2.45 Å for C–C.
14
+ *
15
+ * Three bonds apart, the ends of a ring are already close: 2.59 Å across
16
+ * bicyclo[2.2.2]octane, 2.63 Å across a boat cyclohexane. With a hydrogen, the
17
+ * stretch stops short of a hydrogen bond: O–H is bonded up to 1.1 Å, and
18
+ * O–H···O starts near 1.6 Å. The 0.7 Å holds back the elements whose limit is
19
+ * long already: 1.4 times the 2.48 Å of C–I would reach the carbon three bonds
20
+ * away in a gauche iodoalkane, at 3.4 Å.
21
+ */
22
+ export declare const NEAR_PARTIAL_BOND: PartialBondReach;
23
+ /**
24
+ * The reach of two heavy atoms further apart, or in separate molecules: 1.5
25
+ * times the limit, and at most 0.85 Å past it — 2.6 Å for C–C, which takes in
26
+ * the forming bonds of the usual transition states, 2.0–2.6 Å, while two
27
+ * molecules merely in contact are 3.2 Å apart or more.
28
+ */
29
+ export declare const FAR_PARTIAL_BOND: PartialBondReach;
30
+ /** The limits of every pair of elements, row-major over the elements present. */
31
+ export interface PairRanges {
32
+ /** The longest bond, Å; a partial bond is longer. */
33
+ readonly limit: Float64Array;
34
+ /** The longest partial bond three bonds apart, or with a hydrogen, Å. */
35
+ readonly near: Float64Array;
36
+ /** The longest partial bond otherwise, Å. */
37
+ readonly far: Float64Array;
38
+ /** The longest partial bond of all, Å. */
39
+ readonly longest: number;
40
+ }
41
+ /**
42
+ * The bonding limit and the two partial bond limits of every pair of the
43
+ * elements present, row-major; all 0 for a pair never partially bonded.
44
+ * @param symbols - The elements present.
45
+ * @param bondLimit - The longest bond between two elements, 0 for never.
46
+ * @param nearReach - The reach of a pair three bonds apart, or with a hydrogen.
47
+ * @param farReach - The reach of any other pair.
48
+ * @returns The limits, and the longest partial bond of all.
49
+ */
50
+ export declare function pairRanges(symbols: readonly string[], bondLimit: (a: string, b: string) => number, nearReach: PartialBondReach, farReach: PartialBondReach): PairRanges;
51
+ /**
52
+ * The elements present, and which of them each atom is.
53
+ * @param elements - The element of each atom.
54
+ * @param count - How many atoms are read.
55
+ * @returns The index of each atom's element, and the elements.
56
+ */
57
+ export declare function elementKinds(elements: readonly string[], count: number): {
58
+ indices: Int32Array<ArrayBuffer>;
59
+ symbols: string[];
60
+ };
61
+ //# sourceMappingURL=partialBondRanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partialBondRanges.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/core/partialBondRanges.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,4DAA4D;AAC5D,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,gBAA+C,CAAC;AAEhF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAAgD,CAAC;AAEhF,iFAAiF;AACjF,MAAM,WAAW,UAAU;IACzB,qDAAqD;IACrD,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,yEAAyE;IACzE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,6CAA6C;IAC7C,QAAQ,CAAC,GAAG,EAAE,YAAY,CAAC;IAC3B,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,EAC3C,SAAS,EAAE,gBAAgB,EAC3B,QAAQ,EAAE,gBAAgB,GACzB,UAAU,CA0BZ;AAaD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM;;;EAetE"}