Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(TS): polish text #8489

Merged
merged 14 commits into from
Dec 11, 2022
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [next]

- chore(TS): polish text [#8489](https://github.com/fabricjs/fabric.js/pull/8489)
- chore(): refactor `Object.__uid++` => `uid()` [#8482](https://github.com/fabricjs/fabric.js/pull/8482)
- chore(TS): migrate object mixins to TS [#8414](https://github.com/fabricjs/fabric.js/pull/8414)
- chore(TS): migrate filters [#8474](https://github.com/fabricjs/fabric.js/pull/8474)
Expand Down
4 changes: 2 additions & 2 deletions src/mixins/text_style.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export abstract class TextStyleMixin<
* @param {Number} lineIndex , lineIndex is on wrapped lines.
* @return {Boolean}
*/
isEmptyStyles(lineIndex: number): boolean {
isEmptyStyles(lineIndex?: number): boolean {
if (!this.styles) {
return true;
}
Expand Down Expand Up @@ -53,7 +53,7 @@ export abstract class TextStyleMixin<
* @param {Number} lineIndex to check the style on
* @return {Boolean}
*/
styleHas(property: string, lineIndex: number): boolean {
styleHas(property: string, lineIndex?: number): boolean {
if (!this.styles || !property || property === '') {
return false;
}
Expand Down
Loading