molstar 3.31.2 → 3.31.3

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 (74) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +202 -202
  3. package/build/viewer/embedded.html +52 -52
  4. package/build/viewer/index.html +115 -115
  5. package/build/viewer/molstar.js +1 -1
  6. package/lib/apps/docking-viewer/index.html +36 -36
  7. package/lib/apps/viewer/embedded.html +52 -52
  8. package/lib/apps/viewer/index.html +115 -115
  9. package/lib/commonjs/extensions/meshes/mesh-extension.d.ts +4 -2
  10. package/lib/commonjs/extensions/meshes/mesh-streaming/behavior.d.ts +2 -0
  11. package/lib/commonjs/mol-canvas3d/canvas3d.js +1 -1
  12. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  13. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
  14. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
  15. package/lib/commonjs/mol-gl/shader/cylinders.vert.d.ts +2 -2
  16. package/lib/commonjs/mol-gl/shader/cylinders.vert.js +2 -2
  17. package/lib/commonjs/mol-gl/shader/spheres.vert.d.ts +2 -2
  18. package/lib/commonjs/mol-gl/shader/spheres.vert.js +2 -2
  19. package/lib/commonjs/mol-math/linear-algebra/matrix/principal-axes.js +1 -1
  20. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  21. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.js +2 -1
  22. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -1
  23. package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
  24. package/lib/commonjs/mol-util/data-source.js +2 -1
  25. package/lib/examples/alpha-orbitals/index.html +72 -72
  26. package/lib/examples/basic-wrapper/index.html +137 -137
  27. package/lib/examples/lighting/index.html +88 -88
  28. package/lib/examples/proteopedia-wrapper/index.html +236 -236
  29. package/lib/extensions/meshes/mesh-extension.d.ts +4 -2
  30. package/lib/extensions/meshes/mesh-streaming/behavior.d.ts +2 -0
  31. package/lib/mol-canvas3d/canvas3d.js +1 -1
  32. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  33. package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
  34. package/lib/mol-geo/geometry/points/points.d.ts +1 -1
  35. package/lib/mol-gl/shader/cylinders.vert.d.ts +2 -2
  36. package/lib/mol-gl/shader/cylinders.vert.js +2 -2
  37. package/lib/mol-gl/shader/spheres.vert.d.ts +2 -2
  38. package/lib/mol-gl/shader/spheres.vert.js +2 -2
  39. package/lib/mol-math/linear-algebra/matrix/principal-axes.js +1 -1
  40. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  41. package/lib/mol-plugin/version.js +2 -2
  42. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  43. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  44. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  45. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  46. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  47. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  48. package/lib/mol-plugin-ui/skin/base/components/misc.scss +663 -663
  49. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  50. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  51. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  52. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  53. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  54. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +137 -137
  55. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  56. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  57. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  58. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  59. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  60. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  61. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  62. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  63. package/lib/mol-plugin-ui/skin/base/variables.scss +88 -88
  64. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  65. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  66. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  67. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  68. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  69. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  70. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.js +2 -1
  71. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -1
  72. package/lib/mol-script/language/builder.d.ts +1 -0
  73. package/lib/mol-util/data-source.js +2 -1
  74. package/package.json +177 -177
@@ -1,2 +1,2 @@
1
- @import 'colors/blue';
1
+ @import 'colors/blue';
2
2
  @import 'base/base';
