-
Notifications
You must be signed in to change notification settings - Fork 3
Enable project sharing with Cosmograph app via new export API #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
538b567
Upgrade @cosmograph/cosmograph to 2.0.0-beta.18
Stukova 2ade46b
Add API key support for Cosmograph (wip)
Stukova 1fe984f
Enhance error handling and improve API key management
Stukova dae2e58
Upgrade @cosmograph/cosmograph to 2.0.0-beta.20
Stukova 86039aa
Implement caching for Arrow table conversion
Stukova a2b4956
Upgrade to Cosmograph v2.0.0-beta.24, refactor project export flow
Stukova 3aa1fef
Replace rectangular selection with polygonal selection
Stukova 2b15631
Move fitViewButton and selectAreaButton to left top corner
Stukova d44e694
Reorganize legend layout to match Cosmograph app
Stukova d75e7cc
Upgrade to Cosmograph v2.0.0-beta.25
Stukova ac17c72
Reduce export logging and show project URL
Stukova 7f05523
Add API key and export project documentation
Stukova f4710aa
Improve error handling and validation across widget module
Stukova ce5cd3a
Fix indentation and enable additional linting rules
Stukova 143e372
Add null safety and input validation
Stukova 792a501
Pre-release 0.0.47b0
Stukova cdb36e7
Upgrade cosmograph widget with enhanced labeling, selection, and disp…
Stukova 47e4ad1
Upgrade to Cosmograph v2.0.0-beta.26
Stukova 33bfd94
Handle undefined values in config property filtering
Stukova 2d87edd
Release 1.0.0b0
Stukova 58a9b4e
Simplify cosmo() API and add parameter docstrings
Stukova 25c2d0c
Update dependencies and disable unsupported ingress test
Stukova 56b41a1
Add Python 3.12 development environment configuration
Stukova 2f1620e
Reorganize control buttons layout and fix zoom button styling
Stukova 1f22c55
Support both string and string[] for linkTargetBy property
Stukova 7e6fe61
Implement link timeline support
Stukova bdf37ff
Add loading indicator for Cosmograph widget initialization
Stukova 5bc922a
Add settings panel and point info panel UI components
Stukova 4d6ae81
Set scale_points_on_zoom to true by default
Stukova b854eca
Release 1.0.0b1
Stukova e459fb8
Set show_hovered_point_label to true by default
Stukova 7b58848
Test export_project_by_name in Mobiuse example
Stukova bf61735
Add debug mode and fix phantom column refs in config
Stukova 294b93b
Release 0.5.0b0
Stukova 4d8bccb
Release 0.5.0
rokotyan ea8f966
Upgrade to Cosmograph v2.0.0-beta.28
Stukova 658a6e8
Release 0.5.1
Stukova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,3 +121,4 @@ node_modules | |
| meta.json | ||
|
|
||
| cosmograph/widget/static | ||
| .cosmograph_cache | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| """Configuration settings for cosmograph.""" | ||
|
|
||
| # Global API key variable | ||
| _GLOBAL_API_KEY = None | ||
| _COSMOGRAPH_INSTANCES = set() | ||
|
|
||
|
|
||
| def set_api_key(api_key: str) -> None: | ||
| """ | ||
| Set a global API key to be used by all cosmograph instances. | ||
|
|
||
| Args: | ||
| api_key: The API key to use | ||
| """ | ||
| global _GLOBAL_API_KEY | ||
| _GLOBAL_API_KEY = api_key | ||
|
|
||
| # Update API key for all existing instances | ||
| for instance in _COSMOGRAPH_INSTANCES: | ||
| instance.api_key = api_key | ||
|
|
||
|
|
||
| def get_api_key() -> str: | ||
| """ | ||
| Get the current global API key. | ||
|
|
||
| Returns: | ||
| The current global API key, or None if not set | ||
| """ | ||
| return _GLOBAL_API_KEY | ||
|
|
||
|
|
||
| def register_instance(instance) -> None: | ||
| """ | ||
| Register a cosmograph instance to receive API key updates. | ||
|
|
||
| Args: | ||
| instance: A Cosmograph instance | ||
| """ | ||
| _COSMOGRAPH_INSTANCES.add(instance) | ||
|
|
||
|
|
||
| def unregister_instance(instance) -> None: | ||
| """ | ||
| Unregister a cosmograph instance. | ||
|
|
||
| Args: | ||
| instance: A Cosmograph instance | ||
| """ | ||
| if instance in _COSMOGRAPH_INSTANCES: | ||
| _COSMOGRAPH_INSTANCES.remove(instance) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.