-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add option definitions and validation to Graph3d #3099
Conversation
…ef's of all options, autoByDefault not handled yet.
One question: Why do you need to remove options that are undefined? Does the Graph3D not accept undefined options? Does it error? |
Update: I have to add, 'undefined' has special meaning in |
I don't love it, but I can accept it for now. It's definitely a TODO. |
Yeah, I agree. But I haven't found a fix for it (yet). Maybe if my head is clearer. |
Unit test fails now. I'll also see if I can do something about the |
OK, I figured out why the unit tests didn't work. The problem was that I was an idiot. I'm not sure how to fix that, I hope it's just a glitch. Also, explicit |
@wimrijnders conflict to be resolved =) |
@yotamberk conflict fixed. |
@@ -16,10 +16,10 @@ | |||
"complexity": [2, 55], | |||
"max-statements": [2, 115], | |||
"no-unreachable": 1, | |||
"no-useless-escape": 0, | |||
"no-console": 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure you want this in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for now. console
is used in the running code to output warning messages.
But this is from a practical viewpoint. I would be happiest if as many checks as possible are enabled for eslint
. It's just that console
is used a bit too often to casually fix this.
🎉 Yay progress! All |
* Proof of concept with copied options + handling from network * Added unit test for Graph3d, for checking default syntax; completed def's of all options, autoByDefault not handled yet. * Fixes for options in playground example * Added onclick options to graph3d documentation * Fixes in graph3d examples * Final fixes for option definitions in Graph3d * Fixed handling of 'undefined' in options, enhanced graph3d unit test * Disabled console output in graph3d unit test * Upgrade webpack module
This finally adds the options checking to
graph3d
. I felt the need to do this now, because of expected changes in the options in the near future. Better to have the validation enabled for that.graph3d
graph3d
default optionsValidator
can't handle explicit setting of value toundefined
. The comments now serve as internal documentationgraph3d
examples for correct options, modified these where necessary (notablyplayground
)onclick
to documentation