Skip to content

Commit f2f4e13

Browse files
committed
context.js
context.ts src/options api.ts and options.ts fix type formatAuto scales/index scales/schemes scales/schemes.ts src/stats stats.ts remove common.ts for now symbols symbols.ts marks/marker marker.ts; changing the API for marker the second argument for markers has not been documented yet; changing it from *context* = {document} to *document* style style.ts src/transforms/basic transform/basic.ts transform/identity transforms/identity.ts transforms/group transforms/groups.ts transforms/inset transforms/inset.ts transforms/map transforms/map.ts transforms/select transforms/select.ts transforms/stack transforms/stack.ts transforms/interval transforms/interval.ts transforms/normalize transforms/normalize.ts transforms/window transforms/window.ts transforms/bin transforms/bin.ts clean-up valueof, map renames & clean-up on ValueAccessor valueof cleaner cleaner defs for data and columns Add stack error messages when X or Z are missing and the specified order requires them move data types to src/data.ts too much typing README documentation and links for Plot.column, Plot.valueof and Plot.transform (aka basic) options.ts copied from 6b6aa86 keep in sync with #1008 follow #1008 on pXX follow #1008 Datum can also be an array of values, with typical accessors being "length", "0", "1"… more typings basic.ts is working transforms: identity, inset, interval, map window, and a bit of progress on stack normalize select stack bin group markers and symbols arrayify comes back difficulty typing Trasnforms vs Initializer, because Plot.sort applies to either
1 parent 2e84bbf commit f2f4e13

33 files changed

+2840
-1239
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,7 @@ The following named markers are supported:
24172417
* *circle*, equivalent to *circle-fill* - a filled circle with a white stroke and 3px radius
24182418
* *circle-stroke* - a hollow circle with a colored stroke and a white fill and 3px radius
24192419
2420-
If *marker* is true, it defaults to *circle*. If *marker* is a function, it will be called with a given *color* and must return an SVG marker element.
2420+
If *marker* is true, it defaults to *circle*. If *marker* is a function, it will be called with a given *color* and *document* and must return an SVG marker element.
24212421
24222422
The primary color of a marker is inherited from the *stroke* of the associated mark. The *arrow* marker is [automatically oriented](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/orient) such that it points in the tangential direction of the path at the position the marker is placed. The *circle* markers are centered around the given vertex. Note that lines whose curve is not *linear* (the default), markers are not necessarily drawn at the data positions given by *x* and *y*; marker placement is determined by the (possibly Bézier) path segments generated by the curve. To ensure that symbols are drawn at a given *x* and *y* position, consider using a [dot](#dot).
24232423

0 commit comments

Comments
 (0)