Skip to content

Instantly share code, notes, and snippets.

@jefflembeck
Created September 10, 2012 21:35
Show Gist options
  • Save jefflembeck/57116620ec75efc10fb9 to your computer and use it in GitHub Desktop.
Save jefflembeck/57116620ec75efc10fb9 to your computer and use it in GitHub Desktop.
Major difference between group.objects and group.toObject().objects
Printout from the Chrome inspector:
> group
klass
_angle: 0.7680492986225101
_hypotenuse: 210.505918579659
_originalLeft: 174.14180568636917
_originalTop: 180.76466832565416
active: true
currentHeight: 292.4910211525165
currentWidth: 302.8200283558244
height: 292.4910211525165
isMoving: false
left: 174.14180568636917
oCoords: Object
objects: Array[2]
0: klass
1: klass
length: 2
__proto__: Array[0]
opacity: 1
originalState: Object
top: 180.76466832565416
width: 302.8200283558244
__proto__: subclass
> group.toObject()
Object
angle: 0
fill: "rgb(0,0,0)"
flipX: false
flipY: false
hasBorders: true
hasControls: true
hasRotatingPoint: false
height: 292.49
left: 174.14
objects: Array[2]
0: undefined
1: undefined
length: 2
__proto__: Array[0]
opacity: 1
overlayFill: null
scaleX: 1
scaleY: 1
selectable: true
stroke: null
strokeWidth: 1
top: 180.76
type: "group"
width: 302.82
__proto__: Object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment