A shape task creates a configurable shape by creating a svg tag.

This plugin has the following built-in shapes:

  • rectangle - rectangle shape including round rectangle via cx,cy fields.
  • line - x,y and directional shape.
  • circle
  • speech - round rectangle with left and right speech triangle.
 
#API ## ShapeTaskName

public export type

export type ShapeTaskName = 'shape';

public export type

export type ShapeTaskParams =
| RectangleShapeTaskParams
| LineShapeTaskParams
| CircleShapeTaskParams
| SpeechShapeTaskParams;
 
## BaseShapeTaskParams

public export interface

export interface BaseShapeTaskParams extends AnyParams{ }

public property [BaseShapeTaskParams]

shape?: Shapes | string;

public property [BaseShapeTaskParams]

stroke?: string;

public property [BaseShapeTaskParams]

strokeWidth?: uint | ExprString;

public property [BaseShapeTaskParams]

fill?: string;
 
## RectangleShapeTaskParams

public export interface

export interface RectangleShapeTaskParams extends BaseShapeTaskParams{ }

public property [RectangleShapeTaskParams]

width?: uint | ExprString;

public property [RectangleShapeTaskParams]

height?: uint | ExprString;

public property [RectangleShapeTaskParams]

rx?: uint | ExprString;

public property [RectangleShapeTaskParams]

ry?: uint | ExprString;
 
## LineShapeTaskParams

public export interface

export interface LineShapeTaskParams extends BaseShapeTaskParams{ }

public property [LineShapeTaskParams]

x?: int | ExprString;

public property [LineShapeTaskParams]

y?: int | ExprString;

public property [LineShapeTaskParams]

direction?: number | ExprString;

public property [LineShapeTaskParams]

length?: number | ExprString;
 
## CircleShapeTaskParams

public export interface

export interface CircleShapeTaskParams extends BaseShapeTaskParams{ }

public property [CircleShapeTaskParams]

radius?: number | ExprString;
 
## SpeechShapeTaskParams

public export interface

export interface SpeechShapeTaskParams extends RectangleShapeTaskParams{ }

public property [SpeechShapeTaskParams]

speechPosition?: SpeechPosition | string;

public property [SpeechShapeTaskParams]

speechStart?: uint;

public property [SpeechShapeTaskParams]

speechWidth?: uint;

public property [SpeechShapeTaskParams]

speechHeight?: uint;

public property [SpeechShapeTaskParams]

speechShift?: int;