Skip to content

Commit

Permalink
srs
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenist committed Dec 11, 2023
1 parent a84f3eb commit d5fc075
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/drawing-engine/src/engine/WebDrawingEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Color, getEventPosition } from "@libs/shared"
import { DrawingEngine, DrawingEngineOptions, Tools } from "./DrawingEngine"
import { Vec2 } from "@libs/shared"
import { getImageDimensions } from "../utils/image/getImageDimensions"
import { SourceImage } from "../utils/image/SourceImage"

interface IWebDrawingEngine {
canvas: Readonly<HTMLCanvasElement>
Expand Down Expand Up @@ -94,7 +95,7 @@ export class WebDrawingEngine extends DrawingEngine implements IWebDrawingEngine
return this
}

public loadImage(image: TexImageSource): void {
public loadImage(image: SourceImage): void {
// const size = getImageDimensions(image) ?? { width: 0, height: 0 }
// if (size.width > this.canvas.width || size.height > this.canvas.height) {
// if (confirm("The image is larger than the canvas. Do you want to resize the canvas?")) {
Expand Down

0 comments on commit d5fc075

Please sign in to comment.