Class: Tag

Konva. Tag

new Tag(config)

Tag constructor.  A Tag can be configured to have a pointer element that points up, right, down, or left

Parameters:
Name Type Description
config Object
Properties
Name Type Argument Description
pointerDirection String <optional>

can be up, right, down, left, or none; the default is none. When a pointer is present, the positioning of the label is relative to the tip of the pointer.

pointerWidth Number <optional>
pointerHeight Number <optional>
cornerRadius Number <optional>
Source:

Methods

getCornerRadius()

get corner radius

Source:

getPointerDirection()

get pointer Direction

Source:

getPointerHeight()

get pointer height

Source:

getPointerWidth()

get pointer width

Source:

setCornerRadius(corner)

set corner radius

Parameters:
Name Type Description
corner Number

radius

Source:

setPointerDirection(pointerDirection)

set pointer Direction

Parameters:
Name Type Description
pointerDirection String

can be up, right, down, left, or none. The default is none

Source:

setPointerHeight(pointerHeight)

set pointer height

Parameters:
Name Type Description
pointerHeight Number
Source:

setPointerWidth(pointerWidth)

set pointer width

Parameters:
Name Type Description
pointerWidth Number
Source:
Konva Copyright © 2015 The contributors to the Konva project.
Documentation generated by JSDoc 3.2.2 on Tue Jan 27th 2015 using the DocStrap template.