new Tag(config)
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
Properties
|
- Source:
- konva.js
Methods
-
cornerRadius(cornerRadius)
-
get/set cornerRadius
Parameters:
Name Type Description cornerRadius
Number - Source:
- konva.js
Returns:
- Type
- Number
Example
tag.cornerRadius(20); // set different corner radius values // top-left, top-right, bottom-right, bottom-left tag.cornerRadius([0, 10, 20, 30]);
-
pointerDirection(pointerDirection)
-
get/set pointer direction
Parameters:
Name Type Description pointerDirection
String can be up, right, down, left, or none. The default is none.
- Source:
- konva.js
Returns:
- Type
- String
Example
tag.pointerDirection('right');
-
pointerHeight(pointerHeight)
-
get/set pointer height
Parameters:
Name Type Description pointerHeight
Number - Source:
- konva.js
Returns:
- Type
- Number
Example
tag.pointerHeight(20);
-
pointerWidth(pointerWidth)
-
get/set pointer width
Parameters:
Name Type Description pointerWidth
Number - Source:
- konva.js
Returns:
- Type
- Number
Example
tag.pointerWidth(20);