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

Charts port to ESM #496

Merged
merged 24 commits into from
Mar 31, 2019
Merged

Charts port to ESM #496

merged 24 commits into from
Mar 31, 2019

Conversation

mattnotmitt
Copy link
Collaborator

@mattnotmitt mattnotmitt commented Feb 23, 2019

At long last, we will have #143 in CyberChef! I intend to port the operations already written first, and I may take a look at the extras that were suggested in the old pull request once those are done.

  • Heatmap Chart
  • Hex Density chart
  • Scatter chart
  • Series chart

@CLAassistant
Copy link

CLAassistant commented Feb 23, 2019

CLA assistant check
All committers have signed the CLA.

@mattnotmitt
Copy link
Collaborator Author

Hmm, seems I can't set this PR to be ready for review until @tlwr signs the new CLA. Would you mind doing so Toby?

@tlwr
Copy link
Contributor

tlwr commented Mar 10, 2019

I have signed the CLA, sorry for delaying you!

@mattnotmitt
Copy link
Collaborator Author

mattnotmitt commented Mar 10, 2019 via email

@mattnotmitt mattnotmitt changed the title WIP: Charts port to ESM Charts port to ESM Mar 10, 2019
@j433866 j433866 marked this pull request as ready for review March 11, 2019 11:55
* @license Apache-2.0
*/

import * as d3 from "d3";
Copy link
Member

Choose a reason for hiding this comment

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

Would we get a benefit from only importing specfic symbols here? @n1474335 added a bundle size analyser that I think we can use to check

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've had a quick look, and based on this I'm not sure it will be possible. I've given it a shot using @std/esm and the configure scripts don't seem too happy.

@d98762625
Copy link
Member

d98762625 commented Mar 12, 2019

When I run this fork and attempt to create a heatmap with input

1 2
3 4

I get the following message:

Heatmap chart - Cannot read property 'createElementNS' of undefined

Is this how it should be run?


Some simple nightwatch tests to verify that charts get created could also be handy to verify that the chart is created? I appreciate that testing the output of these operations would be fragile using the traditional test framework. What do you think?

@n1474335 n1474335 merged commit b3d92b0 into gchq:master Mar 31, 2019
@n1474335
Copy link
Member

Great work @artemisbot and @tlwr. Thanks very much for working hard on this one, it's great to see it in at last!

@tlwr
Copy link
Contributor

tlwr commented Apr 1, 2019

All credit goes to @artemisbot thanks for getting this over the line, over 18months later

This pull request was closed.
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.

5 participants