molstar 3.0.0-dev.3 → 3.0.0-dev.4

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 (379) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +187 -187
  3. package/build/viewer/embedded.html +43 -43
  4. package/build/viewer/index.html +95 -94
  5. package/build/viewer/molstar.css +1 -1
  6. package/build/viewer/molstar.js +1 -1
  7. package/lib/apps/docking-viewer/index.html +36 -36
  8. package/lib/apps/docking-viewer/viewport.js +2 -1
  9. package/lib/apps/viewer/embedded.html +43 -43
  10. package/lib/apps/viewer/index.html +95 -94
  11. package/lib/commonjs/apps/docking-viewer/viewport.js +2 -1
  12. package/lib/commonjs/examples/lighting/index.js +2 -1
  13. package/lib/commonjs/extensions/anvil/behavior.d.ts +3 -0
  14. package/lib/commonjs/extensions/anvil/representation.d.ts +13 -0
  15. package/lib/commonjs/extensions/cellpack/representation.d.ts +3 -0
  16. package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +9 -0
  17. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -0
  18. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +3 -0
  19. package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +15 -0
  20. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +6 -0
  21. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +3 -0
  22. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +3 -0
  23. package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +4 -0
  24. package/lib/commonjs/mol-canvas3d/passes/image.d.ts +3 -0
  25. package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +1 -0
  26. package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +4 -2
  27. package/lib/commonjs/mol-geo/geometry/base.d.ts +2 -0
  28. package/lib/commonjs/mol-geo/geometry/base.js +2 -0
  29. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -1
  30. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +4 -2
  31. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
  32. package/lib/commonjs/mol-geo/geometry/image/image.d.ts +1 -0
  33. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -0
  34. package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +1 -1
  35. package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +3 -0
  36. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +4 -2
  37. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +2 -1
  38. package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +3 -0
  39. package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +4 -2
  40. package/lib/commonjs/mol-geo/geometry/substance-data.js +3 -3
  41. package/lib/commonjs/mol-geo/geometry/text/text.d.ts +1 -0
  42. package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
  43. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -0
  44. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -2
  45. package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +31 -28
  46. package/lib/commonjs/mol-gl/renderable/cylinders.js +2 -2
  47. package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +1 -0
  48. package/lib/commonjs/mol-gl/renderable/image.d.ts +1 -0
  49. package/lib/commonjs/mol-gl/renderable/lines.d.ts +1 -0
  50. package/lib/commonjs/mol-gl/renderable/mesh.d.ts +28 -25
  51. package/lib/commonjs/mol-gl/renderable/mesh.js +2 -2
  52. package/lib/commonjs/mol-gl/renderable/points.d.ts +1 -0
  53. package/lib/commonjs/mol-gl/renderable/schema.d.ts +1 -0
  54. package/lib/commonjs/mol-gl/renderable/schema.js +3 -3
  55. package/lib/commonjs/mol-gl/renderable/spheres.d.ts +31 -28
  56. package/lib/commonjs/mol-gl/renderable/spheres.js +2 -2
  57. package/lib/commonjs/mol-gl/renderable/text.d.ts +1 -0
  58. package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +3 -0
  59. package/lib/commonjs/mol-gl/renderable/texture-mesh.js +1 -1
  60. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
  61. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
  62. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  63. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  64. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  65. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  66. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  67. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  68. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  69. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  70. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  71. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  72. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  73. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +1 -1
  74. package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +1 -1
  75. package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
  76. package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +1 -1
  77. package/lib/commonjs/mol-gl/shader/cylinders.frag.js +1 -1
  78. package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +1 -1
  79. package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
  80. package/lib/commonjs/mol-gl/shader/postprocessing.frag.d.ts +1 -1
  81. package/lib/commonjs/mol-gl/shader/postprocessing.frag.js +1 -1
  82. package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +1 -1
  83. package/lib/commonjs/mol-gl/shader/spheres.frag.js +1 -1
  84. package/lib/commonjs/mol-model/structure/model/model.js +7 -3
  85. package/lib/commonjs/mol-model-formats/shape/ply.d.ts +6 -0
  86. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +3 -0
  87. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +3 -0
  88. package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +9 -0
  89. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +12 -0
  90. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -0
  91. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  92. package/lib/commonjs/mol-plugin/commands.d.ts +3 -0
  93. package/lib/commonjs/mol-plugin/config.d.ts +1 -0
  94. package/lib/commonjs/mol-plugin/config.js +9 -3
  95. package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +9 -0
  96. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +2 -0
  97. package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +22 -0
  98. package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +3 -2
  99. package/lib/commonjs/mol-plugin-ui/controls/parameters.js +11 -6
  100. package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
  101. package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +8 -17
  102. package/lib/commonjs/mol-plugin-ui/plugin.d.ts +1 -1
  103. package/lib/commonjs/mol-plugin-ui/plugin.js +76 -10
  104. package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +3 -0
  105. package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -0
  106. package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +3 -0
  107. package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -0
  108. package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -0
  109. package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +3 -0
  110. package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +3 -0
  111. package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +3 -0
  112. package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +12 -0
  113. package/lib/commonjs/mol-repr/structure/params.d.ts +16 -0
  114. package/lib/commonjs/mol-repr/structure/registry.d.ts +35 -1
  115. package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +9 -0
  116. package/lib/commonjs/mol-repr/structure/representation/backbone.js +2 -1
  117. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +9 -0
  118. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.js +2 -1
  119. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +9 -0
  120. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.js +2 -1
  121. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +9 -0
  122. package/lib/commonjs/mol-repr/structure/representation/cartoon.js +2 -1
  123. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +9 -0
  124. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.js +2 -1
  125. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +9 -0
  126. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.js +2 -1
  127. package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
  128. package/lib/commonjs/mol-repr/structure/representation/label.d.ts +6 -3
  129. package/lib/commonjs/mol-repr/structure/representation/line.d.ts +3 -0
  130. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +9 -0
  131. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.js +2 -1
  132. package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +9 -0
  133. package/lib/commonjs/mol-repr/structure/representation/orientation.js +2 -1
  134. package/lib/commonjs/mol-repr/structure/representation/point.d.ts +3 -0
  135. package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +9 -0
  136. package/lib/commonjs/mol-repr/structure/representation/putty.js +2 -1
  137. package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +9 -0
  138. package/lib/commonjs/mol-repr/structure/representation/spacefill.js +2 -1
  139. package/lib/commonjs/mol-repr/structure/units-visual.d.ts +16 -0
  140. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +6 -0
  141. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
  142. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +6 -0
  143. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
  144. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +3 -0
  145. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +3 -0
  146. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +3 -0
  147. package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +1 -0
  148. package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +1 -0
  149. package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +6 -0
  150. package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +3 -0
  151. package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
  152. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -0
  153. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
  154. package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +3 -2
  155. package/lib/commonjs/mol-repr/structure/visual/label-text.js +2 -2
  156. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -0
  157. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
  158. package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +3 -0
  159. package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +3 -0
  160. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +3 -0
  161. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +6 -0
  162. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +6 -0
  163. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +3 -0
  164. package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +3 -0
  165. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +3 -0
  166. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +3 -0
  167. package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +3 -0
  168. package/lib/commonjs/mol-repr/volume/isosurface.d.ts +16 -0
  169. package/lib/commonjs/mol-repr/volume/isosurface.js +2 -1
  170. package/lib/commonjs/mol-repr/volume/registry.d.ts +5 -0
  171. package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -0
  172. package/lib/commonjs/mol-repr/volume/slice.d.ts +3 -0
  173. package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
  174. package/lib/commonjs/mol-theme/color/illustrative.d.ts +2 -0
  175. package/lib/commonjs/mol-theme/color/illustrative.js +2 -2
  176. package/lib/commonjs/mol-theme/color.d.ts +1 -0
  177. package/lib/commonjs/mol-util/material.d.ts +5 -1
  178. package/lib/commonjs/mol-util/material.js +9 -7
  179. package/lib/examples/alpha-orbitals/index.html +60 -60
  180. package/lib/examples/basic-wrapper/index.html +136 -136
  181. package/lib/examples/lighting/index.html +86 -86
  182. package/lib/examples/lighting/index.js +2 -1
  183. package/lib/examples/proteopedia-wrapper/index.html +235 -235
  184. package/lib/extensions/anvil/behavior.d.ts +3 -0
  185. package/lib/extensions/anvil/representation.d.ts +13 -0
  186. package/lib/extensions/cellpack/representation.d.ts +3 -0
  187. package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +9 -0
  188. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -0
  189. package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +3 -0
  190. package/lib/extensions/rcsb/validation-report/representation.d.ts +15 -0
  191. package/lib/mol-canvas3d/canvas3d.d.ts +6 -0
  192. package/lib/mol-canvas3d/helper/camera-helper.d.ts +3 -0
  193. package/lib/mol-canvas3d/helper/handle-helper.d.ts +3 -0
  194. package/lib/mol-canvas3d/helper/helper.d.ts +4 -0
  195. package/lib/mol-canvas3d/passes/image.d.ts +3 -0
  196. package/lib/mol-canvas3d/passes/postprocessing.d.ts +1 -0
  197. package/lib/mol-canvas3d/passes/postprocessing.js +4 -2
  198. package/lib/mol-geo/geometry/base.d.ts +2 -0
  199. package/lib/mol-geo/geometry/base.js +2 -0
  200. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +4 -1
  201. package/lib/mol-geo/geometry/cylinders/cylinders.js +4 -2
  202. package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
  203. package/lib/mol-geo/geometry/image/image.d.ts +1 -0
  204. package/lib/mol-geo/geometry/lines/lines.d.ts +1 -0
  205. package/lib/mol-geo/geometry/mesh/color-smoothing.js +1 -1
  206. package/lib/mol-geo/geometry/mesh/mesh.d.ts +3 -0
  207. package/lib/mol-geo/geometry/mesh/mesh.js +4 -2
  208. package/lib/mol-geo/geometry/points/points.d.ts +2 -1
  209. package/lib/mol-geo/geometry/spheres/spheres.d.ts +3 -0
  210. package/lib/mol-geo/geometry/spheres/spheres.js +4 -2
  211. package/lib/mol-geo/geometry/substance-data.js +3 -3
  212. package/lib/mol-geo/geometry/text/text.d.ts +1 -0
  213. package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
  214. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -0
  215. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -2
  216. package/lib/mol-gl/renderable/cylinders.d.ts +31 -28
  217. package/lib/mol-gl/renderable/cylinders.js +3 -3
  218. package/lib/mol-gl/renderable/direct-volume.d.ts +1 -0
  219. package/lib/mol-gl/renderable/image.d.ts +1 -0
  220. package/lib/mol-gl/renderable/lines.d.ts +1 -0
  221. package/lib/mol-gl/renderable/mesh.d.ts +28 -25
  222. package/lib/mol-gl/renderable/mesh.js +3 -3
  223. package/lib/mol-gl/renderable/points.d.ts +1 -0
  224. package/lib/mol-gl/renderable/schema.d.ts +1 -0
  225. package/lib/mol-gl/renderable/schema.js +3 -3
  226. package/lib/mol-gl/renderable/spheres.d.ts +31 -28
  227. package/lib/mol-gl/renderable/spheres.js +3 -3
  228. package/lib/mol-gl/renderable/text.d.ts +1 -0
  229. package/lib/mol-gl/renderable/texture-mesh.d.ts +3 -0
  230. package/lib/mol-gl/renderable/texture-mesh.js +1 -1
  231. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
  232. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
  233. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  234. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  235. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  236. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  237. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  238. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  239. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  240. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  241. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  242. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  243. package/lib/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  244. package/lib/mol-gl/shader/chunks/common.glsl.js +1 -1
  245. package/lib/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +1 -1
  246. package/lib/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
  247. package/lib/mol-gl/shader/cylinders.frag.d.ts +1 -1
  248. package/lib/mol-gl/shader/cylinders.frag.js +1 -1
  249. package/lib/mol-gl/shader/mesh.frag.d.ts +1 -1
  250. package/lib/mol-gl/shader/mesh.frag.js +1 -1
  251. package/lib/mol-gl/shader/postprocessing.frag.d.ts +1 -1
  252. package/lib/mol-gl/shader/postprocessing.frag.js +1 -1
  253. package/lib/mol-gl/shader/spheres.frag.d.ts +1 -1
  254. package/lib/mol-gl/shader/spheres.frag.js +1 -1
  255. package/lib/mol-model/structure/model/model.js +7 -3
  256. package/lib/mol-model-formats/shape/ply.d.ts +6 -0
  257. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +3 -0
  258. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +3 -0
  259. package/lib/mol-model-props/computed/representations/interactions.d.ts +9 -0
  260. package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +12 -0
  261. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -0
  262. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  263. package/lib/mol-plugin/commands.d.ts +3 -0
  264. package/lib/mol-plugin/config.d.ts +1 -0
  265. package/lib/mol-plugin/config.js +8 -3
  266. package/lib/mol-plugin/util/viewport-screenshot.d.ts +9 -0
  267. package/lib/mol-plugin/version.js +2 -2
  268. package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -0
  269. package/lib/mol-plugin-state/transforms/representation.d.ts +22 -0
  270. package/lib/mol-plugin-ui/controls/parameters.d.ts +3 -2
  271. package/lib/mol-plugin-ui/controls/parameters.js +12 -7
  272. package/lib/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
  273. package/lib/mol-plugin-ui/hooks/use-behavior.js +9 -18
  274. package/lib/mol-plugin-ui/plugin.d.ts +1 -1
  275. package/lib/mol-plugin-ui/plugin.js +76 -10
  276. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  277. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  278. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  279. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  280. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  281. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  282. package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -616
  283. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  284. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  285. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  286. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  287. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  288. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
  289. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  290. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  291. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  292. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  293. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  294. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  295. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  296. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  297. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  298. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  299. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  300. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  301. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  302. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  303. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  304. package/lib/mol-repr/shape/loci/angle.d.ts +3 -0
  305. package/lib/mol-repr/shape/loci/common.d.ts +1 -0
  306. package/lib/mol-repr/shape/loci/dihedral.d.ts +3 -0
  307. package/lib/mol-repr/shape/loci/distance.d.ts +1 -0
  308. package/lib/mol-repr/shape/loci/label.d.ts +1 -0
  309. package/lib/mol-repr/shape/loci/orientation.d.ts +3 -0
  310. package/lib/mol-repr/shape/loci/plane.d.ts +3 -0
  311. package/lib/mol-repr/shape/model/unitcell.d.ts +3 -0
  312. package/lib/mol-repr/structure/complex-visual.d.ts +12 -0
  313. package/lib/mol-repr/structure/params.d.ts +16 -0
  314. package/lib/mol-repr/structure/registry.d.ts +35 -1
  315. package/lib/mol-repr/structure/representation/backbone.d.ts +9 -0
  316. package/lib/mol-repr/structure/representation/backbone.js +2 -1
  317. package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +9 -0
  318. package/lib/mol-repr/structure/representation/ball-and-stick.js +2 -1
  319. package/lib/mol-repr/structure/representation/carbohydrate.d.ts +9 -0
  320. package/lib/mol-repr/structure/representation/carbohydrate.js +2 -1
  321. package/lib/mol-repr/structure/representation/cartoon.d.ts +9 -0
  322. package/lib/mol-repr/structure/representation/cartoon.js +2 -1
  323. package/lib/mol-repr/structure/representation/ellipsoid.d.ts +9 -0
  324. package/lib/mol-repr/structure/representation/ellipsoid.js +2 -1
  325. package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +9 -0
  326. package/lib/mol-repr/structure/representation/gaussian-surface.js +2 -1
  327. package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
  328. package/lib/mol-repr/structure/representation/label.d.ts +6 -3
  329. package/lib/mol-repr/structure/representation/line.d.ts +3 -0
  330. package/lib/mol-repr/structure/representation/molecular-surface.d.ts +9 -0
  331. package/lib/mol-repr/structure/representation/molecular-surface.js +2 -1
  332. package/lib/mol-repr/structure/representation/orientation.d.ts +9 -0
  333. package/lib/mol-repr/structure/representation/orientation.js +2 -1
  334. package/lib/mol-repr/structure/representation/point.d.ts +3 -0
  335. package/lib/mol-repr/structure/representation/putty.d.ts +9 -0
  336. package/lib/mol-repr/structure/representation/putty.js +2 -1
  337. package/lib/mol-repr/structure/representation/spacefill.d.ts +9 -0
  338. package/lib/mol-repr/structure/representation/spacefill.js +2 -1
  339. package/lib/mol-repr/structure/units-visual.d.ts +16 -0
  340. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +6 -0
  341. package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
  342. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +6 -0
  343. package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
  344. package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +3 -0
  345. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +3 -0
  346. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +3 -0
  347. package/lib/mol-repr/structure/visual/element-cross.d.ts +1 -0
  348. package/lib/mol-repr/structure/visual/element-point.d.ts +1 -0
  349. package/lib/mol-repr/structure/visual/element-sphere.d.ts +6 -0
  350. package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +3 -0
  351. package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
  352. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -0
  353. package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
  354. package/lib/mol-repr/structure/visual/label-text.d.ts +3 -2
  355. package/lib/mol-repr/structure/visual/label-text.js +2 -2
  356. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -0
  357. package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
  358. package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +3 -0
  359. package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +3 -0
  360. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +3 -0
  361. package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +6 -0
  362. package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +6 -0
  363. package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +3 -0
  364. package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +3 -0
  365. package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +3 -0
  366. package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +3 -0
  367. package/lib/mol-repr/volume/direct-volume.d.ts +3 -0
  368. package/lib/mol-repr/volume/isosurface.d.ts +16 -0
  369. package/lib/mol-repr/volume/isosurface.js +2 -1
  370. package/lib/mol-repr/volume/registry.d.ts +5 -0
  371. package/lib/mol-repr/volume/representation.d.ts +1 -0
  372. package/lib/mol-repr/volume/slice.d.ts +3 -0
  373. package/lib/mol-script/language/builder.d.ts +1 -0
  374. package/lib/mol-theme/color/illustrative.d.ts +2 -0
  375. package/lib/mol-theme/color/illustrative.js +2 -2
  376. package/lib/mol-theme/color.d.ts +1 -0
  377. package/lib/mol-util/material.d.ts +5 -1
  378. package/lib/mol-util/material.js +9 -7
  379. package/package.json +162 -160
