davestewart
12/14/2012 - 8:41 AM

gistfile1.js

// code:

inspect($selection[0].edges, 6, {debug:true}); // debug set to on, so that output breaks if  Flash errors

// results:

Inspect: Array (depth:6, objects:16, values:84, time:0.0 seconds)
--------------------------------------------------------------------------------
array => Array
	[0] => Edge
		 id: 140572016
		 isLine: 1
		[stroke] => Object
			 thickness: 1
			 color: "#000000"
			 originalcolor: "#000000"
			 breakAtCorners: false
			 strokeHinting: false
			 scaleType: "normal"
			 joinType: "round"
			 capType: "round"
			 miterLimit: 3
			[shapeFill] => Object
				 color: "#000000"
				 style: "solid"
				[matrix] => Object
					 a: 1
					 b: 0
					 c: 0
					 d: 1
					 tx: 0
					 ty: 0
			 style: "solid"
		 cubicSegmentIndex: 0
	[1] => Edge
		 id: 140571232
		 isLine: 1
		[stroke] => Object
			 thickness: 1
			 color: "#000000"
			 originalcolor: "#000000"
			 breakAtCorners: false
			 strokeHinting: false
			 scaleType: "normal"
			 joinType: "round"
			 capType: "round"
			 miterLimit: 3
			[shapeFill] => Object
				 color: "#000000"
				 style: "solid"
				[matrix] => Object
					 a: 1
					 b: 0
					 c: 0
					 d: 1
					 tx: 0
					 ty: 0
			 style: "solid"
		 cubicSegmentIndex: 1
	[2] => Edge
		 id: 140570784
		 isLine: 1
		[stroke] => Object
			 thickness: 1
			 color: "#000000"
			 originalcolor: "#000000"
			 breakAtCorners: false
			 strokeHinting: false
			 scaleType: "normal"
			 joinType: "round"
			 capType: "round"
			 miterLimit: 3
			[shapeFill] => Object
				 color: "#000000"
				 style: "solid"
				[matrix] => Object
					 a: 1
					 b: 0
					 c: 0
					 d: 1
					 tx: 0
					 ty: 0
			 style: "solid"
		 cubicSegmentIndex: 2
	[3] => Edge
		 id: 140570336
		 isLine: 1
		[stroke] => Object
			 thickness: 1
			 color: "#000000"
			 originalcolor: "#000000"
			 breakAtCorners: false
			 strokeHinting: false
			 scaleType: "normal"
			 joinType: "round"
			 capType: "round"
			 miterLimit: 3
			[shapeFill] => Object
				 color: "#000000"
				 style: "solid"
				[matrix] => Object
					 a: 1
					 b: 0
					 c: 0
					 d: 1
					 tx: 0
					 ty: 0
			 style: "solid"
		 cubicSegmentIndex: 3