Skip to content

Commit

Permalink
add TextMetrics properties
Browse files Browse the repository at this point in the history
update CHANGELOG
fix changelog
  • Loading branch information
musou1500 authored and chearon committed Aug 11, 2024
1 parent f138b3a commit 45feb57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ project adheres to [Semantic Versioning](http://semver.org/).
==================
### Changed
### Added
* fix TextMetrics type to include alphabeticBaseline, emHeightAscent, and emHeightDescent properties

### Fixed

3.0.0
Expand Down
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,13 @@ export class Canvas {
}

export interface TextMetrics {
readonly alphabeticBaseline: number;
readonly actualBoundingBoxAscent: number;
readonly actualBoundingBoxDescent: number;
readonly actualBoundingBoxLeft: number;
readonly actualBoundingBoxRight: number;
readonly emHeightAscent: number;
readonly emHeightDescent: number;
readonly fontBoundingBoxAscent: number;
readonly fontBoundingBoxDescent: number;
readonly width: number;
Expand Down

0 comments on commit 45feb57

Please sign in to comment.