What is the difference between setting size on a modifier vs setting the size on the surface itself?
It is my understanding that an individual surface is laid out based on the composition of modifiers it has been added to. Do the (state)modifiers only relate to position and not size?
Why doesn't the following code restrict the size of the surface to 50x50 instead of rendering the 100x100 square? (When is it appropriate to set the size on a Modifier?)
var stateModifier = new StateModifier({
size: [50, 50],
transform: Transform.translate(50, 100, 0)
});
var surface = new Surface({
size: [100, 100],
properties: {
backgroundColor: '#FA5C4F'
}
});
mainContext.add(stateModifier).add(surface);
Thanks,
JD
http://famo.us/university/lessons/#/famous-101/positioning/2