Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Canvas

A class to create a canvas.

Hierarchy

  • Canvas

Index

Constructors

constructor

Properties

holderSelection

holderSelection: Selection<any, any, any, any>

D3 selection of the div #canvas

infoPanel

infoPanel: InfoPanel

Info panel linked to the canavs.

shapes

shapes: Shape[]

List of shapes in the canvas.

svgSelection

svgSelection: Selection<SVGSVGElement, any, any, any>

D3 selection of the svg in the div #canvas

toolBar

toolBar: ToolBar

Tool bar linked to the canvas.

Methods

getShape

  • getShape(shapeId: string): Shape
  • Gets a shape based on a shape id.

    Parameters

    • shapeId: string

      Id of the shape.

    Returns Shape

    shape

Private setupPointerListeners

  • setupPointerListeners(): void

Generated using TypeDoc