{pointerEvents: 'none'} 属于 Surface 的什么位置?
来自 Famo.us 大学的“音色”示例: 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'
});
并来自: 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'
}
});
根据 Surface 文档:
http: //famo.us/docs/0.2.0/core/Surface
属性:是
要在目标 div 上设置的HTML属性字符串字典
“PointerEvent 接口”由 W3C
http://www.w3.org/TR/pointerevents/#pointerevent-interface
定义,因此将其包含在属性对象中似乎是合适的。
但是,如果pointerEvents可以在properties对象的内部和外部使用,那么properties对象有什么真正的意义吗?Surface 对象最终是否被展平?
或者 Surface 和 ImageSurface 处理属性的方式不同?我无法从文档中看出。