#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# CanvasPath Class

Defined in: `graphics/js/CanvasPath.js:1`
Module: graphics

Canvas implementation of the `Path` class. `CanvasPath` is not intended to be used directly. Instead, use the `Path` class. If the browser lacks SVG capabilities but has Canvas capabilities, the `Path` class will point to the `CanvasPath` class.

- Index
- Methods
- Properties
- Attributes

## Item Index

### Methods

- _draw
- createNode
- end

### Properties

- _type

### Attributes

- height
- path
- width

## Methods

### `_draw`

() private

Defined in `graphics/js/CanvasPath.js:27`

Draws the shape.

### `createNode`

() private

Defined in `graphics/js/CanvasPath.js:39`

Creates the dom node for the shape.

#### Returns:

HTMLElement

### `end`

()

Defined in `graphics/js/CanvasPath.js:72`

Completes a drawing operation.

## Properties

### `_type`

String private

Defined in `graphics/js/CanvasPath.js:18`

Indicates the type of shape

## Attributes

### `height`

Number

Defined in `graphics/js/CanvasPath.js:104`

Indicates the height of the shape

### `path`

String readonly

Defined in `graphics/js/CanvasPath.js:124`

Indicates the path used for the node.

### `width`

Number

Defined in `graphics/js/CanvasPath.js:84`

Indicates the width of the shape