fix(legend): add third mode, discrete, to LegendType#3957
Conversation
Deploying vega with
|
| Latest commit: |
9736917
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a75619db.vega-628.pages.dev |
| Branch Preview URL: | https://cameron-yick-update-discrete.vega-628.pages.dev |
Yes, if we can figure out a way that doesn't degrade the developer experience. So for example if I change code in a linked Vega package, the Vega editor (in local dev mode) should update. |
domoritz
left a comment
There was a problem hiding this comment.
Please update the docs at https://vega.github.io/vega/docs/legends/ as well.
Got it! I split this out to a separate issue. #3971
A separate followup would be to generate sections of the docs files (like this props table) from the JSDoc comments in the source code. For the time being, I made a manual update 9736917 , thanks for the flagging this one. |
changes since v5.30.0 **vega-utils** * use `Object.hasOwn` instead of `Object.prototype.hasOwnProperty` (via #3951). (Thanks @domoritz!) **vega-parser** * Add discrete legend type (via #3957). (Thanks @hydrosquall!) **vega-functions** * Add sort function to vega-functions (and vega-interpreter) (via #3973). (Thanks @hydrosquall!) **vega-selections** * Add field predicate types to selectionTest (via #3675). (Thanks @jonathanzong!) **monorepo** * Replace flights-5k.json external reference (via #3999). (Thanks @dwootton!) **docs** * Update packed bubble example (via #3955). (Thanks @PBI-David!) * Correct typo in production rules documentation (via #3958). (Thanks @shanebruggeman!) * Update README.md to fix broken link to current roadmap (via #3979). (Thanks @cahogan & @joelostblom!) --------- Signed-off-by: Lukas Hermann <1734032+lsh@users.noreply.github.com>
Motivation
LegendTypetypescript definition to support 3rd (discrete) type #3954Changes
vega/packages/vega-parser/src/parsers/legend.js
Lines 35 to 36 in ddd2bbf
Notes
.d.tsfiles with JS source code as a separate step?