react-cheminfo 0.56.0 → 0.57.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/lib/credits/core/credits.d.ts +12 -0
- package/lib/credits/core/credits.d.ts.map +1 -1
- package/lib/credits/core/credits.js +14 -0
- package/lib/credits/core/credits.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 +1 -0
- package/lib/locales/en.json +1 -0
- package/lib/locales/es.json +1 -0
- package/lib/locales/fr.json +1 -0
- package/lib/locales/it.json +1 -0
- package/lib/molecule3d/core/settings.d.ts +6 -0
- package/lib/molecule3d/core/settings.d.ts.map +1 -1
- package/lib/molecule3d/core/settings.js +1 -0
- package/lib/molecule3d/core/settings.js.map +1 -1
- package/lib/molecule3d/ui/Molecule3DStage.d.ts +29 -0
- package/lib/molecule3d/ui/Molecule3DStage.d.ts.map +1 -0
- package/lib/molecule3d/ui/Molecule3DStage.js +40 -0
- package/lib/molecule3d/ui/Molecule3DStage.js.map +1 -0
- package/lib/molecule3d/ui/Molecule3DToolbar.d.ts +14 -1
- package/lib/molecule3d/ui/Molecule3DToolbar.d.ts.map +1 -1
- package/lib/molecule3d/ui/Molecule3DToolbar.js +5 -3
- package/lib/molecule3d/ui/Molecule3DToolbar.js.map +1 -1
- package/lib/molecule3d/ui/MoleculeCanvas3D.d.ts +2 -1
- package/lib/molecule3d/ui/MoleculeCanvas3D.d.ts.map +1 -1
- package/lib/molecule3d/ui/MoleculeCanvas3D.js +7 -6
- package/lib/molecule3d/ui/MoleculeCanvas3D.js.map +1 -1
- package/lib/molecule3d/ui/MoleculeViewer3D.d.ts +2 -1
- package/lib/molecule3d/ui/MoleculeViewer3D.d.ts.map +1 -1
- package/lib/molecule3d/ui/MoleculeViewer3D.js +2 -1
- package/lib/molecule3d/ui/MoleculeViewer3D.js.map +1 -1
- package/lib/molecule3d/ui/index.d.ts +1 -1
- package/lib/molecule3d/ui/index.d.ts.map +1 -1
- package/lib/molecule3d/ui/index.js.map +1 -1
- package/package.json +1 -1
- package/src/credits/core/credits.ts +15 -0
- package/src/locales/de.json +1 -0
- package/src/locales/en.json +1 -0
- package/src/locales/es.json +1 -0
- package/src/locales/fr.json +1 -0
- package/src/locales/it.json +1 -0
- package/src/molecule3d/core/settings.ts +7 -0
- package/src/molecule3d/ui/Molecule3DStage.tsx +80 -0
- package/src/molecule3d/ui/Molecule3DToolbar.tsx +28 -1
- package/src/molecule3d/ui/MoleculeCanvas3D.tsx +48 -37
- package/src/molecule3d/ui/MoleculeViewer3D.tsx +2 -1
- package/src/molecule3d/ui/index.ts +4 -1
|
@@ -245,6 +245,18 @@ export declare const CREDITS: readonly [{
|
|
|
245
245
|
readonly href: "https://en.wikipedia.org/";
|
|
246
246
|
readonly description: "the articles, and the Chembox and Drugbox infoboxes every value is read from.";
|
|
247
247
|
readonly license: "CC-BY-SA-4.0";
|
|
248
|
+
}, {
|
|
249
|
+
readonly id: "wikidata";
|
|
250
|
+
readonly name: "Wikidata";
|
|
251
|
+
readonly href: "https://www.wikidata.org/";
|
|
252
|
+
readonly description: "the name of every compound in every language, and its article in each Wikipedia.";
|
|
253
|
+
readonly license: "CC0-1.0";
|
|
254
|
+
}, {
|
|
255
|
+
readonly id: "country-flag-icons";
|
|
256
|
+
readonly name: "country-flag-icons";
|
|
257
|
+
readonly href: "https://gitlab.com/catamphetamine/country-flag-icons";
|
|
258
|
+
readonly description: "the flag each language is picked by.";
|
|
259
|
+
readonly license: "MIT";
|
|
248
260
|
}, {
|
|
249
261
|
readonly id: "wtf-wikipedia";
|
|
250
262
|
readonly name: "wtf_wikipedia";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/credits/core/credits.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,MAAM,WAAW,WAAW;IAC1B,iDAAiD;IACjD,EAA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MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoSuB,CAAC"}
|
|
@@ -275,6 +275,20 @@ export const CREDITS = [
|
|
|
275
275
|
description: 'the articles, and the Chembox and Drugbox infoboxes every value is read from.',
|
|
276
276
|
license: 'CC-BY-SA-4.0',
|
|
277
277
|
},
|
|
278
|
+
{
|
|
279
|
+
id: 'wikidata',
|
|
280
|
+
name: 'Wikidata',
|
|
281
|
+
href: 'https://www.wikidata.org/',
|
|
282
|
+
description: 'the name of every compound in every language, and its article in each Wikipedia.',
|
|
283
|
+
license: 'CC0-1.0',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
id: 'country-flag-icons',
|
|
287
|
+
name: 'country-flag-icons',
|
|
288
|
+
href: 'https://gitlab.com/catamphetamine/country-flag-icons',
|
|
289
|
+
description: 'the flag each language is picked by.',
|
|
290
|
+
license: 'MIT',
|
|
291
|
+
},
|
|
278
292
|
{
|
|
279
293
|
id: 'wtf-wikipedia',
|
|
280
294
|
name: 'wtf_wikipedia',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/credits/core/credits.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;GASG;AACH,MAAM,UAAU,OAAO,CAAC,GAAwB;IAC9C,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC3B,IAAI,KAAK,KAAK,SAAS,EAA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0D;KACxE;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EACT,+EAA+E;QACjF,OAAO,EAAE,cAAc;KACxB;IACD;QACE,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,kDAAkD;QACxD,WAAW,EACT,uEAAuE;QACzE,OAAO,EAAE,KAAK;KACf;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,KAAK;KACf;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,KAAK;KACf;CACwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/credits/core/credits.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;GASG;AACH,MAAM,UAAU,OAAO,CAAC,GAAwB;IAC9C,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC3B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;QAC3C,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAU;IACjC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED;;;GAGG;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D,WAAW,EAAE,sCAAsC;QACnD,OAAO,EAAE,KAAK;KACf;IACD;QACE,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,kDAAkD;QACxD,WAAW,EACT,uEAAuE;QACzE,OAAO,EAAE,KAAK;KACf;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,KAAK;KACf;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,KAAK;KACf;CACwC,CAAC"}
|
|
@@ -17,5 +17,5 @@ export type ChromeKey = keyof typeof en;
|
|
|
17
17
|
* missing message falls back to; every other language arrives as a chunk of its
|
|
18
18
|
* own, so a site read only in English downloads none of them.
|
|
19
19
|
*/
|
|
20
|
-
export declare const CHROME_CATALOG: MessageCatalog<"language.label" | "chrome.pages" | "chrome.about" | "chrome.aboutTitle" | "chrome.contact" | "chrome.contactTitle" | "account.signIn" | "account.signOut" | "account.signedInAs" | "ecosystem.tools" | "ecosystem.menuHeading" | "ecosystem.otherTools" | "ecosystem.youAreHere" | "ecosystem.group.basics.label" | "ecosystem.group.basics.blurb" | "ecosystem.group.practice.label" | "ecosystem.group.practice.blurb" | "ecosystem.group.structures.label" | "ecosystem.group.structures.blurb" | "ecosystem.group.spectra.label" | "ecosystem.group.spectra.blurb" | "ecosystem.group.research.label" | "ecosystem.group.research.blurb" | "ecosystem.group.computing.label" | "ecosystem.group.computing.blurb" | "site.learn.tagline" | "site.inchi.tagline" | "site.vcl.tagline" | "site.smiles.tagline" | "site.openbabel.tagline" | "site.chemcalc.tagline" | "site.dbe.tagline" | "site.nmrium.tagline" | "site.metabo.tagline" | "site.derepflow.tagline" | "site.surge.tagline" | "site.tex.tagline" | "site.lcao.tagline" | "site.regexp.tagline" | "site.pdb.tagline" | "site.elucidation.tagline" | "site.equilibrium.tagline" | "site.polycarp.tagline" | "site.3d.tagline" | "site.periodic-table.tagline" | "site.database.tagline" | "site.symmetry.tagline" | "site.osiris.tagline" | "site.atoms.tagline" | "site.moles.tagline" | "site.inorganic.tagline" | "share.button" | "share.buttonTitle" | "share.dialogTitleFor" | "share.layout" | "share.embed" | "share.embedHint" | "share.protect" | "share.protectHint" | "share.on" | "share.off" | "share.showOnPage" | "share.custom" | "share.options" | "share.preview" | "share.device.window" | "share.device.mobile" | "share.device.laptop" | "share.device.hd" | "share.deviceSize" | "share.previewWhat" | "share.previewLive" | "share.copyLink" | "share.copyLinkHelpTitle" | "share.copyLinkHelp" | "share.openInNewTab" | "share.openInNewTabHelpTitle" | "share.openInNewTabHelp" | "share.copyIframe" | "share.copyIframeHelpTitle" | "share.copyIframeHelp" | "seal.refusedTitle" | "seal.refusedBody" | "seal.openWithout" | "cite.button" | "cite.copyReferenceAs" | "cite.pleaseCiteBoth" | "cite.pleaseCiteEvery" | "cite.copyBothAs" | "cite.copyEveryAs" | "cite.importIntoManager" | "cite.openArticle" | "cite.copyThisAs" | "cite.importThis" | "cite.copied" | "cite.copyFailed" | "cite.format.doi" | "cite.download.ris" | "cite.download.bibtex" | "clipboard.copied" | "clipboard.failed" | "clipboard.copy" | "clipboard.copyThe" | "clipboard.copyValue" | "clipboard.copyToClipboard" | "about.providedBy" | "about.whatYouCanDo" | "about.builtOn" | "about.howToCite" | "about.citeWork" | "about.built" | "about.builtFromCommit" | "about.nameList" | "credits.openbabel.description" | "credits.openchemlib.description" | "credits.openchemlib-utils.description" | "credits.osiris-property-explorer.description" | "credits.react-ocl.description" | "credits.react-mf.description" | "credits.mass-tools.description" | "credits.chem-equilibrium.description" | "credits.ml-matrix.description" | "credits.ml-xsadd.description" | "credits.cif-to-json.description" | "credits.ml-spectra-processing.description" | "credits.occ.description" | "credits.xtb-wasm.description" | "credits.molstar.description" | "credits.blueprint.description" | "credits.react-science.description" | "credits.react-cheminfo.description" | "credits.cheminfo-font.description" | "credits.nivo.description" | "credits.mathjax.description" | "credits.lexical.description" | "credits.katex.description" | "credits.dnd-kit.description" | "credits.react-roi.description" | "credits.file-collection.description" | "credits.zip-js.description" | "credits.preact-signals.description" | "credits.fastify.description" | "credits.sqlite.description" | "credits.sqlite-wasm.description" | "credits.pouchdb.description" | "credits.chemexper.description" | "credits.react.description" | "credits.vite.description" | "help.label" | "help.learnMore" | "help.on" | "confirm.delete" | "confirm.cancel" | "error.title" | "error.tryAgain" | "error.noMessage" | "capsule.filter" | "color.scales" | "color.done" | "color.custom" | "color.customEllipsis" | "color.inUse" | "color.uniform" | "color.uniformDescription" | "color.uniformColour" | "color.colourScale" | "color.legendLabel" | "color.scaleBeingEdited" | "color.anchorColour" | "color.anchorPosition" | "color.removeAnchor" | "color.editorHint" | "color.saturation" | "color.brightness" | "color.toneHelp" | "color.path" | "color.interpolation.rgb" | "color.interpolation.hsv" | "color.interpolation.hsv-long" | "color.kind.sequential" | "color.kind.diverging" | "color.kind.cyclic" | "color.scale.viridis.label" | "color.scale.viridis.description" | "color.scale.plasma.label" | "color.scale.plasma.description" | "color.scale.magma.label" | "color.scale.magma.description" | "color.scale.inferno.label" | "color.scale.inferno.description" | "color.scale.cividis.label" | "color.scale.cividis.description" | "color.scale.turbo.label" | "color.scale.turbo.description" | "color.scale.greys.label" | "color.scale.greys.description" | "color.scale.cool-warm.label" | "color.scale.cool-warm.description" | "color.scale.blue-red.label" | "color.scale.blue-red.description" | "color.scale.rainbow.label" | "color.scale.rainbow.description" | "download.save" | "download.saveFigure" | "download.saveThisFigure" | "download.format" | "download.formatHelp" | "download.resolution" | "download.resolutionHelp" | "download.resolutionExample" | "download.noFigure" | "download.hintRasterSvg" | "download.hintSvg" | "download.hintPng" | "download.hintCopied" | "download.copyUnsupported" | "download.size" | "download.sizeHelp" | "download.sizeScreen" | "download.sizeColumn" | "download.sizeCustom" | "download.customSize" | "download.width" | "download.height" | "pedagogy.check" | "pedagogy.revealHint" | "pedagogy.revealHintCount" | "pedagogy.revealHintLadder" | "pedagogy.hideSolution" | "pedagogy.revealSolution" | "pedagogy.reset" | "pedagogy.hints" | "pedagogy.solvedCount" | "pedagogy.clearAll" | "pedagogy.keepAnswers" | "pedagogy.clearEverything" | "pedagogy.clearWarning" | "pedagogy.filterTerms" | "pedagogy.noTermDefined" | "pedagogy.noTermMatches" | "pedagogy.example" | "pedagogy.input" | "pedagogy.previous" | "pedagogy.next" | "pedagogy.stepOf" | "slides.exit" | "slides.previousSlide" | "slides.nextSlide" | "slides.toggleFullscreen" | "slides.backToSlides" | "slides.backToSlide" | "slides.noAddress" | "slides.liveDemos" | "slides.noTalkYet" | "overlay.options" | "overlay.whatAmILookingAt" | "overlay.reset" | "overlay.hoverAName" | "overlay.dismiss" | "axis.scale" | "axis.xScale" | "axis.yScale" | "axis.linear" | "axis.logarithmic" | "axis.scaleHelp" | "delimited.copyTable" | "delimited.copyOrDownload" | "delimited.close" | "delimited.separator" | "delimited.save" | "delimited.copy" | "delimited.tableAsText" | "chart.measurement" | "chart.measurements" | "delimited.descriptionOne" | "delimited.descriptionMany" | "structure.guide.atom.title" | "structure.guide.atom.element" | "structure.guide.atom.group" | "structure.guide.atom.applyOrForget" | "structure.guide.atom.chain" | "structure.guide.atom.charge" | "structure.guide.atom.radical" | "structure.guide.atom.spin" | "structure.guide.atom.attachment" | "structure.guide.atom.query" | "structure.guide.atom.halogen" | "structure.guide.atom.delete" | "structure.guide.atom.note" | "structure.guide.bond.title" | "structure.guide.bond.order" | "structure.guide.bond.zeroOrder" | "structure.guide.bond.stereo" | "structure.guide.bond.unknownGeometry" | "structure.guide.bond.threeRing" | "structure.guide.bond.ring" | "structure.guide.bond.benzene" | "structure.guide.bond.query" | "structure.guide.bond.delete" | "structure.guide.anywhere.title" | "structure.guide.anywhere.undo" | "structure.guide.anywhere.copy" | "structure.guide.anywhere.paste" | "structure.guide.anywhere.deleteSelection" | "structure.guide.anywhere.flip" | "structure.guide.anywhere.help" | "structure.guide.anywhere.note" | "structure.guide.selecting.title" | "structure.guide.selecting.lasso" | "structure.guide.selecting.rectangle" | "structure.guide.selecting.add" | "structure.guide.selecting.move" | "structure.guide.selecting.duplicate" | "structure.guide.selecting.queryFeatures" | "structure.guide.selecting.note" | "structure.guide.stereochemistry.title" | "structure.guide.stereochemistry.note" | "structure.input.type" | "structure.input.or" | "structure.input.drag" | "structure.input.plusDrag" | "structure.input.dragSelection" | "structure.input.plusDragSelection" | "structure.input.doubleClick" | "structure.docs.toolsAndKeys" | "structure.docs.atomProperties" | "structure.docs.stereochemistry" | "structure.help.hoverToolbar" | "structure.help.learnMore" | "structure.mouseAndKeyboard" | "structure.tool.clear.name" | "structure.tool.clear.description" | "structure.tool.cleanUp.name" | "structure.tool.cleanUp.description" | "structure.tool.select.name" | "structure.tool.select.description" | "structure.tool.unknownConfiguration.name" | "structure.tool.unknownConfiguration.description" | "structure.tool.delete.name" | "structure.tool.delete.description" | "structure.tool.singleBond.name" | "structure.tool.singleBond.description" | "structure.tool.upBond.name" | "structure.tool.upBond.description" | "structure.tool.positiveCharge.name" | "structure.tool.positiveCharge.description" | "structure.tool.undo.name" | "structure.tool.undo.description" | "structure.tool.zoomAndRotate.name" | "structure.tool.zoomAndRotate.description" | "structure.tool.atomMapping.name" | "structure.tool.atomMapping.description" | "structure.tool.enhancedStereo.name" | "structure.tool.enhancedStereo.description" | "structure.tool.text.name" | "structure.tool.text.description" | "structure.tool.chain.name" | "structure.tool.chain.description" | "structure.tool.downBond.name" | "structure.tool.downBond.description" | "structure.tool.negativeCharge.name" | "structure.tool.negativeCharge.description" | "structure.tool.anyAtom.name" | "structure.tool.anyAtom.description" | "structure.tool.ring3.name" | "structure.tool.ring3.description" | "structure.tool.ring5.name" | "structure.tool.ring5.description" | "structure.tool.ring7.name" | "structure.tool.ring7.description" | "structure.tool.ring4.name" | "structure.tool.ring4.description" | "structure.tool.ring6.name" | "structure.tool.ring6.description" | "structure.tool.benzene.name" | "structure.tool.benzene.description" | "structure.tool.carbon.name" | "structure.tool.carbon.description" | "structure.tool.nitrogen.name" | "structure.tool.nitrogen.description" | "structure.tool.oxygen.name" | "structure.tool.oxygen.description" | "structure.tool.fluorine.name" | "structure.tool.fluorine.description" | "structure.tool.bromine.name" | "structure.tool.bromine.description" | "structure.tool.hydrogen.name" | "structure.tool.hydrogen.description" | "structure.tool.silicon.name" | "structure.tool.silicon.description" | "structure.tool.phosphorus.name" | "structure.tool.phosphorus.description" | "structure.tool.sulfur.name" | "structure.tool.sulfur.description" | "structure.tool.chlorine.name" | "structure.tool.chlorine.description" | "structure.tool.iodine.name" | "structure.tool.iodine.description" | "structure.tool.reactionOnly" | "structure.tool.unavailable" | "structure.loadingEditor" | "structure.export.open" | "structure.export.title" | "structure.export.loading" | "structure.export.nothing" | "structure.export.picture" | "structure.export.identifiers" | "structure.export.saveSvg" | "structure.export.savePng" | "structure.export.copyPng" | "structure.export.smiles" | "structure.export.smilesHelp" | "structure.export.molfileV3000" | "structure.export.molfileV3000Help" | "structure.export.molfileV2000" | "structure.export.molfileV2000Help" | "structure.export.idCode" | "structure.export.idCodeHelp" | "structure.export.noStereoIdCode" | "structure.export.noStereoIdCodeHelp" | "structure.export.noStereoTautomerIdCode" | "structure.export.noStereoTautomerIdCodeHelp" | "periodic.table" | "periodic.group" | "periodic.period" | "periodic.block" | "periodic.allElements" | "periodic.help.title" | "periodic.help.click" | "periodic.help.modClick" | "periodic.help.element" | "periodic.help.elementClick" | "periodic.help.elementMod" | "periodic.help.number" | "periodic.help.numberClick" | "periodic.help.runMod" | "periodic.help.block" | "periodic.help.blockClick" | "periodic.help.corner" | "periodic.help.cornerClick" | "periodic.help.arrowsClick" | "periodic.help.note" | "periodic.help.ctrl" | "periodic.cellLabel" | "periodic.category.alkali-metal" | "periodic.category.alkaline-earth-metal" | "periodic.category.transition-metal" | "periodic.category.post-transition-metal" | "periodic.category.metalloid" | "periodic.category.nonmetal" | "periodic.category.halogen" | "periodic.category.noble-gas" | "periodic.category.lanthanoid" | "periodic.category.actinoid" | "molecule3d.view" | "molecule3d.resetView" | "molecule3d.spin" | "molecule3d.surface" | "molecule3d.molecularSurface" | "molecule3d.displayOptions" | "molecule3d.exportImage" | "molecule3d.measure" | "molecule3d.clearMeasurements" | "molecule3d.measurement.distance" | "molecule3d.measurement.angle" | "molecule3d.measurement.dihedral" | "molecule3d.measurementTooltip" | "molecule3d.representation.ball-and-stick" | "molecule3d.representation.spacefill" | "molecule3d.representation.stick" | "molecule3d.size" | "molecule3d.surfaceOpacity" | "molecule3d.solventProbe" | "molecule3d.solventProbeHelp" | "molecule3d.surfaceColour" | "molecule3d.colour" | "molecule3d.resetSettings" | "molecule3d.atDefaults" | "molecule3d.surfaceOff" | "molecule3d.showSurface" | "molecule3d.coloring.uniform" | "molecule3d.coloring.element" | "molecule3d.coloring.polarity" | "molecule3d.neutral" | "molecule3d.tpsaHelp" | "molecule3d.loadingViewer" | "molecule3d.couldNotDraw" | "molecule3d.gesture.rotate" | "molecule3d.gesture.rollDrag" | "molecule3d.gesture.rollKeys" | "molecule3d.gesture.moveDrag" | "molecule3d.gesture.moveCtrl" | "molecule3d.gesture.zoom" | "molecule3d.gesture.clip" | "molecule3d.gesture.centreAtom" | "molecule3d.gesture.centreMolecule" | "molecule3d.input.drag" | "molecule3d.input.plus" | "molecule3d.input.plusDrag" | "molecule3d.input.plusScroll" | "molecule3d.input.or" | "molecule3d.input.rightDrag" | "molecule3d.input.scroll" | "molecule3d.input.clickAtom" | "molecule3d.input.clickBackground" | "molecule3d.helpNote" | "orbital.couldNotDraw" | "orbital.sampling" | "orbital.showAxes" | "orbital.axesTitle" | "orbital.axesBody" | "orbital.axesExample" | "orbital.spin" | "orbital.spinTitle" | "orbital.spinBody" | "orbital.resetTitle" | "orbital.resetBody" | "viewer.capability.noWindow" | "viewer.capability.noContext" | "viewer.capability.noFloatTextures" | "viewer.capability.ready" | "conformers.strategy.adaptive-random" | "conformers.strategy.likely-random" | "conformers.strategy.pure-random" | "conformers.strategy.likely-systematic" | "conformers.strategyDetail.adaptive-random" | "conformers.strategyDetail.likely-random" | "conformers.strategyDetail.pure-random" | "conformers.strategyDetail.likely-systematic" | "conformers.minimisation.none" | "number.increment" | "number.decrement" | "range.lowest" | "range.highest" | "range.lowestIs" | "range.highestIs" | "range.noLowerBound" | "range.noUpperBound" | "range.typeValue" | "range.clear" | "taxonomy.lineage" | "taxonomy.rankNote" | "taxonomy.ncbi" | "taxonomy.ncbiTitle" | "taxonomy.rank.realm" | "taxonomy.rank.domain" | "taxonomy.rank.superkingdom" | "taxonomy.rank.kingdom" | "taxonomy.rank.subkingdom" | "taxonomy.rank.superphylum" | "taxonomy.rank.phylum" | "taxonomy.rank.subphylum" | "taxonomy.rank.superclass" | "taxonomy.rank.class" | "taxonomy.rank.subclass" | "taxonomy.rank.infraclass" | "taxonomy.rank.cohort" | "taxonomy.rank.subcohort" | "taxonomy.rank.superorder" | "taxonomy.rank.order" | "taxonomy.rank.suborder" | "taxonomy.rank.infraorder" | "taxonomy.rank.parvorder" | "taxonomy.rank.superfamily" | "taxonomy.rank.family" | "taxonomy.rank.subfamily" | "taxonomy.rank.tribe" | "taxonomy.rank.subtribe" | "taxonomy.rank.genus" | "taxonomy.rank.subgenus" | "taxonomy.rank.section" | "taxonomy.rank.subsection" | "taxonomy.rank.series" | "taxonomy.rank.subseries" | "taxonomy.rank.speciesGroup" | "taxonomy.rank.speciesSubgroup" | "taxonomy.rank.species" | "taxonomy.rank.formaSpecialis" | "taxonomy.rank.subspecies" | "taxonomy.rank.varietas" | "taxonomy.rank.subvariety" | "taxonomy.rank.forma" | "taxonomy.rank.pathogroup" | "taxonomy.rank.serogroup" | "taxonomy.rank.serotype" | "taxonomy.rank.biotype" | "taxonomy.rank.genotype" | "taxonomy.rank.morph" | "taxonomy.rank.strain" | "taxonomy.rank.isolate" | "taxonomy.rank.noRank" | "taxonomy.rank.clade" | "taxonomy.rank.cellularRoot" | "taxonomy.rank.acellularRoot">;
|
|
20
|
+
export declare const CHROME_CATALOG: MessageCatalog<"language.label" | "chrome.pages" | "chrome.about" | "chrome.aboutTitle" | "chrome.contact" | "chrome.contactTitle" | "account.signIn" | "account.signOut" | "account.signedInAs" | "ecosystem.tools" | "ecosystem.menuHeading" | "ecosystem.otherTools" | "ecosystem.youAreHere" | "ecosystem.group.basics.label" | "ecosystem.group.basics.blurb" | "ecosystem.group.practice.label" | "ecosystem.group.practice.blurb" | "ecosystem.group.structures.label" | "ecosystem.group.structures.blurb" | "ecosystem.group.spectra.label" | "ecosystem.group.spectra.blurb" | "ecosystem.group.research.label" | "ecosystem.group.research.blurb" | "ecosystem.group.computing.label" | "ecosystem.group.computing.blurb" | "site.learn.tagline" | "site.inchi.tagline" | "site.vcl.tagline" | "site.smiles.tagline" | "site.openbabel.tagline" | "site.chemcalc.tagline" | "site.dbe.tagline" | "site.nmrium.tagline" | "site.metabo.tagline" | "site.derepflow.tagline" | "site.surge.tagline" | "site.tex.tagline" | "site.lcao.tagline" | "site.regexp.tagline" | "site.pdb.tagline" | "site.elucidation.tagline" | "site.equilibrium.tagline" | "site.polycarp.tagline" | "site.3d.tagline" | "site.periodic-table.tagline" | "site.database.tagline" | "site.symmetry.tagline" | "site.osiris.tagline" | "site.atoms.tagline" | "site.moles.tagline" | "site.inorganic.tagline" | "share.button" | "share.buttonTitle" | "share.dialogTitleFor" | "share.layout" | "share.embed" | "share.embedHint" | "share.protect" | "share.protectHint" | "share.on" | "share.off" | "share.showOnPage" | "share.custom" | "share.options" | "share.preview" | "share.device.window" | "share.device.mobile" | "share.device.laptop" | "share.device.hd" | "share.deviceSize" | "share.previewWhat" | "share.previewLive" | "share.copyLink" | "share.copyLinkHelpTitle" | "share.copyLinkHelp" | "share.openInNewTab" | "share.openInNewTabHelpTitle" | "share.openInNewTabHelp" | "share.copyIframe" | "share.copyIframeHelpTitle" | "share.copyIframeHelp" | "seal.refusedTitle" | "seal.refusedBody" | "seal.openWithout" | "cite.button" | "cite.copyReferenceAs" | "cite.pleaseCiteBoth" | "cite.pleaseCiteEvery" | "cite.copyBothAs" | "cite.copyEveryAs" | "cite.importIntoManager" | "cite.openArticle" | "cite.copyThisAs" | "cite.importThis" | "cite.copied" | "cite.copyFailed" | "cite.format.doi" | "cite.download.ris" | "cite.download.bibtex" | "clipboard.copied" | "clipboard.failed" | "clipboard.copy" | "clipboard.copyThe" | "clipboard.copyValue" | "clipboard.copyToClipboard" | "about.providedBy" | "about.whatYouCanDo" | "about.builtOn" | "about.howToCite" | "about.citeWork" | "about.built" | "about.builtFromCommit" | "about.nameList" | "credits.openbabel.description" | "credits.openchemlib.description" | "credits.openchemlib-utils.description" | "credits.osiris-property-explorer.description" | "credits.react-ocl.description" | "credits.react-mf.description" | "credits.mass-tools.description" | "credits.chem-equilibrium.description" | "credits.ml-matrix.description" | "credits.ml-xsadd.description" | "credits.cif-to-json.description" | "credits.ml-spectra-processing.description" | "credits.occ.description" | "credits.xtb-wasm.description" | "credits.molstar.description" | "credits.blueprint.description" | "credits.react-science.description" | "credits.react-cheminfo.description" | "credits.cheminfo-font.description" | "credits.nivo.description" | "credits.mathjax.description" | "credits.lexical.description" | "credits.katex.description" | "credits.dnd-kit.description" | "credits.react-roi.description" | "credits.file-collection.description" | "credits.zip-js.description" | "credits.preact-signals.description" | "credits.fastify.description" | "credits.sqlite.description" | "credits.sqlite-wasm.description" | "credits.pouchdb.description" | "credits.chemexper.description" | "credits.react.description" | "credits.vite.description" | "help.label" | "help.learnMore" | "help.on" | "confirm.delete" | "confirm.cancel" | "error.title" | "error.tryAgain" | "error.noMessage" | "capsule.filter" | "color.scales" | "color.done" | "color.custom" | "color.customEllipsis" | "color.inUse" | "color.uniform" | "color.uniformDescription" | "color.uniformColour" | "color.colourScale" | "color.legendLabel" | "color.scaleBeingEdited" | "color.anchorColour" | "color.anchorPosition" | "color.removeAnchor" | "color.editorHint" | "color.saturation" | "color.brightness" | "color.toneHelp" | "color.path" | "color.interpolation.rgb" | "color.interpolation.hsv" | "color.interpolation.hsv-long" | "color.kind.sequential" | "color.kind.diverging" | "color.kind.cyclic" | "color.scale.viridis.label" | "color.scale.viridis.description" | "color.scale.plasma.label" | "color.scale.plasma.description" | "color.scale.magma.label" | "color.scale.magma.description" | "color.scale.inferno.label" | "color.scale.inferno.description" | "color.scale.cividis.label" | "color.scale.cividis.description" | "color.scale.turbo.label" | "color.scale.turbo.description" | "color.scale.greys.label" | "color.scale.greys.description" | "color.scale.cool-warm.label" | "color.scale.cool-warm.description" | "color.scale.blue-red.label" | "color.scale.blue-red.description" | "color.scale.rainbow.label" | "color.scale.rainbow.description" | "download.save" | "download.saveFigure" | "download.saveThisFigure" | "download.format" | "download.formatHelp" | "download.resolution" | "download.resolutionHelp" | "download.resolutionExample" | "download.noFigure" | "download.hintRasterSvg" | "download.hintSvg" | "download.hintPng" | "download.hintCopied" | "download.copyUnsupported" | "download.size" | "download.sizeHelp" | "download.sizeScreen" | "download.sizeColumn" | "download.sizeCustom" | "download.customSize" | "download.width" | "download.height" | "pedagogy.check" | "pedagogy.revealHint" | "pedagogy.revealHintCount" | "pedagogy.revealHintLadder" | "pedagogy.hideSolution" | "pedagogy.revealSolution" | "pedagogy.reset" | "pedagogy.hints" | "pedagogy.solvedCount" | "pedagogy.clearAll" | "pedagogy.keepAnswers" | "pedagogy.clearEverything" | "pedagogy.clearWarning" | "pedagogy.filterTerms" | "pedagogy.noTermDefined" | "pedagogy.noTermMatches" | "pedagogy.example" | "pedagogy.input" | "pedagogy.previous" | "pedagogy.next" | "pedagogy.stepOf" | "slides.exit" | "slides.previousSlide" | "slides.nextSlide" | "slides.toggleFullscreen" | "slides.backToSlides" | "slides.backToSlide" | "slides.noAddress" | "slides.liveDemos" | "slides.noTalkYet" | "overlay.options" | "overlay.whatAmILookingAt" | "overlay.reset" | "overlay.hoverAName" | "overlay.dismiss" | "axis.scale" | "axis.xScale" | "axis.yScale" | "axis.linear" | "axis.logarithmic" | "axis.scaleHelp" | "delimited.copyTable" | "delimited.copyOrDownload" | "delimited.close" | "delimited.separator" | "delimited.save" | "delimited.copy" | "delimited.tableAsText" | "chart.measurement" | "chart.measurements" | "delimited.descriptionOne" | "delimited.descriptionMany" | "structure.guide.atom.title" | "structure.guide.atom.element" | "structure.guide.atom.group" | "structure.guide.atom.applyOrForget" | "structure.guide.atom.chain" | "structure.guide.atom.charge" | "structure.guide.atom.radical" | "structure.guide.atom.spin" | "structure.guide.atom.attachment" | "structure.guide.atom.query" | "structure.guide.atom.halogen" | "structure.guide.atom.delete" | "structure.guide.atom.note" | "structure.guide.bond.title" | "structure.guide.bond.order" | "structure.guide.bond.zeroOrder" | "structure.guide.bond.stereo" | "structure.guide.bond.unknownGeometry" | "structure.guide.bond.threeRing" | "structure.guide.bond.ring" | "structure.guide.bond.benzene" | "structure.guide.bond.query" | "structure.guide.bond.delete" | "structure.guide.anywhere.title" | "structure.guide.anywhere.undo" | "structure.guide.anywhere.copy" | "structure.guide.anywhere.paste" | "structure.guide.anywhere.deleteSelection" | "structure.guide.anywhere.flip" | "structure.guide.anywhere.help" | "structure.guide.anywhere.note" | "structure.guide.selecting.title" | "structure.guide.selecting.lasso" | "structure.guide.selecting.rectangle" | "structure.guide.selecting.add" | "structure.guide.selecting.move" | "structure.guide.selecting.duplicate" | "structure.guide.selecting.queryFeatures" | "structure.guide.selecting.note" | "structure.guide.stereochemistry.title" | "structure.guide.stereochemistry.note" | "structure.input.type" | "structure.input.or" | "structure.input.drag" | "structure.input.plusDrag" | "structure.input.dragSelection" | "structure.input.plusDragSelection" | "structure.input.doubleClick" | "structure.docs.toolsAndKeys" | "structure.docs.atomProperties" | "structure.docs.stereochemistry" | "structure.help.hoverToolbar" | "structure.help.learnMore" | "structure.mouseAndKeyboard" | "structure.tool.clear.name" | "structure.tool.clear.description" | "structure.tool.cleanUp.name" | "structure.tool.cleanUp.description" | "structure.tool.select.name" | "structure.tool.select.description" | "structure.tool.unknownConfiguration.name" | "structure.tool.unknownConfiguration.description" | "structure.tool.delete.name" | "structure.tool.delete.description" | "structure.tool.singleBond.name" | "structure.tool.singleBond.description" | "structure.tool.upBond.name" | "structure.tool.upBond.description" | "structure.tool.positiveCharge.name" | "structure.tool.positiveCharge.description" | "structure.tool.undo.name" | "structure.tool.undo.description" | "structure.tool.zoomAndRotate.name" | "structure.tool.zoomAndRotate.description" | "structure.tool.atomMapping.name" | "structure.tool.atomMapping.description" | "structure.tool.enhancedStereo.name" | "structure.tool.enhancedStereo.description" | "structure.tool.text.name" | "structure.tool.text.description" | "structure.tool.chain.name" | "structure.tool.chain.description" | "structure.tool.downBond.name" | "structure.tool.downBond.description" | "structure.tool.negativeCharge.name" | "structure.tool.negativeCharge.description" | "structure.tool.anyAtom.name" | "structure.tool.anyAtom.description" | "structure.tool.ring3.name" | "structure.tool.ring3.description" | "structure.tool.ring5.name" | "structure.tool.ring5.description" | "structure.tool.ring7.name" | "structure.tool.ring7.description" | "structure.tool.ring4.name" | "structure.tool.ring4.description" | "structure.tool.ring6.name" | "structure.tool.ring6.description" | "structure.tool.benzene.name" | "structure.tool.benzene.description" | "structure.tool.carbon.name" | "structure.tool.carbon.description" | "structure.tool.nitrogen.name" | "structure.tool.nitrogen.description" | "structure.tool.oxygen.name" | "structure.tool.oxygen.description" | "structure.tool.fluorine.name" | "structure.tool.fluorine.description" | "structure.tool.bromine.name" | "structure.tool.bromine.description" | "structure.tool.hydrogen.name" | "structure.tool.hydrogen.description" | "structure.tool.silicon.name" | "structure.tool.silicon.description" | "structure.tool.phosphorus.name" | "structure.tool.phosphorus.description" | "structure.tool.sulfur.name" | "structure.tool.sulfur.description" | "structure.tool.chlorine.name" | "structure.tool.chlorine.description" | "structure.tool.iodine.name" | "structure.tool.iodine.description" | "structure.tool.reactionOnly" | "structure.tool.unavailable" | "structure.loadingEditor" | "structure.export.open" | "structure.export.title" | "structure.export.loading" | "structure.export.nothing" | "structure.export.picture" | "structure.export.identifiers" | "structure.export.saveSvg" | "structure.export.savePng" | "structure.export.copyPng" | "structure.export.smiles" | "structure.export.smilesHelp" | "structure.export.molfileV3000" | "structure.export.molfileV3000Help" | "structure.export.molfileV2000" | "structure.export.molfileV2000Help" | "structure.export.idCode" | "structure.export.idCodeHelp" | "structure.export.noStereoIdCode" | "structure.export.noStereoIdCodeHelp" | "structure.export.noStereoTautomerIdCode" | "structure.export.noStereoTautomerIdCodeHelp" | "periodic.table" | "periodic.group" | "periodic.period" | "periodic.block" | "periodic.allElements" | "periodic.help.title" | "periodic.help.click" | "periodic.help.modClick" | "periodic.help.element" | "periodic.help.elementClick" | "periodic.help.elementMod" | "periodic.help.number" | "periodic.help.numberClick" | "periodic.help.runMod" | "periodic.help.block" | "periodic.help.blockClick" | "periodic.help.corner" | "periodic.help.cornerClick" | "periodic.help.arrowsClick" | "periodic.help.note" | "periodic.help.ctrl" | "periodic.cellLabel" | "periodic.category.alkali-metal" | "periodic.category.alkaline-earth-metal" | "periodic.category.transition-metal" | "periodic.category.post-transition-metal" | "periodic.category.metalloid" | "periodic.category.nonmetal" | "periodic.category.halogen" | "periodic.category.noble-gas" | "periodic.category.lanthanoid" | "periodic.category.actinoid" | "molecule3d.view" | "molecule3d.resetView" | "molecule3d.spin" | "molecule3d.surface" | "molecule3d.molecularSurface" | "molecule3d.displayOptions" | "molecule3d.exportImage" | "molecule3d.fullScreen" | "molecule3d.measure" | "molecule3d.clearMeasurements" | "molecule3d.measurement.distance" | "molecule3d.measurement.angle" | "molecule3d.measurement.dihedral" | "molecule3d.measurementTooltip" | "molecule3d.representation.ball-and-stick" | "molecule3d.representation.spacefill" | "molecule3d.representation.stick" | "molecule3d.size" | "molecule3d.surfaceOpacity" | "molecule3d.solventProbe" | "molecule3d.solventProbeHelp" | "molecule3d.surfaceColour" | "molecule3d.colour" | "molecule3d.resetSettings" | "molecule3d.atDefaults" | "molecule3d.surfaceOff" | "molecule3d.showSurface" | "molecule3d.coloring.uniform" | "molecule3d.coloring.element" | "molecule3d.coloring.polarity" | "molecule3d.neutral" | "molecule3d.tpsaHelp" | "molecule3d.loadingViewer" | "molecule3d.couldNotDraw" | "molecule3d.gesture.rotate" | "molecule3d.gesture.rollDrag" | "molecule3d.gesture.rollKeys" | "molecule3d.gesture.moveDrag" | "molecule3d.gesture.moveCtrl" | "molecule3d.gesture.zoom" | "molecule3d.gesture.clip" | "molecule3d.gesture.centreAtom" | "molecule3d.gesture.centreMolecule" | "molecule3d.input.drag" | "molecule3d.input.plus" | "molecule3d.input.plusDrag" | "molecule3d.input.plusScroll" | "molecule3d.input.or" | "molecule3d.input.rightDrag" | "molecule3d.input.scroll" | "molecule3d.input.clickAtom" | "molecule3d.input.clickBackground" | "molecule3d.helpNote" | "orbital.couldNotDraw" | "orbital.sampling" | "orbital.showAxes" | "orbital.axesTitle" | "orbital.axesBody" | "orbital.axesExample" | "orbital.spin" | "orbital.spinTitle" | "orbital.spinBody" | "orbital.resetTitle" | "orbital.resetBody" | "viewer.capability.noWindow" | "viewer.capability.noContext" | "viewer.capability.noFloatTextures" | "viewer.capability.ready" | "conformers.strategy.adaptive-random" | "conformers.strategy.likely-random" | "conformers.strategy.pure-random" | "conformers.strategy.likely-systematic" | "conformers.strategyDetail.adaptive-random" | "conformers.strategyDetail.likely-random" | "conformers.strategyDetail.pure-random" | "conformers.strategyDetail.likely-systematic" | "conformers.minimisation.none" | "number.increment" | "number.decrement" | "range.lowest" | "range.highest" | "range.lowestIs" | "range.highestIs" | "range.noLowerBound" | "range.noUpperBound" | "range.typeValue" | "range.clear" | "taxonomy.lineage" | "taxonomy.rankNote" | "taxonomy.ncbi" | "taxonomy.ncbiTitle" | "taxonomy.rank.realm" | "taxonomy.rank.domain" | "taxonomy.rank.superkingdom" | "taxonomy.rank.kingdom" | "taxonomy.rank.subkingdom" | "taxonomy.rank.superphylum" | "taxonomy.rank.phylum" | "taxonomy.rank.subphylum" | "taxonomy.rank.superclass" | "taxonomy.rank.class" | "taxonomy.rank.subclass" | "taxonomy.rank.infraclass" | "taxonomy.rank.cohort" | "taxonomy.rank.subcohort" | "taxonomy.rank.superorder" | "taxonomy.rank.order" | "taxonomy.rank.suborder" | "taxonomy.rank.infraorder" | "taxonomy.rank.parvorder" | "taxonomy.rank.superfamily" | "taxonomy.rank.family" | "taxonomy.rank.subfamily" | "taxonomy.rank.tribe" | "taxonomy.rank.subtribe" | "taxonomy.rank.genus" | "taxonomy.rank.subgenus" | "taxonomy.rank.section" | "taxonomy.rank.subsection" | "taxonomy.rank.series" | "taxonomy.rank.subseries" | "taxonomy.rank.speciesGroup" | "taxonomy.rank.speciesSubgroup" | "taxonomy.rank.species" | "taxonomy.rank.formaSpecialis" | "taxonomy.rank.subspecies" | "taxonomy.rank.varietas" | "taxonomy.rank.subvariety" | "taxonomy.rank.forma" | "taxonomy.rank.pathogroup" | "taxonomy.rank.serogroup" | "taxonomy.rank.serotype" | "taxonomy.rank.biotype" | "taxonomy.rank.genotype" | "taxonomy.rank.morph" | "taxonomy.rank.strain" | "taxonomy.rank.isolate" | "taxonomy.rank.noRank" | "taxonomy.rank.clade" | "taxonomy.rank.cellularRoot" | "taxonomy.rank.acellularRoot">;
|
|
21
21
|
//# sourceMappingURL=chromeCatalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chromeCatalog.d.ts","sourceRoot":"","sources":["../../../src/i18n/core/chromeCatalog.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,uBAAuB,CAAuB;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB,mBAAmB,CAAC;AAElD,qCAAqC;AACrC,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,EAAE,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"chromeCatalog.d.ts","sourceRoot":"","sources":["../../../src/i18n/core/chromeCatalog.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,uBAAuB,CAAuB;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB,mBAAmB,CAAC;AAElD,qCAAqC;AACrC,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,EAAE,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,cAAc,k/gBAgBzB,CAAC"}
|
package/lib/locales/de.json
CHANGED
|
@@ -484,6 +484,7 @@
|
|
|
484
484
|
"molecule3d.molecularSurface": "Moleküloberfläche",
|
|
485
485
|
"molecule3d.displayOptions": "Anzeigeoptionen",
|
|
486
486
|
"molecule3d.exportImage": "Bild exportieren",
|
|
487
|
+
"molecule3d.fullScreen": "Vollbild",
|
|
487
488
|
"molecule3d.measure": "Messen",
|
|
488
489
|
"molecule3d.clearMeasurements": "Alle Messungen entfernen",
|
|
489
490
|
"molecule3d.measurement.distance": "Abstand",
|
package/lib/locales/en.json
CHANGED
|
@@ -460,6 +460,7 @@
|
|
|
460
460
|
"molecule3d.molecularSurface": "Molecular surface",
|
|
461
461
|
"molecule3d.displayOptions": "Display options",
|
|
462
462
|
"molecule3d.exportImage": "Export image",
|
|
463
|
+
"molecule3d.fullScreen": "Full screen",
|
|
463
464
|
"molecule3d.measure": "Measure",
|
|
464
465
|
"molecule3d.clearMeasurements": "Remove all measurements",
|
|
465
466
|
"molecule3d.measurement.distance": "Distance",
|
package/lib/locales/es.json
CHANGED
|
@@ -484,6 +484,7 @@
|
|
|
484
484
|
"molecule3d.molecularSurface": "Superficie molecular",
|
|
485
485
|
"molecule3d.displayOptions": "Opciones de presentación",
|
|
486
486
|
"molecule3d.exportImage": "Exportar la imagen",
|
|
487
|
+
"molecule3d.fullScreen": "Pantalla completa",
|
|
487
488
|
"molecule3d.measure": "Medir",
|
|
488
489
|
"molecule3d.clearMeasurements": "Quitar todas las medidas",
|
|
489
490
|
"molecule3d.measurement.distance": "Distancia",
|
package/lib/locales/fr.json
CHANGED
|
@@ -484,6 +484,7 @@
|
|
|
484
484
|
"molecule3d.molecularSurface": "Surface moléculaire",
|
|
485
485
|
"molecule3d.displayOptions": "Options d'affichage",
|
|
486
486
|
"molecule3d.exportImage": "Exporter l'image",
|
|
487
|
+
"molecule3d.fullScreen": "Plein écran",
|
|
487
488
|
"molecule3d.measure": "Mesurer",
|
|
488
489
|
"molecule3d.clearMeasurements": "Retirer toutes les mesures",
|
|
489
490
|
"molecule3d.measurement.distance": "Distance",
|
package/lib/locales/it.json
CHANGED
|
@@ -460,6 +460,7 @@
|
|
|
460
460
|
"molecule3d.molecularSurface": "Superficie molecolare",
|
|
461
461
|
"molecule3d.displayOptions": "Opzioni di visualizzazione",
|
|
462
462
|
"molecule3d.exportImage": "Esporta l'immagine",
|
|
463
|
+
"molecule3d.fullScreen": "Schermo intero",
|
|
463
464
|
"molecule3d.measure": "Misura",
|
|
464
465
|
"molecule3d.clearMeasurements": "Togli tutte le misure",
|
|
465
466
|
"molecule3d.measurement.distance": "Distanza",
|
|
@@ -84,6 +84,12 @@ export interface Molecule3DTools {
|
|
|
84
84
|
reset: boolean;
|
|
85
85
|
/** A popover saving the picture as a PNG or an SVG. */
|
|
86
86
|
export: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* A toggle filling the screen with the canvas and its toolbars. It is left
|
|
89
|
+
* out where the browser cannot fill the screen, as on an iPhone or in a
|
|
90
|
+
* frame not allowed to.
|
|
91
|
+
*/
|
|
92
|
+
fullscreen: boolean;
|
|
87
93
|
/** A popover listing what the mouse and the keyboard do on the canvas. */
|
|
88
94
|
help: boolean;
|
|
89
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/core/settings.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,6EAA6E;AAC7E,MAAM,WAAW,cAAc;IAC7B,2EAA2E;IAC3E,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;I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,KAAK,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW;QACxC,KAAK,CAAC,eAAe,KAAK,MAAM,CAAC,eAAe;QAChD,KAAK,CAAC,YAAY,KAAK,MAAM,CAAC,YAAY,CAC3C,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CACpC,QAAkC,EAAE;IAEpC,OAAO,EAAE,GAAG,yBAAyB,EAAE,GAAG,KAAK,EAAE,CAAC;AACpD,CAAC;AAED,SAAS,QAAQ,CAAC,KAAyB,EAAE,QAAgB;IAC3D,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC;QAC9D,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE;QACrB,CAAC,CAAC,QAAQ,CAAC;AACf,CAAC;AAED,SAAS,KAAK,CACZ,KAAyB,EACzB,GAAoC;IAEpC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACzD,OAAO,4BAA4B,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC;IACD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACrD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The box the molecule canvas and its toolbars are drawn in, which is also the
|
|
3
|
+
* box that fills the screen.
|
|
4
|
+
*
|
|
5
|
+
* A box filling the screen hides everything outside it, and the popovers and
|
|
6
|
+
* tooltips of the toolbars are portalled to `document.body`: while the box
|
|
7
|
+
* fills the screen they are portalled into it instead, the way react-science's
|
|
8
|
+
* `RootLayout` keeps its own menus visible. Otherwise the portal options of the
|
|
9
|
+
* page around the viewer are passed through untouched.
|
|
10
|
+
*/
|
|
11
|
+
import type { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
12
|
+
import type { Molecule3DFullscreen } from './Molecule3DToolbar.tsx';
|
|
13
|
+
/** Props of {@link Molecule3DStage}. */
|
|
14
|
+
export interface Molecule3DStageProps {
|
|
15
|
+
/** Style of the box. */
|
|
16
|
+
style: CSSProperties;
|
|
17
|
+
/**
|
|
18
|
+
* What is drawn in the box, handed whether it fills the screen and the
|
|
19
|
+
* toggle, or `undefined` where the browser cannot fill the screen.
|
|
20
|
+
*/
|
|
21
|
+
children: (fullscreen: Molecule3DFullscreen | undefined) => ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The box of the canvas, able to fill the screen.
|
|
25
|
+
* @param props - See {@link Molecule3DStageProps}.
|
|
26
|
+
* @returns The box.
|
|
27
|
+
*/
|
|
28
|
+
export declare function Molecule3DStage(props: Molecule3DStageProps): ReactElement;
|
|
29
|
+
//# sourceMappingURL=Molecule3DStage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Molecule3DStage.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/Molecule3DStage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,wCAAwC;AACxC,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,KAAK,EAAE,aAAa,CAAC;IACrB;;;OAGG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,oBAAoB,GAAG,SAAS,KAAK,SAAS,CAAC;CACvE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,YAAY,CAMzE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The box the molecule canvas and its toolbars are drawn in, which is also the
|
|
4
|
+
* box that fills the screen.
|
|
5
|
+
*
|
|
6
|
+
* A box filling the screen hides everything outside it, and the popovers and
|
|
7
|
+
* tooltips of the toolbars are portalled to `document.body`: while the box
|
|
8
|
+
* fills the screen they are portalled into it instead, the way react-science's
|
|
9
|
+
* `RootLayout` keeps its own menus visible. Otherwise the portal options of the
|
|
10
|
+
* page around the viewer are passed through untouched.
|
|
11
|
+
*/
|
|
12
|
+
import { PortalContext, PortalProvider } from '@blueprintjs/core';
|
|
13
|
+
import { useCallback, useContext, useState } from 'react';
|
|
14
|
+
import { FullScreenProvider, useFullscreen } from 'react-science/ui';
|
|
15
|
+
/**
|
|
16
|
+
* The box of the canvas, able to fill the screen.
|
|
17
|
+
* @param props - See {@link Molecule3DStageProps}.
|
|
18
|
+
* @returns The box.
|
|
19
|
+
*/
|
|
20
|
+
export function Molecule3DStage(props) {
|
|
21
|
+
return (_jsx(FullScreenProvider, { children: (fullscreenRef) => _jsx(Stage, { ...props, fullscreenRef: fullscreenRef }) }));
|
|
22
|
+
}
|
|
23
|
+
function Stage(props) {
|
|
24
|
+
const { style, children, fullscreenRef } = props;
|
|
25
|
+
const { isFullScreen, toggle } = useFullscreen();
|
|
26
|
+
const portal = useContext(PortalContext);
|
|
27
|
+
const [canFillScreen] = useState(isFullscreenEnabled);
|
|
28
|
+
const [stage, setStage] = useState(null);
|
|
29
|
+
const stageRef = useCallback((element) => {
|
|
30
|
+
fullscreenRef.current = element;
|
|
31
|
+
setStage(element);
|
|
32
|
+
}, [fullscreenRef]);
|
|
33
|
+
// The provider is always there, so entering full screen changes a value
|
|
34
|
+
// rather than the tree, and the canvas inside is never mounted again.
|
|
35
|
+
return (_jsx("div", { ref: stageRef, style: style, children: _jsx(PortalProvider, { portalClassName: portal.portalClassName, portalContainer: isFullScreen && stage !== null ? stage : portal.portalContainer, children: children(canFillScreen ? { active: isFullScreen, toggle } : undefined) }) }));
|
|
36
|
+
}
|
|
37
|
+
function isFullscreenEnabled() {
|
|
38
|
+
return typeof document !== 'undefined' && document.fullscreenEnabled;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=Molecule3DStage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Molecule3DStage.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/Molecule3DStage.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAerE;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,KAA2B;IACzD,OAAO,CACL,KAAC,kBAAkB,cAChB,CAAC,aAAa,EAAE,EAAE,CAAC,KAAC,KAAK,OAAK,KAAK,EAAE,aAAa,EAAE,aAAa,GAAI,GACnD,CACtB,CAAC;AACJ,CAAC;AAOD,SAAS,KAAK,CAAC,KAAiB;IAC9B,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACjD,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IACjD,MAAM,MAAM,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IACzC,MAAM,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IACtD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAwB,IAAI,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,WAAW,CAC1B,CAAC,OAA8B,EAAE,EAAE;QACjC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAChC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACpB,CAAC,EACD,CAAC,aAAa,CAAC,CAChB,CAAC;IAEF,wEAAwE;IACxE,sEAAsE;IACtE,OAAO,CACL,cAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,YAC9B,KAAC,cAAc,IACb,eAAe,EAAE,MAAM,CAAC,eAAe,EACvC,eAAe,EACb,YAAY,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,YAGhE,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,GACxD,GACb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO,OAAO,QAAQ,KAAK,WAAW,IAAI,QAAQ,CAAC,iBAAiB,CAAC;AACvE,CAAC"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The toolbars floating over the molecule canvas: the view — reset, spin,
|
|
3
|
-
* surface,
|
|
3
|
+
* surface, the options and export popovers, full screen and help — in one vertical
|
|
4
4
|
* react-science `Toolbar`, and the measuring tools with their own clear button
|
|
5
5
|
* in a second one under it.
|
|
6
6
|
*/
|
|
7
7
|
import type { ReactElement } from 'react';
|
|
8
8
|
import type { MeasurementKind } from '../core/measurement.ts';
|
|
9
9
|
import type { Molecule3DTools } from '../core/settings.ts';
|
|
10
|
+
/** Whether the canvas fills the screen, and how to change that. */
|
|
11
|
+
export interface Molecule3DFullscreen {
|
|
12
|
+
/** Whether the canvas and its toolbars fill the screen. */
|
|
13
|
+
active: boolean;
|
|
14
|
+
/** Fill the screen, or leave it. */
|
|
15
|
+
toggle: () => void;
|
|
16
|
+
}
|
|
10
17
|
/** Props of {@link Molecule3DToolbar}. */
|
|
11
18
|
export interface Molecule3DToolbarProps {
|
|
12
19
|
/** Which tools to show; every one it does not name is on. */
|
|
@@ -25,6 +32,12 @@ export interface Molecule3DToolbarProps {
|
|
|
25
32
|
options?: ReactElement;
|
|
26
33
|
/** Content of the export popover; its tool is left out without one. */
|
|
27
34
|
exportPanel?: ReactElement;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the canvas fills the screen, and the toggle; its tool is left out
|
|
37
|
+
* without one, which is what a browser that cannot fill the screen gets.
|
|
38
|
+
* @default undefined
|
|
39
|
+
*/
|
|
40
|
+
fullscreen?: Molecule3DFullscreen;
|
|
28
41
|
}
|
|
29
42
|
/**
|
|
30
43
|
* The two toolbars; either is left out when none of its tools is on.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Molecule3DToolbar.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/Molecule3DToolbar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAU3D,0CAA0C;AAC1C,MAAM,WAAW,sBAAsB;IACrC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACjC,WAAW,EAAE,eAAe,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5D,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,sFAAsF;IACtF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,WAAW,EAAE,MAAM,IAAI,CA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EAAE,oBAAoB,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,YAAY,CA4J7E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* The toolbars floating over the molecule canvas: the view — reset, spin,
|
|
4
|
-
* surface,
|
|
4
|
+
* surface, the options and export popovers, full screen and help — in one vertical
|
|
5
5
|
* react-science `Toolbar`, and the measuring tools with their own clear button
|
|
6
6
|
* in a second one under it.
|
|
7
7
|
*/
|
|
@@ -18,17 +18,19 @@ import { ClearMeasurementsIcon, MeasureIcon, SurfaceIcon, } from "./molecule3dIc
|
|
|
18
18
|
* @returns The toolbars, stacked.
|
|
19
19
|
*/
|
|
20
20
|
export function Molecule3DToolbar(props) {
|
|
21
|
-
const { tools: toolsProp, measureKind, onMeasureKindChange, measurementCount, onClearMeasurements, spinning, onSpinningChange, showSurface, onShowSurfaceChange, onResetView, options, exportPanel, } = props;
|
|
21
|
+
const { tools: toolsProp, measureKind, onMeasureKindChange, measurementCount, onClearMeasurements, spinning, onSpinningChange, showSurface, onShowSurfaceChange, onResetView, options, exportPanel, fullscreen, } = props;
|
|
22
22
|
const t = useChromeT();
|
|
23
23
|
const tools = resolveMolecule3DTools(toolsProp);
|
|
24
24
|
const showOptions = tools.options && options !== undefined;
|
|
25
25
|
const showSurfaceTool = tools.surface && onShowSurfaceChange !== undefined;
|
|
26
26
|
const showExport = tools.export && exportPanel !== undefined;
|
|
27
|
+
const showFullscreen = tools.fullscreen && fullscreen !== undefined;
|
|
27
28
|
const hasView = tools.spin ||
|
|
28
29
|
tools.surface ||
|
|
29
30
|
tools.reset ||
|
|
30
31
|
showOptions ||
|
|
31
32
|
showExport ||
|
|
33
|
+
showFullscreen ||
|
|
32
34
|
tools.help;
|
|
33
35
|
return (_jsxs("div", { className: "no-print", style: COLUMN_STYLE, children: [hasView && (_jsx(Card, { elevation: 1, style: CARD_STYLE, children: _jsxs(Toolbar, { vertical: true, "aria-label": t('molecule3d.view'), children: [tools.reset && (_jsx(Toolbar.Item, { icon: "zoom-to-fit", "aria-label": t('molecule3d.resetView'), tooltip: t('molecule3d.resetView'), tooltipProps: TOOLTIP_PROPS, onClick: onResetView })), tools.spin && (_jsx(Toolbar.Item, { icon: "refresh", active: spinning, "aria-label": t('molecule3d.spin'), tooltip: t('molecule3d.spin'), tooltipProps: TOOLTIP_PROPS, onClick: () => {
|
|
34
36
|
onSpinningChange(!spinning);
|
|
@@ -44,7 +46,7 @@ export function Molecule3DToolbar(props) {
|
|
|
44
46
|
'aria-label': t('molecule3d.exportImage'),
|
|
45
47
|
tooltip: t('molecule3d.exportImage'),
|
|
46
48
|
tooltipProps: TOOLTIP_PROPS,
|
|
47
|
-
} })), tools.help && (_jsx(Toolbar.PopoverItem, { placement: "right-start", content: _jsx(Molecule3DHelp, {}), itemProps: {
|
|
49
|
+
} })), showFullscreen && (_jsx(Toolbar.Item, { icon: fullscreen.active ? 'minimize' : 'fullscreen', active: fullscreen.active, "aria-label": t('molecule3d.fullScreen'), tooltip: t('molecule3d.fullScreen'), tooltipProps: TOOLTIP_PROPS, onClick: fullscreen.toggle })), tools.help && (_jsx(Toolbar.PopoverItem, { placement: "right-start", content: _jsx(Molecule3DHelp, {}), itemProps: {
|
|
48
50
|
icon: 'help',
|
|
49
51
|
'aria-label': t('structure.mouseAndKeyboard'),
|
|
50
52
|
tooltip: t('structure.mouseAndKeyboard'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Molecule3DToolbar.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/Molecule3DToolbar.tsx"],"names":[],"mappings":";AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,UAAU,EA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EAC3B,OAAO,EAAE,mBAAmB,GAC5B,IACM,GACL,CACR,IACG,CACP,CAAC;AACJ,CAAC;AAED,MAAM,aAAa,GAAG,EAAE,SAAS,EAAE,OAAO,EAAW,CAAC;AAEtD,MAAM,YAAY,GAAkB;IAClC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,GAAG,EAAE,CAAC;IACN,aAAa,EAAE,MAAM;CACtB,CAAC;AAEF,MAAM,UAAU,GAAkB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The molstar canvas of `MoleculeViewer3D`, with its toolbars over it
|
|
2
|
+
* The molstar canvas of `MoleculeViewer3D`, with its toolbars over it, in a
|
|
3
|
+
* box that can fill the screen.
|
|
3
4
|
*
|
|
4
5
|
* Reached through `React.lazy`, so a page that never shows a molecule never
|
|
5
6
|
* downloads molstar.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoleculeCanvas3D.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeCanvas3D.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"MoleculeCanvas3D.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeCanvas3D.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAezD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOxE,yCAAyC;AACzC,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,qBAAqB,EACrB,UAAU,GAAG,mBAAmB,CACjC;IACC,2EAA2E;IAC3E,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACnD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,YAAY,CA8J3E"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { DEFAULT_SPIN_SPEED } from "../../molstar/core/index.js";
|
|
4
4
|
import { normalizeMolecule3DSettings, resolveMolecule3DTools, } from "../core/settings.js";
|
|
5
5
|
import { Molecule3DExport } from "./Molecule3DExport.js";
|
|
6
6
|
import { Molecule3DOptions } from "./Molecule3DOptions.js";
|
|
7
|
+
import { Molecule3DStage } from "./Molecule3DStage.js";
|
|
7
8
|
import { Molecule3DToolbar } from "./Molecule3DToolbar.js";
|
|
8
9
|
import { createMolecule3DViewer } from "./createViewer.js";
|
|
9
10
|
import { useControlledState } from "./useControlledState.js";
|
|
@@ -82,11 +83,11 @@ export function MoleculeCanvas3D(props) {
|
|
|
82
83
|
camera: props,
|
|
83
84
|
});
|
|
84
85
|
const { canvasSize, exportImage, copyImage } = useImageExport(container, viewerRef, fileName);
|
|
85
|
-
return (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
return (_jsx(Molecule3DStage, { style: { ...STAGE_STYLE, minHeight }, children: (fullscreen) => (_jsxs(_Fragment, { children: [_jsx("div", { ref: setContainer, style: CANVAS_STYLE, "data-testid": "molecule3d" }), molfile !== null && (_jsx("div", { style: OVERLAY_STYLE, children: _jsx(Molecule3DToolbar, { tools: tools, fullscreen: fullscreen, measureKind: measureKind, onMeasureKindChange: setMeasureKind, measurementCount: measurements.length, onClearMeasurements: () => {
|
|
87
|
+
setMeasurements(NO_MEASUREMENTS);
|
|
88
|
+
}, spinning: spinning, onSpinningChange: setSpinning, showSurface: settings.showSurface, onShowSurfaceChange: (showSurface) => {
|
|
89
|
+
setSettings({ ...settings, showSurface });
|
|
90
|
+
}, onResetView: resetView, options: _jsx(Molecule3DOptions, { settings: settings, onChange: setSettings, polarSurfaceArea: polarSurfaceArea, defaults: initialSettings }), exportPanel: _jsx(Molecule3DExport, { getSize: canvasSize, onExport: exportImage, onCopy: copyImage }) }) }))] })) }));
|
|
90
91
|
}
|
|
91
92
|
const NO_MEASUREMENTS = [];
|
|
92
93
|
const STAGE_STYLE = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoleculeCanvas3D.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeCanvas3D.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"MoleculeCanvas3D.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeCanvas3D.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAwB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAyB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAyB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAY/D;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAA4B;IAC3D,MAAM,EACJ,OAAO,EACP,gBAAgB,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AAe,GACzB,EAEJ,WAAW,EACT,KAAC,gBAAgB,IACf,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,SAAS,GACjB,GAEJ,GACE,CACP,IACA,CACJ,GACe,CACnB,CAAC;AACJ,CAAC;AAED,MAAM,eAAe,GAA2B,EAAE,CAAC;AAEnD,MAAM,WAAW,GAAkB;IACjC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,MAAM;IACb,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE,QAAQ;CACnB,CAAC;AAEF,8EAA8E;AAC9E,MAAM,YAAY,GAAkB,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAEvE,MAAM,aAAa,GAAkB;IACnC,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,YAAY;IACxB,GAAG,EAAE,CAAC;IACN,aAAa,EAAE,MAAM;CACtB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A molecule in three dimensions, with a toolbar to measure it, turn it, wrap
|
|
3
|
-
* it in its surface and
|
|
3
|
+
* it in its surface, restyle it and fill the screen with it — and what to say
|
|
4
|
+
* when there cannot be one.
|
|
4
5
|
*
|
|
5
6
|
* The WebGL probe runs before molstar is touched, so a machine without WebGL
|
|
6
7
|
* gets an explanation instead of a blank rectangle, and the canvas sits behind
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoleculeViewer3D.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeViewer3D.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"MoleculeViewer3D.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeViewer3D.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAQzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOxE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,YAAY,CAiC3E"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* A molecule in three dimensions, with a toolbar to measure it, turn it, wrap
|
|
4
|
-
* it in its surface and
|
|
4
|
+
* it in its surface, restyle it and fill the screen with it — and what to say
|
|
5
|
+
* when there cannot be one.
|
|
5
6
|
*
|
|
6
7
|
* The WebGL probe runs before molstar is touched, so a machine without WebGL
|
|
7
8
|
* gets an explanation instead of a blank rectangle, and the canvas sits behind
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoleculeViewer3D.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeViewer3D.tsx"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"MoleculeViewer3D.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeViewer3D.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjD,4EAA4E;AAC5E,uEAAuE;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE;IACvC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAwB,CAAC,CAAC;IACt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CAAC;CACZ,CAAC;AAEF,MAAM,UAAU,GAAkB;IAChC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,SAAS,EAAE,GAAG;IACd,QAAQ,EAAE,EAAE;CACb,CAAC"}
|
|
@@ -10,7 +10,7 @@ export { Molecule3DExport } from './Molecule3DExport.tsx';
|
|
|
10
10
|
export type { Molecule3DExportProps } from './Molecule3DExport.tsx';
|
|
11
11
|
export { Molecule3DHelp } from './Molecule3DHelp.tsx';
|
|
12
12
|
export { Molecule3DToolbar } from './Molecule3DToolbar.tsx';
|
|
13
|
-
export type { Molecule3DToolbarProps } from './Molecule3DToolbar.tsx';
|
|
13
|
+
export type { Molecule3DFullscreen, Molecule3DToolbarProps, } from './Molecule3DToolbar.tsx';
|
|
14
14
|
export type { MoleculeImageRequest, SceneCapture, } from './exportMoleculeImage.ts';
|
|
15
15
|
export { exportMoleculeImage } from './exportMoleculeImage.ts';
|
|
16
16
|
export type { ImageExport } from './useImageExport.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EACV,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,oBAAoB,EACpB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAwB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAwB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAyB,CAAC;AAS5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cheminfo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.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",
|
|
@@ -308,6 +308,21 @@ export const CREDITS = [
|
|
|
308
308
|
'the articles, and the Chembox and Drugbox infoboxes every value is read from.',
|
|
309
309
|
license: 'CC-BY-SA-4.0',
|
|
310
310
|
},
|
|
311
|
+
{
|
|
312
|
+
id: 'wikidata',
|
|
313
|
+
name: 'Wikidata',
|
|
314
|
+
href: 'https://www.wikidata.org/',
|
|
315
|
+
description:
|
|
316
|
+
'the name of every compound in every language, and its article in each Wikipedia.',
|
|
317
|
+
license: 'CC0-1.0',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
id: 'country-flag-icons',
|
|
321
|
+
name: 'country-flag-icons',
|
|
322
|
+
href: 'https://gitlab.com/catamphetamine/country-flag-icons',
|
|
323
|
+
description: 'the flag each language is picked by.',
|
|
324
|
+
license: 'MIT',
|
|
325
|
+
},
|
|
311
326
|
{
|
|
312
327
|
id: 'wtf-wikipedia',
|
|
313
328
|
name: 'wtf_wikipedia',
|
package/src/locales/de.json
CHANGED
|
@@ -484,6 +484,7 @@
|
|
|
484
484
|
"molecule3d.molecularSurface": "Moleküloberfläche",
|
|
485
485
|
"molecule3d.displayOptions": "Anzeigeoptionen",
|
|
486
486
|
"molecule3d.exportImage": "Bild exportieren",
|
|
487
|
+
"molecule3d.fullScreen": "Vollbild",
|
|
487
488
|
"molecule3d.measure": "Messen",
|
|
488
489
|
"molecule3d.clearMeasurements": "Alle Messungen entfernen",
|
|
489
490
|
"molecule3d.measurement.distance": "Abstand",
|
package/src/locales/en.json
CHANGED
|
@@ -460,6 +460,7 @@
|
|
|
460
460
|
"molecule3d.molecularSurface": "Molecular surface",
|
|
461
461
|
"molecule3d.displayOptions": "Display options",
|
|
462
462
|
"molecule3d.exportImage": "Export image",
|
|
463
|
+
"molecule3d.fullScreen": "Full screen",
|
|
463
464
|
"molecule3d.measure": "Measure",
|
|
464
465
|
"molecule3d.clearMeasurements": "Remove all measurements",
|
|
465
466
|
"molecule3d.measurement.distance": "Distance",
|
package/src/locales/es.json
CHANGED
|
@@ -484,6 +484,7 @@
|
|
|
484
484
|
"molecule3d.molecularSurface": "Superficie molecular",
|
|
485
485
|
"molecule3d.displayOptions": "Opciones de presentación",
|
|
486
486
|
"molecule3d.exportImage": "Exportar la imagen",
|
|
487
|
+
"molecule3d.fullScreen": "Pantalla completa",
|
|
487
488
|
"molecule3d.measure": "Medir",
|
|
488
489
|
"molecule3d.clearMeasurements": "Quitar todas las medidas",
|
|
489
490
|
"molecule3d.measurement.distance": "Distancia",
|
package/src/locales/fr.json
CHANGED
|
@@ -484,6 +484,7 @@
|
|
|
484
484
|
"molecule3d.molecularSurface": "Surface moléculaire",
|
|
485
485
|
"molecule3d.displayOptions": "Options d'affichage",
|
|
486
486
|
"molecule3d.exportImage": "Exporter l'image",
|
|
487
|
+
"molecule3d.fullScreen": "Plein écran",
|
|
487
488
|
"molecule3d.measure": "Mesurer",
|
|
488
489
|
"molecule3d.clearMeasurements": "Retirer toutes les mesures",
|
|
489
490
|
"molecule3d.measurement.distance": "Distance",
|
package/src/locales/it.json
CHANGED
|
@@ -460,6 +460,7 @@
|
|
|
460
460
|
"molecule3d.molecularSurface": "Superficie molecolare",
|
|
461
461
|
"molecule3d.displayOptions": "Opzioni di visualizzazione",
|
|
462
462
|
"molecule3d.exportImage": "Esporta l'immagine",
|
|
463
|
+
"molecule3d.fullScreen": "Schermo intero",
|
|
463
464
|
"molecule3d.measure": "Misura",
|
|
464
465
|
"molecule3d.clearMeasurements": "Togli tutte le misure",
|
|
465
466
|
"molecule3d.measurement.distance": "Distanza",
|
|
@@ -105,6 +105,12 @@ export interface Molecule3DTools {
|
|
|
105
105
|
reset: boolean;
|
|
106
106
|
/** A popover saving the picture as a PNG or an SVG. */
|
|
107
107
|
export: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* A toggle filling the screen with the canvas and its toolbars. It is left
|
|
110
|
+
* out where the browser cannot fill the screen, as on an iPhone or in a
|
|
111
|
+
* frame not allowed to.
|
|
112
|
+
*/
|
|
113
|
+
fullscreen: boolean;
|
|
108
114
|
/** A popover listing what the mouse and the keyboard do on the canvas. */
|
|
109
115
|
help: boolean;
|
|
110
116
|
}
|
|
@@ -117,6 +123,7 @@ export const DEFAULT_MOLECULE_3D_TOOLS: Molecule3DTools = {
|
|
|
117
123
|
surface: true,
|
|
118
124
|
reset: true,
|
|
119
125
|
export: true,
|
|
126
|
+
fullscreen: true,
|
|
120
127
|
help: true,
|
|
121
128
|
};
|
|
122
129
|
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The box the molecule canvas and its toolbars are drawn in, which is also the
|
|
3
|
+
* box that fills the screen.
|
|
4
|
+
*
|
|
5
|
+
* A box filling the screen hides everything outside it, and the popovers and
|
|
6
|
+
* tooltips of the toolbars are portalled to `document.body`: while the box
|
|
7
|
+
* fills the screen they are portalled into it instead, the way react-science's
|
|
8
|
+
* `RootLayout` keeps its own menus visible. Otherwise the portal options of the
|
|
9
|
+
* page around the viewer are passed through untouched.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { PortalContext, PortalProvider } from '@blueprintjs/core';
|
|
13
|
+
import type { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
14
|
+
import { useCallback, useContext, useState } from 'react';
|
|
15
|
+
import { FullScreenProvider, useFullscreen } from 'react-science/ui';
|
|
16
|
+
|
|
17
|
+
import type { Molecule3DFullscreen } from './Molecule3DToolbar.tsx';
|
|
18
|
+
|
|
19
|
+
/** Props of {@link Molecule3DStage}. */
|
|
20
|
+
export interface Molecule3DStageProps {
|
|
21
|
+
/** Style of the box. */
|
|
22
|
+
style: CSSProperties;
|
|
23
|
+
/**
|
|
24
|
+
* What is drawn in the box, handed whether it fills the screen and the
|
|
25
|
+
* toggle, or `undefined` where the browser cannot fill the screen.
|
|
26
|
+
*/
|
|
27
|
+
children: (fullscreen: Molecule3DFullscreen | undefined) => ReactNode;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The box of the canvas, able to fill the screen.
|
|
32
|
+
* @param props - See {@link Molecule3DStageProps}.
|
|
33
|
+
* @returns The box.
|
|
34
|
+
*/
|
|
35
|
+
export function Molecule3DStage(props: Molecule3DStageProps): ReactElement {
|
|
36
|
+
return (
|
|
37
|
+
<FullScreenProvider>
|
|
38
|
+
{(fullscreenRef) => <Stage {...props} fullscreenRef={fullscreenRef} />}
|
|
39
|
+
</FullScreenProvider>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface StageProps extends Molecule3DStageProps {
|
|
44
|
+
/** Where `FullScreenProvider` expects the element that fills the screen. */
|
|
45
|
+
fullscreenRef: { current: HTMLDivElement | null };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function Stage(props: StageProps): ReactElement {
|
|
49
|
+
const { style, children, fullscreenRef } = props;
|
|
50
|
+
const { isFullScreen, toggle } = useFullscreen();
|
|
51
|
+
const portal = useContext(PortalContext);
|
|
52
|
+
const [canFillScreen] = useState(isFullscreenEnabled);
|
|
53
|
+
const [stage, setStage] = useState<HTMLDivElement | null>(null);
|
|
54
|
+
const stageRef = useCallback(
|
|
55
|
+
(element: HTMLDivElement | null) => {
|
|
56
|
+
fullscreenRef.current = element;
|
|
57
|
+
setStage(element);
|
|
58
|
+
},
|
|
59
|
+
[fullscreenRef],
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
// The provider is always there, so entering full screen changes a value
|
|
63
|
+
// rather than the tree, and the canvas inside is never mounted again.
|
|
64
|
+
return (
|
|
65
|
+
<div ref={stageRef} style={style}>
|
|
66
|
+
<PortalProvider
|
|
67
|
+
portalClassName={portal.portalClassName}
|
|
68
|
+
portalContainer={
|
|
69
|
+
isFullScreen && stage !== null ? stage : portal.portalContainer
|
|
70
|
+
}
|
|
71
|
+
>
|
|
72
|
+
{children(canFillScreen ? { active: isFullScreen, toggle } : undefined)}
|
|
73
|
+
</PortalProvider>
|
|
74
|
+
</div>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function isFullscreenEnabled(): boolean {
|
|
79
|
+
return typeof document !== 'undefined' && document.fullscreenEnabled;
|
|
80
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The toolbars floating over the molecule canvas: the view — reset, spin,
|
|
3
|
-
* surface,
|
|
3
|
+
* surface, the options and export popovers, full screen and help — in one vertical
|
|
4
4
|
* react-science `Toolbar`, and the measuring tools with their own clear button
|
|
5
5
|
* in a second one under it.
|
|
6
6
|
*/
|
|
@@ -26,6 +26,14 @@ import {
|
|
|
26
26
|
SurfaceIcon,
|
|
27
27
|
} from './molecule3dIcons.tsx';
|
|
28
28
|
|
|
29
|
+
/** Whether the canvas fills the screen, and how to change that. */
|
|
30
|
+
export interface Molecule3DFullscreen {
|
|
31
|
+
/** Whether the canvas and its toolbars fill the screen. */
|
|
32
|
+
active: boolean;
|
|
33
|
+
/** Fill the screen, or leave it. */
|
|
34
|
+
toggle: () => void;
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
/** Props of {@link Molecule3DToolbar}. */
|
|
30
38
|
export interface Molecule3DToolbarProps {
|
|
31
39
|
/** Which tools to show; every one it does not name is on. */
|
|
@@ -44,6 +52,12 @@ export interface Molecule3DToolbarProps {
|
|
|
44
52
|
options?: ReactElement;
|
|
45
53
|
/** Content of the export popover; its tool is left out without one. */
|
|
46
54
|
exportPanel?: ReactElement;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the canvas fills the screen, and the toggle; its tool is left out
|
|
57
|
+
* without one, which is what a browser that cannot fill the screen gets.
|
|
58
|
+
* @default undefined
|
|
59
|
+
*/
|
|
60
|
+
fullscreen?: Molecule3DFullscreen;
|
|
47
61
|
}
|
|
48
62
|
|
|
49
63
|
/**
|
|
@@ -65,18 +79,21 @@ export function Molecule3DToolbar(props: Molecule3DToolbarProps): ReactElement {
|
|
|
65
79
|
onResetView,
|
|
66
80
|
options,
|
|
67
81
|
exportPanel,
|
|
82
|
+
fullscreen,
|
|
68
83
|
} = props;
|
|
69
84
|
const t = useChromeT();
|
|
70
85
|
const tools = resolveMolecule3DTools(toolsProp);
|
|
71
86
|
const showOptions = tools.options && options !== undefined;
|
|
72
87
|
const showSurfaceTool = tools.surface && onShowSurfaceChange !== undefined;
|
|
73
88
|
const showExport = tools.export && exportPanel !== undefined;
|
|
89
|
+
const showFullscreen = tools.fullscreen && fullscreen !== undefined;
|
|
74
90
|
const hasView =
|
|
75
91
|
tools.spin ||
|
|
76
92
|
tools.surface ||
|
|
77
93
|
tools.reset ||
|
|
78
94
|
showOptions ||
|
|
79
95
|
showExport ||
|
|
96
|
+
showFullscreen ||
|
|
80
97
|
tools.help;
|
|
81
98
|
|
|
82
99
|
return (
|
|
@@ -141,6 +158,16 @@ export function Molecule3DToolbar(props: Molecule3DToolbarProps): ReactElement {
|
|
|
141
158
|
}}
|
|
142
159
|
/>
|
|
143
160
|
)}
|
|
161
|
+
{showFullscreen && (
|
|
162
|
+
<Toolbar.Item
|
|
163
|
+
icon={fullscreen.active ? 'minimize' : 'fullscreen'}
|
|
164
|
+
active={fullscreen.active}
|
|
165
|
+
aria-label={t('molecule3d.fullScreen')}
|
|
166
|
+
tooltip={t('molecule3d.fullScreen')}
|
|
167
|
+
tooltipProps={TOOLTIP_PROPS}
|
|
168
|
+
onClick={fullscreen.toggle}
|
|
169
|
+
/>
|
|
170
|
+
)}
|
|
144
171
|
{tools.help && (
|
|
145
172
|
<Toolbar.PopoverItem
|
|
146
173
|
placement="right-start"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The molstar canvas of `MoleculeViewer3D`, with its toolbars over it
|
|
2
|
+
* The molstar canvas of `MoleculeViewer3D`, with its toolbars over it, in a
|
|
3
|
+
* box that can fill the screen.
|
|
3
4
|
*
|
|
4
5
|
* Reached through `React.lazy`, so a page that never shows a molecule never
|
|
5
6
|
* downloads molstar.
|
|
@@ -17,6 +18,7 @@ import {
|
|
|
17
18
|
|
|
18
19
|
import { Molecule3DExport } from './Molecule3DExport.tsx';
|
|
19
20
|
import { Molecule3DOptions } from './Molecule3DOptions.tsx';
|
|
21
|
+
import { Molecule3DStage } from './Molecule3DStage.tsx';
|
|
20
22
|
import { Molecule3DToolbar } from './Molecule3DToolbar.tsx';
|
|
21
23
|
import { createMolecule3DViewer } from './createViewer.ts';
|
|
22
24
|
import type { MoleculeViewer3DProps } from './moleculeViewer3DProps.ts';
|
|
@@ -150,44 +152,53 @@ export function MoleculeCanvas3D(props: MoleculeCanvas3DProps): ReactElement {
|
|
|
150
152
|
);
|
|
151
153
|
|
|
152
154
|
return (
|
|
153
|
-
<
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
onMeasureKindChange={setMeasureKind}
|
|
161
|
-
measurementCount={measurements.length}
|
|
162
|
-
onClearMeasurements={() => {
|
|
163
|
-
setMeasurements(NO_MEASUREMENTS);
|
|
164
|
-
}}
|
|
165
|
-
spinning={spinning}
|
|
166
|
-
onSpinningChange={setSpinning}
|
|
167
|
-
showSurface={settings.showSurface}
|
|
168
|
-
onShowSurfaceChange={(showSurface) => {
|
|
169
|
-
setSettings({ ...settings, showSurface });
|
|
170
|
-
}}
|
|
171
|
-
onResetView={resetView}
|
|
172
|
-
options={
|
|
173
|
-
<Molecule3DOptions
|
|
174
|
-
settings={settings}
|
|
175
|
-
onChange={setSettings}
|
|
176
|
-
polarSurfaceArea={polarSurfaceArea}
|
|
177
|
-
defaults={initialSettings}
|
|
178
|
-
/>
|
|
179
|
-
}
|
|
180
|
-
exportPanel={
|
|
181
|
-
<Molecule3DExport
|
|
182
|
-
getSize={canvasSize}
|
|
183
|
-
onExport={exportImage}
|
|
184
|
-
onCopy={copyImage}
|
|
185
|
-
/>
|
|
186
|
-
}
|
|
155
|
+
<Molecule3DStage style={{ ...STAGE_STYLE, minHeight }}>
|
|
156
|
+
{(fullscreen) => (
|
|
157
|
+
<>
|
|
158
|
+
<div
|
|
159
|
+
ref={setContainer}
|
|
160
|
+
style={CANVAS_STYLE}
|
|
161
|
+
data-testid="molecule3d"
|
|
187
162
|
/>
|
|
188
|
-
|
|
163
|
+
{molfile !== null && (
|
|
164
|
+
<div style={OVERLAY_STYLE}>
|
|
165
|
+
<Molecule3DToolbar
|
|
166
|
+
tools={tools}
|
|
167
|
+
fullscreen={fullscreen}
|
|
168
|
+
measureKind={measureKind}
|
|
169
|
+
onMeasureKindChange={setMeasureKind}
|
|
170
|
+
measurementCount={measurements.length}
|
|
171
|
+
onClearMeasurements={() => {
|
|
172
|
+
setMeasurements(NO_MEASUREMENTS);
|
|
173
|
+
}}
|
|
174
|
+
spinning={spinning}
|
|
175
|
+
onSpinningChange={setSpinning}
|
|
176
|
+
showSurface={settings.showSurface}
|
|
177
|
+
onShowSurfaceChange={(showSurface) => {
|
|
178
|
+
setSettings({ ...settings, showSurface });
|
|
179
|
+
}}
|
|
180
|
+
onResetView={resetView}
|
|
181
|
+
options={
|
|
182
|
+
<Molecule3DOptions
|
|
183
|
+
settings={settings}
|
|
184
|
+
onChange={setSettings}
|
|
185
|
+
polarSurfaceArea={polarSurfaceArea}
|
|
186
|
+
defaults={initialSettings}
|
|
187
|
+
/>
|
|
188
|
+
}
|
|
189
|
+
exportPanel={
|
|
190
|
+
<Molecule3DExport
|
|
191
|
+
getSize={canvasSize}
|
|
192
|
+
onExport={exportImage}
|
|
193
|
+
onCopy={copyImage}
|
|
194
|
+
/>
|
|
195
|
+
}
|
|
196
|
+
/>
|
|
197
|
+
</div>
|
|
198
|
+
)}
|
|
199
|
+
</>
|
|
189
200
|
)}
|
|
190
|
-
</
|
|
201
|
+
</Molecule3DStage>
|
|
191
202
|
);
|
|
192
203
|
}
|
|
193
204
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A molecule in three dimensions, with a toolbar to measure it, turn it, wrap
|
|
3
|
-
* it in its surface and
|
|
3
|
+
* it in its surface, restyle it and fill the screen with it — and what to say
|
|
4
|
+
* when there cannot be one.
|
|
4
5
|
*
|
|
5
6
|
* The WebGL probe runs before molstar is touched, so a machine without WebGL
|
|
6
7
|
* gets an explanation instead of a blank rectangle, and the canvas sits behind
|
|
@@ -11,7 +11,10 @@ export { Molecule3DExport } from './Molecule3DExport.tsx';
|
|
|
11
11
|
export type { Molecule3DExportProps } from './Molecule3DExport.tsx';
|
|
12
12
|
export { Molecule3DHelp } from './Molecule3DHelp.tsx';
|
|
13
13
|
export { Molecule3DToolbar } from './Molecule3DToolbar.tsx';
|
|
14
|
-
export type {
|
|
14
|
+
export type {
|
|
15
|
+
Molecule3DFullscreen,
|
|
16
|
+
Molecule3DToolbarProps,
|
|
17
|
+
} from './Molecule3DToolbar.tsx';
|
|
15
18
|
export type {
|
|
16
19
|
MoleculeImageRequest,
|
|
17
20
|
SceneCapture,
|