Skip to content

Commit

Permalink
fix(setLineDash): rename parameter value to segments (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed Feb 7, 2021
1 parent c4d1fb2 commit 3055dd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ exports[`__getEvents should have an event when setLineDash is called 1`] = `
Array [
Object {
"props": Object {
"value": Array [
"segments": Array [
1,
2,
3,
Expand Down
2 changes: 1 addition & 1 deletion src/classes/CanvasRenderingContext2D.js
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ export default class CanvasRenderingContext2D {
result = this._lineDashStack[this._stackIndex] =
result.length % 2 === 1 ? result.concat(result) : result;
const event = createCanvasEvent('setLineDash', getTransformSlice(this), {
value: result.slice(),
segments: result.slice(),
});
this._events.push(event);
}
Expand Down

0 comments on commit 3055dd9

Please sign in to comment.