Skip to content

Commit 56d109a

Browse files
committed
Reverts the regexp change in links.js and uses {#brush-move} style anchors instead of {#brush.move}
1 parent 76474e8 commit 56d109a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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
@@ -252,31 +252,31 @@ const brush = Plot.brush()
252252
253253
Returns a new brush. The mark exposes the **inactive**, **context**, and **focus** methods for creating reactive marks that respond to the brush state.
254254
255-
## *brush*.inactive(*options*) {#brush.inactive}
255+
## *brush*.inactive(*options*) {#brush-inactive}
256256
257257
```js
258258
Plot.dot(data, brush.inactive({x: "weight", y: "height", fill: "species"}))
259259
```
260260
261261
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.
262262
263-
## *brush*.context(*options*) {#brush.context}
263+
## *brush*.context(*options*) {#brush-context}
264264
265265
```js
266266
Plot.dot(data, brush.context({x: "weight", y: "height", fill: "#ccc"}))
267267
```
268268
269269
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.
270270
271-
## *brush*.focus(*options*) {#brush.focus}
271+
## *brush*.focus(*options*) {#brush-focus}
272272
273273
```js
274274
Plot.dot(data, brush.focus({x: "weight", y: "height", fill: "species"}))
275275
```
276276
277277
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.
278278
279-
## *brush*.move(*value*) {#brush.move}
279+
## *brush*.move(*value*) {#brush-move}
280280
281281
```js
282282
brush.move({x1: 36, x2: 48, y1: 15, y2: 20})

0 commit comments

Comments
 (0)