plotly / plotly/plotly.js

Allow GRID and LINE snapping when drawing shapes

Open
#6,347 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Is your feature request related to a problem? Please describe.
Can't create shapes like lines (e.g. when drawline is enabled in the modebar) at EXACT positions on the grid or at other lines points

Describe the solution you'd like
Allow the user to enable grid and / or line snapping when drawing shapes

Describe alternatives you've considered
None

Additional context
These guys have it: https://pattycake.io/new/drawing

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

The issue names no files or tests; start by locating the shape-drawing path used when drawline is enabled in the modebar, then trace how grid and other line points are represented. Done means users can enable grid and/or line snapping while drawing shapes and create lines or other shapes at exact positions, with coverage for the new behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.