News for hackers. Stuff that matters.
Re:Show HN: GraphicsJS, New Powerful Free Open-Source JavaSc... by bastawhiz on Friday September 16, 2016 @12:14AM (#12511778)
Looking at the source for the examples, I really can't see how that's practical to write. It may be fast but damn is that code gnarly.
Re:Show HN: GraphicsJS, New Powerful Free Open-Source JavaSc... by onion2k on Friday September 16, 2016 @03:40AM (#12512499)
The documentation doesn't help either - it's nasty generated stuff that simply enumerates the API interfaces without adding very much useful information.

For example, https://api.anychart.com/7.11.1/anychart.palettes.DistinctCo... - why would you want to attach listeners to palette colors? There might be a great reason, or those methods might just have been inherited from the base class, but the documentation is no to your understanding help whatsoever. The example is for the base class rather than the palette object.

This is actually a good example of bad documentation.

Re:Show HN: GraphicsJS, New Powerful Free Open-Source JavaSc... by Roman_Lubushkin on Friday September 16, 2016 @10:23AM (#12514183)
I might be confusing but palette can dispatch change event when you change particular palette item or whole items set.