Skip to content

Commit

Permalink
fix format and change changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
dovicsin committed May 30, 2024
1 parent 40be774 commit bf86afe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@

- Do not calculate disabled markers to the color normalization.
- More precise TS type for transform matrix in event handlers.

### Added

- The canvas change options to the htmlcanvas plugin.
- Add missing canvas change function in htmlcanvas plugin.

## [0.11.0] - 2024-05-23

Expand Down
8 changes: 6 additions & 2 deletions src/apps/weblib/ts-api/plugins/htmlcanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ export class HtmlCanvas implements Plugin, HtmlCanvasAlternative {
get api(): HtmlCanvasApi {
const self = this
return {
get element(): HTMLCanvasElement { return self._mainCanvas },
set element(newCanvasElement: HTMLCanvasElement) { self._setCanvas(newCanvasElement) },
get element(): HTMLCanvasElement {
return self._mainCanvas
},
set element(newCanvasElement: HTMLCanvasElement) {
self._setCanvas(newCanvasElement)
},
context: this.context,
clientToCanvas: this._clientToCanvas.bind(this),
canvasToClient: this._canvasToClient.bind(this)
Expand Down

0 comments on commit bf86afe

Please sign in to comment.