raphael-example
raphael-example copied to clipboard
Cocos Creator1.3.1中运行设置path没有效果
simplify.js中,this.path.fillColor = 'none'; this.path.lineWidth = 5; 这两行设置没有效果。线宽还是1px。
cc.Class({
extends: cc.Component,
// use this for initialization
onLoad: function () {
this.path = this.addComponent('R.path');
this.path.fillColor = 'none';
this.path.lineWidth = 5;
this.path.showHandles = true;
cc.eventManager.addListener({
event: cc.EventListener.TOUCH_ONE_BY_ONE,
onTouchBegan: this.onTouchBegan.bind(this),
onTouchMoved: this.onTouchMoved.bind(this),
onTouchEnded: this.onTouchEnded.bind(this),
}, this.node);
}
}
什么模式下,还有什么浏览器下呢? 可否截张效果图呢?