Part Magic

Already talked about:

Now we need to talk about 2-way binding, part selection via matchers, ...

<<<<<<<<<<<<<<< OLD STUFF >>>>>>>>>>>>>>>>>>>

Nearly every element in a 3-D scene is (deep down inside) a Part, simply because such elements are pieces within a larger hierarchical structure (the scene). In addition to the hierarchical structure, each Part offers up the following information about itself:

sun = Lightbulb[
	name: 'Sun'
	parent: $
	pos: Xyz[0,0,0]
	color: Rgba[1,1,1]
	on:> 
		#turn it on

Attributes

Access to (.attr), changing

Special attributes: parent, name,

Subparts

each

Methods

defining, using

self goes to attr&subparts, type vars

Mixins

Keep here??? super

Part selection patterns

'/' operator for splitting? '%' for selecting?

Any part can be queried for a part within it. .select() returns List of all that match the pattern. A special pre-parsed Sel"...." pattern: An element can be

These can be combined with others with logical operators, and parentheses

They can be within statement sequences, separated by ;. A separator of .. is allowed to match spaced matches>

They can be within parent sequences, separated by '/'. A separator of .. is allowed here as well.

Explore more ideas CSS and XPath.

2-way binding

TBD