pdbe-molstar 3.1.3 → 3.2.0-beta.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 (55) hide show
  1. package/README.md +20 -0
  2. package/build/pdbe-molstar-component.js +28 -0
  3. package/build/pdbe-molstar-light.css +9 -0
  4. package/build/pdbe-molstar-plugin.js +9 -0
  5. package/build/{pdbe-molstar-plugin-3.1.3.js.LICENSE.txt → pdbe-molstar-plugin.js.LICENSE.txt} +18 -0
  6. package/build/pdbe-molstar.css +9 -0
  7. package/lib/domain-annotations/color.d.ts +1 -1
  8. package/lib/domain-annotations/color.js +5 -4
  9. package/lib/domain-annotations/prop.d.ts +3 -3
  10. package/lib/helpers.d.ts +19 -8
  11. package/lib/helpers.js +9 -21
  12. package/lib/index(light).d.ts +103 -0
  13. package/lib/index(light).js +1015 -0
  14. package/lib/index.d.ts +101 -0
  15. package/lib/index.js +520 -424
  16. package/lib/labels.d.ts +1 -1
  17. package/lib/loci-details.d.ts +2 -2
  18. package/lib/overlay.d.ts +1 -1
  19. package/lib/pdbe-molstar-component-build.js +2 -0
  20. package/lib/pdbe-molstar-component-build.js.LICENSE.txt +11 -0
  21. package/lib/plugin-custom-state.d.ts +4 -4
  22. package/lib/sifts-mapping.d.ts +1 -1
  23. package/lib/sifts-mapping.js +2 -1
  24. package/lib/spec-from-html.d.ts +3 -0
  25. package/lib/spec-from-html.js +115 -0
  26. package/lib/spec.d.ts +90 -42
  27. package/lib/spec.js +43 -52
  28. package/lib/superposition-focus-representation.d.ts +1 -1
  29. package/lib/superposition-sifts-mapping.d.ts +1 -1
  30. package/lib/superposition-sifts-mapping.js +1 -1
  31. package/lib/superposition.js +135 -117
  32. package/lib/ui/alphafold-superposition.d.ts +8 -9
  33. package/lib/ui/alphafold-tranparency.d.ts +1 -2
  34. package/lib/ui/annotation-controls.d.ts +3 -4
  35. package/lib/ui/annotation-row-controls.d.ts +4 -4
  36. package/lib/ui/pdbe-left-panel.d.ts +3 -3
  37. package/lib/ui/pdbe-screenshot-controls.d.ts +1 -1
  38. package/lib/ui/pdbe-structure-controls.d.ts +4 -5
  39. package/lib/ui/pdbe-viewport-controls.d.ts +2 -3
  40. package/lib/ui/pdbe-viewport-controls.js +9 -29
  41. package/lib/ui/segment-tree.d.ts +1 -2
  42. package/lib/ui/segment-tree.js +50 -41
  43. package/lib/ui/superposition-components.d.ts +1 -2
  44. package/lib/ui/superposition-components.js +26 -19
  45. package/lib/ui/superposition-viewport.d.ts +1 -2
  46. package/lib/ui/symmetry-annotation-controls.d.ts +3 -4
  47. package/lib/ui/symmetry-annotation-controls.js +33 -20
  48. package/package.json +20 -18
  49. package/build/pdbe-molstar-3.1.3.css +0 -2
  50. package/build/pdbe-molstar-component-3.1.3.js +0 -25
  51. package/build/pdbe-molstar-plugin-3.1.3.js +0 -2
  52. package/lib/assembly-symmetry.d.ts +0 -11
  53. package/lib/assembly-symmetry.js +0 -70
  54. package/lib/pdbe-molstar-component-build-3.1.3.js +0 -2
  55. package/lib/pdbe-molstar-component-build-3.1.3.js.LICENSE.txt +0 -24
package/README.md CHANGED
@@ -18,3 +18,23 @@ npm run serve
18
18
  ```sh
19
19
  npm run watch
20
20
  ```
21
+
22
+ ## Manual testing
23
+
24
+ - Run locally by `npm run serve`
25
+ - Go to <http://127.0.0.1:1338/portfolio.html> and check the viewer with various different setting (some of these reflect the actual setting on PDBe pages)
26
+ - If you want to tweak the options, go to "Frame URL" and change the options in the URL
27
+
28
+ ## Deployment
29
+
30
+ - Bump version in `package.json` using semantic versioning
31
+ - Use a version number like "1.2.3-beta.1" for development versions (to be used in development environment wwwdev.ebi.ac.uk)
32
+ - Use a version number like "1.2.3" for proper releases
33
+ - Ensure install, lint, and rebuild works locally
34
+ - Git commit and push
35
+ - Create a git tag matching the version with prepended "v" (e.g. "v1.2.3")
36
+ - The GitHub repo will automatically be mirrored to EBI GitLab (might take up to 1 hour)
37
+ - CICD pipeline in EBI GitLab will automatically publish the package to npm (https://www.npmjs.com/package/pdbe-molstar)
38
+ - The files will become available via JSDeliver
39
+ - https://cdn.jsdelivr.net/npm/pdbe-molstar@dev/build/pdbe-molstar-plugin.js for the latest version including development versions
40
+ - https://cdn.jsdelivr.net/npm/pdbe-molstar@latest/build/pdbe-molstar-plugin.js for the latest proper release