Skip to content
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

chore(graph-layers): Restore pack-images script #59

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

donmccurdy
Copy link
Collaborator

@donmccurdy donmccurdy commented Apr 15, 2024

The graph-layers module uses a script to generate the marker image spritesheet, which needed fixes since the repo has been migrated to TypeScript. I've also fixed the ESLint and TSC warnings for the script in the process. The get-pixels / save-pixels packages have been unmaintained for a few years now, so I've replaced both with ndarray-pixels. (Disclaimer: I wrote 'ndarray-pixels' based on a combination of the older two).

As a side effect of using async/await, markers in the sprite sheet are now sorted alphabetically.

@donmccurdy donmccurdy changed the title chore(graph-layers): Clean up lint and tsc errors for pack-images script chore(graph-layers): Restore pack-images script Apr 15, 2024
@donmccurdy donmccurdy requested a review from dylans April 15, 2024 14:44
Copy link
Contributor

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat. This should almost be its own module, rather than hidden in graph-layers...

Base automatically changed from donmccurdy/chore-test-naming to master April 15, 2024 15:23
@donmccurdy donmccurdy force-pushed the chore/graph-layers-pack-markers-cleanup branch from ae61618 to c6d9d65 Compare April 15, 2024 16:55
@donmccurdy
Copy link
Collaborator Author

Merging for now, but maybe the top-level scripts/ folder? Similar to what deck.gl appears to be doing. I think the expectation then would be any script dependencies are added to the workspace as devDependencies.

@donmccurdy donmccurdy merged commit 7849819 into master Apr 15, 2024
1 check passed
@donmccurdy donmccurdy deleted the chore/graph-layers-pack-markers-cleanup branch April 15, 2024 16:57
@ibgreen
Copy link
Contributor

ibgreen commented Apr 15, 2024

I was thinking that a MarkerLayer together with this type tooling is much more generic than a graph-layers module.

There are probably also layers in editable-layers module that are quite generic.

They could for instance be moved to the layers module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants