You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/marks.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -492,6 +492,7 @@ All marks support the following style options:
492
492
***pointerEvents** - the [pointer events](https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events) (*e.g.*, *none*)
493
493
***clip** - whether and how to clip the mark
494
494
***tip** - whether to generate an implicit [pointer](../interactions/pointer.md)[tip](../marks/tip.md) <VersionBadgeversion="0.6.7" />
495
+
***pool** - whether the [pointer transform](../interactions/pointer.md) is exclusive <VersionBadgepr="2382" />
495
496
496
497
If the **clip** option<aid="clip"href="#clip"aria-label="Permalink to "clip""></a> is *frame* (or equivalently true), the mark is clipped to the frame’s dimensions. If the **clip** option is null (or equivalently false), the mark is not clipped. If the **clip** option is *sphere*, the mark will be clipped to the projected sphere (_e.g._, the front hemisphere when using the orthographic projection); a [geographic projection](./projections.md) is required in this case. Lastly if the **clip** option is a GeoJSON object <VersionBadgeversion="0.6.17"pr="2243" />, the mark will be clipped to the projected geometry.
Copy file name to clipboardExpand all lines: docs/interactions/pointer.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,6 +178,8 @@ The following options control the pointer transform:
178
178
-**maxRadius** - the reach, or maximum distance, in pixels; defaults to 40
179
179
-**frameAnchor** - how to position the target within the frame; defaults to *middle*
180
180
181
+
The **pool** mark option <VersionBadgepr="2382" /> determines whether the pointer transform is exclusive across marks. If false, pointer transforms operate independently, potentially allowing multiple marks to be visible simultaneously. If true, pointer transforms will coordinate such that at most one mark will be visible at a time. The **pool** option defaults to true for the [tip mark](../marks/tip.md). Regardless of this option, when faceting, the pointer transform is exclusive across facets.
182
+
181
183
To resolve the horizontal target position, the pointer transform applies the following order of precedence:
Copy file name to clipboardExpand all lines: docs/marks/tip.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ Plot.plot({
46
46
})
47
47
```
48
48
49
+
The tip mark defaults the [**pool** option](../interactions/pointer.md#pointer-options) <VersionBadgepr="2382" /> to true, such that if there are multiple tip marks and pointer transforms, at most one tip will be visible at a time. Setting the **pool** option to false allows multiple tips to be visible simultaneously; in this case, beware that tips may collide.
50
+
49
51
The tip mark can also be used for static annotations, say to draw attention to elements of interest or to add context. The tip text is supplied via the **title** channel. If the tip mark‘s data is an array of strings, the **title** channel defaults to [identity](../features/transforms.md#identity).
0 commit comments