Skip to content

Draw basic shapes and text on the canvas #5

Description

@BernardJen

Summary

Add tools to draw basic shapes and text directly on the canvas, producing plottable paths.

Motivation

Not every plot starts from an imported image. Users should be able to compose drawings natively with primitives and text.

Shapes

  • Line
  • Rectangle / square
  • Ellipse / circle
  • Polygon / polyline
  • (Optional) freehand path

Text

  • Place text on the canvas.
  • Choose a (plotter-friendly / single-line) font.
  • Adjust size and position.
  • Text is rendered as plottable strokes/paths (not filled glyphs).

Acceptance criteria

  • User can add each basic shape and position/resize it.
  • User can add text, set its content, font, and size.
  • Shapes and text become plottable paths included in the output.
  • Items render correctly in the canvas preview.

Dependencies

  • Drawing/placement tools likely live alongside the toolbar (see the toolbar issue).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions