Interface: ShapeOptions
Extends
Properties
alpha?
optionalalpha:number
Opacity of the node. 0 is fully transparent, 1 is fully opaque. Default is 1.0. Alpha has multiplicative inheritance. For example, if the node's parent is alpha .5 and this node's is alpha .4, then the node will appear with alpha .2.
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:12
anchorPoint?
optionalanchorPoint:Point
Point within the node that determines its position. Default is { x: 0.5, y: 0.5 }, which centers the node on its position
Inherited from
Defined in
m2c2kit/packages/core/src/DrawableOptions.ts:5
circleOfRadius?
optionalcircleOfRadius:number
If provided, shape will be a circle with given radius
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:14
cornerRadius?
optionalcornerRadius:number
Radius of rectangle's corners
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:18
draggable?
optionaldraggable:boolean
Can the node be dragged?
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:18
fillColor?
optionalfillColor:RgbaColor
Color with which to fill shape. Default is Constants.DEFAULT_SHAPE_FILL_COLOR (WebColors.Red)
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:20
hidden?
optionalhidden:boolean
Is the node, and its children, hidden? (not displayed). Default is false
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:20
isAntialiased?
optionalisAntialiased:boolean
Should the shape be drawn with anti-aliasing. Default is yes.
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:30
isUserInteractionEnabled?
optionalisUserInteractionEnabled:boolean
Does the node respond to user events, such as taps? Default is false
Inherited from
M2NodeOptions.isUserInteractionEnabled
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:16
layout?
optionallayout:Layout
FOR INTERNAL USE ONLY
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:22
lineWidth?
optionallineWidth:number
Width of outline. Default is undefined for rectangle and circle, 2 for path.
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:24
name?
optionalname:string
Name of the node. Only needed if the node will be referred to by name in a later function
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:6
path?
optionalpath:M2Path|M2ColorfulPath|SvgStringPath
A path from which to create the shape
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:26
position?
optionalposition:Point
Position of the node within its parent coordinate system. Default is (0, 0)
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:8
rect?
optionalrect:RectOptions
If provided, shape will be a rectangle as specified in Rect
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:16
scale?
optionalscale:number
Scale of the node. Default is 1.0
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:10
shapeType?
optionalshapeType:ShapeType
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:12
size?
optionalsize:Size
Size of container "view box" for M2Path and M2ColorfulPath shapes. Leave undefined for circle, rectangle, and SvgStringPath shapes.
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:28
strokeColor?
optionalstrokeColor:RgbaColor
Color with which to outline shape. Default is no color for rectangle and circle, red for path.
Defined in
m2c2kit/packages/core/src/ShapeOptions.ts:22
suppressEvents?
optionalsuppressEvents:boolean
Should the node not emit events to the EventStore? Default is false.
Remarks
This property is for use by authors of Composite nodes. It is not intended for general use.
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:27
uuid?
optionaluuid:string
Internal
Unique identifier (UUID). Will be generated automatically. For m2c2kit library use only
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:24
zPosition?
optionalzPosition:number
Value along the z-axis to determine drawing and tap order. Larger values are on top.
Inherited from
Defined in
m2c2kit/packages/core/src/DrawableOptions.ts:7
zRotation?
optionalzRotation:number
Rotation of the node around the Z axis. Unit is radians. Default is 0 (no rotation). zRotation has inheritance. In addition to this node's zRotation, all ancestors' zRotations will be applied.
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:14