mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
changed fillStroke() to fillStrokeShape() for consistency
This commit is contained in:
@@ -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);
|
||||
|
||||
});
|
||||
|
||||
|
@@ -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"}]}]}]}';
|
||||
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user