changed fillStroke() to fillStrokeShape() for consistency

This commit is contained in:
Eric Rowell
2013-09-02 11:09:30 -07:00
parent 159959a077
commit c802935208
16 changed files with 36 additions and 22 deletions

View File

@@ -1414,7 +1414,7 @@ Test.Modules['HIT FUNCS'] = {
_context.beginPath();
_context.arc(0, 0, this.getRadius() + 100, 0, Math.PI * 2, true);
_context.closePath();
context.fillStroke(this);
context.fillStrokeShape(this);
}
});
@@ -1470,7 +1470,7 @@ Test.Modules['HIT FUNCS'] = {
_context.beginPath();
_context.arc(0, 0, this.getRadius() - 50, 0, Math.PI * 2, true);
_context.closePath();
context.fillStroke(this);
context.fillStrokeShape(this);
});

View File

@@ -2140,7 +2140,7 @@ Test.Modules.NODE = {
_context.lineTo(420, 80);
_context.quadraticCurveTo(300, 100, 260, 170);
_context.closePath();
context.fillStroke(this);
context.fillStrokeShape(this);
};
var triangle = new Kinetic.Shape({
drawFunc: drawTriangle,
@@ -2174,7 +2174,7 @@ Test.Modules.NODE = {
_context.lineTo(420, 80);
_context.quadraticCurveTo(300, 100, 260, 170);
_context.closePath();
context.fillStroke(this);
context.fillStrokeShape(this);
};
var json = '{"attrs":{"width":578,"height":200},"nodeType":"Stage","children":[{"attrs":{},"nodeType":"Layer","children":[{"attrs":{},"nodeType":"Group","children":[{"attrs":{"fill":"#00D2FF","stroke":"black","strokeWidth":4,"id":"myTriangle"},"nodeType":"Shape"}]}]}]}';

View File

@@ -135,7 +135,7 @@ Test.Modules.SHAPE = {
_context.lineTo(100, 0);
_context.lineTo(100, 100);
_context.closePath();
context.fillStroke(this);
context.fillStrokeShape(this);
},
x: 10,
y: 10,
@@ -172,7 +172,7 @@ Test.Modules.SHAPE = {
_context.lineTo(100, 0);
_context.lineTo(100, 100);
_context.closePath();
context.fillStroke(this);
context.fillStrokeShape(this);
},
x: 200,
y: 100,