Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
iMoses committed Jan 20, 2025
1 parent 24b8009 commit 0273e04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Image', () => {
return _ModuleSupport.calculatePlacement(
naturalWidth,
naturalHeight,
{ x: 0, y: 0, width: containerWidth, height: containerHeight },
{ width: containerWidth, height: containerHeight },
params
);
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ag-charts-enterprise/src/features/image/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class Image extends BaseProperties {
performLayout(containerWidth: number, containerHeight: number): _ModuleSupport.Placement {
this.containerWidth = containerWidth;
this.containerHeight = containerHeight;
const container = { x: 0, y: 0, width: containerWidth, height: containerHeight };
const container = { width: containerWidth, height: containerHeight };
const placement = calculatePlacement(this.imageElement.width, this.imageElement.height, container, this);
this.node.setProperties(
this.complete
Expand Down

0 comments on commit 0273e04

Please sign in to comment.