@@ -1,419 +1,419 @@
1
- @use "sass:math";
2
-
3
- .msp-control-row {
4
- position: relative;
5
- height: $row-height;
6
- background: $default-background;
7
- margin-top: 1px;
8
-
9
- select, button, input[type=text] {
10
- @extend .msp-form-control;
11
- }
12
-
13
- button {
14
- @extend .msp-btn;
15
- @extend .msp-btn-block;
16
- }
17
-
18
- > span.msp-control-row-label, > button.msp-control-button-label {
19
- line-height: $row-height;
20
- display: block;
21
- width: $control-label-width + $control-spacing;
22
- text-align: right;
23
- padding: 0 $control-spacing;
24
- color: color-lower-contrast($font-color, 15%);
25
- overflow: hidden;
26
- text-overflow: ellipsis;
27
- white-space: nowrap;
28
- position: relative;
29
-
30
- @include non-selectable;
31
- }
32
-
33
- > button.msp-control-button-label {
34
- background: $default-background;
35
- cursor: pointer;
36
- }
37
-
38
- .msp-control-current {
39
- background: $default-background;
40
- }
41
-
42
- > div.msp-control-row-ctrl {
43
- position: absolute;
44
- left: $control-label-width + $control-spacing;
45
- top: 0;
46
- right: 0;
47
- bottom: 0;
48
- }
49
-
50
- > div {
51
- background: $msp-form-control-background;
52
- }
53
-
54
- > .msp-flex-row {
55
- background: $default-background;
56
- }
57
- }
58
-
59
- .msp-control-label-short {
60
- > span {
61
- width: $control-label-short-width + $control-spacing !important;
62
- }
63
-
64
- > div:nth-child(2) {
65
- left: $control-label-short-width + $control-spacing !important;
66
- }
67
- }
68
-
69
- .msp-control-col-2 {
70
- float: left;
71
- width: 50%;
72
- }
73
-
74
- .msp-control-group {
75
- position: relative;
76
- }
77
-
78
- .msp-toggle-button {
79
- .msp-icon {
80
- display: inline-block;
81
- margin-right: 6px;
82
- }
83
-
84
- > div > button:hover {
85
- border-color: color-increase-contrast($msp-form-control-background, 5%) !important;
86
- border: none;
87
- outline-offset: -1px !important;
88
- outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
89
- }
90
- }
91
-
92
- .msp-slider {
93
- > div:first-child {
94
- position: absolute;
95
- top: 0;
96
- left: 18px;
97
- bottom: 0;
98
- right: 62px;
99
- display: flex;
100
- }
101
- > div:last-child {
102
- position: absolute;
103
- height: $row-height;
104
- line-height: $row-height;
105
- text-align: center;
106
- right: 0;
107
- width: 50px;
108
- top: 0;
109
- bottom: 0;
110
- }
111
-
112
- input[type=text] {
113
- padding-right: 6px;
114
- padding-left: 4px;
115
- font-size: 80%;
116
- text-align: right;
117
- }
118
-
119
- // input[type=range] {
120
- // width: 100%;
121
- // }
122
- }
123
-
124
- .msp-slider2 {
125
- > div:first-child {
126
- position: absolute;
127
- height: $row-height;
128
- line-height: $row-height;
129
- text-align: center;
130
- left: 0;
131
- width: 25px;
132
- top: 0;
133
- bottom: 0;
134
- font-size: 80%;
135
- }
136
- > div:nth-child(2) {
137
- position: absolute;
138
- top: 0;
139
- left: 35px;
140
- bottom: 0;
141
- right: 37px;
142
- display: flex;
143
- }
144
- > div:last-child {
145
- position: absolute;
146
- height: $row-height;
147
- line-height: $row-height;
148
- text-align: center;
149
- right: 0;
150
- width: 25px;
151
- top: 0;
152
- bottom: 0;
153
- font-size: 80%;
154
- }
155
-
156
- input[type=text] {
157
- padding-right: 4px;
158
- padding-left: 4px;
159
- font-size: 80%;
160
- text-align: center;
161
- }
162
-
163
- // input[type=range] {
164
- // width: 100%;
165
- // }
166
- }
167
-
168
- .msp-toggle-color-picker {
169
- button {
170
- border: $control-spacing solid $msp-form-control-background !important;
171
- margin: 0;
172
- text-align: center;
173
- padding-right: $control-spacing;
174
- padding-left: $control-spacing;
175
-
176
- &:hover {
177
- border-color: color-increase-contrast($msp-form-control-background, 5%) !important;
178
- border: none;
179
- outline-offset: -1px !important;
180
- outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
181
- }
182
- }
183
-
184
- .msp-color-picker {
185
- position: absolute;
186
- z-index: 100000;
187
- background: $default-background;
188
- border-top: 1px solid $default-background;
189
- padding-bottom: math.div($control-spacing, 2);
190
- width: 100%;
191
-
192
- // input[type=text] {
193
- // background: $msp-form-control-background !important;
194
- // }
195
- }
196
- }
197
-
198
- .msp-toggle-color-picker-above {
199
- .msp-color-picker {
200
- top: -2 * 32px - 16px - math.div($control-spacing, 2);
201
- height: 2 * 32px + 16px + math.div($control-spacing, 2);
202
- }
203
- }
204
-
205
- .msp-toggle-color-picker-below {
206
- .msp-color-picker {
207
- top: $row-height;
208
- height: 2 * 32px + 16px;
209
- }
210
- }
211
-
212
- .msp-control-offset {
213
- padding-left: $control-spacing;
214
- }
215
-
216
- .msp-accent-offset {
217
- padding-left: 1px;
218
- margin-left: $control-spacing - 2;
219
- border-left: 2px solid $color-accent-orange;
220
- }
221
-
222
- // .msp-accent-offset-right {
223
- // margin-left: $control-spacing;
224
- // padding-right: 1px;
225
- // border-right: 2px solid $color-accent-orange;
226
- // }
227
-
228
- .msp-control-group-wrapper {
229
- //border-left-width: math.div($control-spacing, 2);
230
- //border-left-style: solid;
231
- //border-left-color: color-increase-contrast($default-background, 10%);
232
-
233
- margin-bottom: 0px;
234
- margin-top: 1px;
235
- }
236
-
237
- // TODO : get rid of the important
238
- .msp-control-group-header {
239
- background: $default-background;
240
- > button, div {
241
- padding-left: 4px; // math.div($control-spacing, 2) !important;
242
- text-align: left;
243
- height: 24px !important;
244
- line-height: 24px !important;
245
- font-size: 85% !important;
246
- background: $default-background !important;
247
- color: color-lower-contrast($font-color, 15%);
248
- }
249
- .msp-icon {
250
- height: 24px !important;
251
- line-height: 24px !important;
252
- }
253
- > span {
254
- padding-left: math.div($control-spacing, 2);
255
- line-height: math.div(2 * $row-height, 3);
256
- font-size: 70%;
257
- background: $default-background;
258
- color: color-lower-contrast($font-color, 15%);
259
- }
260
- }
261
-
262
- .msp-control-current {
263
- background: $default-background;
264
- }
265
-
266
- .msp-control-group-footer {
267
- background: color-increase-contrast($default-background, 5%);
268
- height: math.div($control-spacing, 2);
269
- font-size: 1px;
270
- margin-top: 1px;
271
- }
272
-
273
- .msp-control-group-expander {
274
- display: block;
275
- position: absolute;
276
- line-height: $row-height;
277
- padding: 0;
278
- left: 0;
279
- top: 0;
280
- width: $control-label-width + $control-spacing;
281
- text-align: left;
282
- background: transparent;
283
-
284
- .msp-icon {
285
- line-height: $row-height - 3;
286
- width: $row-height - 1;
287
- text-align: center;
288
- // display: inline-block;
289
- font-size: 100%;
290
- }
291
- }
292
-
293
- .msp-plugin-layout_controls {
294
- position: absolute;
295
- left: $control-spacing;
296
- top: $control-spacing;
297
- }
298
-
299
- .msp-plugin-layout_controls > button:first-child {
300
- margin-right: 6px;
301
- }
302
-
303
- .msp-empty-control {
304
- display: none;
305
- }
306
-
307
- .msp-control .msp-btn-block {
308
- margin-bottom: 0px;
309
- margin-top: 0px;
310
- }
311
-
312
- .msp-row-text {
313
- height: $row-height;
314
- position: relative;
315
- background: $default-background;
316
- margin-top: 1px;
317
-
318
- > div {
319
- line-height: $row-height;
320
- text-align: center;
321
- color: color-lower-contrast($font-color, 15%);
322
- }
323
- }
324
-
325
- .msp-help span {
326
- display: none;
327
- }
328
-
329
- .msp-help:hover span {
330
- display: inline-block;
331
- background: linear-gradient($default-background, change-color($default-background, $alpha: 0.8));
332
- }
333
-
334
- .msp-help-text {
335
- position: relative;
336
- background: $default-background;
337
- margin-top: 1px;
338
-
339
- > div {
340
- padding: (math.div($control-spacing, 2)) $control-spacing;
341
- text-align: left;
342
- color: color-lower-contrast($font-color, 15%);
343
- }
344
- }
345
-
346
- .msp-help-description {
347
- font-style: italic;
348
- }
349
-
350
- .msp-help-legend {
351
- padding-top: $control-spacing;
352
- }
353
-
354
- .msp-scale-legend {
355
- > div {
356
- width: 100%;
357
- height: $control-spacing * 3;
358
-
359
- > span {
360
- padding: math.div($control-spacing, 2);
361
- color: white;
362
- font-weight: bold;
363
- background-color: rgba(0, 0, 0, 0.2);
364
- }
365
- }
366
- }
367
-
368
- .msp-table-legend {
369
- > div {
370
- // min-width: 60px;
371
- margin-right: math.div($control-spacing, 2);
372
- display: inline-flex;
373
-
374
- .msp-table-legend-color {
375
- width: $control-spacing * 3;
376
- height: $control-spacing * 2;
377
- }
378
-
379
- .msp-table-legend-text {
380
- margin: 0 (math.div($control-spacing, 2));
381
- }
382
- }
383
- }
384
-
385
- .msp-image-preview {
386
- position: relative;
387
- background: $default-background;
388
- margin-top: 1px;
389
- padding: $control-spacing;
390
-
391
- canvas {
392
- @include user-select(none);
393
- }
394
-
395
- > span {
396
- margin-top: 6px;
397
- display: block;
398
- text-align: center;
399
- font-size: 80%;
400
- line-height: 15px;
401
- }
402
- }
403
-
404
- .msp-copy-image-wrapper {
405
- position: relative;
406
-
407
- div {
408
- font-weight: bold;
409
- padding: 3px;
410
- margin: 1px 0;
411
- width: 100%;
412
- background: $msp-form-control-background;
413
- text-align: center;
414
- }
415
-
416
- img {
417
- margin-top: 1px;
418
- }
1
+ @use "sass:math";
2
+
3
+ .msp-control-row {
4
+ position: relative;
5
+ height: $row-height;
6
+ background: $default-background;
7
+ margin-top: 1px;
8
+
9
+ select, button, input[type=text] {
10
+ @extend .msp-form-control;
11
+ }
12
+
13
+ button {
14
+ @extend .msp-btn;
15
+ @extend .msp-btn-block;
16
+ }
17
+
18
+ > span.msp-control-row-label, > button.msp-control-button-label {
19
+ line-height: $row-height;
20
+ display: block;
21
+ width: $control-label-width + $control-spacing;
22
+ text-align: right;
23
+ padding: 0 $control-spacing;
24
+ color: color-lower-contrast($font-color, 15%);
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ position: relative;
29
+
30
+ @include non-selectable;
31
+ }
32
+
33
+ > button.msp-control-button-label {
34
+ background: $default-background;
35
+ cursor: pointer;
36
+ }
37
+
38
+ .msp-control-current {
39
+ background: $default-background;
40
+ }
41
+
42
+ > div.msp-control-row-ctrl {
43
+ position: absolute;
44
+ left: $control-label-width + $control-spacing;
45
+ top: 0;
46
+ right: 0;
47
+ bottom: 0;
48
+ }
49
+
50
+ > div {
51
+ background: $msp-form-control-background;
52
+ }
53
+
54
+ > .msp-flex-row {
55
+ background: $default-background;
56
+ }
57
+ }
58
+
59
+ .msp-control-label-short {
60
+ > span {
61
+ width: $control-label-short-width + $control-spacing !important;
62
+ }
63
+
64
+ > div:nth-child(2) {
65
+ left: $control-label-short-width + $control-spacing !important;
66
+ }
67
+ }
68
+
69
+ .msp-control-col-2 {
70
+ float: left;
71
+ width: 50%;
72
+ }
73
+
74
+ .msp-control-group {
75
+ position: relative;
76
+ }
77
+
78
+ .msp-toggle-button {
79
+ .msp-icon {
80
+ display: inline-block;
81
+ margin-right: 6px;
82
+ }
83
+
84
+ > div > button:hover {
85
+ border-color: color-increase-contrast($msp-form-control-background, 5%) !important;
86
+ border: none;
87
+ outline-offset: -1px !important;
88
+ outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
89
+ }
90
+ }
91
+
92
+ .msp-slider {
93
+ > div:first-child {
94
+ position: absolute;
95
+ top: 0;
96
+ left: 18px;
97
+ bottom: 0;
98
+ right: 62px;
99
+ display: flex;
100
+ }
101
+ > div:last-child {
102
+ position: absolute;
103
+ height: $row-height;
104
+ line-height: $row-height;
105
+ text-align: center;
106
+ right: 0;
107
+ width: 50px;
108
+ top: 0;
109
+ bottom: 0;
110
+ }
111
+
112
+ input[type=text] {
113
+ padding-right: 6px;
114
+ padding-left: 4px;
115
+ font-size: 80%;
116
+ text-align: right;
117
+ }
118
+
119
+ // input[type=range] {
120
+ // width: 100%;
121
+ // }
122
+ }
123
+
124
+ .msp-slider2 {
125
+ > div:first-child {
126
+ position: absolute;
127
+ height: $row-height;
128
+ line-height: $row-height;
129
+ text-align: center;
130
+ left: 0;
131
+ width: 25px;
132
+ top: 0;
133
+ bottom: 0;
134
+ font-size: 80%;
135
+ }
136
+ > div:nth-child(2) {
137
+ position: absolute;
138
+ top: 0;
139
+ left: 35px;
140
+ bottom: 0;
141
+ right: 37px;
142
+ display: flex;
143
+ }
144
+ > div:last-child {
145
+ position: absolute;
146
+ height: $row-height;
147
+ line-height: $row-height;
148
+ text-align: center;
149
+ right: 0;
150
+ width: 25px;
151
+ top: 0;
152
+ bottom: 0;
153
+ font-size: 80%;
154
+ }
155
+
156
+ input[type=text] {
157
+ padding-right: 4px;
158
+ padding-left: 4px;
159
+ font-size: 80%;
160
+ text-align: center;
161
+ }
162
+
163
+ // input[type=range] {
164
+ // width: 100%;
165
+ // }
166
+ }
167
+
168
+ .msp-toggle-color-picker {
169
+ button {
170
+ border: $control-spacing solid $msp-form-control-background !important;
171
+ margin: 0;
172
+ text-align: center;
173
+ padding-right: $control-spacing;
174
+ padding-left: $control-spacing;
175
+
176
+ &:hover {
177
+ border-color: color-increase-contrast($msp-form-control-background, 5%) !important;
178
+ border: none;
179
+ outline-offset: -1px !important;
180
+ outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
181
+ }
182
+ }
183
+
184
+ .msp-color-picker {
185
+ position: absolute;
186
+ z-index: 100000;
187
+ background: $default-background;
188
+ border-top: 1px solid $default-background;
189
+ padding-bottom: math.div($control-spacing, 2);
190
+ width: 100%;
191
+
192
+ // input[type=text] {
193
+ // background: $msp-form-control-background !important;
194
+ // }
195
+ }
196
+ }
197
+
198
+ .msp-toggle-color-picker-above {
199
+ .msp-color-picker {
200
+ top: -2 * 32px - 16px - math.div($control-spacing, 2);
201
+ height: 2 * 32px + 16px + math.div($control-spacing, 2);
202
+ }
203
+ }
204
+
205
+ .msp-toggle-color-picker-below {
206
+ .msp-color-picker {
207
+ top: $row-height;
208
+ height: 2 * 32px + 16px;
209
+ }
210
+ }
211
+
212
+ .msp-control-offset {
213
+ padding-left: $control-spacing;
214
+ }
215
+
216
+ .msp-accent-offset {
217
+ padding-left: 1px;
218
+ margin-left: $control-spacing - 2;
219
+ border-left: 2px solid $color-accent-orange;
220
+ }
221
+
222
+ // .msp-accent-offset-right {
223
+ // margin-left: $control-spacing;
224
+ // padding-right: 1px;
225
+ // border-right: 2px solid $color-accent-orange;
226
+ // }
227
+
228
+ .msp-control-group-wrapper {
229
+ //border-left-width: math.div($control-spacing, 2);
230
+ //border-left-style: solid;
231
+ //border-left-color: color-increase-contrast($default-background, 10%);
232
+
233
+ margin-bottom: 0px;
234
+ margin-top: 1px;
235
+ }
236
+
237
+ // TODO : get rid of the important
238
+ .msp-control-group-header {
239
+ background: $default-background;
240
+ > button, div {
241
+ padding-left: 4px; // math.div($control-spacing, 2) !important;
242
+ text-align: left;
243
+ height: 24px !important;
244
+ line-height: 24px !important;
245
+ font-size: 85% !important;
246
+ background: $default-background !important;
247
+ color: color-lower-contrast($font-color, 15%);
248
+ }
249
+ .msp-icon {
250
+ height: 24px !important;
251
+ line-height: 24px !important;
252
+ }
253
+ > span {
254
+ padding-left: math.div($control-spacing, 2);
255
+ line-height: math.div(2 * $row-height, 3);
256
+ font-size: 70%;
257
+ background: $default-background;
258
+ color: color-lower-contrast($font-color, 15%);
259
+ }
260
+ }
261
+
262
+ .msp-control-current {
263
+ background: $default-background;
264
+ }
265
+
266
+ .msp-control-group-footer {
267
+ background: color-increase-contrast($default-background, 5%);
268
+ height: math.div($control-spacing, 2);
269
+ font-size: 1px;
270
+ margin-top: 1px;
271
+ }
272
+
273
+ .msp-control-group-expander {
274
+ display: block;
275
+ position: absolute;
276
+ line-height: $row-height;
277
+ padding: 0;
278
+ left: 0;
279
+ top: 0;
280
+ width: $control-label-width + $control-spacing;
281
+ text-align: left;
282
+ background: transparent;
283
+
284
+ .msp-icon {
285
+ line-height: $row-height - 3;
286
+ width: $row-height - 1;
287
+ text-align: center;
288
+ // display: inline-block;
289
+ font-size: 100%;
290
+ }
291
+ }
292
+
293
+ .msp-plugin-layout_controls {
294
+ position: absolute;
295
+ left: $control-spacing;
296
+ top: $control-spacing;
297
+ }
298
+
299
+ .msp-plugin-layout_controls > button:first-child {
300
+ margin-right: 6px;
301
+ }
302
+
303
+ .msp-empty-control {
304
+ display: none;
305
+ }
306
+
307
+ .msp-control .msp-btn-block {
308
+ margin-bottom: 0px;
309
+ margin-top: 0px;
310
+ }
311
+
312
+ .msp-row-text {
313
+ height: $row-height;
314
+ position: relative;
315
+ background: $default-background;
316
+ margin-top: 1px;
317
+
318
+ > div {
319
+ line-height: $row-height;
320
+ text-align: center;
321
+ color: color-lower-contrast($font-color, 15%);
322
+ }
323
+ }
324
+
325
+ .msp-help span {
326
+ display: none;
327
+ }
328
+
329
+ .msp-help:hover span {
330
+ display: inline-block;
331
+ background: linear-gradient($default-background, change-color($default-background, $alpha: 0.8));
332
+ }
333
+
334
+ .msp-help-text {
335
+ position: relative;
336
+ background: $default-background;
337
+ margin-top: 1px;
338
+
339
+ > div {
340
+ padding: (math.div($control-spacing, 2)) $control-spacing;
341
+ text-align: left;
342
+ color: color-lower-contrast($font-color, 15%);
343
+ }
344
+ }
345
+
346
+ .msp-help-description {
347
+ font-style: italic;
348
+ }
349
+
350
+ .msp-help-legend {
351
+ padding-top: $control-spacing;
352
+ }
353
+
354
+ .msp-scale-legend {
355
+ > div {
356
+ width: 100%;
357
+ height: $control-spacing * 3;
358
+
359
+ > span {
360
+ padding: math.div($control-spacing, 2);
361
+ color: white;
362
+ font-weight: bold;
363
+ background-color: rgba(0, 0, 0, 0.2);
364
+ }
365
+ }
366
+ }
367
+
368
+ .msp-table-legend {
369
+ > div {
370
+ // min-width: 60px;
371
+ margin-right: math.div($control-spacing, 2);
372
+ display: inline-flex;
373
+
374
+ .msp-table-legend-color {
375
+ width: $control-spacing * 3;
376
+ height: $control-spacing * 2;
377
+ }
378
+
379
+ .msp-table-legend-text {
380
+ margin: 0 (math.div($control-spacing, 2));
381
+ }
382
+ }
383
+ }
384
+
385
+ .msp-image-preview {
386
+ position: relative;
387
+ background: $default-background;
388
+ margin-top: 1px;
389
+ padding: $control-spacing;
390
+
391
+ canvas {
392
+ @include user-select(none);
393
+ }
394
+
395
+ > span {
396
+ margin-top: 6px;
397
+ display: block;
398
+ text-align: center;
399
+ font-size: 80%;
400
+ line-height: 15px;
401
+ }
402
+ }
403
+
404
+ .msp-copy-image-wrapper {
405
+ position: relative;
406
+
407
+ div {
408
+ font-weight: bold;
409
+ padding: 3px;
410
+ margin: 1px 0;
411
+ width: 100%;
412
+ background: $msp-form-control-background;
413
+ text-align: center;
414
+ }
415
+
416
+ img {
417
+ margin-top: 1px;
418
+ }
419
419
  }