Skip to content

v0.8.0

  • v0.8.0
  • 1f37340
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
  • Choose a tag to compare

  • v0.8.0
  • 1f37340
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
@LeVarez LeVarez tagged this 05 Oct 15:53
* feat: focus — one region outlined, which capabilities confine to (#9)

- GlobeConfig.focus (region, outline, visible, confine) and the `focus`
  capability, in DEFAULT_CAPABILITY_RULES: a draped stroke layer per
  region id that fades like `outlines`; a replaced region fades out but
  stays mounted; `outline: false` confines without drawing.
- focusRegionFor(config, name): the region for a capability `confine`
  names, read in a rule's `select`, so capabilities stay sibling-free;
  createFocusRegionTracker: the shape once per region id, never stale.
- markers confine through LayerHandle.setRegion; pins (DOM-projected)
  filter the items they project.
- outlines and focus share one fading stroke-layer module.
- Docs: capabilities (Focus section), reference, providers, README.

* chore(release): 0.8.0

* refactor(focus): the focus outline is drawn by `outlines`; warn on unknown confine names

From the architecture review of #10:

- The `focus` capability was `outlines` with one entry. It is gone:
  `outlinesOf(config)` adds the focus region as one more outline keyed by
  its id, and `outlines` is active on a `focus` alone. An authored outline
  with the focus region's id is replaced, so the two can no longer share
  a provider layer id (on MapLibre they shared one source). The shared
  fading-stroke module folds back into `outlines`, which now also
  restyles a live outline whose stroke changed.
- The registry warns about a `focus.confine` name no mounted capability
  answers to, so a typo no longer confines nothing silently.
- `regionCenter(shape)` in `…/geo`: the bbox centre, across ±180° for a
  wrapping region.
- Docs and the 0.8.0 changelog follow.
Assets 2
Loading