XNode¶
Overview¶
XNode is a specialized view for displaying a 'x'. It is used throughout the sim to indicate the center of mass of a system of Balls. Generalized to appear as a icon as well.
XNode's rendering strategy is to sub-type PlusNode and rotate the Node 45 degrees.
@author Brandon Li @author Alex Schor
Class XNode¶
Constructor¶
new XNode( providedOptions? : XNodeOptions )¶
Instance Methods¶
Type XNodeOptions¶
- legThickness?: number
thickness of the legs of the 'x' - length?: number
the length of the diagonal of the 'x'. - & StrictOmit<PlusNodeOptions, "size" | "rotation">
Source Code¶
See the source for XNode.ts in the scenery-phet repository.