2youyou2 / raphael-example

examples for https://github.com/2youyou2/ccc.raphael
100 stars 52 forks source link

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

Open and80506 opened 7 years ago

and80506 commented 7 years ago

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

}

2youyou2 commented 7 years ago

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