raphael-example icon indicating copy to clipboard operation
raphael-example copied to clipboard

Cocos Creator1.3.1中运行设置path没有效果

Open and80506 opened this issue 8 years ago • 1 comments

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);
}

}

and80506 avatar Nov 16 '16 05:11 and80506

什么模式下,还有什么浏览器下呢? 可否截张效果图呢?

2youyou2 avatar Jan 09 '17 07:01 2youyou2