observablehq / observablehq/plot

The image mark could support the stroke property

Open
#1,464 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
HTML
Stars
5.4k
Forks
244
PR merge metrics
No merged PRs in 30d

Description

I can approximate stroked images using CSS outline (and border-radius):

Screenshot 2023-04-18 at 3 18 39 PM
image {
  outline: solid 1px black;
  border-radius: 100%;
}

But it’d be nicer if the image mark interleaved SVG circle elements on top of each image element if you have a stroke.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating the image mark implementation and its rendering tests, then inspect how image elements and SVG circle elements are composed. Done means an image mark with a stroke renders the requested stroked appearance while preserving the existing image behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.