@@ -1,24 +1,24 @@
1
- $default-background: #2D3E50;
2
- $font-color: #EDF1F2;
3
- $hover-font-color: #3B9AD9;
4
- $entity-current-font-color: #FFFFFF;
5
- $msp-btn-remove-background: #BF3A31;
6
- $msp-btn-remove-hover-font-color:#ffffff;
7
- $msp-btn-commit-on-font-color: #ffffff;
8
- $entity-badge-font-color: #ccd4e0;
9
-
10
- // used in LOG
11
- $log-message: #0CCA5D;
12
- $log-info: #5E3673;
13
- $log-warning: #FCC937;
14
- $log-error: #FD354B;
15
-
16
- $logo-background: rgba(0,0,0,0.75);
17
-
18
- @function color-lower-contrast($color, $amount) {
19
- @return darken($color, $amount);
20
- }
21
-
22
- @function color-increase-contrast($color, $amount) {
23
- @return lighten($color, $amount);
1
+ $default-background: #2D3E50;
2
+ $font-color: #EDF1F2;
3
+ $hover-font-color: #3B9AD9;
4
+ $entity-current-font-color: #FFFFFF;
5
+ $msp-btn-remove-background: #BF3A31;
6
+ $msp-btn-remove-hover-font-color:#ffffff;
7
+ $msp-btn-commit-on-font-color: #ffffff;
8
+ $entity-badge-font-color: #ccd4e0;
9
+
10
+ // used in LOG
11
+ $log-message: #0CCA5D;
12
+ $log-info: #5E3673;
13
+ $log-warning: #FCC937;
14
+ $log-error: #FD354B;
15
+
16
+ $logo-background: rgba(0,0,0,0.75);
17
+
18
+ @function color-lower-contrast($color, $amount) {
19
+ @return darken($color, $amount);
20
+ }
21
+
22
+ @function color-increase-contrast($color, $amount) {
23
+ @return lighten($color, $amount);
24
24
  }
@@ -1,24 +1,24 @@
1
- $default-background: #111318;
2
- $font-color: #ccd4e0;
3
- $hover-font-color: #51A2FB;
4
- $entity-current-font-color: #68BEFD;
5
- $msp-btn-remove-background: #DE0A28;
6
- $msp-btn-remove-hover-font-color:#F2F4F7;
7
- $msp-btn-commit-on-font-color: #68BEFD;
8
- $entity-badge-font-color: #ccd4e0;
9
-
10
- // used in LOG
11
- $log-message: #0CCA5D;
12
- $log-info: #5E3673;
13
- $log-warning: #FCC937;
14
- $log-error: #FD354B;
15
-
16
- $logo-background: rgba(0,0,0,0.75);
17
-
18
- @function color-lower-contrast($color, $amount) {
19
- @return darken($color, $amount);
20
- }
21
-
22
- @function color-increase-contrast($color, $amount) {
23
- @return lighten($color, $amount);
1
+ $default-background: #111318;
2
+ $font-color: #ccd4e0;
3
+ $hover-font-color: #51A2FB;
4
+ $entity-current-font-color: #68BEFD;
5
+ $msp-btn-remove-background: #DE0A28;
6
+ $msp-btn-remove-hover-font-color:#F2F4F7;
7
+ $msp-btn-commit-on-font-color: #68BEFD;
8
+ $entity-badge-font-color: #ccd4e0;
9
+
10
+ // used in LOG
11
+ $log-message: #0CCA5D;
12
+ $log-info: #5E3673;
13
+ $log-warning: #FCC937;
14
+ $log-error: #FD354B;
15
+
16
+ $logo-background: rgba(0,0,0,0.75);
17
+
18
+ @function color-lower-contrast($color, $amount) {
19
+ @return darken($color, $amount);
20
+ }
21
+
22
+ @function color-increase-contrast($color, $amount) {
23
+ @return lighten($color, $amount);
24
24
  }
@@ -1,30 +1,30 @@
1
- // this is complement of the dark theme
2
-
3
- @function compl($color) {
4
- @return rgb(255 - red($color), 255 - green($color), 255 - blue($color));
5
- }
6
-
7
- $default-background: compl(#111318);
8
- $font-color: compl(#ccd4e0);
9
- $hover-font-color: compl(#51A2FB);
10
- $entity-current-font-color: compl(#68BEFD);
11
- $msp-btn-commit-on-font-color: compl(#68BEFD);
12
- $entity-badge-font-color: lighten(#ccd4e0,10%);
13
- $msp-btn-remove-background: #DE0A28;
14
- $msp-btn-remove-hover-font-color:#F2F4F7;
15
-
16
- // used in LOG
17
- $log-message: #0CCA5D;
18
- $log-info: #5E3673;
19
- $log-warning: #FCC937;
20
- $log-error: #FD354B;
21
-
22
- $logo-background: compl(#111318);
23
-
24
- @function color-lower-contrast($color, $amount) {
25
- @return lighten($color, $amount);
26
- }
27
-
28
- @function color-increase-contrast($color, $amount) {
29
- @return darken($color, $amount);
1
+ // this is complement of the dark theme
2
+
3
+ @function compl($color) {
4
+ @return rgb(255 - red($color), 255 - green($color), 255 - blue($color));
5
+ }
6
+
7
+ $default-background: compl(#111318);
8
+ $font-color: compl(#ccd4e0);
9
+ $hover-font-color: compl(#51A2FB);
10
+ $entity-current-font-color: compl(#68BEFD);
11
+ $msp-btn-commit-on-font-color: compl(#68BEFD);
12
+ $entity-badge-font-color: lighten(#ccd4e0,10%);
13
+ $msp-btn-remove-background: #DE0A28;
14
+ $msp-btn-remove-hover-font-color:#F2F4F7;
15
+
16
+ // used in LOG
17
+ $log-message: #0CCA5D;
18
+ $log-info: #5E3673;
19
+ $log-warning: #FCC937;
20
+ $log-error: #FD354B;
21
+
22
+ $logo-background: compl(#111318);
23
+
24
+ @function color-lower-contrast($color, $amount) {
25
+ @return lighten($color, $amount);
26
+ }
27
+
28
+ @function color-increase-contrast($color, $amount) {
29
+ @return darken($color, $amount);
30
30
  }
@@ -1,2 +1,2 @@
1
- @import 'colors/dark';
1
+ @import 'colors/dark';
2
2
  @import 'base/base';
@@ -1,2 +1,2 @@
1
- @import 'colors/light';
1
+ @import 'colors/light';
2
2
  @import 'base/base';
@@ -182,7 +182,8 @@ export function InterUnitBondCylinderImpostorVisual(materialId) {
182
182
  getLoci: getInterBondLoci,
183
183
  eachLocation: eachInterBond,
184
184
  setUpdateState: function (state, newProps, currentProps, newTheme, currentTheme, newStructure, currentStructure) {
185
- state.createGeometry = (newProps.sizeAspectRatio !== currentProps.sizeAspectRatio ||
185
+ state.createGeometry = (newProps.sizeFactor !== currentProps.sizeFactor ||
186
+ newProps.sizeAspectRatio !== currentProps.sizeAspectRatio ||
186
187
  newProps.linkScale !== currentProps.linkScale ||
187
188
  newProps.linkSpacing !== currentProps.linkSpacing ||
188
189
  newProps.ignoreHydrogens !== currentProps.ignoreHydrogens ||
@@ -203,7 +203,8 @@ export function IntraUnitBondCylinderImpostorVisual(materialId) {
203
203
  getLoci: getIntraBondLoci,
204
204
  eachLocation: eachIntraBond,
205
205
  setUpdateState: function (state, newProps, currentProps, newTheme, currentTheme, newStructureGroup, currentStructureGroup) {
206
- state.createGeometry = (newProps.sizeAspectRatio !== currentProps.sizeAspectRatio ||
206
+ state.createGeometry = (newProps.sizeFactor !== currentProps.sizeFactor ||
207
+ newProps.sizeAspectRatio !== currentProps.sizeAspectRatio ||
207
208
  newProps.linkScale !== currentProps.linkScale ||
208
209
  newProps.linkSpacing !== currentProps.linkSpacing ||
209
210
  newProps.ignoreHydrogens !== currentProps.ignoreHydrogens ||
@@ -10,6 +10,7 @@ export declare namespace MolScriptBuilder {
10
10
  '@header': string;
11
11
  type: {
12
12
  '@header': string;
13
+ /** atom macromolecular property set */
13
14
  bool: MSymbol<import("./symbol").Arguments<import("./symbol").Arguments.PropTypes<{
14
15
  0: import("./symbol").Argument<import("./type").Type.AnyValue>;
15
16
  }>>, import("./type").Type.OneOf<boolean>>;
@@ -343,7 +343,8 @@ var _fs = undefined;
343
343
  function getFS() {
344
344
  if (_fs)
345
345
  return _fs;
346
- _fs = require('fs');
346
+ var req = require; // To fool webpack
347
+ _fs = req('fs');
347
348
  return _fs;
348
349
  }
349
350
  /** Alternative implementation of ajaxGetInternal (because xhr2 does not support file:// protocol) */
package/package.json CHANGED
@@ -1,177 +1,177 @@
1
- {
2
- "name": "molstar",
3
- "version": "3.31.2",
4
- "description": "A comprehensive macromolecular library.",
5
- "homepage": "https://github.com/molstar/molstar#readme",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/molstar/molstar.git"
9
- },
10
- "bugs": {
11
- "url": "https://github.com/molstar/molstar/issues"
12
- },
13
- "scripts": {
14
- "lint": "eslint .",
15
- "lint-fix": "eslint . --fix",
16
- "test": "npm install --no-save \"gl@^6.0.2\" && npm run lint && jest",
17
- "jest": "jest",
18
- "build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
19
- "clean": "node ./scripts/clean.js",
20
- "rebuild": "npm run clean && npm run build",
21
- "build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
22
- "build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
23
- "build-extra": "cpx \"src/**/*.{scss,html,ico,jpg}\" lib/",
24
- "build-webpack": "webpack --mode production --config ./webpack.config.production.js",
25
- "build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
26
- "watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
27
- "watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
28
- "watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
29
- "watch-tsc": "tsc --watch --incremental",
30
- "watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
31
- "watch-extra": "cpx \"src/**/*.{scss,html,ico,jpg}\" lib/ --watch",
32
- "watch-webpack": "webpack -w --mode development --stats minimal",
33
- "watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
34
- "watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
35
- "serve": "http-server -p 1338 -g",
36
- "model-server": "node lib/commonjs/servers/model/server.js",
37
- "model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
38
- "volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
39
- "plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
40
- "preversion": "npm run test",
41
- "version": "npm run rebuild && cpx .npmignore lib/",
42
- "postversion": "git push && git push --tags"
43
- },
44
- "files": [
45
- "lib/",
46
- "build/viewer/"
47
- ],
48
- "bin": {
49
- "cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
50
- "cifschema": "lib/commonjs/cli/cifschema/index.js",
51
- "model-server": "lib/commonjs/servers/model/server.js",
52
- "model-server-query": "lib/commonjs/servers/model/query.js",
53
- "model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
54
- "volume-server": "lib/commonjs/servers/volume/server.js",
55
- "volume-server-query": "lib/commonjs/servers/volume/query.js",
56
- "volume-server-pack": "lib/commonjs/servers/volume/pack.js"
57
- },
58
- "nodemonConfig": {
59
- "ignoreRoot": [
60
- "./node_modules",
61
- ".git"
62
- ],
63
- "ignore": [],
64
- "delay": "2500"
65
- },
66
- "jest": {
67
- "moduleFileExtensions": [
68
- "ts",
69
- "js"
70
- ],
71
- "transform": {
72
- "\\.ts$": "ts-jest"
73
- },
74
- "moduleDirectories": [
75
- "node_modules",
76
- "lib"
77
- ],
78
- "testEnvironmentOptions": {
79
- "url": "http://localhost/"
80
- },
81
- "testRegex": "\\.spec\\.ts$"
82
- },
83
- "author": "Mol* Contributors",
84
- "contributors": [
85
- "Alexander Rose <alexander.rose@weirdbyte.de>",
86
- "David Sehnal <david.sehnal@gmail.com>",
87
- "Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
88
- "Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
89
- "Ludovic Autin <autin@scripps.edu>",
90
- "Michal Malý <michal.maly@ibt.cas.cz>",
91
- "Jiří Černý <jiri.cerny@ibt.cas.cz>",
92
- "Panagiotis Tourlas <panagiot_tourlov@hotmail.com>",
93
- "Adam Midlik <midlik@gmail.com>",
94
- "Koya Sakuma <koya.sakuma.work@gmail.com>",
95
- "Gianluca Tomasello <giagitom@gmail.com>",
96
- "Ke Ma <mark.ma@rcsb.org>",
97
- "Jason Pattle <jpattle@exscientia.co.uk>",
98
- "David Williams <dwilliams@nobiastx.com>"
99
- ],
100
- "license": "MIT",
101
- "devDependencies": {
102
- "@graphql-codegen/add": "^4.0.0",
103
- "@graphql-codegen/cli": "^3.0.0",
104
- "@graphql-codegen/time": "^4.0.0",
105
- "@graphql-codegen/typescript": "^3.0.0",
106
- "@graphql-codegen/typescript-graphql-files-modules": "^2.2.1",
107
- "@graphql-codegen/typescript-graphql-request": "^4.5.8",
108
- "@graphql-codegen/typescript-operations": "^3.0.0",
109
- "@types/cors": "^2.8.13",
110
- "@types/gl": "^6.0.2",
111
- "@types/jpeg-js": "^0.3.7",
112
- "@types/pngjs": "^6.0.1",
113
- "@types/jest": "^29.4.0",
114
- "@types/react": "^18.0.27",
115
- "@types/react-dom": "^18.0.10",
116
- "@typescript-eslint/eslint-plugin": "^5.50.0",
117
- "@typescript-eslint/parser": "^5.50.0",
118
- "benchmark": "^2.1.4",
119
- "concurrently": "^7.6.0",
120
- "cpx2": "^4.2.0",
121
- "crypto-browserify": "^3.12.0",
122
- "css-loader": "^6.7.3",
123
- "eslint": "^8.33.0",
124
- "extra-watch-webpack-plugin": "^1.0.3",
125
- "file-loader": "^6.2.0",
126
- "fs-extra": "^11.1.0",
127
- "graphql": "^16.6.0",
128
- "http-server": "^14.1.1",
129
- "jest": "^29.4.1",
130
- "mini-css-extract-plugin": "^2.7.2",
131
- "path-browserify": "^1.0.1",
132
- "raw-loader": "^4.0.2",
133
- "react": "^18.2.0",
134
- "react-dom": "^18.2.0",
135
- "sass": "^1.58.0",
136
- "sass-loader": "^13.2.0",
137
- "simple-git": "^3.16.0",
138
- "stream-browserify": "^3.0.0",
139
- "style-loader": "^3.3.1",
140
- "ts-jest": "^29.0.5",
141
- "typescript": "^4.9.5",
142
- "webpack": "^5.75.0",
143
- "webpack-cli": "^5.0.1"
144
- },
145
- "dependencies": {
146
- "@types/argparse": "^2.0.10",
147
- "@types/benchmark": "^2.1.2",
148
- "@types/compression": "1.7.2",
149
- "@types/express": "^4.17.17",
150
- "@types/node": "^16.18.12",
151
- "@types/node-fetch": "^2.6.2",
152
- "@types/swagger-ui-dist": "3.30.1",
153
- "argparse": "^2.0.1",
154
- "body-parser": "^1.20.1",
155
- "compression": "^1.7.4",
156
- "cors": "^2.8.5",
157
- "express": "^4.18.2",
158
- "h264-mp4-encoder": "^1.0.12",
159
- "immer": "^9.0.19",
160
- "immutable": "^4.2.3",
161
- "node-fetch": "^2.6.9",
162
- "rxjs": "^7.8.0",
163
- "swagger-ui-dist": "^4.15.5",
164
- "tslib": "^2.5.0",
165
- "util.promisify": "^1.1.1",
166
- "xhr2": "^0.2.1"
167
- },
168
- "peerDependencies": {
169
- "react": "^18.1.0 || ^17.0.2 || ^16.14.0",
170
- "react-dom": "^18.1.0 || ^17.0.2 || ^16.14.0"
171
- },
172
- "optionalDependencies": {
173
- "gl": "^6.0.2",
174
- "jpeg-js": "^0.4.4",
175
- "pngjs": "^6.0.0"
176
- }
177
- }
1
+ {
2
+ "name": "molstar",
3
+ "version": "3.31.3",
4
+ "description": "A comprehensive macromolecular library.",
5
+ "homepage": "https://github.com/molstar/molstar#readme",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/molstar/molstar.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/molstar/molstar/issues"
12
+ },
13
+ "scripts": {
14
+ "lint": "eslint .",
15
+ "lint-fix": "eslint . --fix",
16
+ "test": "npm install --no-save \"gl@^6.0.2\" && npm run lint && jest",
17
+ "jest": "jest",
18
+ "build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
19
+ "clean": "node ./scripts/clean.js",
20
+ "rebuild": "npm run clean && npm run build",
21
+ "build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
22
+ "build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
23
+ "build-extra": "cpx \"src/**/*.{scss,html,ico,jpg}\" lib/",
24
+ "build-webpack": "webpack --mode production --config ./webpack.config.production.js",
25
+ "build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
26
+ "watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
27
+ "watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
28
+ "watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
29
+ "watch-tsc": "tsc --watch --incremental",
30
+ "watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
31
+ "watch-extra": "cpx \"src/**/*.{scss,html,ico,jpg}\" lib/ --watch",
32
+ "watch-webpack": "webpack -w --mode development --stats minimal",
33
+ "watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
34
+ "watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
35
+ "serve": "http-server -p 1338 -g",
36
+ "model-server": "node lib/commonjs/servers/model/server.js",
37
+ "model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
38
+ "volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
39
+ "plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
40
+ "preversion": "npm run test",
41
+ "version": "npm run rebuild && cpx .npmignore lib/",
42
+ "postversion": "git push && git push --tags"
43
+ },
44
+ "files": [
45
+ "lib/",
46
+ "build/viewer/"
47
+ ],
48
+ "bin": {
49
+ "cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
50
+ "cifschema": "lib/commonjs/cli/cifschema/index.js",
51
+ "model-server": "lib/commonjs/servers/model/server.js",
52
+ "model-server-query": "lib/commonjs/servers/model/query.js",
53
+ "model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
54
+ "volume-server": "lib/commonjs/servers/volume/server.js",
55
+ "volume-server-query": "lib/commonjs/servers/volume/query.js",
56
+ "volume-server-pack": "lib/commonjs/servers/volume/pack.js"
57
+ },
58
+ "nodemonConfig": {
59
+ "ignoreRoot": [
60
+ "./node_modules",
61
+ ".git"
62
+ ],
63
+ "ignore": [],
64
+ "delay": "2500"
65
+ },
66
+ "jest": {
67
+ "moduleFileExtensions": [
68
+ "ts",
69
+ "js"
70
+ ],
71
+ "transform": {
72
+ "\\.ts$": "ts-jest"
73
+ },
74
+ "moduleDirectories": [
75
+ "node_modules",
76
+ "lib"
77
+ ],
78
+ "testEnvironmentOptions": {
79
+ "url": "http://localhost/"
80
+ },
81
+ "testRegex": "\\.spec\\.ts$"
82
+ },
83
+ "author": "Mol* Contributors",
84
+ "contributors": [
85
+ "Alexander Rose <alexander.rose@weirdbyte.de>",
86
+ "David Sehnal <david.sehnal@gmail.com>",
87
+ "Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
88
+ "Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
89
+ "Ludovic Autin <autin@scripps.edu>",
90
+ "Michal Malý <michal.maly@ibt.cas.cz>",
91
+ "Jiří Černý <jiri.cerny@ibt.cas.cz>",
92
+ "Panagiotis Tourlas <panagiot_tourlov@hotmail.com>",
93
+ "Adam Midlik <midlik@gmail.com>",
94
+ "Koya Sakuma <koya.sakuma.work@gmail.com>",
95
+ "Gianluca Tomasello <giagitom@gmail.com>",
96
+ "Ke Ma <mark.ma@rcsb.org>",
97
+ "Jason Pattle <jpattle@exscientia.co.uk>",
98
+ "David Williams <dwilliams@nobiastx.com>"
99
+ ],
100
+ "license": "MIT",
101
+ "devDependencies": {
102
+ "@graphql-codegen/add": "^4.0.0",
103
+ "@graphql-codegen/cli": "^3.0.0",
104
+ "@graphql-codegen/time": "^4.0.0",
105
+ "@graphql-codegen/typescript": "^3.0.0",
106
+ "@graphql-codegen/typescript-graphql-files-modules": "^2.2.1",
107
+ "@graphql-codegen/typescript-graphql-request": "^4.5.8",
108
+ "@graphql-codegen/typescript-operations": "^3.0.0",
109
+ "@types/cors": "^2.8.13",
110
+ "@types/gl": "^6.0.2",
111
+ "@types/jpeg-js": "^0.3.7",
112
+ "@types/pngjs": "^6.0.1",
113
+ "@types/jest": "^29.4.0",
114
+ "@types/react": "^18.0.27",
115
+ "@types/react-dom": "^18.0.10",
116
+ "@typescript-eslint/eslint-plugin": "^5.50.0",
117
+ "@typescript-eslint/parser": "^5.50.0",
118
+ "benchmark": "^2.1.4",
119
+ "concurrently": "^7.6.0",
120
+ "cpx2": "^4.2.0",
121
+ "crypto-browserify": "^3.12.0",
122
+ "css-loader": "^6.7.3",
123
+ "eslint": "^8.33.0",
124
+ "extra-watch-webpack-plugin": "^1.0.3",
125
+ "file-loader": "^6.2.0",
126
+ "fs-extra": "^11.1.0",
127
+ "graphql": "^16.6.0",
128
+ "http-server": "^14.1.1",
129
+ "jest": "^29.4.1",
130
+ "mini-css-extract-plugin": "^2.7.2",
131
+ "path-browserify": "^1.0.1",
132
+ "raw-loader": "^4.0.2",
133
+ "react": "^18.2.0",
134
+ "react-dom": "^18.2.0",
135
+ "sass": "^1.58.0",
136
+ "sass-loader": "^13.2.0",
137
+ "simple-git": "^3.16.0",
138
+ "stream-browserify": "^3.0.0",
139
+ "style-loader": "^3.3.1",
140
+ "ts-jest": "^29.0.5",
141
+ "typescript": "^4.9.5",
142
+ "webpack": "^5.75.0",
143
+ "webpack-cli": "^5.0.1"
144
+ },
145
+ "dependencies": {
146
+ "@types/argparse": "^2.0.10",
147
+ "@types/benchmark": "^2.1.2",
148
+ "@types/compression": "1.7.2",
149
+ "@types/express": "^4.17.17",
150
+ "@types/node": "^16.18.12",
151
+ "@types/node-fetch": "^2.6.2",
152
+ "@types/swagger-ui-dist": "3.30.1",
153
+ "argparse": "^2.0.1",
154
+ "body-parser": "^1.20.1",
155
+ "compression": "^1.7.4",
156
+ "cors": "^2.8.5",
157
+ "express": "^4.18.2",
158
+ "h264-mp4-encoder": "^1.0.12",
159
+ "immer": "^9.0.19",
160
+ "immutable": "^4.2.3",
161
+ "node-fetch": "^2.6.9",
162
+ "rxjs": "^7.8.0",
163
+ "swagger-ui-dist": "^4.15.5",
164
+ "tslib": "^2.5.0",
165
+ "util.promisify": "^1.1.1",
166
+ "xhr2": "^0.2.1"
167
+ },
168
+ "peerDependencies": {
169
+ "react": "^18.1.0 || ^17.0.2 || ^16.14.0",
170
+ "react-dom": "^18.1.0 || ^17.0.2 || ^16.14.0"
171
+ },
172
+ "optionalDependencies": {
173
+ "gl": "^6.0.2",
174
+ "jpeg-js": "^0.4.4",
175
+ "pngjs": "^6.0.0"
176
+ }
177
+ }