BracketNode¶
Overview¶
BracketNode draws a bracket with an optional label.
@author Chris Malley (PixelZoom, Inc.)
Class BracketNode¶
Constructor¶
new BracketNode( providedOptions? : BracketNodeOptions )¶
Instance Methods¶
dispose()¶
Type BracketNodeOptions¶
- orientation?: BracketNodeOrientation
refers to the direction that the tip of the bracket points - labelNode?: Node | null
optional label that will be centered below bracket's tip - bracketLength?: number
length of the bracket - bracketTipPosition?: number
[0,1] exclusive, determines where along the width of the bracket the tip (and optional label) are placed - bracketEndRadius?: number
radius of the arcs at the ends of the bracket - bracketTipRadius?: number
radius of the arcs at the tip (center) of the bracket - bracketStroke?: TPaint
color of the bracket - bracketLineWidth?: number
line width (thickness) of the bracket - spacing?: number
space between optional label and tip of bracket - & NodeOptions
Source Code¶
See the source for BracketNode.ts in the scenery-phet repository.