Interface: ButtonOptions
Extends
CompositeOptions.TextOptions
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
CompositeOptions.alpha
Defined in
node_modules/@m2c2kit/core/dist/index.d.ts:98
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
CompositeOptions.anchorPoint
Defined in
node_modules/@m2c2kit/core/dist/index.d.ts:38
backgroundColor?
optionalbackgroundColor:RgbaColor
Background color of button. Default is WebColors.Black
Defined in
m2c2kit/packages/addons/src/composites/button.ts:25
cornerRadius?
optionalcornerRadius:number
Corner radius of button; can be used to make rounded corners. Default is 9
Defined in
m2c2kit/packages/addons/src/composites/button.ts:23
draggable?
optionaldraggable:boolean
Can the node be dragged?
Inherited from
CompositeOptions.draggable