Where does {pointerEvents: 'none'} belong on a Surface?
From the Famo.us University "Timbre" example: http://famo.us/university/famous-102/timbre/24/
function _createIcon() {
var iconSurface = new ImageSurface({
size: [this.options.iconSize, this.options.iconSize],
content : this.options.iconUrl,
pointerEvents : 'none'
});
And from: http://famo.us/university/famous-102/timbre/25/
function _createTitle() {
var titleSurface = new Surface({
size: [true, true],
content: this.options.title,
properties: {
color: 'white',
fontSize: this.options.fontSize + 'px',
textTransform: 'uppercase',
pointerEvents : 'none'
}
});
According to the Surface documentation:
http://famo.us/docs/0.2.0/core/Surface
properties: is a
string dictionary of HTML attributes to set on target div
The "PointerEvent Interface" is defined by the W3C
http://www.w3.org/TR/pointerevents/#pointerevent-interface
so it seems appropriate to include it in the properties object.
But, if pointerEvents can be used both inside and outside the properties object, does the properties object have any real meaning? Is the Surface object ultimately just flattened out?
Or do Surface and ImageSurface handle properties differently? I can't tell from the documentation.