Skip to content

Commit

Permalink
$mol_image types to new tree2
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Oct 24, 2023
1 parent e8941fd commit a633cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image/image.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace $.$$ {
export class $mol_image extends $.$mol_image {

@ $mol_mem
natural_width( next?: null ) {
natural_width( next?: null | number ) {

const dom = this.dom_node() as HTMLImageElement
if( dom.naturalWidth ) return dom.naturalWidth
Expand All @@ -13,7 +13,7 @@ namespace $.$$ {
}

@ $mol_mem
natural_height( next?: null ) {
natural_height( next?: null | number ) {

const dom = this.dom_node() as HTMLImageElement
if( dom.naturalHeight ) return dom.naturalHeight
Expand Down

0 comments on commit a633cdc

Please sign in to comment.