@molstudio/core 0.1.2 → 0.1.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.
package/dist/MolStudio.js CHANGED
@@ -74,7 +74,12 @@ export class MolStudio {
74
74
  static async create(target) {
75
75
  const spec = DefaultPluginSpec();
76
76
  // Mol*'s "auto" mode renders at 1x on mobile browsers, which blurs structures on high-DPI phones.
77
- spec.config = [...(spec.config ?? []), [PluginConfig.General.ResolutionMode, "native"]];
77
+ // Mol* refuses software WebGL by default; it is slow but renders in VMs, remote desktops and GPU-less CI.
78
+ spec.config = [
79
+ ...(spec.config ?? []),
80
+ [PluginConfig.General.ResolutionMode, "native"],
81
+ [PluginConfig.General.AllowMajorPerformanceCaveat, true],
82
+ ];
78
83
  const plugin = new PluginContext(spec);
79
84
  await plugin.init();
80
85
  // Only the pLDDT theme is needed; Mol*'s quality-assessment behaviour also pulls in its React UI.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molstudio/core",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "UI-less Mol* controller that exposes the viewer as objects and display operations.",
5
5
  "license": "MIT",
6
6
  "keywords": [