# `Overlays.anchors`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

Property of [`Overlays`](Overlays.md) · stable · since 2.0.0 · called as `session.overlays.anchors`

```ts
readonly anchors: {
  set(anchors: readonly AnchorSpec[], options?: AnchorOptions): void;
  clear(): void;
};
```

Points tracked for your own DOM; positions arrive through 'anchors:moved'.

## Members

| Member | Summary |
| --- | --- |
| [`set`](Overlays.anchors.set.md) | Replaces every anchor (an empty array removes them, as `clear()`). |
| [`clear`](Overlays.anchors.clear.md) | Removes every anchor. |

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `anchors` names no product |
| 2. A precedent | pass: [Babylon.js GUI Control.linkWithMesh](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/gui/src/2D/controls/control.ts) (row `K48`) |
| 3. Two apps, or labs | pass: 10 apps (ledger: app-4f16d2f6da, app-510d750508, app-b362a81c85, app-bcb7ef21da, app-ceb4eccc72, app-fb16dd1985, app-fc07850558, app-fd09090420; fleet cross-check: app-37356bf09f, app-f3598fad77, app-fc07850558, app-fd09090420) |
| 4. The cheaper fix first | decided per need in Appendix B: rows `K48` at tier stable (a member only where no rule, data, asset or app code serves the need) |
