Skip to content

Commit 115f9fe

Browse files
committed
Merge branch 'fil/brush-x' into fil/brush-data-options
2 parents f304078 + 56d109a commit 115f9fe

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/components/links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function getAnchors(text) {
1313
.toLowerCase()
1414
);
1515
}
16-
for (const [, anchor] of text.matchAll(/ \{#([\w\d.-]+)\}/g)) {
16+
for (const [, anchor] of text.matchAll(/ \{#([\w\d-]+)\}/g)) {
1717
anchors.push(anchor);
1818
}
1919
return anchors;

docs/interactions/brush.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,31 +313,31 @@ const brush = Plot.brush()
313313
314314
Returns a new brush with the given *data* and *options*. Both *data* and *options* are optional. If *data* is specified but the neither **x** nor **y** is specified in the *options*, *data* is assumed to be an array of pairs [[*x₀*, *y₀*], [*x₁*, *y₁*], …] such that **x** = [*x₀*, *x₁*, …] and **y** = [*y₀*, *y₁*, …].
315315
316-
## *brush*.inactive(*options*) {#brush.inactive}
316+
## *brush*.inactive(*options*) {#brush-inactive}
317317
318318
```js
319319
Plot.dot(data, brush.inactive({x: "weight", y: "height", fill: "species"}))
320320
```
321321
322322
Returns mark options that show the mark when no brush selection is active, and hide it during brushing. Use this for the default appearance of data before any selection is made.
323323
324-
## *brush*.context(*options*) {#brush.context}
324+
## *brush*.context(*options*) {#brush-context}
325325
326326
```js
327327
Plot.dot(data, brush.context({x: "weight", y: "height", fill: "#ccc"}))
328328
```
329329
330330
Returns mark options that hide the mark by default and, during brushing, show only the points *outside* the selection. Use this for a dimmed background layer.
331331
332-
## *brush*.focus(*options*) {#brush.focus}
332+
## *brush*.focus(*options*) {#brush-focus}
333333
334334
```js
335335
Plot.dot(data, brush.focus({x: "weight", y: "height", fill: "species"}))
336336
```
337337
338338
Returns mark options that hide the mark by default and, during brushing, show only the points *inside* the selection. Use this to highlight the selected data.
339339
340-
## *brush*.move(*value*) {#brush.move}
340+
## *brush*.move(*value*) {#brush-move}
341341
342342
```js
343343
brush.move({x1: 36, x2: 48, y1: 15, y2: 20})

0 commit comments

Comments
 (0)