126 Commits

Author SHA1 Message Date
David Koes
c26e390544 version bump 2026-05-22 11:33:04 -04:00
David Koes
b65f8e62d3 version bump 2026-01-21 17:55:44 -05:00
David Koes
5f28e11ebf version bump 2025-09-27 13:27:48 -04:00
David Koes
77c5fbdc32 version bump 2025-07-30 12:18:42 -04:00
David Koes
f393cdeb4f version bump 2025-06-26 11:23:11 -04:00
David Koes
a3da5cd3fb switch to jsdelivr since cdnjs stopped updating months ago apparently 2025-06-03 15:25:17 -04:00
David Koes
1789c232ed version bump 2025-06-02 19:07:30 -04:00
David Koes
4e10aca789 support options in py3dmol for view with data argument 2025-01-23 21:49:46 -05:00
David Koes
6c1f0d44bf version bump 2024-11-07 22:29:45 -05:00
David Koes
2ef98fd973 version bump 2024-11-06 15:21:43 -05:00
David Koes
3de1fccd38 version bump 2024-09-03 18:49:49 -04:00
David Koes
0c9a67115b Documentatoin tweak 2024-07-31 16:52:40 -04:00
David Koes
c77554e1cd py3dmol update 2024-07-18 07:45:43 -04:00
David Koes
a1125e50f6 bump pymol3d 2024-07-06 22:27:54 -04:00
David Koes
ecd37d4dfb update versions 2024-06-21 20:49:33 +01:00
David Koes
f4a00f8414 talk 2024-03-13 23:44:31 -07:00
David Koes
dbf2efd524 Various improvements
py3dmol.view takes format argument
can pass selection for volumetricrender/isosurfaces
gradient documentation
onesided surface option
custom linear builtin
2024-03-13 21:20:25 -07:00
David Koes
8549c59c62 bump py3dmol 2024-03-12 08:28:10 -04:00
David Koes
afce01857b rm ext inst 2024-02-06 11:31:36 -05:00
David Koes
e71629ba97 Fix for Issue #743
The cartoon code was assuming DNA backbone atoms would always have a
certain order.  Now can deal with a partial residue at start.
2024-01-13 14:47:27 -05:00
David Koes
bcf96d8cbf version bump 2023-10-23 08:09:02 -04:00
David Koes
4d264473ec Fix #721
Object intersection testing was completly broken for viewer grids.
It is less so now.
2023-09-20 12:15:42 -04:00
Adithya Krishna
43bf4c0aa3 Revert Changes to Py File
Signed-off-by: Adithya Krishna <adikrish@redhat.com>
2023-06-13 07:27:09 +00:00
Adithya Krishna
50bdb229dc Updated http links to https
Signed-off-by: Adithya Krishna <adikrish@redhat.com>
2023-06-13 07:27:09 +00:00
David Koes
381da4b862 Big fixes.
Be more tolerant to losing WebGL context in the middle of rendering
(happens when loading a page with many contexts).   Some more types.
2023-06-08 19:57:47 -04:00
David Koes
50a91e55a4 Version bump 2023-05-13 18:39:36 -04:00
David Koes
0153c320fd Issue #678
write_html in py3Dmol for turning viewer into webpage
2023-05-13 17:28:23 -04:00
David Koes
6cfae963f3 Test fix and debug output removal 2023-02-14 16:23:26 -05:00
David Koes
57bcb83e99 py3dmol improvements
Don't use the CDN minified URL (it is broken for surfaces).
Inspired by Issue #645 add print_to_console function prefix.
2023-02-10 14:40:00 -05:00
David Koes
2dd2b37ca9 Update reference images because PDB entry was changed. 2023-02-08 09:54:26 -05:00
David Koes
f3caa78059 update py3dmol js url 2023-02-06 21:22:03 -05:00
David Koes
5c0529febf assignBonds across replicated unit cells
Issue #642
2023-02-06 11:24:18 -05:00
David Koes
a0528e143d Resore jquery for ui 2023-01-12 08:54:19 -05:00
David Koes
0c4625fade Fix for apng 2023-01-04 19:51:32 -05:00
David Koes
4705fc0747 Fix for py3Dmol not working in Jupyter.
Need to workaround requirejs amd loading.
2023-01-04 19:47:44 -05:00
David Koes
1f67c9ee4f Fix py3Dmol
I thought I had checked it.. I thought wrong.  No longer uses jquery.
2023-01-04 14:21:51 -05:00
dkoes
024c3cb209 Repository reorg
Ryan Guild preferred excessively elaborate file hierarchies.  Since he
has abandoned the project we're going to go with what makes sense to me
(and is arguably more correct - 3dmol is the only true package, so why
factor it into a packages directory).

Clean up some other issues with typescript and imports.
2022-12-24 22:49:53 -05:00
Ryan D. Guild
79d8a9bc89 rewrote docs to workspaces based config 2022-07-29 11:05:43 -04:00
dkoes
9bd856d543 More flexible width/height; avoid getdoc
colab seems to call getdoc on the object, should ignore it.  Hopefully
this doesn't break things.
2022-01-28 11:25:13 -05:00
dkoes
59260ea086 Update saveanim
to not set local 3dmol.js path.
2022-01-22 11:51:35 -05:00
dkoes
7a4fa760eb Changes to build system.
Disable amd when importing external sources so they populate the
namespace as expected.  Otherwise we lose access to them in request
based projects (like jupyter).

I'm pulling in UPNG now to support creation of animated pngs in py3Dmol.
2022-01-22 11:37:23 -05:00
dkoes
6618f55121 Refine download syntax. Rearrange py3dmol args
While try to infer type of query.  Make query the first argument of
py3Dmol.view so you can do py3Dmol.view("1ycr")

Package updates for apng
2022-01-21 18:01:57 -05:00
dkoes
17d06bdc5a fix surface issue 2022-01-21 13:03:29 -05:00
David Koes
b7bc1d7a07 Implement support for array coordinates
Can provide an array (TxNx3) of coordinates.
py3Dmol will convert arrays/tensors to javascript lists.
2021-09-08 10:10:16 -04:00
dkoes
f4dbb3349e Don't include large notebook in npm 2021-08-13 11:39:19 -04:00
David Koes
f8be74065c Address Issue #526
Provide metadata argument to publish_display_data since aparently this
is required in some contexts (even if it is blank).

Also, set __version__ now.
2021-07-20 14:36:20 -04:00
dkoes
5d032de9fd Initialize screenOffset to avoid warning message.
Issue #518 and Pull #522
2021-06-01 22:06:11 -04:00
dkoes
53d4556c5d Fix jshint suppression.
Had the wrong syntax and thought a quick build would flag problems.
2020-12-21 17:41:35 -05:00
dkoes
fb4f839b9c Support string callbacks.
This is for py3Dmol.  A Javascript function can be provided as string to
a click or hover callback.  This involves the use of the evil eval, but
I see no alternative.
2020-12-21 17:31:01 -05:00
dkoes
a3be0931aa Fix bug with initial styling
Was happening after everything else instead of before.
2020-11-23 16:25:26 -05:00