Add polyline strokeLinecap strokeLinejoin example

This commit is contained in:
Horcrux
2016-04-24 00:24:15 +08:00
parent 1741f63b41
commit 7d37cde40d
3 changed files with 22 additions and 6 deletions

View File

@@ -51,10 +51,7 @@ export default class {
};
scale = (x, y) => {
if (y == null) {
y = x;
}
return this.transform(x, 0, 0, y, 0, 0);
return this.transform(x, 0, 0, y == null ? x : y, 0, 0);
};
rotate = (deg, x, y) => {