Skip to content

Commit d1b07cc

Browse files
authored
fix(): Allow field access for PencilBrush subclasses (fabricjs#10416)
1 parent a88ad1a commit d1b07cc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [next]
44

5+
- fix(): Allow for brush subclassing moving some properties from private to protected. [#10416](https://github.com/fabricjs/fabric.js/pull/10416)
56
- feat(): Add method toBlob. [#3283](https://github.com/fabricjs/fabric.js/issues/3283)
67

78
## [6.5.4]

src/brushes/PencilBrush.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export class PencilBrush extends BaseBrush {
4040
*/
4141
straightLineKey: ModifierKey | undefined | null = 'shiftKey';
4242

43-
private declare _points: Point[];
44-
private declare _hasStraightLine: boolean;
45-
private declare oldEnd?: Point;
43+
protected declare _points: Point[];
44+
protected declare _hasStraightLine: boolean;
45+
protected declare oldEnd?: Point;
4646

4747
constructor(canvas: Canvas) {
4848
super(canvas);

0 commit comments

Comments
 (0)